@redneckz/wildless-cms-uni-blocks 0.9.1 → 0.9.3

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 (75) hide show
  1. package/bin/migration-scripts/0.5.14.js +6 -0
  2. package/bin/migration-scripts/0.8.17.js +6 -0
  3. package/bin/migration-scripts/0.8.24.js +8 -2
  4. package/bin/migration-scripts/0.8.8.js +6 -0
  5. package/bin/migration-scripts/{0.8.31.js → 0.9.3.js} +14 -12
  6. package/bundle/blocks.schema.json +1 -1
  7. package/bundle/bundle.umd.js +12 -4
  8. package/bundle/bundle.umd.min.js +1 -1
  9. package/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +1 -1
  10. package/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +1 -1
  11. package/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -1
  12. package/bundle/components/Footer/FooterContent.d.ts +2 -2
  13. package/dist/components/CarouselEventCard/CarouselEventCard.d.ts +1 -1
  14. package/dist/components/CarouselEventCard/CarouselEventCard.js +9 -3
  15. package/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  16. package/dist/components/CarouselProductCard/CarouselProductCard.d.ts +1 -1
  17. package/dist/components/CarouselProductCard/CarouselProductCard.js +9 -5
  18. package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  19. package/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -1
  20. package/dist/components/Footer/FooterContent.d.ts +2 -2
  21. package/lib/components/CarouselEventCard/CarouselEventCard.d.ts +1 -1
  22. package/lib/components/CarouselEventCard/CarouselEventCard.js +9 -3
  23. package/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  24. package/lib/components/CarouselProductCard/CarouselProductCard.d.ts +1 -1
  25. package/lib/components/CarouselProductCard/CarouselProductCard.js +9 -5
  26. package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  27. package/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -1
  28. package/lib/components/Footer/FooterContent.d.ts +2 -2
  29. package/mobile/bundle/bundle.umd.js +1 -1
  30. package/mobile/bundle/bundle.umd.min.js +1 -1
  31. package/mobile/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +1 -1
  32. package/mobile/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +1 -1
  33. package/mobile/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -1
  34. package/mobile/bundle/components/Footer/FooterContent.d.ts +2 -2
  35. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.d.ts +1 -1
  36. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +9 -3
  37. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  38. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.d.ts +1 -1
  39. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +9 -5
  40. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  41. package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -1
  42. package/mobile/dist/components/Footer/FooterContent.d.ts +2 -2
  43. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.d.ts +1 -1
  44. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +9 -3
  45. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  46. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.d.ts +1 -1
  47. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +9 -5
  48. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  49. package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -1
  50. package/mobile/lib/components/Footer/FooterContent.d.ts +2 -2
  51. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.example.json +0 -1
  52. package/mobile/src/components/CarouselEventCard/CarouselEventCard.example.json +1 -3
  53. package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +19 -9
  54. package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +0 -1
  55. package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +21 -12
  56. package/mobile/src/components/CarouselProductCard/CarouselProductCardContent.ts +3 -1
  57. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +0 -2
  58. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.example.json +0 -1
  59. package/mobile/src/components/Footer/Footer.ui.json +1 -11
  60. package/mobile/src/components/Footer/FooterContent.ts +2 -3
  61. package/package.json +1 -1
  62. package/src/components/CarouselCatalogCard/CarouselCatalogCard.example.json +0 -1
  63. package/src/components/CarouselEventCard/CarouselEventCard.example.json +1 -3
  64. package/src/components/CarouselEventCard/CarouselEventCard.tsx +19 -9
  65. package/src/components/CarouselProductCard/CarouselProductCard.example.json +0 -1
  66. package/src/components/CarouselProductCard/CarouselProductCard.tsx +21 -12
  67. package/src/components/CarouselProductCard/CarouselProductCardContent.ts +3 -1
  68. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +0 -2
  69. package/src/components/CarouselTariffsCard/CarouselTariffsCard.example.json +0 -1
  70. package/src/components/Footer/Footer.ui.json +1 -11
  71. package/src/components/Footer/FooterContent.ts +2 -3
  72. package/bin/migration-scripts/0.4.5.js +0 -109
  73. package/bin/migration-scripts/0.5.10.js +0 -36
  74. package/bin/migration-scripts/0.6.16.js +0 -90
  75. package/bin/migration-scripts/0.6.34.js +0 -53
