@redneckz/wildless-cms-uni-blocks 0.3.71 → 0.3.72
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/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +4 -13
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/ComparisonTable/TableCell.mobile.js +1 -3
- package/dist/components/ComparisonTable/TableCell.mobile.js.map +1 -1
- package/dist/components/ContentPage/ContentPageContext.d.ts +2 -1
- package/dist/components/Headline/Headline.js +2 -2
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/Headline/Headline.mobile.js +1 -1
- package/dist/components/Headline/Headline.mobile.js.map +1 -1
- package/dist/components/Headline/HeadlineContent.d.ts +2 -1
- package/dist/components/LinkDocs/LinkDocs.js +3 -12
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js +3 -3
- package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/dist/components/LinkDocs/LinkDocsHorizontalList.js +1 -1
- package/dist/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsVerticalList.js +1 -1
- package/dist/components/LinkDocs/LinkDocsVerticalList.js.map +1 -1
- package/dist/components/LinkDocs/linkDocsContentExample.js +1 -1
- package/dist/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/dist/react/IntersectionObserverTag.d.ts +2 -3
- package/dist/react/IntersectionObserverTag.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ComparisonTable/TableCell.mobile.js +1 -3
- package/lib/components/ComparisonTable/TableCell.mobile.js.map +1 -1
- package/lib/components/ContentPage/ContentPageContext.d.ts +2 -1
- package/lib/components/Headline/Headline.js +2 -2
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/Headline/Headline.mobile.js +1 -1
- package/lib/components/Headline/Headline.mobile.js.map +1 -1
- package/lib/components/Headline/HeadlineContent.d.ts +2 -1
- package/lib/components/LinkDocs/LinkDocs.js +3 -12
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js +3 -3
- package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/lib/components/LinkDocs/LinkDocsHorizontalList.js +1 -1
- package/lib/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsVerticalList.js +1 -1
- package/lib/components/LinkDocs/LinkDocsVerticalList.js.map +1 -1
- package/lib/components/LinkDocs/linkDocsContentExample.js +1 -1
- package/lib/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/lib/react/IntersectionObserverTag.d.ts +2 -3
- package/lib/react/IntersectionObserverTag.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +6 -8
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/ComparisonTable/TableCell.js +1 -3
- package/mobile/dist/components/ComparisonTable/TableCell.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPageContext.d.ts +2 -1
- package/mobile/dist/components/Headline/Headline.js +1 -1
- package/mobile/dist/components/Headline/Headline.js.map +1 -1
- package/mobile/dist/components/Headline/HeadlineContent.d.ts +2 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js +3 -3
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.js +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.js +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.js.map +1 -1
- package/mobile/dist/components/LinkDocs/linkDocsContentExample.js +1 -1
- package/mobile/dist/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/mobile/dist/react/IntersectionObserverTag.d.ts +2 -3
- package/mobile/dist/react/IntersectionObserverTag.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableCell.js +1 -3
- package/mobile/lib/components/ComparisonTable/TableCell.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPageContext.d.ts +2 -1
- package/mobile/lib/components/Headline/Headline.js +1 -1
- package/mobile/lib/components/Headline/Headline.js.map +1 -1
- package/mobile/lib/components/Headline/HeadlineContent.d.ts +2 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js +3 -3
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.js +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.js +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.js.map +1 -1
- package/mobile/lib/components/LinkDocs/linkDocsContentExample.js +1 -1
- package/mobile/lib/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/mobile/lib/react/IntersectionObserverTag.d.ts +2 -3
- package/mobile/lib/react/IntersectionObserverTag.js.map +1 -1
- package/mobile/src/components/ComparisonTable/TableCell.tsx +8 -7
- package/mobile/src/components/ContentPage/ContentPage.page.json +1 -1
- package/mobile/src/components/ContentPage/ContentPageContext.tsx +5 -1
- package/mobile/src/components/Headline/Headline.tsx +3 -5
- package/mobile/src/components/Headline/HeadlineContent.ts +2 -1
- package/mobile/src/components/LinkDocs/LinkDocs.example.json +1 -1
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +10 -12
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +1 -1
- package/mobile/src/components/LinkDocs/LinkDocsHorizontalList.tsx +1 -1
- package/mobile/src/components/LinkDocs/LinkDocsVerticalList.tsx +3 -1
- package/mobile/src/components/LinkDocs/linkDocsContentExample.ts +1 -1
- package/mobile/src/react/IntersectionObserverTag.tsx +3 -3
- package/package.json +1 -1
- package/src/components/ComparisonTable/ComparisonTable.fixture.mobile.tsx +0 -9
- package/src/components/ComparisonTable/TableCell.mobile.tsx +8 -7
- package/src/components/ContentPage/ContentPage.page.json +1 -1
- package/src/components/ContentPage/ContentPageContext.tsx +5 -1
- package/src/components/Gallery/Gallery.fixture.mobile.tsx +0 -7
- package/src/components/Headline/Headline.mobile.tsx +3 -5
- package/src/components/Headline/Headline.tsx +8 -5
- package/src/components/Headline/HeadlineContent.ts +2 -1
- package/src/components/LinkDocs/LinkDocs.example.json +1 -1
- package/src/components/LinkDocs/LinkDocs.fixture.mobile.tsx +1 -6
- package/src/components/LinkDocs/LinkDocs.mobile.tsx +10 -12
- package/src/components/LinkDocs/LinkDocs.tsx +13 -34
- package/src/components/LinkDocs/LinkDocsContent.ts +1 -1
- package/src/components/LinkDocs/LinkDocsHorizontalList.tsx +1 -1
- package/src/components/LinkDocs/LinkDocsVerticalList.tsx +3 -1
- package/src/components/LinkDocs/linkDocsContentExample.ts +1 -1
- package/src/react/IntersectionObserverTag.tsx +3 -3
|
@@ -6,7 +6,5 @@ export const TableCell = JSX(({ cell, rowHeader, isFillGradient = false }) => {
|
|
|
6
6
|
const cellClasses = `h-full ${DIVIDER_CLASSES}`;
|
|
7
7
|
return (_jsx("div", { className: cellWrapperClasses, role: "cell", children: _jsx("div", { className: cellClasses, children: cell.map(renderCellInner(isFillGradient, rowHeader)) }) }));
|
|
8
8
|
});
|
|
9
|
-
const
|
|
10
|
-
const descriptionStyle = (isFillGradient = false) => `text-right ${isFillGradient ? 'text-white/80' : 'text-secondary-text'}`;
|
|
11
|
-
const renderCellInner = (isFillGradient, rowHeader) => ({ label, description }, i) => (_jsxs("div", { className: "flex justify-between text-m-sm py-3.5", children: [_jsx("div", { className: `${isFillGradient ? 'text-white/80' : 'text-secondary-text'}`, children: rowHeader }), _jsxs("div", { className: "basis-1/2", children: [label ? _jsx("div", { className: labelStyle(isFillGradient), children: label }) : null, description ? (_jsx("div", { className: descriptionStyle(isFillGradient), children: description })) : null] })] }, String(i)));
|
|
9
|
+
const renderCellInner = (isFillGradient, rowHeader) => ({ label, description }, i) => (_jsxs("div", { className: "flex justify-between text-m-sm py-3.5", children: [_jsx("div", { className: `${isFillGradient ? 'text-white/80' : 'text-secondary-text'}`, children: rowHeader }), _jsxs("div", { className: "basis-1/2", children: [label ? (_jsx("div", { className: `text-right ${isFillGradient ? 'text-white' : ''}`, children: label })) : null, description ? (_jsx("div", { className: `text-right ${isFillGradient ? 'text-white/80' : 'text-secondary-text'}`, children: description })) : null] })] }, String(i)));
|
|
12
10
|
//# sourceMappingURL=TableCell.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableCell.js","sourceRoot":"","sources":["../../../src/components/ComparisonTable/TableCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAU9C,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAiB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,cAAc,GAAG,KAAK,EAAE,EAAE,EAAE;IAC3F,MAAM,kBAAkB,GAAG,0BAA0B,CAAC;IAEtD,MAAM,WAAW,GAAG,UAAU,eAAe,EAAE,CAAC;IAEhD,OAAO,CACL,cAAK,SAAS,EAAE,kBAAkB,EAAE,IAAI,EAAC,MAAM,YAC7C,cAAK,SAAS,EAAE,WAAW,YAAG,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,cAAc,EAAE,SAAS,CAAC,CAAC,GAAO,GACrF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,
|
|
1
|
+
{"version":3,"file":"TableCell.js","sourceRoot":"","sources":["../../../src/components/ComparisonTable/TableCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAU9C,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAiB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,cAAc,GAAG,KAAK,EAAE,EAAE,EAAE;IAC3F,MAAM,kBAAkB,GAAG,0BAA0B,CAAC;IAEtD,MAAM,WAAW,GAAG,UAAU,eAAe,EAAE,CAAC;IAEhD,OAAO,CACL,cAAK,SAAS,EAAE,kBAAkB,EAAE,IAAI,EAAC,MAAM,YAC7C,cAAK,SAAS,EAAE,WAAW,YAAG,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,cAAc,EAAE,SAAS,CAAC,CAAC,GAAO,GACrF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,eAAe,GACnB,CAAC,cAAuB,EAAE,SAAkB,EAAE,EAAE,CAChD,CAAC,EAAE,KAAK,EAAE,WAAW,EAAY,EAAE,CAAS,EAAE,EAAE,CAC9C,CACE,eAAqB,SAAS,EAAC,uCAAuC,aACpE,cAAK,SAAS,EAAE,GAAG,cAAc,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,qBAAqB,EAAE,YAC1E,SAAS,GACN,EACN,eAAK,SAAS,EAAC,WAAW,aACvB,KAAK,CAAC,CAAC,CAAC,CACP,cAAK,SAAS,EAAE,cAAc,cAAc,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,YAAG,KAAK,GAAO,CAClF,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,CACb,cACE,SAAS,EAAE,cAAc,cAAc,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,qBAAqB,EAAE,YAElF,WAAW,GACR,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,KAfE,MAAM,CAAC,CAAC,CAAC,CAgBb,CACP,CAAC"}
|
|
@@ -31,6 +31,7 @@ export interface IntersectionObserverTagProps {
|
|
|
31
31
|
observerCallback: IntersectionObserverCallback;
|
|
32
32
|
observerOptions?: IntersectionObserverInit;
|
|
33
33
|
}
|
|
34
|
+
export declare type IntersectionObserverComponent = (props: IntersectionObserverTagProps & Record<string, any>) => VNode;
|
|
34
35
|
export interface ContentPageContext {
|
|
35
36
|
useRouter: () => Router;
|
|
36
37
|
useState: SetStateHook;
|
|
@@ -39,5 +40,5 @@ export interface ContentPageContext {
|
|
|
39
40
|
useLikeService: () => LikeService;
|
|
40
41
|
useSearch: () => Search;
|
|
41
42
|
handlerDecorator?: HandlerDecorator;
|
|
42
|
-
IntersectionObserverTag:
|
|
43
|
+
IntersectionObserverTag: IntersectionObserverComponent;
|
|
43
44
|
}
|
|
@@ -5,6 +5,6 @@ import { Img } from '../../ui-kit/Img/Img.js';
|
|
|
5
5
|
import { ALIGN_TEXT, HEADLINE_BLOCK_STYLE_MAPS } from './constants.js';
|
|
6
6
|
export const Headline = JSX(({ bgColorHeadline = 'transparent', className = '', title, description, image, align = 'left', }) => {
|
|
7
7
|
const STYLE_MAPS = HEADLINE_BLOCK_STYLE_MAPS[bgColorHeadline];
|
|
8
|
-
return (_jsxs("section", { className: `px-4 py-6 ${STYLE_MAPS.background} ${className}`, children: [title ? (_jsx(Heading, { headingType: "h2", className: `${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`, title: title })) : null, description ? (_jsx("p", { className: `font-normal text-m-md ${STYLE_MAPS.description} ${ALIGN_TEXT[align]}
|
|
8
|
+
return (_jsxs("section", { className: `px-4 py-6 flex flex-col gap-2.5 ${STYLE_MAPS.background} ${className}`, children: [title ? (_jsx(Heading, { headingType: "h2", className: `${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`, title: title })) : null, description ? (_jsx("p", { className: `font-normal text-m-md ${STYLE_MAPS.description} ${ALIGN_TEXT[align]} `, children: description })) : null, image?.src && (_jsx("div", { className: "mt-2.5 mx-auto flex justify-center", children: _jsx(Img, { image: image }) }))] }));
|
|
9
9
|
});
|
|
10
10
|
//# sourceMappingURL=Headline.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Headline.js","sourceRoot":"","sources":["../../../src/components/Headline/Headline.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAKpE,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CACzB,CAAC,EACC,eAAe,GAAG,aAAa,EAC/B,SAAS,GAAG,EAAE,EACd,KAAK,EACL,WAAW,EACX,KAAK,EACL,KAAK,GAAG,MAAM,GACf,EAAE,EAAE;IACH,MAAM,UAAU,GAAG,yBAAyB,CAAC,eAAe,CAAC,CAAC;IAC9D,OAAO,CACL,mBAAS,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"Headline.js","sourceRoot":"","sources":["../../../src/components/Headline/Headline.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAKpE,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CACzB,CAAC,EACC,eAAe,GAAG,aAAa,EAC/B,SAAS,GAAG,EAAE,EACd,KAAK,EACL,WAAW,EACX,KAAK,EACL,KAAK,GAAG,MAAM,GACf,EAAE,EAAE;IACH,MAAM,UAAU,GAAG,yBAAyB,CAAC,eAAe,CAAC,CAAC;IAC9D,OAAO,CACL,mBAAS,SAAS,EAAE,mCAAmC,UAAU,CAAC,UAAU,IAAI,SAAS,EAAE,aACxF,KAAK,CAAC,CAAC,CAAC,CACP,KAAC,OAAO,IACN,WAAW,EAAC,IAAI,EAChB,SAAS,EAAE,GAAG,UAAU,CAAC,IAAI,IAAI,UAAU,CAAC,KAAK,CAAC,EAAE,EACpD,KAAK,EAAE,KAAK,GACZ,CACH,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,CACb,YACE,SAAS,EAAE,yBAAyB,UAAU,CAAC,WAAW,IAAI,UAAU,CAAC,KAAK,CAAC,cAAc,YAE5F,WAAW,GACV,CACL,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,EAAE,GAAG,IAAI,CACb,cAAK,SAAS,EAAC,oCAAoC,YACjD,KAAC,GAAG,IAAC,KAAK,EAAE,KAAK,GAAI,GACjB,CACP,IACO,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BlockVersionWithTransparent } from '../../model/BlockVersion';
|
|
2
2
|
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
|
|
3
|
-
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
3
|
+
import type { HeadingContent, HeadingType } from '../../ui-kit/Heading/HeadingContent';
|
|
4
4
|
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
5
5
|
import type { AlignType } from '../../model/AlignType';
|
|
6
6
|
/**
|
|
@@ -9,4 +9,5 @@ import type { AlignType } from '../../model/AlignType';
|
|
|
9
9
|
export declare type HeadlineContent = HeadingContent & DescriptionContent & ImageContent & {
|
|
10
10
|
align?: AlignType;
|
|
11
11
|
bgColorHeadline?: BlockVersionWithTransparent;
|
|
12
|
+
headingType?: HeadingType;
|
|
12
13
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { Heading } from '../../ui-kit/Heading/Heading.js';
|
|
4
3
|
import { LinkDocsHorizontalList } from './LinkDocsHorizontalList.js';
|
|
5
4
|
import { LinkDocsVerticalList } from './LinkDocsVerticalList.js';
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
import { Headline } from '../Headline/Headline.js';
|
|
6
|
+
export const LinkDocs = JSX(({ className = '', context, title, description, icon = { icon: 'DocIconMonoColor' }, documents, orientation = 'vertical', hasBorder = true, }) => {
|
|
7
|
+
return (_jsxs("section", { className: `font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${className}`, children: [_jsx(Headline, { className: `!p-0 ${description ? 'gap-2' : 'gap-5'}`, title: title, description: description, context: context, align: "center", headingType: "h3" }), orientation === 'vertical' ? (_jsx(LinkDocsVerticalList, { hasBorder: hasBorder, documents: documents, icon: icon })) : (_jsx(LinkDocsHorizontalList, { context: context, hasBorder: hasBorder, documents: documents, icon: icon }))] }));
|
|
8
8
|
});
|
|
9
9
|
//# sourceMappingURL=LinkDocs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDocs.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocs.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"LinkDocs.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocs.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAIhD,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CACzB,CAAC,EACC,SAAS,GAAG,EAAE,EACd,OAAO,EACP,KAAK,EACL,WAAW,EACX,IAAI,GAAG,EAAE,IAAI,EAAE,kBAAkB,EAAE,EACnC,SAAS,EACT,WAAW,GAAG,UAAU,EACxB,SAAS,GAAG,IAAI,GACjB,EAAE,EAAE;IACH,OAAO,CACL,mBACE,SAAS,EAAE,oEAAoE,SAAS,EAAE,aAE1F,KAAC,QAAQ,IACP,SAAS,EAAE,QAAQ,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,EAAE,EACpD,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAC,QAAQ,EACd,WAAW,EAAC,IAAI,GAChB,EACD,WAAW,KAAK,UAAU,CAAC,CAAC,CAAC,CAC5B,KAAC,oBAAoB,IAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,GAAI,CACjF,CAAC,CAAC,CAAC,CACF,KAAC,sBAAsB,IACrB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,GACV,CACH,IACO,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
3
3
|
import { SwipeListControl } from '../../ui-kit/SwipeListControl/SwipeListControl.js';
|
|
4
4
|
import { LinkDocsListItem } from './LinkDocsListItem.js';
|
|
5
5
|
export const LinkDocsHorizontalList = JSX(({ context, hasBorder = true, documents, icon }) => {
|
|
6
|
-
return (_jsx(SwipeListControl, { context: context, className: "text-m-sm text-primary-main", children: documents?.length
|
|
6
|
+
return (_jsx(SwipeListControl, { context: context, className: "text-m-sm text-primary-main mt-5", children: documents?.length
|
|
7
7
|
? documents.map((doc, i) => (_jsx(LinkDocsListItem, { className: hasBorder ? 'rounded-md border-main-stroke border border-solid p-4' : '', doc: doc, icon: icon }, String(i))))
|
|
8
8
|
: null }));
|
|
9
9
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDocsHorizontalList.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsHorizontalList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAClF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAQtD,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,CACvC,CAAC,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE;IACjD,OAAO,CACL,KAAC,gBAAgB,IAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAC,
|
|
1
|
+
{"version":3,"file":"LinkDocsHorizontalList.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsHorizontalList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAClF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAQtD,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,CACvC,CAAC,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE;IACjD,OAAO,CACL,KAAC,gBAAgB,IAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAC,kCAAkC,YAC7E,SAAS,EAAE,MAAM;YAChB,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CACxB,KAAC,gBAAgB,IAEf,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,uDAAuD,CAAC,CAAC,CAAC,EAAE,EACnF,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,IAHL,MAAM,CAAC,CAAC,CAAC,CAId,CACH,CAAC;YACJ,CAAC,CAAC,IAAI,GACS,CACpB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { LinkDocsListItem } from './LinkDocsListItem.js';
|
|
4
4
|
export const LinkDocsVerticalList = JSX(({ hasBorder = true, documents, icon }) => {
|
|
5
|
-
return (_jsx("div", { className: `text-m-sm text-primary-main flex flex-col ${hasBorder ? 'gap-3.5' : 'gap-2'}`, role: "list", children: documents?.length
|
|
5
|
+
return (_jsx("div", { className: `text-m-sm text-primary-main flex flex-col mt-5 ${hasBorder ? 'gap-3.5' : 'gap-2'}`, role: "list", children: documents?.length
|
|
6
6
|
? documents.map((doc, i) => (_jsx("div", { role: "listitem", children: _jsx(LinkDocsListItem, { className: hasBorder ? 'rounded-md border-main-stroke border border-solid p-4' : '', doc: doc, icon: icon }) }, String(i))))
|
|
7
7
|
: null }));
|
|
8
8
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDocsVerticalList.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsVerticalList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAQtD,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CACrC,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE;IACxC,OAAO,CACL,cACE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"LinkDocsVerticalList.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsVerticalList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAQtD,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CACrC,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE;IACxC,OAAO,CACL,cACE,SAAS,EAAE,kDACT,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAC1B,EAAE,EACF,IAAI,EAAC,MAAM,YAEV,SAAS,EAAE,MAAM;YAChB,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CACxB,cAAqB,IAAI,EAAC,UAAU,YAClC,KAAC,gBAAgB,IACf,SAAS,EACP,SAAS,CAAC,CAAC,CAAC,uDAAuD,CAAC,CAAC,CAAC,EAAE,EAE1E,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,GACV,IAPM,MAAM,CAAC,CAAC,CAAC,CAQb,CACP,CAAC;YACJ,CAAC,CAAC,IAAI,GACJ,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const linkDocsContentExample = {
|
|
2
2
|
title: 'Дополнительные документы',
|
|
3
|
-
|
|
3
|
+
description: 'Ответы на часто задаваемые вопросы',
|
|
4
4
|
documents: [
|
|
5
5
|
{ text: 'target self', href: '/abc1/cooldoc.doc', target: '_self' },
|
|
6
6
|
{ text: 'target blank', href: '/abc2/wtf.rtf', target: '_blank' },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linkDocsContentExample.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/linkDocsContentExample.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,sBAAsB,GAAoB;IACrD,KAAK,EAAE,0BAA0B;IACjC,
|
|
1
|
+
{"version":3,"file":"linkDocsContentExample.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/linkDocsContentExample.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,sBAAsB,GAAoB;IACrD,KAAK,EAAE,0BAA0B;IACjC,WAAW,EAAE,oCAAoC;IACjD,SAAS,EAAE;QACT,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,mBAAmB,EAAE,MAAM,EAAE,OAAO,EAAE;QACnE,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE;QACjE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,gBAAgB,EAAE;QAC7C,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE;QAClC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE;QACrC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,eAAe,EAAE;QAC7C,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,gBAAgB,EAAE;QAClD;YACE,IAAI,EAAE,kIAAkI;YACxI,IAAI,EAAE,mBAAmB;YACzB,QAAQ,EAAE,OAAO;SAClB;QACD,EAAE,IAAI,EAAE,sBAAsB,EAAE,IAAI,EAAE,kBAAkB,EAAE,QAAQ,EAAE,OAAO,EAAE;QAC7E;YACE,IAAI,EAAE,qDAAqD;YAC3D,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,MAAM;SACjB;KACF;CACF,CAAC"}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare const IntersectionObserverTag: FC<IntersectionObserverTagProps>;
|
|
1
|
+
import { IntersectionObserverComponent } from '../components/ContentPage/ContentPageContext';
|
|
2
|
+
export declare const IntersectionObserverTag: IntersectionObserverComponent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntersectionObserverTag.js","sourceRoot":"","sources":["../../src/react/IntersectionObserverTag.tsx"],"names":[],"mappings":";AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"IntersectionObserverTag.js","sourceRoot":"","sources":["../../src/react/IntersectionObserverTag.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,CAAC,MAAM,uBAAuB,GAAkC,CAAC,KAAK,EAAE,EAAE;IAC9E,MAAM,EAAE,GAAG,EAAE,gBAAgB,EAAE,eAAe,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAE5E,MAAM,oBAAoB,GAAG,MAAM,EAAwB,CAAC;IAC5D,MAAM,GAAG,GAAG,WAAW,CACrB,CAAC,GAAmC,EAAE,EAAE;QACtC,IAAI,GAAG,IAAI,CAAC,oBAAoB,CAAC,OAAO,EAAE;YACxC,oBAAoB,CAAC,OAAO,GAAG,IAAI,oBAAoB,CAAC,gBAAgB,EAAE,eAAe,CAAC,CAAC;YAC3F,oBAAoB,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;SAC3C;IACH,CAAC,EACD,CAAC,gBAAgB,EAAE,eAAe,CAAC,CACpC,CAAC;IAEF,OAAO,CACL,KAAC,GAAG,IAAC,GAAG,EAAE,GAAG,KAAM,IAAI,YACpB,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -22,11 +22,6 @@ export const TableCell = JSX<TableCellProps>(({ cell, rowHeader, isFillGradient
|
|
|
22
22
|
);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
|
-
const labelStyle = (isFillGradient = false): string =>
|
|
26
|
-
`text-right ${isFillGradient ? 'text-white' : ''}`;
|
|
27
|
-
const descriptionStyle = (isFillGradient = false): string =>
|
|
28
|
-
`text-right ${isFillGradient ? 'text-white/80' : 'text-secondary-text'}`;
|
|
29
|
-
|
|
30
25
|
const renderCellInner =
|
|
31
26
|
(isFillGradient: boolean, rowHeader?: string) =>
|
|
32
27
|
({ label, description }: CellData, i: number) =>
|
|
@@ -36,9 +31,15 @@ const renderCellInner =
|
|
|
36
31
|
{rowHeader}
|
|
37
32
|
</div>
|
|
38
33
|
<div className="basis-1/2">
|
|
39
|
-
{label ?
|
|
34
|
+
{label ? (
|
|
35
|
+
<div className={`text-right ${isFillGradient ? 'text-white' : ''}`}>{label}</div>
|
|
36
|
+
) : null}
|
|
40
37
|
{description ? (
|
|
41
|
-
<div
|
|
38
|
+
<div
|
|
39
|
+
className={`text-right ${isFillGradient ? 'text-white/80' : 'text-secondary-text'}`}
|
|
40
|
+
>
|
|
41
|
+
{description}
|
|
42
|
+
</div>
|
|
42
43
|
) : null}
|
|
43
44
|
</div>
|
|
44
45
|
</div>
|
|
@@ -1457,7 +1457,7 @@
|
|
|
1457
1457
|
"anchor": "documents",
|
|
1458
1458
|
"content": {
|
|
1459
1459
|
"title": "Дополнительные документы",
|
|
1460
|
-
"
|
|
1460
|
+
"description": "Ответы на часто задаваемые вопросы",
|
|
1461
1461
|
"icon": {
|
|
1462
1462
|
"icon": "DocIcon"
|
|
1463
1463
|
},
|
|
@@ -42,6 +42,10 @@ export interface IntersectionObserverTagProps {
|
|
|
42
42
|
observerOptions?: IntersectionObserverInit;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
export type IntersectionObserverComponent = (
|
|
46
|
+
props: IntersectionObserverTagProps & Record<string, any>,
|
|
47
|
+
) => VNode;
|
|
48
|
+
|
|
45
49
|
export interface ContentPageContext {
|
|
46
50
|
useRouter: () => Router;
|
|
47
51
|
useState: SetStateHook;
|
|
@@ -50,5 +54,5 @@ export interface ContentPageContext {
|
|
|
50
54
|
useLikeService: () => LikeService;
|
|
51
55
|
useSearch: () => Search;
|
|
52
56
|
handlerDecorator?: HandlerDecorator;
|
|
53
|
-
IntersectionObserverTag:
|
|
57
|
+
IntersectionObserverTag: IntersectionObserverComponent;
|
|
54
58
|
}
|
|
@@ -19,7 +19,7 @@ export const Headline = JSX<HeadlineProps>(
|
|
|
19
19
|
}) => {
|
|
20
20
|
const STYLE_MAPS = HEADLINE_BLOCK_STYLE_MAPS[bgColorHeadline];
|
|
21
21
|
return (
|
|
22
|
-
<section className={`px-4 py-6 ${STYLE_MAPS.background} ${className}`}>
|
|
22
|
+
<section className={`px-4 py-6 flex flex-col gap-2.5 ${STYLE_MAPS.background} ${className}`}>
|
|
23
23
|
{title ? (
|
|
24
24
|
<Heading
|
|
25
25
|
headingType="h2"
|
|
@@ -29,15 +29,13 @@ export const Headline = JSX<HeadlineProps>(
|
|
|
29
29
|
) : null}
|
|
30
30
|
{description ? (
|
|
31
31
|
<p
|
|
32
|
-
className={`font-normal text-m-md ${STYLE_MAPS.description} ${ALIGN_TEXT[align]}
|
|
33
|
-
title ? 'mt-2.5' : ''
|
|
34
|
-
}`}
|
|
32
|
+
className={`font-normal text-m-md ${STYLE_MAPS.description} ${ALIGN_TEXT[align]} `}
|
|
35
33
|
>
|
|
36
34
|
{description}
|
|
37
35
|
</p>
|
|
38
36
|
) : null}
|
|
39
37
|
{image?.src && (
|
|
40
|
-
<div className="mt-5 mx-auto flex justify-center">
|
|
38
|
+
<div className="mt-2.5 mx-auto flex justify-center">
|
|
41
39
|
<Img image={image} />
|
|
42
40
|
</div>
|
|
43
41
|
)}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BlockVersionWithTransparent } from '../../model/BlockVersion';
|
|
2
2
|
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
|
|
3
|
-
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
3
|
+
import type { HeadingContent, HeadingType } from '../../ui-kit/Heading/HeadingContent';
|
|
4
4
|
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
5
5
|
import type { AlignType } from '../../model/AlignType';
|
|
6
6
|
|
|
@@ -12,4 +12,5 @@ export type HeadlineContent = HeadingContent &
|
|
|
12
12
|
ImageContent & {
|
|
13
13
|
align?: AlignType;
|
|
14
14
|
bgColorHeadline?: BlockVersionWithTransparent;
|
|
15
|
+
headingType?: HeadingType;
|
|
15
16
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { UniBlockProps } from '../../types';
|
|
3
|
-
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
4
3
|
import type { LinkDocsContent } from './LinkDocsContent';
|
|
5
4
|
import { LinkDocsHorizontalList } from './LinkDocsHorizontalList';
|
|
6
5
|
import { LinkDocsVerticalList } from './LinkDocsVerticalList';
|
|
6
|
+
import { Headline } from '../Headline/Headline';
|
|
7
7
|
|
|
8
8
|
export interface LinkDocsProps extends LinkDocsContent, UniBlockProps {}
|
|
9
9
|
|
|
@@ -12,7 +12,7 @@ export const LinkDocs = JSX<LinkDocsProps>(
|
|
|
12
12
|
className = '',
|
|
13
13
|
context,
|
|
14
14
|
title,
|
|
15
|
-
|
|
15
|
+
description,
|
|
16
16
|
icon = { icon: 'DocIconMonoColor' },
|
|
17
17
|
documents,
|
|
18
18
|
orientation = 'vertical',
|
|
@@ -22,16 +22,14 @@ export const LinkDocs = JSX<LinkDocsProps>(
|
|
|
22
22
|
<section
|
|
23
23
|
className={`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${className}`}
|
|
24
24
|
>
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
<h3 className="mt-0 font-normal mb-5 text-center text-m-md">{subtitle}</h3>
|
|
34
|
-
) : null}
|
|
25
|
+
<Headline
|
|
26
|
+
className={`!p-0 ${description ? 'gap-2' : 'gap-5'}`}
|
|
27
|
+
title={title}
|
|
28
|
+
description={description}
|
|
29
|
+
context={context}
|
|
30
|
+
align="center"
|
|
31
|
+
headingType="h3"
|
|
32
|
+
/>
|
|
35
33
|
{orientation === 'vertical' ? (
|
|
36
34
|
<LinkDocsVerticalList hasBorder={hasBorder} documents={documents} icon={icon} />
|
|
37
35
|
) : (
|
|
@@ -11,7 +11,7 @@ export interface LinkDocsHorizontalListProps extends LinkDocsVerticalListProps {
|
|
|
11
11
|
export const LinkDocsHorizontalList = JSX<LinkDocsHorizontalListProps>(
|
|
12
12
|
({ context, hasBorder = true, documents, icon }) => {
|
|
13
13
|
return (
|
|
14
|
-
<SwipeListControl context={context} className="text-m-sm text-primary-main">
|
|
14
|
+
<SwipeListControl context={context} className="text-m-sm text-primary-main mt-5">
|
|
15
15
|
{documents?.length
|
|
16
16
|
? documents.map((doc, i) => (
|
|
17
17
|
<LinkDocsListItem
|
|
@@ -13,7 +13,9 @@ export const LinkDocsVerticalList = JSX<LinkDocsVerticalListProps>(
|
|
|
13
13
|
({ hasBorder = true, documents, icon }) => {
|
|
14
14
|
return (
|
|
15
15
|
<div
|
|
16
|
-
className={`text-m-sm text-primary-main flex flex-col
|
|
16
|
+
className={`text-m-sm text-primary-main flex flex-col mt-5 ${
|
|
17
|
+
hasBorder ? 'gap-3.5' : 'gap-2'
|
|
18
|
+
}`}
|
|
17
19
|
role="list"
|
|
18
20
|
>
|
|
19
21
|
{documents?.length
|
|
@@ -2,7 +2,7 @@ import type { LinkDocsContent } from './LinkDocsContent';
|
|
|
2
2
|
|
|
3
3
|
export const linkDocsContentExample: LinkDocsContent = {
|
|
4
4
|
title: 'Дополнительные документы',
|
|
5
|
-
|
|
5
|
+
description: 'Ответы на часто задаваемые вопросы',
|
|
6
6
|
documents: [
|
|
7
7
|
{ text: 'target self', href: '/abc1/cooldoc.doc', target: '_self' },
|
|
8
8
|
{ text: 'target blank', href: '/abc2/wtf.rtf', target: '_blank' },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useCallback, useRef } from 'react';
|
|
2
|
+
import { IntersectionObserverComponent } from '../components/ContentPage/ContentPageContext';
|
|
3
3
|
|
|
4
|
-
export const IntersectionObserverTag:
|
|
4
|
+
export const IntersectionObserverTag: IntersectionObserverComponent = (props) => {
|
|
5
5
|
const { Tag, observerCallback, observerOptions, children, ...rest } = props;
|
|
6
6
|
|
|
7
7
|
const intersectionObserver = useRef<IntersectionObserver>();
|
package/package.json
CHANGED
|
@@ -21,15 +21,6 @@ const image2: Picture = {
|
|
|
21
21
|
},
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
-
const image3: Picture = {
|
|
25
|
-
src: 'card-3.png',
|
|
26
|
-
format: 'webp',
|
|
27
|
-
size: {
|
|
28
|
-
width: 100,
|
|
29
|
-
height: 63,
|
|
30
|
-
},
|
|
31
|
-
};
|
|
32
|
-
|
|
33
24
|
const rowHeaders = [
|
|
34
25
|
{ title: 'Начисление процентов на остаток по счету' },
|
|
35
26
|
{ title: 'Начисление процентов на остаток по счету' },
|
|
@@ -22,11 +22,6 @@ export const TableCell = JSX<TableCellProps>(({ cell, rowHeader, isFillGradient
|
|
|
22
22
|
);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
|
-
const labelStyle = (isFillGradient = false): string =>
|
|
26
|
-
`text-right ${isFillGradient ? 'text-white' : ''}`;
|
|
27
|
-
const descriptionStyle = (isFillGradient = false): string =>
|
|
28
|
-
`text-right ${isFillGradient ? 'text-white/80' : 'text-secondary-text'}`;
|
|
29
|
-
|
|
30
25
|
const renderCellInner =
|
|
31
26
|
(isFillGradient: boolean, rowHeader?: string) =>
|
|
32
27
|
({ label, description }: CellData, i: number) =>
|
|
@@ -36,9 +31,15 @@ const renderCellInner =
|
|
|
36
31
|
{rowHeader}
|
|
37
32
|
</div>
|
|
38
33
|
<div className="basis-1/2">
|
|
39
|
-
{label ?
|
|
34
|
+
{label ? (
|
|
35
|
+
<div className={`text-right ${isFillGradient ? 'text-white' : ''}`}>{label}</div>
|
|
36
|
+
) : null}
|
|
40
37
|
{description ? (
|
|
41
|
-
<div
|
|
38
|
+
<div
|
|
39
|
+
className={`text-right ${isFillGradient ? 'text-white/80' : 'text-secondary-text'}`}
|
|
40
|
+
>
|
|
41
|
+
{description}
|
|
42
|
+
</div>
|
|
42
43
|
) : null}
|
|
43
44
|
</div>
|
|
44
45
|
</div>
|
|
@@ -1457,7 +1457,7 @@
|
|
|
1457
1457
|
"anchor": "documents",
|
|
1458
1458
|
"content": {
|
|
1459
1459
|
"title": "Дополнительные документы",
|
|
1460
|
-
"
|
|
1460
|
+
"description": "Ответы на часто задаваемые вопросы",
|
|
1461
1461
|
"icon": {
|
|
1462
1462
|
"icon": "DocIcon"
|
|
1463
1463
|
},
|
|
@@ -42,6 +42,10 @@ export interface IntersectionObserverTagProps {
|
|
|
42
42
|
observerOptions?: IntersectionObserverInit;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
export type IntersectionObserverComponent = (
|
|
46
|
+
props: IntersectionObserverTagProps & Record<string, any>,
|
|
47
|
+
) => VNode;
|
|
48
|
+
|
|
45
49
|
export interface ContentPageContext {
|
|
46
50
|
useRouter: () => Router;
|
|
47
51
|
useState: SetStateHook;
|
|
@@ -50,5 +54,5 @@ export interface ContentPageContext {
|
|
|
50
54
|
useLikeService: () => LikeService;
|
|
51
55
|
useSearch: () => Search;
|
|
52
56
|
handlerDecorator?: HandlerDecorator;
|
|
53
|
-
IntersectionObserverTag:
|
|
57
|
+
IntersectionObserverTag: IntersectionObserverComponent;
|
|
54
58
|
}
|
|
@@ -17,13 +17,6 @@ const image: Picture = {
|
|
|
17
17
|
title: 'money',
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
const buttonPrimary: ButtonCommonProps = {
|
|
21
|
-
href: '/credit-cards',
|
|
22
|
-
text: 'Подробнее',
|
|
23
|
-
target: '_blank',
|
|
24
|
-
version: 'secondary',
|
|
25
|
-
icon: { icon: 'BankIcon' },
|
|
26
|
-
};
|
|
27
20
|
const link: ButtonCommonProps = {
|
|
28
21
|
href: '/credit-cards',
|
|
29
22
|
text: 'Подробнее',
|
|
@@ -19,7 +19,7 @@ export const Headline = JSX<HeadlineProps>(
|
|
|
19
19
|
}) => {
|
|
20
20
|
const STYLE_MAPS = HEADLINE_BLOCK_STYLE_MAPS[bgColorHeadline];
|
|
21
21
|
return (
|
|
22
|
-
<section className={`px-4 py-6 ${STYLE_MAPS.background} ${className}`}>
|
|
22
|
+
<section className={`px-4 py-6 flex flex-col gap-2.5 ${STYLE_MAPS.background} ${className}`}>
|
|
23
23
|
{title ? (
|
|
24
24
|
<Heading
|
|
25
25
|
headingType="h2"
|
|
@@ -29,15 +29,13 @@ export const Headline = JSX<HeadlineProps>(
|
|
|
29
29
|
) : null}
|
|
30
30
|
{description ? (
|
|
31
31
|
<p
|
|
32
|
-
className={`font-normal text-m-md ${STYLE_MAPS.description} ${ALIGN_TEXT[align]}
|
|
33
|
-
title ? 'mt-2.5' : ''
|
|
34
|
-
}`}
|
|
32
|
+
className={`font-normal text-m-md ${STYLE_MAPS.description} ${ALIGN_TEXT[align]} `}
|
|
35
33
|
>
|
|
36
34
|
{description}
|
|
37
35
|
</p>
|
|
38
36
|
) : null}
|
|
39
37
|
{image?.src && (
|
|
40
|
-
<div className="mt-5 mx-auto flex justify-center">
|
|
38
|
+
<div className="mt-2.5 mx-auto flex justify-center">
|
|
41
39
|
<Img image={image} />
|
|
42
40
|
</div>
|
|
43
41
|
)}
|
|
@@ -15,21 +15,24 @@ export const Headline = JSX<HeadlineProps>(
|
|
|
15
15
|
title,
|
|
16
16
|
description,
|
|
17
17
|
anchor = null,
|
|
18
|
+
headingType = 'h2',
|
|
18
19
|
}) => {
|
|
19
20
|
const STYLE_MAPS = HEADLINE_BLOCK_STYLE_MAPS[bgColorHeadline];
|
|
21
|
+
|
|
20
22
|
return (
|
|
21
|
-
<section
|
|
23
|
+
<section
|
|
24
|
+
className={`p-[50px] flex flex-col gap-4 ${STYLE_MAPS.background} ${className}`}
|
|
25
|
+
id={anchor}
|
|
26
|
+
>
|
|
22
27
|
{title ? (
|
|
23
28
|
<Heading
|
|
24
|
-
headingType=
|
|
29
|
+
headingType={headingType}
|
|
25
30
|
className={`text-primary-text ${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`}
|
|
26
31
|
title={title}
|
|
27
32
|
/>
|
|
28
33
|
) : null}
|
|
29
34
|
{description ? (
|
|
30
|
-
<p className={`
|
|
31
|
-
{description}
|
|
32
|
-
</p>
|
|
35
|
+
<p className={`text-base ${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`}>{description}</p>
|
|
33
36
|
) : null}
|
|
34
37
|
</section>
|
|
35
38
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BlockVersionWithTransparent } from '../../model/BlockVersion';
|
|
2
2
|
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
|
|
3
|
-
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
3
|
+
import type { HeadingContent, HeadingType } from '../../ui-kit/Heading/HeadingContent';
|
|
4
4
|
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
5
5
|
import type { AlignType } from '../../model/AlignType';
|
|
6
6
|
|
|
@@ -12,4 +12,5 @@ export type HeadlineContent = HeadingContent &
|
|
|
12
12
|
ImageContent & {
|
|
13
13
|
align?: AlignType;
|
|
14
14
|
bgColorHeadline?: BlockVersionWithTransparent;
|
|
15
|
+
headingType?: HeadingType;
|
|
15
16
|
};
|
|
@@ -5,12 +5,7 @@ import { linkDocsContentExample } from './linkDocsContentExample';
|
|
|
5
5
|
export default {
|
|
6
6
|
'vertical (default)': (
|
|
7
7
|
<div className="container grid grid-cols-12">
|
|
8
|
-
<LinkDocs
|
|
9
|
-
className="col-span-12"
|
|
10
|
-
context={mobileContext}
|
|
11
|
-
subtitle="Откройте мультивалютный вклад, чтобы распределить свои вложения"
|
|
12
|
-
{...linkDocsContentExample}
|
|
13
|
-
/>
|
|
8
|
+
<LinkDocs className="col-span-12" context={mobileContext} {...linkDocsContentExample} />
|
|
14
9
|
</div>
|
|
15
10
|
),
|
|
16
11
|
'vertical, no border': (
|