@redneckz/wildless-cms-uni-blocks 0.14.241 → 0.14.243
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 +7 -3
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/MobileAppTile/MobileAppTile.d.ts +1 -1
- package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -0
- package/dist/components/Footer/iconsMap.js +4 -0
- package/dist/components/Footer/iconsMap.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.d.ts +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +3 -3
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -0
- package/lib/components/Footer/iconsMap.js +4 -0
- package/lib/components/Footer/iconsMap.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.d.ts +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +3 -3
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -0
- package/mobile/bundle/bundle.umd.js +7 -3
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/MobileAppTile/MobileAppTile.d.ts +1 -1
- package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -0
- package/mobile/dist/components/Footer/iconsMap.js +4 -0
- package/mobile/dist/components/Footer/iconsMap.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.d.ts +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js +3 -3
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -0
- package/mobile/lib/components/Footer/iconsMap.js +4 -0
- package/mobile/lib/components/Footer/iconsMap.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.d.ts +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js +3 -3
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -0
- package/mobile/src/components/Footer/iconsMap.ts +4 -0
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +4 -3
- package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +2 -0
- package/package.json +1 -1
- package/src/components/Footer/iconsMap.ts +4 -0
- package/src/components/MobileAppTile/MobileAppTile.tsx +4 -3
- package/src/components/MobileAppTile/MobileAppTileContent.ts +2 -0
|
@@ -2,4 +2,4 @@ import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
|
2
2
|
import { type MobileAppTileContent } from './MobileAppTileContent';
|
|
3
3
|
export interface MobileAppTileProps extends MobileAppTileContent, UniBlockProps {
|
|
4
4
|
}
|
|
5
|
-
export declare const MobileAppTile: import("
|
|
5
|
+
export declare const MobileAppTile: import("../../UniBlock/UniBlock").UniBlockComponent<MobileAppTileProps>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type AdditionalDescriptionProps, type DescriptionProps, type HeadlineCommonProps, type TitleProps } from '../../model/HeadlineType';
|
|
2
2
|
import { type Picture } from '../../model/Picture';
|
|
3
|
+
import { type HeadingType } from '../../ui-kit/Heading/HeadingProps';
|
|
3
4
|
import { type ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
4
5
|
import { type ButtonsSectionContent } from '../../ui-kit/LinkButton/ButtonsSectionContent';
|
|
5
6
|
import { type ListContent } from '../../ui-kit/List/ListContent';
|
|
@@ -10,4 +11,5 @@ import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
|
10
11
|
export declare type MobileAppTileContent = UniBlockContent & AdditionalDescriptionProps & HeadlineCommonProps & TitleProps & DescriptionProps & ButtonsSectionContent & ListContent & ImageContent & {
|
|
11
12
|
/** @title QR-код */
|
|
12
13
|
qr?: Picture;
|
|
14
|
+
headingType?: HeadingType;
|
|
13
15
|
};
|
|
@@ -21,6 +21,10 @@ exports.ICONS_MAP = [
|
|
|
21
21
|
origins: ['play.google.com'],
|
|
22
22
|
iconMapped: { icon: 'PlayMarketIcon' },
|
|
23
23
|
},
|
|
24
|
+
{
|
|
25
|
+
origins: ['appgallery.huawei.com'],
|
|
26
|
+
iconMapped: { icon: 'HuaweiIcon' },
|
|
27
|
+
},
|
|
24
28
|
{
|
|
25
29
|
origins: ['youtube.com'],
|
|
26
30
|
iconMapped: { icon: 'YoutubeIcon' },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iconsMap.js","sourceRoot":"","sources":["../../../src/components/Footer/iconsMap.ts"],"names":[],"mappings":";;AAQa,QAAA,SAAS,GAAwB;IAC5C;QACE,OAAO,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC;QACjC,UAAU,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE;KACrC;IACD;QACE,OAAO,EAAE,CAAC,QAAQ,CAAC;QACnB,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC/B;IACD;QACE,OAAO,EAAE,CAAC,OAAO,CAAC;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC/B;IACD;QACE,OAAO,EAAE,CAAC,gBAAgB,CAAC;QAC3B,UAAU,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;KAClC;IACD;QACE,OAAO,EAAE,CAAC,iBAAiB,CAAC;QAC5B,UAAU,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;KACvC;IACD;QACE,OAAO,EAAE,CAAC,aAAa,CAAC;QACxB,UAAU,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE;KACpC;IACD;QACE,OAAO,EAAE,CAAC,WAAW,CAAC;QACtB,UAAU,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE;KACnC;IACD;QACE,OAAO,EAAE,CAAC,SAAS,CAAC;QACpB,UAAU,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE;KACjC;CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"iconsMap.js","sourceRoot":"","sources":["../../../src/components/Footer/iconsMap.ts"],"names":[],"mappings":";;AAQa,QAAA,SAAS,GAAwB;IAC5C;QACE,OAAO,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC;QACjC,UAAU,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE;KACrC;IACD;QACE,OAAO,EAAE,CAAC,QAAQ,CAAC;QACnB,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC/B;IACD;QACE,OAAO,EAAE,CAAC,OAAO,CAAC;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC/B;IACD;QACE,OAAO,EAAE,CAAC,gBAAgB,CAAC;QAC3B,UAAU,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;KAClC;IACD;QACE,OAAO,EAAE,CAAC,iBAAiB,CAAC;QAC5B,UAAU,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;KACvC;IACD;QACE,OAAO,EAAE,CAAC,uBAAuB,CAAC;QAClC,UAAU,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE;KACnC;IACD;QACE,OAAO,EAAE,CAAC,aAAa,CAAC;QACxB,UAAU,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE;KACpC;IACD;QACE,OAAO,EAAE,CAAC,WAAW,CAAC;QACtB,UAAU,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE;KACnC;IACD;QACE,OAAO,EAAE,CAAC,SAAS,CAAC;QACpB,UAAU,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE;KACjC;CACF,CAAC"}
|
|
@@ -2,4 +2,4 @@ import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
|
2
2
|
import { type MobileAppTileContent } from './MobileAppTileContent';
|
|
3
3
|
export interface MobileAppTileProps extends MobileAppTileContent, UniBlockProps {
|
|
4
4
|
}
|
|
5
|
-
export declare const MobileAppTile: import("
|
|
5
|
+
export declare const MobileAppTile: import("../../UniBlock/UniBlock").UniBlockComponent<MobileAppTileProps>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.MobileAppTile = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
4
|
const BaseTile_1 = require("../../ui-kit/BaseTile/BaseTile");
|
|
6
5
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
7
6
|
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
@@ -9,10 +8,11 @@ const Img_1 = require("../../ui-kit/Img/Img");
|
|
|
9
8
|
const renderButtonsSection_1 = require("../../ui-kit/LinkButton/renderButtonsSection");
|
|
10
9
|
const List_1 = require("../../ui-kit/List/List");
|
|
11
10
|
const Text_1 = require("../../ui-kit/Text/Text");
|
|
11
|
+
const UniBlock_1 = require("../../UniBlock/UniBlock");
|
|
12
12
|
const style_1 = require("../../utils/style");
|
|
13
|
-
exports.MobileAppTile = (0,
|
|
13
|
+
exports.MobileAppTile = (0, UniBlock_1.UniBlock)(({ className, padding, align = 'text-left', buttons = [], description, image, items, qr, headingType, additionalDescription = '', title = 'Мобильное приложение', version = 'primary', ...rest }) => {
|
|
14
14
|
const containerStyle = version === 'secondary' ? 'p-m min-w-32' : 'min-w-24';
|
|
15
15
|
const img = image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "hidden lg:block", image: image }) : null;
|
|
16
|
-
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('min-h-80', className), padding: "p-0", version: version, ...rest, children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-6xl", title: (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType:
|
|
16
|
+
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('min-h-80', className), padding: "p-0", version: version, ...rest, children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-6xl", title: (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: headingType, title: title, className: (0, style_1.style)('whitespace-pre-wrap', align) }), rightImage: img, buttons: (0, renderButtonsSection_1.renderButtonsSection)(buttons, { className: 'flex-wrap' }), children: [description ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-xl", "font-weight": "font-light", children: description })) : null, (0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('gap-m', 'flex flex-1 flex-col', 'flex-col items-start @xl:flex-row @xl:items-center'), children: [(0, jsx_runtime_1.jsx)(List_1.List, { items: items, listItemSize: "M" }), (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", "font-weight": "font-light", color: "text-secondary-text", children: additionalDescription }), qr?.src ? ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('flex justify-center bg-white rounded-md @xl:-order-1', containerStyle), children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "w-fit", image: qr }) })) : null, image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "lg:hidden", image: image }) : null] })] }) }));
|
|
17
17
|
});
|
|
18
18
|
//# sourceMappingURL=MobileAppTile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileAppTile.js","sourceRoot":"","sources":["../../../src/components/MobileAppTile/MobileAppTile.tsx"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"MobileAppTile.js","sourceRoot":"","sources":["../../../src/components/MobileAppTile/MobileAppTile.tsx"],"names":[],"mappings":";;;AAAA,6DAA0D;AAC1D,4DAAyD;AACzD,0DAAuD;AACvD,8CAA2C;AAC3C,uFAAoF;AACpF,iDAA8C;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CACE,SAAS,EAAE,IAAA,aAAK,EACd,OAAO,EACP,sBAAsB,EACtB,oDAAoD,CACrD,aAED,uBAAC,WAAI,IAAC,KAAK,EAAE,KAAK,EAAE,YAAY,EAAC,GAAG,GAAG,EACvC,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,iBAAa,YAAY,EAAC,KAAK,EAAC,qBAAqB,YACrE,qBAAqB,GACjB,EACN,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC,CACT,gCACE,SAAS,EAAE,IAAA,aAAK,EACd,sDAAsD,EACtD,cAAc,CACf,YAED,uBAAC,SAAG,IAAC,SAAS,EAAC,OAAO,EAAC,KAAK,EAAE,EAAE,GAAI,GAChC,CACP,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,SAAS,EAAC,WAAW,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,IAC5D,IACG,GACE,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type AdditionalDescriptionProps, type DescriptionProps, type HeadlineCommonProps, type TitleProps } from '../../model/HeadlineType';
|
|
2
2
|
import { type Picture } from '../../model/Picture';
|
|
3
|
+
import { type HeadingType } from '../../ui-kit/Heading/HeadingProps';
|
|
3
4
|
import { type ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
4
5
|
import { type ButtonsSectionContent } from '../../ui-kit/LinkButton/ButtonsSectionContent';
|
|
5
6
|
import { type ListContent } from '../../ui-kit/List/ListContent';
|
|
@@ -10,4 +11,5 @@ import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
|
10
11
|
export declare type MobileAppTileContent = UniBlockContent & AdditionalDescriptionProps & HeadlineCommonProps & TitleProps & DescriptionProps & ButtonsSectionContent & ListContent & ImageContent & {
|
|
11
12
|
/** @title QR-код */
|
|
12
13
|
qr?: Picture;
|
|
14
|
+
headingType?: HeadingType;
|
|
13
15
|
};
|
|
@@ -19,6 +19,10 @@ export const ICONS_MAP = [
|
|
|
19
19
|
origins: ['play.google.com'],
|
|
20
20
|
iconMapped: { icon: 'PlayMarketIcon' },
|
|
21
21
|
},
|
|
22
|
+
{
|
|
23
|
+
origins: ['appgallery.huawei.com'],
|
|
24
|
+
iconMapped: { icon: 'HuaweiIcon' },
|
|
25
|
+
},
|
|
22
26
|
{
|
|
23
27
|
origins: ['youtube.com'],
|
|
24
28
|
iconMapped: { icon: 'YoutubeIcon' },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iconsMap.js","sourceRoot":"","sources":["../../../src/components/Footer/iconsMap.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,MAAM,SAAS,GAAwB;IAC5C;QACE,OAAO,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC;QACjC,UAAU,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE;KACrC;IACD;QACE,OAAO,EAAE,CAAC,QAAQ,CAAC;QACnB,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC/B;IACD;QACE,OAAO,EAAE,CAAC,OAAO,CAAC;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC/B;IACD;QACE,OAAO,EAAE,CAAC,gBAAgB,CAAC;QAC3B,UAAU,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;KAClC;IACD;QACE,OAAO,EAAE,CAAC,iBAAiB,CAAC;QAC5B,UAAU,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;KACvC;IACD;QACE,OAAO,EAAE,CAAC,aAAa,CAAC;QACxB,UAAU,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE;KACpC;IACD;QACE,OAAO,EAAE,CAAC,WAAW,CAAC;QACtB,UAAU,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE;KACnC;IACD;QACE,OAAO,EAAE,CAAC,SAAS,CAAC;QACpB,UAAU,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE;KACjC;CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"iconsMap.js","sourceRoot":"","sources":["../../../src/components/Footer/iconsMap.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,MAAM,SAAS,GAAwB;IAC5C;QACE,OAAO,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC;QACjC,UAAU,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE;KACrC;IACD;QACE,OAAO,EAAE,CAAC,QAAQ,CAAC;QACnB,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC/B;IACD;QACE,OAAO,EAAE,CAAC,OAAO,CAAC;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC/B;IACD;QACE,OAAO,EAAE,CAAC,gBAAgB,CAAC;QAC3B,UAAU,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;KAClC;IACD;QACE,OAAO,EAAE,CAAC,iBAAiB,CAAC;QAC5B,UAAU,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;KACvC;IACD;QACE,OAAO,EAAE,CAAC,uBAAuB,CAAC;QAClC,UAAU,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE;KACnC;IACD;QACE,OAAO,EAAE,CAAC,aAAa,CAAC;QACxB,UAAU,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE;KACpC;IACD;QACE,OAAO,EAAE,CAAC,WAAW,CAAC;QACtB,UAAU,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE;KACnC;IACD;QACE,OAAO,EAAE,CAAC,SAAS,CAAC;QACpB,UAAU,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE;KACjC;CACF,CAAC"}
|
|
@@ -2,4 +2,4 @@ import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
|
2
2
|
import { type MobileAppTileContent } from './MobileAppTileContent';
|
|
3
3
|
export interface MobileAppTileProps extends MobileAppTileContent, UniBlockProps {
|
|
4
4
|
}
|
|
5
|
-
export declare const MobileAppTile: import("
|
|
5
|
+
export declare const MobileAppTile: import("../../UniBlock/UniBlock").UniBlockComponent<MobileAppTileProps>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
2
|
import { BaseTile } from '../../ui-kit/BaseTile/BaseTile.js';
|
|
4
3
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
5
4
|
import { Heading } from '../../ui-kit/Heading/Heading.js';
|
|
@@ -7,10 +6,11 @@ import { Img } from '../../ui-kit/Img/Img.js';
|
|
|
7
6
|
import { renderButtonsSection } from '../../ui-kit/LinkButton/renderButtonsSection.js';
|
|
8
7
|
import { List } from '../../ui-kit/List/List.js';
|
|
9
8
|
import { Text } from '../../ui-kit/Text/Text.js';
|
|
9
|
+
import { UniBlock } from '../../UniBlock/UniBlock.js';
|
|
10
10
|
import { style } from '../../utils/style.js';
|
|
11
|
-
export const MobileAppTile =
|
|
11
|
+
export const MobileAppTile = UniBlock(({ className, padding, align = 'text-left', buttons = [], description, image, items, qr, headingType, additionalDescription = '', title = 'Мобильное приложение', version = 'primary', ...rest }) => {
|
|
12
12
|
const containerStyle = version === 'secondary' ? 'p-m min-w-32' : 'min-w-24';
|
|
13
13
|
const img = image?.src ? _jsx(Img, { className: "hidden lg:block", image: image }) : null;
|
|
14
|
-
return (_jsx(BlockWrapper, { className: style('min-h-80', className), padding: "p-0", version: version, ...rest, children: _jsxs(BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-6xl", title: _jsx(Heading, { headingType:
|
|
14
|
+
return (_jsx(BlockWrapper, { className: style('min-h-80', className), padding: "p-0", version: version, ...rest, children: _jsxs(BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-6xl", title: _jsx(Heading, { headingType: headingType, title: title, className: style('whitespace-pre-wrap', align) }), rightImage: img, buttons: renderButtonsSection(buttons, { className: 'flex-wrap' }), children: [description ? (_jsx(Text, { size: "text-xl", "font-weight": "font-light", children: description })) : null, _jsxs("div", { className: style('gap-m', 'flex flex-1 flex-col', 'flex-col items-start @xl:flex-row @xl:items-center'), children: [_jsx(List, { items: items, listItemSize: "M" }), _jsx(Text, { size: "text-m", "font-weight": "font-light", color: "text-secondary-text", children: additionalDescription }), qr?.src ? (_jsx("div", { className: style('flex justify-center bg-white rounded-md @xl:-order-1', containerStyle), children: _jsx(Img, { className: "w-fit", image: qr }) })) : null, image?.src ? _jsx(Img, { className: "lg:hidden", image: image }) : null] })] }) }));
|
|
15
15
|
});
|
|
16
16
|
//# sourceMappingURL=MobileAppTile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileAppTile.js","sourceRoot":"","sources":["../../../src/components/MobileAppTile/MobileAppTile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"MobileAppTile.js","sourceRoot":"","sources":["../../../src/components/MobileAppTile/MobileAppTile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,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,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEnD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAI1C,MAAM,CAAC,MAAM,aAAa,GAAG,QAAQ,CACnC,CAAC,EACC,SAAS,EACT,OAAO,EACP,KAAK,GAAG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AI,EAAC,QAAQ,iBAAa,YAAY,EAAC,KAAK,EAAC,qBAAqB,YACrE,qBAAqB,GACjB,EACN,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC,CACT,cACE,SAAS,EAAE,KAAK,CACd,sDAAsD,EACtD,cAAc,CACf,YAED,KAAC,GAAG,IAAC,SAAS,EAAC,OAAO,EAAC,KAAK,EAAE,EAAE,GAAI,GAChC,CACP,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,KAAC,GAAG,IAAC,SAAS,EAAC,WAAW,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,IAC5D,IACG,GACE,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type AdditionalDescriptionProps, type DescriptionProps, type HeadlineCommonProps, type TitleProps } from '../../model/HeadlineType';
|
|
2
2
|
import { type Picture } from '../../model/Picture';
|
|
3
|
+
import { type HeadingType } from '../../ui-kit/Heading/HeadingProps';
|
|
3
4
|
import { type ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
4
5
|
import { type ButtonsSectionContent } from '../../ui-kit/LinkButton/ButtonsSectionContent';
|
|
5
6
|
import { type ListContent } from '../../ui-kit/List/ListContent';
|
|
@@ -10,4 +11,5 @@ import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
|
10
11
|
export declare type MobileAppTileContent = UniBlockContent & AdditionalDescriptionProps & HeadlineCommonProps & TitleProps & DescriptionProps & ButtonsSectionContent & ListContent & ImageContent & {
|
|
11
12
|
/** @title QR-код */
|
|
12
13
|
qr?: Picture;
|
|
14
|
+
headingType?: HeadingType;
|
|
13
15
|
};
|
|
@@ -27,6 +27,10 @@ export const ICONS_MAP: Array<IconsMapItem> = [
|
|
|
27
27
|
origins: ['play.google.com'],
|
|
28
28
|
iconMapped: { icon: 'PlayMarketIcon' },
|
|
29
29
|
},
|
|
30
|
+
{
|
|
31
|
+
origins: ['appgallery.huawei.com'],
|
|
32
|
+
iconMapped: { icon: 'HuaweiIcon' },
|
|
33
|
+
},
|
|
30
34
|
{
|
|
31
35
|
origins: ['youtube.com'],
|
|
32
36
|
iconMapped: { icon: 'YoutubeIcon' },
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
1
|
import { BaseTile } from '../../ui-kit/BaseTile/BaseTile';
|
|
3
2
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
3
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
@@ -6,12 +5,13 @@ import { Img } from '../../ui-kit/Img/Img';
|
|
|
6
5
|
import { renderButtonsSection } from '../../ui-kit/LinkButton/renderButtonsSection';
|
|
7
6
|
import { List } from '../../ui-kit/List/List';
|
|
8
7
|
import { Text } from '../../ui-kit/Text/Text';
|
|
8
|
+
import { UniBlock } from '../../UniBlock/UniBlock';
|
|
9
9
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
10
10
|
import { style } from '../../utils/style';
|
|
11
11
|
import { type MobileAppTileContent } from './MobileAppTileContent';
|
|
12
12
|
export interface MobileAppTileProps extends MobileAppTileContent, UniBlockProps {}
|
|
13
13
|
|
|
14
|
-
export const MobileAppTile =
|
|
14
|
+
export const MobileAppTile = UniBlock<MobileAppTileProps>(
|
|
15
15
|
({
|
|
16
16
|
className,
|
|
17
17
|
padding,
|
|
@@ -21,6 +21,7 @@ export const MobileAppTile = JSX<MobileAppTileProps>(
|
|
|
21
21
|
image,
|
|
22
22
|
items,
|
|
23
23
|
qr,
|
|
24
|
+
headingType,
|
|
24
25
|
additionalDescription = '',
|
|
25
26
|
title = 'Мобильное приложение',
|
|
26
27
|
version = 'primary',
|
|
@@ -43,7 +44,7 @@ export const MobileAppTile = JSX<MobileAppTileProps>(
|
|
|
43
44
|
defaultPadding="p-6xl"
|
|
44
45
|
title={
|
|
45
46
|
<Heading
|
|
46
|
-
headingType=
|
|
47
|
+
headingType={headingType}
|
|
47
48
|
title={title}
|
|
48
49
|
className={style('whitespace-pre-wrap', align)}
|
|
49
50
|
/>
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
type TitleProps,
|
|
6
6
|
} from '../../model/HeadlineType';
|
|
7
7
|
import { type Picture } from '../../model/Picture';
|
|
8
|
+
import { type HeadingType } from '../../ui-kit/Heading/HeadingProps';
|
|
8
9
|
import { type ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
9
10
|
import { type ButtonsSectionContent } from '../../ui-kit/LinkButton/ButtonsSectionContent';
|
|
10
11
|
import { type ListContent } from '../../ui-kit/List/ListContent';
|
|
@@ -24,4 +25,5 @@ export type MobileAppTileContent = UniBlockContent &
|
|
|
24
25
|
// TODO: description для мобильной версии
|
|
25
26
|
/** @title QR-код */
|
|
26
27
|
qr?: Picture;
|
|
28
|
+
headingType?: HeadingType;
|
|
27
29
|
};
|
package/package.json
CHANGED
|
@@ -27,6 +27,10 @@ export const ICONS_MAP: Array<IconsMapItem> = [
|
|
|
27
27
|
origins: ['play.google.com'],
|
|
28
28
|
iconMapped: { icon: 'PlayMarketIcon' },
|
|
29
29
|
},
|
|
30
|
+
{
|
|
31
|
+
origins: ['appgallery.huawei.com'],
|
|
32
|
+
iconMapped: { icon: 'HuaweiIcon' },
|
|
33
|
+
},
|
|
30
34
|
{
|
|
31
35
|
origins: ['youtube.com'],
|
|
32
36
|
iconMapped: { icon: 'YoutubeIcon' },
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
1
|
import { BaseTile } from '../../ui-kit/BaseTile/BaseTile';
|
|
3
2
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
3
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
@@ -6,12 +5,13 @@ import { Img } from '../../ui-kit/Img/Img';
|
|
|
6
5
|
import { renderButtonsSection } from '../../ui-kit/LinkButton/renderButtonsSection';
|
|
7
6
|
import { List } from '../../ui-kit/List/List';
|
|
8
7
|
import { Text } from '../../ui-kit/Text/Text';
|
|
8
|
+
import { UniBlock } from '../../UniBlock/UniBlock';
|
|
9
9
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
10
10
|
import { style } from '../../utils/style';
|
|
11
11
|
import { type MobileAppTileContent } from './MobileAppTileContent';
|
|
12
12
|
export interface MobileAppTileProps extends MobileAppTileContent, UniBlockProps {}
|
|
13
13
|
|
|
14
|
-
export const MobileAppTile =
|
|
14
|
+
export const MobileAppTile = UniBlock<MobileAppTileProps>(
|
|
15
15
|
({
|
|
16
16
|
className,
|
|
17
17
|
padding,
|
|
@@ -21,6 +21,7 @@ export const MobileAppTile = JSX<MobileAppTileProps>(
|
|
|
21
21
|
image,
|
|
22
22
|
items,
|
|
23
23
|
qr,
|
|
24
|
+
headingType,
|
|
24
25
|
additionalDescription = '',
|
|
25
26
|
title = 'Мобильное приложение',
|
|
26
27
|
version = 'primary',
|
|
@@ -43,7 +44,7 @@ export const MobileAppTile = JSX<MobileAppTileProps>(
|
|
|
43
44
|
defaultPadding="p-6xl"
|
|
44
45
|
title={
|
|
45
46
|
<Heading
|
|
46
|
-
headingType=
|
|
47
|
+
headingType={headingType}
|
|
47
48
|
title={title}
|
|
48
49
|
className={style('whitespace-pre-wrap', align)}
|
|
49
50
|
/>
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
type TitleProps,
|
|
6
6
|
} from '../../model/HeadlineType';
|
|
7
7
|
import { type Picture } from '../../model/Picture';
|
|
8
|
+
import { type HeadingType } from '../../ui-kit/Heading/HeadingProps';
|
|
8
9
|
import { type ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
9
10
|
import { type ButtonsSectionContent } from '../../ui-kit/LinkButton/ButtonsSectionContent';
|
|
10
11
|
import { type ListContent } from '../../ui-kit/List/ListContent';
|
|
@@ -24,4 +25,5 @@ export type MobileAppTileContent = UniBlockContent &
|
|
|
24
25
|
// TODO: description для мобильной версии
|
|
25
26
|
/** @title QR-код */
|
|
26
27
|
qr?: Picture;
|
|
28
|
+
headingType?: HeadingType;
|
|
27
29
|
};
|