@@ -1,5 +1,5 @@
1
- import type { UniBlockProps } from '../../model/JSXBlock';
2
1
  import type { CarouselEventCardContent } from './CarouselEventCardContent';
2
+ import type { UniBlockProps } from '../../model/JSXBlock';
3
3
  export interface CarouselEventCardProps extends CarouselEventCardContent, UniBlockProps {
4
4
  }
5
5
  export declare const CarouselEventCard: import("@redneckz/uni-jsx").UNIComponent<CarouselEventCardProps, any, any>;
@@ -1,5 +1,5 @@
1
- import type { UniBlockProps } from '../../model/JSXBlock';
2
1
  import type { CarouselProductCardContent } from './CarouselProductCardContent';
2
+ import type { UniBlockProps } from '../../model/JSXBlock';
3
3
  export interface CarouselProductCardProps extends CarouselProductCardContent, UniBlockProps {
4
4
  }
5
5
  export declare const CarouselProductCard: import("@redneckz/uni-jsx").UNIComponent<CarouselProductCardProps, any, any>;
@@ -3,6 +3,7 @@ import type { ButtonCommonIconProps } from '../../model/Button';
3
3
  import type { AdditionalDescriptionProps, HeadlineSmallProps } from '../../model/HeadlineType';
4
4
  import type { UniBlockContent } from '../../model/JSXBlock';
5
5
  import type { IconProps } from '../../model/Picture';
6
+ import type { LinkCommonProps } from '../../model/LinkProps';
6
7
  import type { TextAlign } from '../../ui-kit/Text/TextProps';
7
8
  /**
8
9
  * @title Элемент списка
@@ -14,7 +15,7 @@ export interface ListProps {
14
15
  /**
15
16
  * @title Карточка продуктовой карусели
16
17
  */
