@redneckz/wildless-cms-uni-blocks 0.14.80 → 0.14.81
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 +4 -19
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/ui-kit/YandexMap/YandexMap.js +1 -2
- package/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/ui-kit/YandexMap/YandexMap.js +1 -2
- package/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +4 -19
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/ui-kit/YandexMap/YandexMap.js +1 -2
- package/mobile/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/ui-kit/YandexMap/YandexMap.js +1 -2
- package/mobile/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/src/ui-kit/YandexMap/YandexMap.tsx +0 -4
- package/package.json +1 -1
- package/src/ui-kit/YandexMap/YandexMap.tsx +0 -4
- package/bundle/ui-kit/YandexMap/renderOpenMap.d.ts +0 -2
- package/dist/ui-kit/YandexMap/renderOpenMap.d.ts +0 -2
- package/dist/ui-kit/YandexMap/renderOpenMap.js +0 -19
- package/dist/ui-kit/YandexMap/renderOpenMap.js.map +0 -1
- package/lib/ui-kit/YandexMap/renderOpenMap.d.ts +0 -1
- package/lib/ui-kit/YandexMap/renderOpenMap.js +0 -16
- package/lib/ui-kit/YandexMap/renderOpenMap.js.map +0 -1
- package/mobile/bundle/ui-kit/YandexMap/renderOpenMap.d.ts +0 -2
- package/mobile/dist/ui-kit/YandexMap/renderOpenMap.d.ts +0 -2
- package/mobile/dist/ui-kit/YandexMap/renderOpenMap.js +0 -19
- package/mobile/dist/ui-kit/YandexMap/renderOpenMap.js.map +0 -1
- package/mobile/lib/ui-kit/YandexMap/renderOpenMap.d.ts +0 -2
- package/mobile/lib/ui-kit/YandexMap/renderOpenMap.js +0 -16
- package/mobile/lib/ui-kit/YandexMap/renderOpenMap.js.map +0 -1
- package/mobile/src/ui-kit/YandexMap/renderOpenMap.tsx +0 -26
- package/src/ui-kit/YandexMap/renderOpenMap.tsx +0 -26
package/bundle/bundle.umd.js
CHANGED
|
@@ -302,7 +302,7 @@
|
|
|
302
302
|
|
|
303
303
|
const headingTag = (tag) => tag;
|
|
304
304
|
|
|
305
|
-
const styles$
|
|
305
|
+
const styles$2 = {
|
|
306
306
|
h0: 'text-h0',
|
|
307
307
|
h1: 'text-h1',
|
|
308
308
|
h2: 'text-h2',
|
|
@@ -313,7 +313,7 @@
|
|
|
313
313
|
};
|
|
314
314
|
const Heading = JSX(({ className = '', headingType = 'h3', as = 'h3', title, children }) => {
|
|
315
315
|
const Tag = headingTag(as);
|
|
316
|
-
return (jsx(Tag, { className: style('font-sans m-0', styles$
|
|
316
|
+
return (jsx(Tag, { className: style('font-sans m-0', styles$2[headingType], className), children: title || children }));
|
|
317
317
|
});
|
|
318
318
|
|
|
319
319
|
const Paragraph = JSX(({ children, ...styleProps }) => (jsx("p", { className: style('font-sans', Object.values(styleProps)), children: children })));
|
|
@@ -4607,21 +4607,6 @@
|
|
|
4607
4607
|
});
|
|
4608
4608
|
}
|
|
4609
4609
|
|
|
4610
|
-
const styles$2 = {
|
|
4611
|
-
focus: 'focus:border-primary-text focus:border',
|
|
4612
|
-
hover: 'hover:bg-primary-hover',
|
|
4613
|
-
active: 'active:bg-primary-active',
|
|
4614
|
-
border: 'border border-transparent rounded-md',
|
|
4615
|
-
position: 'flex items-center justify-center',
|
|
4616
|
-
font: 'text-center font-sans',
|
|
4617
|
-
};
|
|
4618
|
-
const renderOpenMap = (pointsCenter) => {
|
|
4619
|
-
const getYandexMapUrl = () => {
|
|
4620
|
-
return `https://yandex.ru/maps/?ll=${[pointsCenter[1], pointsCenter[0]]}&z=10&l=map`;
|
|
4621
|
-
};
|
|
4622
|
-
return (jsx("a", { className: `select-none cursor-pointer px-4xl h-12 bg-primary-main text-white ${Object.values(styles$2).join(' ')}`, href: getYandexMapUrl(), target: "_blank", children: "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430 \u043A\u0430\u0440\u0442\u0435" }));
|
|
4623
|
-
};
|
|
4624
|
-
|
|
4625
4610
|
const styles$1 = {
|
|
4626
4611
|
focus: 'focus:border-primary-text focus:border',
|
|
4627
4612
|
hover: 'hover:bg-primary-hover',
|
|
@@ -4729,7 +4714,7 @@
|
|
|
4729
4714
|
setIsFullScreen(container.isFullscreen());
|
|
4730
4715
|
};
|
|
4731
4716
|
const zIndex = isFullScreen ? 'z-[100000]' : 'z-10';
|
|
4732
|
-
return (jsxs("div", { id: "map", className: style(!isFullScreen && 'relative', 'w-full', className), children: [jsx("div", { className: style(
|
|
4717
|
+
return (jsxs("div", { id: "map", className: style(!isFullScreen && 'relative', 'w-full', className), children: [jsx("div", { className: style(Object.values(FULLSCREEN_STYLES), zIndex, 'right-2 top-4 bg-white'), onClick: toggleFullscreen, children: jsx(Icon, { name: "FullScreenIcon", width: "16", height: "16" }) }), jsxs("div", { className: style('absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md', zIndex), children: [jsx(ZoomButton, { yandexMaps: map }), jsx(ZoomButton, { yandexMaps: map, direction: "out" })] }), renderUserGeolocation(map.current, yandexMaps, style('right-2 top-80', zIndex))] }));
|
|
4733
4718
|
});
|
|
4734
4719
|
const getCenterPoint = (points) => [
|
|
4735
4720
|
getArraySumAndAverage(mapByIndex(points, 0)),
|
|
@@ -5804,7 +5789,7 @@
|
|
|
5804
5789
|
return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
|
|
5805
5790
|
}
|
|
5806
5791
|
|
|
5807
|
-
const packageVersion = "0.14.
|
|
5792
|
+
const packageVersion = "0.14.80";
|
|
5808
5793
|
|
|
5809
5794
|
exports.Blocks = Blocks;
|
|
5810
5795
|
exports.ContentPage = ContentPage;
|