@redneckz/wildless-cms-uni-blocks 0.14.537 → 0.14.539
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 +19 -19
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/model/AspectsProps.d.ts +9 -1
- package/dist/components/ApplicationForm/renderContacts.js +1 -1
- package/dist/components/ApplicationForm/renderContacts.js.map +1 -1
- package/dist/components/Footer/SocialMedia.js +1 -1
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/Header/DropdownMenu.js +3 -3
- package/dist/components/Header/DropdownMenu.js.map +1 -1
- package/dist/components/Header/HeaderSecondaryMenuButton.js +1 -1
- package/dist/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/dist/components/Header/HeaderTop.js +1 -1
- package/dist/components/Header/HeaderTop.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/dist/model/AspectsProps.d.ts +9 -1
- package/dist/ui-kit/Badge/Badge.js +1 -1
- package/dist/ui-kit/Badge/Badge.js.map +1 -1
- package/dist/ui-kit/Calculator/renderBinaryRadioButtonGroup.js +1 -1
- package/dist/ui-kit/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
- package/dist/ui-kit/Checkbox/Checkbox.js +1 -1
- package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/dist/ui-kit/LinkButton/LinkButton.js +1 -1
- package/dist/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/dist/ui-kit/TabsControl/TabItemInner.js +2 -2
- package/dist/ui-kit/TabsControl/TabItemInner.js.map +1 -1
- package/dist/ui-kit/TabsControl/TabsControl.js +1 -1
- package/dist/ui-kit/TabsControl/TabsControl.js.map +1 -1
- package/dist/ui-kit/TabsControl/renderTabItemInner.js +1 -1
- package/dist/ui-kit/TabsControl/renderTabItemInner.js.map +1 -1
- package/dist/ui-kit/TopItem/TopItem.js +1 -1
- package/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/lib/components/ApplicationForm/renderContacts.js +1 -1
- package/lib/components/ApplicationForm/renderContacts.js.map +1 -1
- package/lib/components/Footer/SocialMedia.js +1 -1
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/Header/DropdownMenu.js +3 -3
- package/lib/components/Header/DropdownMenu.js.map +1 -1
- package/lib/components/Header/HeaderSecondaryMenuButton.js +1 -1
- package/lib/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/lib/components/Header/HeaderTop.js +1 -1
- package/lib/components/Header/HeaderTop.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/lib/model/AspectsProps.d.ts +9 -1
- package/lib/ui-kit/Badge/Badge.js +1 -1
- package/lib/ui-kit/Badge/Badge.js.map +1 -1
- package/lib/ui-kit/Calculator/renderBinaryRadioButtonGroup.js +1 -1
- package/lib/ui-kit/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
- package/lib/ui-kit/Checkbox/Checkbox.js +1 -1
- package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/lib/ui-kit/LinkButton/LinkButton.js +1 -1
- package/lib/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/lib/ui-kit/TabsControl/TabItemInner.js +2 -2
- package/lib/ui-kit/TabsControl/TabItemInner.js.map +1 -1
- package/lib/ui-kit/TabsControl/TabsControl.js +1 -1
- package/lib/ui-kit/TabsControl/TabsControl.js.map +1 -1
- package/lib/ui-kit/TabsControl/renderTabItemInner.js +1 -1
- package/lib/ui-kit/TabsControl/renderTabItemInner.js.map +1 -1
- package/lib/ui-kit/TopItem/TopItem.js +1 -1
- package/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +13 -13
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/model/AspectsProps.d.ts +9 -1
- package/mobile/dist/components/ApplicationForm/renderContacts.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderContacts.js.map +1 -1
- package/mobile/dist/components/Footer/SocialMedia.js +1 -1
- package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/dist/components/Header/DropdownMenu.js +3 -3
- package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenuButton.js +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/mobile/dist/components/Header/HeaderTop.js +1 -1
- package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/dist/model/AspectsProps.d.ts +9 -1
- package/mobile/dist/ui-kit/Badge/Badge.js +1 -1
- package/mobile/dist/ui-kit/Badge/Badge.js.map +1 -1
- package/mobile/dist/ui-kit/Calculator/renderBinaryRadioButtonGroup.js +1 -1
- package/mobile/dist/ui-kit/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js +1 -1
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/dist/ui-kit/LinkButton/LinkButton.js +1 -1
- package/mobile/dist/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/mobile/dist/ui-kit/TabsControl/TabItemInner.js +2 -2
- package/mobile/dist/ui-kit/TabsControl/TabItemInner.js.map +1 -1
- package/mobile/dist/ui-kit/TabsControl/TabsControl.js +1 -1
- package/mobile/dist/ui-kit/TabsControl/TabsControl.js.map +1 -1
- package/mobile/dist/ui-kit/TabsControl/renderTabItemInner.js +1 -1
- package/mobile/dist/ui-kit/TabsControl/renderTabItemInner.js.map +1 -1
- package/mobile/dist/ui-kit/TopItem/TopItem.js +1 -1
- package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderContacts.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderContacts.js.map +1 -1
- package/mobile/lib/components/Footer/SocialMedia.js +1 -1
- package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/lib/components/Header/DropdownMenu.js +3 -3
- package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenuButton.js +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/mobile/lib/components/Header/HeaderTop.js +1 -1
- package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/lib/model/AspectsProps.d.ts +9 -1
- package/mobile/lib/ui-kit/Badge/Badge.js +1 -1
- package/mobile/lib/ui-kit/Badge/Badge.js.map +1 -1
- package/mobile/lib/ui-kit/Calculator/renderBinaryRadioButtonGroup.js +1 -1
- package/mobile/lib/ui-kit/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js +1 -1
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/lib/ui-kit/LinkButton/LinkButton.js +1 -1
- package/mobile/lib/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/mobile/lib/ui-kit/TabsControl/TabItemInner.js +2 -2
- package/mobile/lib/ui-kit/TabsControl/TabItemInner.js.map +1 -1
- package/mobile/lib/ui-kit/TabsControl/TabsControl.js +1 -1
- package/mobile/lib/ui-kit/TabsControl/TabsControl.js.map +1 -1
- package/mobile/lib/ui-kit/TabsControl/renderTabItemInner.js +1 -1
- package/mobile/lib/ui-kit/TabsControl/renderTabItemInner.js.map +1 -1
- package/mobile/lib/ui-kit/TopItem/TopItem.js +1 -1
- package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/src/components/ApplicationForm/renderContacts.tsx +2 -2
- package/mobile/src/components/Footer/SocialMedia.tsx +4 -1
- package/mobile/src/components/Header/DropdownMenu.tsx +4 -2
- package/mobile/src/components/Header/HeaderSecondaryMenuButton.tsx +1 -1
- package/mobile/src/components/Header/HeaderTop.tsx +1 -1
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +1 -1
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +1 -1
- package/mobile/src/model/AspectsProps.ts +15 -1
- package/mobile/src/ui-kit/Badge/Badge.tsx +1 -0
- package/mobile/src/ui-kit/Calculator/renderBinaryRadioButtonGroup.tsx +2 -2
- package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +1 -0
- package/mobile/src/ui-kit/LinkButton/LinkButton.tsx +2 -1
- package/mobile/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +5 -1
- package/mobile/src/ui-kit/TabsControl/TabItemInner.tsx +8 -1
- package/mobile/src/ui-kit/TabsControl/TabsControl.tsx +1 -0
- package/mobile/src/ui-kit/TabsControl/renderTabItemInner.tsx +1 -1
- package/mobile/src/ui-kit/TopItem/TopItem.tsx +1 -1
- package/package.json +1 -1
- package/src/components/ApplicationForm/renderContacts.tsx +2 -2
- package/src/components/Footer/SocialMedia.tsx +4 -1
- package/src/components/Header/DropdownMenu.tsx +4 -2
- package/src/components/Header/HeaderSecondaryMenuButton.tsx +1 -1
- package/src/components/Header/HeaderTop.tsx +1 -1
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +1 -1
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +1 -1
- package/src/model/AspectsProps.ts +15 -1
- package/src/ui-kit/Badge/Badge.tsx +1 -0
- package/src/ui-kit/Calculator/renderBinaryRadioButtonGroup.tsx +2 -2
- package/src/ui-kit/Checkbox/Checkbox.tsx +1 -0
- package/src/ui-kit/LinkButton/LinkButton.tsx +2 -1
- package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +5 -1
- package/src/ui-kit/TabsControl/TabItemInner.tsx +8 -1
- package/src/ui-kit/TabsControl/TabsControl.tsx +1 -0
- package/src/ui-kit/TabsControl/renderTabItemInner.tsx +1 -1
- package/src/ui-kit/TopItem/TopItem.tsx +1 -1
package/bundle/bundle.umd.js
CHANGED
|
@@ -580,7 +580,7 @@
|
|
|
580
580
|
const buttonInner = children ?? jsx(ButtonInner, { ...adjustedProps });
|
|
581
581
|
return disabled ? (jsx(DisabledButton, { ...adjustedProps, children: buttonInner })) : (jsx(RegularButton, { ...adjustedProps, children: buttonInner }));
|
|
582
582
|
});
|
|
583
|
-
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
|
|
583
|
+
const RegularButton = JSX(({ className = '', href, rel, target, ariaLabel, version, rounded, onClick, type, data, children, text, }) => (jsx("a", { className: getRegularButtonClasses({ className, version, rounded }), href: href, rel: rel, target: target, "aria-label": ariaLabel || `Ссылка на ${text}`, role: href ? 'link' : 'button', onClick: onClick, type: type, ...getAspectsAttributes(data), children: children })));
|
|
584
584
|
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 })));
|
|
585
585
|
|
|
586
586
|
function renderBackwardButton({ version, handleClick, text = 'Вернуться назад', alwaysVisible = false, }) {
|
|
@@ -1208,7 +1208,7 @@
|
|
|
1208
1208
|
onChange && onChange(!value);
|
|
1209
1209
|
}, [onChange, disabled, value]);
|
|
1210
1210
|
const icon = isRadio ? (jsx("div", { className: "absolute left-1 w-3 h-3 rounded-full bg-primary-main" })) : (jsx(SVG, { paths: CHECK_PATHS, className: "absolute left-1 ml-px block", width: "11", height: "9", fill: "white", viewBox: "0 0 11 9" }));
|
|
1211
|
-
return (jsx("div", { className: className, children: jsxs("label", { className: style('flex items-center relative group/box', getCursorStyle(disabled)), onClick: handleChange, children: [jsx("div", { className: style(defaultCheckStyle, 'm-0', isRadio ? 'rounded-full border-2' : checkboxStyle(value), !disabled && value ? 'border-primary-main' : 'border-gray', disabled ? 'bg-main-disabled' : 'group-hover/box:border-primary-hover'), role: role(isRadio), "aria-checked": Boolean(value), "aria-disabled": Boolean(disabled) }), value ? icon : null, renderText$1(text)] }) }));
|
|
1211
|
+
return (jsx("div", { className: className, children: jsxs("label", { className: style('flex items-center relative group/box', getCursorStyle(disabled)), onClick: handleChange, children: [jsx("div", { className: style(defaultCheckStyle, 'm-0', isRadio ? 'rounded-full border-2' : checkboxStyle(value), !disabled && value ? 'border-primary-main' : 'border-gray', disabled ? 'bg-main-disabled' : 'group-hover/box:border-primary-hover'), role: role(isRadio), "aria-checked": Boolean(value), "aria-disabled": Boolean(disabled), "aria-label": text }), value ? icon : null, renderText$1(text)] }) }));
|
|
1212
1212
|
});
|
|
1213
1213
|
const renderText$1 = (text) => text ? (jsx("div", { className: "ml-s", children: jsx(Text, { size: "text-l", font: "font-light", children: text }) })) : null;
|
|
1214
1214
|
const getCursorStyle = (disabled = false) => (disabled ? 'cursor-not-allowed' : 'cursor-pointer');
|
|
@@ -1979,7 +1979,7 @@
|
|
|
1979
1979
|
const agreementText = 'Нажимая кнопку, вы подтверждаете согласие с ';
|
|
1980
1980
|
const renderAgreementSubmit = (consentDataProcessing, link, button) => (jsxs("div", { className: "flex col-span-2 gap-xs flex-col w-full items-baseline", children: [consentDataProcessing ? (jsxs("div", { children: [jsxs("div", { className: "flex gap-3 items-center", children: [jsx(Checkbox, { ...consentDataProcessing }), jsx(Footnote, { link: link })] }), renderErrorText(withValidator(consentDataProcessing, agreementValidator).error)] })) : (jsx(Footnote, { text: agreementText, link: link })), renderSubmitButton(button)] }));
|
|
1981
1981
|
|
|
1982
|
-
const renderContacts = () => (jsxs("div", { className: "space-y-m", children: [jsx(Heading, { headingType: "h6", title: "\u0418\u043B\u0438 \u0441\u0432\u044F\u0436\u0438\u0442\u0435\u0441\u044C \u0441 \u043D\u0430\u043C\u0438 \u0443\u0434\u043E\u0431\u043D\u044B\u043C \u0441\u043F\u043E\u0441\u043E\u0431\u043E\u043C", className: "@xl:text-center" }), jsxs("div", { className: "flex sm:justify-center gap-xl", children: [jsxs("a", { className: "flex gap-s items-center text-primary-text no-underline", href: `tel:8 (800) 200-78-70`, "aria-label": "8 (800) 200-78-70", children: [jsx(Img, { image: { icon: 'PhoneIcon' }, width: "24", height: "24" }), jsx("span", { children: "8 (800) 200-78-70" })] }), jsxs("a", { className: "flex gap-s items-center text-primary-text no-underline", "aria-label": "ved@rshb.ru", href: `mailto:ved@rshb.ru`, children: [jsx(Img, { image: { icon: 'MailIcon' }, width: "24", height: "24" }), jsx("span", { children: "ved@rshb.ru" })] })] })] }));
|
|
1982
|
+
const renderContacts = () => (jsxs("div", { className: "space-y-m", children: [jsx(Heading, { headingType: "h6", title: "\u0418\u043B\u0438 \u0441\u0432\u044F\u0436\u0438\u0442\u0435\u0441\u044C \u0441 \u043D\u0430\u043C\u0438 \u0443\u0434\u043E\u0431\u043D\u044B\u043C \u0441\u043F\u043E\u0441\u043E\u0431\u043E\u043C", className: "@xl:text-center" }), jsxs("div", { className: "flex sm:justify-center gap-xl", children: [jsxs("a", { className: "flex gap-s items-center text-primary-text no-underline", href: `tel:8 (800) 200-78-70`, "aria-label": "\u0442\u0435\u043B\u0435\u0444\u043E\u043D 8 (800) 200-78-70", children: [jsx(Img, { image: { icon: 'PhoneIcon' }, width: "24", height: "24" }), jsx("span", { children: "8 (800) 200-78-70" })] }), jsxs("a", { className: "flex gap-s items-center text-primary-text no-underline", "aria-label": "\u043F\u043E\u0447\u0442\u0430 ved@rshb.ru", href: `mailto:ved@rshb.ru`, children: [jsx(Img, { image: { icon: 'MailIcon' }, width: "24", height: "24" }), jsx("span", { children: "ved@rshb.ru" })] })] })] }));
|
|
1983
1983
|
|
|
1984
1984
|
const API = LeadServiceAPI();
|
|
1985
1985
|
const ApplicationForm = JSX(
|
|
@@ -2681,9 +2681,9 @@
|
|
|
2681
2681
|
horizontal: 'gap-5xl',
|
|
2682
2682
|
vertical: 'flex-col gap-s',
|
|
2683
2683
|
};
|
|
2684
|
-
const RadioButtonGroup = JSX(({ items, checkedItem, className, onChange: onChangeCheckedItem, disabled = false, orientation = 'horizontal', }) => (jsx("div", { className: style(`flex ${orientationStyleMap[orientation]}`, className), role: "radiogroup", children: items?.map(({ id, text }) => (jsx(Checkbox, { isRadio: true, text: text, value: checkedItem === id, onChange: () => onChangeCheckedItem && onChangeCheckedItem(id), disabled: disabled }, String(id)))) })));
|
|
2684
|
+
const RadioButtonGroup = JSX(({ items, checkedItem, className, onChange: onChangeCheckedItem, disabled = false, orientation = 'horizontal', }) => (jsx("div", { className: style(`flex ${orientationStyleMap[orientation]}`, className), role: "radiogroup", "aria-label": "\u0413\u0440\u0443\u043F\u043F\u0430 \u043A\u043D\u043E\u043F\u043E\u043A", children: items?.map(({ id, text }) => (jsx(Checkbox, { isRadio: true, text: text, value: checkedItem === id, onChange: () => onChangeCheckedItem && onChangeCheckedItem(id), disabled: disabled }, String(id)))) })));
|
|
2685
2685
|
|
|
2686
|
-
const renderBinaryRadioButtonGroup = ({ items, title, mobileTitle = title, orientation = 'horizontal', value, onChange, ...rest }) => (jsxs("div", { className: "grid gap-s whitespace-nowrap", children: [title ? (jsx("div", { className: "hidden @5xl:block", children: jsx(Text, { color: "text-secondary-text", font: "font-light", children: title }) })) : null, mobileTitle ? (jsx("div", { className: "@5xl:hidden", children: jsx(Text, { color: "text-secondary-text", font: "font-light", children: mobileTitle }) })) : null, jsx(RadioButtonGroup, { orientation: orientation, items: items, checkedItem: items[value ? 0 : 1].id, onChange: (_) => onChange && onChange(_ === items[0].id), ...rest })] }));
|
|
2686
|
+
const renderBinaryRadioButtonGroup = ({ items, title, mobileTitle = title, orientation = 'horizontal', value, onChange, ...rest }) => (jsxs("div", { className: "grid gap-s whitespace-nowrap", children: [title ? (jsx("div", { className: "hidden @5xl:block", role: "radiogroup", "aria-label": title, children: jsx(Text, { color: "text-secondary-text", font: "font-light", children: title }) })) : null, mobileTitle ? (jsx("div", { className: "@5xl:hidden", role: "radiogroup", "aria-label": mobileTitle, children: jsx(Text, { color: "text-secondary-text", font: "font-light", children: mobileTitle }) })) : null, jsx(RadioButtonGroup, { orientation: orientation, items: items, checkedItem: items[value ? 0 : 1].id, onChange: (_) => onChange && onChange(_ === items[0].id), ...rest })] }));
|
|
2687
2687
|
|
|
2688
2688
|
const renderPayout = (props) => renderBinaryRadioButtonGroup({
|
|
2689
2689
|
...props,
|
|
@@ -3651,7 +3651,7 @@
|
|
|
3651
3651
|
const buttonClassName = style('border border-solid hover:border-transparent border-main-divider', 'group-data-primary:border-main-divider group-data-gray:border-green group/media', {
|
|
3652
3652
|
'basis-auto': !showButtonText && !hasText,
|
|
3653
3653
|
}, getStretchedStyle(stretched));
|
|
3654
|
-
return (jsxs("div", { className: style('flex flex-col gap-m xl:gap-xs', className), children: [jsx("div", { className: "flex gap-xs", children: renderButtonsSection(buttons, {
|
|
3654
|
+
return (jsxs("div", { className: style('flex flex-col gap-m xl:gap-xs', className), "aria-label": "\u0421\u043E\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0435 \u0441\u0435\u0442\u0438", children: [jsx("div", { className: "flex gap-xs", children: renderButtonsSection(buttons, {
|
|
3655
3655
|
className: getClassName(hasText ?? false, stretched ?? false, showButtonText),
|
|
3656
3656
|
buttonClassName,
|
|
3657
3657
|
}) }), children ? (jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: children })) : null] }));
|
|
@@ -4388,7 +4388,7 @@
|
|
|
4388
4388
|
return isURL(href) ? router.href : joinPath(basePath, router.pathname);
|
|
4389
4389
|
};
|
|
4390
4390
|
|
|
4391
|
-
const DropdownMenu = JSX(({ className = '', items, activeItem, ariaLabel }) => {
|
|
4391
|
+
const DropdownMenu = JSX(({ className = '', items, activeItem, ariaLabel = 'Меню' }) => {
|
|
4392
4392
|
const [isVisible, { setFalse, toggle }] = useBool(false);
|
|
4393
4393
|
const ref = useOutsideClick(setFalse);
|
|
4394
4394
|
const dropdownRef = useRef(null);
|
|
@@ -4414,7 +4414,7 @@
|
|
|
4414
4414
|
useEffect(() => {
|
|
4415
4415
|
changeDropdownPosition({ isOpened: isVisible, buttonRef: ref, menuRef: dropdownRef });
|
|
4416
4416
|
}, [isVisible]);
|
|
4417
|
-
return (jsxs("div", { className: style(isVisible ? 'rounded-md shadow-blue-gray' : '', className), ref: ref, role: "navigation", children: [jsx("button", { type: "button", className: "group/btn flex justify-between items-center h-6", "aria-label": ariaLabel, onClick: toggle, children: Array(3)
|
|
4417
|
+
return (jsxs("div", { className: style(isVisible ? 'rounded-md shadow-blue-gray' : '', className), ref: ref, role: "navigation", children: [jsx("button", { type: "button", className: "group/btn flex justify-between items-center h-6", "aria-label": ariaLabel, onClick: toggle, role: "button", "aria-labelledby": "labeldiv", children: Array(3)
|
|
4418
4418
|
.fill(null)
|
|
4419
4419
|
.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", { ref: dropdownRef, className: style('absolute flex flex-col rounded-md bg-white p-xl pb-xs w-56 z-40', {
|
|
4420
4420
|
hidden: !isVisible,
|
|
@@ -4425,7 +4425,7 @@
|
|
|
4425
4425
|
const { text, href, target, onClick } = link(rest);
|
|
4426
4426
|
return (jsx("a", { className: style('text-l font-light pb-m hover:text-primary-main', {
|
|
4427
4427
|
'text-primary-main': isActive,
|
|
4428
|
-
}), href: href, target: target, onClick: onClick, role: "
|
|
4428
|
+
}), href: href, target: target, onClick: onClick, role: "link", ...getAspectsAttributes(rest?.data), children: text }));
|
|
4429
4429
|
});
|
|
4430
4430
|
const renderDropdownItems = (items, activeItem) => items?.map((item, i) => (jsx(DropdownMenuItem, { isActive: item === activeItem, ...item }, item?.text ?? String(i))));
|
|
4431
4431
|
|
|
@@ -4433,7 +4433,7 @@
|
|
|
4433
4433
|
default: 'w-6 h-6',
|
|
4434
4434
|
large: 'w-12 h-12',
|
|
4435
4435
|
};
|
|
4436
|
-
const HeaderSecondaryMenuButton = JSX(({ className, isRounded, buttonSize = 'default', isGrayBg = false, disabled, ariaLabel, image, data, onClick, version, }) => {
|
|
4436
|
+
const HeaderSecondaryMenuButton = JSX(({ className, isRounded, buttonSize = 'default', isGrayBg = false, disabled, ariaLabel = 'Меню второго уровня', image, data, onClick, version, }) => {
|
|
4437
4437
|
const grayBg = isGrayBg && !isRounded ? 'bg-main-divider' : '';
|
|
4438
4438
|
const bgColor = version === 'transparent' ? 'backdrop-opacity-30 bg-white/30' : grayBg;
|
|
4439
4439
|
return (jsx("button", { className: style('group/btn border-0 flex shrink-0 items-center', isGrayBg ? 'p-s rounded-full' : 'p-0 bg-inherit', bgColor, isRounded
|
|
@@ -4644,7 +4644,7 @@
|
|
|
4644
4644
|
const TopItem = JSX(({ className = '', active, flat, children, data, ...rest }) => {
|
|
4645
4645
|
const link = useLink();
|
|
4646
4646
|
const { href, target, text, onClick } = link(rest);
|
|
4647
|
-
return (jsx("a", { className: style(getLinkStyle(active, flat), className), href: href, target: target, onClick: onClick, rel: "noopener noreferrer", "aria-label": text
|
|
4647
|
+
return (jsx("a", { className: style(getLinkStyle(active, flat), className), href: href, target: target, onClick: onClick, rel: "noopener noreferrer", "aria-label": `Ссылка на ${text}`, ...getAspectsAttributes(data), children: jsx("span", { suppressHydrationWarning: true, className: getTextStyle(active, flat), children: text || children }) }));
|
|
4648
4648
|
});
|
|
4649
4649
|
const getLinkStyle = (active = false, flat = false) => style('inline-block border border-solid bg-transparent text-center no-underline', active
|
|
4650
4650
|
? 'rounded-md border-primary-main group-data-transparent:border-white'
|
|
@@ -4787,7 +4787,7 @@
|
|
|
4787
4787
|
});
|
|
4788
4788
|
const { canDec, canInc } = controls;
|
|
4789
4789
|
const activeHref = cards[activeIndex]?.href;
|
|
4790
|
-
return (jsxs("section", { role: "listitem", className: `min-w-full text-center ${className}`, children: [jsxs("div", { className: "relative overflow-hidden", children: [galleryLength
|
|
4790
|
+
return (jsxs("section", { role: "listitem", className: `min-w-full text-center ${className}`, children: [jsxs("div", { className: "relative overflow-hidden", "aria-label": "\u0421\u0442\u0440\u0430\u0445\u043E\u0432\u044B\u0435 \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u044B", children: [galleryLength
|
|
4791
4791
|
? renderGallery({
|
|
4792
4792
|
activeIndex,
|
|
4793
4793
|
cards,
|
|
@@ -4844,7 +4844,7 @@
|
|
|
4844
4844
|
};
|
|
4845
4845
|
function renderNavButton$1({ title, i, isActive, onClick }) {
|
|
4846
4846
|
const btnClassName = isActive ? 'bg-primary-main text-white rounded-md' : `text-secondary-text`;
|
|
4847
|
-
return (jsx("button", { type: "button", onClick: onClick, "aria-label": title
|
|
4847
|
+
return (jsx("button", { type: "button", onClick: onClick, "aria-label": `Кнопка ${title}`, className: `box-border px-m py-s text-m font-light ${btnClassName}`, children: title }, String(i)));
|
|
4848
4848
|
}
|
|
4849
4849
|
|
|
4850
4850
|
const investmentCellColorMap = {
|
|
@@ -5033,7 +5033,7 @@
|
|
|
5033
5033
|
const isMobileMode = useMobileMode();
|
|
5034
5034
|
const badgeBgStyle = isMobileMode ? 'bg-main-divider' : badgeBgStyleMap[version];
|
|
5035
5035
|
const textStyle = badgeTextColorStyleMap[version][isMobileMode ? 'mobile' : 'desktop'];
|
|
5036
|
-
return (jsx("div", { className: style('w-6 h-6 rounded-full flex items-center justify-center', badgeBgStyle), role: "status", children: jsx(Text, { size: "text-xs", color: textStyle, children: count }) }));
|
|
5036
|
+
return (jsx("div", { className: style('w-6 h-6 rounded-full flex items-center justify-center', badgeBgStyle), role: "status", "aria-label": `Количество ${count} доступных программ и сервисов`, children: jsx(Text, { size: "text-xs", color: textStyle, children: count }) }));
|
|
5037
5037
|
});
|
|
5038
5038
|
|
|
5039
5039
|
const getButtonClassNames = (isActive) => ({
|
|
@@ -5047,7 +5047,7 @@
|
|
|
5047
5047
|
});
|
|
5048
5048
|
const renderTabItemInner = ({ text, description, icon, isActive, type, }) => {
|
|
5049
5049
|
const buttonClassNames = getButtonClassNames(isActive);
|
|
5050
|
-
return (jsxs("div", { className: style('cursor-pointer text-left border-b-0 flex gap-2xs'), "aria-label": text,
|
|
5050
|
+
return (jsxs("div", { className: style('cursor-pointer text-left border-b-0 flex gap-2xs'), "aria-label": text, "aria-labelledby": `${text}-label`, children: [icon ? (jsx(Img, { className: style('h-6 w-6 min-w-6 min-h-6', buttonClassNames.icon), image: {
|
|
5051
5051
|
...icon,
|
|
5052
5052
|
iconVersion: icon?.iconVersion ?? buttonClassNames.iconVersion,
|
|
5053
5053
|
}, width: "24", height: "24", alt: text })) : null, jsxs("div", { className: "border-0", children: [jsx("div", { className: type === 'animated' ? buttonClassNames.text : buttonClassNames.oldText, children: text }), jsx("div", { className: type === 'animated' ? buttonClassNames.desc : buttonClassNames.oldDesc, children: description })] })] }));
|
|
@@ -5078,13 +5078,13 @@
|
|
|
5078
5078
|
const Tag = tag;
|
|
5079
5079
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5080
5080
|
const { text, description, icon, count, tabName, ...link } = item;
|
|
5081
|
-
return (jsx(Tag, { className: style('h-12', 'block flex-1', 'cursor-pointer', tabPaddingStyleMap[type], isActive ? activeTabBgStyleMap[type] : tabBgStyleMap[type]), role: "tablist", onClick: onClick, ...link, children: jsxs("div", { className: style('h-full', 'flex justify-center items-center', 'text-center whitespace-nowrap', isActive ? activeTabTextStyleMap[type] : tabTextStyle), children: [renderTabItemInner({
|
|
5081
|
+
return (jsx(Tag, { className: style('h-12', 'block flex-1', 'cursor-pointer', tabPaddingStyleMap[type], isActive ? activeTabBgStyleMap[type] : tabBgStyleMap[type]), role: "tablist", "aria-label": "\u0421\u043F\u0438\u0441\u043E\u043A \u0442\u0430\u0431\u043E\u0432", onClick: onClick, ...link, children: jsxs("div", { className: style('h-full', 'flex justify-center items-center', 'text-center whitespace-nowrap', isActive ? activeTabTextStyleMap[type] : tabTextStyle), role: "tab", "aria-label": `Таб ${text}`, children: [renderTabItemInner({
|
|
5082
5082
|
text,
|
|
5083
5083
|
description,
|
|
5084
5084
|
icon,
|
|
5085
5085
|
isActive,
|
|
5086
5086
|
type,
|
|
5087
|
-
}), Number.isInteger(count) ? (jsx("div", { className: "ml-xs", children: jsx(Badge$1, { count: count, version: getVersion(isActive, type) }) })) : null] }) }));
|
|
5087
|
+
}), Number.isInteger(count) ? (jsx("div", { className: "ml-xs", role: "status", "aria-label": `Количество программ и сервисов ${count}`, children: jsx(Badge$1, { count: count, version: getVersion(isActive, type) }) })) : null] }) }));
|
|
5088
5088
|
});
|
|
5089
5089
|
|
|
5090
5090
|
const TabItem = JSX((props) => props?.item?.href ? jsx(LinkTabItem, { ...props }) : jsx(ButtonTabItem, { ...props }));
|
|
@@ -5106,7 +5106,7 @@
|
|
|
5106
5106
|
|
|
5107
5107
|
const renderTab = (activeTab, onClick, type) => (tab, i) => (jsx(TabItem, { isActive: tab === activeTab, onClick: onClick, type: type, item: tab }, String(i)));
|
|
5108
5108
|
|
|
5109
|
-
const TabsControl = JSX(({ className, tabsType = 'default', items = [], activeItem, onChange }) => (jsx("div", { className: style('flex gap-x-2xs overflow-x-auto no-scrollbar', className), role: "tabpanel", children: items.map(renderTab(activeItem, onChange, tabsType)) })));
|
|
5109
|
+
const TabsControl = JSX(({ className, tabsType = 'default', items = [], activeItem, onChange }) => (jsx("div", { className: style('flex gap-x-2xs overflow-x-auto no-scrollbar', className), role: "tabpanel", "aria-label": "\u041F\u0430\u043D\u0435\u043B\u044C \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u044F \u0442\u0430\u0431\u0430\u043C\u0438", children: items.map(renderTab(activeItem, onChange, tabsType)) })));
|
|
5110
5110
|
|
|
5111
5111
|
const initialFiltrationState = {
|
|
5112
5112
|
categories: [],
|
|
@@ -6504,7 +6504,7 @@
|
|
|
6504
6504
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6505
6505
|
});
|
|
6506
6506
|
|
|
6507
|
-
const packageVersion = "0.14.
|
|
6507
|
+
const packageVersion = "0.14.538";
|
|
6508
6508
|
|
|
6509
6509
|
exports.Blocks = Blocks;
|
|
6510
6510
|
exports.ContentPage = ContentPage;
|