@redneckz/wildless-cms-uni-blocks 0.3.44 → 0.3.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +59 -82
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Accordion/AccordionItem.js +2 -2
- package/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/components/Bonus/Bonus.js +1 -1
- package/dist/components/Bonus/Bonus.js.map +1 -1
- package/dist/components/Gallery/GalleryContent.d.ts +11 -1
- package/dist/components/Gallery/GalleryInner.js +1 -1
- package/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/dist/components/GracePeriod/GracePeriodContent.d.ts +1 -0
- package/dist/components/LinkDocs/LinkDocsListItem.js +1 -1
- package/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.js +2 -2
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +3 -3
- package/dist/components/ProductBlock/renderBackwardButton.d.ts +2 -1
- package/dist/components/ProductBlock/renderBackwardButton.js +2 -10
- package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/dist/components/ProductBlock/renderBenefit.js +1 -1
- package/dist/components/ProductBlock/renderBenefit.js.map +1 -1
- package/dist/components/Recommendation/Recommendation.js +1 -1
- package/dist/components/Recommendation/Recommendation.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.js +2 -2
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/Tile/Tile.js +2 -2
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/icons/IconName.d.ts +2 -2
- package/dist/icons/IconName.js +1 -1
- package/dist/icons/IconName.js.map +1 -1
- package/dist/ui-kit/Button/ArrowButton.js +2 -14
- package/dist/ui-kit/Button/ArrowButton.js.map +1 -1
- package/dist/ui-kit/Button/Button.js +4 -7
- package/dist/ui-kit/Button/Button.js.map +1 -1
- package/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/dist/ui-kit/Heading/Heading.js +4 -4
- package/dist/ui-kit/Heading/Heading.js.map +1 -1
- package/dist/ui-kit/List/ListItem.js +2 -2
- package/dist/ui-kit/List/ListItem.js.map +1 -1
- package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +1 -1
- package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Accordion/AccordionItem.js +2 -2
- package/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/lib/components/Bonus/Bonus.js +1 -1
- package/lib/components/Bonus/Bonus.js.map +1 -1
- package/lib/components/Gallery/GalleryContent.d.ts +11 -1
- package/lib/components/Gallery/GalleryInner.js +1 -1
- package/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/lib/components/GracePeriod/GracePeriodContent.d.ts +1 -0
- package/lib/components/LinkDocs/LinkDocsListItem.js +1 -1
- package/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.js +2 -2
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +3 -3
- package/lib/components/ProductBlock/renderBackwardButton.d.ts +2 -1
- package/lib/components/ProductBlock/renderBackwardButton.js +2 -10
- package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/lib/components/ProductBlock/renderBenefit.js +1 -1
- package/lib/components/ProductBlock/renderBenefit.js.map +1 -1
- package/lib/components/Recommendation/Recommendation.js +1 -1
- package/lib/components/Recommendation/Recommendation.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.js +2 -2
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/Tile/Tile.js +2 -2
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/icons/IconName.d.ts +2 -2
- package/lib/icons/IconName.js +1 -1
- package/lib/icons/IconName.js.map +1 -1
- package/lib/ui-kit/Button/ArrowButton.js +2 -14
- package/lib/ui-kit/Button/ArrowButton.js.map +1 -1
- package/lib/ui-kit/Button/Button.js +4 -7
- package/lib/ui-kit/Button/Button.js.map +1 -1
- package/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/ui-kit/Heading/Heading.js +4 -4
- package/lib/ui-kit/Heading/Heading.js.map +1 -1
- package/lib/ui-kit/List/List.fixture.d.ts +4 -0
- package/lib/ui-kit/List/ListItem.js +2 -2
- package/lib/ui-kit/List/ListItem.js.map +1 -1
- package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +1 -1
- package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +4 -4
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Bonus/Bonus.js +1 -1
- package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryContent.d.ts +11 -1
- package/mobile/dist/components/Gallery/GalleryInner.js +1 -1
- package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriodContent.d.ts +1 -0
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +3 -3
- package/mobile/dist/components/ProductBlock/renderBackwardButton.d.ts +2 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js +2 -10
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/dist/components/Recommendation/Recommendation.js +1 -1
- package/mobile/dist/components/Recommendation/Recommendation.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/icons/IconName.d.ts +2 -2
- package/mobile/dist/icons/IconName.js +1 -1
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ArrowButton.js +2 -14
- package/mobile/dist/ui-kit/Button/ArrowButton.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/dist/ui-kit/List/ListItem.js +2 -2
- package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +1 -1
- package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
- package/mobile/lib/components/Bonus/Bonus.js +1 -1
- package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryContent.d.ts +11 -1
- package/mobile/lib/components/Gallery/GalleryInner.js +1 -1
- package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriodContent.d.ts +1 -0
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +3 -3
- package/mobile/lib/components/ProductBlock/renderBackwardButton.d.ts +2 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js +2 -10
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/lib/components/Recommendation/Recommendation.js +1 -1
- package/mobile/lib/components/Recommendation/Recommendation.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/icons/IconName.d.ts +2 -2
- package/mobile/lib/icons/IconName.js +1 -1
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ArrowButton.js +2 -14
- package/mobile/lib/ui-kit/Button/ArrowButton.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/ui-kit/List/ListItem.js +2 -2
- package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +1 -1
- package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
- package/mobile/src/components/Bonus/Bonus.tsx +1 -1
- package/mobile/src/components/Gallery/GalleryContent.ts +11 -1
- package/mobile/src/components/Gallery/GalleryInner.tsx +2 -2
- package/mobile/src/components/GracePeriod/GracePeriodContent.ts +1 -0
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +3 -3
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +12 -21
- package/mobile/src/components/Recommendation/Recommendation.tsx +2 -2
- package/mobile/src/components/Tile/Tile.tsx +2 -2
- package/mobile/src/icons/ArrowLeftIcon.svg +1 -1
- package/mobile/src/icons/IconName.ts +2 -2
- package/mobile/src/ui-kit/Button/ArrowButton.tsx +8 -15
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/mobile/src/ui-kit/List/ListItem.tsx +2 -2
- package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +2 -1
- package/package.json +1 -1
- package/src/components/Accordion/AccordionItem.tsx +4 -2
- package/src/components/Bonus/Bonus.tsx +1 -1
- package/src/components/Gallery/GalleryContent.ts +11 -1
- package/src/components/Gallery/GalleryInner.tsx +2 -2
- package/src/components/GracePeriod/GracePeriodContent.ts +1 -0
- package/src/components/LinkDocs/LinkDocsListItem.tsx +1 -1
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +8 -7
- package/src/components/ProductBlock/ProductBlock.tsx +3 -3
- package/src/components/ProductBlock/ProductBlockContent.ts +3 -3
- package/src/components/ProductBlock/renderBackwardButton.tsx +12 -21
- package/src/components/ProductBlock/renderBenefit.tsx +4 -6
- package/src/components/Recommendation/Recommendation.tsx +2 -2
- package/src/components/StepsBlock/StepsBlock.tsx +3 -3
- package/src/components/Tile/Tile.fixture.tsx +1 -1
- package/src/components/Tile/Tile.tsx +2 -2
- package/src/icons/ArrowLeftIcon.svg +1 -1
- package/src/icons/IconName.ts +2 -2
- package/src/ui-kit/Button/ArrowButton.tsx +8 -15
- package/src/ui-kit/Button/Button.tsx +10 -9
- package/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/src/ui-kit/Heading/Heading.tsx +4 -4
- package/src/ui-kit/List/List.fixture.tsx +20 -0
- package/src/ui-kit/List/ListItem.tsx +2 -2
- package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +2 -1
package/bundle/bundle.umd.js
CHANGED
|
@@ -188,10 +188,10 @@
|
|
|
188
188
|
|
|
189
189
|
const HEADING_STYLE_MAP = {
|
|
190
190
|
h1: 'text-title-xl tracking-[-0.3px]',
|
|
191
|
-
h2: 'text-title',
|
|
192
|
-
h3: 'text-title
|
|
193
|
-
h4: 'text-title-
|
|
194
|
-
h5: 'text-title-
|
|
191
|
+
h2: 'text-title-lg',
|
|
192
|
+
h3: 'text-title',
|
|
193
|
+
h4: 'text-title-sm',
|
|
194
|
+
h5: 'text-title-xs',
|
|
195
195
|
h6: 'text-title-2xs tracking-[0.2px]',
|
|
196
196
|
};
|
|
197
197
|
const Heading = JSX((props) => {
|
|
@@ -203,34 +203,6 @@
|
|
|
203
203
|
return (jsx(Tag, { className: `font-sans m-0 ${HEADING_STYLE_MAP[headingType]} ${className}`, children: title }));
|
|
204
204
|
});
|
|
205
205
|
|
|
206
|
-
const ALIGN_TEXT = {
|
|
207
|
-
left: 'text-left',
|
|
208
|
-
center: 'text-center',
|
|
209
|
-
right: 'text-right',
|
|
210
|
-
};
|
|
211
|
-
const HEADLINE_BLOCK_STYLE_MAPS = {
|
|
212
|
-
transparent: {
|
|
213
|
-
background: 'bg-transparent',
|
|
214
|
-
text: 'text-primary-text',
|
|
215
|
-
description: 'text-primary-text',
|
|
216
|
-
},
|
|
217
|
-
primary: {
|
|
218
|
-
background: 'bg-white',
|
|
219
|
-
text: 'text-primary-text',
|
|
220
|
-
description: 'text-primary-text',
|
|
221
|
-
},
|
|
222
|
-
secondary: {
|
|
223
|
-
background: 'bg-primary-main',
|
|
224
|
-
text: 'text-white',
|
|
225
|
-
description: 'text-white/80',
|
|
226
|
-
},
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
const Headline = JSX(({ bgColorHeadline = 'transparent', align = 'left', className = '', title, description, anchor = null, }) => {
|
|
230
|
-
const STYLE_MAPS = HEADLINE_BLOCK_STYLE_MAPS[bgColorHeadline];
|
|
231
|
-
return (jsxs("section", { className: `p-[50px] ${STYLE_MAPS.background} ${className}`, id: anchor, children: [title && (jsx(Heading, { headingType: "h2", className: `text-primary-text ${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`, title: title })), description && (jsx("p", { className: `font-normal text-base mt-4 ${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`, children: description }))] }));
|
|
232
|
-
});
|
|
233
|
-
|
|
234
206
|
// Generated. Do not touch
|
|
235
207
|
/* eslint-disable max-lines */
|
|
236
208
|
var IconMap;
|
|
@@ -317,7 +289,7 @@
|
|
|
317
289
|
IconTitleMap["ActualBalanceIcon"] = "\u0414\u0435\u043D\u044C\u0433\u0438";
|
|
318
290
|
IconTitleMap["AppleIcon"] = "\u041B\u043E\u0433\u043E \u00ABApple\u00BB";
|
|
319
291
|
IconTitleMap["ArrowDownIcon"] = "\u0421\u0442\u0440\u0435\u043B\u043A\u0430 '\u0412\u043D\u0438\u0437'";
|
|
320
|
-
IconTitleMap["ArrowLeftIcon"] = "\u0421\u0442\u0440\u0435\u043B\u043A\u0430
|
|
292
|
+
IconTitleMap["ArrowLeftIcon"] = "\u0421\u0442\u0440\u0435\u043B\u043A\u0430";
|
|
321
293
|
IconTitleMap["ArrowsRewindRight"] = "ArrowsRewindRight";
|
|
322
294
|
IconTitleMap["ArrowUpIcon"] = "ArrowUpIcon";
|
|
323
295
|
IconTitleMap["AtmIcon"] = "\u0411\u0430\u043D\u043A\u043E\u043C\u0430\u0442";
|
|
@@ -463,6 +435,34 @@
|
|
|
463
435
|
return format ? `image/${String(format)}` : undefined;
|
|
464
436
|
}
|
|
465
437
|
|
|
438
|
+
const ALIGN_TEXT = {
|
|
439
|
+
left: 'text-left',
|
|
440
|
+
center: 'text-center',
|
|
441
|
+
right: 'text-right',
|
|
442
|
+
};
|
|
443
|
+
const HEADLINE_BLOCK_STYLE_MAPS = {
|
|
444
|
+
transparent: {
|
|
445
|
+
background: 'bg-transparent',
|
|
446
|
+
text: 'text-primary-text',
|
|
447
|
+
description: 'text-primary-text',
|
|
448
|
+
},
|
|
449
|
+
primary: {
|
|
450
|
+
background: 'bg-white',
|
|
451
|
+
text: 'text-primary-text',
|
|
452
|
+
description: 'text-primary-text',
|
|
453
|
+
},
|
|
454
|
+
secondary: {
|
|
455
|
+
background: 'bg-primary-main',
|
|
456
|
+
text: 'text-white',
|
|
457
|
+
description: 'text-white/80',
|
|
458
|
+
},
|
|
459
|
+
};
|
|
460
|
+
|
|
461
|
+
const Headline = JSX(({ bgColorHeadline = 'transparent', align = 'left', className = '', title, description, anchor = null, }) => {
|
|
462
|
+
const STYLE_MAPS = HEADLINE_BLOCK_STYLE_MAPS[bgColorHeadline];
|
|
463
|
+
return (jsxs("section", { className: `p-[50px] ${STYLE_MAPS.background} ${className}`, id: anchor, children: [title && (jsx(Heading, { headingType: "h2", className: `text-primary-text ${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`, title: title })), description && (jsx("p", { className: `font-normal text-base mt-4 ${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`, children: description }))] }));
|
|
464
|
+
});
|
|
465
|
+
|
|
466
466
|
const LinkDocsListItemBase = JSX(({ className, iconClassName, textClassName, suffixClassName, doc, icon }) => {
|
|
467
467
|
const { text, fileSize, ...linkProps } = doc;
|
|
468
468
|
return (jsxs("a", { className: className, role: "link", ...linkProps, children: [icon ? (jsx(Img, { className: iconClassName, image: icon, width: "24px", height: "24px", asSVG: true })) : null, text ? (jsxs("span", { className: textClassName, children: [text, jsx("span", { className: suffixClassName, children: linkProps?.href && formatSuffix(getExtFromHref(linkProps.href), fileSize) })] })) : null] }));
|
|
@@ -480,7 +480,7 @@
|
|
|
480
480
|
return index !== -1 ? href.substring(index + 1) : '';
|
|
481
481
|
};
|
|
482
482
|
|
|
483
|
-
const LinkDocsListItem = JSX(({ className = '', doc, icon }) => (jsx(LinkDocsListItemBase, { className: `flex h-full box-border ${className}`, iconClassName: "mr-2.5 min-w-6 min-h-6
|
|
483
|
+
const LinkDocsListItem = JSX(({ className = '', doc, icon }) => (jsx(LinkDocsListItemBase, { className: `flex h-full box-border ${className}`, iconClassName: "mr-2.5 min-w-6 min-h-6", textClassName: "self-center font-light", suffixClassName: "text-secondary-text group-hover:text-primary-main", doc: doc, icon: icon })));
|
|
484
484
|
|
|
485
485
|
const LinkDocsList = JSX(({ className, documents, columnsMode = 'double', icon }) => {
|
|
486
486
|
return documents?.length ? (jsx("div", { className: className, role: "list", children: documents.map((doc, i) => (jsx("div", { className: columnsMode === 'double' ? 'basis-[calc(50%-20px)]' : '', role: "listitem", children: jsx(LinkDocsListItem, { className: "group flex align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main", doc: doc, icon: icon }) }, String(i)))) })) : null;
|
|
@@ -594,7 +594,7 @@
|
|
|
594
594
|
|
|
595
595
|
const ButtonInner = JSX((props) => {
|
|
596
596
|
const { text, aboveText, appendLeft } = props;
|
|
597
|
-
return (jsxs("div", { className: getButtonStyle(props), children: [appendLeft ? appendLeft : null, isWithText(props) ? (jsxs("div", { children: [jsx("div", { className: "text-m-2xs font-light text-left", children: aboveText }), jsx("div", { className: "text-button text-left", children: text })] })) : null] }));
|
|
597
|
+
return (jsxs("div", { className: getButtonStyle(props), children: [appendLeft ? appendLeft : null, isWithText(props) ? (jsxs("div", { children: [jsx("div", { className: "text-m-2xs font-light text-left", children: aboveText }), jsx("div", { className: "text-button-sm text-left", children: text })] })) : null] }));
|
|
598
598
|
});
|
|
599
599
|
const getButtonStyle = (props) => {
|
|
600
600
|
const { version, aboveText, rounded } = props;
|
|
@@ -622,15 +622,12 @@
|
|
|
622
622
|
};
|
|
623
623
|
const buttonStyle = 'text-center font-sans select-none';
|
|
624
624
|
const Button = JSX((props) => {
|
|
625
|
-
const { text, aboveText, appendLeft, children, disabled, rounded } = props;
|
|
625
|
+
const { text, aboveText, appendLeft, children, disabled, rounded, ...rest } = props;
|
|
626
626
|
const buttonInner = children ?? (jsx(ButtonInner, { text: text, aboveText: aboveText, appendLeft: appendLeft, rounded: rounded }));
|
|
627
|
-
return disabled ? (jsx(DisabledButton, { ...
|
|
627
|
+
return disabled ? (jsx(DisabledButton, { rounded: rounded, ...rest, children: buttonInner })) : (jsx(RegularButton, { rounded: rounded, ...rest, children: buttonInner }));
|
|
628
628
|
});
|
|
629
|
-
const RegularButton = JSX(({ className, ariaLabel, version = 'none', rounded, href, target, children, onClick, ...rest }) => {
|
|
630
|
-
|
|
631
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
632
|
-
const { aboveText, appendLeft, ...linkProps } = rest;
|
|
633
|
-
return (jsx("a", { className: `${buttonStyle} inline-block cursor-pointer no-underline ${buttonStyleMap[version] || ''} ${rounded ? 'rounded-full' : 'rounded-md'} ${className || ''}`, href: href, target: target, onClick: onClick, "aria-label": ariaLabel, role: href ? 'link' : 'button', ...linkProps, children: children }));
|
|
629
|
+
const RegularButton = JSX(({ className = '', ariaLabel, version = 'none', rounded, href, target, children, onClick, ...rest }) => {
|
|
630
|
+
return (jsx("a", { className: `${buttonStyle} inline-block cursor-pointer no-underline ${buttonStyleMap[version] || ''} ${rounded ? 'rounded-full' : 'rounded-md'} ${className}`, href: href, target: target, onClick: onClick, "aria-label": ariaLabel, role: href ? 'link' : 'button', ...rest, children: children }));
|
|
634
631
|
});
|
|
635
632
|
const DisabledButton = JSX(({ className, children, ariaLabel, version = 'none', rounded }) => (jsx("div", { role: "button", "aria-disabled": "true", "aria-label": ariaLabel, tabIndex: "-1", className: `inline-block ${buttonStyle} ${buttonDisabledStyleMap[version] || ''} ${rounded ? 'rounded-full' : 'rounded-md'} ${className || ''}`, children: children })));
|
|
636
633
|
|
|
@@ -654,8 +651,8 @@
|
|
|
654
651
|
primary: 'rounded-full inline-block mr-3 mt-2',
|
|
655
652
|
secondary: 'rounded-full inline-block mr-3 mt-2',
|
|
656
653
|
gray: 'rounded-full inline-block mr-3 mt-2',
|
|
657
|
-
tile: 'rounded-full inline-block mr-4',
|
|
658
|
-
'tile-white': 'rounded-full inline-block mr-4',
|
|
654
|
+
tile: 'rounded-full inline-block mr-4 mt-3',
|
|
655
|
+
'tile-white': 'rounded-full inline-block mr-4 mt-3',
|
|
659
656
|
};
|
|
660
657
|
const LIST_DOT_STYLE_MAP = {
|
|
661
658
|
primary: 'bg-primary-text',
|
|
@@ -709,7 +706,7 @@
|
|
|
709
706
|
secondary: 'text-white',
|
|
710
707
|
};
|
|
711
708
|
function renderBenefit(benefit, i, version) {
|
|
712
|
-
return (jsxs("div", { className: "flex gap-4 items-center", children: [benefit.icon ? (jsx(Img, { className: `w-[50px] h-[50px] min-w-[50px] min-h-[50px] rounded-full p-[10px] box-border text-
|
|
709
|
+
return (jsxs("div", { className: "flex gap-4 items-center", children: [benefit.icon ? (jsx(Img, { className: `w-[50px] h-[50px] min-w-[50px] min-h-[50px] rounded-full p-[10px] box-border text-primary-text ${benefitIconBgStyleMap[version]}`, image: benefit.icon, width: "24", height: "24", asSVG: true })) : null, jsxs("div", { className: "flex gap-0.5 flex-col h-full max-w-[149px] min-w-[149px]", children: [jsx("div", { className: `text-xl m-0 ${benefitTitleStyleMap[version]}`, children: benefit.label }), benefit.description && (jsx("div", { className: `font-light text-m-md ${benefitDescStyleMap[version]}`, children: benefit.description }))] })] }, String(i)));
|
|
713
710
|
}
|
|
714
711
|
|
|
715
712
|
const ProductBlockInner = JSX(({ className = '', context, title, headingType = 'h2', description, benefits, buttons, image, items, version = 'primary', isDotted = true, textBlockClassName = '', }) => {
|
|
@@ -723,16 +720,8 @@
|
|
|
723
720
|
return buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-4" })) : null;
|
|
724
721
|
};
|
|
725
722
|
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
secondary: 'bg-white',
|
|
729
|
-
};
|
|
730
|
-
const backwardIconStyleMap = {
|
|
731
|
-
primary: 'text-white',
|
|
732
|
-
secondary: 'text-primary-text',
|
|
733
|
-
};
|
|
734
|
-
function renderBackwardButton(text, version, className) {
|
|
735
|
-
return (jsxs("div", { className: `flex items-center ${className}`, children: [jsx(Button, { rounded: true, className: `w-12 h-12 min-h-12 max-h-12 flex items-center justify-center mr-3 ${backwardBgStyleMap[version]}`, ariaLabel: text, children: jsx(Img, { className: `w-4 h-4 min-w-4 min-h-4 rounded-full box-border ${backwardIconStyleMap[version]}`, image: { icon: 'ArrowLeftIcon' }, width: "24", height: "24", asSVG: true }) }), text ? jsx("span", { className: "text-m-md", children: text }) : null] }));
|
|
723
|
+
function renderBackwardButton(button, version, className) {
|
|
724
|
+
return (jsxs("div", { className: `flex items-center ${className}`, children: [jsx(Button, { version: version, rounded: true, className: "w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3", ariaLabel: button?.text, href: button?.href, children: jsx(Img, { className: "w-4 h-4", image: button?.icon || { icon: 'ArrowLeftIcon' }, asSVG: true }) }), button?.text ? jsx("span", { className: "text-m-md font-light", children: button.text }) : null] }));
|
|
736
725
|
}
|
|
737
726
|
|
|
738
727
|
const productBlockStyleMap$1 = {
|
|
@@ -744,10 +733,10 @@
|
|
|
744
733
|
secondary: 'text-white/80',
|
|
745
734
|
};
|
|
746
735
|
const ProductBlock = JSX((props) => {
|
|
747
|
-
const { context, className = '', breadcrumbs, version = 'primary', anchor = null, ...otherProps } = props;
|
|
736
|
+
const { context, className = '', breadcrumbs, backwardButton, version = 'primary', anchor = null, ...otherProps } = props;
|
|
748
737
|
const router = context.useRouter();
|
|
749
738
|
const { handlerDecorator } = context;
|
|
750
|
-
return (jsxs("section", { className: `font-sans overflow-hidden pt-
|
|
739
|
+
return (jsxs("section", { className: `font-sans overflow-hidden pt-[50px] pl-[50px] pb-[50px] pr-[7.5rem] box-border min-h-[420px] ${productBlockStyleMap$1[version]} ${className}`, id: anchor, children: [backwardButton?.text ? renderBackwardButton(backwardButton, version, 'mb-10 -mt-2.5') : null, breadcrumbs?.length ? (jsx("div", { className: "text-xs mb-6", children: joinList(jsx("span", { className: `mx-2 ${breadcrumbsStyleMap[version]}`, children: "/" }))(breadcrumbs.map((breadcrumb, i) => (jsx(Breadcrumb, { ...useLink({ router, handlerDecorator }, { className: breadcrumbsStyleMap[version], ...breadcrumb }) }, String(i))))) })) : null, jsx(ProductBlockInner, { context: context, version: version, ...otherProps })] }));
|
|
751
740
|
});
|
|
752
741
|
|
|
753
742
|
const textBlockStyleMaps = {
|
|
@@ -833,10 +822,10 @@
|
|
|
833
822
|
const Tile = JSX((props) => {
|
|
834
823
|
const { context, title, description, items, children, buttons, image, className = '', version = 'primary', role, anchor = null, } = props;
|
|
835
824
|
return (jsx("section", { className: `overflow-hidden font-sans p-9 pr-3 box-border ${className} ${tileStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, role: role, id: anchor, children: jsxs(BaseTile, { context: context, title: title && (jsx(Heading, { headingType: getTileHeadingType(className), as: "h3", title: title, className: `whitespace-pre-wrap max-w-[600px] ${title ? 'mb-3' : ''}
|
|
836
|
-
${version === 'primary' ? 'text-primary-text' : ''}` })), buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null, image: image?.src && jsx(Img, { className: "mt-auto ml-7", image: image }), children: [description && (jsx(Description, { className: "
|
|
825
|
+
${version === 'primary' ? 'text-primary-text' : ''}` })), buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null, image: image?.src && jsx(Img, { className: "mt-auto ml-7", image: image }), children: [description && (jsx(Description, { className: "max-w-[600px] text-title-new-sm font-light", description: description })), children, renderList$1(items, version)] }) }));
|
|
837
826
|
});
|
|
838
827
|
function renderList$1(items, version) {
|
|
839
|
-
return items?.length ? (jsx(List, { items: items, itemClassName: "text-title-
|
|
828
|
+
return items?.length ? (jsx(List, { items: items, itemClassName: "text-title-2xs font-light mt-2", version: version === 'primary' ? 'tile' : 'tile-white' })) : null;
|
|
840
829
|
}
|
|
841
830
|
|
|
842
831
|
const productTileStyleMap = {
|
|
@@ -857,25 +846,9 @@
|
|
|
857
846
|
return (jsx("div", { className: `text-sm ${i ? 'mt-4' : ''} ${labelStyleMap[version]}`, children: benefit.description }, String(i)));
|
|
858
847
|
}
|
|
859
848
|
|
|
860
|
-
const SVG = JSX(({ className, viewBox, fill = 'none', width, height, paths, ...commonOptions }) => {
|
|
861
|
-
return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: className, viewBox: viewBox, fill: fill, width: width, height: height, children: paths.map(({ d, fill, ...options }, i) => (jsx("path", { d: d, fill: fill || 'currentColor', ...commonOptions, ...options }, i))) }));
|
|
862
|
-
});
|
|
863
|
-
|
|
864
|
-
const ARROW_PATHS = [
|
|
865
|
-
{
|
|
866
|
-
d: 'm9 12 4-4-4-4',
|
|
867
|
-
stroke: 'currentColor',
|
|
868
|
-
strokeWidth: '2',
|
|
869
|
-
strokeLinecap: 'round',
|
|
870
|
-
fill: 'none',
|
|
871
|
-
},
|
|
872
|
-
{
|
|
873
|
-
d: 'M2 9a1 1 0 0 1 0-2v2Zm6-2a1 1 0 0 1 0 2V7ZM2 7h6v2H2V7Z',
|
|
874
|
-
},
|
|
875
|
-
];
|
|
876
849
|
const ArrowButton = JSX(({ className, disabled, ...rest }) => (jsx(Button, { rounded: true, className: `shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${disabled
|
|
877
850
|
? 'bg-secondary-light text-secondary-text'
|
|
878
|
-
: 'bg-white text-primary-text hover:text-primary-main'} ${className || ''}`, disabled: disabled, ...rest, children: jsx(
|
|
851
|
+
: 'bg-white text-primary-text hover:text-primary-main'} ${className || ''}`, disabled: disabled, ...rest, children: jsx(Img, { className: "w-4 h-4 min-w-4 min-h-4 rounded-full box-border", image: { icon: 'ArrowLeftIcon' }, width: "16", height: "16", asSVG: true }) })));
|
|
879
852
|
|
|
880
853
|
const cardVersionMap = {
|
|
881
854
|
primary: 'bg-white text-secondary-text',
|
|
@@ -929,7 +902,7 @@
|
|
|
929
902
|
const showNextButton = isGalleryScrollAvailable &&
|
|
930
903
|
cards?.length - activeCardIndex > galleryLengthForScrollMap[version];
|
|
931
904
|
const showPrevButton = isGalleryScrollAvailable && activeCardIndex > 0;
|
|
932
|
-
return (jsxs("section", { className: `relative font-sans text-primary-text bg-white p-[42px] overflow-hidden ${className}`, id: anchor, children: [jsx(GalleryContainer, { context: context, cards: cards, version: version, activeCardIndex: activeCardIndex, ...rest }), showPrevButton && (jsx(ArrowButton, { className: "absolute top-1/2 left-8
|
|
905
|
+
return (jsxs("section", { className: `relative font-sans text-primary-text bg-white p-[42px] overflow-hidden ${className}`, id: anchor, children: [jsx(GalleryContainer, { context: context, cards: cards, version: version, activeCardIndex: activeCardIndex, ...rest }), showPrevButton && (jsx(ArrowButton, { className: "absolute top-1/2 left-8 z-10 mt-[25px]", onClick: handlePrevClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left" })), showNextButton && (jsx(ArrowButton, { className: "absolute top-1/2 right-8 z-10 mt-[25px] rotate-180", onClick: handleNextClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right" })), jsx("div", { className: "absolute top-0 left-0 bottom-0 w-[84px] bg-opacity-from-white" }), jsx("div", { className: "absolute top-0 right-0 bottom-0 w-[100px] bg-opacity-to-white" })] }));
|
|
933
906
|
});
|
|
934
907
|
|
|
935
908
|
const Gallery = JSX((props) => jsx(GalleryInner, { ...props, version: "normal" }));
|
|
@@ -1001,7 +974,7 @@
|
|
|
1001
974
|
});
|
|
1002
975
|
return (jsxs("li", { className: "border-0 border-b border-solid border-main-divider last:border-b-0", children: [jsxs("button", { className: `border-none bg-transparent px-0 py-5 flex justify-between text-left w-full font-sans
|
|
1003
976
|
${hasContent ? 'group cursor-pointer' : ''}
|
|
1004
|
-
`, onClick: handleToggle, children: [jsx("span", { className: `text-xl pr-2.5 font-medium`, children: label }), hasContent ? jsx(Img, { image: icon, width: "24", height: "24", asSVG: true }) : null] }), hasContent ? (jsx(AccordionItemInner, { isExpanded: isActive, blocks: blocks, context: context })) : null] }));
|
|
977
|
+
`, onClick: handleToggle, children: [jsx("span", { className: `text-xl pr-2.5 font-medium`, children: label }), hasContent ? (jsx(Img, { image: icon, className: "text-primary-main", width: "24", height: "24", asSVG: true })) : null] }), hasContent ? (jsx(AccordionItemInner, { isExpanded: isActive, blocks: blocks, context: context })) : null] }));
|
|
1005
978
|
});
|
|
1006
979
|
|
|
1007
980
|
const Accordion = JSX(({ title, description, accordionItems, context, className = '', anchor = null }) => {
|
|
@@ -1019,7 +992,7 @@
|
|
|
1019
992
|
const { className = '', title, description, bonusItems, anchor = null } = props;
|
|
1020
993
|
return (jsx("section", { className: `bg-white p-12 ${className}`, id: anchor, children: jsxs("div", { className: "container", children: [title ? jsx(Heading, { headingType: "h2", className: "text-center", title: title }) : null, description ? (jsx("div", { className: "text-md font-light text-center mt-2", children: description })) : null, jsx("div", { className: "flex flex-wrap w-full mt-9", children: bonusItems
|
|
1021
994
|
? bonusItems.map((_, i) => {
|
|
1022
|
-
return (jsx("div", { className: "flex-grow w-[49%] border border-gray pl-9 pt-9 pr-6 pb-6 mb-4 mx-2 even:mr-0 odd:ml-0 last:odd:w-full last:odd:mx-0", children: jsxs("div", { className: "flex justify-between w-full", children: [jsxs("div", { className: "mr-4", children: [jsx("div", { className: "text-title-sm", children: _.name }), jsx("div", { className: "text-md font-light mt-3 max-w-[488px]", children: _.description })] }), _.bonusCount ? (jsxs("div", { className: "relative -bottom-3 h-auto flex items-end mt-14 shrink-0", children: [jsx("span", { className: "font-
|
|
995
|
+
return (jsx("div", { className: "flex-grow w-[49%] border border-gray pl-9 pt-9 pr-6 pb-6 mb-4 mx-2 even:mr-0 odd:ml-0 last:odd:w-full last:odd:mx-0", children: jsxs("div", { className: "flex justify-between w-full", children: [jsxs("div", { className: "mr-4", children: [jsx("div", { className: "text-title-sm", children: _.name }), jsx("div", { className: "text-md font-light mt-3 max-w-[488px]", children: _.description })] }), _.bonusCount ? (jsxs("div", { className: "relative -bottom-3 h-auto flex items-end mt-14 shrink-0", children: [jsx("span", { className: "font-mohave -tracking-wider text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7", children: _.bonusCount }), jsx("span", { className: "text-[44px] bg-clip-text text-transparent bg-green-to-yellow", children: _.bonusName })] })) : null] }) }, String(i)));
|
|
1023
996
|
})
|
|
1024
997
|
: null })] }) }));
|
|
1025
998
|
});
|
|
@@ -1055,7 +1028,7 @@
|
|
|
1055
1028
|
const TableRow = JSX(({ row: { header, data }, activeCardIndex, isColoredFirstColumn, isFirstRow, isLastRow }) => (jsxs(TableRowContainer, { children: [header?.title ? (jsx("div", { className: `text-sm py-7 ${DIVIDER_CLASSES$1} ${FIRST_CELL_CLASSES$1} ${!isLastRow ? 'border-solid' : 'border-b-0'}`, children: header.title })) : null, data?.length ? (jsx(TableCarouselContainer, { activeCardIndex: activeCardIndex, columnWidth: COLUMN_WIDTH$1, children: data.map((cell, i) => (jsx(TableCell, { cell: cell, isFirstRow: isFirstRow, isLastRow: isLastRow, isFillGradient: isColoredFirstColumn && i === 0 }, String(i)))) })) : null] })));
|
|
1056
1029
|
|
|
1057
1030
|
const TableArrowScrollControl = JSX(({ isScrollAvailable, onNextClick, onPrevClick, showNextButton, showPrevButton }) => {
|
|
1058
|
-
return isScrollAvailable ? (jsx("div", { children: jsxs("div", { className: "absolute top-7 right-7 z-10", children: [jsx(ArrowButton, { onClick: onNextClick, disabled: !showNextButton, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right" }), jsx(ArrowButton, { className: "mt-4
|
|
1031
|
+
return isScrollAvailable ? (jsx("div", { children: jsxs("div", { className: "absolute top-7 right-7 z-10", children: [jsx(ArrowButton, { className: "mt-4 rotate-180", onClick: onNextClick, disabled: !showNextButton, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right" }), jsx(ArrowButton, { className: "mt-4", onClick: onPrevClick, disabled: !showPrevButton, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left" })] }) })) : null;
|
|
1059
1032
|
});
|
|
1060
1033
|
|
|
1061
1034
|
const ComparisonTableRows = JSX(({ rowData, activeCardIndex, isColoredFirstColumn, ...tableArrowScrollProps }) => {
|
|
@@ -1127,6 +1100,10 @@
|
|
|
1127
1100
|
return `/wcms-resources/${directoryName || 'credit-calculator-data'}.json`;
|
|
1128
1101
|
}
|
|
1129
1102
|
|
|
1103
|
+
const SVG = JSX(({ className, viewBox, fill = 'none', width, height, paths, ...commonOptions }) => {
|
|
1104
|
+
return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: className, viewBox: viewBox, fill: fill, width: width, height: height, children: paths.map(({ d, fill, ...options }, i) => (jsx("path", { d: d, fill: fill || 'currentColor', ...commonOptions, ...options }, i))) }));
|
|
1105
|
+
});
|
|
1106
|
+
|
|
1130
1107
|
const CHECK_PATHS = [
|
|
1131
1108
|
{
|
|
1132
1109
|
d: 'M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z',
|
|
@@ -1944,7 +1921,7 @@
|
|
|
1944
1921
|
const isUseSlider = cardsCount > CARD_FULL_VIEW_COUNT;
|
|
1945
1922
|
const showNextButton = isUseSlider && cardsCount - activeCardIndex > CARD_FULL_VIEW_COUNT;
|
|
1946
1923
|
const showPrevButton = isUseSlider && activeCardIndex > 0;
|
|
1947
|
-
return (jsxs("div", { children: [showPrevButton && (jsx(ArrowButton, { className: "absolute top-1/2 left-8
|
|
1924
|
+
return (jsxs("div", { children: [showPrevButton && (jsx(ArrowButton, { className: "absolute top-1/2 left-8 z-10 mt-6", onClick: handlePrevClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E" })), showNextButton && (jsx(ArrowButton, { className: "absolute top-1/2 right-8 z-10 mt-6 rotate-180", onClick: handleNextClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E" }))] }));
|
|
1948
1925
|
};
|
|
1949
1926
|
|
|
1950
1927
|
const StepsBlock = JSX(({ className = '', title, showLines = true, steps = [], button, anchor = null }) => {
|
|
@@ -1954,7 +1931,7 @@
|
|
|
1954
1931
|
shortGaps ? 'px-20' : 'px-[70px]',
|
|
1955
1932
|
'py-[50px] flex flex-col items-center',
|
|
1956
1933
|
className,
|
|
1957
|
-
].join(' '), id: anchor, children: [jsx(Heading, { headingType: "h2", className: "max-w-[47rem] text-center", title: title }), steps?.length ? (jsxs("div", { className: `box-border
|
|
1934
|
+
].join(' '), id: anchor, children: [jsx(Heading, { headingType: "h2", className: "max-w-[47rem] text-center", title: title }), steps?.length ? (jsxs("div", { className: `box-border ${title ? 'mt-9' : ''}`, children: [jsx("div", { className: "flex items-center px-[88px]", children: joinList(jsx("div", { className: `h-0.5 w-full bg-secondary-light ${!showLines ? 'opacity-0' : ''}` }))(steps.map(renderStepIcon)) }), jsx("div", { className: `flex justify-between ${shortGaps ? 'gap-x-3' : 'gap-x-[101px]'}`, children: steps.map((step, i) => renderStepTitle(step, i, Boolean(button?.text))) })] })) : null, button?.text ? (jsx(Button, { className: "box-border mt-8 py-3 h-12 w-full max-w-[240px]", version: "primary", href: "#", children: button.text })) : null] }));
|
|
1958
1935
|
});
|
|
1959
1936
|
const renderStepIcon = (step, i) => {
|
|
1960
1937
|
return (jsx("div", { className: "flex flex-col items-center text-center relative", children: jsx("div", { className: "h-[100px] w-[100px] min-w-[100px] min-h-[100px] bg-secondary-light rounded-full p-[26px] box-border z-10", children: (step.icon?.icon && jsx(Img, { image: step.icon, width: "48", height: "48" })) || (jsx("span", { className: "font-normal text-title-sm text-secondary-text", children: i + 1 })) }) }, String(i)));
|