@redneckz/wildless-cms-uni-blocks 0.14.275 → 0.14.276
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 +3 -24
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/ui-kit/YandexMap/YandexMap.js +2 -24
- package/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/ui-kit/YandexMap/YandexMap.js +3 -25
- package/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +3 -24
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/ui-kit/YandexMap/YandexMap.js +2 -24
- 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 +3 -25
- package/mobile/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/src/ui-kit/YandexMap/YandexMap.tsx +3 -33
- package/package.json +1 -1
- package/src/ui-kit/YandexMap/YandexMap.tsx +3 -33
package/bundle/bundle.umd.js
CHANGED
|
@@ -4786,16 +4786,6 @@
|
|
|
4786
4786
|
return (jsx("div", { onClick: changeZoom, className: `${Object.values(styles).join(' ')} bg-white select-none cursor-pointer w-12 h-12`, children: jsx(Icon, { name: iconName, width: "20", height: "16" }) }));
|
|
4787
4787
|
});
|
|
4788
4788
|
|
|
4789
|
-
const FULLSCREEN_STYLES = {
|
|
4790
|
-
border: 'border border-transparent rounded-md ',
|
|
4791
|
-
position: 'absolute flex items-center justify-center',
|
|
4792
|
-
size: 'w-12 h-12',
|
|
4793
|
-
focus: 'focus:border-primary-text focus:border',
|
|
4794
|
-
font: 'text-center font-sans',
|
|
4795
|
-
active: 'active:bg-primary-active',
|
|
4796
|
-
hover: 'hover:bg-primary-hover',
|
|
4797
|
-
other: 'select-none cursor-pointer',
|
|
4798
|
-
};
|
|
4799
4789
|
const DEFAULT_CENTER_COORDS = [55.753995, 37.614069];
|
|
4800
4790
|
// TODO: Поле для поиска: невыяснено среди каких данных делать поиск (искать в имени офиса, в адресе, метро и т.д.).
|
|
4801
4791
|
// Сейчас реализован поиск среди тестовых данных
|
|
@@ -4804,7 +4794,6 @@
|
|
|
4804
4794
|
const YandexMap = JSX(({ points, className = '', zoom = 5 }) => {
|
|
4805
4795
|
const map = useRef(null);
|
|
4806
4796
|
const yandexMaps = useYandexMaps();
|
|
4807
|
-
const [isFullScreen, setIsFullScreen] = useState();
|
|
4808
4797
|
useEffect(() => {
|
|
4809
4798
|
if (!map?.current) {
|
|
4810
4799
|
yandexMaps?.ready(() => {
|
|
@@ -4831,18 +4820,8 @@
|
|
|
4831
4820
|
if (!yandexMaps) {
|
|
4832
4821
|
return null;
|
|
4833
4822
|
}
|
|
4834
|
-
const
|
|
4835
|
-
|
|
4836
|
-
if (!isFullScreen) {
|
|
4837
|
-
container.enterFullscreen();
|
|
4838
|
-
}
|
|
4839
|
-
else {
|
|
4840
|
-
container.exitFullscreen();
|
|
4841
|
-
}
|
|
4842
|
-
setIsFullScreen(container.isFullscreen());
|
|
4843
|
-
};
|
|
4844
|
-
const zIndex = isFullScreen ? 'z-[100000]' : 'z-10';
|
|
4845
|
-
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))] }));
|
|
4823
|
+
const zIndex = 'z-10';
|
|
4824
|
+
return (jsxs("div", { id: "map", className: style('relative', 'w-full', className), children: [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))] }));
|
|
4846
4825
|
});
|
|
4847
4826
|
const getCenterPoint = (points) => [
|
|
4848
4827
|
getArraySumAndAverage(mapByIndex(points, 0)),
|
|
@@ -6127,7 +6106,7 @@
|
|
|
6127
6106
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6128
6107
|
});
|
|
6129
6108
|
|
|
6130
|
-
const packageVersion = "0.14.
|
|
6109
|
+
const packageVersion = "0.14.275";
|
|
6131
6110
|
|
|
6132
6111
|
exports.Blocks = Blocks;
|
|
6133
6112
|
exports.ContentPage = ContentPage;
|