17
- export declare type CarouselProductCardContent = UniBlockContent & HeadlineSmallProps & AdditionalDescriptionProps & IconProps & ButtonCommonIconProps & BulletsProps & {
18
+ export declare type CarouselProductCardContent = UniBlockContent & HeadlineSmallProps & AdditionalDescriptionProps & IconProps & ButtonCommonIconProps & BulletsProps & LinkCommonProps & {
18
19
  /** @title Список */
19
20
  items?: ListProps[];
20
21
  align?: TextAlign;
@@ -1,6 +1,7 @@
1
1
  import type { DescriptionProps } from '../../model/HeadlineType';
2
2
  import type { LinkProps } from '../../model/LinkProps';
3
3
  import type { IconProps } from '../../model/Picture';
4
+ import type { UniBlockContent } from '../../model/JSXBlock';
4
5
  /**
5
6
  * @title Тип контакта
6
7
  * @enumNames [
@@ -23,6 +24,5 @@ export declare type ContactInfo = DescriptionProps & {
23
24
  export declare type SubMenuItem = LinkProps & IconProps;
24
25
  /**
25
26
  * @title Подвал
26
- * @hidden
27
27
  */
28
- export declare type FooterContent = {};
28
+ export declare type FooterContent = UniBlockContent & {};
@@ -1,5 +1,5 @@
1
- import type { UniBlockProps } from '../../model/JSXBlock';
2
1
  import type { CarouselEventCardContent } from './CarouselEventCardContent';
2
+ import type { UniBlockProps } from '../../model/JSXBlock';
3
3
  export interface CarouselEventCardProps extends CarouselEventCardContent, UniBlockProps {
4
4
  }
5
5
  export declare const CarouselEventCard: import("@redneckz/uni-jsx").UNIComponent<CarouselEventCardProps, any, any>;
@@ -3,10 +3,16 @@ exports.CarouselEventCard = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
6
+ const getIconWithVersion_1 = require("../../utils/getIconWithVersion");
6
7
  const Heading_1 = require("../../ui-kit/Heading/Heading");
7
8
  const Img_1 = require("../../ui-kit/Img/Img");
8
- const Text_1 = require("../../ui-kit/Text/Text");
9
- const getIconWithVersion_1 = require("../../utils/getIconWithVersion");
10
9
  const style_1 = require("../../utils/style");
11
- exports.CarouselEventCard = (0, uni_jsx_1.JSX)(({ className = '', icon, title, description, href, target, ...rest }) => ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('flex flex-col w-[365px]', className), ...rest, children: (0, jsx_runtime_1.jsxs)("a", { href: href, target: target, role: "link", children: [icon?.icon ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: (0, getIconWithVersion_1.getIconWithVersion)(icon), asSVG: true }) : null, icon?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon }) : null, title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h6", as: "h4", className: "text-left mb-2", title: title })) : null, description ? ((0, jsx_runtime_1.jsx)("div", { className: "mb-4", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { font: "font-light", size: "text-s", color: "text-secondary-text", children: description }) })) : null] }) })));
10
+ const Text_1 = require("../../ui-kit/Text/Text");
11
+ const useLink_1 = require("../../hooks/useLink");
12
+ exports.CarouselEventCard = (0, uni_jsx_1.JSX)(({ className = '', icon, title, description, href, target, ...rest }) => {
13
+ const link = (0, useLink_1.useLink)();
14
+ const adjustedProps = link({ href, target });
15
+ const tagName = href ? 'a' : 'section';
16
+ return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('flex flex-col w-[365px]', className), extraProps: adjustedProps, tag: tagName, ...rest, children: [icon?.icon ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: (0, getIconWithVersion_1.getIconWithVersion)(icon), asSVG: true }) : null, icon?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon }) : null, title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h6", as: "h4", className: "text-left mb-2", title: title })) : null, description ? ((0, jsx_runtime_1.jsx)("div", { className: "mb-4", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { font: "font-light", size: "text-s", color: "text-secondary-text", children: description }) })) : null] }));
17
+ });
12
18
  //# sourceMappingURL=CarouselEventCard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CarouselEventCard.js","sourceRoot":"","sources":["../../../src/components/CarouselEventCard/CarouselEventCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,4DAAyD;AACzD,0DAAuD;AACvD,8CAA2C;AAC3C,iDAA8C;AAC9C,uEAAoE;AACpE,6CAA0C;AAM7B,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CACvE,uBAAC,2BAAY,IAAC,SAAS,EAAE,IAAA,aAAK,EAAC,yBAAyB,EAAE,SAAS,CAAC,KAAM,IAAI,YAC5E,+BAAG,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAC,MAAM,aACvC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAA,uCAAkB,EAAC,IAAI,CAAC,EAAE,KAAK,SAAG,CAAC,CAAC,CAAC,IAAI,EAClE,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,EACvC,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,SAAS,EAAC,gBAAgB,EAAC,KAAK,EAAE,KAAK,GAAI,CAC9E,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,CACb,gCAAK,SAAS,EAAC,MAAM,YACnB,uBAAC,WAAI,IAAC,IAAI,EAAC,YAAY,EAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,qBAAqB,YAC9D,WAAW,GACP,GACH,CACP,CAAC,CAAC,CAAC,IAAI,IACN,GACS,CAChB,CACF,CAAC"}
