@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.
Files changed (33) hide show
  1. package/bundle/bundle.umd.js +4 -19
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/dist/ui-kit/YandexMap/YandexMap.js +1 -2
  4. package/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
  5. package/lib/common.css +1 -1
  6. package/lib/ui-kit/YandexMap/YandexMap.js +1 -2
  7. package/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
  8. package/mobile/bundle/bundle.umd.js +4 -19
  9. package/mobile/bundle/bundle.umd.min.js +1 -1
  10. package/mobile/dist/ui-kit/YandexMap/YandexMap.js +1 -2
  11. package/mobile/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
  12. package/mobile/lib/common.css +1 -1
  13. package/mobile/lib/ui-kit/YandexMap/YandexMap.js +1 -2
  14. package/mobile/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
  15. package/mobile/src/ui-kit/YandexMap/YandexMap.tsx +0 -4
  16. package/package.json +1 -1
  17. package/src/ui-kit/YandexMap/YandexMap.tsx +0 -4
  18. package/bundle/ui-kit/YandexMap/renderOpenMap.d.ts +0 -2
  19. package/dist/ui-kit/YandexMap/renderOpenMap.d.ts +0 -2
  20. package/dist/ui-kit/YandexMap/renderOpenMap.js +0 -19
  21. package/dist/ui-kit/YandexMap/renderOpenMap.js.map +0 -1
  22. package/lib/ui-kit/YandexMap/renderOpenMap.d.ts +0 -1
  23. package/lib/ui-kit/YandexMap/renderOpenMap.js +0 -16
  24. package/lib/ui-kit/YandexMap/renderOpenMap.js.map +0 -1
  25. package/mobile/bundle/ui-kit/YandexMap/renderOpenMap.d.ts +0 -2
  26. package/mobile/dist/ui-kit/YandexMap/renderOpenMap.d.ts +0 -2
  27. package/mobile/dist/ui-kit/YandexMap/renderOpenMap.js +0 -19
  28. package/mobile/dist/ui-kit/YandexMap/renderOpenMap.js.map +0 -1
  29. package/mobile/lib/ui-kit/YandexMap/renderOpenMap.d.ts +0 -2
  30. package/mobile/lib/ui-kit/YandexMap/renderOpenMap.js +0 -16
  31. package/mobile/lib/ui-kit/YandexMap/renderOpenMap.js.map +0 -1
  32. package/mobile/src/ui-kit/YandexMap/renderOpenMap.tsx +0 -26
  33. package/src/ui-kit/YandexMap/renderOpenMap.tsx +0 -26
@@ -302,7 +302,7 @@
302
302
 
303
303
  const headingTag = (tag) => tag;
304
304
 
305
- const styles$3 = {
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$3[headingType], className), children: title || children }));
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('absolute flex left-2 top-4 w-1/2', zIndex), children: renderOpenMap(pointsCenter) }), 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))] }));
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.79";
5792
+ const packageVersion = "0.14.80";
5808
5793
 
5809
5794
  exports.Blocks = Blocks;
5810
5795
  exports.ContentPage = ContentPage;