@redneckz/wildless-cms-uni-blocks 0.14.543 → 0.14.545

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 (54) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +7 -7
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +1 -1
  5. package/dist/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +1 -1
  6. package/dist/components/OfficesAtmsMap/renderDescriptionBlock.js +1 -1
  7. package/dist/components/OfficesAtmsMap/renderDescriptionBlock.js.map +1 -1
  8. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
  9. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  10. package/dist/components/TextBlock/TextBlock.js +1 -1
  11. package/dist/components/TextBlock/TextBlock.js.map +1 -1
  12. package/dist/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
  13. package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  14. package/lib/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +1 -1
  15. package/lib/components/OfficesAtmsMap/renderDescriptionBlock.js +1 -1
  16. package/lib/components/OfficesAtmsMap/renderDescriptionBlock.js.map +1 -1
  17. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
  18. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  19. package/lib/components/TextBlock/TextBlock.js +1 -1
  20. package/lib/components/TextBlock/TextBlock.js.map +1 -1
  21. package/lib/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
  22. package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  23. package/mobile/bundle/bundle.umd.js +7 -7
  24. package/mobile/bundle/bundle.umd.min.js +1 -1
  25. package/mobile/bundle/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +1 -1
  26. package/mobile/dist/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +1 -1
  27. package/mobile/dist/components/OfficesAtmsMap/renderDescriptionBlock.js +1 -1
  28. package/mobile/dist/components/OfficesAtmsMap/renderDescriptionBlock.js.map +1 -1
  29. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
  30. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  31. package/mobile/dist/components/TextBlock/TextBlock.js +1 -1
  32. package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
  33. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
  34. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  35. package/mobile/lib/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +1 -1
  36. package/mobile/lib/components/OfficesAtmsMap/renderDescriptionBlock.js +1 -1
  37. package/mobile/lib/components/OfficesAtmsMap/renderDescriptionBlock.js.map +1 -1
  38. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
  39. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  40. package/mobile/lib/components/TextBlock/TextBlock.js +1 -1
  41. package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
  42. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
  43. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  44. package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +10 -3
  45. package/mobile/src/components/OfficesAtmsMap/renderDescriptionBlock.tsx +2 -2
  46. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +5 -3
  47. package/mobile/src/components/TextBlock/TextBlock.tsx +2 -2
  48. package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +2 -0
  49. package/package.json +1 -1
  50. package/src/components/ApplicationForm/ApplicationForm.example.json +10 -3
  51. package/src/components/OfficesAtmsMap/renderDescriptionBlock.tsx +2 -2
  52. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +5 -3
  53. package/src/components/TextBlock/TextBlock.tsx +2 -2
  54. package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +2 -0
@@ -737,11 +737,11 @@
737
737
  };
738
738
  const BaseProductTile = JSX(
739
739
  // eslint-disable-next-line max-lines-per-function
740
- ({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left', benefitsVersion, isTabularBenefits, isDotted = true, benefits, __html, isFullWidthTitle, priceList = [], tags = [], buttons, image, imageOptions: { imageAlign = 'center', directionRight = true, isImageAlwaysOnRight, isImageSecondary = false, } = {}, backwardButton, children, ...rest }) => {
740
+ ({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left', benefitsVersion, isTabularBenefits, isDotted = true, benefits, __html, richVersion, isFullWidthTitle, priceList = [], tags = [], buttons, image, imageOptions: { imageAlign = 'center', directionRight = true, isImageAlwaysOnRight, isImageSecondary = false, } = {}, backwardButton, children, ...rest }) => {
741
741
  const img = image?.src ? jsx(Img, { image: image }) : null;
742
742
  const headline = (jsx(Headline, { title: title, description: description, headlineVersion: headlineVersion, align: align, isEmbedded: true }));
743
743
  const filteredBenefits = benefits?.filter((_) => '__html' in _ || 'label' in _ || 'description' in _);
744
- return (jsx(BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isFullWidthTitle ? { title: headline } : { insetTitle: headline }), ...leftOrRightImage(img, directionRight), isImageSecondary: isImageSecondary, imageAlign: imageAlign, isImageAlwaysOnRight: isImageAlwaysOnRight, buttons: renderButtonsSection(buttons), backwardButton: backwardButton, ...rest, children: jsxs("div", { className: "flex flex-col sm:gap-xl gap-4xl", children: [filteredBenefits?.length ? (jsx(BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: filteredBenefits })) : null, __html ? (jsx(RichText, { __html: __html, isDotted: isDotted, itemSize: RICHTEXT_SIZE[headlineVersion] })) : null, children, priceList?.length ? jsx(PriceList, { priceList: priceList }) : null, renderTags(tags)] }) }));
744
+ return (jsx(BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isFullWidthTitle ? { title: headline } : { insetTitle: headline }), ...leftOrRightImage(img, directionRight), isImageSecondary: isImageSecondary, imageAlign: imageAlign, isImageAlwaysOnRight: isImageAlwaysOnRight, buttons: renderButtonsSection(buttons), backwardButton: backwardButton, ...rest, children: jsxs("div", { className: "flex flex-col sm:gap-xl gap-4xl", children: [filteredBenefits?.length ? (jsx(BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: filteredBenefits })) : null, __html ? (jsx(RichText, { richVersion: richVersion, __html: __html, isDotted: isDotted, itemSize: RICHTEXT_SIZE[headlineVersion] })) : null, children, priceList?.length ? jsx(PriceList, { priceList: priceList }) : null, renderTags(tags)] }) }));
745
745
  });
