@redneckz/wildless-cms-uni-blocks 0.14.28 → 0.14.29
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.28.js +28 -0
- package/bin/migration-scripts/0.14.29.js +105 -0
- package/bin/migration-scripts/0.14.4.js +4 -4
- package/bin/utils.js +20 -9
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +41 -67
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
- package/bundle/components/Headline/headlineVersionStyles.d.ts +1 -2
- package/bundle/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
- package/bundle/model/HeadlineType.d.ts +0 -8
- package/dist/components/Blocks.js +0 -4
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +0 -2
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/Carousel/Carousel.js +1 -1
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -2
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
- package/dist/components/Footer/SocialMedia.js +2 -2
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/Headline/headlineVersionStyles.d.ts +1 -2
- package/dist/components/Headline/headlineVersionStyles.js +1 -12
- package/dist/components/Headline/headlineVersionStyles.js.map +1 -1
- package/dist/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
- package/dist/model/HeadlineType.d.ts +0 -8
- package/dist/ui-kit/BaseTile/BaseTile.js +2 -2
- package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/dist/ui-kit/Button/renderButtonsSection.js +1 -1
- package/dist/ui-kit/List/List.js +1 -1
- package/dist/ui-kit/List/List.js.map +1 -1
- package/dist/ui-kit/List/ListItem.js +1 -1
- package/dist/ui-kit/List/ListItem.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Blocks.js +0 -4
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +0 -2
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/Carousel/Carousel.fixture.d.ts +0 -2
- package/lib/components/Carousel/Carousel.fixture.mobile.d.ts +0 -2
- package/lib/components/Carousel/Carousel.js +1 -1
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.d.ts +2 -0
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -2
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
- package/lib/components/Footer/SocialMedia.js +2 -2
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/Headline/headlineVersionStyles.d.ts +1 -2
- package/lib/components/Headline/headlineVersionStyles.js +0 -11
- package/lib/components/Headline/headlineVersionStyles.js.map +1 -1
- package/lib/components/RichTextBlock/RichTextBlock.fixture.d.ts +1 -0
- package/lib/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
- package/lib/model/HeadlineType.d.ts +0 -8
- package/lib/ui-kit/BaseTile/BaseTile.js +2 -2
- package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/lib/ui-kit/Button/renderButtonsSection.js +1 -1
- package/lib/ui-kit/List/List.js +1 -1
- package/lib/ui-kit/List/List.js.map +1 -1
- package/lib/ui-kit/List/ListItem.js +1 -1
- package/lib/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +41 -64
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
- package/mobile/bundle/components/Headline/headlineVersionStyles.d.ts +1 -2
- package/mobile/bundle/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
- package/mobile/bundle/model/HeadlineType.d.ts +0 -8
- package/mobile/dist/components/Blocks.js +0 -2
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +1 -1
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -2
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
- package/mobile/dist/components/Footer/SocialMedia.js +2 -2
- package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/dist/components/Headline/headlineVersionStyles.d.ts +1 -2
- package/mobile/dist/components/Headline/headlineVersionStyles.js +1 -12
- package/mobile/dist/components/Headline/headlineVersionStyles.js.map +1 -1
- package/mobile/dist/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
- package/mobile/dist/model/HeadlineType.d.ts +0 -8
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js +2 -2
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js +1 -1
- package/mobile/dist/ui-kit/List/List.js +1 -1
- package/mobile/dist/ui-kit/List/List.js.map +1 -1
- package/mobile/dist/ui-kit/List/ListItem.js +1 -1
- package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/Blocks.js +0 -2
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +1 -1
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -2
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
- package/mobile/lib/components/Footer/SocialMedia.js +2 -2
- package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/lib/components/Headline/headlineVersionStyles.d.ts +1 -2
- package/mobile/lib/components/Headline/headlineVersionStyles.js +0 -11
- package/mobile/lib/components/Headline/headlineVersionStyles.js.map +1 -1
- package/mobile/lib/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
- package/mobile/lib/model/HeadlineType.d.ts +0 -8
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js +2 -2
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js +1 -1
- package/mobile/lib/ui-kit/List/List.js +1 -1
- package/mobile/lib/ui-kit/List/List.js.map +1 -1
- package/mobile/lib/ui-kit/List/ListItem.js +1 -1
- package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/src/components/Blocks.ts +0 -2
- package/mobile/src/components/Carousel/Carousel.tsx +1 -1
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +20 -2
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +8 -1
- package/mobile/src/components/Footer/SocialMedia.tsx +2 -2
- package/mobile/src/components/Headline/headlineVersionStyles.ts +1 -13
- package/mobile/src/components/RichTextBlock/RichTextBlockContent.ts +2 -1
- package/mobile/src/model/HeadlineType.ts +0 -10
- package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +3 -3
- package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +1 -1
- package/mobile/src/ui-kit/List/List.tsx +1 -1
- package/mobile/src/ui-kit/List/ListItem.tsx +15 -17
- package/package.json +1 -1
- package/src/components/Blocks.mobile.ts +0 -2
- package/src/components/Blocks.ts +0 -4
- package/src/components/Carousel/Carousel.fixture.mobile.tsx +0 -34
- package/src/components/Carousel/Carousel.fixture.tsx +2 -52
- package/src/components/Carousel/Carousel.tsx +1 -1
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +44 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +20 -2
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +8 -1
- package/src/components/Footer/SocialMedia.tsx +2 -2
- package/src/components/Headline/headlineVersionStyles.ts +1 -13
- package/src/components/RichTextBlock/RichTextBlock.fixture.tsx +15 -0
- package/src/components/RichTextBlock/RichTextBlockContent.ts +2 -1
- package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +4 -12
- package/src/model/HeadlineType.ts +0 -10
- package/src/ui-kit/BaseTile/BaseTile.tsx +3 -3
- package/src/ui-kit/Button/renderButtonsSection.tsx +1 -1
- package/src/ui-kit/List/List.tsx +1 -1
- package/src/ui-kit/List/ListItem.tsx +15 -17
- package/bin/migration-scripts/0.14.12.js +0 -34
- package/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
- package/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
- package/bundle/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
- package/bundle/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
- package/dist/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
- package/dist/components/CarouselProductCard/CarouselProductCard.js +0 -26
- package/dist/components/CarouselProductCard/CarouselProductCard.js.map +0 -1
- package/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
- package/dist/components/CarouselProductCard/CarouselProductCardContent.js +0 -2
- package/dist/components/CarouselProductCard/CarouselProductCardContent.js.map +0 -1
- package/dist/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
- package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +0 -8
- package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +0 -1
- package/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
- package/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.js +0 -2
- package/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.js.map +0 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
- package/lib/components/CarouselProductCard/CarouselProductCard.fixture.d.ts +0 -13
- package/lib/components/CarouselProductCard/CarouselProductCard.fixture.mobile.d.ts +0 -13
- package/lib/components/CarouselProductCard/CarouselProductCard.js +0 -24
- package/lib/components/CarouselProductCard/CarouselProductCard.js.map +0 -1
- package/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
- package/lib/components/CarouselProductCard/CarouselProductCardContent.js +0 -2
- package/lib/components/CarouselProductCard/CarouselProductCardContent.js.map +0 -1
- package/lib/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
- package/lib/components/CarouselRichTextCard/CarouselRichTextCard.fixture.d.ts +0 -8
- package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +0 -6
- package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +0 -1
- package/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
- package/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.js +0 -2
- package/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.js.map +0 -1
- package/mobile/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
- package/mobile/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
- package/mobile/bundle/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
- package/mobile/bundle/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +0 -26
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +0 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
- package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.js +0 -2
- package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.js.map +0 -1
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +0 -8
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +0 -1
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.js +0 -2
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.js.map +0 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +0 -24
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +0 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
- package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.js +0 -2
- package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.js.map +0 -1
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +0 -6
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +0 -1
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.js +0 -2
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.js.map +0 -1
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +0 -20
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +0 -115
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.ui.json +0 -21
- package/mobile/src/components/CarouselProductCard/CarouselProductCardContent.ts +0 -39
- package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.example.json +0 -6
- package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +0 -15
- package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.ui.json +0 -7
- package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCardContent.ts +0 -7
- package/src/components/CarouselProductCard/CarouselProductCard.example.json +0 -20
- package/src/components/CarouselProductCard/CarouselProductCard.fixture.mobile.tsx +0 -92
- package/src/components/CarouselProductCard/CarouselProductCard.fixture.tsx +0 -96
- package/src/components/CarouselProductCard/CarouselProductCard.tsx +0 -115
- package/src/components/CarouselProductCard/CarouselProductCard.ui.json +0 -21
- package/src/components/CarouselProductCard/CarouselProductCardContent.ts +0 -39
- package/src/components/CarouselRichTextCard/CarouselRichTextCard.example.json +0 -6
- package/src/components/CarouselRichTextCard/CarouselRichTextCard.fixture.tsx +0 -26
- package/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +0 -15
- package/src/components/CarouselRichTextCard/CarouselRichTextCard.ui.json +0 -7
- package/src/components/CarouselRichTextCard/CarouselRichTextCardContent.ts +0 -7
|
@@ -1538,8 +1538,8 @@
|
|
|
1538
1538
|
const defaultIconSize = 56;
|
|
1539
1539
|
|
|
1540
1540
|
const BenefitsBlock = JSX(({ className = '', title, benefitList, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [title ? jsx(Heading, { headingType: "h3", as: "h2", className: AlignStyles, title: title }) : null, benefitList?.length ? (jsx("div", { className: "flex flex-col @md:flex-row flex-wrap w-full @md:justify-center mt-xl gap-5xl", role: "list", children: benefitList.map(renderBenefit) })) : null] })));
|
|
1541
|
-
const renderBenefit = (benefit, i) => (jsxs("div", { className: "flex gap-m items-center @md:basis-1/2 @md:max-w-[500px]", role: "listitem", children: [benefit?.icon?.icon ? (jsx(RoundedIcon, { className: "shrink-0", defaultIconSize: defaultIconSize, iconBgVersion: benefit?.iconBgVersion || '', ...benefit?.icon })) : null, benefit?.icon?.src ? jsx(Img, { className: "shrink-0", image: benefit.icon }) : null, benefit?.label ? (jsxs("div", { className: "@sm:h-full", children: [jsx(Heading, { headingType: "h6", children: benefit.label }), renderDescription$
|
|
1542
|
-
const renderDescription$
|
|
1541
|
+
const renderBenefit = (benefit, i) => (jsxs("div", { className: "flex gap-m items-center @md:basis-1/2 @md:max-w-[500px]", role: "listitem", children: [benefit?.icon?.icon ? (jsx(RoundedIcon, { className: "shrink-0", defaultIconSize: defaultIconSize, iconBgVersion: benefit?.iconBgVersion || '', ...benefit?.icon })) : null, benefit?.icon?.src ? jsx(Img, { className: "shrink-0", image: benefit.icon }) : null, benefit?.label ? (jsxs("div", { className: "@sm:h-full", children: [jsx(Heading, { headingType: "h6", children: benefit.label }), renderDescription$1(benefit.description)] })) : null] }, String(i)));
|
|
1542
|
+
const renderDescription$1 = (description) => {
|
|
1543
1543
|
const benefitType = description?.benefitType || null;
|
|
1544
1544
|
return description && benefitType ? (jsx("div", { className: "mt-xs text-l font-light text-secondary-text group-data-secondary:text-white/80", children: benefitType === 'list'
|
|
1545
1545
|
? renderListBenefit(description)
|
|
@@ -1560,7 +1560,7 @@
|
|
|
1560
1560
|
const { text, icon, iconRight, version, ...rest } = button || {};
|
|
1561
1561
|
const iconVersion = getIconVersion(icon, version);
|
|
1562
1562
|
const iconRightVersion = getIconVersion(iconRight, version);
|
|
1563
|
-
return text || icon?.icon ? (jsx(Button, { className: style('basis-full
|
|
1563
|
+
return text || icon?.icon ? (jsx(Button, { className: style('basis-full lg:basis-auto', buttonClassName), appendLeft: renderButtonIcon({ ...icon, iconVersion }), appendRight: renderButtonIcon({ ...iconRight, iconVersion: iconRightVersion }), version: version, text: text, ...rest }, index ? String(index) : '')) : null;
|
|
1564
1564
|
};
|
|
1565
1565
|
const DEFAULT_ICON_W = 24;
|
|
1566
1566
|
const getIconVersion = (icon, version = 'secondary') => {
|
|
@@ -1607,17 +1607,6 @@
|
|
|
1607
1607
|
descriptionStyle: 'mt-xs',
|
|
1608
1608
|
},
|
|
1609
1609
|
};
|
|
1610
|
-
// TODO: Move to Gallery and rename
|
|
1611
|
-
const HEADLINE_SMALL_VERSION = {
|
|
1612
|
-
H6: 'text-h6',
|
|
1613
|
-
XL_L: 'text-xl-light',
|
|
1614
|
-
XL_R: 'text-xl',
|
|
1615
|
-
L_L: 'text-l-light',
|
|
1616
|
-
L_R: 'text-l',
|
|
1617
|
-
M: 'text-m-light',
|
|
1618
|
-
S: 'text-s-light',
|
|
1619
|
-
XS: 'text-xs-light',
|
|
1620
|
-
};
|
|
1621
1610
|
|
|
1622
1611
|
const Headline = JSX(({ className, version = '', headlineVersion = 'XL', title, description, align = 'text-center', as, isEmbedded = false, isTheme = false, ...rest }) => {
|
|
1623
1612
|
const versionStyle = headlineVersionStyles[headlineVersion];
|
|
@@ -2783,8 +2772,8 @@
|
|
|
2783
2772
|
'CarouselProgramsCard',
|
|
2784
2773
|
'CarouselRecommendationCard',
|
|
2785
2774
|
'CarouselTariffsCard',
|
|
2786
|
-
'CarouselRichTextCard',
|
|
2787
2775
|
'CarouselInvestmentCard',
|
|
2776
|
+
'RichTextBlock',
|
|
2788
2777
|
'ProductBlock',
|
|
2789
2778
|
];
|
|
2790
2779
|
Carousel.childSchema = () => ({
|
|
@@ -2810,7 +2799,7 @@
|
|
|
2810
2799
|
center: '@xl:self-center',
|
|
2811
2800
|
end: '@xl:self-end',
|
|
2812
2801
|
};
|
|
2813
|
-
const BaseTile = JSX(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, isImageAlwaysOnRight = false, isImageSecondary = false, children, }) => (jsxs("div", { className: style('relative flex flex-col gap-3xl overflow-hidden', padding || defaultPadding, className), children: [title ? jsx("div", { className: "relative", children: title }) : null, jsxs("div", { className: style('grow relative flex flex-col @
|
|
2802
|
+
const BaseTile = JSX(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, isImageAlwaysOnRight = false, isImageSecondary = false, children, }) => (jsxs("div", { className: style('relative flex flex-col gap-3xl overflow-hidden', padding || defaultPadding, className), children: [title ? jsx("div", { className: "relative", children: title }) : null, jsxs("div", { className: style('grow relative flex flex-col @xl:flex-row gap-3xl', leftImage ? 'self-start' : ''), children: [renderImageContainer(leftImage, { imageAlign, className: 'mx-auto' }), jsxs("div", { className: style('grid gap-3xl', rightImage ? '@xl:grid-cols-2' : '', leftImage ? '' : 'grow'), children: [jsxs("div", { className: "grow space-y-lg min-w-fit", children: [insetTitle, children] }), renderImageContainer(rightImage, {
|
|
2814
2803
|
className: style('@xl:justify-self-end @xl:col-start-2', buttons ? rowSpanStyle(isImageAlwaysOnRight) : '', positionStyle(isImageAlwaysOnRight), imageSecondaryStyle(isImageSecondary)),
|
|
2815
2804
|
imageAlign,
|
|
2816
2805
|
}), renderButtons(buttons)] })] })] })));
|
|
@@ -2818,7 +2807,7 @@
|
|
|
2818
2807
|
const positionStyle = (isImageAlwaysOnRight) => isImageAlwaysOnRight ? 'justify-self-end col-start-2 self-center' : '';
|
|
2819
2808
|
const renderButtons = (buttons) => buttons ? jsx("div", { className: "self-end", children: buttons }) : null;
|
|
2820
2809
|
const renderImageContainer = (image, { className, imageAlign }) => image ? (jsx("div", { className: style('shrink-1/2 justify-self-center', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
|
|
2821
|
-
const imageSecondaryStyle = (isImageSecondary) => isImageSecondary ? 'hidden @
|
|
2810
|
+
const imageSecondaryStyle = (isImageSecondary) => isImageSecondary ? 'hidden @xl:block' : '';
|
|
2822
2811
|
|
|
2823
2812
|
const cardStyleMap = {
|
|
2824
2813
|
black: 'bg-black',
|
|
@@ -2846,47 +2835,6 @@
|
|
|
2846
2835
|
.map((link, index) => (jsx(CarouselLinkButton, { ...link }, String(index)))) }, String(groupIndex)))) }));
|
|
2847
2836
|
};
|
|
2848
2837
|
|
|
2849
|
-
const LinkWrapper = JSX(({ className = '', href, target, isRemote = false, children }) => {
|
|
2850
|
-
const link = useLink({ isRemote });
|
|
2851
|
-
const linkProps = link({ href, target });
|
|
2852
|
-
const Tag = href ? 'a' : 'div';
|
|
2853
|
-
return (jsx(Tag, { className: style('block', className), ...(href ? linkProps : {}), children: children }));
|
|
2854
|
-
});
|
|
2855
|
-
|
|
2856
|
-
const DOT_SIZE_MAP = {
|
|
2857
|
-
L: 'w-1.5 h-1.5 mr-m',
|
|
2858
|
-
M: 'w-1.5 h-1.5 mr-s',
|
|
2859
|
-
S: 'w-1 h-1 mr-xs',
|
|
2860
|
-
XS: 'w-1 h-1 mr-xs',
|
|
2861
|
-
};
|
|
2862
|
-
const ListItem = JSX(({ className, isDotted = true, children, size = 'M' }) => (jsxs("div", { className: style('font-sans flex', className), role: "listitem", children: [isDotted ? (jsx("div", { className: "shrink-0", children: jsx("div", { className: style('align-middle inline-block rounded-full bg-primary-text group-data-secondary:bg-white', DOT_SIZE_MAP[size]) }) })) : null, jsx("span", { children: children })] })));
|
|
2863
|
-
|
|
2864
|
-
const TEXT_SIZE_MAP = {
|
|
2865
|
-
XS: 'text-m font-light',
|
|
2866
|
-
S: 'text-l font-light',
|
|
2867
|
-
M: 'text-h6',
|
|
2868
|
-
L: 'text-h5',
|
|
2869
|
-
};
|
|
2870
|
-
const ITEM_INDENT_MAP = {
|
|
2871
|
-
XS: 'ml-2xs',
|
|
2872
|
-
S: 'ml-xs',
|
|
2873
|
-
M: 'ml-s',
|
|
2874
|
-
L: 'ml-m',
|
|
2875
|
-
};
|
|
2876
|
-
const List = JSX(({ className, hasIndent, isDotted, items, listItemSize = 'M' }) => items?.length ? (jsx("section", { className: style('flex flex-col gap-xs text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text', TEXT_SIZE_MAP[listItemSize], hasIndent ? ITEM_INDENT_MAP[listItemSize] : '', className), role: "list", children: items.map((item, i) => (jsx(ListItem, { isDotted: isDotted, size: listItemSize, children: item }, String(i)))) })) : null);
|
|
2877
|
-
|
|
2878
|
-
const CarouselProductCard = JSX(({ additionalDescription, align = AlignStyles, button = {}, className = '', description, headlineSmallVersion = 'H6', href, icon, isDotted = true, isButtonFullWidth = true, isImageFullWidth = false, isTopPosition = false, items = [], target, title, version = 'primary', ...rest }) => {
|
|
2879
|
-
return (jsxs(BlockWrapper, { className: style('flex flex-col justify-between', className), defaultPadding: "p-0", version: version, ...rest, children: [jsxs(LinkWrapper, { className: "p-m flex flex-col gap-xs", href: href, target: target, children: [renderCardTitle(headlineSmallVersion, title, align), renderDescription$1(description, align), renderItems(items, isDotted, version), renderAdditionalDescription(additionalDescription, align), renderImage$2(icon, isImageFullWidth, isTopPosition)] }), renderButtonsSection([button], {
|
|
2880
|
-
className: style('p-m pt-0', isButtonFullWidth ? '' : 'self-center'),
|
|
2881
|
-
isVertical: isButtonFullWidth,
|
|
2882
|
-
})] }));
|
|
2883
|
-
});
|
|
2884
|
-
const renderImage$2 = (image, isImageFullWidth, isTopPosition) => (jsxs("div", { className: style('flex gap-y-lg justify-center', isImageFullWidth ? 'min-w-full h-full' : '', isTopPosition ? 'order-first' : 'order-last'), children: [image?.src ? jsx(Img, { image: image }) : null, image?.icon ? (jsx(Img, { className: style(!isImageFullWidth ? 'w-8 h-8 min-w-8' : 'w-full h-full'), image: image })) : null] }));
|
|
2885
|
-
const renderCardTitle = (headlineSmallVersion, title, align) => title ? (jsx(Text, { align: align, size: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title })) : null;
|
|
2886
|
-
const renderDescription$1 = (description, align) => description ? (jsx(Paragraph, { align: align, size: "text-l", children: description })) : null;
|
|
2887
|
-
const renderAdditionalDescription = (additionalDescription, align) => additionalDescription ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text group-data-secondary:text-white/80", align: align, children: additionalDescription })) : null;
|
|
2888
|
-
const renderItems = (items, isDotted, version = 'primary') => items?.length ? (jsx(List, { className: style('text-s', version === 'primary' ? '!text-secondary-text' : ''), items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted, listItemSize: "S" })) : null;
|
|
2889
|
-
|
|
2890
2838
|
const sum = (list = []) => list.reduce((a, b) => a + b, 0);
|
|
2891
2839
|
|
|
2892
2840
|
const avg = (items = []) => (items?.length ? sum(items) / items.length : 0);
|
|
@@ -2928,6 +2876,28 @@
|
|
|
2928
2876
|
|
|
2929
2877
|
const BenefitsList = JSX(({ isTabularBenefits, ...rest }) => isTabularBenefits ? jsx(TabularBenefitsList, { ...rest }) : jsx(DefaultBenefitsList, { ...rest }));
|
|
2930
2878
|
|
|
2879
|
+
const DOT_SIZE_MAP = {
|
|
2880
|
+
L: 'w-1.5 h-1.5 mr-m',
|
|
2881
|
+
M: 'w-1.5 h-1.5 mr-s',
|
|
2882
|
+
S: 'w-1 h-1 mr-xs',
|
|
2883
|
+
XS: 'w-1 h-1 mr-xs',
|
|
2884
|
+
};
|
|
2885
|
+
const ListItem = JSX(({ className, isDotted, children, size = 'M' }) => (jsxs("div", { className: style('font-sans flex', className), role: "listitem", children: [isDotted ? (jsx("div", { className: "shrink-0", children: jsx("div", { className: style('align-middle inline-block rounded-full bg-primary-text group-data-secondary:bg-white', DOT_SIZE_MAP[size]) }) })) : null, jsx("span", { children: children })] })));
|
|
2886
|
+
|
|
2887
|
+
const TEXT_SIZE_MAP = {
|
|
2888
|
+
XS: 'text-m font-light',
|
|
2889
|
+
S: 'text-l font-light',
|
|
2890
|
+
M: 'text-h6',
|
|
2891
|
+
L: 'text-h5',
|
|
2892
|
+
};
|
|
2893
|
+
const ITEM_INDENT_MAP = {
|
|
2894
|
+
XS: 'ml-2xs',
|
|
2895
|
+
S: 'ml-xs',
|
|
2896
|
+
M: 'ml-s',
|
|
2897
|
+
L: 'ml-m',
|
|
2898
|
+
};
|
|
2899
|
+
const List = JSX(({ className, hasIndent, isDotted = true, items = [], listItemSize = 'M' }) => items?.length ? (jsx("section", { className: style('flex flex-col gap-xs text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text', TEXT_SIZE_MAP[listItemSize], hasIndent ? ITEM_INDENT_MAP[listItemSize] : '', className), role: "list", children: items.map((item, i) => (jsx(ListItem, { isDotted: isDotted, size: listItemSize, children: item }, String(i)))) })) : null);
|
|
2900
|
+
|
|
2931
2901
|
const Tags = JSX(({ className, tags }) => tags?.length ? (jsx("div", { className: style('flex flex-wrap gap-xs', className), role: "list", children: tags.map(renderTag) })) : null);
|
|
2932
2902
|
const renderTag = (tag, key) => (jsx("div", { className: "p-xs border-solid border rounded-md border-gray", role: "listitem", children: jsx(Text, { size: "text-m", font: "font-light", children: tag }) }, String(key)));
|
|
2933
2903
|
|
|
@@ -2941,6 +2911,13 @@
|
|
|
2941
2911
|
const renderTags = (tags) => (tags?.length ? jsx(Tags, { tags: tags }) : null);
|
|
2942
2912
|
const renderHeadline = ({ title, description, headlineVersion, align }) => title || description ? (jsx(Headline, { title: title, description: description, headlineVersion: headlineVersion, align: align, isEmbedded: true })) : null;
|
|
2943
2913
|
|
|
2914
|
+
const LinkWrapper = JSX(({ className = '', href, target, isRemote = false, children }) => {
|
|
2915
|
+
const link = useLink({ isRemote });
|
|
2916
|
+
const linkProps = link({ href, target });
|
|
2917
|
+
const Tag = href ? 'a' : 'div';
|
|
2918
|
+
return (jsx(Tag, { className: style('block', className), ...(href ? linkProps : {}), children: children }));
|
|
2919
|
+
});
|
|
2920
|
+
|
|
2944
2921
|
const ICONS_MAP = [
|
|
2945
2922
|
{
|
|
2946
2923
|
origins: ['t.me', 'telegram.org'],
|
|
@@ -2992,12 +2969,12 @@
|
|
|
2992
2969
|
..._,
|
|
2993
2970
|
...buttonText,
|
|
2994
2971
|
icon: { ...iconCustom, iconVersion: 'color' },
|
|
2995
|
-
version,
|
|
2972
|
+
version: _?.version ?? version,
|
|
2996
2973
|
};
|
|
2997
2974
|
});
|
|
2998
2975
|
const buttonClassName = style('border border-solid hover:border-transparent group-data-primary:border-main-divider border-main-divider group-data-gray:border-green group/media', showButtonText && hasText ? '' : 'basis-auto', stretched ? 'flex-1 justify-center' : '');
|
|
2999
2976
|
return (jsxs("div", { className: style('flex flex-col gap-xs', className), children: [jsx("div", { className: "flex gap-xs", children: renderButtonsSection(buttons, {
|
|
3000
|
-
className: stretched ? '
|
|
2977
|
+
className: style(stretched || hasText ? 'basis-full' : ''),
|
|
3001
2978
|
buttonClassName,
|
|
3002
2979
|
}) }), children ? (jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: children })) : null] }));
|
|
3003
2980
|
});
|
|
@@ -3005,9 +2982,10 @@
|
|
|
3005
2982
|
const ImageAlwaysOnRight = false;
|
|
3006
2983
|
|
|
3007
2984
|
//TODO: replace SocialMedia with renderButtonSection
|
|
3008
|
-
const CarouselRecommendationCard = JSX(({ className, padding, description, href, icon, items = [], listItemSize = 'S', socialMedia = [], target, title, align = 'text-left', benefits, imageOptions: { directionRight = true, isImageAlwaysOnRight = ImageAlwaysOnRight, isImageSecondary = false, } = {}, ...rest }) => {
|
|
3009
|
-
return (jsx(BlockWrapper, { className: style('relative min-h-28 group-data-gray:bg-main-divider/50', className), defaultPadding: "p-0", ...rest, children: jsx(LinkWrapper, { href: href, target: target, className: "h-full", children: jsxs(BaseTile, { className: "h-full", defaultPadding: "p-2xl", padding: padding, insetTitle: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "
|
|
2985
|
+
const CarouselRecommendationCard = JSX(({ className, padding, description, additionalDescription, href, icon, items = [], isDotted, listItemSize = 'S', socialMedia = [], target, title, align = 'text-left', benefits, imageOptions: { directionRight = true, isImageAlwaysOnRight = ImageAlwaysOnRight, isImageSecondary = false, } = {}, ...rest }) => {
|
|
2986
|
+
return (jsx(BlockWrapper, { className: style('relative min-h-28 group-data-gray:bg-main-divider/50', className), defaultPadding: "p-0", ...rest, children: jsx(LinkWrapper, { href: href, target: target, className: "h-full", children: jsxs(BaseTile, { className: "h-full", defaultPadding: "p-2xl", padding: padding, insetTitle: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: align })) : null, ...leftOrRightImage(isIcon(icon) ? jsx(Img, { image: icon }) : null, directionRight), buttons: socialMedia.length ? (jsx(SocialMedia, { media: socialMedia, showButtonText: true, version: rest?.version })) : null, isImageAlwaysOnRight: isImageAlwaysOnRight, isImageSecondary: isImageSecondary, imageAlign: "center", children: [jsx(BenefitsList, { benefits: benefits }), jsx(List, { items: items, listItemSize: listItemSize, isDotted: isDotted }), renderAdditionalDescription(additionalDescription, align)] }) }) }));
|
|
3010
2987
|
});
|
|
2988
|
+
const renderAdditionalDescription = (additionalDescription, align) => additionalDescription ? (jsx(Paragraph, { size: "text-m", font: "font-light", color: "text-secondary-text group-data-secondary:text-white/80", align: align, children: additionalDescription })) : null;
|
|
3011
2989
|
|
|
3012
2990
|
const renderCardInfo = (cell, i) => {
|
|
3013
2991
|
const { title, description, buttons } = cell;
|
|
@@ -4935,7 +4913,6 @@
|
|
|
4935
4913
|
CarouselCard,
|
|
4936
4914
|
CarouselCatalogCard,
|
|
4937
4915
|
CarouselLinks,
|
|
4938
|
-
CarouselProductCard,
|
|
4939
4916
|
CarouselRecommendationCard,
|
|
4940
4917
|
CarouselTariffsCard,
|
|
4941
4918
|
ComparisonTable,
|
|
@@ -5162,7 +5139,7 @@
|
|
|
5162
5139
|
|
|
5163
5140
|
const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
|
|
5164
5141
|
|
|
5165
|
-
const packageVersion = "0.14.
|
|
5142
|
+
const packageVersion = "0.14.29";
|
|
5166
5143
|
|
|
5167
5144
|
exports.Blocks = Blocks;
|
|
5168
5145
|
exports.ContentPage = ContentPage;
|