@redneckz/wildless-cms-uni-blocks 0.14.310 → 0.14.312
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 +20 -18
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/CarouselCard/constants.d.ts +0 -1
- package/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +2 -1
- package/bundle/components/OfficesAtmsMap/renderFiltrationForm.d.ts +2 -2
- package/dist/components/CarouselCard/constants.d.ts +0 -1
- package/dist/components/CarouselCard/constants.js +1 -5
- package/dist/components/CarouselCard/constants.js.map +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -4
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +2 -1
- package/dist/components/GrantSupport/GrantSupport.js +2 -1
- package/dist/components/GrantSupport/GrantSupport.js.map +1 -1
- package/dist/components/OfficesAtmsMap/Badge.js +1 -1
- package/dist/components/OfficesAtmsMap/Badge.js.map +1 -1
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +2 -1
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/dist/components/OfficesAtmsMap/renderAtmCard.js +1 -1
- package/dist/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
- package/dist/components/OfficesAtmsMap/renderFiltrationForm.d.ts +2 -2
- package/dist/components/OfficesAtmsMap/renderFiltrationForm.js +5 -4
- package/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
- package/dist/hooks/useAspects/aspects/getAspectsWithInclude.js +1 -1
- package/dist/hooks/useAspects/aspects/getAspectsWithInclude.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/CarouselCard/constants.d.ts +0 -1
- package/lib/components/CarouselCard/constants.js +0 -4
- package/lib/components/CarouselCard/constants.js.map +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -4
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +2 -1
- package/lib/components/GrantSupport/GrantSupport.js +2 -1
- package/lib/components/GrantSupport/GrantSupport.js.map +1 -1
- package/lib/components/OfficesAtmsMap/Badge.js +1 -1
- package/lib/components/OfficesAtmsMap/Badge.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +2 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/lib/components/OfficesAtmsMap/renderAtmCard.js +1 -1
- package/lib/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
- package/lib/components/OfficesAtmsMap/renderFiltrationForm.d.ts +2 -2
- package/lib/components/OfficesAtmsMap/renderFiltrationForm.js +5 -4
- package/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
- package/lib/hooks/useAspects/aspects/getAspectsWithInclude.js +1 -1
- package/lib/hooks/useAspects/aspects/getAspectsWithInclude.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +15 -13
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/CarouselCard/constants.d.ts +0 -1
- package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +2 -1
- package/mobile/bundle/components/OfficesAtmsMap/renderFiltrationForm.d.ts +2 -2
- package/mobile/dist/components/CarouselCard/constants.d.ts +0 -1
- package/mobile/dist/components/CarouselCard/constants.js +1 -5
- package/mobile/dist/components/CarouselCard/constants.js.map +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -4
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +2 -1
- package/mobile/dist/components/GrantSupport/GrantSupport.js +2 -1
- package/mobile/dist/components/GrantSupport/GrantSupport.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/Badge.js +1 -1
- package/mobile/dist/components/OfficesAtmsMap/Badge.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +2 -1
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderAtmCard.js +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.d.ts +2 -2
- package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js +5 -4
- package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
- package/mobile/dist/hooks/useAspects/aspects/getAspectsWithInclude.js +1 -1
- package/mobile/dist/hooks/useAspects/aspects/getAspectsWithInclude.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/CarouselCard/constants.d.ts +0 -1
- package/mobile/lib/components/CarouselCard/constants.js +0 -4
- package/mobile/lib/components/CarouselCard/constants.js.map +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -4
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +2 -1
- package/mobile/lib/components/GrantSupport/GrantSupport.js +2 -1
- package/mobile/lib/components/GrantSupport/GrantSupport.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/Badge.js +1 -1
- package/mobile/lib/components/OfficesAtmsMap/Badge.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +2 -1
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderAtmCard.js +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.d.ts +2 -2
- package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js +5 -4
- package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
- package/mobile/lib/hooks/useAspects/aspects/getAspectsWithInclude.js +1 -1
- package/mobile/lib/hooks/useAspects/aspects/getAspectsWithInclude.js.map +1 -1
- package/mobile/src/components/CarouselCard/constants.ts +0 -5
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +7 -2
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCardContent.ts +3 -1
- package/mobile/src/components/GrantSupport/GrantSupport.tsx +2 -1
- package/mobile/src/components/OfficesAtmsMap/Badge.tsx +1 -1
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMap.example.json +26 -6
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +4 -2
- package/mobile/src/components/OfficesAtmsMap/renderAtmCard.tsx +3 -1
- package/mobile/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +25 -25
- package/mobile/src/hooks/useAspects/aspects/getAspectsWithInclude.tsx +1 -1
- package/package.json +2 -2
- package/src/components/CarouselCard/constants.ts +0 -5
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +7 -2
- package/src/components/CarouselTariffsCard/CarouselTariffsCardContent.ts +3 -1
- package/src/components/GrantSupport/GrantSupport.tsx +2 -1
- package/src/components/OfficesAtmsMap/Badge.tsx +1 -1
- package/src/components/OfficesAtmsMap/OfficesAtmsMap.example.json +26 -6
- package/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +4 -2
- package/src/components/OfficesAtmsMap/renderAtmCard.tsx +3 -1
- package/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +25 -25
- package/src/hooks/useAspects/aspects/getAspectsWithInclude.tsx +1 -1
package/bundle/bundle.umd.js
CHANGED
|
@@ -3436,7 +3436,7 @@
|
|
|
3436
3436
|
return (jsxs("div", { className: "py-lg border-b border-main-divider", children: [title ? (jsx("div", { className: "opacity-80", children: jsx(Text, { size: "text-m", color: "text-secondary-text", children: title }) })) : null, description ? (jsx("div", { className: "mt-2xs", children: jsx(Text, { size: "text-xl", color: "text-primary-text", children: description }) })) : null, buttons?.length ? (jsx("div", { className: "text-primary-main", children: renderButtonsSection(buttons) })) : null] }, String(i)));
|
|
3437
3437
|
};
|
|
3438
3438
|
|
|
3439
|
-
const CarouselTariffsCard = JSX(({ className = '', title, align = 'text-center', icon, button, visibleCellsCount = 1, cardCells = [], options, ...rest }) => {
|
|
3439
|
+
const CarouselTariffsCard = JSX(({ className = '', title, align = 'text-center', icon, button, visibleCellsCount = 1, cardCells = [], options, data, ...rest }) => {
|
|
3440
3440
|
const cellsNode = cardCells.map(renderCardInfo);
|
|
3441
3441
|
const [visibleCells, hiddenCells] = visibleCellsCount > 0
|
|
3442
3442
|
? [cellsNode.slice(0, visibleCellsCount), cellsNode.slice(visibleCellsCount)]
|
|
@@ -3447,13 +3447,13 @@
|
|
|
3447
3447
|
setIsVisible(event.isUnfolded);
|
|
3448
3448
|
}
|
|
3449
3449
|
}), []);
|
|
3450
|
-
return (jsxs(BlockWrapper, { className: style('flex flex-col', className), defaultPadding: "p-2xl", ...rest, children: [isIcon(icon) ? (jsx("div", { className: "self-center", children: jsx(Img, { image: icon }) })) : null, title ? (jsx(Heading, { className: style('pt-xs', align), headingType: "h5", title: title })) : null, button?.text ? jsx(LinkButton, { className: "w-full mt-m mb-lg", ...button }) : null, hiddenCells.length ? (jsx(Foldable, { renderFoldableSection: () => (jsxs("div", { children: [visibleCells, jsx(FoldableSection, { isUnfolded: isVisible, children: hiddenCells })] })), renderFoldButton: cardCells.length > 1 ? renderFoldButton$3(isVisible, options?.parent) : null })) : (jsx("div", { children: visibleCells }))] }));
|
|
3450
|
+
return (jsxs(BlockWrapper, { className: style('flex flex-col', className), defaultPadding: "p-2xl", ...rest, children: [isIcon(icon) ? (jsx("div", { className: "self-center", children: jsx(Img, { image: icon }) })) : null, title ? (jsx(Heading, { className: style('pt-xs', align), headingType: "h5", title: title })) : null, button?.text ? jsx(LinkButton, { className: "w-full mt-m mb-lg", ...button }) : null, hiddenCells.length ? (jsx(Foldable, { renderFoldableSection: () => (jsxs("div", { children: [visibleCells, jsx(FoldableSection, { isUnfolded: isVisible, children: hiddenCells })] })), renderFoldButton: cardCells.length > 1 ? renderFoldButton$3(isVisible, options?.parent, data) : null })) : (jsx("div", { children: visibleCells }))] }));
|
|
3451
3451
|
});
|
|
3452
|
-
const renderFoldButton$3 = (isUnfolded, parent) => () => (jsxs("button", { className: "w-full cursor-pointer text-primary-main pt-lg flex justify-between items-center", onClick: () => {
|
|
3452
|
+
const renderFoldButton$3 = (isUnfolded, parent, data) => () => (jsxs("button", { className: "w-full cursor-pointer text-primary-main pt-lg flex justify-between items-center", onClick: () => {
|
|
3453
3453
|
if (parent !== undefined) {
|
|
3454
3454
|
defaultEventBus.fire('fold', { type: 'fold', isUnfolded: !isUnfolded, parent });
|
|
3455
3455
|
}
|
|
3456
|
-
}, type: "button", children: [jsx("div", { children: isUnfolded ? 'Скрыть' : 'Подробнее о тарифе' }), jsx(Icon, { className: "text-primary-text", name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16" })] }));
|
|
3456
|
+
}, type: "button", ...(isUnfolded ? getAspectsAttributes(data) : {}), children: [jsx("div", { children: isUnfolded ? 'Скрыть' : 'Подробнее о тарифе' }), jsx(Icon, { className: "text-primary-text", name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16" })] }));
|
|
3457
3457
|
|
|
3458
3458
|
const gradientStyle = 'bg-gradient-to-r from-main-gradient-start to-main-gradient-end';
|
|
3459
3459
|
const borderStyle = 'border-gray border-solid border';
|
|
@@ -4201,6 +4201,11 @@
|
|
|
4201
4201
|
const renderMonthNames = (item, colSize) => item.month?.map((_, i) => (jsx("div", { style: { flexBasis: `${colSize}%` }, children: _.text }, `monthName-${i}`)));
|
|
4202
4202
|
const renderMonthImages = (item) => item.month?.map((_) => _.image?.src ? (jsx("div", { className: "h-52 border-r pr-s border-main-divider last:border-r-0", children: jsx(Img, { image: _.image, className: "flex" }) }, `monthImage-${_.image.src}`)) : null);
|
|
4203
4203
|
|
|
4204
|
+
const getAspectsWithInclude = (data, include) => data?.map(({ aspectName, params }) => ({
|
|
4205
|
+
aspectName,
|
|
4206
|
+
params: aspectName === 'mindboxEvent' ? { ...params, eventJson: include } : params,
|
|
4207
|
+
}));
|
|
4208
|
+
|
|
4204
4209
|
const GrantSupport = UniBlock(({ className, title, button, regionSource, data, ...rest }) => {
|
|
4205
4210
|
const [region, setRegion] = useState({ key: '' });
|
|
4206
4211
|
const regions = regionSource?.regions ?? [];
|
|
@@ -4210,7 +4215,7 @@
|
|
|
4210
4215
|
});
|
|
4211
4216
|
const regionHref = regions?.find((_) => _.name === region.key)?.href;
|
|
4212
4217
|
const buttonText = button?.text ? button.text : 'Перейти';
|
|
4213
|
-
return (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container max-w-[978px] space-y-m", children: [title ? jsx(Heading, { headingType: "h3", title: title, className: "@xl:text-center" }) : null, regions ? (jsx(SelectControl, { label: "\u0412\u0430\u0448 \u0440\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D", isSearch: true, options: regions.map(({ name = '' }) => ({ key: name, text: name })), value: region, onChange: setRegion })) : null, regionHref ? (jsx("div", { className: "text-center", children: jsx(LinkButton, { href: regionHref, target: "_blank", className: style('p-m w-full @xl:w-auto', buttonStyle), data: data, children: buttonText }) })) : null] }) }));
|
|
4218
|
+
return (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container max-w-[978px] space-y-m", children: [title ? jsx(Heading, { headingType: "h3", title: title, className: "@xl:text-center" }) : null, regions ? (jsx(SelectControl, { label: "\u0412\u0430\u0448 \u0440\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D", isSearch: true, options: regions.map(({ name = '' }) => ({ key: name, text: name })), value: region, onChange: setRegion })) : null, regionHref ? (jsx("div", { className: "text-center", children: jsx(LinkButton, { href: regionHref, target: "_blank", className: style('p-m w-full @xl:w-auto', buttonStyle), data: getAspectsWithInclude(data, region?.key), children: buttonText }) })) : null] }) }));
|
|
4214
4219
|
});
|
|
4215
4220
|
|
|
4216
4221
|
const isHrefActive = (router) => ({ href }) => !href ? false : withoutQuery(getRouterHref(href, router)).startsWith(withoutQuery(href));
|
|
@@ -4236,11 +4241,6 @@
|
|
|
4236
4241
|
? 'text-primary-main'
|
|
4237
4242
|
: style(flat ? 'text-primary-text' : 'text-secondary-text', 'hover:text-primary-main'), 'group-data-transparent:text-white group-data-transparent:hover:text-primary-hover');
|
|
4238
4243
|
|
|
4239
|
-
const getAspectsWithInclude = (data, include) => data?.map(({ aspectName, params }) => ({
|
|
4240
|
-
aspectName,
|
|
4241
|
-
params: aspectName === 'mindboxEvent' ? { ...params, eventValueText: include } : params,
|
|
4242
|
-
}));
|
|
4243
|
-
|
|
4244
4244
|
const groupBy = (list, keyGetter) => {
|
|
4245
4245
|
const result = new Map();
|
|
4246
4246
|
for (const item of list) {
|
|
@@ -4976,23 +4976,25 @@
|
|
|
4976
4976
|
transferringDataToBiometricSystem: 'Передача фото и голоса в Единую биометрическую систему',
|
|
4977
4977
|
};
|
|
4978
4978
|
const COMMON_FILTERS_STYLES = 'flex flex-col sm:flex-row sm:flex-wrap gap-3xl pb-2xl';
|
|
4979
|
-
const renderFiltrationForm = (filters, { field, reset },
|
|
4979
|
+
const renderFiltrationForm = (filters, { field, reset }, onlyOffice) => {
|
|
4980
|
+
const visibleFiltersNum = onlyOffice ? 3 : 4;
|
|
4980
4981
|
const filtersCheckbox = (filters || []).map((key) => (jsx(Checkbox, { text: FILTRATION_LABELS[key], ...field(key) }, key)));
|
|
4981
4982
|
const [visibleFilters, hiddenFilters] = visibleFiltersNum > 0
|
|
4982
4983
|
? [filtersCheckbox.slice(0, visibleFiltersNum), filtersCheckbox.slice(visibleFiltersNum)]
|
|
4983
4984
|
: [filtersCheckbox, []];
|
|
4984
|
-
return (jsx("div", { children: filters?.length ? (jsx("div", { children:
|
|
4985
|
+
return (jsx("div", { children: filters?.length ? (jsx("div", { children: jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs("div", { children: [jsx("div", { className: COMMON_FILTERS_STYLES, children: visibleFilters }), jsx(FoldableSection, { className: COMMON_FILTERS_STYLES, isUnfolded: isUnfolded, children: hiddenFilters })] })), renderFoldButton: renderFoldButton$2(reset, onlyOffice) }) })) : null }));
|
|
4985
4986
|
};
|
|
4986
|
-
const renderFoldButton$2 = (reset) => ({ isUnfolded, onToggle }) => {
|
|
4987
|
+
const renderFoldButton$2 = (reset, onlyOffice) => ({ isUnfolded, onToggle }) => {
|
|
4987
4988
|
const labels = ['Больше фильтров', 'Меньше фильтров'];
|
|
4988
4989
|
const icons = ['ArrowDownIcon', 'ArrowUpIcon'];
|
|
4989
|
-
return (jsxs("div", { className: "flex", children: [jsx(LinkButton, { version: "transparent", className: "text-secondary-text [&>*]:p-0
|
|
4990
|
+
return (jsxs("div", { className: "flex space-x-lg", children: [onlyOffice ? (jsx(LinkButton, { version: "transparent", className: "text-secondary-text [&>*]:p-0", appendRight: jsx(Icon, { name: icons[Number(isUnfolded)], width: "16", height: "16" }), text: labels[Number(isUnfolded)], onClick: onToggle })) : null, jsx(LinkButton, { version: "transparent", className: "text-secondary-text [&>*]:p-0", onClick: reset, text: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440", appendRight: jsx(Icon, { name: "CloseIcon", width: "16", height: "16" }) })] }));
|
|
4990
4991
|
};
|
|
4991
4992
|
|
|
4992
4993
|
const defaultEmptyFunction = () => void 0;
|
|
4993
4994
|
const defaultFilterItems = () => [];
|
|
4994
4995
|
const filtersVisibleStyles = (activeButton) => activeButton === 'all' ? 'block' : 'hidden';
|
|
4995
4996
|
const OfficesAtmsMapLayout = JSX(({ className, data = [], renderCard = defaultEmptyFunction, filterItems = defaultFilterItems, getBalloon = defaultEmptyFunction, initFilterState = {}, descriptionData, title, }) => {
|
|
4997
|
+
const onlyOffice = title?.includes('Офис');
|
|
4996
4998
|
const [filtrationState, { field, reset }] = useForm(initFilterState);
|
|
4997
4999
|
const [filteredItems, points, lengthItems] = useMemo(() => {
|
|
4998
5000
|
const _filteredItems = filterItems(data, filtrationState);
|
|
@@ -5005,7 +5007,7 @@
|
|
|
5005
5007
|
return [_filteredItems, _points, _filteredItems.length];
|
|
5006
5008
|
}, [data, filtrationState]);
|
|
5007
5009
|
const [activeButton, setActiveButton] = useState('all');
|
|
5008
|
-
return (jsxs("div", { className: style('space-y-1', className), children: [jsxs("div", { className: "bg-white", children: [jsxs("div", { className: "p-6xl pb-0", children: [jsxs("div", { className: "flex flex-col sm:flex-row gap-xs mb-2xl", children: [jsx(Heading, { headingType: "h2", children: title }), lengthItems ? (jsx(Text, { size: "text-h2", color: "text-secondary-text", children: `(${lengthItems})` })) : null] }), descriptionData ? renderDescriptionBlock$1(descriptionData) : null, renderButtonsGroup(data, activeButton, setActiveButton), jsx("div", { className: style('pb-2xl', filtersVisibleStyles(activeButton)), children: renderFiltrationForm(Object.keys(initFilterState), { field, reset }) })] }), jsx("div", { className: "h-[600px]", children: jsx(ClientOnly, { children: jsx(YandexMap, { points: points, className: "h-full" }) }) })] }), filteredItems.map(renderCard)] }));
|
|
5010
|
+
return (jsxs("div", { className: style('space-y-1', className), children: [jsxs("div", { className: "bg-white", children: [jsxs("div", { className: "p-6xl pb-0", children: [jsxs("div", { className: "flex flex-col sm:flex-row gap-xs mb-2xl", children: [jsx(Heading, { headingType: "h2", children: title }), lengthItems ? (jsx(Text, { size: "text-h2", color: "text-secondary-text", children: `(${lengthItems})` })) : null] }), descriptionData ? renderDescriptionBlock$1(descriptionData) : null, onlyOffice && renderButtonsGroup(data, activeButton, setActiveButton), jsx("div", { className: style('pb-2xl', filtersVisibleStyles(activeButton)), children: renderFiltrationForm(Object.keys(initFilterState), { field, reset }, onlyOffice) })] }), jsx("div", { className: "h-[600px]", children: jsx(ClientOnly, { children: jsx(YandexMap, { points: points, className: "h-full" }) }) })] }), filteredItems.map(renderCard)] }));
|
|
5009
5011
|
});
|
|
5010
5012
|
const renderButtonsGroup = (data, activeButton, setActiveButton) => {
|
|
5011
5013
|
const allButtonVersion = activeButton === 'all' ? 'primary' : 'secondary';
|
|
@@ -5029,7 +5031,7 @@
|
|
|
5029
5031
|
gray: { border: 'border-gray', text: 'text-secondary-text' },
|
|
5030
5032
|
red: { border: 'border-error/30', text: 'text-error' },
|
|
5031
5033
|
};
|
|
5032
|
-
const Badge = JSX(({ className, children, color = 'gray' }) => (jsxs("div", { className: style('sm:p-s sm:border sm:border-
|
|
5034
|
+
const Badge = JSX(({ className, children, color = 'gray' }) => (jsxs("div", { className: style('sm:p-s sm:border sm:border-green rounded-md flex items-center', colorStyle[color].border, className), children: [jsx("div", { className: "block pr-m sm:pr-0 sm:hidden", children: jsx(Img, { image: { icon: 'SmallClockIcon' }, width: "24", height: "24" }) }), jsx(Text, { size: "text-m", color: colorStyle[color].text, children: children })] })));
|
|
5033
5035
|
|
|
5034
5036
|
const CardCell = JSX(({ value, subText, children, ...props }) => {
|
|
5035
5037
|
const textItems = (Array.isArray(value) ? value : value?.split(',') ?? []).filter(Boolean);
|
|
@@ -5064,7 +5066,7 @@
|
|
|
5064
5066
|
},
|
|
5065
5067
|
{ label: 'Регистрационный номер', value: atmCode },
|
|
5066
5068
|
];
|
|
5067
|
-
return (jsxs("div", { className: "bg-white col-span-12 p-3xl sm:border-green sm:border", children: [jsxs("div", { className: "sm:flex sm:justify-between", children: [jsxs("div", { children: [jsx(Text, { size: "text-h4", children: capitalizedFirstLetter$1(location) }), address ? (jsxs("div", { className: "flex pb-xl pt-xs gap-2xs", children: [jsx(Icon, { name: "GeolocationIcon", width: "24", height: "24" }), jsx(Text, { size: "text-l", children: address })] })) : null] }), jsx(Badge, { color: "green", children: capitalizedFirstLetter$1(workTime) })] }), jsx("div", { className: "hidden sm:block", children: jsx(CardRow, { className: "flex-wrap", children: additionalInfo?.map(renderInfo) }) }), jsx(Foldable, { className: "block sm:hidden", renderFoldableSection: ({ isUnfolded }) => {
|
|
5069
|
+
return (jsxs("div", { className: "bg-white col-span-12 p-3xl sm:border-green sm:border", children: [jsxs("div", { className: "sm:flex sm:justify-between", children: [jsxs("div", { children: [jsx(Text, { size: "text-h4", children: capitalizedFirstLetter$1(location) }), address ? (jsxs("div", { className: "flex pb-xl pt-xs gap-2xs", children: [jsx(Icon, { name: "GeolocationIcon", width: "24", height: "24" }), jsx(Text, { size: "text-l", children: address })] })) : null] }), jsx("div", { className: "whitespace-nowrap", children: jsx(Badge, { color: "green", children: capitalizedFirstLetter$1(workTime) }) })] }), jsx("div", { className: "hidden sm:block", children: jsx(CardRow, { className: "flex-wrap", children: additionalInfo?.map(renderInfo) }) }), jsx(Foldable, { className: "block sm:hidden", renderFoldableSection: ({ isUnfolded }) => {
|
|
5068
5070
|
return (jsx(FoldableSection, { isUnfolded: isUnfolded, children: jsx(CardRow, { className: "flex-wrap", children: additionalInfo?.map(renderInfo) }) }));
|
|
5069
5071
|
},
|
|
5070
5072
|
//** TODO: Remove styles with refactoring DefaultFoldButton*/
|
|
@@ -6189,7 +6191,7 @@
|
|
|
6189
6191
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6190
6192
|
});
|
|
6191
6193
|
|
|
6192
|
-
const packageVersion = "0.14.
|
|
6194
|
+
const packageVersion = "0.14.311";
|
|
6193
6195
|
|
|
6194
6196
|
exports.Blocks = Blocks;
|
|
6195
6197
|
exports.ContentPage = ContentPage;
|