1
+ {"version":3,"file":"CarouselEventCard.js","sourceRoot":"","sources":["../../../src/components/CarouselEventCard/CarouselEventCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,4DAAyD;AACzD,uEAAoE;AACpE,0DAAuD;AACvD,8CAA2C;AAC3C,6CAA0C;AAC1C,iDAA8C;AAC9C,iDAA8C;AAMjC,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACtE,MAAM,IAAI,GAAG,IAAA,iBAAO,GAAE,CAAC;IACvB,MAAM,aAAa,GAAG,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC;IAC7C,MAAM,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;IAEvC,OAAO,CACL,wBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EAAC,yBAAyB,EAAE,SAAS,CAAC,EACtD,UAAU,EAAE,aAAa,EACzB,GAAG,EAAE,OAAO,KACR,IAAI,aAEP,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAA,uCAAkB,EAAC,IAAI,CAAC,EAAE,KAAK,SAAG,CAAC,CAAC,CAAC,IAAI,EAClE,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,EACvC,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,SAAS,EAAC,gBAAgB,EAAC,KAAK,EAAE,KAAK,GAAI,CAC9E,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,CACb,gCAAK,SAAS,EAAC,MAAM,YACnB,uBAAC,WAAI,IAAC,IAAI,EAAC,YAAY,EAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,qBAAqB,YAC9D,WAAW,GACP,GACH,CACP,CAAC,CAAC,CAAC,IAAI,IACK,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { UniBlockProps } from '../../model/JSXBlock';
2
1
  import type { CarouselProductCardContent } from './CarouselProductCardContent';
2
+ import type { UniBlockProps } from '../../model/JSXBlock';
3
3
  export interface CarouselProductCardProps extends CarouselProductCardContent, UniBlockProps {
4
4
  }
5
5
  export declare const CarouselProductCard: import("@redneckz/uni-jsx").UNIComponent<CarouselProductCardProps, any, any>;
@@ -3,15 +3,19 @@ exports.CarouselProductCard = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
6
- const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection");
6
+ const headlineVersionStyles_1 = require("../Headline/headlineVersionStyles");
7
7
  const Img_1 = require("../../ui-kit/Img/Img");
8
8
  const List_1 = require("../../ui-kit/List/List");
9
9
  const Paragraph_1 = require("../../ui-kit/Paragraph/Paragraph");
10
- const Text_1 = require("../../ui-kit/Text/Text");
10
+ const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection");
11
11
  const style_1 = require("../../utils/style");
12
- const headlineVersionStyles_1 = require("../Headline/headlineVersionStyles");
13
- exports.CarouselProductCard = (0, uni_jsx_1.JSX)(({ className = '', title, headlineSmallVersion = 'H6', description, additionalDescription, icon, items = [], button = {}, version = 'primary', isDotted = true, align = 'text-center', ...rest }) => {
14
- return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('flex flex-col justify-between items-stretch min-w-[260px] h-full w-full p-6', 'box-border border-solid border border-gray', align, className), version: version, ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col h-full", children: [renderImage(icon), renderCardTitle(headlineSmallVersion, title), renderDescription(description, title), renderItems(items, isDotted, version), renderAdditionalDescription(additionalDescription)] }), (0, renderButtonsSection_1.renderButtonsSection)([button], { buttonClassName: 'mt-6 w-full' })] }));
12
+ const Text_1 = require("../../ui-kit/Text/Text");
13
+ const useLink_1 = require("../../hooks/useLink");
14
+ exports.CarouselProductCard = (0, uni_jsx_1.JSX)(({ additionalDescription, align = 'text-center', button = {}, className = '', description, headlineSmallVersion = 'H6', href, icon, isDotted = true, items = [], target, title, version = 'primary', ...rest }) => {
15
+ const link = (0, useLink_1.useLink)();
16
+ const adjustedProps = link({ href, target });
17
+ const tagName = href ? 'a' : 'section';
18
+ return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('flex flex-col justify-between items-stretch min-w-[260px] h-full w-full p-6', 'box-border border-solid border border-gray', align, className), extraProps: adjustedProps, tag: tagName, version: version, ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col h-full", children: [renderImage(icon), renderCardTitle(headlineSmallVersion, title), renderDescription(description, title), renderItems(items, isDotted, version), renderAdditionalDescription(additionalDescription)] }), (0, renderButtonsSection_1.renderButtonsSection)([button], { buttonClassName: 'mt-6 w-full' })] }));
15
19
  });
16
20
  const renderImage = (image) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex justify-center", children: [image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mb-5", image: image }) : null, image?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: `w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full`, image: image, asSVG: true })) : null] }));
