@redneckz/wildless-cms-uni-blocks 0.9.0 → 0.9.2
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/bin/migration-scripts/0.8.24.js +6 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +18 -12
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +1 -1
- package/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +1 -1
- package/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -1
- package/bundle/components/Footer/FooterContent.d.ts +2 -2
- package/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -0
- package/dist/components/CarouselEventCard/CarouselEventCard.d.ts +1 -1
- package/dist/components/CarouselEventCard/CarouselEventCard.js +9 -3
- package/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCard.d.ts +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCard.js +9 -5
- package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -1
- package/dist/components/Filtration/FiltrationInner.js +1 -1
- package/dist/components/Filtration/FiltrationInner.js.map +1 -1
- package/dist/components/Footer/FooterContent.d.ts +2 -2
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -0
- package/dist/components/ProductBlock/ProductBlockInner.js +2 -2
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/ui-kit/Foldable/DefaultFoldButton.js +3 -5
- package/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/CarouselEventCard/CarouselEventCard.d.ts +1 -1
- package/lib/components/CarouselEventCard/CarouselEventCard.js +9 -3
- package/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.d.ts +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.js +9 -5
- package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -1
- package/lib/components/Filtration/FiltrationInner.js +1 -1
- package/lib/components/Filtration/FiltrationInner.js.map +1 -1
- package/lib/components/Footer/FooterContent.d.ts +2 -2
- package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +1 -0
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -0
- package/lib/components/ProductBlock/ProductBlockInner.js +2 -2
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/ui-kit/Foldable/DefaultFoldButton.js +3 -5
- package/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +4 -6
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +1 -1
- package/mobile/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +1 -1
- package/mobile/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -1
- package/mobile/bundle/components/Footer/FooterContent.d.ts +2 -2
- package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -0
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.d.ts +1 -1
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +9 -3
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.d.ts +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +9 -5
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -1
- package/mobile/dist/components/Filtration/FiltrationInner.js +1 -1
- package/mobile/dist/components/Filtration/FiltrationInner.js.map +1 -1
- package/mobile/dist/components/Footer/FooterContent.d.ts +2 -2
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -0
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js +3 -5
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.d.ts +1 -1
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +9 -3
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.d.ts +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +9 -5
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -1
- package/mobile/lib/components/Filtration/FiltrationInner.js +1 -1
- package/mobile/lib/components/Filtration/FiltrationInner.js.map +1 -1
- package/mobile/lib/components/Footer/FooterContent.d.ts +2 -2
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -0
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js +3 -5
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.example.json +0 -1
- package/mobile/src/components/CarouselEventCard/CarouselEventCard.example.json +1 -3
- package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +19 -9
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +0 -1
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +21 -12
- package/mobile/src/components/CarouselProductCard/CarouselProductCardContent.ts +3 -1
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +0 -2
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.example.json +0 -1
- package/mobile/src/components/Filtration/FiltrationInner.tsx +2 -2
- package/mobile/src/components/Footer/Footer.ui.json +1 -11
- package/mobile/src/components/Footer/FooterContent.ts +2 -3
- package/mobile/src/components/ProductBlock/ProductBlock.example.json +2 -1
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +2 -0
- package/mobile/src/ui-kit/Foldable/DefaultFoldButton.tsx +3 -9
- package/package.json +1 -1
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.example.json +0 -1
- package/src/components/CarouselEventCard/CarouselEventCard.example.json +1 -3
- package/src/components/CarouselEventCard/CarouselEventCard.tsx +19 -9
- package/src/components/CarouselProductCard/CarouselProductCard.example.json +0 -1
- package/src/components/CarouselProductCard/CarouselProductCard.tsx +21 -12
- package/src/components/CarouselProductCard/CarouselProductCardContent.ts +3 -1
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +0 -2
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.example.json +0 -1
- package/src/components/Filtration/FiltrationInner.tsx +2 -2
- package/src/components/Footer/Footer.ui.json +1 -11
- package/src/components/Footer/FooterContent.ts +2 -3
- package/src/components/ProductBlock/ProductBlock.example.json +2 -1
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +17 -0
- package/src/components/ProductBlock/ProductBlockContent.ts +2 -0
- package/src/components/ProductBlock/ProductBlockInner.tsx +4 -1
- package/src/ui-kit/Foldable/DefaultFoldButton.tsx +3 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselEventCard.js","sourceRoot":"","sources":["../../../src/components/CarouselEventCard/CarouselEventCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,4DAAyD;AACzD,0DAAuD;AACvD,8CAA2C;AAC3C,iDAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"CarouselEventCard.js","sourceRoot":"","sources":["../../../src/components/CarouselEventCard/CarouselEventCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,4DAAyD;AACzD,uEAAoE;AACpE,0DAAuD;AACvD,8CAA2C;AAC3C,6CAA0C;AAC1C,iDAA8C;AAC9C,iDAA8C;AAMjC,QAAA,iBAAiB,GAAG,IAAA,aAAG,E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BlockProps } from '../../model/JSXBlock';
|
|
2
1
|
import type { CarouselProductCardContent } from './CarouselProductCardContent';
|
|
2
|
+
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
3
|
export interface CarouselProductCardProps extends CarouselProductCardContent, UniBlockProps {
|
|
4
4
|
}
|
|
5
5
|
export declare const CarouselProductCard: import("@redneckz/uni-jsx").UNIComponent<CarouselProductCardProps, any, any>;
|
|
@@ -3,15 +3,19 @@ exports.CarouselProductCard = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
6
|
-
const
|
|
6
|
+
const headlineVersionStyles_1 = require("../Headline/headlineVersionStyles");
|
|
7
7
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
8
8
|
const List_1 = require("../../ui-kit/List/List");
|
|
9
9
|
const Paragraph_1 = require("../../ui-kit/Paragraph/Paragraph");
|
|
10
|
-
const
|
|
10
|
+
const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection");
|
|
11
11
|
const style_1 = require("../../utils/style");
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
const Text_1 = require("../../ui-kit/Text/Text");
|
|
13
|
+
const useLink_1 = require("../../hooks/useLink");
|
|
14
|
+
exports.CarouselProductCard = (0, uni_jsx_1.JSX)(({ additionalDescription, align = 'text-center', button = {}, className = '', description, headlineSmallVersion = 'H6', href, icon, isDotted = true, items = [], target, title, version = 'primary', ...rest }) => {
|
|
15
|
+
const link = (0, useLink_1.useLink)();
|
|
16
|
+
const adjustedProps = link({ href, target });
|
|
17
|
+
const tagName = href ? 'a' : 'section';
|
|
18
|
+
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('flex flex-col justify-between items-stretch min-w-[260px] h-full w-full p-6', 'box-border border-solid border border-gray', align, className), extraProps: adjustedProps, tag: tagName, version: version, ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col h-full", children: [renderImage(icon), renderCardTitle(headlineSmallVersion, title), renderDescription(description, title), renderItems(items, isDotted, version), renderAdditionalDescription(additionalDescription)] }), (0, renderButtonsSection_1.renderButtonsSection)([button], { buttonClassName: 'mt-6 w-full' })] }));
|
|
15
19
|
});
|
|
16
20
|
const renderImage = (image) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex justify-center", children: [image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mb-5", image: image }) : null, image?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: `w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full`, image: image, asSVG: true })) : null] }));
|
|
17
21
|
const renderCardTitle = (headlineSmallVersion, title) => title ? (0, jsx_runtime_1.jsx)(Text_1.Text, { size: headlineVersionStyles_1.HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) : null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselProductCard.js","sourceRoot":"","sources":["../../../src/components/CarouselProductCard/CarouselProductCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"CarouselProductCard.js","sourceRoot":"","sources":["../../../src/components/CarouselProductCard/CarouselProductCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,4DAAyD;AACzD,6EAA2E;AAC3E,8CAA2C;AAC3C,iDAA8C;AAC9C,gEAA6D;AAC7D,mFAAgF;AAChF,6CAA0C;AAC1C,iDAA8C;AAC9C,iDAA8C;AAQjC,QAAA,mBAAmB,GAAG,IAAA,aAAG,EACpC,CAAC,EACC,qBAAqB,EACrB,KAAK,GAAG,aAAa,EACrB,MAAM,GAAG,EAAE,EACX,SAAS,GAAG,EAAE,EACd,WAAW,EACX,oBAAoB,GAAG,IAAI,EAC3B,IAAI,EACJ,IAAI,EACJ,QAAQ,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CAAC,IAAI,CAAC,IAAc,CAAC,EAC5E,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC,CAAC,CAAC,IAAI,CAAC"}
|
|
@@ -3,6 +3,7 @@ import type { ButtonCommonIconProps } from '../../model/Button';
|
|
|
3
3
|
import type { AdditionalDescriptionProps, HeadlineSmallProps } from '../../model/HeadlineType';
|
|
4
4
|
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
5
5
|
import type { IconProps } from '../../model/Picture';
|
|
6
|
+
import type { LinkCommonProps } from '../../model/LinkProps';
|
|
6
7
|
import type { TextAlign } from '../../ui-kit/Text/TextProps';
|
|
7
8
|
/**
|
|
8
9
|
* @title Элемент списка
|
|
@@ -14,7 +15,7 @@ export interface ListProps {
|
|
|
14
15
|
/**
|
|
15
16
|
* @title Карточка продуктовой карусели
|
|
16
17
|
*/
|
|
17
|
-
export declare type CarouselProductCardContent = UniBlockContent & HeadlineSmallProps & AdditionalDescriptionProps & IconProps & ButtonCommonIconProps & BulletsProps & {
|
|
18
|
+
export declare type CarouselProductCardContent = UniBlockContent & HeadlineSmallProps & AdditionalDescriptionProps & IconProps & ButtonCommonIconProps & BulletsProps & LinkCommonProps & {
|
|
18
19
|
/** @title Список */
|
|
19
20
|
items?: ListProps[];
|
|
20
21
|
align?: TextAlign;
|
|
@@ -18,6 +18,6 @@ exports.FiltrationInner = (0, uni_jsx_1.JSX)(({ label = '', filtrationState = {}
|
|
|
18
18
|
: [blocksToRender, []];
|
|
19
19
|
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)(blocksToRender.length ? 'hidden' : ''), children: (0, jsx_runtime_1.jsx)(ErrorBlock_1.ErrorBlock, { error: { errorContentType: 'Image' }, title: "\u041D\u0435\u0442 \u043F\u043E\u0434\u0445\u043E\u0434\u044F\u0449\u0435\u0439 \u0438\u043F\u043E\u0442\u0435\u0447\u043D\u043E\u0439 \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u044B", subtitle: "\u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440\u044B" }) }), (0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)(blocksToRender.length ? '' : 'hidden'), children: [(0, jsx_runtime_1.jsx)("div", { className: resultsGridStyle, children: (0, renderBlockList_1.renderBlocksList)(visibleBlocks, { ...rest.options, parent: block }) }), (0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { renderFoldableSection: ({ isUnfolded }) => {
|
|
20
20
|
return ((0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { className: resultsGridStyle, isUnfolded: isUnfolded, children: (0, renderBlockList_1.renderBlocksList)(hiddenBlocks, { ...rest.options, parent: block }) }));
|
|
21
|
-
}, renderFoldButton: ({ isUnfolded, onToggle }) => ((0, jsx_runtime_1.jsx)(DefaultFoldButton_1.DefaultFoldButton, { className:
|
|
21
|
+
}, renderFoldButton: ({ isUnfolded, onToggle }) => ((0, jsx_runtime_1.jsx)(DefaultFoldButton_1.DefaultFoldButton, { className: (0, style_1.style)('mt-11', topItemsCount < 1 ? 'hidden' : ''), disabled: !hiddenBlocks?.length, label: label, icon: ICONS[Number(isUnfolded)], dataTheme: rest.options?.page?.colorPalette, onClick: onToggle })) })] })] }));
|
|
22
22
|
});
|
|
23
23
|
//# sourceMappingURL=FiltrationInner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiltrationInner.js","sourceRoot":"","sources":["../../../src/components/Filtration/FiltrationInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,yEAAuE;AAGvE,+EAA4E;AAC5E,6DAA0D;AAC1D,2EAAwE;AACxE,6CAA0C;AAC1C,yDAAsD;AACtD,qEAAkE;AAGlE,MAAM,KAAK,GAAe,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;AAE3D,MAAM,gBAAgB,GAA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EAAE,IAAI,EAAE,YAAY,EAC3C,OAAO,EAAE,QAAQ,GACjB,CACH,GACD,IACE,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { DescriptionProps } from '../../model/HeadlineType';
|
|
2
2
|
import type { LinkProps } from '../../model/LinkProps';
|
|
3
3
|
import type { IconProps } from '../../model/Picture';
|
|
4
|
+
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
4
5
|
/**
|
|
5
6
|
* @title Тип контакта
|
|
6
7
|
* @enumNames [
|
|
@@ -23,6 +24,5 @@ export declare type ContactInfo = DescriptionProps & {
|
|
|
23
24
|
export declare type SubMenuItem = LinkProps & IconProps;
|
|
24
25
|
/**
|
|
25
26
|
* @title Подвал
|
|
26
|
-
* @hidden
|
|
27
27
|
*/
|
|
28
|
-
export declare type FooterContent = {};
|
|
28
|
+
export declare type FooterContent = UniBlockContent & {};
|
|
@@ -5,11 +5,9 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const style_1 = require("../../utils/style");
|
|
6
6
|
const Img_1 = require("../Img/Img");
|
|
7
7
|
exports.DefaultFoldButton = (0, uni_jsx_1.JSX)(({ className = '', label, icon, dataTheme = '', disabled = false, onClick }) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
? 'bg-main-divider text-main-disabled cursor-not-allowed hover:bg-main-divider active:bg-main-divider'
|
|
12
|
-
: '', className), onClick: onClick, disabled: disabled, "data-theme": dataTheme, children: [(0, jsx_runtime_1.jsx)("span", { className: "text-h4 pr-3", children: label }), icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: {
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)("button", { className: (0, style_1.style)('flex justify-center w-full px-0 py-5 border border-transparent outline-none focus:border-primary-text', disabled
|
|
9
|
+
? 'bg-main-divider text-main-disabled hover:bg-main-divider'
|
|
10
|
+
: 'bg-primary-main text-white hover:bg-primary-hove', className), onClick: onClick, disabled: disabled, "data-theme": dataTheme, children: [(0, jsx_runtime_1.jsx)("span", { className: "text-h4 pr-3", children: label }), icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: {
|
|
13
11
|
icon,
|
|
14
12
|
iconVersion: 'white',
|
|
15
13
|
}, className: "flex-shrink-0 my-auto", width: "20", height: "20", asSVG: true })) : null] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultFoldButton.js","sourceRoot":"","sources":["../../../src/ui-kit/Foldable/DefaultFoldButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,6CAA0C;AAE1C,oCAAiC;AAYpB,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,GAAG,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE;IAC7E,
|
|
1
|
+
{"version":3,"file":"DefaultFoldButton.js","sourceRoot":"","sources":["../../../src/ui-kit/Foldable/DefaultFoldButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,6CAA0C;AAE1C,oCAAiC;AAYpB,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,GAAG,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE;IAC7E,OAAO,CACL,oCACE,SAAS,EAAE,IAAA,aAAK,EACd,uGAAuG,EACvG,QAAQ;YACN,CAAC,CAAC,0DAA0D;YAC5D,CAAC,CAAC,kDAAkD,EACtD,SAAS,CACV,EACD,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,gBACN,SAAS,aAErB,iCAAM,SAAS,EAAC,cAAc,YAAE,KAAK,GAAQ,EAC5C,IAAI,CAAC,CAAC,CAAC,CACN,uBAAC,SAAG,IACF,KAAK,EAAE;oBACL,IAAI;oBACJ,WAAW,EAAE,OAAO;iBACrB,EACD,SAAS,EAAC,uBAAuB,EACjC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,IACD,CACV,CAAC;AACJ,CAAC,CACF,CAAC;AAEK,MAAM,uBAAuB,GAAG,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAqB,EAAE,EAAE;IACrF,MAAM,MAAM,GAAG,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;IACxC,MAAM,KAAK,GAAe,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;IAE3D,OAAO,CACL,uBAAC,yBAAiB,IAChB,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAC/B,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EACjC,OAAO,EAAE,QAAQ,GACjB,CACH,CAAC;AACJ,CAAC,CAAC;AAXW,QAAA,uBAAuB,2BAWlC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
2
1
|
import type { CarouselEventCardContent } from './CarouselEventCardContent';
|
|
2
|
+
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
3
|
export interface CarouselEventCardProps extends CarouselEventCardContent, UniBlockProps {
|
|
4
4
|
}
|
|
5
5
|
export declare const CarouselEventCard: import("@redneckz/uni-jsx").UNIComponent<CarouselEventCardProps, any, any>;
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
4
|
+
import { getIconWithVersion } from '../../utils/getIconWithVersion.js';
|
|
4
5
|
import { Heading } from '../../ui-kit/Heading/Heading.js';
|
|
5
6
|
import { Img } from '../../ui-kit/Img/Img.js';
|
|
6
|
-
import { Text } from '../../ui-kit/Text/Text.js';
|
|
7
|
-
import { getIconWithVersion } from '../../utils/getIconWithVersion.js';
|
|
8
7
|
import { style } from '../../utils/style.js';
|
|
9
|
-
|
|
8
|
+
import { Text } from '../../ui-kit/Text/Text.js';
|
|
9
|
+
import { useLink } from '../../hooks/useLink.js';
|
|
10
|
+
export const CarouselEventCard = JSX(({ className = '', icon, title, description, href, target, ...rest }) => {
|
|
11
|
+
const link = useLink();
|
|
12
|
+
const adjustedProps = link({ href, target });
|
|
13
|
+
const tagName = href ? 'a' : 'section';
|
|
14
|
+
return (_jsxs(BlockWrapper, { className: style('flex flex-col w-[365px]', className), extraProps: adjustedProps, tag: tagName, ...rest, children: [icon?.icon ? _jsx(Img, { image: getIconWithVersion(icon), asSVG: true }) : null, icon?.src ? _jsx(Img, { image: icon }) : null, title ? (_jsx(Heading, { headingType: "h6", as: "h4", className: "text-left mb-2", title: title })) : null, description ? (_jsx("div", { className: "mb-4", children: _jsx(Text, { font: "font-light", size: "text-s", color: "text-secondary-text", children: description }) })) : null] }));
|
|
15
|
+
});
|
|
10
16
|
//# sourceMappingURL=CarouselEventCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselEventCard.js","sourceRoot":"","sources":["../../../src/components/CarouselEventCard/CarouselEventCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"CarouselEventCard.js","sourceRoot":"","sources":["../../../src/components/CarouselEventCard/CarouselEventCard.tsx"],"names":[],"mappings":";AAAA,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C,WAAW,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,SAAS,EAAC,gBAAgB,EAAC,KAAK,EAAE,KAAK,GAAI,CAC9E,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,CACb,cAAK,SAAS,EAAC,MAAM,YACnB,KAAC,IAAI,IAAC,IAAI,EAAC,YAAY,EAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,qBAAqB,YAC9D,WAAW,GACP,GACH,CACP,CAAC,CAAC,CAAC,IAAI,IACK,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
2
1
|
import type { CarouselProductCardContent } from './CarouselProductCardContent';
|
|
2
|
+
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
3
|
export interface CarouselProductCardProps extends CarouselProductCardContent, UniBlockProps {
|
|
4
4
|
}
|
|
5
5
|
export declare const CarouselProductCard: import("@redneckz/uni-jsx").UNIComponent<CarouselProductCardProps, any, any>;
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { jsxs as _jsxs, jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
4
|
-
import {
|
|
4
|
+
import { HEADLINE_SMALL_VERSION } from '../Headline/headlineVersionStyles.js';
|
|
5
5
|
import { Img } from '../../ui-kit/Img/Img.js';
|
|
6
6
|
import { List } from '../../ui-kit/List/List.js';
|
|
7
7
|
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph.js';
|
|
8
|
-
import {
|
|
8
|
+
import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection.js';
|
|
9
9
|
import { style } from '../../utils/style.js';
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
import { Text } from '../../ui-kit/Text/Text.js';
|
|
11
|
+
import { useLink } from '../../hooks/useLink.js';
|
|
12
|
+
export const CarouselProductCard = JSX(({ additionalDescription, align = 'text-center', button = {}, className = '', description, headlineSmallVersion = 'H6', href, icon, isDotted = true, items = [], target, title, version = 'primary', ...rest }) => {
|
|
13
|
+
const link = useLink();
|
|
14
|
+
const adjustedProps = link({ href, target });
|
|
15
|
+
const tagName = href ? 'a' : 'section';
|
|
16
|
+
return (_jsxs(BlockWrapper, { className: style('flex flex-col justify-between items-stretch min-w-[260px] h-full w-full p-6', 'box-border border-solid border border-gray', align, className), extraProps: adjustedProps, tag: tagName, version: version, ...rest, children: [_jsxs("div", { className: "flex flex-col h-full", children: [renderImage(icon), renderCardTitle(headlineSmallVersion, title), renderDescription(description, title), renderItems(items, isDotted, version), renderAdditionalDescription(additionalDescription)] }), renderButtonsSection([button], { buttonClassName: 'mt-6 w-full' })] }));
|
|
13
17
|
});
|
|
14
18
|
const renderImage = (image) => (_jsxs("div", { className: "flex justify-center", children: [image?.src ? _jsx(Img, { className: "mb-5", image: image }) : null, image?.icon ? (_jsx(Img, { className: `w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full`, image: image, asSVG: true })) : null] }));
|
|
15
19
|
const renderCardTitle = (headlineSmallVersion, title) => title ? _jsx(Text, { size: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) : null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselProductCard.js","sourceRoot":"","sources":["../../../src/components/CarouselProductCard/CarouselProductCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"CarouselProductCard.js","sourceRoot":"","sources":["../../../src/components/CarouselProductCard/CarouselProductCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD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CAAC,CACtB,cAAK,SAAS,EAAC,SAAS,YACtB,KAAC,IAAI,IACH,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,YAAY,EACjB,KAAK,EAAC,wDAAwD,YAE7D,qBAAqB,GACjB,GACH,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AAEX,MAAM,WAAW,GAAG,CAAC,KAAkB,EAAE,QAAiB,EAAE,UAAwB,SAAS,EAAE,EAAE,CAC/F,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACd,KAAC,IAAI,IACH,SAAS,EAAE,6BAA6B,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,EAAE,EAAE,EAC7F,aAAa,EAAC,WAAW,EACzB,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAc,CAAC,EAC5E,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC,CAAC,CAAC,IAAI,CAAC"}
|
|
@@ -3,6 +3,7 @@ import type { ButtonCommonIconProps } from '../../model/Button';
|
|
|
3
3
|
import type { AdditionalDescriptionProps, HeadlineSmallProps } from '../../model/HeadlineType';
|
|
4
4
|
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
5
5
|
import type { IconProps } from '../../model/Picture';
|
|
6
|
+
import type { LinkCommonProps } from '../../model/LinkProps';
|
|
6
7
|
import type { TextAlign } from '../../ui-kit/Text/TextProps';
|
|
7
8
|
/**
|
|
8
9
|
* @title Элемент списка
|
|
@@ -14,7 +15,7 @@ export interface ListProps {
|
|
|
14
15
|
/**
|
|
15
16
|
* @title Карточка продуктовой карусели
|
|
16
17
|
*/
|
|
17
|
-
export declare type CarouselProductCardContent = UniBlockContent & HeadlineSmallProps & AdditionalDescriptionProps & IconProps & ButtonCommonIconProps & BulletsProps & {
|
|
18
|
+
export declare type CarouselProductCardContent = UniBlockContent & HeadlineSmallProps & AdditionalDescriptionProps & IconProps & ButtonCommonIconProps & BulletsProps & LinkCommonProps & {
|
|
18
19
|
/** @title Список */
|
|
19
20
|
items?: ListProps[];
|
|
20
21
|
align?: TextAlign;
|
|
@@ -16,6 +16,6 @@ export const FiltrationInner = JSX(({ label = '', filtrationState = {}, topItems
|
|
|
16
16
|
: [blocksToRender, []];
|
|
17
17
|
return (_jsxs("div", { children: [_jsx("div", { className: style(blocksToRender.length ? 'hidden' : ''), children: _jsx(ErrorBlock, { error: { errorContentType: 'Image' }, title: "\u041D\u0435\u0442 \u043F\u043E\u0434\u0445\u043E\u0434\u044F\u0449\u0435\u0439 \u0438\u043F\u043E\u0442\u0435\u0447\u043D\u043E\u0439 \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u044B", subtitle: "\u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440\u044B" }) }), _jsxs("div", { className: style(blocksToRender.length ? '' : 'hidden'), children: [_jsx("div", { className: resultsGridStyle, children: renderBlocksList(visibleBlocks, { ...rest.options, parent: block }) }), _jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => {
|
|
18
18
|
return (_jsx(FoldableSection, { className: resultsGridStyle, isUnfolded: isUnfolded, children: renderBlocksList(hiddenBlocks, { ...rest.options, parent: block }) }));
|
|
19
|
-
}, renderFoldButton: ({ isUnfolded, onToggle }) => (_jsx(DefaultFoldButton, { className:
|
|
19
|
+
}, renderFoldButton: ({ isUnfolded, onToggle }) => (_jsx(DefaultFoldButton, { className: style('mt-11', topItemsCount < 1 ? 'hidden' : ''), disabled: !hiddenBlocks?.length, label: label, icon: ICONS[Number(isUnfolded)], dataTheme: rest.options?.page?.colorPalette, onClick: onToggle })) })] })] }));
|
|
20
20
|
});
|
|
21
21
|
//# sourceMappingURL=FiltrationInner.js.map
|
|
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AAC,QAAQ,CAAC,aAC1D,cAAK,SAAS,EAAE,gBAAgB,YAC7B,gBAAgB,CAAC,aAAa,EAAE,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAChE,EACN,KAAC,QAAQ,IACP,qBAAqB,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE;4BACxC,OAAO,CACL,KAAC,eAAe,IAAC,SAAS,EAAE,gBAAgB,EAAE,UAAU,EAAE,UAAU,YACjE,gBAAgB,CAAC,YAAY,EAAE,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GACnD,CACnB,CAAC;wBACJ,CAAC,EACD,gBAAgB,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAC9C,KAAC,iBAAiB,IAChB,SAAS,EAAE,KAAK,CAAC,OAAO,EAAE,aAAa,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,EAC5D,QAAQ,EAAE,CAAC,YAAY,EAAE,MAAM,EAC/B,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAC/B,SAAS,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,YAAY,EAC3C,OAAO,EAAE,QAAQ,GACjB,CACH,GACD,IACE,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { DescriptionProps } from '../../model/HeadlineType';
|
|
2
2
|
import type { LinkProps } from '../../model/LinkProps';
|
|
3
3
|
import type { IconProps } from '../../model/Picture';
|
|
4
|
+
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
4
5
|
/**
|
|
5
6
|
* @title Тип контакта
|
|
6
7
|
* @enumNames [
|
|
@@ -23,6 +24,5 @@ export declare type ContactInfo = DescriptionProps & {
|
|
|
23
24
|
export declare type SubMenuItem = LinkProps & IconProps;
|
|
24
25
|
/**
|
|
25
26
|
* @title Подвал
|
|
26
|
-
* @hidden
|
|
27
27
|
*/
|
|
28
|
-
export declare type FooterContent = {};
|
|
28
|
+
export declare type FooterContent = UniBlockContent & {};
|
|
@@ -3,11 +3,9 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
3
3
|
import { style } from '../../utils/style.js';
|
|
4
4
|
import { Img } from '../Img/Img.js';
|
|
5
5
|
export const DefaultFoldButton = JSX(({ className = '', label, icon, dataTheme = '', disabled = false, onClick }) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
? 'bg-main-divider text-main-disabled cursor-not-allowed hover:bg-main-divider active:bg-main-divider'
|
|
10
|
-
: '', className), onClick: onClick, disabled: disabled, "data-theme": dataTheme, children: [_jsx("span", { className: "text-h4 pr-3", children: label }), icon ? (_jsx(Img, { image: {
|
|
6
|
+
return (_jsxs("button", { className: style('flex justify-center w-full px-0 py-5 border border-transparent outline-none focus:border-primary-text', disabled
|
|
7
|
+
? 'bg-main-divider text-main-disabled hover:bg-main-divider'
|
|
8
|
+
: 'bg-primary-main text-white hover:bg-primary-hove', className), onClick: onClick, disabled: disabled, "data-theme": dataTheme, children: [_jsx("span", { className: "text-h4 pr-3", children: label }), icon ? (_jsx(Img, { image: {
|
|
11
9
|
icon,
|
|
12
10
|
iconVersion: 'white',
|
|
13
11
|
}, className: "flex-shrink-0 my-auto", width: "20", height: "20", asSVG: true })) : null] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultFoldButton.js","sourceRoot":"","sources":["../../../src/ui-kit/Foldable/DefaultFoldButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAYjC,MAAM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AAM,MAAM,GAAG,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;IACxC,MAAM,KAAK,GAAe,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;IAE3D,OAAO,CACL,KAAC,iBAAiB,IAChB,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAC/B,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EACjC,OAAO,EAAE,QAAQ,GACjB,CACH,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,19 +1,29 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
3
|
+
import { getIconWithVersion } from '../../utils/getIconWithVersion';
|
|
3
4
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
4
5
|
import { Img } from '../../ui-kit/Img/Img';
|
|
5
|
-
import { Text } from '../../ui-kit/Text/Text';
|
|
6
|
-
import { getIconWithVersion } from '../../utils/getIconWithVersion';
|
|
7
6
|
import { style } from '../../utils/style';
|
|
8
|
-
import
|
|
7
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
8
|
+
import { useLink } from '../../hooks/useLink';
|
|
9
9
|
import type { CarouselEventCardContent } from './CarouselEventCardContent';
|
|
10
|
+
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
10
11
|
|
|
11
12
|
export interface CarouselEventCardProps extends CarouselEventCardContent, UniBlockProps {}
|
|
12
13
|
|
|
13
14
|
export const CarouselEventCard = JSX<CarouselEventCardProps>(
|
|
14
|
-
({ className = '', icon, title, description, href, target, ...rest }) =>
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
({ className = '', icon, title, description, href, target, ...rest }) => {
|
|
16
|
+
const link = useLink();
|
|
17
|
+
const adjustedProps = link({ href, target });
|
|
18
|
+
const tagName = href ? 'a' : 'section';
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<BlockWrapper
|
|
22
|
+
className={style('flex flex-col w-[365px]', className)}
|
|
23
|
+
extraProps={adjustedProps}
|
|
24
|
+
tag={tagName}
|
|
25
|
+
{...rest}
|
|
26
|
+
>
|
|
17
27
|
{icon?.icon ? <Img image={getIconWithVersion(icon)} asSVG /> : null}
|
|
18
28
|
{icon?.src ? <Img image={icon} /> : null}
|
|
19
29
|
{title ? (
|
|
@@ -26,7 +36,7 @@ export const CarouselEventCard = JSX<CarouselEventCardProps>(
|
|
|
26
36
|
</Text>
|
|
27
37
|
</div>
|
|
28
38
|
) : null}
|
|
29
|
-
</
|
|
30
|
-
|
|
31
|
-
|
|
39
|
+
</BlockWrapper>
|
|
40
|
+
);
|
|
41
|
+
},
|
|
32
42
|
);
|
|
@@ -1,34 +1,41 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
|
-
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
4
|
-
import type { Picture } from '../../model/Picture';
|
|
5
2
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
6
|
-
import {
|
|
3
|
+
import { HEADLINE_SMALL_VERSION } from '../Headline/headlineVersionStyles';
|
|
7
4
|
import { Img } from '../../ui-kit/Img/Img';
|
|
8
5
|
import { List } from '../../ui-kit/List/List';
|
|
9
6
|
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
10
|
-
import {
|
|
7
|
+
import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
|
|
11
8
|
import { style } from '../../utils/style';
|
|
12
|
-
import {
|
|
9
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
10
|
+
import { useLink } from '../../hooks/useLink';
|
|
11
|
+
import type { BlockVersion } from '../../model/BlockVersion';
|
|
13
12
|
import type { CarouselProductCardContent, ListProps } from './CarouselProductCardContent';
|
|
13
|
+
import type { Picture } from '../../model/Picture';
|
|
14
|
+
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
14
15
|
|
|
15
16
|
export interface CarouselProductCardProps extends CarouselProductCardContent, UniBlockProps {}
|
|
16
17
|
|
|
17
18
|
export const CarouselProductCard = JSX<CarouselProductCardProps>(
|
|
18
19
|
({
|
|
20
|
+
additionalDescription,
|
|
21
|
+
align = 'text-center',
|
|
22
|
+
button = {},
|
|
19
23
|
className = '',
|
|
20
|
-
title,
|
|
21
|
-
headlineSmallVersion = 'H6',
|
|
22
24
|
description,
|
|
23
|
-
|
|
25
|
+
headlineSmallVersion = 'H6',
|
|
26
|
+
href,
|
|
24
27
|
icon,
|
|
28
|
+
isDotted = true,
|
|
25
29
|
items = [],
|
|
26
|
-
|
|
30
|
+
target,
|
|
31
|
+
title,
|
|
27
32
|
version = 'primary',
|
|
28
|
-
isDotted = true,
|
|
29
|
-
align = 'text-center',
|
|
30
33
|
...rest
|
|
31
34
|
}) => {
|
|
35
|
+
const link = useLink();
|
|
36
|
+
const adjustedProps = link({ href, target });
|
|
37
|
+
const tagName = href ? 'a' : 'section';
|
|
38
|
+
|
|
32
39
|
return (
|
|
33
40
|
<BlockWrapper
|
|
34
41
|
className={style(
|
|
@@ -37,6 +44,8 @@ export const CarouselProductCard = JSX<CarouselProductCardProps>(
|
|
|
37
44
|
align,
|
|
38
45
|
className,
|
|
39
46
|
)}
|
|
47
|
+
extraProps={adjustedProps}
|
|
48
|
+
tag={tagName}
|
|
40
49
|
version={version}
|
|
41
50
|
{...rest}
|
|
42
51
|
>
|
|
@@ -3,6 +3,7 @@ import type { ButtonCommonIconProps } from '../../model/Button';
|
|
|
3
3
|
import type { AdditionalDescriptionProps, HeadlineSmallProps } from '../../model/HeadlineType';
|
|
4
4
|
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
5
5
|
import type { IconProps } from '../../model/Picture';
|
|
6
|
+
import type { LinkCommonProps } from '../../model/LinkProps';
|
|
6
7
|
import type { TextAlign } from '../../ui-kit/Text/TextProps';
|
|
7
8
|
|
|
8
9
|
/**
|
|
@@ -21,7 +22,8 @@ export type CarouselProductCardContent = UniBlockContent &
|
|
|
21
22
|
AdditionalDescriptionProps &
|
|
22
23
|
IconProps &
|
|
23
24
|
ButtonCommonIconProps &
|
|
24
|
-
BulletsProps &
|
|
25
|
+
BulletsProps &
|
|
26
|
+
LinkCommonProps & {
|
|
25
27
|
/** @title Список */
|
|
26
28
|
items?: ListProps[];
|
|
27
29
|
align?: TextAlign;
|
|
@@ -51,8 +51,8 @@ export const FiltrationInner = JSX<FiltrationInnerProps>(
|
|
|
51
51
|
}}
|
|
52
52
|
renderFoldButton={({ isUnfolded, onToggle }) => (
|
|
53
53
|
<DefaultFoldButton
|
|
54
|
-
className=
|
|
55
|
-
disabled={
|
|
54
|
+
className={style('mt-11', topItemsCount < 1 ? 'hidden' : '')}
|
|
55
|
+
disabled={!hiddenBlocks?.length}
|
|
56
56
|
label={label}
|
|
57
57
|
icon={ICONS[Number(isUnfolded)]}
|
|
58
58
|
dataTheme={rest.options?.page?.colorPalette}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { DescriptionProps } from '../../model/HeadlineType';
|
|
2
2
|
import type { LinkProps } from '../../model/LinkProps';
|
|
3
3
|
import type { IconProps } from '../../model/Picture';
|
|
4
|
+
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* @title Тип контакта
|
|
@@ -27,7 +28,5 @@ export type SubMenuItem = LinkProps & IconProps;
|
|
|
27
28
|
|
|
28
29
|
/**
|
|
29
30
|
* @title Подвал
|
|
30
|
-
* @hidden
|
|
31
31
|
*/
|
|
32
|
-
|
|
33
|
-
export type FooterContent = {};
|
|
32
|
+
export type FooterContent = UniBlockContent & {};
|