@redneckz/wildless-cms-uni-blocks 0.14.44 → 0.14.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/migration-scripts/0.14.44.js +103 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +27 -36
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Blocks.js +0 -2
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/CardTransfer/CardTransfer.js +8 -4
- package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/dist/components/CarouselLinks/CarouselLinkButton.js +3 -3
- package/dist/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
- package/dist/components/Header/DropdownMenu.js +2 -1
- package/dist/components/Header/DropdownMenu.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocItem.js +2 -2
- package/dist/components/LinkDocs/LinkDocItem.js.map +1 -1
- package/dist/ui-kit/Button/LikeButton.js +5 -9
- package/dist/ui-kit/Button/LikeButton.js.map +1 -1
- package/dist/ui-kit/Img/ImgAsPicture.js +2 -2
- package/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/dist/ui-kit/SVG.js +4 -1
- package/dist/ui-kit/SVG.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Blocks.js +0 -2
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/CardTransfer/CardTransfer.js +8 -4
- package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/lib/components/CarouselLinks/CarouselLinkButton.js +3 -3
- package/lib/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
- package/lib/components/Header/DropdownMenu.js +2 -1
- package/lib/components/Header/DropdownMenu.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocItem.js +2 -2
- package/lib/components/LinkDocs/LinkDocItem.js.map +1 -1
- package/lib/components/VerticalLayout/VerticalLayout.fixture.d.ts +1 -0
- package/lib/ui-kit/Button/LikeButton.js +5 -9
- package/lib/ui-kit/Button/LikeButton.js.map +1 -1
- package/lib/ui-kit/Img/ImgAsPicture.js +2 -2
- package/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/lib/ui-kit/SVG.js +4 -1
- package/lib/ui-kit/SVG.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +25 -23
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js +8 -4
- package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js +3 -3
- package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
- package/mobile/dist/components/Header/DropdownMenu.js +2 -1
- package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocItem.js +2 -2
- package/mobile/dist/components/LinkDocs/LinkDocItem.js.map +1 -1
- package/mobile/dist/ui-kit/Button/LikeButton.js +5 -9
- package/mobile/dist/ui-kit/Button/LikeButton.js.map +1 -1
- package/mobile/dist/ui-kit/Img/ImgAsPicture.js +2 -2
- package/mobile/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/mobile/dist/ui-kit/SVG.js +4 -1
- package/mobile/dist/ui-kit/SVG.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js +8 -4
- package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js +3 -3
- package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
- package/mobile/lib/components/Header/DropdownMenu.js +2 -1
- package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocItem.js +2 -2
- package/mobile/lib/components/LinkDocs/LinkDocItem.js.map +1 -1
- package/mobile/lib/ui-kit/Button/LikeButton.js +5 -9
- package/mobile/lib/ui-kit/Button/LikeButton.js.map +1 -1
- package/mobile/lib/ui-kit/Img/ImgAsPicture.js +2 -2
- package/mobile/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/mobile/lib/ui-kit/SVG.js +4 -1
- package/mobile/lib/ui-kit/SVG.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/src/components/CardTransfer/CardTransfer.tsx +10 -7
- package/mobile/src/components/CarouselLinks/CarouselLinkButton.tsx +5 -3
- package/mobile/src/components/Header/DropdownMenu.tsx +5 -2
- package/mobile/src/components/LinkDocs/LinkDocItem.tsx +4 -5
- package/mobile/src/ui-kit/Button/LikeButton.tsx +18 -17
- package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +4 -2
- package/mobile/src/ui-kit/SVG.tsx +16 -3
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
- package/package.json +1 -1
- package/src/components/Blocks.ts +0 -2
- package/src/components/CardTransfer/CardTransfer.tsx +10 -7
- package/src/components/CarouselLinks/CarouselLinkButton.tsx +5 -3
- package/src/components/Header/DropdownMenu.tsx +5 -2
- package/src/components/LinkDocs/LinkDocItem.tsx +4 -5
- package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +62 -0
- package/src/ui-kit/Button/LikeButton.tsx +18 -17
- package/src/ui-kit/Img/ImgAsPicture.tsx +4 -2
- package/src/ui-kit/SVG.tsx +16 -3
- package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
- package/bundle/components/BusinessBlock/BusinessBlock.d.ts +0 -5
- package/bundle/components/BusinessBlock/BusinessBlockContent.d.ts +0 -25
- package/bundle/components/BusinessBlock/BusinessCard.d.ts +0 -2
- package/dist/components/BusinessBlock/BusinessBlock.d.ts +0 -5
- package/dist/components/BusinessBlock/BusinessBlock.js +0 -9
- package/dist/components/BusinessBlock/BusinessBlock.js.map +0 -1
- package/dist/components/BusinessBlock/BusinessBlockContent.d.ts +0 -25
- package/dist/components/BusinessBlock/BusinessBlockContent.js +0 -2
- package/dist/components/BusinessBlock/BusinessBlockContent.js.map +0 -1
- package/dist/components/BusinessBlock/BusinessCard.d.ts +0 -2
- package/dist/components/BusinessBlock/BusinessCard.js +0 -17
- package/dist/components/BusinessBlock/BusinessCard.js.map +0 -1
- package/lib/components/BusinessBlock/BusinessBlock.d.ts +0 -5
- package/lib/components/BusinessBlock/BusinessBlock.fixture.d.ts +0 -6
- package/lib/components/BusinessBlock/BusinessBlock.js +0 -7
- package/lib/components/BusinessBlock/BusinessBlock.js.map +0 -1
- package/lib/components/BusinessBlock/BusinessBlockContent.d.ts +0 -25
- package/lib/components/BusinessBlock/BusinessBlockContent.js +0 -2
- package/lib/components/BusinessBlock/BusinessBlockContent.js.map +0 -1
- package/lib/components/BusinessBlock/BusinessCard.d.ts +0 -2
- package/lib/components/BusinessBlock/BusinessCard.js +0 -15
- package/lib/components/BusinessBlock/BusinessCard.js.map +0 -1
- package/mobile/bundle/components/BusinessBlock/BusinessBlock.d.ts +0 -5
- package/mobile/bundle/components/BusinessBlock/BusinessBlockContent.d.ts +0 -25
- package/mobile/bundle/components/BusinessBlock/BusinessCard.d.ts +0 -2
- package/mobile/dist/components/BusinessBlock/BusinessBlock.d.ts +0 -5
- package/mobile/dist/components/BusinessBlock/BusinessBlock.js +0 -9
- package/mobile/dist/components/BusinessBlock/BusinessBlock.js.map +0 -1
- package/mobile/dist/components/BusinessBlock/BusinessBlockContent.d.ts +0 -25
- package/mobile/dist/components/BusinessBlock/BusinessBlockContent.js +0 -2
- package/mobile/dist/components/BusinessBlock/BusinessBlockContent.js.map +0 -1
- package/mobile/dist/components/BusinessBlock/BusinessCard.d.ts +0 -2
- package/mobile/dist/components/BusinessBlock/BusinessCard.js +0 -17
- package/mobile/dist/components/BusinessBlock/BusinessCard.js.map +0 -1
- package/mobile/lib/components/BusinessBlock/BusinessBlock.d.ts +0 -5
- package/mobile/lib/components/BusinessBlock/BusinessBlock.js +0 -7
- package/mobile/lib/components/BusinessBlock/BusinessBlock.js.map +0 -1
- package/mobile/lib/components/BusinessBlock/BusinessBlockContent.d.ts +0 -25
- package/mobile/lib/components/BusinessBlock/BusinessBlockContent.js +0 -2
- package/mobile/lib/components/BusinessBlock/BusinessBlockContent.js.map +0 -1
- package/mobile/lib/components/BusinessBlock/BusinessCard.d.ts +0 -2
- package/mobile/lib/components/BusinessBlock/BusinessCard.js +0 -15
- package/mobile/lib/components/BusinessBlock/BusinessCard.js.map +0 -1
- package/mobile/src/components/BusinessBlock/BusinessBlock.example.json +0 -97
- package/mobile/src/components/BusinessBlock/BusinessBlock.tsx +0 -17
- package/mobile/src/components/BusinessBlock/BusinessBlock.ui.json +0 -29
- package/mobile/src/components/BusinessBlock/BusinessBlockContent.ts +0 -30
- package/mobile/src/components/BusinessBlock/BusinessCard.tsx +0 -42
- package/src/components/BusinessBlock/BusinessBlock.example.json +0 -97
- package/src/components/BusinessBlock/BusinessBlock.fixture.tsx +0 -75
- package/src/components/BusinessBlock/BusinessBlock.tsx +0 -17
- package/src/components/BusinessBlock/BusinessBlock.ui.json +0 -29
- package/src/components/BusinessBlock/BusinessBlockContent.ts +0 -30
- package/src/components/BusinessBlock/BusinessCard.tsx +0 -42
package/bundle/bundle.umd.js
CHANGED
|
@@ -1181,7 +1181,10 @@
|
|
|
1181
1181
|
});
|
|
1182
1182
|
|
|
1183
1183
|
const SVG = JSX(({ className, viewBox, fill = 'none', width, height, paths, ...commonOptions }) => {
|
|
1184
|
-
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: pathFill, ...options }, i) =>
|
|
1184
|
+
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: pathFill, ...options }, i) => {
|
|
1185
|
+
const resultOptions = { ...commonOptions, ...options };
|
|
1186
|
+
return (jsx("path", { d: d, fill: pathFill || 'currentColor', stroke: resultOptions.stroke, strokeLinecap: resultOptions.strokeLinecap, strokeLinejoin: resultOptions.strokeLinejoin, strokeWidth: resultOptions.strokeWidth, strokeMiterlimit: resultOptions.strokeMiterlimit }, i));
|
|
1187
|
+
}) }));
|
|
1185
1188
|
});
|
|
1186
1189
|
|
|
1187
1190
|
const CHECK_PATHS = [
|
|
@@ -1407,7 +1410,7 @@
|
|
|
1407
1410
|
? image.sources
|
|
1408
1411
|
.filter((_) => _?.src)
|
|
1409
1412
|
.sort(sourcesComparator)
|
|
1410
|
-
.map(({ src, format, media }, index) => (jsx("source", { srcSet: adjustSrc(router, pathPrefix)(src), type: formatToMimeType(format), media: media ? `(max-width: ${media}px)` : '',
|
|
1413
|
+
.map(({ src, format, media }, index) => (jsx("source", { srcSet: adjustSrc(router, pathPrefix)(src), type: formatToMimeType(format), media: media ? `(max-width: ${media}px)` : '', width: image.size?.width, height: image.size?.height }, `${index}_${src}`)))
|
|
1411
1414
|
: null, image?.src
|
|
1412
1415
|
? renderImg({ ...image, src: adjustSrc(router, pathPrefix)(image.src) }, imageClassName)
|
|
1413
1416
|
: null] }));
|
|
@@ -1415,7 +1418,7 @@
|
|
|
1415
1418
|
const renderImg = (image, imageClassName = '') => (jsx("img", { src: image.src, className: style('object-contain', imageClassName), alt: image.alt || image.title, title: image.title || '', style: {
|
|
1416
1419
|
width: image.size?.width ? `${image.size?.width}px` : '100%',
|
|
1417
1420
|
height: image.size?.height ? `${image.size?.height}px` : 'auto',
|
|
1418
|
-
},
|
|
1421
|
+
}, width: image.size?.width, height: image.size?.height }));
|
|
1419
1422
|
const adjustSrc = (router, pathPrefix) => (src) => src && !isURL(src) ? adjustHref(router)(joinPath(pathPrefix, src)) : src;
|
|
1420
1423
|
const formatToMimeType = (format) => format ? `image/${String(format)}` : undefined;
|
|
1421
1424
|
|
|
@@ -1685,17 +1688,6 @@
|
|
|
1685
1688
|
? renderBonusBenefits(bonusBenefits, columnsCount, cardTextAlign)
|
|
1686
1689
|
: null] })));
|
|
1687
1690
|
|
|
1688
|
-
const BusinessCard = JSX((props) => {
|
|
1689
|
-
const { title, image, cardItems, button } = props;
|
|
1690
|
-
return (jsxs("div", { className: "border-gray border p-4xl w-1/2 space-y-lg", children: [image ? (jsxs("div", { className: "flex justify-center", children: [image?.src ? jsx(Img, { image: image }) : null, image?.icon ? jsx(Img, { image: image }) : null] })) : null, title ? jsx(Heading, { headingType: "h4", title: title }) : null, cardItems?.length ? (jsx("ul", { className: "space-y-s", children: cardItems.map((_, i) => renderItem(_, String(i))) })) : null, renderButtonsSection([button])] }));
|
|
1691
|
-
});
|
|
1692
|
-
const renderItem = (item, key) => {
|
|
1693
|
-
const { icon, text } = item;
|
|
1694
|
-
return (jsxs("li", { className: "flex items-center gap-s", children: [icon?.icon ? (jsx(Img, { image: icon, className: "w-12 h-12 min-w-12 p-s rounded-icon bg-main-divider" })) : null, icon?.src ? jsx(Img, { image: icon }) : null, jsx(Text, { size: "text-xl", font: "font-light", children: text })] }, key));
|
|
1695
|
-
};
|
|
1696
|
-
|
|
1697
|
-
const BusinessBlock = JSX(({ className, title, cards, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl space-y-3xl", ...rest, children: [jsx(Heading, { headingType: "h3", title: title, className: "text-center" }), jsx("div", { className: "flex gap-lg", children: cards?.length ? cards.map((_, i) => jsx(BusinessCard, { ..._ }, String(i))) : null })] })));
|
|
1698
|
-
|
|
1699
1691
|
const AlignJustifyStyle = {
|
|
1700
1692
|
start: 'justify-start',
|
|
1701
1693
|
center: 'justify-center',
|
|
@@ -2532,16 +2524,19 @@
|
|
|
2532
2524
|
};
|
|
2533
2525
|
const INITIAL_FORM_STATE = {
|
|
2534
2526
|
amount: 1500,
|
|
2535
|
-
_amount: 1500,
|
|
2536
2527
|
};
|
|
2537
2528
|
const CardTransfer = JSX(({ className = '', title = DEFAULT_TITLE, label = DEFAULT_LABEL, placeholder = DEFAULT_PLACEHOLDER, button, formType = 'private', ...rest }) => {
|
|
2538
|
-
const [{ amount
|
|
2539
|
-
const isDisabled =
|
|
2529
|
+
const [{ amount }, { field }] = useForm(INITIAL_FORM_STATE);
|
|
2530
|
+
const [isDisabled, setDisabled] = useState(false);
|
|
2531
|
+
useEffect(() => {
|
|
2532
|
+
setDisabled(amount <= 0);
|
|
2533
|
+
}, [amount]);
|
|
2540
2534
|
const buttonStyle = isDisabled
|
|
2541
2535
|
? getDisabledButtonClasses({ version: button?.version })
|
|
2542
2536
|
: getRegularButtonClasses({ className: 'text-white', version: button?.version });
|
|
2543
2537
|
const link = useLink();
|
|
2544
|
-
|
|
2538
|
+
const { onClick } = link(button || {});
|
|
2539
|
+
return (jsxs(BlockWrapper, { className: style('flex flex-col items-center', className), defaultPadding: "p-6xl", ...rest, children: [title ? (jsx(Heading, { className: "pb-lg xl:pb-4xl self-start xl:self-center", headingType: "h3", title: title })) : null, jsxs("form", { className: "w-full xl:max-w-[468px]", method: "POST", action: FORM_URL_MAP[formType], children: [jsx(CurrencyInput, { valid: !isDisabled, placeholder: placeholder, label: label, ...field('amount', { parse: Number, format: String }) }), jsx("input", { type: "hidden", name: "amount", value: amount }), button?.text ? (jsx("button", { type: "submit", className: style('w-full p-m mt-lg', buttonStyle), disabled: isDisabled, onClick: onClick, children: button.text })) : null] })] }));
|
|
2545
2540
|
});
|
|
2546
2541
|
|
|
2547
2542
|
const mapChildren = (mapper) => (children) => {
|
|
@@ -2626,7 +2621,7 @@
|
|
|
2626
2621
|
});
|
|
2627
2622
|
}
|
|
2628
2623
|
};
|
|
2629
|
-
return dotCount ? (jsx("div", { className: style('flex gap-xs', containerStyles[listType], version ? 'group' : '', className),
|
|
2624
|
+
return dotCount ? (jsx("div", { className: style('flex gap-xs', containerStyles[listType], version ? 'group' : '', className), "data-ver": version, children: new Array(dotCount).fill(null).map((_, idx) => (jsx("div", { className: `${dotStyle} ${idx === activeIndex ? activeDotStyles[listType] : inactiveDotStyle}`, role: "button", "aria-hidden": true, onClick: () => handleClick(idx) }, String(idx)))) })) : null;
|
|
2630
2625
|
});
|
|
2631
2626
|
|
|
2632
2627
|
const areArraysEqual = (as, bs) => as === bs || Boolean(as && bs && as?.length === bs?.length && as.every((_, i) => _ === bs[i]));
|
|
@@ -2898,10 +2893,10 @@
|
|
|
2898
2893
|
const LINK_CLASS_NAME = `absolute border
|
|
2899
2894
|
bg-white flex justify-between group-hover/link:text-primary-main`;
|
|
2900
2895
|
const LINK_BORDER_CLASS_NAME = 'hidden xl:block absolute w-full h-full border border-white';
|
|
2901
|
-
const CarouselLinkButton = JSX(({
|
|
2896
|
+
const CarouselLinkButton = JSX(({ className = '', ...linkProps }) => {
|
|
2902
2897
|
const link = useLink();
|
|
2903
|
-
const
|
|
2904
|
-
return text ? (jsx("div", { className: style('flex relative group/link pl-s pb-s min-w-[16rem] xl:min-w-[20rem]', className), children: jsxs("div", { className: "relative min-h-16 w-full", children: [jsxs("a", { className: style(LINK_CLASS_NAME, 'sm:rounded-md rounded-none w-full px-xl py-lg whitespace-nowrap z-10'), role: "link",
|
|
2898
|
+
const { text, href, target, onClick } = link(linkProps);
|
|
2899
|
+
return text ? (jsx("div", { className: style('flex relative group/link pl-s pb-s min-w-[16rem] xl:min-w-[20rem]', className), children: jsxs("div", { className: "relative min-h-16 w-full", children: [jsxs("a", { className: style(LINK_CLASS_NAME, 'sm:rounded-md rounded-none w-full px-xl py-lg whitespace-nowrap z-10'), role: "link", href: href, target: target, onClick: onClick, children: [jsx(Text, { size: "text-l", font: "font-light", color: "text-primary-text", children: text }), jsx(Img, { className: "group-hover/link:brightness-100 hidden xl:block ml-2xs", image: { icon: 'ArrowRightIcon', iconVersion: 'black' }, imageClassName: "group-hover/link:text-primary-main hidden xl:block", width: "24", height: "24" })] }), jsx("div", { className: style(LINK_BORDER_CLASS_NAME, '-bottom-1.5 -left-1.5') }), jsx("div", { className: style(LINK_BORDER_CLASS_NAME, '-bottom-3 -left-3') })] }) })) : null;
|
|
2905
2900
|
});
|
|
2906
2901
|
|
|
2907
2902
|
const MAX_LINKS_COUNT = 10;
|
|
@@ -4107,7 +4102,8 @@
|
|
|
4107
4102
|
.fill(null)
|
|
4108
4103
|
.map((_, i) => (jsx("div", { className: "w-[3px] h-[3px] rounded mr-2xs bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white" }, String(i)))) }), jsx("div", { className: style('absolute flex flex-col rounded-md bg-white p-xl pb-xs', visible ? '' : 'hidden'), "aria-hidden": !visible, children: items?.map((item, i) => {
|
|
4109
4104
|
const { text, ...linkProps } = item;
|
|
4110
|
-
|
|
4105
|
+
const { href, target, onClick } = link(linkProps);
|
|
4106
|
+
return (jsx("a", { className: style('text-l font-light pb-m hover:text-primary-main', item === activeItem ? 'text-primary-main' : ''), href: href, target: target, onClick: onClick, children: text }, href || String(i)));
|
|
4111
4107
|
}) })] }));
|
|
4112
4108
|
});
|
|
4113
4109
|
|
|
@@ -4378,11 +4374,11 @@
|
|
|
4378
4374
|
return `${parseFloat((bytes / Math.pow(KILO, i)).toFixed(decimals))} ${KILO_SIZES[i]}`;
|
|
4379
4375
|
};
|
|
4380
4376
|
|
|
4381
|
-
const LinkDocItem = JSX(({ icon, text, fileFormat, fileSize
|
|
4377
|
+
const LinkDocItem = JSX(({ icon, text, href, target, fileFormat, fileSize }) => {
|
|
4382
4378
|
const prefix = fileFormat || fileSize ? ',' : '';
|
|
4383
4379
|
const size = fileSize ?? '';
|
|
4384
4380
|
const format = fileFormat ? String(fileFormat) : '';
|
|
4385
|
-
return (jsxs("a", { className: "flex box-border gap-s group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main", role: "link",
|
|
4381
|
+
return (jsxs("a", { className: "flex box-border gap-s group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main", role: "link", href: href, target: target, children: [icon, text ? (jsxs(Text, { size: "text-l", font: "font-light", children: [text, jsx(Text, { color: "text-secondary-text", children: href && `${size} ${prefix} ${format}` })] })) : null] }));
|
|
4386
4382
|
});
|
|
4387
4383
|
|
|
4388
4384
|
const linkIconStyle = 'min-w-6 min-h-6';
|
|
@@ -5533,7 +5529,6 @@
|
|
|
5533
5529
|
BenefitsBlock,
|
|
5534
5530
|
Bonus,
|
|
5535
5531
|
BonusBenefitsBlock,
|
|
5536
|
-
BusinessBlock,
|
|
5537
5532
|
ButtonsBlock,
|
|
5538
5533
|
Calculator,
|
|
5539
5534
|
CardTransfer,
|
|
@@ -5783,16 +5778,12 @@
|
|
|
5783
5778
|
|
|
5784
5779
|
const LikeButton = JSX(({ className, onClick, ariaLabel }) => (jsx("button", { type: "button", className: `border-0 w-9 bg-inherit cursor-pointer ${className || ''}`, onClick: onClick, "aria-label": ariaLabel, children: renderLikeIcon() })));
|
|
5785
5780
|
const renderLikeIcon = () => {
|
|
5786
|
-
const
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
strokeWidth: '1.5',
|
|
5791
|
-
};
|
|
5792
|
-
return (jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [jsx("path", { ...params, strokeMiterlimit: "10",
|
|
5793
|
-
/* eslint-disable max-len */
|
|
5794
|
-
d: "M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77" }), jsx("path", { ...params, d: "M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z" })] }));
|
|
5781
|
+
const handPath = 'M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1' +
|
|
5782
|
+
' 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77';
|
|
5783
|
+
const cuffPath = 'M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z';
|
|
5784
|
+
return (jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [renderLinkIconPath(handPath), renderLinkIconPath(cuffPath)] }));
|
|
5795
5785
|
};
|
|
5786
|
+
const renderLinkIconPath = (d) => (jsx("path", { stroke: "#292D32", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", strokeMiterlimit: "10", d: d }));
|
|
5796
5787
|
|
|
5797
5788
|
const LikeControl = JSX(({ className = '' }) => {
|
|
5798
5789
|
const router = useRouter();
|
|
@@ -5818,7 +5809,7 @@
|
|
|
5818
5809
|
return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
|
|
5819
5810
|
}
|
|
5820
5811
|
|
|
5821
|
-
const packageVersion = "0.14.
|
|
5812
|
+
const packageVersion = "0.14.45";
|
|
5822
5813
|
|
|
5823
5814
|
exports.Blocks = Blocks;
|
|
5824
5815
|
exports.ContentPage = ContentPage;
|