@redneckz/wildless-cms-uni-blocks 0.14.44 → 0.14.46
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.14.44.js +103 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +27 -36
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Blocks.js +0 -2
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/CardTransfer/CardTransfer.js +8 -4
- package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/dist/components/CarouselLinks/CarouselLinkButton.js +3 -3
- package/dist/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
- package/dist/components/Header/DropdownMenu.js +2 -1
- package/dist/components/Header/DropdownMenu.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocItem.js +2 -2
- package/dist/components/LinkDocs/LinkDocItem.js.map +1 -1
- package/dist/ui-kit/Button/LikeButton.js +5 -9
- package/dist/ui-kit/Button/LikeButton.js.map +1 -1
- package/dist/ui-kit/Img/ImgAsPicture.js +2 -2
- package/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/dist/ui-kit/SVG.js +4 -1
- package/dist/ui-kit/SVG.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Blocks.js +0 -2
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/CardTransfer/CardTransfer.js +8 -4
- package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/lib/components/CarouselLinks/CarouselLinkButton.js +3 -3
- package/lib/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
- package/lib/components/Header/DropdownMenu.js +2 -1
- package/lib/components/Header/DropdownMenu.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocItem.js +2 -2
- package/lib/components/LinkDocs/LinkDocItem.js.map +1 -1
- package/lib/components/VerticalLayout/VerticalLayout.fixture.d.ts +1 -0
- package/lib/ui-kit/Button/LikeButton.js +5 -9
- package/lib/ui-kit/Button/LikeButton.js.map +1 -1
- package/lib/ui-kit/Img/ImgAsPicture.js +2 -2
- package/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/lib/ui-kit/SVG.js +4 -1
- package/lib/ui-kit/SVG.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +25 -23
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js +8 -4
- package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js +3 -3
- package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
- package/mobile/dist/components/Header/DropdownMenu.js +2 -1
- package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocItem.js +2 -2
- package/mobile/dist/components/LinkDocs/LinkDocItem.js.map +1 -1
- package/mobile/dist/ui-kit/Button/LikeButton.js +5 -9
- package/mobile/dist/ui-kit/Button/LikeButton.js.map +1 -1
- package/mobile/dist/ui-kit/Img/ImgAsPicture.js +2 -2
- package/mobile/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/mobile/dist/ui-kit/SVG.js +4 -1
- package/mobile/dist/ui-kit/SVG.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js +8 -4
- package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js +3 -3
- package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
- package/mobile/lib/components/Header/DropdownMenu.js +2 -1
- package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocItem.js +2 -2
- package/mobile/lib/components/LinkDocs/LinkDocItem.js.map +1 -1
- package/mobile/lib/ui-kit/Button/LikeButton.js +5 -9
- package/mobile/lib/ui-kit/Button/LikeButton.js.map +1 -1
- package/mobile/lib/ui-kit/Img/ImgAsPicture.js +2 -2
- package/mobile/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/mobile/lib/ui-kit/SVG.js +4 -1
- package/mobile/lib/ui-kit/SVG.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/src/components/CardTransfer/CardTransfer.tsx +10 -7
- package/mobile/src/components/CarouselLinks/CarouselLinkButton.tsx +5 -3
- package/mobile/src/components/Header/DropdownMenu.tsx +5 -2
- package/mobile/src/components/LinkDocs/LinkDocItem.tsx +4 -5
- package/mobile/src/ui-kit/Button/LikeButton.tsx +18 -17
- package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +4 -2
- package/mobile/src/ui-kit/SVG.tsx +16 -3
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
- package/package.json +1 -1
- package/src/components/Blocks.ts +0 -2
- package/src/components/CardTransfer/CardTransfer.tsx +10 -7
- package/src/components/CarouselLinks/CarouselLinkButton.tsx +5 -3
- package/src/components/Header/DropdownMenu.tsx +5 -2
- package/src/components/LinkDocs/LinkDocItem.tsx +4 -5
- package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +62 -0
- package/src/ui-kit/Button/LikeButton.tsx +18 -17
- package/src/ui-kit/Img/ImgAsPicture.tsx +4 -2
- package/src/ui-kit/SVG.tsx +16 -3
- package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
- package/bundle/components/BusinessBlock/BusinessBlock.d.ts +0 -5
- package/bundle/components/BusinessBlock/BusinessBlockContent.d.ts +0 -25
- package/bundle/components/BusinessBlock/BusinessCard.d.ts +0 -2
- package/dist/components/BusinessBlock/BusinessBlock.d.ts +0 -5
- package/dist/components/BusinessBlock/BusinessBlock.js +0 -9
- package/dist/components/BusinessBlock/BusinessBlock.js.map +0 -1
- package/dist/components/BusinessBlock/BusinessBlockContent.d.ts +0 -25
- package/dist/components/BusinessBlock/BusinessBlockContent.js +0 -2
- package/dist/components/BusinessBlock/BusinessBlockContent.js.map +0 -1
- package/dist/components/BusinessBlock/BusinessCard.d.ts +0 -2
- package/dist/components/BusinessBlock/BusinessCard.js +0 -17
- package/dist/components/BusinessBlock/BusinessCard.js.map +0 -1
- package/lib/components/BusinessBlock/BusinessBlock.d.ts +0 -5
- package/lib/components/BusinessBlock/BusinessBlock.fixture.d.ts +0 -6
- package/lib/components/BusinessBlock/BusinessBlock.js +0 -7
- package/lib/components/BusinessBlock/BusinessBlock.js.map +0 -1
- package/lib/components/BusinessBlock/BusinessBlockContent.d.ts +0 -25
- package/lib/components/BusinessBlock/BusinessBlockContent.js +0 -2
- package/lib/components/BusinessBlock/BusinessBlockContent.js.map +0 -1
- package/lib/components/BusinessBlock/BusinessCard.d.ts +0 -2
- package/lib/components/BusinessBlock/BusinessCard.js +0 -15
- package/lib/components/BusinessBlock/BusinessCard.js.map +0 -1
- package/mobile/bundle/components/BusinessBlock/BusinessBlock.d.ts +0 -5
- package/mobile/bundle/components/BusinessBlock/BusinessBlockContent.d.ts +0 -25
- package/mobile/bundle/components/BusinessBlock/BusinessCard.d.ts +0 -2
- package/mobile/dist/components/BusinessBlock/BusinessBlock.d.ts +0 -5
- package/mobile/dist/components/BusinessBlock/BusinessBlock.js +0 -9
- package/mobile/dist/components/BusinessBlock/BusinessBlock.js.map +0 -1
- package/mobile/dist/components/BusinessBlock/BusinessBlockContent.d.ts +0 -25
- package/mobile/dist/components/BusinessBlock/BusinessBlockContent.js +0 -2
- package/mobile/dist/components/BusinessBlock/BusinessBlockContent.js.map +0 -1
- package/mobile/dist/components/BusinessBlock/BusinessCard.d.ts +0 -2
- package/mobile/dist/components/BusinessBlock/BusinessCard.js +0 -17
- package/mobile/dist/components/BusinessBlock/BusinessCard.js.map +0 -1
- package/mobile/lib/components/BusinessBlock/BusinessBlock.d.ts +0 -5
- package/mobile/lib/components/BusinessBlock/BusinessBlock.js +0 -7
- package/mobile/lib/components/BusinessBlock/BusinessBlock.js.map +0 -1
- package/mobile/lib/components/BusinessBlock/BusinessBlockContent.d.ts +0 -25
- package/mobile/lib/components/BusinessBlock/BusinessBlockContent.js +0 -2
- package/mobile/lib/components/BusinessBlock/BusinessBlockContent.js.map +0 -1
- package/mobile/lib/components/BusinessBlock/BusinessCard.d.ts +0 -2
- package/mobile/lib/components/BusinessBlock/BusinessCard.js +0 -15
- package/mobile/lib/components/BusinessBlock/BusinessCard.js.map +0 -1
- package/mobile/src/components/BusinessBlock/BusinessBlock.example.json +0 -97
- package/mobile/src/components/BusinessBlock/BusinessBlock.tsx +0 -17
- package/mobile/src/components/BusinessBlock/BusinessBlock.ui.json +0 -29
- package/mobile/src/components/BusinessBlock/BusinessBlockContent.ts +0 -30
- package/mobile/src/components/BusinessBlock/BusinessCard.tsx +0 -42
- package/src/components/BusinessBlock/BusinessBlock.example.json +0 -97
- package/src/components/BusinessBlock/BusinessBlock.fixture.tsx +0 -75
- package/src/components/BusinessBlock/BusinessBlock.tsx +0 -17
- package/src/components/BusinessBlock/BusinessBlock.ui.json +0 -29
- package/src/components/BusinessBlock/BusinessBlockContent.ts +0 -30
- package/src/components/BusinessBlock/BusinessCard.tsx +0 -42
|
@@ -25,7 +25,8 @@ export const ImgAsPicture = JSX<ImageProps>(
|
|
|
25
25
|
srcSet={adjustSrc(router, pathPrefix)(src)}
|
|
26
26
|
type={formatToMimeType(format)}
|
|
27
27
|
media={media ? `(max-width: ${media}px)` : ''}
|
|
28
|
-
{
|
|
28
|
+
width={image.size?.width}
|
|
29
|
+
height={image.size?.height}
|
|
29
30
|
/>
|
|
30
31
|
))
|
|
31
32
|
: null}
|
|
@@ -47,7 +48,8 @@ const renderImg = (image: Picture, imageClassName = '') => (
|
|
|
47
48
|
width: image.size?.width ? `${image.size?.width}px` : '100%',
|
|
48
49
|
height: image.size?.height ? `${image.size?.height}px` : 'auto',
|
|
49
50
|
}}
|
|
50
|
-
{
|
|
51
|
+
width={image.size?.width}
|
|
52
|
+
height={image.size?.height}
|
|
51
53
|
/>
|
|
52
54
|
);
|
|
53
55
|
|
package/src/ui-kit/SVG.tsx
CHANGED
|
@@ -32,9 +32,22 @@ export const SVG = JSX<SVGProps>(
|
|
|
32
32
|
width={width}
|
|
33
33
|
height={height}
|
|
34
34
|
>
|
|
35
|
-
{paths.map(({ d, fill: pathFill, ...options }, i) =>
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
{paths.map(({ d, fill: pathFill, ...options }, i) => {
|
|
36
|
+
const resultOptions = { ...commonOptions, ...options };
|
|
37
|
+
|
|
38
|
+
return (
|
|
39
|
+
<path
|
|
40
|
+
key={i}
|
|
41
|
+
d={d}
|
|
42
|
+
fill={pathFill || 'currentColor'}
|
|
43
|
+
stroke={resultOptions.stroke}
|
|
44
|
+
strokeLinecap={resultOptions.strokeLinecap}
|
|
45
|
+
strokeLinejoin={resultOptions.strokeLinejoin}
|
|
46
|
+
strokeWidth={resultOptions.strokeWidth}
|
|
47
|
+
strokeMiterlimit={resultOptions.strokeMiterlimit}
|
|
48
|
+
/>
|
|
49
|
+
);
|
|
50
|
+
})}
|
|
38
51
|
</svg>
|
|
39
52
|
);
|
|
40
53
|
},
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
-
import { type BusinessBlockContent } from './BusinessBlockContent';
|
|
3
|
-
export interface BusinessBlockProps extends BusinessBlockContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const BusinessBlock: import("@redneckz/uni-jsx").UNIComponent<BusinessBlockProps, any, any>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { type TitleProps } from '../../model/HeadlineType';
|
|
2
|
-
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
3
|
-
import { type IconProps } from '../../model/Picture';
|
|
4
|
-
import { type ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
5
|
-
import { type ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
6
|
-
export declare type BusinessCardItemProps = IconProps & {
|
|
7
|
-
/** @title Текст */
|
|
8
|
-
text?: string;
|
|
9
|
-
};
|
|
10
|
-
export declare type BusinessCardProps = TitleProps & ImageContent & {
|
|
11
|
-
/** @title Список */
|
|
12
|
-
cardItems?: BusinessCardItemProps[];
|
|
13
|
-
button?: ButtonContent;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* @title Бизнес блок
|
|
17
|
-
*/
|
|
18
|
-
export declare type BusinessBlockContent = UniBlockContent & TitleProps & {
|
|
19
|
-
/**
|
|
20
|
-
* @title Карточки
|
|
21
|
-
* @minItems 2
|
|
22
|
-
* @maxItems 2
|
|
23
|
-
*/
|
|
24
|
-
cards?: BusinessCardProps[];
|
|
25
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
-
import { type BusinessBlockContent } from './BusinessBlockContent';
|
|
3
|
-
export interface BusinessBlockProps extends BusinessBlockContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const BusinessBlock: import("@redneckz/uni-jsx").UNIComponent<BusinessBlockProps, any, any>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.BusinessBlock = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
6
|
-
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
7
|
-
const BusinessCard_1 = require("./BusinessCard");
|
|
8
|
-
exports.BusinessBlock = (0, uni_jsx_1.JSX)(({ className, title, cards, ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: className, defaultPadding: "p-6xl space-y-3xl", ...rest, children: [(0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", title: title, className: "text-center" }), (0, jsx_runtime_1.jsx)("div", { className: "flex gap-lg", children: cards?.length ? cards.map((_, i) => (0, jsx_runtime_1.jsx)(BusinessCard_1.BusinessCard, { ..._ }, String(i))) : null })] })));
|
|
9
|
-
//# sourceMappingURL=BusinessBlock.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BusinessBlock.js","sourceRoot":"","sources":["../../../src/components/BusinessBlock/BusinessBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,0DAAuD;AAEvD,iDAA8C;AAIjC,QAAA,aAAa,GAAG,IAAA,aAAG,EAAqB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAC7F,wBAAC,2BAAY,IAAC,SAAS,EAAE,SAAS,EAAE,cAAc,EAAC,mBAAmB,KAAK,IAAI,aAC7E,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAC,aAAa,GAAG,EAClE,gCAAK,SAAS,EAAC,aAAa,YACzB,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,uBAAC,2BAAY,OAAqB,CAAC,IAAhB,MAAM,CAAC,CAAC,CAAC,CAAW,CAAC,CAAC,CAAC,CAAC,IAAI,GAChF,IACO,CAChB,CAAC,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { type TitleProps } from '../../model/HeadlineType';
|
|
2
|
-
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
3
|
-
import { type IconProps } from '../../model/Picture';
|
|
4
|
-
import { type ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
5
|
-
import { type ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
6
|
-
export declare type BusinessCardItemProps = IconProps & {
|
|
7
|
-
/** @title Текст */
|
|
8
|
-
text?: string;
|
|
9
|
-
};
|
|
10
|
-
export declare type BusinessCardProps = TitleProps & ImageContent & {
|
|
11
|
-
/** @title Список */
|
|
12
|
-
cardItems?: BusinessCardItemProps[];
|
|
13
|
-
button?: ButtonContent;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* @title Бизнес блок
|
|
17
|
-
*/
|
|
18
|
-
export declare type BusinessBlockContent = UniBlockContent & TitleProps & {
|
|
19
|
-
/**
|
|
20
|
-
* @title Карточки
|
|
21
|
-
* @minItems 2
|
|
22
|
-
* @maxItems 2
|
|
23
|
-
*/
|
|
24
|
-
cards?: BusinessCardProps[];
|
|
25
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BusinessBlockContent.js","sourceRoot":"","sources":["../../../src/components/BusinessBlock/BusinessBlockContent.ts"],"names":[],"mappings":""}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.BusinessCard = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection");
|
|
6
|
-
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
7
|
-
const Img_1 = require("../../ui-kit/Img/Img");
|
|
8
|
-
const Text_1 = require("../../ui-kit/Text/Text");
|
|
9
|
-
exports.BusinessCard = (0, uni_jsx_1.JSX)((props) => {
|
|
10
|
-
const { title, image, cardItems, button } = props;
|
|
11
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "border-gray border p-4xl w-1/2 space-y-lg", children: [image ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex justify-center", children: [image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: image }) : null, image?.icon ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: image }) : null] })) : null, title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h4", title: title }) : null, cardItems?.length ? ((0, jsx_runtime_1.jsx)("ul", { className: "space-y-s", children: cardItems.map((_, i) => renderItem(_, String(i))) })) : null, (0, renderButtonsSection_1.renderButtonsSection)([button])] }));
|
|
12
|
-
});
|
|
13
|
-
const renderItem = (item, key) => {
|
|
14
|
-
const { icon, text } = item;
|
|
15
|
-
return ((0, jsx_runtime_1.jsxs)("li", { className: "flex items-center gap-s", children: [icon?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon, className: "w-12 h-12 min-w-12 p-s rounded-icon bg-main-divider" })) : null, icon?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon }) : null, (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-xl", font: "font-light", children: text })] }, key));
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=BusinessCard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BusinessCard.js","sourceRoot":"","sources":["../../../src/components/BusinessBlock/BusinessCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,mFAAgF;AAChF,0DAAuD;AACvD,8CAA2C;AAC3C,iDAA8C;AAGjC,QAAA,YAAY,GAAG,IAAA,aAAG,EAAoB,CAAC,KAAK,EAAE,EAAE;IAC3D,MAAM,EAAE,KAAK,EAAE,KAAK,EA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,IAAC,KAAK,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,EACxC,uBAAC,WAAI,IAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,YAAY,YACnC,IAAI,GACA,KAPA,GAAG,CAQP,CACN,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
-
import { type BusinessBlockContent } from './BusinessBlockContent';
|
|
3
|
-
export interface BusinessBlockProps extends BusinessBlockContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const BusinessBlock: import("@redneckz/uni-jsx").UNIComponent<BusinessBlockProps, any, any>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
4
|
-
import { Heading } from '../../ui-kit/Heading/Heading.js';
|
|
5
|
-
import { BusinessCard } from './BusinessCard.js';
|
|
6
|
-
export const BusinessBlock = JSX(({ className, title, cards, ...rest }) => (_jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl space-y-3xl", ...rest, children: [_jsx(Heading, { headingType: "h3", title: title, className: "text-center" }), _jsx("div", { className: "flex gap-lg", children: cards?.length ? cards.map((_, i) => _jsx(BusinessCard, { ..._ }, String(i))) : null })] })));
|
|
7
|
-
//# sourceMappingURL=BusinessBlock.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BusinessBlock.js","sourceRoot":"","sources":["../../../src/components/BusinessBlock/BusinessBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAI9C,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAqB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAC7F,MAAC,YAAY,IAAC,SAAS,EAAE,SAAS,EAAE,cAAc,EAAC,mBAAmB,KAAK,IAAI,aAC7E,KAAC,OAAO,IAAC,WAAW,EAAC,IAAI,EAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAC,aAAa,GAAG,EAClE,cAAK,SAAS,EAAC,aAAa,YACzB,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,KAAC,YAAY,OAAqB,CAAC,IAAhB,MAAM,CAAC,CAAC,CAAC,CAAW,CAAC,CAAC,CAAC,CAAC,IAAI,GAChF,IACO,CAChB,CAAC,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { type TitleProps } from '../../model/HeadlineType';
|
|
2
|
-
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
3
|
-
import { type IconProps } from '../../model/Picture';
|
|
4
|
-
import { type ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
5
|
-
import { type ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
6
|
-
export declare type BusinessCardItemProps = IconProps & {
|
|
7
|
-
/** @title Текст */
|
|
8
|
-
text?: string;
|
|
9
|
-
};
|
|
10
|
-
export declare type BusinessCardProps = TitleProps & ImageContent & {
|
|
11
|
-
/** @title Список */
|
|
12
|
-
cardItems?: BusinessCardItemProps[];
|
|
13
|
-
button?: ButtonContent;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* @title Бизнес блок
|
|
17
|
-
*/
|
|
18
|
-
export declare type BusinessBlockContent = UniBlockContent & TitleProps & {
|
|
19
|
-
/**
|
|
20
|
-
* @title Карточки
|
|
21
|
-
* @minItems 2
|
|
22
|
-
* @maxItems 2
|
|
23
|
-
*/
|
|
24
|
-
cards?: BusinessCardProps[];
|
|
25
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BusinessBlockContent.js","sourceRoot":"","sources":["../../../src/components/BusinessBlock/BusinessBlockContent.ts"],"names":[],"mappings":""}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection.js';
|
|
4
|
-
import { Heading } from '../../ui-kit/Heading/Heading.js';
|
|
5
|
-
import { Img } from '../../ui-kit/Img/Img.js';
|
|
6
|
-
import { Text } from '../../ui-kit/Text/Text.js';
|
|
7
|
-
export const BusinessCard = JSX((props) => {
|
|
8
|
-
const { title, image, cardItems, button } = props;
|
|
9
|
-
return (_jsxs("div", { className: "border-gray border p-4xl w-1/2 space-y-lg", children: [image ? (_jsxs("div", { className: "flex justify-center", children: [image?.src ? _jsx(Img, { image: image }) : null, image?.icon ? _jsx(Img, { image: image }) : null] })) : null, title ? _jsx(Heading, { headingType: "h4", title: title }) : null, cardItems?.length ? (_jsx("ul", { className: "space-y-s", children: cardItems.map((_, i) => renderItem(_, String(i))) })) : null, renderButtonsSection([button])] }));
|
|
10
|
-
});
|
|
11
|
-
const renderItem = (item, key) => {
|
|
12
|
-
const { icon, text } = item;
|
|
13
|
-
return (_jsxs("li", { className: "flex items-center gap-s", children: [icon?.icon ? (_jsx(Img, { image: icon, className: "w-12 h-12 min-w-12 p-s rounded-icon bg-main-divider" })) : null, icon?.src ? _jsx(Img, { image: icon }) : null, _jsx(Text, { size: "text-xl", font: "font-light", children: text })] }, key));
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=BusinessCard.js.map
|
|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AAC,CAAC,IAAI,EACP,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC,IAC3B,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG,CAAC,IAA2B,EAAE,GAAW,EAAE,EAAE;IAC9D,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;IAE5B,OAAO,CACL,cAAc,SAAS,EAAC,yBAAyB,aAC9C,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CACZ,KAAC,GAAG,IAAC,KAAK,EAAE,IAAI,EAAE,SAAS,EAAC,qDAAqD,GAAG,CACrF,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,KAAC,GAAG,IAAC,KAAK,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,EACxC,KAAC,IAAI,IAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,YAAY,YACnC,IAAI,GACA,KAPA,GAAG,CAQP,CACN,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
-
import { type BusinessBlockContent } from './BusinessBlockContent';
|
|
3
|
-
export interface BusinessBlockProps extends BusinessBlockContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const BusinessBlock: import("@redneckz/uni-jsx").UNIComponent<BusinessBlockProps, any, any>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { type TitleProps } from '../../model/HeadlineType';
|
|
2
|
-
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
3
|
-
import { type IconProps } from '../../model/Picture';
|
|
4
|
-
import { type ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
5
|
-
import { type ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
6
|
-
export declare type BusinessCardItemProps = IconProps & {
|
|
7
|
-
/** @title Текст */
|
|
8
|
-
text?: string;
|
|
9
|
-
};
|
|
10
|
-
export declare type BusinessCardProps = TitleProps & ImageContent & {
|
|
11
|
-
/** @title Список */
|
|
12
|
-
cardItems?: BusinessCardItemProps[];
|
|
13
|
-
button?: ButtonContent;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* @title Бизнес блок
|
|
17
|
-
*/
|
|
18
|
-
export declare type BusinessBlockContent = UniBlockContent & TitleProps & {
|
|
19
|
-
/**
|
|
20
|
-
* @title Карточки
|
|
21
|
-
* @minItems 2
|
|
22
|
-
* @maxItems 2
|
|
23
|
-
*/
|
|
24
|
-
cards?: BusinessCardProps[];
|
|
25
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
-
import { type BusinessBlockContent } from './BusinessBlockContent';
|
|
3
|
-
export interface BusinessBlockProps extends BusinessBlockContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const BusinessBlock: import("@redneckz/uni-jsx").UNIComponent<BusinessBlockProps, any, any>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.BusinessBlock = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
6
|
-
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
7
|
-
const BusinessCard_1 = require("./BusinessCard");
|
|
8
|
-
exports.BusinessBlock = (0, uni_jsx_1.JSX)(({ className, title, cards, ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: className, defaultPadding: "p-6xl space-y-3xl", ...rest, children: [(0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", title: title, className: "text-center" }), (0, jsx_runtime_1.jsx)("div", { className: "flex gap-lg", children: cards?.length ? cards.map((_, i) => (0, jsx_runtime_1.jsx)(BusinessCard_1.BusinessCard, { ..._ }, String(i))) : null })] })));
|
|
9
|
-
//# sourceMappingURL=BusinessBlock.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BusinessBlock.js","sourceRoot":"","sources":["../../../src/components/BusinessBlock/BusinessBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,0DAAuD;AAEvD,iDAA8C;AAIjC,QAAA,aAAa,GAAG,IAAA,aAAG,EAAqB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAC7F,wBAAC,2BAAY,IAAC,SAAS,EAAE,SAAS,EAAE,cAAc,EAAC,mBAAmB,KAAK,IAAI,aAC7E,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAC,aAAa,GAAG,EAClE,gCAAK,SAAS,EAAC,aAAa,YACzB,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,uBAAC,2BAAY,OAAqB,CAAC,IAAhB,MAAM,CAAC,CAAC,CAAC,CAAW,CAAC,CAAC,CAAC,CAAC,IAAI,GAChF,IACO,CAChB,CAAC,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { type TitleProps } from '../../model/HeadlineType';
|
|
2
|
-
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
3
|
-
import { type IconProps } from '../../model/Picture';
|
|
4
|
-
import { type ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
5
|
-
import { type ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
6
|
-
export declare type BusinessCardItemProps = IconProps & {
|
|
7
|
-
/** @title Текст */
|
|
8
|
-
text?: string;
|
|
9
|
-
};
|
|
10
|
-
export declare type BusinessCardProps = TitleProps & ImageContent & {
|
|
11
|
-
/** @title Список */
|
|
12
|
-
cardItems?: BusinessCardItemProps[];
|
|
13
|
-
button?: ButtonContent;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* @title Бизнес блок
|
|
17
|
-
*/
|
|
18
|
-
export declare type BusinessBlockContent = UniBlockContent & TitleProps & {
|
|
19
|
-
/**
|
|
20
|
-
* @title Карточки
|
|
21
|
-
* @minItems 2
|
|
22
|
-
* @maxItems 2
|
|
23
|
-
*/
|
|
24
|
-
cards?: BusinessCardProps[];
|
|
25
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BusinessBlockContent.js","sourceRoot":"","sources":["../../../src/components/BusinessBlock/BusinessBlockContent.ts"],"names":[],"mappings":""}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.BusinessCard = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection");
|
|
6
|
-
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
7
|
-
const Img_1 = require("../../ui-kit/Img/Img");
|
|
8
|
-
const Text_1 = require("../../ui-kit/Text/Text");
|
|
9
|
-
exports.BusinessCard = (0, uni_jsx_1.JSX)((props) => {
|
|
10
|
-
const { title, image, cardItems, button } = props;
|
|
11
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "border-gray border p-4xl w-1/2 space-y-lg", children: [image ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex justify-center", children: [image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: image }) : null, image?.icon ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: image }) : null] })) : null, title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h4", title: title }) : null, cardItems?.length ? ((0, jsx_runtime_1.jsx)("ul", { className: "space-y-s", children: cardItems.map((_, i) => renderItem(_, String(i))) })) : null, (0, renderButtonsSection_1.renderButtonsSection)([button])] }));
|
|
12
|
-
});
|
|
13
|
-
const renderItem = (item, key) => {
|
|
14
|
-
const { icon, text } = item;
|
|
15
|
-
return ((0, jsx_runtime_1.jsxs)("li", { className: "flex items-center gap-s", children: [icon?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon, className: "w-12 h-12 min-w-12 p-s rounded-icon bg-main-divider" })) : null, icon?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon }) : null, (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-xl", font: "font-light", children: text })] }, key));
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=BusinessCard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BusinessCard.js","sourceRoot":"","sources":["../../../src/components/BusinessBlock/BusinessCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,mFAAgF;AAChF,0DAAuD;AACvD,8CAA2C;AAC3C,iDAA8C;AAGjC,QAAA,YAAY,GAAG,IAAA,aAAG,EAAoB,CAAC,KAAK,EAAE,EAAE;IAC3D,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAElD,OAAO,CACL,iCAAK,SAAS,EAAC,2CAA2C,aACvD,KAAK,CAAC,CAAC,CAAC,CACP,iCAAK,SAAS,EAAC,qBAAqB,aACjC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EACzC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,IACvC,CACP,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,CAAC,CAAC,CAAC,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EACzD,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,CACnB,+BAAI,SAAS,EAAC,WAAW,YAAE,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,GAAM,CACnF,CAAC,CAAC,CAAC,IAAI,EACP,IAAA,2CAAoB,EAAC,CAAC,MAAM,CAAC,CAAC,IAC3B,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG,CAAC,IAA2B,EAAE,GAAW,EAAE,EAAE;IAC9D,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;IAE5B,OAAO,CACL,gCAAc,SAAS,EAAC,yBAAyB,aAC9C,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CACZ,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAI,EAAE,SAAS,EAAC,qDAAqD,GAAG,CACrF,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,EACxC,uBAAC,WAAI,IAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,YAAY,YACnC,IAAI,GACA,KAPA,GAAG,CAQP,CACN,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
-
import { type BusinessBlockContent } from './BusinessBlockContent';
|
|
3
|
-
export interface BusinessBlockProps extends BusinessBlockContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const BusinessBlock: import("@redneckz/uni-jsx").UNIComponent<BusinessBlockProps, any, any>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
4
|
-
import { Heading } from '../../ui-kit/Heading/Heading.js';
|
|
5
|
-
import { BusinessCard } from './BusinessCard.js';
|
|
6
|
-
export const BusinessBlock = JSX(({ className, title, cards, ...rest }) => (_jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl space-y-3xl", ...rest, children: [_jsx(Heading, { headingType: "h3", title: title, className: "text-center" }), _jsx("div", { className: "flex gap-lg", children: cards?.length ? cards.map((_, i) => _jsx(BusinessCard, { ..._ }, String(i))) : null })] })));
|
|
7
|
-
//# sourceMappingURL=BusinessBlock.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BusinessBlock.js","sourceRoot":"","sources":["../../../src/components/BusinessBlock/BusinessBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAI9C,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAqB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAC7F,MAAC,YAAY,IAAC,SAAS,EAAE,SAAS,EAAE,cAAc,EAAC,mBAAmB,KAAK,IAAI,aAC7E,KAAC,OAAO,IAAC,WAAW,EAAC,IAAI,EAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAC,aAAa,GAAG,EAClE,cAAK,SAAS,EAAC,aAAa,YACzB,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,KAAC,YAAY,OAAqB,CAAC,IAAhB,MAAM,CAAC,CAAC,CAAC,CAAW,CAAC,CAAC,CAAC,CAAC,IAAI,GAChF,IACO,CAChB,CAAC,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { type TitleProps } from '../../model/HeadlineType';
|
|
2
|
-
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
3
|
-
import { type IconProps } from '../../model/Picture';
|
|
4
|
-
import { type ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
5
|
-
import { type ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
6
|
-
export declare type BusinessCardItemProps = IconProps & {
|
|
7
|
-
/** @title Текст */
|
|
8
|
-
text?: string;
|
|
9
|
-
};
|
|
10
|
-
export declare type BusinessCardProps = TitleProps & ImageContent & {
|
|
11
|
-
/** @title Список */
|
|
12
|
-
cardItems?: BusinessCardItemProps[];
|
|
13
|
-
button?: ButtonContent;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* @title Бизнес блок
|
|
17
|
-
*/
|
|
18
|
-
export declare type BusinessBlockContent = UniBlockContent & TitleProps & {
|
|
19
|
-
/**
|
|
20
|
-
* @title Карточки
|
|
21
|
-
* @minItems 2
|
|
22
|
-
* @maxItems 2
|
|
23
|
-
*/
|
|
24
|
-
cards?: BusinessCardProps[];
|
|
25
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BusinessBlockContent.js","sourceRoot":"","sources":["../../../src/components/BusinessBlock/BusinessBlockContent.ts"],"names":[],"mappings":""}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection.js';
|
|
4
|
-
import { Heading } from '../../ui-kit/Heading/Heading.js';
|
|
5
|
-
import { Img } from '../../ui-kit/Img/Img.js';
|
|
6
|
-
import { Text } from '../../ui-kit/Text/Text.js';
|
|
7
|
-
export const BusinessCard = JSX((props) => {
|
|
8
|
-
const { title, image, cardItems, button } = props;
|
|
9
|
-
return (_jsxs("div", { className: "border-gray border p-4xl w-1/2 space-y-lg", children: [image ? (_jsxs("div", { className: "flex justify-center", children: [image?.src ? _jsx(Img, { image: image }) : null, image?.icon ? _jsx(Img, { image: image }) : null] })) : null, title ? _jsx(Heading, { headingType: "h4", title: title }) : null, cardItems?.length ? (_jsx("ul", { className: "space-y-s", children: cardItems.map((_, i) => renderItem(_, String(i))) })) : null, renderButtonsSection([button])] }));
|
|
10
|
-
});
|
|
11
|
-
const renderItem = (item, key) => {
|
|
12
|
-
const { icon, text } = item;
|
|
13
|
-
return (_jsxs("li", { className: "flex items-center gap-s", children: [icon?.icon ? (_jsx(Img, { image: icon, className: "w-12 h-12 min-w-12 p-s rounded-icon bg-main-divider" })) : null, icon?.src ? _jsx(Img, { image: icon }) : null, _jsx(Text, { size: "text-xl", font: "font-light", children: text })] }, key));
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=BusinessCard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BusinessCard.js","sourceRoot":"","sources":["../../../src/components/BusinessBlock/BusinessCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAG9C,MAAM,CAAC,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,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,KAAC,GAAG,IAAC,KAAK,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,EACxC,KAAC,IAAI,IAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,YAAY,YACnC,IAAI,GACA,KAPA,GAAG,CAQP,CACN,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "Заголовок блока",
|
|
3
|
-
"cards": [
|
|
4
|
-
{
|
|
5
|
-
"image": {
|
|
6
|
-
"format": "webp",
|
|
7
|
-
"size": {
|
|
8
|
-
"width": 319,
|
|
9
|
-
"height": 230
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
"title": "Заголовок карточки",
|
|
13
|
-
"cardItems": [
|
|
14
|
-
{
|
|
15
|
-
"icon": {
|
|
16
|
-
"icon": "RoundRubleIcon",
|
|
17
|
-
"format": "webp",
|
|
18
|
-
"size": { "width": 24, "height": 24 },
|
|
19
|
-
"iconVersion": "color"
|
|
20
|
-
},
|
|
21
|
-
"text": "Пункт 1"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"icon": {
|
|
25
|
-
"icon": "EmptyWalletIcon",
|
|
26
|
-
"format": "webp",
|
|
27
|
-
"size": { "width": 24, "height": 24 },
|
|
28
|
-
"iconVersion": "color"
|
|
29
|
-
},
|
|
30
|
-
"text": "Пункт 2"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"icon": {
|
|
34
|
-
"icon": "PercentageRoundIcon",
|
|
35
|
-
"format": "webp",
|
|
36
|
-
"size": { "width": 24, "height": 24 },
|
|
37
|
-
"iconVersion": "color"
|
|
38
|
-
},
|
|
39
|
-
"text": "Пункт 3"
|
|
40
|
-
}
|
|
41
|
-
],
|
|
42
|
-
"button": {
|
|
43
|
-
"href": "#",
|
|
44
|
-
"text": "Кнопка",
|
|
45
|
-
"version": "primary",
|
|
46
|
-
"icon": { "format": "webp", "size": { "width": 24, "height": 24 } },
|
|
47
|
-
"iconRight": { "format": "webp", "size": { "width": 24, "height": 24 } }
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"image": {
|
|
52
|
-
"format": "webp",
|
|
53
|
-
"size": {
|
|
54
|
-
"width": 304,
|
|
55
|
-
"height": 237
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
"title": "Заголовок карточки",
|
|
59
|
-
"cardItems": [
|
|
60
|
-
{
|
|
61
|
-
"icon": {
|
|
62
|
-
"icon": "RoundRubleIcon",
|
|
63
|
-
"format": "webp",
|
|
64
|
-
"size": { "width": 24, "height": 24 },
|
|
65
|
-
"iconVersion": "color"
|
|
66
|
-
},
|
|
67
|
-
"text": "Пункт 1"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"icon": {
|
|
71
|
-
"icon": "EmptyWalletIcon",
|
|
72
|
-
"format": "webp",
|
|
73
|
-
"size": { "width": 24, "height": 24 },
|
|
74
|
-
"iconVersion": "color"
|
|
75
|
-
},
|
|
76
|
-
"text": "Пункт 2"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"icon": {
|
|
80
|
-
"icon": "PercentageRoundIcon",
|
|
81
|
-
"format": "webp",
|
|
82
|
-
"size": { "width": 24, "height": 24 },
|
|
83
|
-
"iconVersion": "color"
|
|
84
|
-
},
|
|
85
|
-
"text": "Пункт 3"
|
|
86
|
-
}
|
|
87
|
-
],
|
|
88
|
-
"button": {
|
|
89
|
-
"href": "#",
|
|
90
|
-
"text": "Кнопка",
|
|
91
|
-
"version": "primary",
|
|
92
|
-
"icon": { "format": "webp", "size": { "width": 24, "height": 24 } },
|
|
93
|
-
"iconRight": { "format": "webp", "size": { "width": 24, "height": 24 } }
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
]
|
|
97
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
3
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
|
-
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
5
|
-
import { type BusinessBlockContent } from './BusinessBlockContent';
|
|
6
|
-
import { BusinessCard } from './BusinessCard';
|
|
7
|
-
|
|
8
|
-
export interface BusinessBlockProps extends BusinessBlockContent, UniBlockProps {}
|
|
9
|
-
|
|
10
|
-
export const BusinessBlock = JSX<BusinessBlockProps>(({ className, title, cards, ...rest }) => (
|
|
11
|
-
<BlockWrapper className={className} defaultPadding="p-6xl space-y-3xl" {...rest}>
|
|
12
|
-
<Heading headingType="h3" title={title} className="text-center" />
|
|
13
|
-
<div className="flex gap-lg">
|
|
14
|
-
{cards?.length ? cards.map((_, i) => <BusinessCard key={String(i)} {..._} />) : null}
|
|
15
|
-
</div>
|
|
16
|
-
</BlockWrapper>
|
|
17
|
-
));
|