@redneckz/wildless-cms-uni-blocks 0.14.544 → 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.
- package/bundle/bundle.umd.js +7 -7
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +1 -1
- package/dist/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +1 -1
- package/dist/components/OfficesAtmsMap/renderDescriptionBlock.js +1 -1
- package/dist/components/OfficesAtmsMap/renderDescriptionBlock.js.map +1 -1
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/dist/components/TextBlock/TextBlock.js +1 -1
- package/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/lib/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +1 -1
- package/lib/components/OfficesAtmsMap/renderDescriptionBlock.js +1 -1
- package/lib/components/OfficesAtmsMap/renderDescriptionBlock.js.map +1 -1
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/lib/components/TextBlock/TextBlock.js +1 -1
- package/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +7 -7
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderDescriptionBlock.js +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderDescriptionBlock.js.map +1 -1
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/mobile/dist/components/TextBlock/TextBlock.js +1 -1
- package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderDescriptionBlock.js +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderDescriptionBlock.js.map +1 -1
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/mobile/lib/components/TextBlock/TextBlock.js +1 -1
- package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/src/components/OfficesAtmsMap/renderDescriptionBlock.tsx +2 -2
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +5 -3
- package/mobile/src/components/TextBlock/TextBlock.tsx +2 -2
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +2 -0
- package/package.json +1 -1
- package/src/components/OfficesAtmsMap/renderDescriptionBlock.tsx +2 -2
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +5 -3
- package/src/components/TextBlock/TextBlock.tsx +2 -2
- package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +2 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type AtmsDef } from './OfficesAtmsMapContent';
|
|
3
|
-
export declare const renderDescriptionBlock: ({ __html, list }: AtmsDef) => JSX.Element | null;
|
|
3
|
+
export declare const renderDescriptionBlock: ({ __html, list, richVersion }: AtmsDef) => JSX.Element | null;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type AtmsDef } from './OfficesAtmsMapContent';
|
|
3
|
-
export declare const renderDescriptionBlock: ({ __html, list }: AtmsDef) => JSX.Element | null;
|
|
3
|
+
export declare const renderDescriptionBlock: ({ __html, list, richVersion }: AtmsDef) => JSX.Element | null;
|
|
@@ -4,6 +4,6 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
|
4
4
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
5
5
|
const RichText_1 = require("../../ui-kit/RichText/RichText");
|
|
6
6
|
const Text_1 = require("../../ui-kit/Text/Text");
|
|
7
|
-
const renderDescriptionBlock = ({ __html, list }) => __html || list?.length ? ((0, jsx_runtime_1.jsxs)("div", { className: "mb-2xl border-b sm:border border-main-divider sm:rounded-md", children: [__html ? ((0, jsx_runtime_1.jsx)("div", { className: "mb-2xl", children: (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html }) })) : null, list?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col sm:flex-row gap-2xl sm:flex-wrap pb-2xl sm:pb-xl", children: list.map((item, i) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-xs items-center", children: [item?.image ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: item.image }) : null, item?.text ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", children: item.text })) : null] }, String(i)))) })) : null] })) : null;
|
|
7
|
+
const renderDescriptionBlock = ({ __html, list, richVersion }) => __html || list?.length ? ((0, jsx_runtime_1.jsxs)("div", { className: "mb-2xl border-b sm:border border-main-divider sm:rounded-md", children: [__html ? ((0, jsx_runtime_1.jsx)("div", { className: "mb-2xl", children: (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html, richVersion: richVersion }) })) : null, list?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col sm:flex-row gap-2xl sm:flex-wrap pb-2xl sm:pb-xl", children: list.map((item, i) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-xs items-center", children: [item?.image ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: item.image }) : null, item?.text ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", children: item.text })) : null] }, String(i)))) })) : null] })) : null;
|
|
8
8
|
exports.renderDescriptionBlock = renderDescriptionBlock;
|
|
9
9
|
//# sourceMappingURL=renderDescriptionBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderDescriptionBlock.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderDescriptionBlock.tsx"],"names":[],"mappings":";;;AAAA,8CAA2C;AAC3C,6DAA0D;AAC1D,iDAA8C;AAGvC,MAAM,sBAAsB,GAAG,CAAC,EAAE,MAAM,EAAE,IAAI,EAAW,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"renderDescriptionBlock.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderDescriptionBlock.tsx"],"names":[],"mappings":";;;AAAA,8CAA2C;AAC3C,6DAA0D;AAC1D,iDAA8C;AAGvC,MAAM,sBAAsB,GAAG,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAW,EAAE,EAAE,CAC/E,MAAM,IAAI,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CACvB,iCAAK,SAAS,EAAC,6DAA6D,aACzE,MAAM,CAAC,CAAC,CAAC,CACR,gCAAK,SAAS,EAAC,QAAQ,YACrB,uBAAC,mBAAQ,IAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,GAAI,GAClD,CACP,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CACd,gCAAK,SAAS,EAAC,gEAAgE,YAC5E,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACrB,iCAAqB,SAAS,EAAC,0BAA0B,aACtD,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC/C,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CACZ,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,YAClC,IAAI,CAAC,IAAI,GACL,CACR,CAAC,CAAC,CAAC,IAAI,KANA,MAAM,CAAC,CAAC,CAAC,CAOb,CACP,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AAvBE,QAAA,sBAAsB,0BAuBxB"}
|
|
@@ -11,7 +11,7 @@ const RichText_1 = require("../../ui-kit/RichText/RichText");
|
|
|
11
11
|
const Text_1 = require("../../ui-kit/Text/Text");
|
|
12
12
|
const isIcon_1 = require("../../utils/isIcon");
|
|
13
13
|
const style_1 = require("../../utils/style");
|
|
14
|
-
exports.RepresentativeOfficeInfo = (0, uni_jsx_1.JSX)(({ address, email, telephone, button, className = '', __html, icon, title, version = 'primary', ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('box-border text-left space-y-s', className), version: version, ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "w-full flex justify-between flex-row-reverse", children: [(0, isIcon_1.isIcon)(icon) ? ((0, jsx_runtime_1.jsx)("div", { className: 'w-10 h-7 sm:w-24 sm:h-16', children: (0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon }) })) : null, title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", as: "h3", title: title }) : null] }), (0, jsx_runtime_1.jsxs)("div", { className: "w-full space-y-m", children: [__html ? renderDescriptionBlock(__html) : null, renderBlock({
|
|
14
|
+
exports.RepresentativeOfficeInfo = (0, uni_jsx_1.JSX)(({ address, email, telephone, button, className = '', __html, richVersion, icon, title, version = 'primary', ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('box-border text-left space-y-s', className), version: version, ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "w-full flex justify-between flex-row-reverse", children: [(0, isIcon_1.isIcon)(icon) ? ((0, jsx_runtime_1.jsx)("div", { className: 'w-10 h-7 sm:w-24 sm:h-16', children: (0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon }) })) : null, title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", as: "h3", title: title }) : null] }), (0, jsx_runtime_1.jsxs)("div", { className: "w-full space-y-m", children: [__html ? renderDescriptionBlock({ __html, richVersion }) : null, renderBlock({
|
|
15
15
|
label: 'Адрес',
|
|
16
16
|
data: address,
|
|
17
17
|
iconName: 'GeolocationIcon',
|
|
@@ -21,6 +21,6 @@ exports.RepresentativeOfficeInfo = (0, uni_jsx_1.JSX)(({ address, email, telepho
|
|
|
21
21
|
iconName: 'MailIcon',
|
|
22
22
|
dataColor: 'text-primary-main',
|
|
23
23
|
}), button?.text ? (0, renderButtonsSection_1.renderButtonsSection)([button]) : null] })] })));
|
|
24
|
-
const renderDescriptionBlock = (
|
|
24
|
+
const renderDescriptionBlock = (props) => ((0, jsx_runtime_1.jsx)("div", { className: "border-b border-main-divider pb-lg", children: (0, jsx_runtime_1.jsx)(RichText_1.RichText, { ...props, itemSize: "list-s" }) }));
|
|
25
25
|
const renderBlock = ({ label, data, iconName, dataColor = '' }) => data ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-s", children: [(0, jsx_runtime_1.jsx)(Icon_1.Icon, { iconVersion: "black", name: iconName, width: "24", height: "24" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-2xs", children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: label }), (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-xl", color: dataColor, children: data })] })] })) : null;
|
|
26
26
|
//# sourceMappingURL=RepresentativeOfficeInfo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RepresentativeOfficeInfo.js","sourceRoot":"","sources":["../../../src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,0DAAuD;AACvD,iDAA8C;AAC9C,8CAA2C;AAC3C,uFAAoF;AACpF,6DAA0D;
|
|
1
|
+
{"version":3,"file":"RepresentativeOfficeInfo.js","sourceRoot":"","sources":["../../../src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,0DAAuD;AACvD,iDAA8C;AAC9C,8CAA2C;AAC3C,uFAAoF;AACpF,6DAA0D;AAE1D,iDAA8C;AAG9C,+CAA4C;AAC5C,6CAA0C;AAO7B,QAAA,wBAAwB,GAAG,IAAA,aAAG,EACzC,CAAC,EACC,OAAO,EACP,KAAK,EACL,SAAS,EACT,MAAM,EACN,SAAS,GAAG,EAAE,EACd,MAAM,EACN,WAAW,EACX,IAAI,EACJ,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,GAAG,IAAI,EACR,EAAE,EAAE,CAAC,CACJ,wBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EAAC,gCAAgC,EAAE,SAAS,CAAC,EAC7D,OAAO,EAAE,OAAO,KACZ,IAAI,aAER,iCAAK,SAAS,EAAC,8CAA8C,aAC1D,IAAA,eAAM,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CACd,gCAAK,SAAS,EAAE,0BAA0B,YACx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EAAC,OAAO,EAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,EACnE,iCAAK,SAAS,EAAC,uBAAuB,aACpC,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,qBAAqB,YAC9D,KAAK,GACD,EACP,uBAAC,WAAI,IAAC,IAAI,EAAC,SAAS,EAAC,KAAK,EAAE,SAAS,YAClC,IAAI,GACA,IACH,IACF,CACP,CAAC,CAAC,CAAC,IAAI,CAAC"}
|
|
@@ -7,7 +7,7 @@ const Paragraph_1 = require("../../ui-kit/Paragraph/Paragraph");
|
|
|
7
7
|
const RichText_1 = require("../../ui-kit/RichText/RichText");
|
|
8
8
|
const Text_1 = require("../../ui-kit/Text/Text");
|
|
9
9
|
const style_1 = require("../../utils/style");
|
|
10
|
-
exports.TextBlock = (0, uni_jsx_1.JSX)(({ className = '', title, description, iconVersion, __html, ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('flex gap-s sm:gap-m bg-white group-data-secondary:bg-primary-main/10', className), ...rest, children: [iconVersion === 'small' ? renderIcon() : null, (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col w-fit gap-2xs sm:gap-xs", children: [title ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-l", font: "font-normal", color: "text-primary-text group-data-secondary:text-white", children: title })) : null, description ? renderDescription(description) : null, __html ? (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html }) : null] })] })));
|
|
10
|
+
exports.TextBlock = (0, uni_jsx_1.JSX)(({ className = '', title, description, iconVersion, __html, richVersion, ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('flex gap-s sm:gap-m bg-white group-data-secondary:bg-primary-main/10', className), ...rest, children: [iconVersion === 'small' ? renderIcon() : null, (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col w-fit gap-2xs sm:gap-xs", children: [title ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-l", font: "font-normal", color: "text-primary-text group-data-secondary:text-white", children: title })) : null, description ? renderDescription(description) : null, __html ? (0, jsx_runtime_1.jsx)(RichText_1.RichText, { richVersion: richVersion, __html: __html }) : null] })] })));
|
|
11
11
|
const renderIcon = () => ((0, jsx_runtime_1.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" }));
|
|
12
12
|
const renderDescription = (description) => ((0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text group-data-secondary:text-white", children: description }));
|
|
13
13
|
//# sourceMappingURL=TextBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextBlock.js","sourceRoot":"","sources":["../../../src/components/TextBlock/TextBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,4DAAyD;AACzD,gEAA6D;AAC7D,6DAA0D;AAC1D,iDAA8C;AAE9C,6CAA0C;AAK7B,QAAA,SAAS,GAAG,IAAA,aAAG,EAC1B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"TextBlock.js","sourceRoot":"","sources":["../../../src/components/TextBlock/TextBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,4DAAyD;AACzD,gEAA6D;AAC7D,6DAA0D;AAC1D,iDAA8C;AAE9C,6CAA0C;AAK7B,QAAA,SAAS,GAAG,IAAA,aAAG,EAC1B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CACrF,wBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EACd,sEAAsE,EACtE,SAAS,CACV,KACG,IAAI,aAEP,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,IAAI,EAC9C,iCAAK,SAAS,EAAC,uCAAuC,aACnD,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,WAAI,IACH,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,aAAa,EAClB,KAAK,EAAC,mDAAmD,YAExD,KAAK,GACD,CACR,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,EACnD,MAAM,CAAC,CAAC,CAAC,uBAAC,mBAAQ,IAAC,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,GAAI,CAAC,CAAC,CAAC,IAAI,IACnE,IACO,CAChB,CACF,CAAC;AAEF,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC,CACvB,gCACE,SAAS,EAAE,qJAAqJ,kBAG5J,CACP,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,WAAmB,EAAE,EAAE,CAAC,CACjD,uBAAC,qBAAS,IACR,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,YAAY,EACjB,KAAK,EAAC,qDAAqD,YAE1D,WAAW,GACF,CACb,CAAC"}
|
|
@@ -20,11 +20,11 @@ const RICHTEXT_SIZE = {
|
|
|
20
20
|
};
|
|
21
21
|
exports.BaseProductTile = (0, uni_jsx_1.JSX)(
|
|
22
22
|
// eslint-disable-next-line max-lines-per-function
|
|
23
|
-
({ 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 }) => {
|
|
23
|
+
({ 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 }) => {
|
|
24
24
|
const img = image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: image }) : null;
|
|
25
25
|
const headline = ((0, jsx_runtime_1.jsx)(Headline_1.Headline, { title: title, description: description, headlineVersion: headlineVersion, align: align, isEmbedded: true }));
|
|
26
26
|
const filteredBenefits = benefits?.filter((_) => '__html' in _ || 'label' in _ || 'description' in _);
|
|
27
|
-
return ((0, jsx_runtime_1.jsx)(BaseTile_1.BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isFullWidthTitle ? { title: headline } : { insetTitle: headline }), ...(0, exports.leftOrRightImage)(img, directionRight), isImageSecondary: isImageSecondary, imageAlign: imageAlign, isImageAlwaysOnRight: isImageAlwaysOnRight, buttons: (0, renderButtonsSection_1.renderButtonsSection)(buttons), backwardButton: backwardButton, ...rest, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col sm:gap-xl gap-4xl", children: [filteredBenefits?.length ? ((0, jsx_runtime_1.jsx)(BenefitsList_1.BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: filteredBenefits })) : null, __html ? ((0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html, isDotted: isDotted, itemSize: RICHTEXT_SIZE[headlineVersion] })) : null, children, priceList?.length ? (0, jsx_runtime_1.jsx)(PriceList_1.PriceList, { priceList: priceList }) : null, renderTags(tags)] }) }));
|
|
27
|
+
return ((0, jsx_runtime_1.jsx)(BaseTile_1.BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isFullWidthTitle ? { title: headline } : { insetTitle: headline }), ...(0, exports.leftOrRightImage)(img, directionRight), isImageSecondary: isImageSecondary, imageAlign: imageAlign, isImageAlwaysOnRight: isImageAlwaysOnRight, buttons: (0, renderButtonsSection_1.renderButtonsSection)(buttons), backwardButton: backwardButton, ...rest, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col sm:gap-xl gap-4xl", children: [filteredBenefits?.length ? ((0, jsx_runtime_1.jsx)(BenefitsList_1.BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: filteredBenefits })) : null, __html ? ((0, jsx_runtime_1.jsx)(RichText_1.RichText, { richVersion: richVersion, __html: __html, isDotted: isDotted, itemSize: RICHTEXT_SIZE[headlineVersion] })) : null, children, priceList?.length ? (0, jsx_runtime_1.jsx)(PriceList_1.PriceList, { priceList: priceList }) : null, renderTags(tags)] }) }));
|
|
28
28
|
});
|
|
29
29
|
const leftOrRightImage = (img, directionRight) => directionRight ? { rightImage: img } : { leftImage: img };
|
|
30
30
|
exports.leftOrRightImage = leftOrRightImage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseProductTile.js","sourceRoot":"","sources":["../../../src/ui-kit/BaseProductTile/BaseProductTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iEAA8D;AAI9D,mDAAgD;AAChD,+DAA4D;AAC5D,oCAAiC;AACjC,6EAA0E;AAC1E,sDAAmD;AACnD,mDAAgD;AAEhD,uCAAoC;AAGpC,MAAM,aAAa,GAA8C;IAC/D,GAAG,EAAE,QAAQ;IACb,EAAE,EAAE,QAAQ;IACZ,CAAC,EAAE,QAAQ;IACX,CAAC,EAAE,QAAQ;IACX,CAAC,EAAE,QAAQ;IACX,EAAE,EAAE,QAAQ;CACb,CAAC;AAKW,QAAA,eAAe,GAAG,IAAA,aAAG;AAChC,kDAAkD;AAClD,CAAC,EACC,SAAS,EACT,OAAO,EACP,cAAc,EACd,KAAK,EACL,WAAW,EACX,eAAe,GAAG,GAAG,EACrB,KAAK,GAAG,WAAW,E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,MAAM,UAAU,GAAG,CAAC,IAAc,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,uBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type AtmsDef } from './OfficesAtmsMapContent';
|
|
3
|
-
export declare const renderDescriptionBlock: ({ __html, list }: AtmsDef) => JSX.Element | null;
|
|
3
|
+
export declare const renderDescriptionBlock: ({ __html, list, richVersion }: AtmsDef) => JSX.Element | null;
|
|
@@ -2,5 +2,5 @@ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
|
2
2
|
import { Img } from '../../ui-kit/Img/Img.js';
|
|
3
3
|
import { RichText } from '../../ui-kit/RichText/RichText.js';
|
|
4
4
|
import { Text } from '../../ui-kit/Text/Text.js';
|
|
5
|
-
export const renderDescriptionBlock = ({ __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;
|
|
5
|
+
export const renderDescriptionBlock = ({ __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;
|
|
6
6
|
//# sourceMappingURL=renderDescriptionBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderDescriptionBlock.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderDescriptionBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAG9C,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,EAAE,MAAM,EAAE,IAAI,EAAW,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"renderDescriptionBlock.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderDescriptionBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAG9C,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAW,EAAE,EAAE,CAC/E,MAAM,IAAI,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CACvB,eAAK,SAAS,EAAC,6DAA6D,aACzE,MAAM,CAAC,CAAC,CAAC,CACR,cAAK,SAAS,EAAC,QAAQ,YACrB,KAAC,QAAQ,IAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,GAAI,GAClD,CACP,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CACd,cAAK,SAAS,EAAC,gEAAgE,YAC5E,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACrB,eAAqB,SAAS,EAAC,0BAA0B,aACtD,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,KAAC,GAAG,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC/C,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CACZ,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,YAClC,IAAI,CAAC,IAAI,GACL,CACR,CAAC,CAAC,CAAC,IAAI,KANA,MAAM,CAAC,CAAC,CAAC,CAOb,CACP,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC,CAAC,CAAC,IAAI,CAAC"}
|
|
@@ -9,7 +9,7 @@ import { RichText } from '../../ui-kit/RichText/RichText.js';
|
|
|
9
9
|
import { Text } from '../../ui-kit/Text/Text.js';
|
|
10
10
|
import { isIcon } from '../../utils/isIcon.js';
|
|
11
11
|
import { style } from '../../utils/style.js';
|
|
12
|
-
export 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({
|
|
12
|
+
export 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({
|
|
13
13
|
label: 'Адрес',
|
|
14
14
|
data: address,
|
|
15
15
|
iconName: 'GeolocationIcon',
|
|
@@ -19,6 +19,6 @@ export const RepresentativeOfficeInfo = JSX(({ address, email, telephone, button
|
|
|
19
19
|
iconName: 'MailIcon',
|
|
20
20
|
dataColor: 'text-primary-main',
|
|
21
21
|
}), button?.text ? renderButtonsSection([button]) : null] })] })));
|
|
22
|
-
const renderDescriptionBlock = (
|
|
22
|
+
const renderDescriptionBlock = (props) => (_jsx("div", { className: "border-b border-main-divider pb-lg", children: _jsx(RichText, { ...props, itemSize: "list-s" }) }));
|
|
23
23
|
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;
|
|
24
24
|
//# sourceMappingURL=RepresentativeOfficeInfo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RepresentativeOfficeInfo.js","sourceRoot":"","sources":["../../../src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"RepresentativeOfficeInfo.js","sourceRoot":"","sources":["../../../src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE1D,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAG9C,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAO1C,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,CACzC,CAAC,EACC,OAAO,EACP,KAAK,EACL,SAAS,EACT,MAAM,EACN,SAAS,GAAG,EAAE,EACd,MAAM,EACN,WAAW,EACX,IAAI,EACJ,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,GAAG,IAAI,EACR,EAAE,EAAE,CAAC,CACJ,MAAC,YAAY,IACX,SAAS,EAAE,KAAK,CAAC,gCAAgC,EAAE,SAAS,CAAC,EAC7D,OAAO,EAAE,OAAO,KACZ,IAAI,aAER,eAAK,SAAS,EAAC,8CAA8C,aAC1D,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CACd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I,IAAC,WAAW,EAAC,OAAO,EAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,EACnE,eAAK,SAAS,EAAC,uBAAuB,aACpC,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,qBAAqB,YAC9D,KAAK,GACD,EACP,KAAC,IAAI,IAAC,IAAI,EAAC,SAAS,EAAC,KAAK,EAAE,SAAS,YAClC,IAAI,GACA,IACH,IACF,CACP,CAAC,CAAC,CAAC,IAAI,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { Paragraph } from '../../ui-kit/Paragraph/Paragraph.js';
|
|
|
5
5
|
import { RichText } from '../../ui-kit/RichText/RichText.js';
|
|
6
6
|
import { Text } from '../../ui-kit/Text/Text.js';
|
|
7
7
|
import { style } from '../../utils/style.js';
|
|
8
|
-
export 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] })] })));
|
|
8
|
+
export 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] })] })));
|
|
9
9
|
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" }));
|
|
10
10
|
const renderDescription = (description) => (_jsx(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text group-data-secondary:text-white", children: description }));
|
|
11
11
|
//# sourceMappingURL=TextBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextBlock.js","sourceRoot":"","sources":["../../../src/components/TextBlock/TextBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAK1C,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAC1B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"TextBlock.js","sourceRoot":"","sources":["../../../src/components/TextBlock/TextBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAK1C,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAC1B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CACrF,MAAC,YAAY,IACX,SAAS,EAAE,KAAK,CACd,sEAAsE,EACtE,SAAS,CACV,KACG,IAAI,aAEP,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,IAAI,EAC9C,eAAK,SAAS,EAAC,uCAAuC,aACnD,KAAK,CAAC,CAAC,CAAC,CACP,KAAC,IAAI,IACH,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,aAAa,EAClB,KAAK,EAAC,mDAAmD,YAExD,KAAK,GACD,CACR,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,EACnD,MAAM,CAAC,CAAC,CAAC,KAAC,QAAQ,IAAC,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,GAAI,CAAC,CAAC,CAAC,IAAI,IACnE,IACO,CAChB,CACF,CAAC;AAEF,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC,CACvB,cACE,SAAS,EAAE,qJAAqJ,kBAG5J,CACP,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,WAAmB,EAAE,EAAE,CAAC,CACjD,KAAC,SAAS,IACR,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,YAAY,EACjB,KAAK,EAAC,qDAAqD,YAE1D,WAAW,GACF,CACb,CAAC"}
|
|
@@ -18,11 +18,11 @@ const RICHTEXT_SIZE = {
|
|
|
18
18
|
};
|
|
19
19
|
export const BaseProductTile = JSX(
|
|
20
20
|
// eslint-disable-next-line max-lines-per-function
|
|
21
|
-
({ 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 }) => {
|
|
21
|
+
({ 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 }) => {
|
|
22
22
|
const img = image?.src ? _jsx(Img, { image: image }) : null;
|
|
23
23
|
const headline = (_jsx(Headline, { title: title, description: description, headlineVersion: headlineVersion, align: align, isEmbedded: true }));
|
|
24
24
|
const filteredBenefits = benefits?.filter((_) => '__html' in _ || 'label' in _ || 'description' in _);
|
|
25
|
-
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)] }) }));
|
|
25
|
+
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)] }) }));
|
|
26
26
|
});
|
|
27
27
|
export const leftOrRightImage = (img, directionRight) => directionRight ? { rightImage: img } : { leftImage: img };
|
|
28
28
|
const renderTags = (tags) => (tags?.length ? _jsx(Tags, { tags: tags }) : null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseProductTile.js","sourceRoot":"","sources":["../../../src/ui-kit/BaseProductTile/BaseProductTile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAI9D,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAGpC,MAAM,aAAa,GAA8C;IAC/D,GAAG,EAAE,QAAQ;IACb,EAAE,EAAE,QAAQ;IACZ,CAAC,EAAE,QAAQ;IACX,CAAC,EAAE,QAAQ;IACX,CAAC,EAAE,QAAQ;IACX,EAAE,EAAE,QAAQ;CACb,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,CAAC,CAAC,CAAC,IAAI,EACP,QAAQ,EACR,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,KAAC,SAAS,IAAC,SAAS,EAAE,SAAS,GAAI,CAAC,CAAC,CAAC,IAAI,EAC9D,UAAU,CAAC,IAAI,CAAC,IACb,GACG,CACZ,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,GAAU,EAAE,cAAuB,EAAE,EAAE,CACtE,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;AAE5D,MAAM,UAAU,GAAG,CAAC,IAAc,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -3,12 +3,12 @@ import { RichText } from '../../ui-kit/RichText/RichText';
|
|
|
3
3
|
import { Text } from '../../ui-kit/Text/Text';
|
|
4
4
|
import { type AtmsDef } from './OfficesAtmsMapContent';
|
|
5
5
|
|
|
6
|
-
export const renderDescriptionBlock = ({ __html, list }: AtmsDef) =>
|
|
6
|
+
export const renderDescriptionBlock = ({ __html, list, richVersion }: AtmsDef) =>
|
|
7
7
|
__html || list?.length ? (
|
|
8
8
|
<div className="mb-2xl border-b sm:border border-main-divider sm:rounded-md">
|
|
9
9
|
{__html ? (
|
|
10
10
|
<div className="mb-2xl">
|
|
11
|
-
<RichText __html={__html} />
|
|
11
|
+
<RichText __html={__html} richVersion={richVersion} />
|
|
12
12
|
</div>
|
|
13
13
|
) : null}
|
|
14
14
|
{list?.length ? (
|
|
@@ -6,6 +6,7 @@ import { Icon } from '../../ui-kit/Icon/Icon';
|
|
|
6
6
|
import { Img } from '../../ui-kit/Img/Img';
|
|
7
7
|
import { renderButtonsSection } from '../../ui-kit/LinkButton/renderButtonsSection';
|
|
8
8
|
import { RichText } from '../../ui-kit/RichText/RichText';
|
|
9
|
+
import { type RichTextProps } from '../../ui-kit/RichText/RichTextProps';
|
|
9
10
|
import { Text } from '../../ui-kit/Text/Text';
|
|
10
11
|
import { type TextColor } from '../../ui-kit/Text/TextProps';
|
|
11
12
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
@@ -25,6 +26,7 @@ export const RepresentativeOfficeInfo = JSX<RepresentativeOfficeInfoProps>(
|
|
|
25
26
|
button,
|
|
26
27
|
className = '',
|
|
27
28
|
__html,
|
|
29
|
+
richVersion,
|
|
28
30
|
icon,
|
|
29
31
|
title,
|
|
30
32
|
version = 'primary',
|
|
@@ -44,7 +46,7 @@ export const RepresentativeOfficeInfo = JSX<RepresentativeOfficeInfoProps>(
|
|
|
44
46
|
{title ? <Heading headingType="h3" as="h3" title={title} /> : null}
|
|
45
47
|
</div>
|
|
46
48
|
<div className="w-full space-y-m">
|
|
47
|
-
{__html ? renderDescriptionBlock(__html) : null}
|
|
49
|
+
{__html ? renderDescriptionBlock({ __html, richVersion }) : null}
|
|
48
50
|
{renderBlock({
|
|
49
51
|
label: 'Адрес',
|
|
50
52
|
data: address,
|
|
@@ -63,9 +65,9 @@ export const RepresentativeOfficeInfo = JSX<RepresentativeOfficeInfoProps>(
|
|
|
63
65
|
),
|
|
64
66
|
);
|
|
65
67
|
|
|
66
|
-
const renderDescriptionBlock = (
|
|
68
|
+
const renderDescriptionBlock = (props: RichTextProps) => (
|
|
67
69
|
<div className="border-b border-main-divider pb-lg">
|
|
68
|
-
<RichText
|
|
70
|
+
<RichText {...props} itemSize="list-s" />
|
|
69
71
|
</div>
|
|
70
72
|
);
|
|
71
73
|
|
|
@@ -10,7 +10,7 @@ import { type TextBlockContent } from './TextBlockContent';
|
|
|
10
10
|
export interface TextBlockProps extends TextBlockContent, UniBlockProps {}
|
|
11
11
|
|
|
12
12
|
export const TextBlock = JSX<TextBlockProps>(
|
|
13
|
-
({ className = '', title, description, iconVersion, __html, ...rest }) => (
|
|
13
|
+
({ className = '', title, description, iconVersion, __html, richVersion, ...rest }) => (
|
|
14
14
|
<BlockWrapper
|
|
15
15
|
className={style(
|
|
16
16
|
'flex gap-s sm:gap-m bg-white group-data-secondary:bg-primary-main/10',
|
|
@@ -30,7 +30,7 @@ export const TextBlock = JSX<TextBlockProps>(
|
|
|
30
30
|
</Text>
|
|
31
31
|
) : null}
|
|
32
32
|
{description ? renderDescription(description) : null}
|
|
33
|
-
{__html ? <RichText __html={__html} /> : null}
|
|
33
|
+
{__html ? <RichText richVersion={richVersion} __html={__html} /> : null}
|
|
34
34
|
</div>
|
|
35
35
|
</BlockWrapper>
|
|
36
36
|
),
|
|
@@ -40,6 +40,7 @@ export const BaseProductTile = JSX<BaseProductTileProps>(
|
|
|
40
40
|
isDotted = true,
|
|
41
41
|
benefits,
|
|
42
42
|
__html,
|
|
43
|
+
richVersion,
|
|
43
44
|
isFullWidthTitle,
|
|
44
45
|
priceList = [],
|
|
45
46
|
tags = [],
|
|
@@ -93,6 +94,7 @@ export const BaseProductTile = JSX<BaseProductTileProps>(
|
|
|
93
94
|
) : null}
|
|
94
95
|
{__html ? (
|
|
95
96
|
<RichText
|
|
97
|
+
richVersion={richVersion}
|
|
96
98
|
__html={__html}
|
|
97
99
|
isDotted={isDotted}
|
|
98
100
|
itemSize={RICHTEXT_SIZE[headlineVersion]}
|
package/package.json
CHANGED
|
@@ -3,12 +3,12 @@ import { RichText } from '../../ui-kit/RichText/RichText';
|
|
|
3
3
|
import { Text } from '../../ui-kit/Text/Text';
|
|
4
4
|
import { type AtmsDef } from './OfficesAtmsMapContent';
|
|
5
5
|
|
|
6
|
-
export const renderDescriptionBlock = ({ __html, list }: AtmsDef) =>
|
|
6
|
+
export const renderDescriptionBlock = ({ __html, list, richVersion }: AtmsDef) =>
|
|
7
7
|
__html || list?.length ? (
|
|
8
8
|
<div className="mb-2xl border-b sm:border border-main-divider sm:rounded-md">
|
|
9
9
|
{__html ? (
|
|
10
10
|
<div className="mb-2xl">
|
|
11
|
-
<RichText __html={__html} />
|
|
11
|
+
<RichText __html={__html} richVersion={richVersion} />
|
|
12
12
|
</div>
|
|
13
13
|
) : null}
|
|
14
14
|
{list?.length ? (
|
|
@@ -6,6 +6,7 @@ import { Icon } from '../../ui-kit/Icon/Icon';
|
|
|
6
6
|
import { Img } from '../../ui-kit/Img/Img';
|
|
7
7
|
import { renderButtonsSection } from '../../ui-kit/LinkButton/renderButtonsSection';
|
|
8
8
|
import { RichText } from '../../ui-kit/RichText/RichText';
|
|
9
|
+
import { type RichTextProps } from '../../ui-kit/RichText/RichTextProps';
|
|
9
10
|
import { Text } from '../../ui-kit/Text/Text';
|
|
10
11
|
import { type TextColor } from '../../ui-kit/Text/TextProps';
|
|
11
12
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
@@ -25,6 +26,7 @@ export const RepresentativeOfficeInfo = JSX<RepresentativeOfficeInfoProps>(
|
|
|
25
26
|
button,
|
|
26
27
|
className = '',
|
|
27
28
|
__html,
|
|
29
|
+
richVersion,
|
|
28
30
|
icon,
|
|
29
31
|
title,
|
|
30
32
|
version = 'primary',
|
|
@@ -44,7 +46,7 @@ export const RepresentativeOfficeInfo = JSX<RepresentativeOfficeInfoProps>(
|
|
|
44
46
|
{title ? <Heading headingType="h3" as="h3" title={title} /> : null}
|
|
45
47
|
</div>
|
|
46
48
|
<div className="w-full space-y-m">
|
|
47
|
-
{__html ? renderDescriptionBlock(__html) : null}
|
|
49
|
+
{__html ? renderDescriptionBlock({ __html, richVersion }) : null}
|
|
48
50
|
{renderBlock({
|
|
49
51
|
label: 'Адрес',
|
|
50
52
|
data: address,
|
|
@@ -63,9 +65,9 @@ export const RepresentativeOfficeInfo = JSX<RepresentativeOfficeInfoProps>(
|
|
|
63
65
|
),
|
|
64
66
|
);
|
|
65
67
|
|
|
66
|
-
const renderDescriptionBlock = (
|
|
68
|
+
const renderDescriptionBlock = (props: RichTextProps) => (
|
|
67
69
|
<div className="border-b border-main-divider pb-lg">
|
|
68
|
-
<RichText
|
|
70
|
+
<RichText {...props} itemSize="list-s" />
|
|
69
71
|
</div>
|
|
70
72
|
);
|
|
71
73
|
|
|
@@ -10,7 +10,7 @@ import { type TextBlockContent } from './TextBlockContent';
|
|
|
10
10
|
export interface TextBlockProps extends TextBlockContent, UniBlockProps {}
|
|
11
11
|
|
|
12
12
|
export const TextBlock = JSX<TextBlockProps>(
|
|
13
|
-
({ className = '', title, description, iconVersion, __html, ...rest }) => (
|
|
13
|
+
({ className = '', title, description, iconVersion, __html, richVersion, ...rest }) => (
|
|
14
14
|
<BlockWrapper
|
|
15
15
|
className={style(
|
|
16
16
|
'flex gap-s sm:gap-m bg-white group-data-secondary:bg-primary-main/10',
|
|
@@ -30,7 +30,7 @@ export const TextBlock = JSX<TextBlockProps>(
|
|
|
30
30
|
</Text>
|
|
31
31
|
) : null}
|
|
32
32
|
{description ? renderDescription(description) : null}
|
|
33
|
-
{__html ? <RichText __html={__html} /> : null}
|
|
33
|
+
{__html ? <RichText richVersion={richVersion} __html={__html} /> : null}
|
|
34
34
|
</div>
|
|
35
35
|
</BlockWrapper>
|
|
36
36
|
),
|
|
@@ -40,6 +40,7 @@ export const BaseProductTile = JSX<BaseProductTileProps>(
|
|
|
40
40
|
isDotted = true,
|
|
41
41
|
benefits,
|
|
42
42
|
__html,
|
|
43
|
+
richVersion,
|
|
43
44
|
isFullWidthTitle,
|
|
44
45
|
priceList = [],
|
|
45
46
|
tags = [],
|
|
@@ -93,6 +94,7 @@ export const BaseProductTile = JSX<BaseProductTileProps>(
|
|
|
93
94
|
) : null}
|
|
94
95
|
{__html ? (
|
|
95
96
|
<RichText
|
|
97
|
+
richVersion={richVersion}
|
|
96
98
|
__html={__html}
|
|
97
99
|
isDotted={isDotted}
|
|
98
100
|
itemSize={RICHTEXT_SIZE[headlineVersion]}
|