@redneckz/wildless-cms-uni-blocks 0.14.71 → 0.14.72
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 +11 -13
- 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/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/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 +13 -13
- 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/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/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/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/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
|
@@ -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;
|
|
@@ -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'}
|