@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
@@ -481,15 +481,15 @@
481
481
  ? image.sources
482
482
  .filter((_) => _?.src)
483
483
  .sort(sourcesComparator)
484
- .map(({ src, format, media }, index) => (jsx("source", { srcSet: adjustSrc(router, pathPrefix)(src), type: formatToMimeType(format), media: media ? `(max-width: ${media}px)` : '', width: image.size?.width, height: image.size?.height }, `${index}_${src}`)))
484
+ .map(({ src, format, media }, index) => (jsx("source", { srcSet: adjustSrc(router, pathPrefix)(src), type: formatToMimeType(format), media: media ? `(max-width: ${media}px)` : '', width: image?.size?.width, height: image?.size?.height }, `${index}_${src}`)))
485
485
  : null, image?.src
486
486
  ? renderImg({ ...image, src: adjustSrc(router, pathPrefix)(image.src) }, imageClassName)
487
487
  : null] }));
488
488
  });
489
- const renderImg = (image, imageClassName = '') => (jsx("img", { src: image.src, className: style('object-contain', imageClassName), alt: image.alt || image.title, title: image.title || '', style: {
490
- width: image.size?.width ? `${image.size?.width}px` : '100%',
491
- height: image.size?.height ? `${image.size?.height}px` : 'auto',
492
- }, width: image.size?.width, height: image.size?.height }));
489
+ const renderImg = (image, imageClassName = '') => (jsx("img", { src: image.src, className: style('object-contain', imageClassName), alt: image?.alt || image?.title || '', title: image?.title || '', style: {
490
+ width: image?.size?.width ? `${image.size?.width}px` : '100%',
491
+ height: image?.size?.height ? `${image.size?.height}px` : 'auto',
492
+ }, width: image?.size?.width, height: image?.size?.height }));
493
493
  const adjustSrc = (router, pathPrefix) => (src) => src && !isURL(src) ? adjustHref(router)(joinPath(pathPrefix, src)) : src;
494
494
  const formatToMimeType = (format) => format ? `image/${String(format)}` : undefined;
495
495
 
@@ -990,7 +990,7 @@
990
990
  return data || EMPTY_VALUE$4;
991
991
  }
992
992
 
