@redneckz/wildless-cms-uni-blocks 0.3.54 → 0.3.55
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 +10 -14
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/ComparisonTable/HeaderCell.js +1 -1
- package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/dist/components/ContentPage/ContentPageHead.js +1 -1
- package/dist/components/ContentPage/ContentPageHead.js.map +1 -1
- package/dist/components/Gallery/Gallery.mobile.js +1 -1
- package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
- package/dist/components/OtherProducts/OtherProducts.js +2 -2
- package/dist/components/OtherProducts/OtherProducts.js.map +1 -1
- package/dist/components/OtherProducts/OtherProductsItem.d.ts +2 -0
- package/dist/components/OtherProducts/OtherProductsItem.js +2 -2
- package/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
- package/dist/components/ProductTile/ProductTile.js +1 -1
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableCell.js +1 -1
- package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableTileCell.js +1 -1
- package/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/dist/ui-kit/Button/Button.js +2 -6
- package/dist/ui-kit/Button/Button.js.map +1 -1
- package/dist/ui-kit/List/ListItem.js +1 -1
- package/dist/ui-kit/List/ListItem.js.map +1 -1
- package/lib/components/ComparisonTable/HeaderCell.js +1 -1
- package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/lib/components/ContentPage/ContentPageHead.js +1 -1
- package/lib/components/ContentPage/ContentPageHead.js.map +1 -1
- package/lib/components/Gallery/Gallery.mobile.js +1 -1
- package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
- package/lib/components/OtherProducts/OtherProducts.js +2 -2
- package/lib/components/OtherProducts/OtherProducts.js.map +1 -1
- package/lib/components/OtherProducts/OtherProductsItem.d.ts +2 -0
- package/lib/components/OtherProducts/OtherProductsItem.js +2 -2
- package/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
- package/lib/components/ProductTile/ProductTile.js +1 -1
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableCell.js +1 -1
- package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableTileCell.js +1 -1
- package/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/lib/ui-kit/Button/Button.js +2 -6
- package/lib/ui-kit/Button/Button.js.map +1 -1
- package/lib/ui-kit/List/ListItem.js +1 -1
- package/lib/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +3 -3
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/ContentPage/ContentPageHead.js +1 -1
- package/mobile/dist/components/ContentPage/ContentPageHead.js.map +1 -1
- package/mobile/dist/components/Gallery/Gallery.js +1 -1
- package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
- package/mobile/dist/components/OtherProducts/OtherProducts.js +2 -2
- package/mobile/dist/components/OtherProducts/OtherProducts.js.map +1 -1
- package/mobile/dist/components/OtherProducts/OtherProductsItem.d.ts +2 -0
- package/mobile/dist/components/OtherProducts/OtherProductsItem.js +2 -2
- package/mobile/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/mobile/dist/ui-kit/List/ListItem.js +1 -1
- package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPageHead.js +1 -1
- package/mobile/lib/components/ContentPage/ContentPageHead.js.map +1 -1
- package/mobile/lib/components/Gallery/Gallery.js +1 -1
- package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
- package/mobile/lib/components/OtherProducts/OtherProducts.js +2 -2
- package/mobile/lib/components/OtherProducts/OtherProducts.js.map +1 -1
- package/mobile/lib/components/OtherProducts/OtherProductsItem.d.ts +2 -0
- package/mobile/lib/components/OtherProducts/OtherProductsItem.js +2 -2
- package/mobile/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/mobile/lib/ui-kit/List/ListItem.js +1 -1
- package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/src/components/ContentPage/ContentPageHead.tsx +5 -5
- package/mobile/src/components/Gallery/Gallery.tsx +1 -1
- package/mobile/src/components/Headline/Headline.example.json +3 -1
- package/mobile/src/components/OtherProducts/OtherProducts.tsx +8 -6
- package/mobile/src/components/OtherProducts/OtherProductsItem.tsx +6 -2
- package/mobile/src/components/ProductBlock/ProductBlock.example.json +9 -2
- package/mobile/src/components/ProductTile/ProductTile.example.json +2 -1
- package/mobile/src/components/ProductTile/ProductTile.tsx +3 -1
- package/mobile/src/components/PromoTile/PromoTile.example.json +2 -1
- package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +1 -1
- package/mobile/src/components/TariffsTable/TariffsTableTileCell.tsx +1 -1
- package/mobile/src/components/Tile/Tile.example.json +9 -2
- package/mobile/src/ui-kit/List/ListItem.tsx +1 -1
- package/package.json +1 -1
- package/src/components/ComparisonTable/HeaderCell.tsx +3 -1
- package/src/components/ContentPage/ContentPageHead.tsx +5 -5
- package/src/components/Gallery/Gallery.mobile.tsx +1 -1
- package/src/components/Headline/Headline.example.json +3 -1
- package/src/components/OtherProducts/OtherProducts.tsx +8 -6
- package/src/components/OtherProducts/OtherProductsItem.tsx +6 -2
- package/src/components/ProductBlock/ProductBlock.example.json +9 -2
- package/src/components/ProductTile/ProductTile.example.json +2 -1
- package/src/components/ProductTile/ProductTile.tsx +3 -1
- package/src/components/PromoTile/PromoTile.example.json +2 -1
- package/src/components/TariffsTable/TariffsTableCell.tsx +1 -1
- package/src/components/TariffsTable/TariffsTableTileCell.tsx +1 -1
- package/src/components/Tile/Tile.example.json +9 -2
- package/src/ui-kit/Button/Button.tsx +0 -7
- package/src/ui-kit/List/ListItem.tsx +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Gallery.js","sourceRoot":"","sources":["../../../src/components/Gallery/Gallery.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAKlF,MAAM,UAAU,GAAiC;IAC/C,OAAO,EAAE,UAAU;IACnB,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CACxB,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,GAAG,EAAE,EAAE,SAAS,EAAE,WAAW,GAAG,YAAY,EAAE,EAAE,EAAE;IACrF,OAAO,CACL,mBACE,SAAS,EAAE,2EAA2E,S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EAAE,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,KAAK,SAAG,KACrF,MAAM,GACV,CACH,CAAC;AACJ,CAAC;AAED,SAAS,iBAAiB,CAAC,IAAiB;IAC1C,OAAO,CACL,cACE,SAAS,EAAE,sCACT,IAAI,CAAC,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,EAC3D,EAAE,YAED,IAAI,CAAC,WAAW,GACb,CACP,CAAC;AACJ,CAAC;AAED,SAAS,WAAW,CAAC,KAAoB,EAAE,UAAwB,SAAS,EAAE,QAAQ;IACpF,OAAO,CACL,kBAAS,SAAS,EAAC,MAAM,YACtB,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,0BACG,QAAQ,CAAC,CAAC,CAAC,cAAK,SAAS,EAAE,YAAY,CAAC,OAAO,CAAC,GAAI,CAAC,CAAC,CAAC,IAAI,EAC5D,eAAM,SAAS,EAAC,uBAAuB,YAAE,IAAI,CAAC,KAAK,GAAQ,EAC3D,eAAM,SAAS,EAAE,kBAAkB,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,EAAE,YACpF,IAAI,CAAC,IAAI,GACL,KALC,MAAM,CAAC,CAAC,CAAC,CAMb,CACP,CAAC,GACM,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { OtherProductsItem } from './OtherProductsItem.js';
|
|
4
|
-
export const OtherProducts = JSX(({ blockItems, colorPalette, context, className =
|
|
5
|
-
return (_jsx("section", {
|
|
4
|
+
export const OtherProducts = JSX(({ blockItems, colorPalette, context, className = '' }) => {
|
|
5
|
+
return (_jsx("section", { className: `font-sans bg-white text-primary-text ${className}`, children: blockItems?.length ? (_jsx("div", { className: "list-none m-0 p-0", children: blockItems.map((item, i) => (_jsx(OtherProductsItem, { ...item, dataTheme: colorPalette, context: context }, `BlockItem${i}`))) })) : null }));
|
|
6
6
|
});
|
|
7
7
|
//# sourceMappingURL=OtherProducts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OtherProducts.js","sourceRoot":"","sources":["../../../src/components/OtherProducts/OtherProducts.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAIxD,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAC9B,CAAC,EAAE,UAAU,EAAE,YAAY,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE,EAAE;IACxD,OAAO,CACL,
|
|
1
|
+
{"version":3,"file":"OtherProducts.js","sourceRoot":"","sources":["../../../src/components/OtherProducts/OtherProducts.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAIxD,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAC9B,CAAC,EAAE,UAAU,EAAE,YAAY,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE,EAAE;IACxD,OAAO,CACL,kBAAS,SAAS,EAAE,wCAAwC,SAAS,EAAE,YACpE,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC,CACpB,cAAK,SAAS,EAAC,mBAAmB,YAC/B,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAC3B,KAAC,iBAAiB,OAEZ,IAAI,EACR,SAAS,EAAE,YAAY,EACvB,OAAO,EAAE,OAAO,IAHX,YAAY,CAAC,EAAE,CAIpB,CACH,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,GACA,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { UniBlockProps } from '../../types';
|
|
2
2
|
import type { BlockItemCommonProps } from './OtherProductsContent';
|
|
3
|
+
import { ColorPalette } from '../../types';
|
|
3
4
|
export interface BlockItemProps extends BlockItemCommonProps, UniBlockProps {
|
|
5
|
+
dataTheme?: ColorPalette;
|
|
4
6
|
}
|
|
5
7
|
export declare const OtherProductsItem: (props: import("@redneckz/uni-jsx").PropsWithChildren<BlockItemProps, any>, context?: any) => any;
|
|
@@ -3,12 +3,12 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
3
3
|
import { Icon } from '../../ui-kit/Icon/Icon.js';
|
|
4
4
|
import { OtherProductsItemInner } from './OtherProductsItemInner.js';
|
|
5
5
|
import { useActiveHandler } from './useActiveHandler.js';
|
|
6
|
-
export const OtherProductsItem = JSX(({ label, isExpanded, blocks, columns, context }) => {
|
|
6
|
+
export const OtherProductsItem = JSX(({ label, isExpanded, blocks, columns, dataTheme = null, context }) => {
|
|
7
7
|
const { hasContent, icon, handleToggle, isActive } = useActiveHandler({
|
|
8
8
|
context,
|
|
9
9
|
blocks,
|
|
10
10
|
initialState: isExpanded,
|
|
11
11
|
});
|
|
12
|
-
return (_jsxs("div", { className: "border-0 border-b border-solid border-main-divider", children: [hasContent ? (_jsx(OtherProductsItemInner, { isExpanded: isActive, columns: columns, blocks: blocks, context: context })) : null, _jsxs("button", { className: "border-none bg-primary-main px-0 py-[26px] mb-[1px] w-full font-sans text-white text-base flex justify-center cursor-pointer", onClick: handleToggle, children: [_jsx("span", { className: "pr-3", children: isActive ? 'Скрыть' : label }), hasContent ? _jsx(Icon, { name: icon, width: "20", height: "20", asSVG: true }) : null] })] }));
|
|
12
|
+
return (_jsxs("div", { className: "border-0 border-b border-solid border-main-divider", children: [hasContent ? (_jsx(OtherProductsItemInner, { isExpanded: isActive, columns: columns, blocks: blocks, context: context })) : null, _jsxs("button", { className: "border-none bg-primary-main px-0 py-[26px] mb-[1px] w-full font-sans text-white text-base flex justify-center cursor-pointer", "data-theme": dataTheme, onClick: handleToggle, children: [_jsx("span", { className: "pr-3", children: isActive ? 'Скрыть' : label }), hasContent ? _jsx(Icon, { name: icon, width: "20", height: "20", asSVG: true }) : null] })] }));
|
|
13
13
|
});
|
|
14
14
|
//# sourceMappingURL=OtherProductsItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OtherProductsItem.js","sourceRoot":"","sources":["../../../src/components/OtherProducts/OtherProductsItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"OtherProductsItem.js","sourceRoot":"","sources":["../../../src/components/OtherProducts/OtherProductsItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAOtD,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAClC,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE;IACpE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,GAAG,gBAAgB,CAAC;QACpE,OAAO;QACP,MAAM;QACN,YAAY,EAAE,UAAU;KACzB,CAAC,CAAC;IAEH,OAAO,CACL,eAAK,SAAS,EAAC,oDAAoD,aAChE,UAAU,CAAC,CAAC,CAAC,CACZ,KAAC,sBAAsB,IACrB,UAAU,EAAE,QAAQ,EACpB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,GAChB,CACH,CAAC,CAAC,CAAC,IAAI,EACR,kBACE,SAAS,EAAC,8HAA8H,gBAC5H,SAAS,EACrB,OAAO,EAAE,YAAY,aAErB,eAAM,SAAS,EAAC,MAAM,YAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,GAAQ,EAC1D,UAAU,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CAAC,CAAC,CAAC,IAAI,IAC/D,IACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -12,7 +12,7 @@ const productTileStyleMap = {
|
|
|
12
12
|
secondary: 'bg-primary-main text-white',
|
|
13
13
|
};
|
|
14
14
|
export const ProductTile = JSX(({ context, className = '', title, headingType = 'h3', description, benefits, buttons, image, version = 'primary', anchor = null, }) => {
|
|
15
|
-
return (_jsx("section", { className: `bg-white overflow-hidden text-primary-text font-sans p-9 box-border ${className} ${productTileStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, id: anchor, children: _jsxs(BaseTile, { context: context, title: title && (_jsx(Heading, { headingType: headingType, as: "h3", title: title, className: `whitespace-pre-wrap max-w-[600px]` })), buttons: buttons?.length ? (_jsx(ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null, image: image?.src && _jsx(Img, { className: "mt-auto ml-7", image: image }), children: [description
|
|
15
|
+
return (_jsx("section", { className: `bg-white overflow-hidden text-primary-text font-sans p-9 box-border ${className} ${productTileStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, id: anchor, children: _jsxs(BaseTile, { context: context, title: title && (_jsx(Heading, { headingType: headingType, as: "h3", title: title, className: `whitespace-pre-wrap max-w-[600px]` })), buttons: buttons?.length ? (_jsx(ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null, image: image?.src && _jsx(Img, { className: "mt-auto ml-7", image: image }), children: [description ? (_jsx(Description, { className: "mt-4 max-w-[600px]", description: description })) : null, _jsxs("div", { className: "flex mt-5 mb-1", children: [benefits?.length ? (_jsx("div", { className: "mr-8", children: benefits.map(renderBenefitLabel) })) : null, benefits?.length ? (_jsx("div", { className: "pt-1", children: benefits.map((_, i) => renderBenefitDescription(_, i, version)) })) : null] })] }) }));
|
|
16
16
|
});
|
|
17
17
|
function renderBenefitLabel(benefit, i) {
|
|
18
18
|
return (_jsx("div", { className: `text-xl font-medium ${i ? 'mt-2.5' : ''}`, children: benefit.label }, String(i)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductTile.js","sourceRoot":"","sources":["../../../src/components/ProductTile/ProductTile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAMtE,MAAM,mBAAmB,GAAiC;IACxD,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAC5B,CAAC,EACC,OAAO,EACP,SAAS,GAAG,EAAE,EACd,KAAK,EACL,WAAW,GAAG,IAAI,EAClB,WAAW,EACX,QAAQ,EACR,OAAO,EACP,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,MAAM,GAAG,IAAI,GACd,EAAE,EAAE;IACH,OAAO,CACL,kBACE,SAAS,EAAE,uEAAuE,SAAS,IACzF,mBAAmB,CAAC,OAAO,CAC7B,IAAI,mBAAmB,CAAC,SAAS,CAAC,IAAI,gBAAgB,CAAC,SAAS,CAAC,GAAG,EACpE,EAAE,EAAE,MAAM,YAEV,MAAC,QAAQ,IACP,OAAO,EAAE,OAAO,EAChB,KAAK,EACH,KAAK,IAAI,CACP,KAAC,OAAO,IACN,WAAW,EAAE,WAAW,EACxB,EAAE,EAAC,IAAI,EACP,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,mCAAmC,GAC9C,CACH,EAEH,OAAO,EACL,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAChB,KAAC,aAAa,IAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAC,iBAAiB,GAAG,CAClF,CAAC,CAAC,CAAC,IAAI,EAEV,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,KAAC,GAAG,IAAC,SAAS,EAAC,cAAc,EAAC,KAAK,EAAE,KAAK,GAAI,aAElE,WAAW,
|
|
1
|
+
{"version":3,"file":"ProductTile.js","sourceRoot":"","sources":["../../../src/components/ProductTile/ProductTile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAA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ACR,eAAK,SAAS,EAAC,gBAAgB,aAC5B,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,CAClB,cAAK,SAAS,EAAC,MAAM,YAAE,QAAQ,CAAC,GAAG,CAAC,kBAAkB,CAAC,GAAO,CAC/D,CAAC,CAAC,CAAC,IAAI,EACP,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,CAClB,cAAK,SAAS,EAAC,MAAM,YAClB,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,wBAAwB,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC,GAC5D,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,IACG,GACH,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,kBAAkB,CAAC,OAAgB,EAAE,CAAS;IACrD,OAAO,CACL,cAAqB,SAAS,EAAE,uBAAuB,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,YACvE,OAAO,CAAC,KAAK,IADN,MAAM,CAAC,CAAC,CAAC,CAEb,CACP,CAAC;AACJ,CAAC;AAED,SAAS,wBAAwB,CAAC,OAAgB,EAAE,CAAS,EAAE,OAAO,GAAG,SAAS;IAChF,MAAM,aAAa,GAAiC;QAClD,OAAO,EAAE,qBAAqB;QAC9B,SAAS,EAAE,YAAY;KACxB,CAAC;IACF,OAAO,CACL,cAAqB,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,aAAa,CAAC,OAAO,CAAC,EAAE,YACnF,OAAO,CAAC,WAAW,IADZ,MAAM,CAAC,CAAC,CAAC,CAEb,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -8,7 +8,7 @@ export const TariffsTableCell = JSX(({ cell, isLastRow }) => {
|
|
|
8
8
|
const cellWrapperClasses = `first:pl-0 pl-10 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0 ${isLastRow ? 'border-t-0 rounded-b-md' : ''}`;
|
|
9
9
|
return (_jsx("div", { className: cellWrapperClasses, role: "cell", children: _jsx("div", { children: cell.map(renderCellInner) }) }));
|
|
10
10
|
});
|
|
11
|
-
const renderCellInner = ({ label, description, list, image, buttons }, i) => (_jsxs("div", { className: "first:pt-5 last:pb-5", children: [i > 0 && (_jsx("div", { className: "border-main-divider border border-solid border-t-0 border-x-0 my-4" })), label ? _jsx("div", { className: "text-xl font-medium m-0", children: label }) : null, description ? _jsx("div", { className: "text-sm text-secondary-text", children: description }) : null, list?.items?.length ? renderList(list) : null, image
|
|
11
|
+
const renderCellInner = ({ label, description, list, image, buttons }, i) => (_jsxs("div", { className: "first:pt-5 last:pb-5", children: [i > 0 && (_jsx("div", { className: "border-main-divider border border-solid border-t-0 border-x-0 my-4" })), label ? _jsx("div", { className: "text-xl font-medium m-0", children: label }) : null, description ? _jsx("div", { className: "text-sm text-secondary-text", children: description }) : null, list?.items?.length ? renderList(list) : null, image ? _jsx(Img, { image: image }) : null, buttons?.length ? renderButtons(buttons) : null] }, String(i)));
|
|
12
12
|
const renderList = (list) => (_jsx(List, { className: "flex flex-col justify-between items-start text-sm", version: "gray", items: list.items, isDotted: list.isDotted ?? true }));
|
|
13
13
|
const renderButtons = (buttons) => (_jsx("div", { children: buttons.map(({ icon, rounded, ...buttonProps }, idx) => (_jsx(Button, { className: `${idx > 0 && rounded ? 'ml-3' : ''} w-12 h-12`, ariaLabel: getButtonAriaLabel(icon), rounded: rounded, appendLeft: icon ? _jsx(Img, { image: icon, width: "24px", height: "24px", asSVG: true }) : null, ...buttonProps }, String(idx)))) }));
|
|
14
14
|
//# sourceMappingURL=TariffsTableCell.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableCell.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACx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AAC,IAAI,EACpC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,KARxC,MAAM,CAAC,CAAC,CAAC,CASb,CACP,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,IAAsB,EAAE,EAAE,CAAC,CAC7C,KAAC,IAAI,IACH,SAAS,EAAC,mDAAmD,EAC7D,OAAO,EAAC,MAAM,EACd,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,IAAI,GAC/B,CACH,CAAC;AAEF,MAAM,aAAa,GAAG,CAAC,OAA8B,EAAE,EAAE,CAAC,CACxD,wBACG,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,WAAW,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACvD,KAAC,MAAM,IACL,SAAS,EAAE,GAAG,GAAG,GAAG,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,YAAY,EAE1D,SAAS,EAAE,kBAAkB,CAAC,IAAI,CAAC,EACnC,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,IAAI,CAAC,CAAC,CAAC,KAAC,GAAG,IAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,KAAK,SAAG,CAAC,CAAC,CAAC,IAAI,KAC3E,WAAW,IAJV,MAAM,CAAC,GAAG,CAAC,CAKhB,CACH,CAAC,GACE,CACP,CAAC"}
|
|
@@ -8,7 +8,7 @@ import { getButtonAriaLabel } from './utils/getButtonAriaLabel.js';
|
|
|
8
8
|
export const TariffsTableTileCell = JSX(({ header, data }) => {
|
|
9
9
|
return (_jsxs("div", { className: "rounded-md border-main-stroke h-full box-border border p-4", children: [_jsx(TableTileHeader, { ...header }), data?.length ? data.map(renderCellInner) : null] }));
|
|
10
10
|
});
|
|
11
|
-
const renderCellInner = ({ label, description, list, image, buttons }, i) => (_jsxs("div", { children: [i > 0 && (_jsx("div", { className: "border-main-divider border border-solid border-t-0 border-x-0 my-2" })), label ? _jsx("div", { className: "text-m-sm m-0", children: label }) : null, description ? (_jsx("div", { className: "text-m-sm text-secondary-text mt-[3px]", children: description })) : null, list?.items?.length ? renderList(list) : null, image
|
|
11
|
+
const renderCellInner = ({ label, description, list, image, buttons }, i) => (_jsxs("div", { children: [i > 0 && (_jsx("div", { className: "border-main-divider border border-solid border-t-0 border-x-0 my-2" })), label ? _jsx("div", { className: "text-m-sm m-0", children: label }) : null, description ? (_jsx("div", { className: "text-m-sm text-secondary-text mt-[3px]", children: description })) : null, list?.items?.length ? renderList(list) : null, image ? _jsx(Img, { image: { ...image, className: 'm-0' } }) : null, buttons?.length ? renderButtons(buttons) : null] }, String(i)));
|
|
12
12
|
const renderList = (list) => (_jsx(List, { className: "flex flex-col justify-between items-start text-m-sm", version: "gray", items: list.items, isDotted: list.isDotted ?? true }));
|
|
13
13
|
const renderButtons = (buttons) => (_jsx("div", { children: buttons.map(({ icon, rounded, ...buttonProps }, idx) => (_jsx(Button, { className: `mt-3 ${idx > 0 && rounded ? 'ml-2.5' : ''} ${icon ? 'w-12 h-12' : ''}`, ariaLabel: getButtonAriaLabel(icon), rounded: rounded, appendLeft: icon ? _jsx(Img, { image: icon, width: "24px", height: "24px", asSVG: true }) : null, ...buttonProps, "aria-label": icon }, String(idx)))) }));
|
|
14
14
|
//# sourceMappingURL=TariffsTableTileCell.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableTileCell.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableTileCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAEpD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC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O,CAAC,CAAC,CAAC,CAAC,IAAI,KAVxC,MAAM,CAAC,CAAC,CAAC,CAWb,CACP,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,IAAsB,EAAE,EAAE,CAAC,CAC7C,KAAC,IAAI,IACH,SAAS,EAAC,qDAAqD,EAC/D,OAAO,EAAC,MAAM,EACd,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,IAAI,GAC/B,CACH,CAAC;AAEF,MAAM,aAAa,GAAG,CAAC,OAA8B,EAAE,EAAE,CAAC,CACxD,wBACG,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,WAAW,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACvD,KAAC,MAAM,IACL,SAAS,EAAE,QAAQ,GAAG,GAAG,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,EAElF,SAAS,EAAE,kBAAkB,CAAC,IAAI,CAAC,EACnC,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,IAAI,CAAC,CAAC,CAAC,KAAC,GAAG,IAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,KAAK,SAAG,CAAC,CAAC,CAAC,IAAI,KAC3E,WAAW,gBACH,IAAI,IALX,MAAM,CAAC,GAAG,CAAC,CAMhB,CACH,CAAC,GACE,CACP,CAAC"}
|
|
@@ -15,7 +15,7 @@ const LIST_DOT_STYLE_MAP = {
|
|
|
15
15
|
'tile-white': 'bg-white',
|
|
16
16
|
};
|
|
17
17
|
export const ListItem = JSX(({ className = '', isDotted = true, children, version = 'primary' }) => {
|
|
18
|
-
return (_jsxs("div", { className: `font-sans flex items-start ${className}`, role: "listitem", children: [isDotted
|
|
18
|
+
return (_jsxs("div", { className: `font-sans flex items-start ${className}`, role: "listitem", children: [isDotted ? _jsx("div", { className: getListStyle(version) }) : null, _jsx("span", { children: children })] }));
|
|
19
19
|
});
|
|
20
20
|
export const getListStyle = (version) => {
|
|
21
21
|
const size = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.js","sourceRoot":"","sources":["../../../src/ui-kit/List/ListItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAaxC,MAAM,kBAAkB,GAAG;IACzB,OAAO,EAAE,qCAAqC;IAC9C,SAAS,EAAE,qCAAqC;IAChD,IAAI,EAAE,qCAAqC;IAC3C,IAAI,EAAE,qCAAqC;IAC3C,YAAY,EAAE,qCAAqC;CACpD,CAAC;AAEF,MAAM,kBAAkB,GAAoC;IAC1D,OAAO,EAAE,iBAAiB;IAC1B,SAAS,EAAE,UAAU;IACrB,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,UAAU;IAChB,YAAY,EAAE,UAAU;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CACzB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,GAAG,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,EAAE,EAAE;IACrE,OAAO,CACL,eAAK,SAAS,EAAE,8BAA8B,SAAS,EAAE,EAAE,IAAI,EAAC,UAAU,aACvE,QAAQ,
|
|
1
|
+
{"version":3,"file":"ListItem.js","sourceRoot":"","sources":["../../../src/ui-kit/List/ListItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAaxC,MAAM,kBAAkB,GAAG;IACzB,OAAO,EAAE,qCAAqC;IAC9C,SAAS,EAAE,qCAAqC;IAChD,IAAI,EAAE,qCAAqC;IAC3C,IAAI,EAAE,qCAAqC;IAC3C,YAAY,EAAE,qCAAqC;CACpD,CAAC;AAEF,MAAM,kBAAkB,GAAoC;IAC1D,OAAO,EAAE,iBAAiB;IAC1B,SAAS,EAAE,UAAU;IACrB,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,UAAU;IAChB,YAAY,EAAE,UAAU;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CACzB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,GAAG,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,EAAE,EAAE;IACrE,OAAO,CACL,eAAK,SAAS,EAAE,8BAA8B,SAAS,EAAE,EAAE,IAAI,EAAC,UAAU,aACvE,QAAQ,CAAC,CAAC,CAAC,cAAK,SAAS,EAAE,YAAY,CAAC,OAAO,CAAC,GAAI,CAAC,CAAC,CAAC,IAAI,EAC5D,yBAAO,QAAQ,GAAQ,IACnB,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,OAAwB,EAAE,EAAE;IACvD,MAAM,IAAI,GAAG;QACX,OAAO,EAAE,yBAAyB;QAClC,SAAS,EAAE,yBAAyB;QACpC,IAAI,EAAE,iCAAiC;QACvC,IAAI,EAAE,yCAAyC;QAC/C,YAAY,EAAE,yCAAyC;KACxD,CAAC;IACF,OAAO,GAAG,kBAAkB,CAAC,OAAO,CAAC,IAAI,kBAAkB,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;AAC1F,CAAC,CAAC"}
|
|
@@ -13,13 +13,13 @@ export const ContentPageHead = JSX<ContentPageHeadProps>(({ HeadComponent, data,
|
|
|
13
13
|
<HeadComponent>
|
|
14
14
|
<title>{title}</title>
|
|
15
15
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
16
|
-
{description
|
|
17
|
-
{keywords
|
|
18
|
-
{robots
|
|
16
|
+
{description ? <meta name="description" content={description} /> : null}
|
|
17
|
+
{keywords ? <meta name="keywords" content={keywords.join(',')} /> : null}
|
|
18
|
+
{robots ? <meta name="robots" content={robots.join(',')} /> : null}
|
|
19
19
|
{renderOpenGraph(og)}
|
|
20
20
|
{renderTwitter(twitter)}
|
|
21
|
-
{canonical
|
|
22
|
-
{jsonLd
|
|
21
|
+
{canonical ? <link rel="canonical" href={canonical} /> : null}
|
|
22
|
+
{jsonLd ? <script type="application/ld+json">{jsonLd}</script> : null}
|
|
23
23
|
{children}
|
|
24
24
|
</HeadComponent>
|
|
25
25
|
);
|
|
@@ -98,7 +98,7 @@ function renderItems(items: GalleryItem[], version: BlockVersion = 'primary', is
|
|
|
98
98
|
<section className="mt-3">
|
|
99
99
|
{items.map((item, i) => (
|
|
100
100
|
<div key={String(i)}>
|
|
101
|
-
{isDotted
|
|
101
|
+
{isDotted ? <div className={getListStyle(version)} /> : null}
|
|
102
102
|
<span className="text-m-md font-medium">{item.title}</span>
|
|
103
103
|
<span className={`text-m-sm pl-2 ${version === 'primary' ? 'text-secondary-text' : ''}`}>
|
|
104
104
|
{item.text}
|
|
@@ -6,16 +6,18 @@ import { OtherProductsItem } from './OtherProductsItem';
|
|
|
6
6
|
export interface OtherProductsProps extends OtherProductsContent, UniBlockProps {}
|
|
7
7
|
|
|
8
8
|
export const OtherProducts = JSX<OtherProductsProps>(
|
|
9
|
-
({ blockItems, colorPalette, context, className =
|
|
9
|
+
({ blockItems, colorPalette, context, className = '' }) => {
|
|
10
10
|
return (
|
|
11
|
-
<section
|
|
12
|
-
data-theme={colorPalette || null}
|
|
13
|
-
className={`font-sans bg-white text-primary-text ${className}`}
|
|
14
|
-
>
|
|
11
|
+
<section className={`font-sans bg-white text-primary-text ${className}`}>
|
|
15
12
|
{blockItems?.length ? (
|
|
16
13
|
<div className="list-none m-0 p-0">
|
|
17
14
|
{blockItems.map((item, i) => (
|
|
18
|
-
<OtherProductsItem
|
|
15
|
+
<OtherProductsItem
|
|
16
|
+
key={`BlockItem${i}`}
|
|
17
|
+
{...item}
|
|
18
|
+
dataTheme={colorPalette}
|
|
19
|
+
context={context}
|
|
20
|
+
/>
|
|
19
21
|
))}
|
|
20
22
|
</div>
|
|
21
23
|
) : null}
|
|
@@ -4,11 +4,14 @@ import { Icon } from '../../ui-kit/Icon/Icon';
|
|
|
4
4
|
import type { BlockItemCommonProps } from './OtherProductsContent';
|
|
5
5
|
import { OtherProductsItemInner } from './OtherProductsItemInner';
|
|
6
6
|
import { useActiveHandler } from './useActiveHandler';
|
|
7
|
+
import { ColorPalette } from '../../types';
|
|
7
8
|
|
|
8
|
-
export interface BlockItemProps extends BlockItemCommonProps, UniBlockProps {
|
|
9
|
+
export interface BlockItemProps extends BlockItemCommonProps, UniBlockProps {
|
|
10
|
+
dataTheme?: ColorPalette;
|
|
11
|
+
}
|
|
9
12
|
|
|
10
13
|
export const OtherProductsItem = JSX<BlockItemProps>(
|
|
11
|
-
({ label, isExpanded, blocks, columns, context }) => {
|
|
14
|
+
({ label, isExpanded, blocks, columns, dataTheme = null, context }) => {
|
|
12
15
|
const { hasContent, icon, handleToggle, isActive } = useActiveHandler({
|
|
13
16
|
context,
|
|
14
17
|
blocks,
|
|
@@ -27,6 +30,7 @@ export const OtherProductsItem = JSX<BlockItemProps>(
|
|
|
27
30
|
) : null}
|
|
28
31
|
<button
|
|
29
32
|
className="border-none bg-primary-main px-0 py-[26px] mb-[1px] w-full font-sans text-white text-base flex justify-center cursor-pointer"
|
|
33
|
+
data-theme={dataTheme}
|
|
30
34
|
onClick={handleToggle}
|
|
31
35
|
>
|
|
32
36
|
<span className="pr-3">{isActive ? 'Скрыть' : label}</span>
|
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
"size": {
|
|
13
13
|
"width": 234,
|
|
14
14
|
"height": 234
|
|
15
|
-
}
|
|
15
|
+
},
|
|
16
|
+
"alt": "",
|
|
17
|
+
"title": ""
|
|
16
18
|
},
|
|
17
19
|
"items": [
|
|
18
20
|
"Элемент списка 1",
|
|
@@ -23,7 +25,12 @@
|
|
|
23
25
|
"buttons": [
|
|
24
26
|
{
|
|
25
27
|
"text": "Кнопка",
|
|
26
|
-
"version": "secondary"
|
|
28
|
+
"version": "secondary",
|
|
29
|
+
"target": "",
|
|
30
|
+
"icon": {
|
|
31
|
+
"alt": "",
|
|
32
|
+
"title": ""
|
|
33
|
+
}
|
|
27
34
|
}
|
|
28
35
|
],
|
|
29
36
|
"version": "primary",
|
|
@@ -57,7 +57,9 @@ export const ProductTile = JSX<ProductTileProps>(
|
|
|
57
57
|
}
|
|
58
58
|
image={image?.src && <Img className="mt-auto ml-7" image={image} />}
|
|
59
59
|
>
|
|
60
|
-
{description
|
|
60
|
+
{description ? (
|
|
61
|
+
<Description className="mt-4 max-w-[600px]" description={description} />
|
|
62
|
+
) : null}
|
|
61
63
|
<div className="flex mt-5 mb-1">
|
|
62
64
|
{benefits?.length ? (
|
|
63
65
|
<div className="mr-8">{benefits.map(renderBenefitLabel)}</div>
|
|
@@ -34,7 +34,7 @@ const renderCellInner = (
|
|
|
34
34
|
{label ? <div className="text-xl font-medium m-0">{label}</div> : null}
|
|
35
35
|
{description ? <div className="text-sm text-secondary-text">{description}</div> : null}
|
|
36
36
|
{list?.items?.length ? renderList(list) : null}
|
|
37
|
-
{image
|
|
37
|
+
{image ? <Img image={image} /> : null}
|
|
38
38
|
{buttons?.length ? renderButtons(buttons) : null}
|
|
39
39
|
</div>
|
|
40
40
|
);
|
|
@@ -33,7 +33,7 @@ const renderCellInner = (
|
|
|
33
33
|
<div className="text-m-sm text-secondary-text mt-[3px]">{description}</div>
|
|
34
34
|
) : null}
|
|
35
35
|
{list?.items?.length ? renderList(list) : null}
|
|
36
|
-
{image
|
|
36
|
+
{image ? <Img image={{ ...image, className: 'm-0' }} /> : null}
|
|
37
37
|
{buttons?.length ? renderButtons(buttons) : null}
|
|
38
38
|
</div>
|
|
39
39
|
);
|
|
@@ -7,13 +7,20 @@
|
|
|
7
7
|
"format": "webp",
|
|
8
8
|
"size": {
|
|
9
9
|
"width": 445
|
|
10
|
-
}
|
|
10
|
+
},
|
|
11
|
+
"alt": "",
|
|
12
|
+
"title": ""
|
|
11
13
|
},
|
|
12
14
|
"items": ["Пункт 1", "Пункт 2", "Пункт 3"],
|
|
13
15
|
"buttons": [
|
|
14
16
|
{
|
|
15
17
|
"text": "Кнопка",
|
|
16
|
-
"version": "primary"
|
|
18
|
+
"version": "primary",
|
|
19
|
+
"target": "",
|
|
20
|
+
"icon": {
|
|
21
|
+
"alt": "",
|
|
22
|
+
"title": ""
|
|
23
|
+
}
|
|
17
24
|
}
|
|
18
25
|
],
|
|
19
26
|
"version": "primary"
|
|
@@ -31,7 +31,7 @@ export const ListItem = JSX<ListItemProps>(
|
|
|
31
31
|
({ className = '', isDotted = true, children, version = 'primary' }) => {
|
|
32
32
|
return (
|
|
33
33
|
<div className={`font-sans flex items-start ${className}`} role="listitem">
|
|
34
|
-
{isDotted
|
|
34
|
+
{isDotted ? <div className={getListStyle(version)} /> : null}
|
|
35
35
|
<span>{children}</span>
|
|
36
36
|
</div>
|
|
37
37
|
);
|
package/package.json
CHANGED
|
@@ -29,7 +29,9 @@ export const HeaderCell = JSX<HeaderCellProps>(({ icon, image, title, link }) =>
|
|
|
29
29
|
/>
|
|
30
30
|
)}
|
|
31
31
|
{image?.src && <Img className="mb-[18px]" image={image} />}
|
|
32
|
-
{title
|
|
32
|
+
{title ? (
|
|
33
|
+
<Heading headingType="h4" as="h3" className="text-center text-white" title={title} />
|
|
34
|
+
) : null}
|
|
33
35
|
{link?.text && (
|
|
34
36
|
<div className="mt-auto w-full">
|
|
35
37
|
<Button
|
|
@@ -13,13 +13,13 @@ export const ContentPageHead = JSX<ContentPageHeadProps>(({ HeadComponent, data,
|
|
|
13
13
|
<HeadComponent>
|
|
14
14
|
<title>{title}</title>
|
|
15
15
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
16
|
-
{description
|
|
17
|
-
{keywords
|
|
18
|
-
{robots
|
|
16
|
+
{description ? <meta name="description" content={description} /> : null}
|
|
17
|
+
{keywords ? <meta name="keywords" content={keywords.join(',')} /> : null}
|
|
18
|
+
{robots ? <meta name="robots" content={robots.join(',')} /> : null}
|
|
19
19
|
{renderOpenGraph(og)}
|
|
20
20
|
{renderTwitter(twitter)}
|
|
21
|
-
{canonical
|
|
22
|
-
{jsonLd
|
|
21
|
+
{canonical ? <link rel="canonical" href={canonical} /> : null}
|
|
22
|
+
{jsonLd ? <script type="application/ld+json">{jsonLd}</script> : null}
|
|
23
23
|
{children}
|
|
24
24
|
</HeadComponent>
|
|
25
25
|
);
|
|
@@ -98,7 +98,7 @@ function renderItems(items: GalleryItem[], version: BlockVersion = 'primary', is
|
|
|
98
98
|
<section className="mt-3">
|
|
99
99
|
{items.map((item, i) => (
|
|
100
100
|
<div key={String(i)}>
|
|
101
|
-
{isDotted
|
|
101
|
+
{isDotted ? <div className={getListStyle(version)} /> : null}
|
|
102
102
|
<span className="text-m-md font-medium">{item.title}</span>
|
|
103
103
|
<span className={`text-m-sm pl-2 ${version === 'primary' ? 'text-secondary-text' : ''}`}>
|
|
104
104
|
{item.text}
|
|
@@ -6,16 +6,18 @@ import { OtherProductsItem } from './OtherProductsItem';
|
|
|
6
6
|
export interface OtherProductsProps extends OtherProductsContent, UniBlockProps {}
|
|
7
7
|
|
|
8
8
|
export const OtherProducts = JSX<OtherProductsProps>(
|
|
9
|
-
({ blockItems, colorPalette, context, className =
|
|
9
|
+
({ blockItems, colorPalette, context, className = '' }) => {
|
|
10
10
|
return (
|
|
11
|
-
<section
|
|
12
|
-
data-theme={colorPalette || null}
|
|
13
|
-
className={`font-sans bg-white text-primary-text ${className}`}
|
|
14
|
-
>
|
|
11
|
+
<section className={`font-sans bg-white text-primary-text ${className}`}>
|
|
15
12
|
{blockItems?.length ? (
|
|
16
13
|
<div className="list-none m-0 p-0">
|
|
17
14
|
{blockItems.map((item, i) => (
|
|
18
|
-
<OtherProductsItem
|
|
15
|
+
<OtherProductsItem
|
|
16
|
+
key={`BlockItem${i}`}
|
|
17
|
+
{...item}
|
|
18
|
+
dataTheme={colorPalette}
|
|
19
|
+
context={context}
|
|
20
|
+
/>
|
|
19
21
|
))}
|
|
20
22
|
</div>
|
|
21
23
|
) : null}
|
|
@@ -4,11 +4,14 @@ import { Icon } from '../../ui-kit/Icon/Icon';
|
|
|
4
4
|
import type { BlockItemCommonProps } from './OtherProductsContent';
|
|
5
5
|
import { OtherProductsItemInner } from './OtherProductsItemInner';
|
|
6
6
|
import { useActiveHandler } from './useActiveHandler';
|
|
7
|
+
import { ColorPalette } from '../../types';
|
|
7
8
|
|
|
8
|
-
export interface BlockItemProps extends BlockItemCommonProps, UniBlockProps {
|
|
9
|
+
export interface BlockItemProps extends BlockItemCommonProps, UniBlockProps {
|
|
10
|
+
dataTheme?: ColorPalette;
|
|
11
|
+
}
|
|
9
12
|
|
|
10
13
|
export const OtherProductsItem = JSX<BlockItemProps>(
|
|
11
|
-
({ label, isExpanded, blocks, columns, context }) => {
|
|
14
|
+
({ label, isExpanded, blocks, columns, dataTheme = null, context }) => {
|
|
12
15
|
const { hasContent, icon, handleToggle, isActive } = useActiveHandler({
|
|
13
16
|
context,
|
|
14
17
|
blocks,
|
|
@@ -27,6 +30,7 @@ export const OtherProductsItem = JSX<BlockItemProps>(
|
|
|
27
30
|
) : null}
|
|
28
31
|
<button
|
|
29
32
|
className="border-none bg-primary-main px-0 py-[26px] mb-[1px] w-full font-sans text-white text-base flex justify-center cursor-pointer"
|
|
33
|
+
data-theme={dataTheme}
|
|
30
34
|
onClick={handleToggle}
|
|
31
35
|
>
|
|
32
36
|
<span className="pr-3">{isActive ? 'Скрыть' : label}</span>
|
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
"size": {
|
|
13
13
|
"width": 234,
|
|
14
14
|
"height": 234
|
|
15
|
-
}
|
|
15
|
+
},
|
|
16
|
+
"alt": "",
|
|
17
|
+
"title": ""
|
|
16
18
|
},
|
|
17
19
|
"items": [
|
|
18
20
|
"Элемент списка 1",
|
|
@@ -23,7 +25,12 @@
|
|
|
23
25
|
"buttons": [
|
|
24
26
|
{
|
|
25
27
|
"text": "Кнопка",
|
|
26
|
-
"version": "secondary"
|
|
28
|
+
"version": "secondary",
|
|
29
|
+
"target": "",
|
|
30
|
+
"icon": {
|
|
31
|
+
"alt": "",
|
|
32
|
+
"title": ""
|
|
33
|
+
}
|
|
27
34
|
}
|
|
28
35
|
],
|
|
29
36
|
"version": "primary",
|
|
@@ -57,7 +57,9 @@ export const ProductTile = JSX<ProductTileProps>(
|
|
|
57
57
|
}
|
|
58
58
|
image={image?.src && <Img className="mt-auto ml-7" image={image} />}
|
|
59
59
|
>
|
|
60
|
-
{description
|
|
60
|
+
{description ? (
|
|
61
|
+
<Description className="mt-4 max-w-[600px]" description={description} />
|
|
62
|
+
) : null}
|
|
61
63
|
<div className="flex mt-5 mb-1">
|
|
62
64
|
{benefits?.length ? (
|
|
63
65
|
<div className="mr-8">{benefits.map(renderBenefitLabel)}</div>
|
|
@@ -34,7 +34,7 @@ const renderCellInner = (
|
|
|
34
34
|
{label ? <div className="text-xl font-medium m-0">{label}</div> : null}
|
|
35
35
|
{description ? <div className="text-sm text-secondary-text">{description}</div> : null}
|
|
36
36
|
{list?.items?.length ? renderList(list) : null}
|
|
37
|
-
{image
|
|
37
|
+
{image ? <Img image={image} /> : null}
|
|
38
38
|
{buttons?.length ? renderButtons(buttons) : null}
|
|
39
39
|
</div>
|
|
40
40
|
);
|
|
@@ -33,7 +33,7 @@ const renderCellInner = (
|
|
|
33
33
|
<div className="text-m-sm text-secondary-text mt-[3px]">{description}</div>
|
|
34
34
|
) : null}
|
|
35
35
|
{list?.items?.length ? renderList(list) : null}
|
|
36
|
-
{image
|
|
36
|
+
{image ? <Img image={{ ...image, className: 'm-0' }} /> : null}
|
|
37
37
|
{buttons?.length ? renderButtons(buttons) : null}
|
|
38
38
|
</div>
|
|
39
39
|
);
|
|
@@ -7,13 +7,20 @@
|
|
|
7
7
|
"format": "webp",
|
|
8
8
|
"size": {
|
|
9
9
|
"width": 445
|
|
10
|
-
}
|
|
10
|
+
},
|
|
11
|
+
"alt": "",
|
|
12
|
+
"title": ""
|
|
11
13
|
},
|
|
12
14
|
"items": ["Пункт 1", "Пункт 2", "Пункт 3"],
|
|
13
15
|
"buttons": [
|
|
14
16
|
{
|
|
15
17
|
"text": "Кнопка",
|
|
16
|
-
"version": "primary"
|
|
18
|
+
"version": "primary",
|
|
19
|
+
"target": "",
|
|
20
|
+
"icon": {
|
|
21
|
+
"alt": "",
|
|
22
|
+
"title": ""
|
|
23
|
+
}
|
|
17
24
|
}
|
|
18
25
|
],
|
|
19
26
|
"version": "primary"
|