@redneckz/wildless-cms-uni-blocks 0.7.8 → 0.7.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/bundle.umd.js +12 -6
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +7 -0
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/ErrorBlock/ErrorBlock.js +3 -1
- package/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/dist/components/Header/DropdownMenu.js +4 -1
- package/dist/components/Header/DropdownMenu.js.map +1 -1
- package/dist/components/OtherProductsItem/OtherProductsItem.js +3 -1
- package/dist/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
- package/dist/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +7 -0
- package/dist/ui-kit/SlideCheckbox/SlideCheckbox.js +7 -0
- package/dist/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -0
- 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/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/ErrorBlock/ErrorBlock.js +3 -1
- package/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/lib/components/Header/DropdownMenu.js +4 -1
- package/lib/components/Header/DropdownMenu.js.map +1 -1
- package/lib/components/OtherProductsItem/OtherProductsItem.js +3 -1
- package/lib/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
- package/lib/components/SwipeListControlBlock/SwipeListControlBlock.fixture.d.ts +1 -0
- package/lib/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +7 -0
- package/lib/ui-kit/SlideCheckbox/SlideCheckbox.fixture.d.ts +5 -0
- package/lib/ui-kit/SlideCheckbox/SlideCheckbox.js +5 -0
- package/lib/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -0
- 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 +2 -2
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +7 -0
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js +3 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/dist/components/Header/DropdownMenu.js +4 -1
- package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js +3 -1
- package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
- package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +7 -0
- package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.js +7 -0
- package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js +3 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/lib/components/Header/DropdownMenu.js +4 -1
- package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js +3 -1
- package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
- package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +7 -0
- package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.js +5 -0
- package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -0
- 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/CarouselRecommendationCard/CarouselRecommendationCard.tsx +5 -1
- package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +10 -1
- package/mobile/src/components/Header/DropdownMenu.tsx +16 -12
- package/mobile/src/components/OtherProductsItem/OtherProductsItem.tsx +3 -1
- package/mobile/src/components/SwipeListControlBlock/SwipeListControlBlock.example.json +1 -1
- package/mobile/src/ui-kit/SlideCheckbox/SlideCheckbox.tsx +33 -0
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
- package/package.json +1 -1
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +1 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +5 -1
- package/src/components/ErrorBlock/ErrorBlock.tsx +10 -1
- package/src/components/Header/DropdownMenu.tsx +16 -12
- package/src/components/OtherProductsItem/OtherProductsItem.tsx +3 -1
- package/src/components/SwipeListControlBlock/SwipeListControlBlock.example.json +1 -1
- package/src/components/SwipeListControlBlock/SwipeListControlBlock.fixture.tsx +17 -0
- package/src/ui-kit/SlideCheckbox/SlideCheckbox.fixture.tsx +9 -0
- package/src/ui-kit/SlideCheckbox/SlideCheckbox.tsx +33 -0
- package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
package/bundle/bundle.umd.js
CHANGED
|
@@ -1775,7 +1775,7 @@
|
|
|
1775
1775
|
const tileTitle = title ? (jsx(Heading, { headingType: "h5", as: "h3", className: "mb-3.5 z-10", title: title })) : null;
|
|
1776
1776
|
const tileImage = image?.src ? (jsx(ImgInner, { className: "absolute bottom-0 right-0 m-0", image: image })) : null;
|
|
1777
1777
|
const BORDER_STYLE = 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider';
|
|
1778
|
-
return (jsx(BlockWrapper, { className: style('relative p-7 min-w-[524px] text-left box-border group-data-gray:bg-main-divider/50', BORDER_STYLE, className), version: version, ...rest, children: jsx(BaseTile, { className: "flex justify-between", title: tileTitle, image: tileImage, children: jsxs("div", { className: "h-full flex flex-col justify-between", children: [description ? jsx("span", { className: "mb-2", children: description }) : null, items.length ? (jsx(List, { className: "text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]", items: items })) : null, socialMedia.length ? jsx(SocialMedia, { className: "pt-10 pb-0", media: socialMedia }) : null, renderButtonsSection([button], { className: 'pt-2 mt-16' })] }) }) }));
|
|
1778
|
+
return (jsx(BlockWrapper, { className: style('relative p-7 min-w-[524px] text-left box-border group-data-gray:bg-main-divider/50', BORDER_STYLE, className), version: version, ...rest, children: jsx(BaseTile, { className: "flex justify-between", title: tileTitle, image: tileImage, children: jsxs("div", { className: "h-full flex flex-col justify-between", children: [description ? (jsx("span", { className: "mb-2 group-data-gray:text-secondary-text group-data-gray:max-w-[265px]", children: description })) : null, items.length ? (jsx(List, { className: "text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]", items: items })) : null, socialMedia.length ? jsx(SocialMedia, { className: "pt-10 pb-0", media: socialMedia }) : null, renderButtonsSection([button], { className: 'pt-2 mt-16' })] }) }) }));
|
|
1779
1779
|
});
|
|
1780
1780
|
|
|
1781
1781
|
const VISIBLE_CELLS_COUNT = 1;
|
|
@@ -1895,7 +1895,8 @@
|
|
|
1895
1895
|
}
|
|
1896
1896
|
return null;
|
|
1897
1897
|
};
|
|
1898
|
-
const
|
|
1898
|
+
const getErrorBlockStyle = (text) => (text ? 'py-20 pt-3 pb-1' : 'mb-16 pb-2 mt-24 pt-3');
|
|
1899
|
+
const ErrorBlock = JSX(({ className = '', title, subtitle, error, button }) => (jsxs("section", { className: style('flex flex-col justify-center items-center', getErrorBlockStyle(button?.text), className), children: [jsx("div", { className: "flex justify-center py-20", children: renderErrorContent(error) }), title ? jsx(Heading, { headingType: "h1", className: "text-left mb-4", title: title }) : null, subtitle ? (jsx("div", { className: "font-sans text-xl-light mb-7 max-w-[613px] text-center", children: subtitle })) : null, button?.text ? (jsx(Button, { className: "py-4 px-9", version: button?.version, ...button, children: button.text })) : null] })));
|
|
1899
1900
|
|
|
1900
1901
|
var Currency;
|
|
1901
1902
|
(function (Currency) {
|
|
@@ -2516,7 +2517,10 @@
|
|
|
2516
2517
|
const ref = useOutsideClick(handleClickOutside);
|
|
2517
2518
|
return (jsxs("div", { className: style(visible ? 'bg-white rounded-md shadow-blue-gray' : '', className), ref: ref, children: [jsx("button", { className: "group/btn flex justify-between items-center h-6 ml-6", "aria-label": `${visible ? 'Скрыть другие разделы' : 'Показать другие разделы'}`, onClick: handleToggle, children: Array(3)
|
|
2518
2519
|
.fill(null)
|
|
2519
|
-
.map((_, i) => (jsx("div", { className: "w-[3px] h-[3px] rounded mr-1 bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white" }, String(i)))) }), jsx("div", { className: style('flex flex-col rounded-md bg-white p-6 pb-2', visible ? '' : 'hidden'), "aria-hidden": !visible, children: items?.map((item, i) =>
|
|
2520
|
+
.map((_, i) => (jsx("div", { className: "w-[3px] h-[3px] rounded mr-1 bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white" }, String(i)))) }), jsx("div", { className: style('flex flex-col rounded-md bg-white p-6 pb-2', visible ? '' : 'hidden'), "aria-hidden": !visible, children: items?.map((item, i) => {
|
|
2521
|
+
const { text, ...linkProps } = item;
|
|
2522
|
+
return (jsx("a", { className: style('text-l-light pb-4 hover:text-primary-main', item === activeItem ? 'text-primary-main' : ''), ...link(linkProps), children: text }, item.href || String(i)));
|
|
2523
|
+
}) })] }));
|
|
2520
2524
|
});
|
|
2521
2525
|
|
|
2522
2526
|
const HeaderItem = JSX(({ className = '', active, dataItemName, children, ...rest }) => {
|
|
@@ -3176,7 +3180,9 @@
|
|
|
3176
3180
|
const { colorPalette } = getParentBlockContent(rest.options, {});
|
|
3177
3181
|
return (jsx("div", { className: `border-0 border-b border-solid border-main-divider ${className}`, children: jsx(Foldable, { unfoldedByDefault: unfoldedByDefault, renderFoldableSection: ({ isUnfolded }) => (jsx("div", { className: "box-border", children: jsx(FoldableSection, { className: "grid grid-cols-12 gap-1 border-box", isUnfolded: isUnfolded, children: renderChildren(rest) }) })), renderFoldButton: ({ isUnfolded, onToggle }) => (jsx(DefaultFoldButton, { label: label, icon: icons[Number(isUnfolded)], dataTheme: colorPalette || rest.options?.page?.colorPalette, onClick: onToggle })) }) }));
|
|
3178
3182
|
});
|
|
3179
|
-
OtherProductsItem.childrenTypes =
|
|
3183
|
+
OtherProductsItem.childrenTypes = {
|
|
3184
|
+
exclude: ['OtherProductsItem'],
|
|
3185
|
+
};
|
|
3180
3186
|
|
|
3181
3187
|
const ParagraphBlock = JSX(({ text, size, align, font, children, ...rest }) => (jsx(BlockWrapper, { ...rest, children: jsx(Paragraph, { size: size, align: align, font: font, children: text || children }) })));
|
|
3182
3188
|
|
|
@@ -3643,7 +3649,7 @@
|
|
|
3643
3649
|
'horizontal-list': 'w-6',
|
|
3644
3650
|
'vertical-list': 'h-6',
|
|
3645
3651
|
};
|
|
3646
|
-
const dotStyle = 'cursor-pointer bg-primary-main rounded-full transition-width duration-300 group-data-secondary:bg-white';
|
|
3652
|
+
const dotStyle = 'cursor-pointer bg-primary-main rounded-full transition-width duration-300 group-data-secondary:bg-white group-data-transparent:bg-white';
|
|
3647
3653
|
const inactiveDotStyle = 'w-2 h-2 opacity-30';
|
|
3648
3654
|
const SwipeListControlDots = JSX(({ containerRef, activeIndex, dotCount = 0, listType = 'horizontal-list' }) => {
|
|
3649
3655
|
const handleClick = (idx) => {
|
|
@@ -4242,7 +4248,7 @@
|
|
|
4242
4248
|
return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-lg sticky bottom-0 pointer-events-auto" }) }));
|
|
4243
4249
|
}
|
|
4244
4250
|
|
|
4245
|
-
const packageVersion = "0.7.
|
|
4251
|
+
const packageVersion = "0.7.9";
|
|
4246
4252
|
|
|
4247
4253
|
exports.Blocks = Blocks;
|
|
4248
4254
|
exports.ContentPage = ContentPage;
|