@redneckz/wildless-cms-uni-blocks 0.14.233 → 0.14.234
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 +3 -3
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js +3 -2
- package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js +3 -2
- package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +3 -3
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js +3 -2
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js +3 -2
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +7 -2
- package/package.json +1 -1
- package/src/components/ProductBlock/renderBackwardButton.tsx +7 -2
package/bundle/bundle.umd.js
CHANGED
|
@@ -527,11 +527,11 @@
|
|
|
527
527
|
const RegularButton = JSX(({ className = '', href, rel, target, ariaLabel, version, rounded, onClick, type, data, children, }) => (jsx("a", { className: getRegularButtonClasses({ className, version, rounded }), href: href, rel: rel, target: target, "aria-label": ariaLabel, role: href ? 'link' : 'button', onClick: onClick, type: type, ...dataAttributes(data), children: children })));
|
|
528
528
|
const DisabledButton = JSX(({ className, ariaLabel, version, rounded, children }) => (jsx("button", { type: "button", "aria-disabled": "true", "aria-label": ariaLabel, tabIndex: -1, className: getDisabledButtonClasses({ className, rounded, version }), children: children })));
|
|
529
529
|
|
|
530
|
-
function renderBackwardButton(version, handleClick) {
|
|
530
|
+
function renderBackwardButton(version, handleClick, alwaysVisible = false) {
|
|
531
531
|
const iconVersion = version === 'primary' ? 'white' : 'black';
|
|
532
532
|
const className = 'w-12 h-12 min-h-12 min-w-12 flex items-center justify-center';
|
|
533
533
|
const text = 'Вернуться назад';
|
|
534
|
-
return (jsxs("div", { className:
|
|
534
|
+
return (jsxs("div", { className: style(alwaysVisible ? 'flex' : 'hidden sm:flex', 'items-center gap-s'), children: [jsx("div", { className: getRegularButtonClasses({ className, version, rounded: true }), onClick: handleClick, children: jsx(Img, { className: "w-4 h-4", image: {
|
|
535
535
|
icon: 'ArrowLeftIcon',
|
|
536
536
|
iconVersion: iconVersion,
|
|
537
537
|
} }) }), jsx(LinkButton, { version: "link", className: "group-data-secondary:text-white/80", text: text, ariaLabel: text, onClick: handleClick, type: "button" })] }));
|
|
@@ -6015,7 +6015,7 @@
|
|
|
6015
6015
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6016
6016
|
});
|
|
6017
6017
|
|
|
6018
|
-
const packageVersion = "0.14.
|
|
6018
|
+
const packageVersion = "0.14.233";
|
|
6019
6019
|
|
|
6020
6020
|
exports.Blocks = Blocks;
|
|
6021
6021
|
exports.ContentPage = ContentPage;
|