17
21
  const renderCardTitle = (headlineSmallVersion, title) => title ? (0, jsx_runtime_1.jsx)(Text_1.Text, { size: headlineVersionStyles_1.HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) : null;
@@ -1 +1 @@
1
- {"version":3,"file":"CarouselProductCard.js","sourceRoot":"","sources":["../../../src/components/CarouselProductCard/CarouselProductCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,4DAAyD;AACzD,mFAAgF;AAChF,8CAA2C;AAC3C,iDAA8C;AAC9C,gEAA6D;AAC7D,iDAA8C;AAC9C,6CAA0C;AAC1C,6EAA2E;AAK9D,QAAA,mBAAmB,GAAG,IAAA,aAAG,EACpC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,EACL,oBAAoB,GAAG,IAAI,EAC3B,WAAW,EACX,qBAAqB,EACrB,IAAI,EACJ,KAAK,GAAG,EAAE,EACV,MAAM,GAAG,EAAE,EACX,OAAO,GAAG,SAAS,EACnB,QAAQ,GAAG,IAAI,EACf,KAAK,GAAG,aAAa,EACrB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,OAAO,CACL,wBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EACd,6EAA6E,EAC7E,4CAA4C,EAC5C,KAA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IAAI,EAAC,QAAQ,YAAE,WAAW,GAAa,GAC9C,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AAEX,MAAM,2BAA2B,GAAG,CAAC,qBAA8B,EAAE,EAAE,CACrE,qBAAqB,CAAC,CAAC,CAAC,CACtB,gCAAK,SAAS,EAAC,SAAS,YACtB,uBAAC,WAAI,IACH,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,YAAY,EACjB,KAAK,EAAC,wDAAwD,YAE7D,qBAAqB,GACjB,GACH,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AAEX,MAAM,WAAW,GAAG,CAAC,KAAkB,EAAE,QAAiB,EAAE,UAAwB,SAAS,EAAE,EAAE,CAC/F,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACd,uBAAC,WAAI,IACH,SAAS,EAAE,6BAA6B,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,EAAE,EAAE,EAC7F,aAAa,EAAC,WAAW,EACzB,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAc,CAAC,EAC5E,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC,CAAC,CAAC,IAAI,CAAC"}
1
+ {"version":3,"file":"CarouselProductCard.js","sourceRoot":"","sources":["../../../src/components/CarouselProductCard/CarouselProductCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,4DAAyD;AACzD,6EAA2E;AAC3E,8CAA2C;AAC3C,iDAA8C;AAC9C,gEAA6D;AAC7D,mFAAgF;AAChF,6CAA0C;AAC1C,iDAA8C;AAC9C,iDAA8C;AAQjC,QAAA,mBAAmB,GAAG,IAAA,aAAG,EACpC,CAAC,EACC,qBAAqB,EACrB,KAAK,GAAG,aAAa,EACrB,MAAM,GAAG,EAAE,EACX,SAAS,G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,EAAE,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAc,CAAC,EAC5E,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC,CAAC,CAAC,IAAI,CAAC"}
@@ -3,6 +3,7 @@ import type { ButtonCommonIconProps } from '../../model/Button';
3
3
  import type { AdditionalDescriptionProps, HeadlineSmallProps } from '../../model/HeadlineType';
4
4
  import type { UniBlockContent } from '../../model/JSXBlock';
5
5
  import type { IconProps } from '../../model/Picture';
6
+ import type { LinkCommonProps } from '../../model/LinkProps';
6
7
  import type { TextAlign } from '../../ui-kit/Text/TextProps';
7
8
  /**
8
9
  * @title Элемент списка
@@ -14,7 +15,7 @@ export interface ListProps {
14
15
  /**
15
16
  * @title Карточка продуктовой карусели
16
17
  */
17
- export declare type CarouselProductCardContent = UniBlockContent & HeadlineSmallProps & AdditionalDescriptionProps & IconProps & ButtonCommonIconProps & BulletsProps & {
18
+ export declare type CarouselProductCardContent = UniBlockContent & HeadlineSmallProps & AdditionalDescriptionProps & IconProps & ButtonCommonIconProps & BulletsProps & LinkCommonProps & {
18
19
  /** @title Список */
19
20
  items?: ListProps[];
20
21
  align?: TextAlign;
@@ -1,6 +1,7 @@
1
1
  import type { DescriptionProps } from '../../model/HeadlineType';
2
2
  import type { LinkProps } from '../../model/LinkProps';
3
3
  import type { IconProps } from '../../model/Picture';
4
+ import type { UniBlockContent } from '../../model/JSXBlock';
4
5
  /**
5
6
  * @title Тип контакта
6
7
  * @enumNames [
@@ -23,6 +24,5 @@ export declare type ContactInfo = DescriptionProps & {
23
24
  export declare type SubMenuItem = LinkProps & IconProps;
24
25
  /**
25
26
  * @title Подвал
26
- * @hidden
27
27
  */
28
- export declare type FooterContent = {};
28
+ export declare type FooterContent = UniBlockContent & {};
@@ -1,5 +1,5 @@
1
- import type { UniBlockProps } from '../../model/JSXBlock';
2
1
  import type { CarouselEventCardContent } from './CarouselEventCardContent';
2
+ import type { UniBlockProps } from '../../model/JSXBlock';
3
3
  export interface CarouselEventCardProps extends CarouselEventCardContent, UniBlockProps {
4
4
  }
5
5
  export declare const CarouselEventCard: import("@redneckz/uni-jsx").UNIComponent<CarouselEventCardProps, any, any>;
@@ -1,10 +1,16 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
3
  import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
4
+ import { getIconWithVersion } from '../../utils/getIconWithVersion.js';
4
5
  import { Heading } from '../../ui-kit/Heading/Heading.js';
5
6
  import { Img } from '../../ui-kit/Img/Img.js';
6
- import { Text } from '../../ui-kit/Text/Text.js';
7
- import { getIconWithVersion } from '../../utils/getIconWithVersion.js';
8
7
  import { style } from '../../utils/style.js';
9
- export const CarouselEventCard = JSX(({ className = '', icon, title, description, href, target, ...rest }) => (_jsx(BlockWrapper, { className: style('flex flex-col w-[365px]', className), ...rest, children: _jsxs("a", { href: href, target: target, role: "link", children: [icon?.icon ? _jsx(Img, { image: getIconWithVersion(icon), asSVG: true }) : null, icon?.src ? _jsx(Img, { image: icon }) : null, title ? (_jsx(Heading, { headingType: "h6", as: "h4", className: "text-left mb-2", title: title })) : null, description ? (_jsx("div", { className: "mb-4", children: _jsx(Text, { font: "font-light", size: "text-s", color: "text-secondary-text", children: description }) })) : null] }) })));
8
+ import { Text } from '../../ui-kit/Text/Text.js';
9
+ import { useLink } from '../../hooks/useLink.js';
10
+ export const CarouselEventCard = JSX(({ className = '', icon, title, description, href, target, ...rest }) => {
11
+ const link = useLink();
12
+ const adjustedProps = link({ href, target });
13
+ const tagName = href ? 'a' : 'section';
14
+ return (_jsxs(BlockWrapper, { className: style('flex flex-col w-[365px]', className), extraProps: adjustedProps, tag: tagName, ...rest, children: [icon?.icon ? _jsx(Img, { image: getIconWithVersion(icon), asSVG: true }) : null, icon?.src ? _jsx(Img, { image: icon }) : null, title ? (_jsx(Heading, { headingType: "h6", as: "h4", className: "text-left mb-2", title: title })) : null, description ? (_jsx("div", { className: "mb-4", children: _jsx(Text, { font: "font-light", size: "text-s", color: "text-secondary-text", children: description }) })) : null] }));
15
+ });
10
16
  //# sourceMappingURL=CarouselEventCard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CarouselEventCard.js","sourceRoot":"","sources":["../../../src/components/CarouselEventCard/CarouselEventCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAM1C,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAClC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CACvE,KAAC,YAAY,IAAC,SAAS,EAAE,KAAK,CAAC,yBAAyB,EAAE,SAAS,CAAC,KAAM,IAAI,YAC5E,aAAG,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAC,MAAM,aACvC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,KAAC,GAAG,IAAC,KAAK,EAAE,kBAAkB,CAAC,IAAI,CAAC,EAAE,KAAK,SAAG,CAAC,CAAC,CAAC,IAAI,EAClE,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,KAAC,GAAG,IAAC,KAAK,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,EACvC,KAAK,CAAC,CAAC,CAAC,CACP,KAAC,OAAO,IAAC,WAAW,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,SAAS,EAAC,gBAAgB,EAAC,KAAK,EAAE,KAAK,GAAI,CAC9E,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,CACb,cAAK,SAAS,EAAC,MAAM,YACnB,KAAC,IAAI,IAAC,IAAI,EAAC,YAAY,EAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,qBAAqB,YAC9D,WAAW,GACP,GACH,CACP,CAAC,CAAC,CAAC,IAAI,IACN,GACS,CAChB,CACF,CAAC"}
1
+ {"version":3,"file":"CarouselEventCard.js","sourceRoot":"","sources":["../../../src/components/CarouselEventCard/CarouselEventCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAM9C,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAClC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACtE,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,aAAa,GAAG,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC;IAC7C,MAAM,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;IAEvC,OAAO,CACL,MAAC,YAAY,IACX,SAAS,EAAE,KAAK,CAAC,yBAAyB,EAAE,SAAS,CAAC,EACtD,UAAU,EAAE,aAAa,EACzB,GAAG,EAAE,OAAO,KACR,IAAI,aAEP,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,KAAC,GAAG,IAAC,KAAK,EAAE,kBAAkB,CAAC,IAAI,CAAC,EAAE,KAAK,SAAG,CAAC,CAAC,CAAC,IAAI,EAClE,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,KAAC,GAAG,IAAC,KAAK,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,EACvC,KAAK,CAAC,CAAC,CAAC,CACP,KAAC,OAAO,IAAC,WAAW,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,SAAS,EAAC,gBAAgB,EAAC,KAAK,EAAE,KAAK,GAAI,CAC9E,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,CACb,cAAK,SAAS,EAAC,MAAM,YACnB,KAAC,IAAI,IAAC,IAAI,EAAC,YAAY,EAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,qBAAqB,YAC9D,WAAW,GACP,GACH,CACP,CAAC,CAAC,CAAC,IAAI,IACK,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { UniBlockProps } from '../../model/JSXBlock';
2
1
  import type { CarouselProductCardContent } from './CarouselProductCardContent';
2
+ import type { UniBlockProps } from '../../model/JSXBlock';
3
3
  export interface CarouselProductCardProps extends CarouselProductCardContent, UniBlockProps {
4
4
  }
5
5
  export declare const CarouselProductCard: import("@redneckz/uni-jsx").UNIComponent<CarouselProductCardProps, any, any>;
@@ -1,15 +1,19 @@
1
1
  import { jsxs as _jsxs, jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
3
  import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
4
- import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection.js';
4
+ import { HEADLINE_SMALL_VERSION } from '../Headline/headlineVersionStyles.js';
5
5
  import { Img } from '../../ui-kit/Img/Img.js';
6
6
  import { List } from '../../ui-kit/List/List.js';
7
7
  import { Paragraph } from '../../ui-kit/Paragraph/Paragraph.js';
8
- import { Text } from '../../ui-kit/Text/Text.js';
8
+ import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection.js';
9
9
  import { style } from '../../utils/style.js';
10
- import { HEADLINE_SMALL_VERSION } from '../Headline/headlineVersionStyles.js';
11
- export const CarouselProductCard = JSX(({ className = '', title, headlineSmallVersion = 'H6', description, additionalDescription, icon, items = [], button = {}, version = 'primary', isDotted = true, align = 'text-center', ...rest }) => {
12
- return (_jsxs(BlockWrapper, { className: style('flex flex-col justify-between items-stretch min-w-[260px] h-full w-full p-6', 'box-border border-solid border border-gray', align, className), version: version, ...rest, children: [_jsxs("div", { className: "flex flex-col h-full", children: [renderImage(icon), renderCardTitle(headlineSmallVersion, title), renderDescription(description, title), renderItems(items, isDotted, version), renderAdditionalDescription(additionalDescription)] }), renderButtonsSection([button], { buttonClassName: 'mt-6 w-full' })] }));
10
+ import { Text } from '../../ui-kit/Text/Text.js';
11
+ import { useLink } from '../../hooks/useLink.js';
12
+ export const CarouselProductCard = JSX(({ additionalDescription, align = 'text-center', button = {}, className = '', description, headlineSmallVersion = 'H6', href, icon, isDotted = true, items = [], target, title, version = 'primary', ...rest }) => {
13
+ const link = useLink();
14
+ const adjustedProps = link({ href, target });
15
+ const tagName = href ? 'a' : 'section';
16
+ return (_jsxs(BlockWrapper, { className: style('flex flex-col justify-between items-stretch min-w-[260px] h-full w-full p-6', 'box-border border-solid border border-gray', align, className), extraProps: adjustedProps, tag: tagName, version: version, ...rest, children: [_jsxs("div", { className: "flex flex-col h-full", children: [renderImage(icon), renderCardTitle(headlineSmallVersion, title), renderDescription(description, title), renderItems(items, isDotted, version), renderAdditionalDescription(additionalDescription)] }), renderButtonsSection([button], { buttonClassName: 'mt-6 w-full' })] }));
13
17
  });
14
18
  const renderImage = (image) => (_jsxs("div", { className: "flex justify-center", children: [image?.src ? _jsx(Img, { className: "mb-5", image: image }) : null, image?.icon ? (_jsx(Img, { className: `w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full`, image: image, asSVG: true })) : null] }));
15
19
  const renderCardTitle = (headlineSmallVersion, title) => title ? _jsx(Text, { size: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) : null;
@@ -1 +1 @@
1
- {"version":3,"file":"CarouselProductCard.js","sourceRoot":"","sources":["../../../src/components/CarouselProductCard/CarouselProductCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAIxC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAK3E,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CACpC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,EACL,oBAAoB,GAAG,IAAI,EAC3B,WAAW,EACX,qBAAqB,EACrB,IAAI,EACJ,KAAK,GAAG,EAAE,EACV,MAAM,GAAG,EAAE,EACX,OAAO,GAAG,SAAS,EACnB,QAAQ,GAAG,IAAI,E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ACjE,WAAW,CAAC,CAAC,CAAC,CACZ,cAAK,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,YACjC,KAAC,SAAS,IAAC,IAAI,EAAC,QAAQ,YAAE,WAAW,GAAa,GAC9C,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AAEX,MAAM,2BAA2B,GAAG,CAAC,qBAA8B,EAAE,EAAE,CACrE,qBAAqB,CAAC,CAAC,CAAC,CACtB,cAAK,SAAS,EAAC,SAAS,YACtB,KAAC,IAAI,IACH,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,YAAY,EACjB,KAAK,EAAC,wDAAwD,YAE7D,qBAAqB,GACjB,GACH,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AAEX,MAAM,WAAW,GAAG,CAAC,KAAkB,EAAE,QAAiB,EAAE,UAAwB,SAAS,EAAE,EAAE,CAC/F,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACd,KAAC,IAAI,IACH,SAAS,EAAE,6BAA6B,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,EAAE,EAAE,EAC7F,aAAa,EAAC,WAAW,EACzB,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAc,CAAC,EAC5E,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC,CAAC,CAAC,IAAI,CAAC"}
1
+ {"version":3,"file":"CarouselProductCard.js","sourceRoot":"","sources":["../../../src/components/CarouselProductCard/CarouselProductCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAA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C,IAAI,IACH,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,YAAY,EACjB,KAAK,EAAC,wDAAwD,YAE7D,qBAAqB,GACjB,GACH,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AAEX,MAAM,WAAW,GAAG,CAAC,KAAkB,EAAE,QAAiB,EAAE,UAAwB,SAAS,EAAE,EAAE,CAC/F,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACd,KAAC,IAAI,IACH,SAAS,EAAE,6BAA6B,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,EAAE,EAAE,EAC7F,aAAa,EAAC,WAAW,EACzB,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAc,CAAC,EAC5E,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC,CAAC,CAAC,IAAI,CAAC"}
@@ -3,6 +3,7 @@ import type { ButtonCommonIconProps } from '../../model/Button';
3
3
  import type { AdditionalDescriptionProps, HeadlineSmallProps } from '../../model/HeadlineType';
4
4
  import type { UniBlockContent } from '../../model/JSXBlock';
5
5
  import type { IconProps } from '../../model/Picture';
6
+ import type { LinkCommonProps } from '../../model/LinkProps';
6
7
  import type { TextAlign } from '../../ui-kit/Text/TextProps';
7
8
  /**
8
9
  * @title Элемент списка
@@ -14,7 +15,7 @@ export interface ListProps {
14
15
  /**
15
16
  * @title Карточка продуктовой карусели
16
17
  */
17
- export declare type CarouselProductCardContent = UniBlockContent & HeadlineSmallProps & AdditionalDescriptionProps & IconProps & ButtonCommonIconProps & BulletsProps & {
18
+ export declare type CarouselProductCardContent = UniBlockContent & HeadlineSmallProps & AdditionalDescriptionProps & IconProps & ButtonCommonIconProps & BulletsProps & LinkCommonProps & {
18
19
  /** @title Список */
19
20
  items?: ListProps[];
20
21
  align?: TextAlign;
@@ -1,6 +1,7 @@
1
1
  import type { DescriptionProps } from '../../model/HeadlineType';
2
2
  import type { LinkProps } from '../../model/LinkProps';
3
3
  import type { IconProps } from '../../model/Picture';
4
+ import type { UniBlockContent } from '../../model/JSXBlock';
4
5
  /**
5
6
  * @title Тип контакта
6
7
  * @enumNames [
@@ -23,6 +24,5 @@ export declare type ContactInfo = DescriptionProps & {
23
24
  export declare type SubMenuItem = LinkProps & IconProps;
24
25
  /**
25
26
  * @title Подвал
26
- * @hidden
27
27
  */
28
- export declare type FooterContent = {};
28
+ export declare type FooterContent = UniBlockContent & {};
@@ -1897,7 +1897,7 @@
1897
1897
  return (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: i }, el) : [el]), []);
1898
1898
  }
1899
1899
 
1900
- const packageVersion = "0.9.1";
1900
+ const packageVersion = "0.9.3";
1901
1901
 
1902
1902
  exports.Blocks = Blocks;
1903
1903
  exports.ContentPage = ContentPage;