@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.
Files changed (112) hide show
  1. package/bundle/bundle.umd.js +12 -14
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/components/StickyBottomMenu/RenderItem.d.ts +1 -1
  4. package/bundle/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.d.ts +2 -2
  5. package/dist/components/ApplicationForm/Footnote.js +1 -1
  6. package/dist/components/ApplicationForm/Footnote.js.map +1 -1
  7. package/dist/components/ComparisonTable/HeaderCell.js +1 -1
  8. package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
  9. package/dist/components/ComparisonTable/TableColumn.js +1 -1
  10. package/dist/components/ComparisonTable/TableColumn.js.map +1 -1
  11. package/dist/components/InvestmentInfo/InvestmentInfo.js +1 -3
  12. package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  13. package/dist/components/StepsBlock/StepsBlock.mobile.js +2 -1
  14. package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  15. package/dist/components/StepsBlock/renderStep.js +1 -1
  16. package/dist/components/StepsBlock/renderStep.js.map +1 -1
  17. package/dist/components/StickyBottomMenu/RenderItem.d.ts +1 -1
  18. package/dist/components/StickyBottomMenu/RenderItem.js +3 -3
  19. package/dist/components/StickyBottomMenu/RenderItem.js.map +1 -1
  20. package/dist/ui-kit/Img/ImgAsPicture.js +5 -5
  21. package/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
  22. package/dist/ui-kit/SlideCheckbox/SlideCheckbox.js +1 -1
  23. package/dist/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
  24. package/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.d.ts +2 -2
  25. package/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js +1 -1
  26. package/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js.map +1 -1
  27. package/lib/components/ApplicationForm/Footnote.js +1 -1
  28. package/lib/components/ApplicationForm/Footnote.js.map +1 -1
  29. package/lib/components/ComparisonTable/HeaderCell.js +1 -1
  30. package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
  31. package/lib/components/ComparisonTable/TableColumn.js +1 -1
  32. package/lib/components/ComparisonTable/TableColumn.js.map +1 -1
  33. package/lib/components/InvestmentInfo/InvestmentInfo.js +1 -3
  34. package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  35. package/lib/components/StepsBlock/StepsBlock.mobile.js +2 -1
  36. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  37. package/lib/components/StepsBlock/renderStep.js +1 -1
  38. package/lib/components/StepsBlock/renderStep.js.map +1 -1
  39. package/lib/components/StickyBottomMenu/RenderItem.d.ts +1 -1
  40. package/lib/components/StickyBottomMenu/RenderItem.js +3 -3
  41. package/lib/components/StickyBottomMenu/RenderItem.js.map +1 -1
  42. package/lib/ui-kit/Img/ImgAsPicture.js +5 -5
  43. package/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
  44. package/lib/ui-kit/SlideCheckbox/SlideCheckbox.js +1 -1
  45. package/lib/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
  46. package/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.d.ts +2 -2
  47. package/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js +1 -1
  48. package/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js.map +1 -1
  49. package/mobile/bundle/bundle.umd.js +14 -14
  50. package/mobile/bundle/bundle.umd.min.js +1 -1
  51. package/mobile/bundle/components/StickyBottomMenu/RenderItem.d.ts +1 -1
  52. package/mobile/bundle/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.d.ts +2 -2
  53. package/mobile/dist/components/ApplicationForm/Footnote.js +1 -1
  54. package/mobile/dist/components/ApplicationForm/Footnote.js.map +1 -1
  55. package/mobile/dist/components/ComparisonTable/TableColumn.js +1 -1
  56. package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -1
  57. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +1 -3
  58. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  59. package/mobile/dist/components/StepsBlock/StepsBlock.js +2 -1
  60. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  61. package/mobile/dist/components/StepsBlock/renderStep.js +1 -1
  62. package/mobile/dist/components/StepsBlock/renderStep.js.map +1 -1
  63. package/mobile/dist/components/StickyBottomMenu/RenderItem.d.ts +1 -1
  64. package/mobile/dist/components/StickyBottomMenu/RenderItem.js +3 -3
  65. package/mobile/dist/components/StickyBottomMenu/RenderItem.js.map +1 -1
  66. package/mobile/dist/ui-kit/Img/ImgAsPicture.js +5 -5
  67. package/mobile/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
  68. package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.js +1 -1
  69. package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
  70. package/mobile/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.d.ts +2 -2
  71. package/mobile/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js +1 -1
  72. package/mobile/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js.map +1 -1
  73. package/mobile/lib/components/ApplicationForm/Footnote.js +1 -1
  74. package/mobile/lib/components/ApplicationForm/Footnote.js.map +1 -1
  75. package/mobile/lib/components/ComparisonTable/TableColumn.js +1 -1
  76. package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -1
  77. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +1 -3
  78. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  79. package/mobile/lib/components/StepsBlock/StepsBlock.js +2 -1
  80. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  81. package/mobile/lib/components/StepsBlock/renderStep.js +1 -1
  82. package/mobile/lib/components/StepsBlock/renderStep.js.map +1 -1
  83. package/mobile/lib/components/StickyBottomMenu/RenderItem.d.ts +1 -1
  84. package/mobile/lib/components/StickyBottomMenu/RenderItem.js +3 -3
  85. package/mobile/lib/components/StickyBottomMenu/RenderItem.js.map +1 -1
  86. package/mobile/lib/ui-kit/Img/ImgAsPicture.js +5 -5
  87. package/mobile/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
  88. package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.js +1 -1
  89. package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
  90. package/mobile/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.d.ts +2 -2
  91. package/mobile/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js +1 -1
  92. package/mobile/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js.map +1 -1
  93. package/mobile/src/components/ApplicationForm/Footnote.tsx +1 -1
  94. package/mobile/src/components/ComparisonTable/TableColumn.tsx +1 -1
  95. package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +3 -7
  96. package/mobile/src/components/StepsBlock/StepsBlock.tsx +6 -1
  97. package/mobile/src/components/StepsBlock/renderStep.tsx +4 -4
  98. package/mobile/src/components/StickyBottomMenu/RenderItem.tsx +4 -4
  99. package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +8 -8
  100. package/mobile/src/ui-kit/SlideCheckbox/SlideCheckbox.tsx +5 -3
  101. package/mobile/src/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.tsx +3 -3
  102. package/package.json +1 -1
  103. package/src/components/ApplicationForm/Footnote.tsx +1 -1
  104. package/src/components/ComparisonTable/HeaderCell.tsx +1 -1
  105. package/src/components/ComparisonTable/TableColumn.tsx +1 -1
  106. package/src/components/InvestmentInfo/InvestmentInfo.tsx +3 -7
  107. package/src/components/StepsBlock/StepsBlock.mobile.tsx +6 -1
  108. package/src/components/StepsBlock/renderStep.tsx +4 -4
  109. package/src/components/StickyBottomMenu/RenderItem.tsx +4 -4
  110. package/src/ui-kit/Img/ImgAsPicture.tsx +8 -8
  111. package/src/ui-kit/SlideCheckbox/SlideCheckbox.tsx +5 -3
  112. package/src/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.tsx +3 -3
