@redneckz/wildless-cms-uni-blocks 0.14.160 → 0.14.162

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 (52) hide show
  1. package/bundle/bundle.umd.js +6 -6
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/cosmos-static/icons/SmallClockIcon.svg +1 -1
  4. package/cosmos-static/icons/sprites.svg +1 -1
  5. package/dist/components/Footer/Contacts.js +1 -1
  6. package/dist/components/Footer/Contacts.js.map +1 -1
  7. package/dist/components/OfficesAtmsMap/Badge.js +2 -1
  8. package/dist/components/OfficesAtmsMap/Badge.js.map +1 -1
  9. package/dist/components/OfficesAtmsMap/CardCell.js +1 -1
  10. package/dist/components/OfficesAtmsMap/CardCell.js.map +1 -1
  11. package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +2 -2
  12. package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  13. package/lib/common.css +1 -1
  14. package/lib/components/Footer/Contacts.js +1 -1
  15. package/lib/components/Footer/Contacts.js.map +1 -1
  16. package/lib/components/OfficesAtmsMap/Badge.js +3 -2
  17. package/lib/components/OfficesAtmsMap/Badge.js.map +1 -1
  18. package/lib/components/OfficesAtmsMap/CardCell.js +1 -1
  19. package/lib/components/OfficesAtmsMap/CardCell.js.map +1 -1
  20. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +2 -2
  21. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  22. package/mobile/bundle/bundle.umd.js +6 -6
  23. package/mobile/bundle/bundle.umd.min.js +1 -1
  24. package/mobile/dist/components/Footer/Contacts.js +1 -1
  25. package/mobile/dist/components/Footer/Contacts.js.map +1 -1
  26. package/mobile/dist/components/OfficesAtmsMap/Badge.js +2 -1
  27. package/mobile/dist/components/OfficesAtmsMap/Badge.js.map +1 -1
  28. package/mobile/dist/components/OfficesAtmsMap/CardCell.js +1 -1
  29. package/mobile/dist/components/OfficesAtmsMap/CardCell.js.map +1 -1
  30. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +2 -2
  31. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  32. package/mobile/lib/common.css +1 -1
  33. package/mobile/lib/components/Footer/Contacts.js +1 -1
  34. package/mobile/lib/components/Footer/Contacts.js.map +1 -1
  35. package/mobile/lib/components/OfficesAtmsMap/Badge.js +3 -2
  36. package/mobile/lib/components/OfficesAtmsMap/Badge.js.map +1 -1
  37. package/mobile/lib/components/OfficesAtmsMap/CardCell.js +1 -1
  38. package/mobile/lib/components/OfficesAtmsMap/CardCell.js.map +1 -1
  39. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +2 -2
  40. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  41. package/mobile/src/components/Footer/Contacts.tsx +1 -1
  42. package/mobile/src/components/OfficesAtmsMap/Badge.tsx +5 -1
  43. package/mobile/src/components/OfficesAtmsMap/CardCell.tsx +1 -1
  44. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +9 -5
  45. package/mobile/src/icons/SmallClockIcon.svg +1 -1
  46. package/mobile/tailwind.config.cjs +3 -0
  47. package/package.json +1 -1
  48. package/src/components/Footer/Contacts.tsx +1 -1
  49. package/src/components/OfficesAtmsMap/Badge.tsx +5 -1
  50. package/src/components/OfficesAtmsMap/CardCell.tsx +1 -1
  51. package/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +9 -5
  52. package/src/icons/SmallClockIcon.svg +1 -1
@@ -4201,7 +4201,7 @@
4201
4201
  }
4202
4202
  };
4203
4203
 
4204
- const Contacts = JSX(({ className = '', items }) => (jsxs("div", { className: className, children: [items?.length ? items.map(renderContactsGroup) : null, jsx(LinkButton, { version: "primary", className: "w-full", href: "https://old.rshb.ru/feedback/question/", target: "_blank", ariaLabel: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C", text: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C" })] })));
4204
+ const Contacts = JSX(({ className = '', items }) => (jsxs("div", { className: className, children: [items?.length ? items.map(renderContactsGroup) : null, jsx(LinkButton, { version: "primary", className: "w-full", href: "https://beta.rshb.ru/natural/feedback/question", target: "_blank", ariaLabel: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C", text: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C" })] })));
4205
4205
  const renderContactsGroup = (item, i) => (jsxs("div", { className: "mb-m space-y-m", children: [jsx("div", { children: jsx(Text, { size: "text-l", font: "font-medium", children: item?.title }) }), jsx("div", { className: "space-y-m", children: item.items?.map(renderContact) })] }, String(i)));