993
- const Footnote = JSX(({ text, link }) => (jsxs(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text", children: [jsx(Text, { children: text || 'Нажимая кнопку, вы подтверждаете согласие с ' }), link ? (jsx(LinkButton, { href: link.href, ariaLabel: "\u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043D\u043D\u044B\u0445", target: link.target, className: "text-primary-main", children: jsx(Text, { children: link.text }) })) : null] })));
993
+ const Footnote = JSX(({ text, link }) => (jsxs(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text", children: [jsx(Text, { children: text || 'Нажимая кнопку, вы подтверждаете согласие с ' }), link ? (jsx(LinkButton, { href: link.href, ariaLabel: "\u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043D\u043D\u044B\u0445", target: link.target || '', className: "text-primary-main", children: jsx(Text, { children: link.text }) })) : null] })));
994
994
 
995
995
  const withValidator = (props, validator) => {
996
996
  const { value, isDirty } = props;
@@ -1178,7 +1178,7 @@
1178
1178
 
1179
1179
  const renderAcquiringRegion = ({ regions, field }) => (jsxs("div", { className: "border-b border-b-main-divider @xl:border-none @xl:flex @xl:justify-between gap-lg ", children: [jsx("div", { className: "@xl:w-1/2", children: jsx(SelectControl, { label: "\u0412\u0438\u0434 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433\u0430", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433", options: ACQUIRING_TYPES.map(({ name: key = '' }) => ({ key, text: key })), ...withValidator(field('acquiringType'), defaultValidator) }) }), jsx("div", { className: "@xl:w-1/2", children: jsx(SelectControl, { label: "\u0410\u0434\u0440\u0435\u0441", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441", options: regions.map(({ code = '', name = '' }) => ({ key: code, text: name })), ...withValidator(field('region'), defaultValidator) }) })] }));
1180
1180
 
1181
- const SlideCheckbox = JSX(({ value = false, text, type = 'checkbox', onChange }) => (jsxs("div", { role: type, "aria-checked": value, className: "flex justify-start items-center w-full cursor-pointer mb-s", onClick: () => onChange && onChange(!value), children: [jsx("div", { className: style('relative flex-shrink-0 duration-300 w-9 h-5 mr-s rounded-2xl', value ? 'bg-primary-main' : 'bg-main-divider'), children: jsx("div", { className: style('absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full', value ? 'left-1/2' : 'left-[5%]') }) }), jsx(Text, { size: "text-l", font: "font-light", color: "text-primary-text", children: text })] })));
1181
+ const SlideCheckbox = JSX(({ value = false, text, type = 'checkbox', onChange }) => (jsxs("div", { role: type, "aria-checked": value, className: "flex justify-start items-center w-full cursor-pointer mb-s", onClick: () => onChange && onChange(!value), children: [jsx("div", { className: style('relative flex-shrink-0 duration-300 w-9 h-5 mr-s rounded-2xl', value ? 'bg-primary-main' : 'bg-main-divider'), children: jsx("div", { className: style('absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full', value ? 'left-1/2' : 'left-[5%]') }) }), text ? (jsx(Text, { size: "text-l", font: "font-light", color: "text-primary-text", children: text })) : null] })));
1182
1182
 
1183
1183
  const renderSlideCheckboxes = (field) => (jsxs("div", { children: [jsx(SlideCheckbox, { text: "\u0425\u043E\u0447\u0443 \u043A\u0443\u043F\u0438\u0442\u044C \u043E\u043D\u043B\u0430\u0439\u043D-\u043A\u0430\u0441\u0441\u0443", ...field('onlineCheckout') }), jsx(SlideCheckbox, { text: "\u0425\u043E\u0447\u0443 \u043A\u0443\u043F\u0438\u0442\u044C POS-\u0442\u0435\u0440\u043C\u0438\u043D\u0430\u043B", ...field('posTerminal') })] }));
1184
1184
 
@@ -3182,7 +3182,7 @@
3182
3182
  const COLS_LENGTH_FOR_SCROLL$1 = 3;
3183
3183
  const COLUMN_WIDTH$2 = 4 * 80 + 4 * 4; // w-80 + gap-4 = 336px
3184
3184
 
3185
- const HeaderCell = JSX(({ icon, image, title, link }) => (jsxs("div", { className: style('w-80 box-border flex flex-col gap-m items-center rounded-t-md border-b-0 p-2xl', borderStyle, gradientStyle), role: "columnheader", children: [icon && !image?.src && (jsx(Img, { className: "h-16 w-16 min-w-16 min-h-16", image: icon, width: "64", height: "64" })), image?.src && jsx(Img, { image: image }), title ? (jsx(Heading, { headingType: "h4", as: "h3", className: "text-center text-white", title: title })) : null, link?.text && (jsx("div", { className: "mt-auto w-full", children: jsx(LinkButton, { href: link.href, target: link.target, className: "w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active", children: jsx("div", { className: "text-xs font-light font-medium py-s", children: link.text }) }) }))] })));
3185
+ const HeaderCell = JSX(({ icon, image, title, link }) => (jsxs("div", { className: style('w-80 box-border flex flex-col gap-m items-center rounded-t-md border-b-0 p-2xl', borderStyle, gradientStyle), role: "columnheader", children: [icon && !image?.src && (jsx(Img, { className: "h-16 w-16 min-w-16 min-h-16", image: icon, width: "64", height: "64" })), image?.src && jsx(Img, { image: image }), title ? (jsx(Heading, { headingType: "h4", as: "h3", className: "text-center text-white", title: title })) : null, link?.text && (jsx("div", { className: "mt-auto w-full", children: jsx(LinkButton, { href: link.href, target: link.target || '', className: "w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active", children: jsx("div", { className: "text-xs font-light font-medium py-s", children: link.text }) }) }))] })));
3186
3186
 
3187
3187
  const carouselContainerClassesMap = {
3188
3188
  comparison: 'flex gap-m duration-1000',
@@ -3330,7 +3330,7 @@
3330
3330
  onChange(value === newValue ? '' : newValue);
3331
3331
  }
3332
3332
  };
3333
- return items.map((item) => (jsx(SlideCheckbox, { text: item.title, value: [value].flatMap((_) => _).includes(item.value), onChange: () => handleChange(item.value), type: multiple ? 'checkbox' : 'radio' }, item.value)));
3333
+ return items.map((item) => (jsx(SlideCheckbox, { text: item?.title, value: [value].flatMap((_) => _).includes(item.value), onChange: () => handleChange(item.value), type: multiple ? 'checkbox' : 'radio' }, item.value)));
3334
3334
  });
3335
3335
 
3336
3336
  const renderFiltrationForm$1 = ({ field, reset, filtrationSchema, resetButton, children, }) => (jsxs("form", { className: "flex flex-col @4xl:flex-row justify-between bg-white p-4xl gap-s @4xl:gap-0", children: [jsxs("div", { className: "flex flex-col @4xl:flex-row gap-5xl", children: [children, Object.entries(filtrationSchema).map(renderFormItem(field))] }), resetButton ? (jsx("div", { children: jsx(Button, { className: "w-full @4xl:w-72 @4xl:ml-s", onClick: reset, children: resetButton?.text }) })) : null] }));
@@ -4416,9 +4416,7 @@
4416
4416
  const cellColor = cell.cellColor || 'green';
4417
4417
  return cell.text ? (jsx("div", { className: `flex-1 flex items-center justify-center relative py-xs ${investmentCellSizeMap[cellSize]} ${investmentCellColorMap[cellColor]} ${cellSize === 'XS' ? 'px-s' : 'px-5xl'}`, children: jsx(Text, { align: "text-center", children: cell.text }) }, `cell_${i}`)) : null;
4418
4418
  };
4419
- const renderInvestmentColumnTitle = (column, i) => {
4420
- return (jsx("div", { className: `flex-1 max-w-[180px] text-center px-xs last:pr-3xl`, children: column.title }, `title_${i}`));
4421
- };
4419
+ const renderInvestmentColumnTitle = (column, i) => column?.title ? (jsx("div", { className: `flex-1 max-w-[180px] text-center px-xs last:pr-3xl`, children: column.title }, `title_${i}`)) : null;
4422
4420
 
4423
4421
  const KILO = 1024;
4424
4422
  const KILO_SIZES = ['байт', 'Кб', 'Мб', 'Гб', 'Тб', 'Пб'];
@@ -5214,7 +5212,7 @@
5214
5212
  };
5215
5213
  const renderDefaultStep = ({ styleMap, isMainButton, version }) => (step, i, arr) => {
5216
5214
  const { label, description, button, items, isDotted } = step;
5217
- return (jsxs("div", { className: style('relative flex flex-col items-center text-center justify-between whitespace-pre-line overflow-hidden space-y-3xl', getContainerWidth(arr.length)), children: [jsxs("div", { className: "text-center space-y-xs", children: [label ? (jsx("div", { children: jsx(Text, { size: "text-h6", children: label }) })) : null, jsxs("div", { className: "flex flex-col items-center gap-3xs", children: [description ? jsx("div", { className: styleMap.description, children: description }) : null, jsx(List, { className: styleMap.description, items: items, listItemSize: "M", isDotted: isDotted })] })] }), button?.text && !isMainButton ? (jsx(LinkButton, { className: "box-border py-s w-full max-w-60 mt-auto", version: version, ...button, children: button?.text })) : null] }, String(i)));
5215
+ return (jsxs("div", { className: style('relative flex flex-col items-center text-center justify-between whitespace-pre-line overflow-hidden space-y-3xl', getContainerWidth(arr.length)), children: [jsxs("div", { className: "space-y-xs", children: [label ? (jsx(Text, { size: "text-h6", align: "text-center", children: label })) : null, jsxs("div", { className: "flex flex-col items-center gap-3xs", children: [description ? jsx("div", { className: styleMap.description, children: description }) : null, jsx(List, { className: styleMap.description, items: items, listItemSize: "M", isDotted: isDotted })] })] }), button?.text && !isMainButton ? (jsx(LinkButton, { className: "box-border py-s w-full max-w-60 mt-auto", version: version, ...button, children: button?.text })) : null] }, String(i)));
5218
5216
  };
5219
5217
  const getContainerWidth = (length) => (length < 5 ? 'w-72' : 'w-52');
5220
5218
 
@@ -5829,7 +5827,7 @@
5829
5827
  return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
5830
5828
  }
5831
5829
 
5832
- const packageVersion = "0.14.70";
5830
+ const packageVersion = "0.14.72";
5833
5831
 
5834
5832
  exports.Blocks = Blocks;
5835
5833
  exports.ContentPage = ContentPage;