746
746
  const leftOrRightImage = (img, directionRight) => directionRight ? { rightImage: img } : { leftImage: img };
747
747
  const renderTags = (tags) => (tags?.length ? jsx(Tags, { tags: tags }) : null);
@@ -5302,7 +5302,7 @@
5302
5302
  const mapByIndex = (points, index) => points.map((_) => _.coords?.[index]);
5303
5303
  const getArraySumAndAverage = (arr) => arr.length && arr.reduce((a, b) => a + b) / arr.length;
5304
5304
 
5305
- const renderDescriptionBlock$1 = ({ __html, list }) => __html || list?.length ? (jsxs("div", { className: "mb-2xl border-b sm:border border-main-divider sm:rounded-md", children: [__html ? (jsx("div", { className: "mb-2xl", children: jsx(RichText, { __html: __html }) })) : null, list?.length ? (jsx("div", { className: "flex flex-col sm:flex-row gap-2xl sm:flex-wrap pb-2xl sm:pb-xl", children: list.map((item, i) => (jsxs("div", { className: "flex gap-xs items-center", children: [item?.image ? jsx(Img, { image: item.image }) : null, item?.text ? (jsx(Text, { size: "text-m", font: "font-light", children: item.text })) : null] }, String(i)))) })) : null] })) : null;
5305
+ const renderDescriptionBlock$1 = ({ __html, list, richVersion }) => __html || list?.length ? (jsxs("div", { className: "mb-2xl border-b sm:border border-main-divider sm:rounded-md", children: [__html ? (jsx("div", { className: "mb-2xl", children: jsx(RichText, { __html: __html, richVersion: richVersion }) })) : null, list?.length ? (jsx("div", { className: "flex flex-col sm:flex-row gap-2xl sm:flex-wrap pb-2xl sm:pb-xl", children: list.map((item, i) => (jsxs("div", { className: "flex gap-xs items-center", children: [item?.image ? jsx(Img, { image: item.image }) : null, item?.text ? (jsx(Text, { size: "text-m", font: "font-light", children: item.text })) : null] }, String(i)))) })) : null] })) : null;
5306
5306
 
5307
5307
  const FILTRATION_LABELS = {
5308
5308
  safeBoxCaseVolumes: 'Аренда индивидуальных сейфовых ячеек',
@@ -5751,7 +5751,7 @@
5751
5751
  return (jsxs("button", { type: "button", onClick: () => onClick(i), "aria-label": nav?.title, className: style('relative overflow-hidden grow', 'ml-xs px-xl', 'box-border basis-0 border', 'border-gray group-data-secondary:border-white/50', 'text-left whitespace-nowrap', btnClassName), children: [jsx("div", { className: btnTitleClassName, children: nav?.title }), jsx("div", { className: btnDescClassName, children: nav?.description })] }, String(i)));
5752
5752
  };
5753
5753
 