4206
4206
  const renderContact = (item, index) => (jsxs("div", { className: "space-y-2xs", children: [jsx("div", { children: renderText(item.type, item.text) }), jsx(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text", children: item.description })] }, String(index)));
4207
4207
  const renderText = (type, text = '') => {
@@ -4978,9 +4978,9 @@
4978
4978
  .filter((_) => _ && _.length === 2);
4979
4979
  return [_filteredItems, _points, _filteredItems.length];
4980
4980
  }, [data, filtrationState]);
4981
- return (jsxs("div", { className: style('space-y-1', className), children: [jsxs("div", { className: "bg-white", children: [jsxs("div", { className: "pt-6xl px-6xl", children: [jsxs("div", { className: "flex gap-xs pb-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, 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)] }));
4981
+ 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, 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)] }));
4982
4982
  });
4983
- const renderDescriptionBlock$1 = ({ __html, list }) => __html || list?.length ? (jsxs("div", { className: "p-xl mb-2xl border-b sm:border border-main-divider sm:rounded-md", children: [__html ? jsx(RichText, { __html: __html }) : null, list?.length ? (jsx("div", { className: "flex flex-col sm:flex-row gap-2xl sm:flex-wrap pt-xs", children: list.map((item, i) => (jsxs("div", { className: "flex gap-xs items-center", children: [item?.image ? jsx(Img, { image: item.image }) : null, item?.text ? (jsx(Text, { size: "text-m", font: "font-light", children: item.text })) : null] }, String(i)))) })) : null] })) : null;
4983
+ const renderDescriptionBlock$1 = ({ __html, list }) => __html || list?.length ? (jsxs("div", { className: "mb-2xl border-b sm:border border-main-divider sm:rounded-md", children: [__html ? (jsx("div", { className: "mb-2xl", children: jsx(RichText, { __html: __html }) })) : null, list?.length ? (jsx("div", { className: "flex flex-col sm:flex-row gap-2xl sm:flex-wrap pb-2xl sm:pb-xl", children: list.map((item, i) => (jsxs("div", { className: "flex gap-xs items-center", children: [item?.image ? jsx(Img, { image: item.image }) : null, item?.text ? (jsx(Text, { size: "text-m", font: "font-light", children: item.text })) : null] }, String(i)))) })) : null] })) : null;
4984
4984
 
4985
4985
  const colorStyle = {
4986
4986
  yellow: { border: 'border-yellow-light', text: 'text-yellow' },
@@ -4988,7 +4988,7 @@
4988
4988
  gray: { border: 'border-gray', text: 'text-secondary-text' },
4989
4989
  red: { border: 'border-error/30', text: 'text-error' },
4990
4990
  };
4991
- const Badge = JSX(({ className, children, color = 'gray' }) => (jsx("div", { className: style('p-s sm:border sm:border-gray rounded-md flex items-center', colorStyle[color].border, className), children: jsx(Text, { size: "text-m", color: colorStyle[color].text, children: children }) })));
4991
+ const Badge = JSX(({ className, children, color = 'gray' }) => (jsxs("div", { className: style('pt-2xl sm:p-s sm:border sm:border-gray 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 })] })));
4992
4992
 
4993
4993
  const CardCell = JSX(({ value, subText, children, ...props }) => {
4994
4994
  const textItems = (Array.isArray(value) ? value : value?.split(',') ?? []).filter(Boolean);
@@ -4997,7 +4997,7 @@
4997
4997
  }
4998
4998
  return renderCardCell({ textItems, subText, children, ...props });
4999
4999
  });
5000
- const renderCardCell = ({ label, labelSize = 'text-m', textItems, subColor, subText, className, children, }) => (jsxs("div", { className: style('flex gap-2xs flex-col h-full max-w-[300px]', className), children: [label ? (jsx(Text, { color: "text-secondary-text", font: "font-light", size: labelSize, children: label })) : null, children ||
5000
+ const renderCardCell = ({ label, labelSize = 'text-m', textItems, subColor, subText, className, children, }) => (jsxs("div", { className: style('flex gap-2xl sm:gap-2xs flex-col h-full max-w-[300px]', className), children: [label ? (jsx(Text, { color: "text-secondary-text", font: "font-light", size: labelSize, children: label })) : null, children ||
5001
5001
  textItems.filter(Boolean).map((text, i) => (jsx(Text, { size: "text-l", children: text.trim() }, String(i)))), subText ? (jsx(Text, { color: subColor, size: "text-m", children: subText })) : null] }));
5002
5002
 
5003
5003
  const CardRow = JSX(({ className, children }) => (jsx("div", { className: style('sm:flex sm:border-t sm:border-solid sm:border-main-divider py-xl gap-x-6xl gap-y-xl', className), children: children })));
@@ -6111,7 +6111,7 @@
6111
6111
  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" }) }));
6112
6112
  }
6113
6113
 
6114
- const packageVersion = "0.14.159";
6114
+ const packageVersion = "0.14.161";
6115
6115
 
6116
6116
  exports.Blocks = Blocks;
6117
6117
  exports.ContentPage = ContentPage;