@redneckz/wildless-cms-uni-blocks 0.14.407 → 0.14.409
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 +7 -6
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/model/LogoType.d.ts +2 -0
- package/dist/components/StepsBlock/StepsBlock.js +5 -4
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/model/LogoType.d.ts +2 -0
- package/dist/ui-kit/Logo/Logo.js +1 -1
- package/dist/ui-kit/Logo/Logo.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/StepsBlock/StepsBlock.js +5 -4
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/model/LogoType.d.ts +2 -0
- package/lib/ui-kit/Logo/Logo.js +1 -1
- package/lib/ui-kit/Logo/Logo.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +2 -2
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/model/LogoType.d.ts +2 -0
- package/mobile/dist/model/LogoType.d.ts +2 -0
- package/mobile/dist/ui-kit/Logo/Logo.js +1 -1
- package/mobile/dist/ui-kit/Logo/Logo.js.map +1 -1
- package/mobile/lib/model/LogoType.d.ts +2 -0
- package/mobile/lib/ui-kit/Logo/Logo.js +1 -1
- package/mobile/lib/ui-kit/Logo/Logo.js.map +1 -1
- package/mobile/src/model/LogoType.ts +2 -0
- package/mobile/src/ui-kit/Logo/Logo.tsx +1 -1
- package/package.json +1 -1
- package/src/components/StepsBlock/StepsBlock.tsx +12 -5
- package/src/model/LogoType.ts +2 -0
- package/src/ui-kit/Logo/Logo.tsx +1 -1
package/bundle/bundle.umd.js
CHANGED
|
@@ -3982,7 +3982,7 @@
|
|
|
3982
3982
|
'bg-white': 'text-primary-text',
|
|
3983
3983
|
transparent: 'text-white',
|
|
3984
3984
|
};
|
|
3985
|
-
const Logo = JSX(({ className, href = '/', logo, children, targetBlank, bgColor = 'bg-white', showTitle = true, data, }) => (jsxs("a", { className: style('inline-flex items-center font-sans no-underline', className), href: href, target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title ?? 'Россельхозбанк', ...getAspectsAttributes(data), children: [renderImage(bgColor, logo?.image, ICON_SIZE), showTitle
|
|
3985
|
+
const Logo = JSX(({ className, href = '/', logo, children, targetBlank, bgColor = 'bg-white', showTitle = true, data, }) => (jsxs("a", { className: style('inline-flex items-center font-sans no-underline', className), href: logo?.href ?? href, target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title ?? 'Россельхозбанк', ...getAspectsAttributes(data), children: [renderImage(bgColor, logo?.image, ICON_SIZE), showTitle
|
|
3986
3986
|
? children ?? (jsx("div", { className: "ml-s", children: jsx(Text, { font: "font-medium", color: TEXT_COLOR[bgColor], size: logoTitleSizeStyle, children: logo?.title ?? 'Россельхозбанк' }) }))
|
|
3987
3987
|
: null] })));
|
|
3988
3988
|
|
|
@@ -5730,14 +5730,15 @@
|
|
|
5730
5730
|
};
|
|
5731
5731
|
|
|
5732
5732
|
const getLineOpacity = (showLines) => (showLines ? '' : 'opacity-0');
|
|
5733
|
-
const getPaddingX = (steps) => (steps < 5 ? 'px-24' : 'px-16');
|
|
5734
5733
|
const StepsBlock = JSX(({ buttons, className = '', description, showLines = true, size = 'normal', steps = [], stepVersion = 'gray', title, version = 'primary', ...rest }) => {
|
|
5735
|
-
const
|
|
5734
|
+
const stepsLength = steps.length;
|
|
5735
|
+
const shortGaps = stepsLength > 3;
|
|
5736
5736
|
const styleMap = STEPS_BLOCK_STYLE;
|
|
5737
5737
|
const lineOpacity = getLineOpacity(showLines);
|
|
5738
|
-
const
|
|
5738
|
+
const paddingXNormal = stepsLength < 5 ? 'px-24' : 'px-16';
|
|
5739
|
+
const paddingXSmall = stepsLength < 5 ? 'px-28' : 'px-20';
|
|
5739
5740
|
const isMainButton = Boolean(buttons?.every((b) => b?.text));
|
|
5740
|
-
return (jsxs(BlockWrapper, { className: style('box-border flex flex-col items-center overflow-hidden gap-y-3xl', className), defaultPadding: "p-6xl", version: version, ...rest, children: [jsx(Headline, { headlineVersion: "S", title: title, description: description, isEmbedded: true, className: "w-full", align: AlignStyles }), steps?.length ? (jsxs("div", { className: "box-border space-y-lg flex flex-col justify-center", children: [jsx("div", { className: style('flex items-center',
|
|
5741
|
+
return (jsxs(BlockWrapper, { className: style('box-border flex flex-col items-center overflow-hidden gap-y-3xl', className), defaultPadding: "p-6xl", version: version, ...rest, children: [jsx(Headline, { headlineVersion: "S", title: title, description: description, isEmbedded: true, className: "w-full", align: AlignStyles }), steps?.length ? (jsxs("div", { className: "box-border space-y-lg flex flex-col justify-center", children: [jsx("div", { className: style('flex items-center', size === 'normal' ? paddingXNormal : paddingXSmall), children: joinList(jsx("div", { className: style('h-0.5 w-full bg-secondary-light flex-1', lineOpacity) }))(steps.map(renderStepIcon(styleMap, size, stepVersion))) }), jsx("div", { className: style('flex justify-between', shortGaps ? 'gap-x-s' : 'gap-x-20'), children: steps.map(renderStep({ styleMap, isMainButton, version })) })] })) : null, renderButtonsSection(buttons)] }));
|
|
5741
5742
|
});
|
|
5742
5743
|
const renderStepIcon = (styleMap, size, stepVersion) => ({ icon }, i) => {
|
|
5743
5744
|
const iconVersion = stepVersion === 'secondary' ? 'white' : 'color';
|
|
@@ -6388,7 +6389,7 @@
|
|
|
6388
6389
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6389
6390
|
});
|
|
6390
6391
|
|
|
6391
|
-
const packageVersion = "0.14.
|
|
6392
|
+
const packageVersion = "0.14.408";
|
|
6392
6393
|
|
|
6393
6394
|
exports.Blocks = Blocks;
|
|
6394
6395
|
exports.ContentPage = ContentPage;
|