5754
- const RepresentativeOfficeInfo = JSX(({ address, email, telephone, button, className = '', __html, icon, title, version = 'primary', ...rest }) => (jsxs(BlockWrapper, { className: style('box-border text-left space-y-s', className), version: version, ...rest, children: [jsxs("div", { className: "w-full flex justify-between flex-row-reverse", children: [isIcon(icon) ? (jsx("div", { className: 'w-10 h-7 sm:w-24 sm:h-16', children: jsx(Img, { image: icon }) })) : null, title ? jsx(Heading, { headingType: "h3", as: "h3", title: title }) : null] }), jsxs("div", { className: "w-full space-y-m", children: [__html ? renderDescriptionBlock(__html) : null, renderBlock({
5754
+ const RepresentativeOfficeInfo = JSX(({ address, email, telephone, button, className = '', __html, richVersion, icon, title, version = 'primary', ...rest }) => (jsxs(BlockWrapper, { className: style('box-border text-left space-y-s', className), version: version, ...rest, children: [jsxs("div", { className: "w-full flex justify-between flex-row-reverse", children: [isIcon(icon) ? (jsx("div", { className: 'w-10 h-7 sm:w-24 sm:h-16', children: jsx(Img, { image: icon }) })) : null, title ? jsx(Heading, { headingType: "h3", as: "h3", title: title }) : null] }), jsxs("div", { className: "w-full space-y-m", children: [__html ? renderDescriptionBlock({ __html, richVersion }) : null, renderBlock({
5755
5755
  label: 'Адрес',
5756
5756
  data: address,
5757
5757
  iconName: 'GeolocationIcon',
@@ -5761,7 +5761,7 @@
5761
5761
  iconName: 'MailIcon',
5762
5762
  dataColor: 'text-primary-main',
5763
5763
  }), button?.text ? renderButtonsSection([button]) : null] })] })));
5764
- const renderDescriptionBlock = (__html) => (jsx("div", { className: "border-b border-main-divider pb-lg", children: jsx(RichText, { __html: __html, itemSize: "list-s" }) }));
5764
+ const renderDescriptionBlock = (props) => (jsx("div", { className: "border-b border-main-divider pb-lg", children: jsx(RichText, { ...props, itemSize: "list-s" }) }));
5765
5765
  const renderBlock = ({ label, data, iconName, dataColor = '' }) => data ? (jsxs("div", { className: "flex gap-s", children: [jsx(Icon, { iconVersion: "black", name: iconName, width: "24", height: "24" }), jsxs("div", { className: "flex flex-col gap-2xs", children: [jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: label }), jsx(Text, { size: "text-xl", color: dataColor, children: data })] })] })) : null;
5766
5766
 
5767
5767
  const RichTextBlock = JSX((props) => {
@@ -6247,7 +6247,7 @@
6247
6247
  return (jsxs(BlockWrapper, { className: style('relative space-y-6xl @4xl:space-y-xl', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true, align: "text-center" }), jsx("div", { className: "space-y-m overflow-hidden", children: hiddenRowsNum > 0 ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs(TariffsTableWrapper, { controls: controls, children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] })), renderFoldButton: renderDefaultFoldButton })) : (jsx(TariffsTableWrapper, { controls: controls, children: rows })) })] }));
6248
6248
  });
6249
6249
 
6250
- const TextBlock = JSX(({ className = '', title, description, iconVersion, __html, ...rest }) => (jsxs(BlockWrapper, { className: style('flex gap-s sm:gap-m bg-white group-data-secondary:bg-primary-main/10', className), ...rest, children: [iconVersion === 'small' ? renderIcon() : null, jsxs("div", { className: "flex flex-col w-fit gap-2xs sm:gap-xs", children: [title ? (jsx(Text, { size: "text-l", font: "font-normal", color: "text-primary-text group-data-secondary:text-white", children: title })) : null, description ? renderDescription(description) : null, __html ? jsx(RichText, { __html: __html }) : null] })] })));
6250
+ const TextBlock = JSX(({ className = '', title, description, iconVersion, __html, richVersion, ...rest }) => (jsxs(BlockWrapper, { className: style('flex gap-s sm:gap-m bg-white group-data-secondary:bg-primary-main/10', className), ...rest, children: [iconVersion === 'small' ? renderIcon() : null, jsxs("div", { className: "flex flex-col w-fit gap-2xs sm:gap-xs", children: [title ? (jsx(Text, { size: "text-l", font: "font-normal", color: "text-primary-text group-data-secondary:text-white", children: title })) : null, description ? renderDescription(description) : null, __html ? jsx(RichText, { richVersion: richVersion, __html: __html }) : null] })] })));
6251
6251
  const renderIcon = () => (jsx("div", { className: `rounded-full h-4 w-4 text-center text-xs font-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main`, children: "i" }));
6252
6252
  const renderDescription = (description) => (jsx(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text group-data-secondary:text-white", children: description }));
6253
6253
 
@@ -6513,7 +6513,7 @@
6513
6513
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
6514
6514
  });
6515
6515
 
6516
- const packageVersion = "0.14.542";
6516
+ const packageVersion = "0.14.544";
6517
6517
 
6518
6518
  exports.Blocks = Blocks;
6519
6519
  exports.ContentPage = ContentPage;