@redneckz/wildless-cms-uni-blocks 0.6.32 → 0.6.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/bundle.umd.js +23 -16
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/ui-kit/Paragraph/Paragraph.d.ts +9 -0
- package/bundle/ui-kit/Text/Text.d.ts +34 -0
- package/dist/components/Accordion/Accordion.js +2 -1
- package/dist/components/Accordion/Accordion.js.map +1 -1
- package/dist/components/Accordion/Accordion.mobile.js +2 -1
- package/dist/components/Accordion/Accordion.mobile.js.map +1 -1
- package/dist/components/AccordionItem/AccordionItem.js +2 -1
- package/dist/components/AccordionItem/AccordionItem.js.map +1 -1
- package/dist/components/AccordionItem/AccordionItem.mobile.js +2 -1
- package/dist/components/AccordionItem/AccordionItem.mobile.js.map +1 -1
- package/dist/components/CarouselLinks/CarouselLinks.js +4 -4
- package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/dist/components/ContactsBlock/ContactsBlock.js +2 -2
- package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/dist/components/Headline/Headline.js +1 -2
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/InvestmentGallery/InvestmentGalleryCard.js +1 -2
- package/dist/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -1
- package/dist/components/Recommendation/RecommendationCard.js +1 -2
- package/dist/components/Recommendation/RecommendationCard.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.mobile.js +1 -1
- package/dist/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
- package/dist/components/Tile/Tile.js +2 -2
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/ui-kit/Paragraph/Paragraph.d.ts +9 -0
- package/dist/ui-kit/Paragraph/Paragraph.js +10 -0
- package/dist/ui-kit/Paragraph/Paragraph.js.map +1 -0
- package/dist/ui-kit/Text/Text.d.ts +34 -0
- package/dist/ui-kit/Text/Text.js +10 -0
- package/dist/ui-kit/Text/Text.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.js +2 -1
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/Accordion/Accordion.mobile.js +2 -1
- package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
- package/lib/components/AccordionItem/AccordionItem.js +2 -1
- package/lib/components/AccordionItem/AccordionItem.js.map +1 -1
- package/lib/components/AccordionItem/AccordionItem.mobile.js +2 -1
- package/lib/components/AccordionItem/AccordionItem.mobile.js.map +1 -1
- package/lib/components/CarouselLinks/CarouselLinks.js +4 -4
- package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/lib/components/ContactsBlock/ContactsBlock.js +2 -2
- package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/lib/components/Headline/Headline.js +1 -2
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/InvestmentGallery/InvestmentGalleryCard.js +1 -2
- package/lib/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -1
- package/lib/components/Recommendation/RecommendationCard.js +1 -2
- package/lib/components/Recommendation/RecommendationCard.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.mobile.js +1 -1
- package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
- package/lib/components/Tile/Tile.js +2 -2
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/ui-kit/Paragraph/Paragraph.d.ts +9 -0
- package/lib/ui-kit/Paragraph/Paragraph.js +8 -0
- package/lib/ui-kit/Paragraph/Paragraph.js.map +1 -0
- package/lib/ui-kit/Text/Text.d.ts +34 -0
- package/lib/ui-kit/Text/Text.js +8 -0
- package/lib/ui-kit/Text/Text.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +16 -4
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/ui-kit/Paragraph/Paragraph.d.ts +9 -0
- package/mobile/bundle/ui-kit/Text/Text.d.ts +34 -0
- package/mobile/dist/components/Accordion/Accordion.js +2 -1
- package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
- package/mobile/dist/components/AccordionItem/AccordionItem.js +2 -1
- package/mobile/dist/components/AccordionItem/AccordionItem.js.map +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js +4 -4
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/dist/components/ContactsBlock/ContactsBlock.js +2 -2
- package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.js +1 -2
- package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -1
- package/mobile/dist/components/Recommendation/RecommendationCard.js +1 -2
- package/mobile/dist/components/Recommendation/RecommendationCard.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/dist/components/Tile/Tile.js +2 -2
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/ui-kit/Paragraph/Paragraph.d.ts +9 -0
- package/mobile/dist/ui-kit/Paragraph/Paragraph.js +10 -0
- package/mobile/dist/ui-kit/Paragraph/Paragraph.js.map +1 -0
- package/mobile/dist/ui-kit/Text/Text.d.ts +34 -0
- package/mobile/dist/ui-kit/Text/Text.js +10 -0
- package/mobile/dist/ui-kit/Text/Text.js.map +1 -0
- package/mobile/lib/components/Accordion/Accordion.js +2 -1
- package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
- package/mobile/lib/components/AccordionItem/AccordionItem.js +2 -1
- package/mobile/lib/components/AccordionItem/AccordionItem.js.map +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js +4 -4
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/lib/components/ContactsBlock/ContactsBlock.js +2 -2
- package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.js +1 -2
- package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -1
- package/mobile/lib/components/Recommendation/RecommendationCard.js +1 -2
- package/mobile/lib/components/Recommendation/RecommendationCard.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/lib/components/Tile/Tile.js +2 -2
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/ui-kit/Paragraph/Paragraph.d.ts +9 -0
- package/mobile/lib/ui-kit/Paragraph/Paragraph.js +8 -0
- package/mobile/lib/ui-kit/Paragraph/Paragraph.js.map +1 -0
- package/mobile/lib/ui-kit/Text/Text.d.ts +34 -0
- package/mobile/lib/ui-kit/Text/Text.js +8 -0
- package/mobile/lib/ui-kit/Text/Text.js.map +1 -0
- package/mobile/src/components/Accordion/Accordion.tsx +9 -5
- package/mobile/src/components/AccordionItem/AccordionItem.tsx +7 -4
- package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +12 -6
- package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +4 -5
- package/mobile/src/components/InvestmentGallery/InvestmentGalleryCard.tsx +2 -3
- package/mobile/src/components/Recommendation/RecommendationCard.tsx +1 -2
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +1 -1
- package/mobile/src/components/Tile/Tile.tsx +4 -2
- package/mobile/src/ui-kit/Paragraph/Paragraph.tsx +17 -0
- package/mobile/src/ui-kit/Text/Text.tsx +79 -0
- package/package.json +1 -1
- package/src/components/Accordion/Accordion.mobile.tsx +9 -5
- package/src/components/Accordion/Accordion.tsx +7 -2
- package/src/components/AccordionItem/AccordionItem.mobile.tsx +7 -4
- package/src/components/AccordionItem/AccordionItem.tsx +4 -1
- package/src/components/CarouselLinks/CarouselLinks.tsx +12 -6
- package/src/components/ContactsBlock/ContactsBlock.tsx +4 -5
- package/src/components/Headline/Headline.tsx +3 -5
- package/src/components/InvestmentGallery/InvestmentGalleryCard.tsx +2 -3
- package/src/components/Recommendation/RecommendationCard.tsx +1 -2
- package/src/components/TariffsTable/TariffsTable.mobile.tsx +1 -1
- package/src/components/Tile/Tile.tsx +4 -2
- package/src/ui-kit/Paragraph/Paragraph.tsx +17 -0
- package/src/ui-kit/Text/Text.tsx +79 -0
- package/bundle/ui-kit/Description/Description.d.ts +0 -5
- package/dist/ui-kit/Description/Description.d.ts +0 -5
- package/dist/ui-kit/Description/Description.js +0 -9
- package/dist/ui-kit/Description/Description.js.map +0 -1
- package/lib/ui-kit/Description/Description.d.ts +0 -5
- package/lib/ui-kit/Description/Description.js +0 -7
- package/lib/ui-kit/Description/Description.js.map +0 -1
- package/mobile/bundle/ui-kit/Description/Description.d.ts +0 -5
- package/mobile/dist/ui-kit/Description/Description.d.ts +0 -5
- package/mobile/dist/ui-kit/Description/Description.js +0 -9
- package/mobile/dist/ui-kit/Description/Description.js.map +0 -1
- package/mobile/lib/ui-kit/Description/Description.d.ts +0 -5
- package/mobile/lib/ui-kit/Description/Description.js +0 -7
- package/mobile/lib/ui-kit/Description/Description.js.map +0 -1
- package/mobile/src/ui-kit/Description/Description.tsx +0 -12
- package/src/ui-kit/Description/Description.tsx +0 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTable.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTable.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,0DAAuD;AAOvD,qEAAkE;AAClE,iEAA8D;AAIjD,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EACC,SAAS,EACT,KAAK,EACL,WAAW,EACX,cAAc,EAAE,OAAO,EACvB,UAAU,EACV,WAAW,GAAG,UAAU,EACxB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;IACpC,MAAM,KAAK,GAAG,QAAQ,CAAC,UAAU,EAAE,OAAO,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,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;IAEpD,OAAO,CACL,qCACE,SAAS,EAAE,oEAAoE,SAAS,EAAE,aAEzF,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAE,eAAe,aAAa,EAAE,EAAE,KAAK,EAAE,KAAK,GAAI,CACtF,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,yBAAyB,YAAE,WAAW,GAAO,CAAC,CAAC,CAAC,IAAI,EACjF,WAAW,KAAK,UAAU,CAAC,CAAC,CAAC,CAC5B,uBAAC,2CAAoB,IAAC,KAAK,EAAE,KAAK,KAAM,IAAI,GAAI,CACjD,CAAC,CAAC,CAAC,CACF,uBAAC,+CAAsB,IAAC,KAAK,EAAE,KAAK,KAAM,IAAI,GAAI,CACnD,IACO,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,OAAyC,EAAE,EAAE,CAC/D,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;AAE5C,MAAM,QAAQ,GAAG,CAAC,UAA+C,EAAE,OAAoB,EAAE,EAAE,CACzF,UAAU,EAAE,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC9B,MAAM;IACN,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;CAC3B,CAAC,CAAC,CAAC"}
|
|
@@ -5,10 +5,10 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const BlockVersion_1 = require("../../model/BlockVersion");
|
|
6
6
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
7
7
|
const ButtonSection_1 = require("../../ui-kit/Button/ButtonSection");
|
|
8
|
-
const Description_1 = require("../../ui-kit/Description/Description");
|
|
9
8
|
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
10
9
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
11
10
|
const List_1 = require("../../ui-kit/List/List");
|
|
11
|
+
const Paragraph_1 = require("../../ui-kit/Paragraph/Paragraph");
|
|
12
12
|
const Tags_1 = require("../../ui-kit/Tags/Tags");
|
|
13
13
|
const BaseTile_1 = require("../BaseTile/BaseTile");
|
|
14
14
|
const getTileMinHeight_1 = require("../BaseTile/getTileMinHeight");
|
|
@@ -16,7 +16,7 @@ const getTileRightPadding_1 = require("../BaseTile/getTileRightPadding");
|
|
|
16
16
|
exports.Tile = (0, uni_jsx_1.JSX)((props) => {
|
|
17
17
|
const { title, headingType = 'h3', description, items, buttons, image, isDotted = true, listItemSize = 'M', className = '', version = 'primary', tags, children, ...rest } = props;
|
|
18
18
|
const headingClassName = version === 'primary' ? 'text-primary-text' : '';
|
|
19
|
-
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: `overflow-hidden font-sans p-9 pr-3 box-border ${className} ${BlockVersion_1.VersionStyleMap[version]} ${(0, getTileRightPadding_1.getTileRightPadding)(className)} ${(0, getTileMinHeight_1.getTileMinHeight)(className)} `, ...rest, children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { title: title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: headingType, as: "h2", title: title, className: `whitespace-pre-wrap max-w-[600px] ${headingClassName}` })) : null, buttons: buttons?.length ? ((0, jsx_runtime_1.jsx)(ButtonSection_1.ButtonSection, { buttons: buttons.map((button) => ({ ...button, className: 'min-w-[158px]' })), className: "flex mt-8 gap-3", ...rest })) : null, image: image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mt-auto ml-7", image: image }) : null, children: [description ? ((0, jsx_runtime_1.jsx)(
|
|
19
|
+
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: `overflow-hidden font-sans p-9 pr-3 box-border ${className} ${BlockVersion_1.VersionStyleMap[version]} ${(0, getTileRightPadding_1.getTileRightPadding)(className)} ${(0, getTileMinHeight_1.getTileMinHeight)(className)} `, ...rest, children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { title: title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: headingType, as: "h2", title: title, className: `whitespace-pre-wrap max-w-[600px] ${headingClassName}` })) : null, buttons: buttons?.length ? ((0, jsx_runtime_1.jsx)(ButtonSection_1.ButtonSection, { buttons: buttons.map((button) => ({ ...button, className: 'min-w-[158px]' })), className: "flex mt-8 gap-3", ...rest })) : null, image: image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mt-auto ml-7", image: image }) : null, children: [description ? ((0, jsx_runtime_1.jsx)("div", { className: "max-w-[600px] mt-2.5", children: (0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-xl-light", children: description }) })) : null, children, renderList({ version, isDotted, listItemSize }, items), tags?.length ? (0, jsx_runtime_1.jsx)(Tags_1.Tags, { tags: tags, className: "mt-5" }) : null] }) }));
|
|
20
20
|
});
|
|
21
21
|
function renderList({ version, isDotted, listItemSize }, items) {
|
|
22
22
|
return items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { items: items, isDotted: isDotted, className: "mt-2.5", listItemSize: listItemSize, itemClassName: "mb-1.5", version: version })) : null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.js","sourceRoot":"","sources":["../../../src/components/Tile/Tile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAA2D;AAE3D,4DAAyD;AACzD,qEAAkE;AAClE,
|
|
1
|
+
{"version":3,"file":"Tile.js","sourceRoot":"","sources":["../../../src/components/Tile/Tile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAA2D;AAE3D,4DAAyD;AACz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CAAC,CAAC,IAAI,EAEV,KAAK,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,SAAS,EAAC,cAAc,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,aAExE,WAAW,CAAC,CAAC,CAAC,CACb,gCAAK,SAAS,EAAC,sBAAsB,YACnC,uBAAC,qBAAS,IAAC,IAAI,EAAC,eAAe,YAAE,WAAW,GAAa,GACrD,CACP,CAAC,CAAC,CAAC,IAAI,EACP,QAAQ,EACR,UAAU,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE,KAAK,CAAC,EACtD,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,uBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAC,MAAM,GAAG,CAAC,CAAC,CAAC,IAAI,IACnD,GACE,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,SAAS,UAAU,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAa,EAAE,KAAgB;IAClF,OAAO,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACrB,uBAAC,WAAI,IACH,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAC,QAAQ,EAClB,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAC,QAAQ,EACtB,OAAO,EAAE,OAAO,GAChB,CACH,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { FontWeight, TextAlign, TextColor, TextSize } from '../Text/Text';
|
|
2
|
+
interface ParagraphProps {
|
|
3
|
+
size?: TextSize;
|
|
4
|
+
color?: TextColor;
|
|
5
|
+
align?: TextAlign;
|
|
6
|
+
font?: FontWeight;
|
|
7
|
+
}
|
|
8
|
+
export declare const Paragraph: import("@redneckz/uni-jsx").UNIComponent<ParagraphProps, any, any>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.Paragraph = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
exports.Paragraph = (0, uni_jsx_1.JSX)((props) => {
|
|
6
|
+
const { size = '', color = '', align = '', font = '', children } = props;
|
|
7
|
+
const textClasses = `font-sans ${size} ${color} ${align} ${font}`;
|
|
8
|
+
return (0, jsx_runtime_1.jsx)("p", { className: textClasses, children: children });
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=Paragraph.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Paragraph.js","sourceRoot":"","sources":["../../../src/ui-kit/Paragraph/Paragraph.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAU3B,QAAA,SAAS,GAAG,IAAA,aAAG,EAAiB,CAAC,KAAK,EAAE,EAAE;IACrD,MAAM,EAAE,IAAI,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,IAAI,GAAG,EAAE,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAEzE,MAAM,WAAW,GAAG,aAAa,IAAI,IAAI,KAAK,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;IAElE,OAAO,8BAAG,SAAS,EAAE,WAAW,YAAG,QAAQ,GAAK,CAAC;AACnD,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @title Размер текста
|
|
3
|
+
*/
|
|
4
|
+
export declare type TextSize = '' | 'text-xs-light' | 'text-s-light' | 'text-s' | 'text-m-light' | 'text-m' | 'text-l-light' | 'text-l' | 'text-xl-light' | 'text-xl';
|
|
5
|
+
/**
|
|
6
|
+
* @title Размер текста
|
|
7
|
+
*/
|
|
8
|
+
export declare type TitleSize = '' | 'text-h6' | 'text-h5' | 'text-h5-light' | 'text-h4' | 'text-h3' | 'text-h2' | 'text-h1' | 'text-h0' | 'text-m-title' | 'text-m-title-xs' | 'title-extra' | 'title-huge';
|
|
9
|
+
/**
|
|
10
|
+
* @title Цвет текста
|
|
11
|
+
*/
|
|
12
|
+
export declare type TextColor = '' | 'text-main' | 'text-primary-text' | 'text-primary-main' | 'text-secondary-text' | 'text-secondary-light' | 'text-error' | 'text-white' | 'text-green';
|
|
13
|
+
/**
|
|
14
|
+
* @title Выравнивание
|
|
15
|
+
* @enumNames [
|
|
16
|
+
* "По умолчанию",
|
|
17
|
+
* "По левому краю",
|
|
18
|
+
* "По центру",
|
|
19
|
+
* "По правому краю"
|
|
20
|
+
* ]
|
|
21
|
+
*/
|
|
22
|
+
export declare type TextAlign = '' | 'text-left' | 'text-center' | 'text-right';
|
|
23
|
+
/**
|
|
24
|
+
* @title Насыщенность шрифта
|
|
25
|
+
*/
|
|
26
|
+
export declare type FontWeight = '' | 'font-light' | 'font-normal' | 'font-medium';
|
|
27
|
+
interface TextProps {
|
|
28
|
+
size?: TextSize | TitleSize;
|
|
29
|
+
color?: TextColor;
|
|
30
|
+
align?: TextAlign;
|
|
31
|
+
font?: FontWeight;
|
|
32
|
+
}
|
|
33
|
+
export declare const Text: import("@redneckz/uni-jsx").UNIComponent<TextProps, any, any>;
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.Text = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
exports.Text = (0, uni_jsx_1.JSX)((props) => {
|
|
6
|
+
const { size = '', color = '', align = '', font = '', children } = props;
|
|
7
|
+
const textClasses = `font-sans ${size} ${color} ${align} ${font}`;
|
|
8
|
+
return (0, jsx_runtime_1.jsx)("span", { className: textClasses, children: children });
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=Text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../src/ui-kit/Text/Text.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAwE3B,QAAA,IAAI,GAAG,IAAA,aAAG,EAAY,CAAC,KAAK,EAAE,EAAE;IAC3C,MAAM,EAAE,IAAI,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,IAAI,GAAG,EAAE,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAEzE,MAAM,WAAW,GAAG,aAAa,IAAI,IAAI,KAAK,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;IAElE,OAAO,iCAAM,SAAS,EAAE,WAAW,YAAG,QAAQ,GAAQ,CAAC;AACzD,CAAC,CAAC,CAAC"}
|
|
@@ -2,7 +2,8 @@ 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
4
|
import { Heading } from '../../ui-kit/Heading/Heading.js';
|
|
5
|
+
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph.js';
|
|
5
6
|
import { AccordionItemsList } from './AccordionItemsList.js';
|
|
6
|
-
export const Accordion = JSX(({ title, description, className = '', children, ...rest }) => (_jsxs(BlockWrapper, { className: `py-6 px-4
|
|
7
|
+
export const Accordion = JSX(({ title, description, className = '', children, ...rest }) => (_jsxs(BlockWrapper, { className: `py-6 px-4 bg-white text-primary-text ${className}`, ...rest, children: [title ? _jsx(Heading, { headingType: "h3", className: "mb-2 text-center", title: title }) : null, description ? (_jsx("div", { className: "mb-5", children: _jsx(Paragraph, { size: "text-m", font: "font-light", align: "text-center", children: description }) })) : null, _jsx(AccordionItemsList, { children: children })] })));
|
|
7
8
|
Accordion.childrenTypes = ['AccordionItem'];
|
|
8
9
|
//# sourceMappingURL=Accordion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.js","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.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;
|
|
1
|
+
{"version":3,"file":"Accordion.js","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.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;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAE7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAI1D,MAAM,CAAC,MAAM,SAAS,GAA6B,GAAG,CACpD,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAC7D,MAAC,YAAY,IAAC,SAAS,EAAE,wCAAwC,SAAS,EAAE,KAAM,IAAI,aACnF,KAAK,CAAC,CAAC,CAAC,KAAC,OAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAC,kBAAkB,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EACtF,WAAW,CAAC,CAAC,CAAC,CACb,cAAK,SAAS,EAAC,MAAM,YACnB,KAAC,SAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,aAAa,YAC3D,WAAW,GACF,GACR,CACP,CAAC,CAAC,CAAC,IAAI,EACR,KAAC,kBAAkB,cAAE,QAAQ,GAAsB,IACtC,CAChB,CACF,CAAC;AAEF,SAAS,CAAC,aAAa,GAAG,CAAC,eAAe,CAAC,CAAC"}
|
|
@@ -4,6 +4,7 @@ import { getParentBlockContent } from '../../model/getParentBlockContent.js';
|
|
|
4
4
|
import { Foldable } from '../../ui-kit/Foldable/Foldable.js';
|
|
5
5
|
import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection.js';
|
|
6
6
|
import { Img } from '../../ui-kit/Img/Img.js';
|
|
7
|
+
import { Text } from '../../ui-kit/Text/Text.js';
|
|
7
8
|
import { getIconWithVersion } from '../../utils/getIconWithVersion.js';
|
|
8
9
|
const icons = ['PlusIcon', 'MinusIcon'];
|
|
9
10
|
export const AccordionItem = JSX(({ className = '', ancestors, label = '', labelIcon, isExpanded, children }) => {
|
|
@@ -11,5 +12,5 @@ export const AccordionItem = JSX(({ className = '', ancestors, label = '', label
|
|
|
11
12
|
return (_jsx("li", { className: `${bordered ? 'border p-4 rounded mb-4' : 'border-0 border-b last:border-b-0'} border-solid border-main-divider ${className}`, children: _jsx(Foldable, { isFoldButtonOnTop: true, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => (_jsx(FoldableSection, { className: "flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0", isUnfolded: isUnfolded, children: children })), renderFoldButton: ({ isUnfolded, onToggle }) => (_jsx(FoldButton, { className: bordered ? '' : 'py-[14px] px-0', label: label, icon: icons[Number(isUnfolded)], primaryIcon: labelIcon, onClick: onToggle })) }) }));
|
|
12
13
|
});
|
|
13
14
|
AccordionItem.childrenTypes = [];
|
|
14
|
-
const FoldButton = JSX(({ className, icon, label, primaryIcon, onClick }) => (_jsxs("button", { className: `border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text group cursor-pointer ${className}`, onClick: onClick, children: [_jsxs("
|
|
15
|
+
const FoldButton = JSX(({ className, icon, label, primaryIcon, onClick }) => (_jsxs("button", { className: `border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text group cursor-pointer ${className}`, onClick: onClick, children: [_jsxs("div", { className: "flex group-hover:text-primary-main", children: [primaryIcon ? (_jsx(Img, { image: getIconWithVersion(primaryIcon), className: "mr-3 flex-shrink-0", width: "24", height: "24", asSVG: true })) : null, _jsx(Text, { size: "text-m-title-xs", font: "font-medium", children: label })] }), _jsx(Img, { className: "flex-shrink-0", image: getIconWithVersion({ icon: icon }), width: "24", height: "24", asSVG: true })] })));
|
|
15
16
|
//# sourceMappingURL=AccordionItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionItem.js","sourceRoot":"","sources":["../../../src/components/AccordionItem/AccordionItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAG1E,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAExE,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"AccordionItem.js","sourceRoot":"","sources":["../../../src/components/AccordionItem/AccordionItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAG1E,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAExE,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAIpE,M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,EAC3I,OAAO,EAAE,OAAO,aAEhB,eAAK,SAAS,EAAC,oCAAoC,aAChD,WAAW,CAAC,CAAC,CAAC,CACb,KAAC,GAAG,IACF,KAAK,EAAE,kBAAkB,CAAC,WAAW,CAAC,EACtC,SAAS,EAAC,oBAAoB,EAC9B,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,EACR,KAAC,IAAI,IAAC,IAAI,EAAC,iBAAiB,EAAC,IAAI,EAAC,aAAa,YAC5C,KAAK,GACD,IACH,EACN,KAAC,GAAG,IACF,SAAS,EAAC,eAAe,EACzB,KAAK,EAAE,kBAAkB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EACzC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,IACK,CACV,CAAC,CAAC"}
|
|
@@ -1,16 +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 { Description } from '../../ui-kit/Description/Description.js';
|
|
5
4
|
import { Heading } from '../../ui-kit/Heading/Heading.js';
|
|
6
5
|
import { LinkButton } from '../../ui-kit/LinkButton/LinkButton.js';
|
|
6
|
+
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph.js';
|
|
7
7
|
import { sliceArray } from '../../utils/sliceArray.js';
|
|
8
8
|
import { Carousel } from '../Carousel/Carousel.js';
|
|
9
9
|
const MAX_LINKS_COUNT = 12;
|
|
10
|
-
export const CarouselLinks = JSX(({ additionalDescription,
|
|
11
|
-
return (_jsxs(BlockWrapper, { className: `bg-primary-main flex w-full p-10 overflow-hidden justify-between font-sans ${className}`, ...rest, children: [_jsxs("div", { className: "flex flex-col max-w-96 pr-9 text-white text-xl-light", children: [title ? _jsx(Heading, { title: title, as: "h1", headingType: "h0", className: "pb-0.5" }) : null, description ? (_jsx(
|
|
10
|
+
export const CarouselLinks = JSX(({ additionalDescription, description, links, title, className = '', ...rest }) => {
|
|
11
|
+
return (_jsxs(BlockWrapper, { className: `bg-primary-main flex w-full p-10 overflow-hidden justify-between font-sans ${className}`, ...rest, children: [_jsxs("div", { className: "flex flex-col max-w-96 pr-9 text-white text-xl-light", children: [title ? _jsx(Heading, { title: title, as: "h1", headingType: "h0", className: "pb-0.5" }) : null, description ? (_jsx("div", { className: "pt-5", children: _jsx(Paragraph, { size: "text-xl", font: "font-light", children: description }) })) : null, additionalDescription ? (_jsx("div", { className: "pt-6", children: _jsx(Paragraph, { children: additionalDescription }) })) : null] }), links?.length ? renderLinks(links) : null] }));
|
|
12
12
|
});
|
|
13
|
-
const renderLinks = (links
|
|
13
|
+
const renderLinks = (links) => {
|
|
14
14
|
const slicedLinks = sliceArray(links, MAX_LINKS_COUNT);
|
|
15
15
|
const slides = slicedLinks.map((slide) => (_jsx("div", { className: "w-[672px] min-w-[672px] ml-20 mr-20 flex flex-wrap self-start", children: slide.map((link, index) => (_jsx(LinkButton, { className: "m-1", ...link }, String(index)))) })));
|
|
16
16
|
return (_jsx(Carousel, { className: "min-w-[832px] w-[832px]", isBlur: false, cardFullViewCount: 1, cardWidth: '832', isCyclic: true, block: { type: 'Carousel', blocks: slides }, children: slides }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselLinks.js","sourceRoot":"","sources":["../../../src/components/CarouselLinks/CarouselLinks.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"CarouselLinks.js","sourceRoot":"","sources":["../../../src/components/CarouselLinks/CarouselLinks.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EA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B,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,KAAkB,EAAE,EAAE;IACzC,MAAM,WAAW,GAAG,UAAU,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC;IAEvD,MAAM,MAAM,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CACxC,cAAK,SAAS,EAAC,+DAA+D,YAC3E,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAC1B,KAAC,UAAU,IAAC,SAAS,EAAC,KAAK,KAAyB,IAAI,IAAvB,MAAM,CAAC,KAAK,CAAC,CAAc,CAC7D,CAAC,GACE,CACP,CAAC,CAAC;IAEH,OAAO,CACL,KAAC,QAAQ,IACP,SAAS,EAAC,yBAAyB,EACnC,MAAM,EAAE,KAAK,EACb,iBAAiB,EAAE,CAAC,EACpB,SAAS,EAAE,KAAK,EAChB,QAAQ,EAAE,IAAI,EACd,KAAK,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,YAE1C,MAAM,GACE,CACZ,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -3,11 +3,11 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
3
3
|
import { VersionStyleMap } from '../../model/BlockVersion.js';
|
|
4
4
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
5
5
|
import { Button } from '../../ui-kit/Button/Button.js';
|
|
6
|
-
import {
|
|
6
|
+
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph.js';
|
|
7
7
|
import { Headline } from '../Headline/Headline.js';
|
|
8
8
|
export const ContactsBlock = JSX(({ className = '', contacts, info, version = 'secondary', ...rest }) => {
|
|
9
9
|
return (_jsxs(BlockWrapper, { className: `${VersionStyleMap[version]} flex p-[50px] ${className}`, ...rest, children: [info?.length ? renderBlocks(info, version) : null, contacts?.length ? renderBlocks(contacts, version) : null] }));
|
|
10
10
|
});
|
|
11
11
|
const renderBlocks = (info, version) => (_jsx("div", { className: "flex grow basis-0", children: info.map((column, index) => renderBlocksColumn({ column, index, version })) }));
|
|
12
|
-
const renderBlocksColumn = ({ column, index, version }) => column ? (_jsx("div", { className: "flex flex-col grow basis-0 pr-11 last:pr-0", children: column.map(({ title = '', description, additionalDescription, button }, key) => (_jsxs("div", { className: "mt-6 first:mt-0", children: [_jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "XS", align: "left", bgColorHeadline: version }), additionalDescription ? (_jsx(
|
|
12
|
+
const renderBlocksColumn = ({ column, index, version }) => column ? (_jsx("div", { className: "flex flex-col grow basis-0 pr-11 last:pr-0", children: column.map(({ title = '', description, additionalDescription, button }, key) => (_jsxs("div", { className: "mt-6 first:mt-0", children: [_jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "XS", align: "left", bgColorHeadline: version }), additionalDescription ? (_jsx("div", { className: "mt-1.5 opacity-80", children: _jsx(Paragraph, { size: "text-m-light", children: additionalDescription }) })) : null, button ? _jsx(Button, { className: "mt-6", ...button }) : null] }, String(key)))) }, `col-${String(index)}`)) : null;
|
|
13
13
|
//# sourceMappingURL=ContactsBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContactsBlock.js","sourceRoot":"","sources":["../../../src/components/ContactsBlock/ContactsBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ContactsBlock.js","sourceRoot":"","sources":["../../../src/components/ContactsBlock/ContactsBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,C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EAAE,KAAK,GAAG,EAAE,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAC/E,eAAK,SAAS,EAAC,iBAAiB,aAC9B,KAAC,QAAQ,IACP,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAC,IAAI,EACpB,KAAK,EAAC,MAAM,EACZ,eAAe,EAAE,OAAO,GACxB,EACD,qBAAqB,CAAC,CAAC,CAAC,CACvB,cAAK,SAAS,EAAC,mBAAmB,YAChC,KAAC,SAAS,IAAC,IAAI,EAAC,cAAc,YAAE,qBAAqB,GAAa,GAC9D,CACP,CAAC,CAAC,CAAC,IAAI,EACP,MAAM,CAAC,CAAC,CAAC,KAAC,MAAM,IAAC,SAAS,EAAC,MAAM,KAAK,MAAM,GAAI,CAAC,CAAC,CAAC,IAAI,KAdpB,MAAM,CAAC,GAAG,CAAC,CAe3C,CACP,CAAC,IAlB6D,OAAO,MAAM,CAAC,KAAK,CAAC,EAAE,CAmBjF,CACP,CAAC,CAAC,CAAC,IAAI,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
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 { BorderVersionStyleMap } from '../../model/BorderVersion.js';
|
|
4
|
-
import { Description } from '../../ui-kit/Description/Description.js';
|
|
5
4
|
import { Heading } from '../../ui-kit/Heading/Heading.js';
|
|
6
5
|
import { Img } from '../../ui-kit/Img/Img.js';
|
|
7
6
|
import { BaseTile } from '../BaseTile/BaseTile.js';
|
|
@@ -16,7 +15,7 @@ export const InvestmentGalleryCard = JSX(({ className = '', columnsMode = 'doubl
|
|
|
16
15
|
return (_jsx("section", { className: `relative overflow-hidden text-left border border-solid box-border
|
|
17
16
|
p-9 min-w-[697px] min-h-[319px]
|
|
18
17
|
${BorderVersionStyleMap[version]}
|
|
19
|
-
${className}`, role: "listitem", children: _jsx(BaseTile, { className: "flex justify-between", title: tileTitle, image: tileImage, children: _jsxs("div", { className: "flex flex-col justify-between", children: [_jsxs("div", { className: "flex itens-center justify-between mb-4", children: [description ? _jsx(
|
|
18
|
+
${className}`, role: "listitem", children: _jsx(BaseTile, { className: "flex justify-between", title: tileTitle, image: tileImage, children: _jsxs("div", { className: "flex flex-col justify-between", children: [_jsxs("div", { className: "flex itens-center justify-between mb-4", children: [description ? _jsx("span", { className: "text-h6", children: description }) : null, additionalDescription ? (_jsxs("span", { className: "text-m-light text-secondary-text", children: [" ", additionalDescription, " "] })) : null] }), cardList?.length ? (_jsx("div", { className: `${cardColumnsModeStyleMap[columnsMode]}`, role: "list", children: renderCardList(cardList, columnsMode) })) : null] }) }) }));
|
|
20
19
|
});
|
|
21
20
|
const renderCardList = (cardList, columnsMode) => cardList.map((item, i) => (_jsxs("div", { className: columnsMode === 'double' ? 'basis-[calc(50%-20px)]' : '', role: "listitem", children: [item?.parameter ? (_jsx("span", { className: `pr-2.5 ${getItemListFontSize(columnsMode)}`, children: item.parameter })) : null, item?.parameterDesccription ? (_jsx("span", { className: "text-m-light text-secondary-text", children: item.parameterDesccription })) : null] }, String(i))));
|
|
22
21
|
//# sourceMappingURL=InvestmentGalleryCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvestmentGalleryCard.js","sourceRoot":"","sources":["../../../src/components/InvestmentGallery/InvestmentGalleryCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"InvestmentGalleryCard.js","sourceRoot":"","sources":["../../../src/components/InvestmentGallery/InvestmentGalleryCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,m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sxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { renderButton } from '../../ui-kit/Button/ButtonSection.js';
|
|
4
|
-
import { Description } from '../../ui-kit/Description/Description.js';
|
|
5
4
|
import { Heading } from '../../ui-kit/Heading/Heading.js';
|
|
6
5
|
import { Img } from '../../ui-kit/Img/Img.js';
|
|
7
6
|
import { List } from '../../ui-kit/List/List.js';
|
|
@@ -10,6 +9,6 @@ import { SocialMedia } from '../Footer/SocialMedia.js';
|
|
|
10
9
|
export const RecommendationCard = JSX(({ className = '', title, description, items, image, version, socialMedia, button }) => {
|
|
11
10
|
const tileTitle = title ? (_jsx(Heading, { headingType: "h5", as: "h3", className: "mb-3.5 z-10", title: title })) : null;
|
|
12
11
|
const tileImage = image?.src ? (_jsx(Img, { className: "absolute bottom-0 right-0 m-0", image: image })) : null;
|
|
13
|
-
return (_jsx("section", { className: `relative overflow-hidden text-left border border-solid box-border p-7 min-w-[524px] min-h-[218px] ${className}`, role: "listitem", children: _jsx(BaseTile, { className: "flex justify-between", title: tileTitle, image: tileImage, children: _jsxs("div", { className: "h-full flex flex-col justify-between", children: [description ? _jsx(
|
|
12
|
+
return (_jsx("section", { className: `relative overflow-hidden text-left border border-solid box-border p-7 min-w-[524px] min-h-[218px] ${className}`, role: "listitem", children: _jsx(BaseTile, { className: "flex justify-between", title: tileTitle, image: tileImage, children: _jsxs("div", { className: "h-full flex flex-col justify-between", children: [description ? _jsx("span", { className: "mb-2", children: description }) : null, items?.length ? (_jsx(List, { className: "text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]", items: items, version: version })) : null, socialMedia ? (_jsx(SocialMedia, { className: "pt-10 pb-0", media: socialMedia, version: version })) : null, button?.text ? (_jsx("div", { className: "pt-2", children: renderButton({ button, buttonClassName: 'mt-16' }) })) : null] }) }) }));
|
|
14
13
|
});
|
|
15
14
|
//# sourceMappingURL=RecommendationCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecommendationCard.js","sourceRoot":"","sources":["../../../src/components/Recommendation/RecommendationCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"RecommendationCard.js","sourceRoot":"","sources":["../../../src/components/Recommendation/RecommendationCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAQpD,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,CACnC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,EAAE;IACrF,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CACxB,KAAC,OAAO,IAAC,WAAW,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,SAAS,EAAC,aAAa,EAAC,KAAK,EAAE,KAAK,GAAI,CAC3E,CAAC,CAAC,CAAC,IAAI,CAAC;IACT,MAAM,SAAS,GAAG,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAC7B,KAAC,GAAG,IAAC,SAAS,EAAC,+BAA+B,EAAC,KAAK,EAAE,KAAK,GAAI,CAChE,CAAC,CAAC,CAAC,IAAI,CAAC;IAET,OAAO,CACL,kBACE,SAAS,EAAE,qGAAqG,SAAS,EAAE,EAC3H,IAAI,EAAC,UAAU,YAEf,KAAC,QAAQ,IAAC,SAAS,EAAC,sBAAsB,EAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,YAC3E,eAAK,SAAS,EAAC,sCAAsC,aAClD,WAAW,CAAC,CAAC,CAAC,eAAM,SAAS,EAAC,MAAM,YAAE,WAAW,GAAQ,CAAC,CAAC,CAAC,IAAI,EAChE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACf,KAAC,IAAI,IACH,SAAS,EAAC,wDAAwD,EAClE,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,GAChB,CACH,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,CACb,KAAC,WAAW,IAAC,SAAS,EAAC,YAAY,EAAC,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,GAAI,CAC7E,CAAC,CAAC,CAAC,IAAI,EACP,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CACd,cAAK,SAAS,EAAC,MAAM,YAAE,YAAY,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,CAAC,GAAO,CACjF,CAAC,CAAC,CAAC,IAAI,IACJ,GACG,GACH,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -9,7 +9,7 @@ export const TariffsTable = JSX(({ className, title, description, tariffsColumns
|
|
|
9
9
|
const headingMargin = description ? 'mb-2' : 'mb-5';
|
|
10
10
|
return (_jsxs("section", { className: `px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${className}`, children: [title ? (_jsx(Heading, { headingType: "h2", className: `text-center ${headingMargin}`, title: title })) : null, description ? _jsx("div", { className: "mb-5 text-center text-m", children: description }) : null, orientation === 'vertical' ? (_jsx(TariffsTableVertical, { tiles: tiles, ...rest })) : (_jsx(TariffsTableHorizontal, { tiles: tiles, ...rest }))] }));
|
|
11
11
|
});
|
|
12
|
-
const getColData = (columns) => columns?.[0]
|
|
12
|
+
const getColData = (columns) => columns?.[0]?.data ? columns[0].data : [];
|
|
13
13
|
const getTiles = (rowHeaders, colData) => rowHeaders?.map((header, i) => ({
|
|
14
14
|
header,
|
|
15
15
|
data: colData?.[i] || [{}],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTable.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTable.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAOvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAI9D,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAC7B,CAAC,EACC,SAAS,EACT,KAAK,EACL,WAAW,EACX,cAAc,EAAE,OAAO,EACvB,UAAU,EACV,WAAW,GAAG,UAAU,EACxB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;IACpC,MAAM,KAAK,GAAG,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAC5C,MAAM,aAAa,GAAG,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;IAEpD,OAAO,CACL,mBACE,SAAS,EAAE,oEAAoE,SAAS,EAAE,aAEzF,KAAK,CAAC,CAAC,CAAC,CACP,KAAC,OAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAE,eAAe,aAAa,EAAE,EAAE,KAAK,EAAE,KAAK,GAAI,CACtF,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,cAAK,SAAS,EAAC,yBAAyB,YAAE,WAAW,GAAO,CAAC,CAAC,CAAC,IAAI,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,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,cAAK,SAAS,EAAC,yBAAyB,YAAE,WAAW,GAAO,CAAC,CAAC,CAAC,IAAI,EACjF,WAAW,KAAK,UAAU,CAAC,CAAC,CAAC,CAC5B,KAAC,oBAAoB,IAAC,KAAK,EAAE,KAAK,KAAM,IAAI,GAAI,CACjD,CAAC,CAAC,CAAC,CACF,KAAC,sBAAsB,IAAC,KAAK,EAAE,KAAK,KAAM,IAAI,GAAI,CACnD,IACO,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,OAAyC,EAAE,EAAE,CAC/D,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;AAE5C,MAAM,QAAQ,GAAG,CAAC,UAA+C,EAAE,OAAoB,EAAE,EAAE,CACzF,UAAU,EAAE,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC9B,MAAM;IACN,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;CAC3B,CAAC,CAAC,CAAC"}
|
|
@@ -3,10 +3,10 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
3
3
|
import { VersionStyleMap } from '../../model/BlockVersion.js';
|
|
4
4
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
5
5
|
import { ButtonSection } from '../../ui-kit/Button/ButtonSection.js';
|
|
6
|
-
import { Description } from '../../ui-kit/Description/Description.js';
|
|
7
6
|
import { Heading } from '../../ui-kit/Heading/Heading.js';
|
|
8
7
|
import { Img } from '../../ui-kit/Img/Img.js';
|
|
9
8
|
import { List } from '../../ui-kit/List/List.js';
|
|
9
|
+
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph.js';
|
|
10
10
|
import { Tags } from '../../ui-kit/Tags/Tags.js';
|
|
11
11
|
import { BaseTile } from '../BaseTile/BaseTile.js';
|
|
12
12
|
import { getTileMinHeight } from '../BaseTile/getTileMinHeight.js';
|
|
@@ -14,7 +14,7 @@ import { getTileRightPadding } from '../BaseTile/getTileRightPadding.js';
|
|
|
14
14
|
export const Tile = JSX((props) => {
|
|
15
15
|
const { title, headingType = 'h3', description, items, buttons, image, isDotted = true, listItemSize = 'M', className = '', version = 'primary', tags, children, ...rest } = props;
|
|
16
16
|
const headingClassName = version === 'primary' ? 'text-primary-text' : '';
|
|
17
|
-
return (_jsx(BlockWrapper, { className: `overflow-hidden font-sans p-9 pr-3 box-border ${className} ${VersionStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, ...rest, children: _jsxs(BaseTile, { title: title ? (_jsx(Heading, { headingType: headingType, as: "h2", title: title, className: `whitespace-pre-wrap max-w-[600px] ${headingClassName}` })) : null, buttons: buttons?.length ? (_jsx(ButtonSection, { buttons: buttons.map((button) => ({ ...button, className: 'min-w-[158px]' })), className: "flex mt-8 gap-3", ...rest })) : null, image: image?.src ? _jsx(Img, { className: "mt-auto ml-7", image: image }) : null, children: [description ? (_jsx(
|
|
17
|
+
return (_jsx(BlockWrapper, { className: `overflow-hidden font-sans p-9 pr-3 box-border ${className} ${VersionStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, ...rest, children: _jsxs(BaseTile, { title: title ? (_jsx(Heading, { headingType: headingType, as: "h2", title: title, className: `whitespace-pre-wrap max-w-[600px] ${headingClassName}` })) : null, buttons: buttons?.length ? (_jsx(ButtonSection, { buttons: buttons.map((button) => ({ ...button, className: 'min-w-[158px]' })), className: "flex mt-8 gap-3", ...rest })) : null, image: image?.src ? _jsx(Img, { className: "mt-auto ml-7", image: image }) : null, children: [description ? (_jsx("div", { className: "max-w-[600px] mt-2.5", children: _jsx(Paragraph, { size: "text-xl-light", children: description }) })) : null, children, renderList({ version, isDotted, listItemSize }, items), tags?.length ? _jsx(Tags, { tags: tags, className: "mt-5" }) : null] }) }));
|
|
18
18
|
});
|
|
19
19
|
function renderList({ version, isDotted, listItemSize }, items) {
|
|
20
20
|
return items?.length ? (_jsx(List, { items: items, isDotted: isDotted, className: "mt-2.5", listItemSize: listItemSize, itemClassName: "mb-1.5", version: version })) : null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.js","sourceRoot":"","sources":["../../../src/components/Tile/Tile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Tile.js","sourceRoot":"","sources":["../../../src/components/Tile/Tile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAOtE,MAAM,CAAC,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,WAAW,CAAC,CAAC,CAAC,CACb,cAAK,SAAS,EAAC,sBAAsB,YACnC,KAAC,SAAS,IAAC,IAAI,EAAC,eAAe,YAAE,WAAW,GAAa,GACrD,CACP,CAAC,CAAC,CAAC,IAAI,EACP,QAAQ,EACR,UAAU,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE,KAAK,CAAC,EACtD,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAC,MAAM,GAAG,CAAC,CAAC,CAAC,IAAI,IACnD,GACE,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,SAAS,UAAU,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAa,EAAE,KAAgB;IAClF,OAAO,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACrB,KAAC,IAAI,IACH,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAC,QAAQ,EAClB,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAC,QAAQ,EACtB,OAAO,EAAE,OAAO,GAChB,CACH,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { FontWeight, TextAlign, TextColor, TextSize } from '../Text/Text';
|
|
2
|
+
interface ParagraphProps {
|
|
3
|
+
size?: TextSize;
|
|
4
|
+
color?: TextColor;
|
|
5
|
+
align?: TextAlign;
|
|
6
|
+
font?: FontWeight;
|
|
7
|
+
}
|
|
8
|
+
export declare const Paragraph: import("@redneckz/uni-jsx").UNIComponent<ParagraphProps, any, any>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
+
export const Paragraph = JSX((props) => {
|
|
4
|
+
const { size = '', color = '', align = '', font = '', children } = props;
|
|
5
|
+
const textClasses = `font-sans ${size} ${color} ${align} ${font}`;
|
|
6
|
+
return _jsx("p", { className: textClasses, children: children });
|
|
7
|
+
});
|
|
8
|
+
//# sourceMappingURL=Paragraph.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Paragraph.js","sourceRoot":"","sources":["../../../src/ui-kit/Paragraph/Paragraph.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAUxC,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAiB,CAAC,KAAK,EAAE,EAAE;IACrD,MAAM,EAAE,IAAI,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,IAAI,GAAG,EAAE,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAEzE,MAAM,WAAW,GAAG,aAAa,IAAI,IAAI,KAAK,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;IAElE,OAAO,YAAG,SAAS,EAAE,WAAW,YAAG,QAAQ,GAAK,CAAC;AACnD,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @title Размер текста
|
|
3
|
+
*/
|
|
4
|
+
export declare type TextSize = '' | 'text-xs-light' | 'text-s-light' | 'text-s' | 'text-m-light' | 'text-m' | 'text-l-light' | 'text-l' | 'text-xl-light' | 'text-xl';
|
|
5
|
+
/**
|
|
6
|
+
* @title Размер текста
|
|
7
|
+
*/
|
|
8
|
+
export declare type TitleSize = '' | 'text-h6' | 'text-h5' | 'text-h5-light' | 'text-h4' | 'text-h3' | 'text-h2' | 'text-h1' | 'text-h0' | 'text-m-title' | 'text-m-title-xs' | 'title-extra' | 'title-huge';
|
|
9
|
+
/**
|
|
10
|
+
* @title Цвет текста
|
|
11
|
+
*/
|
|
12
|
+
export declare type TextColor = '' | 'text-main' | 'text-primary-text' | 'text-primary-main' | 'text-secondary-text' | 'text-secondary-light' | 'text-error' | 'text-white' | 'text-green';
|
|
13
|
+
/**
|
|
14
|
+
* @title Выравнивание
|
|
15
|
+
* @enumNames [
|
|
16
|
+
* "По умолчанию",
|
|
17
|
+
* "По левому краю",
|
|
18
|
+
* "По центру",
|
|
19
|
+
* "По правому краю"
|
|
20
|
+
* ]
|
|
21
|
+
*/
|
|
22
|
+
export declare type TextAlign = '' | 'text-left' | 'text-center' | 'text-right';
|
|
23
|
+
/**
|
|
24
|
+
* @title Насыщенность шрифта
|
|
25
|
+
*/
|
|
26
|
+
export declare type FontWeight = '' | 'font-light' | 'font-normal' | 'font-medium';
|
|
27
|
+
interface TextProps {
|
|
28
|
+
size?: TextSize | TitleSize;
|
|
29
|
+
color?: TextColor;
|
|
30
|
+
align?: TextAlign;
|
|
31
|
+
font?: FontWeight;
|
|
32
|
+
}
|
|
33
|
+
export declare const Text: import("@redneckz/uni-jsx").UNIComponent<TextProps, any, any>;
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
+
export const Text = JSX((props) => {
|
|
4
|
+
const { size = '', color = '', align = '', font = '', children } = props;
|
|
5
|
+
const textClasses = `font-sans ${size} ${color} ${align} ${font}`;
|
|
6
|
+
return _jsx("span", { className: textClasses, children: children });
|
|
7
|
+
});
|
|
8
|
+
//# sourceMappingURL=Text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../src/ui-kit/Text/Text.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAwExC,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CAAY,CAAC,KAAK,EAAE,EAAE;IAC3C,MAAM,EAAE,IAAI,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,IAAI,GAAG,EAAE,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAEzE,MAAM,WAAW,GAAG,aAAa,IAAI,IAAI,KAAK,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;IAElE,OAAO,eAAM,SAAS,EAAE,WAAW,YAAG,QAAQ,GAAQ,CAAC;AACzD,CAAC,CAAC,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import type { JSXBlock, UniBlockProps } from '../../model/JSXBlock';
|
|
3
3
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
4
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
5
|
+
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
5
6
|
import type { AccordionContent } from './AccordionContent';
|
|
6
7
|
import { AccordionItemsList } from './AccordionItemsList';
|
|
7
8
|
|
|
@@ -9,12 +10,15 @@ export interface AccordionProps extends AccordionContent, UniBlockProps {}
|
|
|
9
10
|
|
|
10
11
|
export const Accordion: JSXBlock<AccordionProps> = JSX<AccordionProps>(
|
|
11
12
|
({ title, description, className = '', children, ...rest }) => (
|
|
12
|
-
<BlockWrapper
|
|
13
|
-
className={`py-6 px-4 font-sans bg-white text-primary-text ${className}`}
|
|
14
|
-
{...rest}
|
|
15
|
-
>
|
|
13
|
+
<BlockWrapper className={`py-6 px-4 bg-white text-primary-text ${className}`} {...rest}>
|
|
16
14
|
{title ? <Heading headingType="h3" className="mb-2 text-center" title={title} /> : null}
|
|
17
|
-
{description ?
|
|
15
|
+
{description ? (
|
|
16
|
+
<div className="mb-5">
|
|
17
|
+
<Paragraph size="text-m" font="font-light" align="text-center">
|
|
18
|
+
{description}
|
|
19
|
+
</Paragraph>
|
|
20
|
+
</div>
|
|
21
|
+
) : null}
|
|
18
22
|
<AccordionItemsList>{children}</AccordionItemsList>
|
|
19
23
|
</BlockWrapper>
|
|
20
24
|
),
|
|
@@ -6,9 +6,10 @@ import { Foldable } from '../../ui-kit/Foldable/Foldable';
|
|
|
6
6
|
import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
|
|
7
7
|
import type { IconName } from '../../ui-kit/Icon/IconProps';
|
|
8
8
|
import { Img } from '../../ui-kit/Img/Img';
|
|
9
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
10
|
+
import { getIconWithVersion } from '../../utils/getIconWithVersion';
|
|
9
11
|
import type { AccordionContent } from '../Accordion/AccordionContent';
|
|
10
12
|
import type { AccordionItemProps } from './AccordionItemProps';
|
|
11
|
-
import { getIconWithVersion } from '../../utils/getIconWithVersion';
|
|
12
13
|
|
|
13
14
|
const icons: IconName[] = ['PlusIcon', 'MinusIcon'];
|
|
14
15
|
|
|
@@ -63,7 +64,7 @@ const FoldButton = JSX<FoldButtonProps>(({ className, icon, label, primaryIcon,
|
|
|
63
64
|
className={`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text group cursor-pointer ${className}`}
|
|
64
65
|
onClick={onClick}
|
|
65
66
|
>
|
|
66
|
-
<
|
|
67
|
+
<div className="flex group-hover:text-primary-main">
|
|
67
68
|
{primaryIcon ? (
|
|
68
69
|
<Img
|
|
69
70
|
image={getIconWithVersion(primaryIcon)}
|
|
@@ -73,8 +74,10 @@ const FoldButton = JSX<FoldButtonProps>(({ className, icon, label, primaryIcon,
|
|
|
73
74
|
asSVG
|
|
74
75
|
/>
|
|
75
76
|
) : null}
|
|
76
|
-
|
|
77
|
-
|
|
77
|
+
<Text size="text-m-title-xs" font="font-medium">
|
|
78
|
+
{label}
|
|
79
|
+
</Text>
|
|
80
|
+
</div>
|
|
78
81
|
<Img
|
|
79
82
|
className="flex-shrink-0"
|
|
80
83
|
image={getIconWithVersion({ icon: icon })}
|
|
@@ -2,9 +2,9 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
3
|
import type { LinkProps } from '../../model/LinkProps';
|
|
4
4
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
5
|
-
import { Description } from '../../ui-kit/Description/Description';
|
|
6
5
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
7
6
|
import { LinkButton } from '../../ui-kit/LinkButton/LinkButton';
|
|
7
|
+
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
8
8
|
import { sliceArray } from '../../utils/sliceArray';
|
|
9
9
|
import { Carousel } from '../Carousel/Carousel';
|
|
10
10
|
import type { CarouselLinksContent } from './CarouselLinksContent';
|
|
@@ -14,7 +14,7 @@ export interface CarouselLinksProps extends CarouselLinksContent, UniBlockProps
|
|
|
14
14
|
const MAX_LINKS_COUNT = 12;
|
|
15
15
|
|
|
16
16
|
export const CarouselLinks = JSX<CarouselLinksProps>(
|
|
17
|
-
({ additionalDescription,
|
|
17
|
+
({ additionalDescription, description, links, title, className = '', ...rest }) => {
|
|
18
18
|
return (
|
|
19
19
|
<BlockWrapper
|
|
20
20
|
className={`bg-primary-main flex w-full p-10 overflow-hidden justify-between font-sans ${className}`}
|
|
@@ -23,19 +23,25 @@ export const CarouselLinks = JSX<CarouselLinksProps>(
|
|
|
23
23
|
<div className="flex flex-col max-w-96 pr-9 text-white text-xl-light">
|
|
24
24
|
{title ? <Heading title={title} as="h1" headingType="h0" className="pb-0.5" /> : null}
|
|
25
25
|
{description ? (
|
|
26
|
-
<
|
|
26
|
+
<div className="pt-5">
|
|
27
|
+
<Paragraph size="text-xl" font="font-light">
|
|
28
|
+
{description}
|
|
29
|
+
</Paragraph>
|
|
30
|
+
</div>
|
|
27
31
|
) : null}
|
|
28
32
|
{additionalDescription ? (
|
|
29
|
-
<
|
|
33
|
+
<div className="pt-6">
|
|
34
|
+
<Paragraph>{additionalDescription}</Paragraph>
|
|
35
|
+
</div>
|
|
30
36
|
) : null}
|
|
31
37
|
</div>
|
|
32
|
-
{links?.length ? renderLinks(links
|
|
38
|
+
{links?.length ? renderLinks(links) : null}
|
|
33
39
|
</BlockWrapper>
|
|
34
40
|
);
|
|
35
41
|
},
|
|
36
42
|
);
|
|
37
43
|
|
|
38
|
-
const renderLinks = (links: LinkProps[]
|
|
44
|
+
const renderLinks = (links: LinkProps[]) => {
|
|
39
45
|
const slicedLinks = sliceArray(links, MAX_LINKS_COUNT);
|
|
40
46
|
|
|
41
47
|
const slides = slicedLinks.map((slide) => (
|
|
@@ -4,7 +4,7 @@ import { VersionStyleMap } from '../../model/BlockVersion';
|
|
|
4
4
|
import { UniBlockProps } from '../../model/JSXBlock';
|
|
5
5
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
6
6
|
import { Button } from '../../ui-kit/Button/Button';
|
|
7
|
-
import {
|
|
7
|
+
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
8
8
|
import { Headline } from '../Headline/Headline';
|
|
9
9
|
import type { ContactBlockProps, ContactsBlockContent } from './ContactsBlockContent';
|
|
10
10
|
|
|
@@ -47,10 +47,9 @@ const renderBlocksColumn = ({ column, index, version }: RenderContactsColumnProp
|
|
|
47
47
|
bgColorHeadline={version}
|
|
48
48
|
/>
|
|
49
49
|
{additionalDescription ? (
|
|
50
|
-
<
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
/>
|
|
50
|
+
<div className="mt-1.5 opacity-80">
|
|
51
|
+
<Paragraph size="text-m-light">{additionalDescription}</Paragraph>
|
|
52
|
+
</div>
|
|
54
53
|
) : null}
|
|
55
54
|
{button ? <Button className="mt-6" {...button} /> : null}
|
|
56
55
|
</div>
|