@@ -16,7 +16,7 @@ export const Footnote = JSX<FootnoteProps>(({ text, link }) => (
16
16
  <LinkButton
17
17
  href={link.href}
18
18
  ariaLabel="условия передачи данных"
19
- target={link.target}
19
+ target={link.target || ''}
20
20
  className="text-primary-main"
21
21
  >
22
22
  <Text>{link.text}</Text>
@@ -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.target}
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: InvestmentColumn | InvestmentZeroColumn,
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 ? <div className="text-l text-left">{step.label}</div> : null}
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="text-center space-y-xs">
55
+ <div className="space-y-xs">
56
56
  {label ? (
57
- <div>
58
- <Text size="text-h6">{label}</Text>
59
- </div>
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: MenuItemProps;
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.href?.startsWith(projectSettings?.BASE_PATH)
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.href,
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.title}
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.size?.width}
29
- height={image.size?.height}
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.alt || image.title}
46
- title={image.title || ''}
45
+ alt={image?.alt || image?.title || ''}
46
+ title={image?.title || ''}
47
47
  style={{
48
- width: image.size?.width ? `${image.size?.width}px` : '100%',
49
- height: image.size?.height ? `${image.size?.height}px` : 'auto',
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.size?.width}
52
- height={image.size?.height}
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
- <Text size="text-l" font="font-light" color="text-primary-text">
33
- {text}
34
- </Text>
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: SlideCheckboxGroupItem[];
12
+ items?: SlideCheckboxGroupItem[];
13
13
  }
14
14
 
15
15
  interface MultipleSlideCheckboxGroupProps extends ControlProps<string[]> {
16
16
  multiple: true;
17
- items: SlideCheckboxGroupItem[];
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.title}
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.14.71",
3
+ "version": "0.14.73",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
@@ -16,7 +16,7 @@ export const Footnote = JSX<FootnoteProps>(({ text, link }) => (
16
16
  <LinkButton
17
17
  href={link.href}
18
18
  ariaLabel="условия передачи данных"
19
- target={link.target}
19
+ target={link.target || ''}
20
20
  className="text-primary-main"
21
21
  >
22
22
  <Text>{link.text}</Text>
@@ -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.target}
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: InvestmentColumn | InvestmentZeroColumn,
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 ? <div className="text-l text-left">{step.label}</div> : null}
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="text-center space-y-xs">
55
+ <div className="space-y-xs">
56
56
  {label ? (
57
- <div>
58
- <Text size="text-h6">{label}</Text>
59
- </div>
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: MenuItemProps;
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.href?.startsWith(projectSettings?.BASE_PATH)
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.href,
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.title}
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.size?.width}
29
- height={image.size?.height}
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.alt || image.title}
46
- title={image.title || ''}
45
+ alt={image?.alt || image?.title || ''}
46
+ title={image?.title || ''}
47
47
  style={{
48
- width: image.size?.width ? `${image.size?.width}px` : '100%',
49
- height: image.size?.height ? `${image.size?.height}px` : 'auto',
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.size?.width}
52
- height={image.size?.height}
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
- <Text size="text-l" font="font-light" color="text-primary-text">
33
- {text}
34
- </Text>
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: SlideCheckboxGroupItem[];
12
+ items?: SlideCheckboxGroupItem[];
13
13
  }
14
14
 
15
15
  interface MultipleSlideCheckboxGroupProps extends ControlProps<string[]> {
16
16
  multiple: true;
17
- items: SlideCheckboxGroupItem[];
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.title}
41
+ text={item?.title}
42
42
  value={[value].flatMap((_) => _).includes(item.value)}
43
43
  onChange={() => handleChange(item.value)}
44
44
  type={multiple ? 'checkbox' : 'radio'}