@redneckz/wildless-cms-uni-blocks 0.14.518 → 0.14.519

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 (35) hide show
  1. package/bundle/bundle.umd.js +4 -2
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/ui-kit/Loader/Loader.d.ts +7 -0
  4. package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +2 -2
  5. package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  6. package/dist/ui-kit/Loader/Loader.d.ts +7 -0
  7. package/dist/ui-kit/Loader/Loader.js +7 -0
  8. package/dist/ui-kit/Loader/Loader.js.map +1 -0
  9. package/lib/common.css +1 -1
  10. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +2 -2
  11. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  12. package/lib/ui-kit/Loader/Loader.d.ts +7 -0
  13. package/lib/ui-kit/Loader/Loader.fixture.d.ts +6 -0
  14. package/lib/ui-kit/Loader/Loader.js +5 -0
  15. package/lib/ui-kit/Loader/Loader.js.map +1 -0
  16. package/mobile/bundle/bundle.umd.js +4 -2
  17. package/mobile/bundle/bundle.umd.min.js +1 -1
  18. package/mobile/bundle/ui-kit/Loader/Loader.d.ts +7 -0
  19. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +2 -2
  20. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  21. package/mobile/dist/ui-kit/Loader/Loader.d.ts +7 -0
  22. package/mobile/dist/ui-kit/Loader/Loader.js +7 -0
  23. package/mobile/dist/ui-kit/Loader/Loader.js.map +1 -0
  24. package/mobile/lib/common.css +1 -1
  25. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +2 -2
  26. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  27. package/mobile/lib/ui-kit/Loader/Loader.d.ts +7 -0
  28. package/mobile/lib/ui-kit/Loader/Loader.js +5 -0
  29. package/mobile/lib/ui-kit/Loader/Loader.js.map +1 -0
  30. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +2 -2
  31. package/mobile/src/ui-kit/Loader/Loader.tsx +28 -0
  32. package/package.json +1 -1
  33. package/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +2 -2
  34. package/src/ui-kit/Loader/Loader.fixture.tsx +14 -0
  35. package/src/ui-kit/Loader/Loader.tsx +28 -0
@@ -5072,6 +5072,8 @@
5072
5072
  const isClient = !isSSR();
5073
5073
  const ClientOnly = JSX(({ children }) => (isClient ? children : null));
5074
5074
 
5075
+ const Loader = JSX(({ color = 'text-primary-main', position = 'absolute' }) => (jsx("div", { className: style('flex justify-center items-center h-full w-full backdrop-blur-sm z-50', position), children: jsx("div", { className: style('inline-block h-28 w-28', 'animate-spin rounded-full', 'border-8 border-solid border-current', 'border-r-transparent', color), role: "status" }) })));
5076
+
5075
5077
  const MapMarkerClusterIcon = '/icons/MapMarkerClusterIcon.svg';
5076
5078
  const MapMarkerClusterYellowIcon = '/icons/MapMarkerClusterYellowIcon.svg';
5077
5079
  function renderClusterer({ yandexMaps, map, points, }) {
@@ -5292,7 +5294,7 @@
5292
5294
  return [_filteredItems, _points, _filteredRemoteWorkplaces, itemsLength];
5293
5295
  }, [data, remoteWorkplaces, filtrationState]);
5294
5296
  const [activeButton, setActiveButton] = useState('all');
5295
- return (jsxs("div", { className: style('space-y-1', className), children: [jsxs("div", { className: "bg-white", children: [jsxs("div", { className: "p-3xl pb-0", children: [jsx("div", { className: "flex flex-col sm:flex-row gap-xs mb-2xl", children: jsxs(Heading, { headingType: "h3", children: [jsx("span", { suppressHydrationWarning: true, children: title }), lengthItems ? (jsx(Text, { size: "text-h2", color: "text-secondary-text", children: jsx("span", { suppressHydrationWarning: true, children: ` (${lengthItems})` }) })) : null] }) }), descriptionData ? renderDescriptionBlock$1(descriptionData) : null, onlyOffice && renderButtonsGroup(data, activeButton, setActiveButton), jsx("div", { className: style('pb-3xl', filtersVisibleStyles(activeButton)), children: renderFiltrationForm(Object.keys(initFilterState), { field, reset }, onlyOffice) })] }), jsx("div", { className: "h-[600px]", children: jsx(ClientOnly, { children: points?.length ? jsx(YandexMap, { points: points, className: "h-full" }) : jsx(Shimmer, {}) }) })] }), jsxs(ClientOnly, { children: [filteredItems.map(renderCard), filteredRemoteWorkplaces.map(renderRemoteWorkplaceCard)] })] }));
5297
+ return (jsxs("div", { className: style('space-y-1', className), children: [jsxs("div", { className: "bg-white", children: [jsxs("div", { className: "p-3xl pb-0", children: [jsx("div", { className: "flex flex-col sm:flex-row gap-xs mb-2xl", children: jsxs(Heading, { headingType: "h3", children: [jsx("span", { suppressHydrationWarning: true, children: title }), lengthItems ? (jsx(Text, { size: "text-h2", color: "text-secondary-text", children: jsx("span", { suppressHydrationWarning: true, children: ` (${lengthItems})` }) })) : null] }) }), descriptionData ? renderDescriptionBlock$1(descriptionData) : null, onlyOffice && renderButtonsGroup(data, activeButton, setActiveButton), jsx("div", { className: style('pb-3xl', filtersVisibleStyles(activeButton)), children: renderFiltrationForm(Object.keys(initFilterState), { field, reset }, onlyOffice) })] }), jsx("div", { className: "h-[600px]", children: jsx(ClientOnly, { children: points?.length ? jsx(YandexMap, { points: points, className: "h-full" }) : jsx(Loader, {}) }) })] }), jsxs(ClientOnly, { children: [filteredItems.map(renderCard), filteredRemoteWorkplaces.map(renderRemoteWorkplaceCard)] })] }));
5296
5298
  });
5297
5299
  const renderButtonsGroup = (data, activeButton, onButtonClick) => {
5298
5300
  const allButtonVersion = getVersion(activeButton === 'all');
@@ -6444,7 +6446,7 @@
6444
6446
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
6445
6447
  });
6446
6448
 
6447
- const packageVersion = "0.14.517";
6449
+ const packageVersion = "0.14.518";
6448
6450
 
6449
6451
  exports.Blocks = Blocks;
6450
6452
  exports.ContentPage = ContentPage;