@redneckz/wildless-cms-uni-blocks 0.14.71 → 0.14.73
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/bundle/bundle.umd.js +12 -14
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/StickyBottomMenu/RenderItem.d.ts +1 -1
- package/bundle/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.d.ts +2 -2
- package/dist/components/ApplicationForm/Footnote.js +1 -1
- package/dist/components/ApplicationForm/Footnote.js.map +1 -1
- package/dist/components/ComparisonTable/HeaderCell.js +1 -1
- package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/dist/components/ComparisonTable/TableColumn.js +1 -1
- package/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/dist/components/InvestmentInfo/InvestmentInfo.js +1 -3
- package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +2 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/StepsBlock/renderStep.js +1 -1
- package/dist/components/StepsBlock/renderStep.js.map +1 -1
- package/dist/components/StickyBottomMenu/RenderItem.d.ts +1 -1
- package/dist/components/StickyBottomMenu/RenderItem.js +3 -3
- package/dist/components/StickyBottomMenu/RenderItem.js.map +1 -1
- package/dist/ui-kit/Img/ImgAsPicture.js +5 -5
- package/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/dist/ui-kit/SlideCheckbox/SlideCheckbox.js +1 -1
- package/dist/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
- package/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.d.ts +2 -2
- package/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js +1 -1
- package/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js.map +1 -1
- package/lib/components/ApplicationForm/Footnote.js +1 -1
- package/lib/components/ApplicationForm/Footnote.js.map +1 -1
- package/lib/components/ComparisonTable/HeaderCell.js +1 -1
- package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/lib/components/ComparisonTable/TableColumn.js +1 -1
- package/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/lib/components/InvestmentInfo/InvestmentInfo.js +1 -3
- package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +2 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/StepsBlock/renderStep.js +1 -1
- package/lib/components/StepsBlock/renderStep.js.map +1 -1
- package/lib/components/StickyBottomMenu/RenderItem.d.ts +1 -1
- package/lib/components/StickyBottomMenu/RenderItem.js +3 -3
- package/lib/components/StickyBottomMenu/RenderItem.js.map +1 -1
- package/lib/ui-kit/Img/ImgAsPicture.js +5 -5
- package/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/lib/ui-kit/SlideCheckbox/SlideCheckbox.js +1 -1
- package/lib/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
- package/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.d.ts +2 -2
- package/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js +1 -1
- package/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +14 -14
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/StickyBottomMenu/RenderItem.d.ts +1 -1
- package/mobile/bundle/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.d.ts +2 -2
- package/mobile/dist/components/ApplicationForm/Footnote.js +1 -1
- package/mobile/dist/components/ApplicationForm/Footnote.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/TableColumn.js +1 -1
- package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +1 -3
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js +2 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/StepsBlock/renderStep.js +1 -1
- package/mobile/dist/components/StepsBlock/renderStep.js.map +1 -1
- package/mobile/dist/components/StickyBottomMenu/RenderItem.d.ts +1 -1
- package/mobile/dist/components/StickyBottomMenu/RenderItem.js +3 -3
- package/mobile/dist/components/StickyBottomMenu/RenderItem.js.map +1 -1
- package/mobile/dist/ui-kit/Img/ImgAsPicture.js +5 -5
- package/mobile/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.js +1 -1
- package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
- package/mobile/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.d.ts +2 -2
- package/mobile/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js +1 -1
- package/mobile/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/Footnote.js +1 -1
- package/mobile/lib/components/ApplicationForm/Footnote.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableColumn.js +1 -1
- package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +1 -3
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js +2 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/StepsBlock/renderStep.js +1 -1
- package/mobile/lib/components/StepsBlock/renderStep.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/RenderItem.d.ts +1 -1
- package/mobile/lib/components/StickyBottomMenu/RenderItem.js +3 -3
- package/mobile/lib/components/StickyBottomMenu/RenderItem.js.map +1 -1
- package/mobile/lib/ui-kit/Img/ImgAsPicture.js +5 -5
- package/mobile/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.js +1 -1
- package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
- package/mobile/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.d.ts +2 -2
- package/mobile/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js +1 -1
- package/mobile/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js.map +1 -1
- package/mobile/src/components/ApplicationForm/Footnote.tsx +1 -1
- package/mobile/src/components/ComparisonTable/TableColumn.tsx +1 -1
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +3 -7
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +6 -1
- package/mobile/src/components/StepsBlock/renderStep.tsx +4 -4
- package/mobile/src/components/StickyBottomMenu/RenderItem.tsx +4 -4
- package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +8 -8
- package/mobile/src/ui-kit/SlideCheckbox/SlideCheckbox.tsx +5 -3
- package/mobile/src/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.tsx +3 -3
- package/package.json +1 -1
- package/src/components/ApplicationForm/Footnote.tsx +1 -1
- package/src/components/ComparisonTable/HeaderCell.tsx +1 -1
- package/src/components/ComparisonTable/TableColumn.tsx +1 -1
- package/src/components/InvestmentInfo/InvestmentInfo.tsx +3 -7
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +6 -1
- package/src/components/StepsBlock/renderStep.tsx +4 -4
- package/src/components/StickyBottomMenu/RenderItem.tsx +4 -4
- package/src/ui-kit/Img/ImgAsPicture.tsx +8 -8
- package/src/ui-kit/SlideCheckbox/SlideCheckbox.tsx +5 -3
- package/src/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.tsx +3 -3
|
@@ -48,7 +48,7 @@ export const TableColumn = JSX<TableColumnProps>(
|
|
|
48
48
|
{showRow && header?.link ? (
|
|
49
49
|
<LinkButton
|
|
50
50
|
href={header.link.href}
|
|
51
|
-
target={header.link
|
|
51
|
+
target={header.link?.target}
|
|
52
52
|
version={buttonVersion}
|
|
53
53
|
className="text-s font-medium mt-m py-s"
|
|
54
54
|
>
|
|
@@ -121,13 +121,9 @@ const renderInvestmentCell = (cell: InvestmentCell, i: number) => {
|
|
|
121
121
|
) : null;
|
|
122
122
|
};
|
|
123
123
|
|
|
124
|
-
const renderInvestmentColumnTitle = (
|
|
125
|
-
column
|
|
126
|
-
i: number,
|
|
127
|
-
) => {
|
|
128
|
-
return (
|
|
124
|
+
const renderInvestmentColumnTitle = (column: InvestmentColumn | InvestmentZeroColumn, i: number) =>
|
|
125
|
+
column?.title ? (
|
|
129
126
|
<div key={`title_${i}`} className={`flex-1 max-w-[180px] text-center px-xs last:pr-3xl`}>
|
|
130
127
|
{column.title}
|
|
131
128
|
</div>
|
|
132
|
-
);
|
|
133
|
-
};
|
|
129
|
+
) : null;
|
|
@@ -5,6 +5,7 @@ import { type SizeVersion } from '../../model/SizeVersion';
|
|
|
5
5
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
6
6
|
import { Img } from '../../ui-kit/Img/Img';
|
|
7
7
|
import { renderButtonsSection } from '../../ui-kit/LinkButton/renderButtonsSection';
|
|
8
|
+
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
8
9
|
import { RichText } from '../../ui-kit/RichText/RichText';
|
|
9
10
|
import { assertUnreachable } from '../../utils/assertUnreachable';
|
|
10
11
|
import { isIcon } from '../../utils/isIcon';
|
|
@@ -101,7 +102,11 @@ const renderDefaultStep =
|
|
|
101
102
|
STEPS_TILE_DESCRIPTION_HEIGHT_MAP[size],
|
|
102
103
|
)}
|
|
103
104
|
>
|
|
104
|
-
{step.label ?
|
|
105
|
+
{step.label ? (
|
|
106
|
+
<Paragraph size="text-l" align="text-left">
|
|
107
|
+
{step.label}
|
|
108
|
+
</Paragraph>
|
|
109
|
+
) : null}
|
|
105
110
|
{step.description ? (
|
|
106
111
|
<div className={style('text-s font-light text-left', styleMap.description)}>
|
|
107
112
|
{step.description}
|
|
@@ -52,11 +52,11 @@ const renderDefaultStep =
|
|
|
52
52
|
getContainerWidth(arr.length),
|
|
53
53
|
)}
|
|
54
54
|
>
|
|
55
|
-
<div className="
|
|
55
|
+
<div className="space-y-xs">
|
|
56
56
|
{label ? (
|
|
57
|
-
<
|
|
58
|
-
|
|
59
|
-
</
|
|
57
|
+
<Text size="text-h6" align="text-center">
|
|
58
|
+
{label}
|
|
59
|
+
</Text>
|
|
60
60
|
) : null}
|
|
61
61
|
<div className="flex flex-col items-center gap-3xs">
|
|
62
62
|
{description ? <div className={styleMap.description}>{description}</div> : null}
|
|
@@ -7,13 +7,13 @@ import { type MenuItemProps } from './StickyBottomMenuProps';
|
|
|
7
7
|
|
|
8
8
|
interface RenderItemProps {
|
|
9
9
|
isActive?: boolean;
|
|
10
|
-
item
|
|
10
|
+
item?: MenuItemProps;
|
|
11
11
|
onClick?: () => void;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
export const RenderItem = JSX<RenderItemProps>(({ isActive, item, onClick }) => {
|
|
15
15
|
const isAnotherPortal = projectSettings?.BASE_PATH
|
|
16
|
-
? !item
|
|
16
|
+
? !item?.href?.startsWith(projectSettings?.BASE_PATH)
|
|
17
17
|
: true;
|
|
18
18
|
|
|
19
19
|
const link = useLink({ isRemote: isAnotherPortal });
|
|
@@ -22,7 +22,7 @@ export const RenderItem = JSX<RenderItemProps>(({ isActive, item, onClick }) =>
|
|
|
22
22
|
target,
|
|
23
23
|
onClick: handleClick,
|
|
24
24
|
} = link({
|
|
25
|
-
href: item
|
|
25
|
+
href: item?.href || '',
|
|
26
26
|
target: '_self',
|
|
27
27
|
});
|
|
28
28
|
const isActiveItem = item?.icon?.icon === 'BurgerIcon' ? item.isActive : isActive;
|
|
@@ -45,7 +45,7 @@ export const RenderItem = JSX<RenderItemProps>(({ isActive, item, onClick }) =>
|
|
|
45
45
|
iconVersion: iconVersion,
|
|
46
46
|
}}
|
|
47
47
|
/>
|
|
48
|
-
{item
|
|
48
|
+
{item?.title || ''}
|
|
49
49
|
</a>
|
|
50
50
|
);
|
|
51
51
|
});
|
|
@@ -25,8 +25,8 @@ export const ImgAsPicture = JSX<ImageProps>(
|
|
|
25
25
|
srcSet={adjustSrc(router, pathPrefix)(src)}
|
|
26
26
|
type={formatToMimeType(format)}
|
|
27
27
|
media={media ? `(max-width: ${media}px)` : ''}
|
|
28
|
-
width={image
|
|
29
|
-
height={image
|
|
28
|
+
width={image?.size?.width}
|
|
29
|
+
height={image?.size?.height}
|
|
30
30
|
/>
|
|
31
31
|
))
|
|
32
32
|
: null}
|
|
@@ -42,14 +42,14 @@ const renderImg = (image: Picture, imageClassName = '') => (
|
|
|
42
42
|
<img
|
|
43
43
|
src={image.src}
|
|
44
44
|
className={style('object-contain', imageClassName)}
|
|
45
|
-
alt={image
|
|
46
|
-
title={image
|
|
45
|
+
alt={image?.alt || image?.title || ''}
|
|
46
|
+
title={image?.title || ''}
|
|
47
47
|
style={{
|
|
48
|
-
width: image
|
|
49
|
-
height: image
|
|
48
|
+
width: image?.size?.width ? `${image.size?.width}px` : '100%',
|
|
49
|
+
height: image?.size?.height ? `${image.size?.height}px` : 'auto',
|
|
50
50
|
}}
|
|
51
|
-
width={image
|
|
52
|
-
height={image
|
|
51
|
+
width={image?.size?.width}
|
|
52
|
+
height={image?.size?.height}
|
|
53
53
|
/>
|
|
54
54
|
);
|
|
55
55
|
|
|
@@ -29,9 +29,11 @@ export const SlideCheckbox = JSX<SlideCheckboxProps>(
|
|
|
29
29
|
)}
|
|
30
30
|
/>
|
|
31
31
|
</div>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
{text ? (
|
|
33
|
+
<Text size="text-l" font="font-light" color="text-primary-text">
|
|
34
|
+
{text}
|
|
35
|
+
</Text>
|
|
36
|
+
) : null}
|
|
35
37
|
</div>
|
|
36
38
|
),
|
|
37
39
|
);
|
|
@@ -9,12 +9,12 @@ type SlideCheckboxGroupItem = {
|
|
|
9
9
|
|
|
10
10
|
interface SlideCheckboxGroupProps extends ControlProps<string> {
|
|
11
11
|
multiple: false;
|
|
12
|
-
items
|
|
12
|
+
items?: SlideCheckboxGroupItem[];
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
interface MultipleSlideCheckboxGroupProps extends ControlProps<string[]> {
|
|
16
16
|
multiple: true;
|
|
17
|
-
items
|
|
17
|
+
items?: SlideCheckboxGroupItem[];
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export const SlideCheckboxGroup = JSX<SlideCheckboxGroupProps | MultipleSlideCheckboxGroupProps>(
|
|
@@ -38,7 +38,7 @@ export const SlideCheckboxGroup = JSX<SlideCheckboxGroupProps | MultipleSlideChe
|
|
|
38
38
|
return items.map((item) => (
|
|
39
39
|
<SlideCheckbox
|
|
40
40
|
key={item.value}
|
|
41
|
-
text={item
|
|
41
|
+
text={item?.title}
|
|
42
42
|
value={[value].flatMap((_) => _).includes(item.value)}
|
|
43
43
|
onChange={() => handleChange(item.value)}
|
|
44
44
|
type={multiple ? 'checkbox' : 'radio'}
|
package/package.json
CHANGED
|
@@ -35,7 +35,7 @@ export const HeaderCell = JSX<HeaderCellProps>(({ icon, image, title, link }) =>
|
|
|
35
35
|
<div className="mt-auto w-full">
|
|
36
36
|
<LinkButton
|
|
37
37
|
href={link.href}
|
|
38
|
-
target={link.target}
|
|
38
|
+
target={link.target || ''}
|
|
39
39
|
className="w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active"
|
|
40
40
|
>
|
|
41
41
|
<div className="text-xs font-light font-medium py-s">{link.text}</div>
|
|
@@ -48,7 +48,7 @@ export const TableColumn = JSX<TableColumnProps>(
|
|
|
48
48
|
{showRow && header?.link ? (
|
|
49
49
|
<LinkButton
|
|
50
50
|
href={header.link.href}
|
|
51
|
-
target={header.link
|
|
51
|
+
target={header.link?.target}
|
|
52
52
|
version={buttonVersion}
|
|
53
53
|
className="text-s font-medium mt-m py-s"
|
|
54
54
|
>
|
|
@@ -121,13 +121,9 @@ const renderInvestmentCell = (cell: InvestmentCell, i: number) => {
|
|
|
121
121
|
) : null;
|
|
122
122
|
};
|
|
123
123
|
|
|
124
|
-
const renderInvestmentColumnTitle = (
|
|
125
|
-
column
|
|
126
|
-
i: number,
|
|
127
|
-
) => {
|
|
128
|
-
return (
|
|
124
|
+
const renderInvestmentColumnTitle = (column: InvestmentColumn | InvestmentZeroColumn, i: number) =>
|
|
125
|
+
column?.title ? (
|
|
129
126
|
<div key={`title_${i}`} className={`flex-1 max-w-[180px] text-center px-xs last:pr-3xl`}>
|
|
130
127
|
{column.title}
|
|
131
128
|
</div>
|
|
132
|
-
);
|
|
133
|
-
};
|
|
129
|
+
) : null;
|
|
@@ -5,6 +5,7 @@ import { type SizeVersion } from '../../model/SizeVersion';
|
|
|
5
5
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
6
6
|
import { Img } from '../../ui-kit/Img/Img';
|
|
7
7
|
import { renderButtonsSection } from '../../ui-kit/LinkButton/renderButtonsSection';
|
|
8
|
+
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
8
9
|
import { RichText } from '../../ui-kit/RichText/RichText';
|
|
9
10
|
import { assertUnreachable } from '../../utils/assertUnreachable';
|
|
10
11
|
import { isIcon } from '../../utils/isIcon';
|
|
@@ -101,7 +102,11 @@ const renderDefaultStep =
|
|
|
101
102
|
STEPS_TILE_DESCRIPTION_HEIGHT_MAP[size],
|
|
102
103
|
)}
|
|
103
104
|
>
|
|
104
|
-
{step.label ?
|
|
105
|
+
{step.label ? (
|
|
106
|
+
<Paragraph size="text-l" align="text-left">
|
|
107
|
+
{step.label}
|
|
108
|
+
</Paragraph>
|
|
109
|
+
) : null}
|
|
105
110
|
{step.description ? (
|
|
106
111
|
<div className={style('text-s font-light text-left', styleMap.description)}>
|
|
107
112
|
{step.description}
|
|
@@ -52,11 +52,11 @@ const renderDefaultStep =
|
|
|
52
52
|
getContainerWidth(arr.length),
|
|
53
53
|
)}
|
|
54
54
|
>
|
|
55
|
-
<div className="
|
|
55
|
+
<div className="space-y-xs">
|
|
56
56
|
{label ? (
|
|
57
|
-
<
|
|
58
|
-
|
|
59
|
-
</
|
|
57
|
+
<Text size="text-h6" align="text-center">
|
|
58
|
+
{label}
|
|
59
|
+
</Text>
|
|
60
60
|
) : null}
|
|
61
61
|
<div className="flex flex-col items-center gap-3xs">
|
|
62
62
|
{description ? <div className={styleMap.description}>{description}</div> : null}
|
|
@@ -7,13 +7,13 @@ import { type MenuItemProps } from './StickyBottomMenuProps';
|
|
|
7
7
|
|
|
8
8
|
interface RenderItemProps {
|
|
9
9
|
isActive?: boolean;
|
|
10
|
-
item
|
|
10
|
+
item?: MenuItemProps;
|
|
11
11
|
onClick?: () => void;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
export const RenderItem = JSX<RenderItemProps>(({ isActive, item, onClick }) => {
|
|
15
15
|
const isAnotherPortal = projectSettings?.BASE_PATH
|
|
16
|
-
? !item
|
|
16
|
+
? !item?.href?.startsWith(projectSettings?.BASE_PATH)
|
|
17
17
|
: true;
|
|
18
18
|
|
|
19
19
|
const link = useLink({ isRemote: isAnotherPortal });
|
|
@@ -22,7 +22,7 @@ export const RenderItem = JSX<RenderItemProps>(({ isActive, item, onClick }) =>
|
|
|
22
22
|
target,
|
|
23
23
|
onClick: handleClick,
|
|
24
24
|
} = link({
|
|
25
|
-
href: item
|
|
25
|
+
href: item?.href || '',
|
|
26
26
|
target: '_self',
|
|
27
27
|
});
|
|
28
28
|
const isActiveItem = item?.icon?.icon === 'BurgerIcon' ? item.isActive : isActive;
|
|
@@ -45,7 +45,7 @@ export const RenderItem = JSX<RenderItemProps>(({ isActive, item, onClick }) =>
|
|
|
45
45
|
iconVersion: iconVersion,
|
|
46
46
|
}}
|
|
47
47
|
/>
|
|
48
|
-
{item
|
|
48
|
+
{item?.title || ''}
|
|
49
49
|
</a>
|
|
50
50
|
);
|
|
51
51
|
});
|
|
@@ -25,8 +25,8 @@ export const ImgAsPicture = JSX<ImageProps>(
|
|
|
25
25
|
srcSet={adjustSrc(router, pathPrefix)(src)}
|
|
26
26
|
type={formatToMimeType(format)}
|
|
27
27
|
media={media ? `(max-width: ${media}px)` : ''}
|
|
28
|
-
width={image
|
|
29
|
-
height={image
|
|
28
|
+
width={image?.size?.width}
|
|
29
|
+
height={image?.size?.height}
|
|
30
30
|
/>
|
|
31
31
|
))
|
|
32
32
|
: null}
|
|
@@ -42,14 +42,14 @@ const renderImg = (image: Picture, imageClassName = '') => (
|
|
|
42
42
|
<img
|
|
43
43
|
src={image.src}
|
|
44
44
|
className={style('object-contain', imageClassName)}
|
|
45
|
-
alt={image
|
|
46
|
-
title={image
|
|
45
|
+
alt={image?.alt || image?.title || ''}
|
|
46
|
+
title={image?.title || ''}
|
|
47
47
|
style={{
|
|
48
|
-
width: image
|
|
49
|
-
height: image
|
|
48
|
+
width: image?.size?.width ? `${image.size?.width}px` : '100%',
|
|
49
|
+
height: image?.size?.height ? `${image.size?.height}px` : 'auto',
|
|
50
50
|
}}
|
|
51
|
-
width={image
|
|
52
|
-
height={image
|
|
51
|
+
width={image?.size?.width}
|
|
52
|
+
height={image?.size?.height}
|
|
53
53
|
/>
|
|
54
54
|
);
|
|
55
55
|
|
|
@@ -29,9 +29,11 @@ export const SlideCheckbox = JSX<SlideCheckboxProps>(
|
|
|
29
29
|
)}
|
|
30
30
|
/>
|
|
31
31
|
</div>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
{text ? (
|
|
33
|
+
<Text size="text-l" font="font-light" color="text-primary-text">
|
|
34
|
+
{text}
|
|
35
|
+
</Text>
|
|
36
|
+
) : null}
|
|
35
37
|
</div>
|
|
36
38
|
),
|
|
37
39
|
);
|
|
@@ -9,12 +9,12 @@ type SlideCheckboxGroupItem = {
|
|
|
9
9
|
|
|
10
10
|
interface SlideCheckboxGroupProps extends ControlProps<string> {
|
|
11
11
|
multiple: false;
|
|
12
|
-
items
|
|
12
|
+
items?: SlideCheckboxGroupItem[];
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
interface MultipleSlideCheckboxGroupProps extends ControlProps<string[]> {
|
|
16
16
|
multiple: true;
|
|
17
|
-
items
|
|
17
|
+
items?: SlideCheckboxGroupItem[];
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export const SlideCheckboxGroup = JSX<SlideCheckboxGroupProps | MultipleSlideCheckboxGroupProps>(
|
|
@@ -38,7 +38,7 @@ export const SlideCheckboxGroup = JSX<SlideCheckboxGroupProps | MultipleSlideChe
|
|
|
38
38
|
return items.map((item) => (
|
|
39
39
|
<SlideCheckbox
|
|
40
40
|
key={item.value}
|
|
41
|
-
text={item
|
|
41
|
+
text={item?.title}
|
|
42
42
|
value={[value].flatMap((_) => _).includes(item.value)}
|
|
43
43
|
onChange={() => handleChange(item.value)}
|
|
44
44
|
type={multiple ? 'checkbox' : 'radio'}
|