@redneckz/wildless-cms-uni-blocks 0.3.50 → 0.3.53

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 (95) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +9 -61
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/dist/components/Gallery/Gallery.mobile.js +4 -3
  5. package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
  6. package/dist/components/Gallery/GalleryCardInner.js +4 -4
  7. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  8. package/dist/components/Gallery/GalleryContent.d.ts +5 -0
  9. package/dist/components/OtherProducts/OtherProductsContent.d.ts +2 -2
  10. package/dist/components/OtherProducts/OtherProductsItem.d.ts +2 -2
  11. package/dist/components/OtherProducts/OtherProductsItem.js +1 -1
  12. package/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
  13. package/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  14. package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
  15. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  16. package/dist/index.d.ts +0 -11
  17. package/dist/index.js +1 -9
  18. package/dist/index.js.map +1 -1
  19. package/dist/ui-kit/List/ListItem.d.ts +1 -0
  20. package/dist/ui-kit/List/ListItem.js +3 -2
  21. package/dist/ui-kit/List/ListItem.js.map +1 -1
  22. package/lib/components/Gallery/Gallery.mobile.js +4 -3
  23. package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
  24. package/lib/components/Gallery/GalleryCardInner.js +4 -4
  25. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  26. package/lib/components/Gallery/GalleryContent.d.ts +5 -0
  27. package/lib/components/OtherProducts/OtherProductsContent.d.ts +2 -2
  28. package/lib/components/OtherProducts/OtherProductsItem.d.ts +2 -2
  29. package/lib/components/OtherProducts/OtherProductsItem.js +1 -1
  30. package/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
  31. package/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  32. package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
  33. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  34. package/lib/index.d.ts +0 -11
  35. package/lib/index.js +0 -4
  36. package/lib/index.js.map +1 -1
  37. package/lib/ui-kit/List/ListItem.d.ts +1 -0
  38. package/lib/ui-kit/List/ListItem.js +1 -1
  39. package/lib/ui-kit/List/ListItem.js.map +1 -1
  40. package/mobile/bundle/bundle.umd.js +3 -56
  41. package/mobile/bundle/bundle.umd.min.js +1 -1
  42. package/mobile/dist/components/Gallery/Gallery.js +4 -3
  43. package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
  44. package/mobile/dist/components/Gallery/GalleryCardInner.js +4 -4
  45. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  46. package/mobile/dist/components/Gallery/GalleryContent.d.ts +5 -0
  47. package/mobile/dist/components/OtherProducts/OtherProductsContent.d.ts +2 -2
  48. package/mobile/dist/components/OtherProducts/OtherProductsItem.d.ts +2 -2
  49. package/mobile/dist/components/OtherProducts/OtherProductsItem.js +1 -1
  50. package/mobile/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
  51. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  52. package/mobile/dist/index.d.ts +0 -11
  53. package/mobile/dist/index.js +1 -9
  54. package/mobile/dist/index.js.map +1 -1
  55. package/mobile/dist/ui-kit/List/ListItem.d.ts +1 -0
  56. package/mobile/dist/ui-kit/List/ListItem.js +3 -2
  57. package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
  58. package/mobile/lib/components/Gallery/Gallery.js +4 -3
  59. package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
  60. package/mobile/lib/components/Gallery/GalleryCardInner.js +4 -4
  61. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  62. package/mobile/lib/components/Gallery/GalleryContent.d.ts +5 -0
  63. package/mobile/lib/components/OtherProducts/OtherProductsContent.d.ts +2 -2
  64. package/mobile/lib/components/OtherProducts/OtherProductsItem.d.ts +2 -2
  65. package/mobile/lib/components/OtherProducts/OtherProductsItem.js +1 -1
  66. package/mobile/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
  67. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  68. package/mobile/lib/index.d.ts +0 -11
  69. package/mobile/lib/index.js +0 -4
  70. package/mobile/lib/index.js.map +1 -1
  71. package/mobile/lib/ui-kit/List/ListItem.d.ts +1 -0
  72. package/mobile/lib/ui-kit/List/ListItem.js +1 -1
  73. package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
  74. package/mobile/src/components/Gallery/Gallery.example.json +12 -9
  75. package/mobile/src/components/Gallery/Gallery.tsx +4 -2
  76. package/mobile/src/components/Gallery/GalleryCardInner.tsx +4 -3
  77. package/mobile/src/components/Gallery/GalleryContent.ts +5 -0
  78. package/mobile/src/components/OtherProducts/OtherProductsContent.ts +2 -2
  79. package/mobile/src/components/OtherProducts/OtherProductsItem.tsx +3 -3
  80. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +1 -1
  81. package/mobile/src/index.ts +0 -26
  82. package/mobile/src/ui-kit/List/ListItem.tsx +1 -1
  83. package/package.json +4 -9
  84. package/src/components/Gallery/Gallery.example.json +12 -9
  85. package/src/components/Gallery/Gallery.fixture.mobile.tsx +5 -1
  86. package/src/components/Gallery/Gallery.fixture.tsx +10 -0
  87. package/src/components/Gallery/Gallery.mobile.tsx +4 -2
  88. package/src/components/Gallery/GalleryCardInner.tsx +4 -3
  89. package/src/components/Gallery/GalleryContent.ts +5 -0
  90. package/src/components/OtherProducts/OtherProductsContent.ts +2 -2
  91. package/src/components/OtherProducts/OtherProductsItem.tsx +3 -3
  92. package/src/components/ProductBlock/ProductBlockContent.ts +1 -1
  93. package/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
  94. package/src/index.ts +0 -26
  95. package/src/ui-kit/List/ListItem.tsx +1 -1
@@ -3,6 +3,7 @@ import { JSX } from '@redneckz/uni-jsx';
3
3
  import { Button } from '../../ui-kit/Button/Button.js';
4
4
  import { Heading } from '../../ui-kit/Heading/Heading.js';
5
5
  import { Img } from '../../ui-kit/Img/Img.js';
6
+ import { getListStyle } from '../../ui-kit/List/ListItem.js';
6
7
  import { SwipeListControl } from '../../ui-kit/SwipeListControl/SwipeListControl.js';
7
8
  const blockStyle = {
8
9
  primary: 'bg-white',
@@ -16,7 +17,7 @@ function renderCardsLayout(orientation, cards, context) {
16
17
  }
17
18
  function renderCard(card, key) {
18
19
  return (_jsxs("div", { className: `h-full justify-between box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col
19
- ${blockStyle[card.version ?? 'primary']}`, children: [_jsxs("div", { children: [card.image?.src ? (_jsx("div", { className: "flex justify-center", children: _jsx(Img, { className: "mb-3.5", image: card.image }) })) : null, card.title ? _jsx("h3", { className: `font-medium text-m-title-xs m-0`, children: card.title }) : null, card.description ? renderDescription(card) : null, card.items?.length ? renderItems(card.items, card.version) : null] }), card?.button?.text ? renderButton(card.button) : null] }, key));
20
+ ${blockStyle[card.version ?? 'primary']}`, children: [_jsxs("div", { children: [card.image?.src ? (_jsx("div", { className: "flex justify-center", children: _jsx(Img, { className: "mb-3.5", image: card.image }) })) : null, card.title ? _jsx("h3", { className: `font-medium text-m-title-xs m-0`, children: card.title }) : null, card.description ? renderDescription(card) : null, card.items?.length ? renderItems(card.items, card.version, card.isDotted) : null] }), card?.button?.text ? renderButton(card.button) : null] }, key));
20
21
  }
21
22
  function renderButton(button) {
22
23
  return (_jsx(Button, { className: "mt-3", appendLeft: button?.icon && _jsx(Img, { image: button?.icon, width: "24px", height: "24px", asSVG: true }), ...button }));
@@ -24,7 +25,7 @@ function renderButton(button) {
24
25
  function renderDescription(card) {
25
26
  return (_jsx("div", { className: `text-secondary-text mt-1 text-m-sm ${card.version === 'secondary' ? 'text-white opacity-80' : ''}`, children: card.description }));
26
27
  }
27
- function renderItems(items, version = 'primary') {
28
- return (_jsx("section", { className: "mt-3", children: items.map((item, i) => (_jsxs("div", { children: [_jsx("span", { className: "text-m-md font-medium", children: item.title }), _jsx("span", { className: `text-m-sm pl-2 ${version === 'primary' ? 'text-secondary-text' : ''}`, children: item.text })] }, String(i)))) }));
28
+ function renderItems(items, version = 'primary', isDotted) {
29
+ return (_jsx("section", { className: "mt-3", children: items.map((item, i) => (_jsxs("div", { children: [isDotted && _jsx("div", { className: getListStyle(version) }), _jsx("span", { className: "text-m-md font-medium", children: item.title }), _jsx("span", { className: `text-m-sm pl-2 ${version === 'primary' ? 'text-secondary-text' : ''}`, children: item.text })] }, String(i)))) }));
29
30
  }
30
31
  //# sourceMappingURL=Gallery.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Gallery.js","sourceRoot":"","sources":["../../../src/components/Gallery/Gallery.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAKlF,MAAM,UAAU,GAAiC;IAC/C,OAAO,EAAE,UAAU;IACnB,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CACxB,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,GAAG,EAAE,EAAE,SAAS,EAAE,WAAW,GAAG,YAAY,EAAE,EAAE,EAAE;IACrF,OAAO,CACL,mBACE,SAAS,EAAE,2EAA2E,SAAS,EAAE,aAEjG,eAAK,SAAS,EAAC,iCAAiC,aAC7C,KAAK,CAAC,CAAC,CAAC,CACP,KAAC,OAAO,IACN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AC,MAAM,IACL,SAAS,EAAC,MAAM,EAChB,UAAU,EAAE,MAAM,EAAE,IAAI,IAAI,KAAC,GAAG,IAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,KAAK,SAAG,KACrF,MAAM,GACV,CACH,CAAC;AACJ,CAAC;AAED,SAAS,iBAAiB,CAAC,IAAiB;IAC1C,OAAO,CACL,cACE,SAAS,EAAE,sCACT,IAAI,CAAC,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,EAC3D,EAAE,YAED,IAAI,CAAC,WAAW,GACb,CACP,CAAC;AACJ,CAAC;AAED,SAAS,WAAW,CAAC,KAAoB,EAAE,UAAwB,SAAS,EAAE,QAAQ;IACpF,OAAO,CACL,kBAAS,SAAS,EAAC,MAAM,YACtB,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,0BACG,QAAQ,IAAI,cAAK,SAAS,EAAE,YAAY,CAAC,OAAO,CAAC,GAAI,EACtD,eAAM,SAAS,EAAC,uBAAuB,YAAE,IAAI,CAAC,KAAK,GAAQ,EAC3D,eAAM,SAAS,EAAE,kBAAkB,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,EAAE,YACpF,IAAI,CAAC,IAAI,GACL,KALC,MAAM,CAAC,CAAC,CAAC,CAMb,CACP,CAAC,GACM,CACX,CAAC;AACJ,CAAC"}
@@ -3,9 +3,9 @@ import { JSX } from '@redneckz/uni-jsx';
3
3
  import { Button } from '../../ui-kit/Button/Button.js';
4
4
  import { Img } from '../../ui-kit/Img/Img.js';
5
5
  import { List } from '../../ui-kit/List/List.js';
6
- export const GalleryCardInner = JSX(({ title, description, image, items, button, version }) => {
6
+ export const GalleryCardInner = JSX(({ title, description, image, items, button, version, isDotted = true }) => {
7
7
  const titleStyleClasses = getTitleStyle(version);
8
- return (_jsxs("div", { className: "h-full flex flex-col justify-between text-center", children: [_jsxs("div", { children: [image?.src ? (_jsx("div", { className: "flex justify-center", children: _jsx(Img, { className: "mb-6", image: image }) })) : null, title ? renderCardTitle(title, titleStyleClasses) : null, description ? (_jsx("div", { className: `font-light text-m-md-new ${title ? 'mt-2' : ''}`, children: description })) : null, items?.length ? renderItems(items, version) : null] }), button?.text ? renderButton(button) : null] }));
8
+ return (_jsxs("div", { className: "h-full flex flex-col justify-between text-center", children: [_jsxs("div", { children: [image?.src ? (_jsx("div", { className: "flex justify-center", children: _jsx(Img, { className: "mb-6", image: image }) })) : null, title ? renderCardTitle(title, titleStyleClasses) : null, description ? (_jsx("div", { className: `font-light text-m-md-new ${title ? 'mt-2' : ''}`, children: description })) : null, items?.length ? renderItems(items, version, isDotted) : null] }), button?.text ? renderButton(button) : null] }));
9
9
  });
10
10
  function renderButton(button) {
11
11
  return (_jsx(Button, { className: "mt-6 w-full", appendLeft: button.icon && _jsx(Img, { image: button.icon, width: "24px", height: "24px", asSVG: true }), ...button }));
@@ -13,8 +13,8 @@ function renderButton(button) {
13
13
  function renderCardTitle(title, className) {
14
14
  return _jsx("div", { className: `text-xl m-0 ${className}`, children: title });
15
15
  }
16
- function renderItems(items, version = 'primary') {
17
- return (_jsx(List, { className: `max-w-[308px] mt-2 text-sm ${version === 'primary' ? '!text-secondary-text' : ''}`, itemClassName: "mt-1 first:mt-0", items: items.filter((item) => item?.text).map((item) => item.text), version: version }));
16
+ function renderItems(items, version = 'primary', isDotted) {
17
+ return (_jsx(List, { className: `max-w-[308px] mt-2 text-sm ${version === 'primary' ? '!text-secondary-text' : ''}`, itemClassName: "mt-1 first:mt-0", items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted, version: version }));
18
18
  }
19
19
  function getTitleStyle(version) {
20
20
  return `text-xl m-0
@@ -1 +1 @@
1
- {"version":3,"file":"GalleryCardInner.js","sourceRoot":"","sources":["../../../src/components/Gallery/GalleryCard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AAC,KAAa,EAAE,SAAiB;IACvD,OAAO,cAAK,SAAS,EAAE,eAAe,SAAS,EAAE,YAAG,KAAK,GAAO,CAAC;AACnE,CAAC;AAED,SAAS,WAAW,CAAC,KAAoB,EAAE,UAAwB,SAAS,EAAE,QAAiB;IAC7F,OAAO,CACL,KAAC,IAAI,IACH,SAAS,EAAE,8BACT,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,EACnD,EAAE,EACF,aAAa,EAAC,iBAAiB,EAC/B,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,EAClB,OAAO,EAAE,OAAO,GAChB,CACH,CAAC;AACJ,CAAC;AAED,SAAS,aAAa,CAAC,OAAO;IAC5B,OAAO;UACC,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE;OACrD,CAAC;AACR,CAAC"}
@@ -32,6 +32,11 @@ export interface GalleryCard {
32
32
  image?: Picture;
33
33
  /** @title Кнопка */
34
34
  button?: ButtonWithIconProps;
35
+ /**
36
+ * @title Буллиты
37
+ * @default true
38
+ */
39
+ isDotted?: boolean;
35
40
  /** @title Список */
36
41
  items?: GalleryItem[];
37
42
  version?: BlockVersion;
@@ -3,7 +3,7 @@ import type { BlockDef, ColumnsCount } from '../../ui-kit/BlocksList/BlocksListP
3
3
  /**
4
4
  * @title Элемент списка
5
5
  */
6
- export interface blockItemCommonProps {
6
+ export interface BlockItemCommonProps {
7
7
  /**
8
8
  * @title Название
9
9
  * @default Список
@@ -27,6 +27,6 @@ export interface OtherProductsContent {
27
27
  * @title Список
28
28
  * @maxItems 10
29
29
  */
30
- blockItems?: blockItemCommonProps[];
30
+ blockItems?: BlockItemCommonProps[];
31
31
  colorPalette?: ColorPalette;
32
32
  }
@@ -1,5 +1,5 @@
1
1
  import type { UniBlockProps } from '../../types';
2
- import type { blockItemCommonProps } from './OtherProductsContent';
3
- export interface BlockItemProps extends blockItemCommonProps, UniBlockProps {
2
+ import type { BlockItemCommonProps } from './OtherProductsContent';
3
+ export interface BlockItemProps extends BlockItemCommonProps, UniBlockProps {
4
4
  }
5
5
  export declare const OtherProductsItem: (props: import("@redneckz/uni-jsx").PropsWithChildren<BlockItemProps, any>, context?: any) => any;
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
- import { useActiveHandler } from './useActiveHandler.js';
4
3
  import { Icon } from '../../ui-kit/Icon/Icon.js';
5
4
  import { OtherProductsItemInner } from './OtherProductsItemInner.js';
5
+ import { useActiveHandler } from './useActiveHandler.js';
6
6
  export const OtherProductsItem = JSX(({ label, isExpanded, blocks, columns, context }) => {
7
7
  const { hasContent, icon, handleToggle, isActive } = useActiveHandler({
8
8
  context,
@@ -1 +1 @@
1
- {"version":3,"file":"OtherProductsItem.js","sourceRoot":"","sources":["../../../src/components/OtherProducts/OtherProductsItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAIlE,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAClC,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE;IAClD,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,GAAG,gBAAgB,CAAC;QACpE,OAAO;QACP,MAAM;QACN,YAAY,EAAE,UAAU;KACzB,CAAC,CAAC;IAEH,OAAO,CACL,eAAK,SAAS,EAAC,oDAAoD,aAChE,UAAU,CAAC,CAAC,CAAC,CACZ,KAAC,sBAAsB,IACrB,UAAU,EAAE,QAAQ,EACpB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,GAChB,CACH,CAAC,CAAC,CAAC,IAAI,EACR,kBACE,SAAS,EAAC,8HAA8H,EACxI,OAAO,EAAE,YAAY,aAErB,eAAM,SAAS,EAAC,MAAM,YAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,GAAQ,EAC1D,UAAU,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CAAC,CAAC,CAAC,IAAI,IAC/D,IACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"OtherProductsItem.js","sourceRoot":"","sources":["../../../src/components/OtherProducts/OtherProductsItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAItD,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAClC,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE;IAClD,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,GAAG,gBAAgB,CAAC;QACpE,OAAO;QACP,MAAM;QACN,YAAY,EAAE,UAAU;KACzB,CAAC,CAAC;IAEH,OAAO,CACL,eAAK,SAAS,EAAC,oDAAoD,aAChE,UAAU,CAAC,CAAC,CAAC,CACZ,KAAC,sBAAsB,IACrB,UAAU,EAAE,QAAQ,EACpB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,GAChB,CACH,CAAC,CAAC,CAAC,IAAI,EACR,kBACE,SAAS,EAAC,8HAA8H,EACxI,OAAO,EAAE,YAAY,aAErB,eAAM,SAAS,EAAC,MAAM,YAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,GAAQ,EAC1D,UAAU,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CAAC,CAAC,CAAC,IAAI,IAC/D,IACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,11 +1,11 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
+ import type { IconVersion } from '../../model/IconVersion';
2
3
  import type { LinkProps } from '../../model/LinkProps';
3
4
  import type { ButtonContent, ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
4
5
  import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
5
6
  import type { HeadingContent, HeadingTypeContent } from '../../ui-kit/Heading/HeadingContent';
6
7
  import type { ImageContent } from '../../ui-kit/Img/ImgProps';
7
8
  import type { ListContent } from '../../ui-kit/List/ListContent';
8
- import type { IconVersion } from '../../model/IconVersion';
9
9
  import type { Benefit } from '../BenefitsBlock/BenefitsBlockContent';
10
10
  export declare type BenefitItemProps = {
11
11
  benefit: Benefit;
@@ -1,19 +1,8 @@
1
1
  export { setup } from '@redneckz/uni-jsx';
2
2
  export { DaDataAPI } from './api/DaDataAPI';
3
3
  export { LikeAPI } from './api/LikeAPI';
4
- export type { BlockContent } from './components/BlockContent';
5
4
  export { Blocks } from './components/Blocks';
6
5
  export { ContentPage } from './components/ContentPage/ContentPage';
7
- export type { BlockDecorator } from './components/ContentPage/ContentPage';
8
- export type { AsyncDataHook, ContentPageContext, GeolocationHook, HandlerDecorator, LikeService, Router, Search, } from './components/ContentPage/ContentPageContext';
9
- export { ContentPageHead } from './components/ContentPage/ContentPageHead';
10
- export { normalizePage } from './components/ContentPage/normalizePage';
11
- export { Header } from './components/Header/Header';
12
- export type { Img, ImgSource, Picture } from './model/Picture';
13
6
  export { projectSettings } from './ProjectSettings';
14
- export type { ProjectSettings } from './ProjectSettings';
15
- export type { SitemapProps as SitemapContent } from './services/sitemap/SitemapProps';
16
- export type { BlockDef, ContentPageDef, ContentPageMeta, Slot, SlotsMap, UniBlockProps, } from './types';
17
- export { Icon } from './ui-kit/Icon/Icon';
18
7
  export { joinList } from './utils/joinList';
19
8
  export * as url from './utils/url';
@@ -3,11 +3,7 @@ export { DaDataAPI } from './api/DaDataAPI.js';
3
3
  export { LikeAPI } from './api/LikeAPI.js';
4
4
  export { Blocks } from './components/Blocks.js';
5
5
  export { ContentPage } from './components/ContentPage/ContentPage.js';
6
- export { ContentPageHead } from './components/ContentPage/ContentPageHead.js';
7
- export { normalizePage } from './components/ContentPage/normalizePage.js';
8
- export { Header } from './components/Header/Header.js';
9
6
  export { projectSettings } from './ProjectSettings.js';
10
- export { Icon } from './ui-kit/Icon/Icon.js';
11
7
  export { joinList } from './utils/joinList.js';
12
8
  export * as url from './utils/url.js';
13
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAWnE,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAEpD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAWpD,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC"}
@@ -9,3 +9,4 @@ export interface ListItemProps {
9
9
  isDotted?: boolean;
10
10
  }
11
11
  export declare const ListItem: (props: import("@redneckz/uni-jsx").PropsWithChildren<ListItemProps, any>, context?: any) => any;
12
+ export declare const getListStyle: (version: ListItemVersion) => string;
@@ -17,7 +17,7 @@ const LIST_DOT_STYLE_MAP = {
17
17
  export const ListItem = JSX(({ className = '', isDotted = true, children, version = 'primary' }) => {
18
18
  return (_jsxs("div", { className: `font-sans flex items-start ${className}`, role: "listitem", children: [isDotted && _jsx("div", { className: getListStyle(version) }), _jsx("span", { children: children })] }));
19
19
  });
20
- const getListStyle = (version) => {
20
+ export const getListStyle = (version) => {
21
21
  const size = {
22
22
  primary: 'w-2 h-2 min-w-2 min-h-2',
23
23
  secondary: 'w-2 h-2 min-w-2 min-h-2',
@@ -1 +1 @@
1
- {"version":3,"file":"ListItem.js","sourceRoot":"","sources":["../../../src/ui-kit/List/ListItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAaxC,MAAM,kBAAkB,GAAG;IACzB,OAAO,EAAE,qCAAqC;IAC9C,SAAS,EAAE,qCAAqC;IAChD,IAAI,EAAE,qCAAqC;IAC3C,IAAI,EAAE,qCAAqC;IAC3C,YAAY,EAAE,qCAAqC;CACpD,CAAC;AAEF,MAAM,kBAAkB,GAAoC;IAC1D,OAAO,EAAE,iBAAiB;IAC1B,SAAS,EAAE,UAAU;IACrB,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,UAAU;IAChB,YAAY,EAAE,UAAU;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CACzB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,GAAG,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,EAAE,EAAE;IACrE,OAAO,CACL,eAAK,SAAS,EAAE,8BAA8B,SAAS,EAAE,EAAE,IAAI,EAAC,UAAU,aACvE,QAAQ,IAAI,cAAK,SAAS,EAAE,YAAY,CAAC,OAAO,CAAC,GAAI,EACtD,yBAAO,QAAQ,GAAQ,IACnB,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,OAAwB,EAAE,EAAE;IAChD,MAAM,IAAI,GAAG;QACX,OAAO,EAAE,yBAAyB;QAClC,SAAS,EAAE,yBAAyB;QACpC,IAAI,EAAE,iCAAiC;QACvC,IAAI,EAAE,yCAAyC;QAC/C,YAAY,EAAE,yCAAyC;KACxD,CAAC;IACF,OAAO,GAAG,kBAAkB,CAAC,OAAO,CAAC,IAAI,kBA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AO,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;AAC1F,CAAC,CAAC"}
@@ -15,10 +15,11 @@
15
15
  "description": "Описание 1",
16
16
  "href": "/credit-cards",
17
17
  "version": "primary",
18
+ "isDotted": true,
18
19
  "items": [
19
- {"text":"Элемент списка 1", "title": "Элемент заголовка 1"},
20
- {"text":"Элемент списка 2", "title": "Элемент заголовка 2"},
21
- {"text":"Элемент списка 3", "title": "Элемент заголовка 3"}
20
+ { "text": "Элемент списка 1", "title": "Элемент заголовка 1" },
21
+ { "text": "Элемент списка 2", "title": "Элемент заголовка 2" },
22
+ { "text": "Элемент списка 3", "title": "Элемент заголовка 3" }
22
23
  ]
23
24
  },
24
25
  {
@@ -33,10 +34,11 @@
33
34
  "description": "Описание 2",
34
35
  "href": "/credit-cards",
35
36
  "version": "primary",
37
+ "isDotted": true,
36
38
  "items": [
37
- {"text":"Элемент списка 1", "title": "Элемент заголовка 1"},
38
- {"text":"Элемент списка 2", "title": "Элемент заголовка 2"},
39
- {"text":"Элемент списка 3", "title": "Элемент заголовка 3"}
39
+ { "text": "Элемент списка 1", "title": "Элемент заголовка 1" },
40
+ { "text": "Элемент списка 2", "title": "Элемент заголовка 2" },
41
+ { "text": "Элемент списка 3", "title": "Элемент заголовка 3" }
40
42
  ]
41
43
  },
42
44
  {
@@ -51,10 +53,11 @@
51
53
  "description": "Описание 3",
52
54
  "href": "/credit-cards",
53
55
  "version": "primary",
56
+ "isDotted": true,
54
57
  "items": [
55
- {"text":"Элемент списка 1", "title": "Элемент заголовка 1"},
56
- {"text":"Элемент списка 2", "title": "Элемент заголовка 2"},
57
- {"text":"Элемент списка 3", "title": "Элемент заголовка 3"}
58
+ { "text": "Элемент списка 1", "title": "Элемент заголовка 1" },
59
+ { "text": "Элемент списка 2", "title": "Элемент заголовка 2" },
60
+ { "text": "Элемент списка 3", "title": "Элемент заголовка 3" }
58
61
  ]
59
62
  }
60
63
  ]
@@ -4,6 +4,7 @@ import type { ListOrientation } from '../../model/ListOrientation';
4
4
  import { Button } from '../../ui-kit/Button/Button';
5
5
  import { Heading } from '../../ui-kit/Heading/Heading';
6
6
  import { Img } from '../../ui-kit/Img/Img';
7
+ import { getListStyle } from '../../ui-kit/List/ListItem';
7
8
  import { SwipeListControl } from '../../ui-kit/SwipeListControl/SwipeListControl';
8
9
  import type { GalleryCard } from './GalleryContent';
9
10
  import { GalleryItem } from './GalleryContent';
@@ -63,7 +64,7 @@ function renderCard(card: GalleryCard, key: number) {
63
64
  ) : null}
64
65
  {card.title ? <h3 className={`font-medium text-m-title-xs m-0`}>{card.title}</h3> : null}
65
66
  {card.description ? renderDescription(card) : null}
66
- {card.items?.length ? renderItems(card.items, card.version) : null}
67
+ {card.items?.length ? renderItems(card.items, card.version, card.isDotted) : null}
67
68
  </div>
68
69
  {card?.button?.text ? renderButton(card.button) : null}
69
70
  </div>
@@ -92,11 +93,12 @@ function renderDescription(card: GalleryCard) {
92
93
  );
93
94
  }
94
95
 
95
- function renderItems(items: GalleryItem[], version: BlockVersion = 'primary') {
96
+ function renderItems(items: GalleryItem[], version: BlockVersion = 'primary', isDotted) {
96
97
  return (
97
98
  <section className="mt-3">
98
99
  {items.map((item, i) => (
99
100
  <div key={String(i)}>
101
+ {isDotted && <div className={getListStyle(version)} />}
100
102
  <span className="text-m-md font-medium">{item.title}</span>
101
103
  <span className={`text-m-sm pl-2 ${version === 'primary' ? 'text-secondary-text' : ''}`}>
102
104
  {item.text}
@@ -6,7 +6,7 @@ import { List } from '../../ui-kit/List/List';
6
6
  import type { GalleryCard, GalleryItem } from './GalleryContent';
7
7
 
8
8
  export const GalleryCardInner = JSX<GalleryCard>(
9
- ({ title, description, image, items, button, version }) => {
9
+ ({ title, description, image, items, button, version, isDotted = true }) => {
10
10
  const titleStyleClasses = getTitleStyle(version);
11
11
  return (
12
12
  <div className="h-full flex flex-col justify-between text-center">
@@ -20,7 +20,7 @@ export const GalleryCardInner = JSX<GalleryCard>(
20
20
  {description ? (
21
21
  <div className={`font-light text-m-md-new ${title ? 'mt-2' : ''}`}>{description}</div>
22
22
  ) : null}
23
- {items?.length ? renderItems(items, version) : null}
23
+ {items?.length ? renderItems(items, version, isDotted) : null}
24
24
  </div>
25
25
  {button?.text ? renderButton(button) : null}
26
26
  </div>
@@ -42,7 +42,7 @@ function renderCardTitle(title: string, className: string) {
42
42
  return <div className={`text-xl m-0 ${className}`}>{title}</div>;
43
43
  }
44
44
 
45
- function renderItems(items: GalleryItem[], version: BlockVersion = 'primary') {
45
+ function renderItems(items: GalleryItem[], version: BlockVersion = 'primary', isDotted: boolean) {
46
46
  return (
47
47
  <List
48
48
  className={`max-w-[308px] mt-2 text-sm ${
@@ -50,6 +50,7 @@ function renderItems(items: GalleryItem[], version: BlockVersion = 'primary') {
50
50
  }`}
51
51
  itemClassName="mt-1 first:mt-0"
52
52
  items={items.filter((item) => item?.text).map((item) => item.text as string)}
53
+ isDotted={isDotted}
53
54
  version={version}
54
55
  />
55
56
  );
@@ -34,6 +34,11 @@ export interface GalleryCard {
34
34
  image?: Picture;
35
35
  /** @title Кнопка */
36
36
  button?: ButtonWithIconProps;
37
+ /**
38
+ * @title Буллиты
39
+ * @default true
40
+ */
41
+ isDotted?: boolean;
37
42
  /** @title Список */
38
43
  items?: GalleryItem[];
39
44
  version?: BlockVersion;
@@ -4,7 +4,7 @@ import type { BlockDef, ColumnsCount } from '../../ui-kit/BlocksList/BlocksListP
4
4
  /**
5
5
  * @title Элемент списка
6
6
  */
7
- export interface blockItemCommonProps {
7
+ export interface BlockItemCommonProps {
8
8
  /**
9
9
  * @title Название
10
10
  * @default Список
@@ -29,6 +29,6 @@ export interface OtherProductsContent {
29
29
  * @title Список
30
30
  * @maxItems 10
31
31
  */
32
- blockItems?: blockItemCommonProps[];
32
+ blockItems?: BlockItemCommonProps[];
33
33
  colorPalette?: ColorPalette;
34
34
  }
@@ -1,11 +1,11 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { useActiveHandler } from './useActiveHandler';
3
2
  import type { UniBlockProps } from '../../types';
4
- import type { blockItemCommonProps } from './OtherProductsContent';
5
3
  import { Icon } from '../../ui-kit/Icon/Icon';
4
+ import type { BlockItemCommonProps } from './OtherProductsContent';
6
5
  import { OtherProductsItemInner } from './OtherProductsItemInner';
6
+ import { useActiveHandler } from './useActiveHandler';
7
7
 
8
- export interface BlockItemProps extends blockItemCommonProps, UniBlockProps {}
8
+ export interface BlockItemProps extends BlockItemCommonProps, UniBlockProps {}
9
9
 
10
10
  export const OtherProductsItem = JSX<BlockItemProps>(
11
11
  ({ label, isExpanded, blocks, columns, context }) => {
@@ -1,11 +1,11 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
+ import type { IconVersion } from '../../model/IconVersion';
2
3
  import type { LinkProps } from '../../model/LinkProps';
3
4
  import type { ButtonContent, ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
4
5
  import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
5
6
  import type { HeadingContent, HeadingTypeContent } from '../../ui-kit/Heading/HeadingContent';
6
7
  import type { ImageContent } from '../../ui-kit/Img/ImgProps';
7
8
  import type { ListContent } from '../../ui-kit/List/ListContent';
8
- import type { IconVersion } from '../../model/IconVersion';
9
9
  import type { Benefit } from '../BenefitsBlock/BenefitsBlockContent';
10
10
 
11
11
  export type BenefitItemProps = {
@@ -1,34 +1,8 @@
1
1
  export { setup } from '@redneckz/uni-jsx';
2
2
  export { DaDataAPI } from './api/DaDataAPI';
3
3
  export { LikeAPI } from './api/LikeAPI';
4
- export type { BlockContent } from './components/BlockContent';
5
4
  export { Blocks } from './components/Blocks';
6
5
  export { ContentPage } from './components/ContentPage/ContentPage';
7
- export type { BlockDecorator } from './components/ContentPage/ContentPage';
8
- export type {
9
- AsyncDataHook,
10
- ContentPageContext,
11
- GeolocationHook,
12
- HandlerDecorator,
13
- LikeService,
14
- Router,
15
- Search,
16
- } from './components/ContentPage/ContentPageContext';
17
- export { ContentPageHead } from './components/ContentPage/ContentPageHead';
18
- export { normalizePage } from './components/ContentPage/normalizePage';
19
- export { Header } from './components/Header/Header';
20
- export type { Img, ImgSource, Picture } from './model/Picture';
21
6
  export { projectSettings } from './ProjectSettings';
22
- export type { ProjectSettings } from './ProjectSettings';
23
- export type { SitemapProps as SitemapContent } from './services/sitemap/SitemapProps';
24
- export type {
25
- BlockDef,
26
- ContentPageDef,
27
- ContentPageMeta,
28
- Slot,
29
- SlotsMap,
30
- UniBlockProps,
31
- } from './types';
32
- export { Icon } from './ui-kit/Icon/Icon';
33
7
  export { joinList } from './utils/joinList';
34
8
  export * as url from './utils/url';
@@ -38,7 +38,7 @@ export const ListItem = JSX<ListItemProps>(
38
38
  },
39
39
  );
40
40
 
41
- const getListStyle = (version: ListItemVersion) => {
41
+ export const getListStyle = (version: ListItemVersion) => {
42
42
  const size = {
43
43
  primary: 'w-2 h-2 min-w-2 min-h-2',
44
44
  secondary: 'w-2 h-2 min-w-2 min-h-2',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.3.50",
3
+ "version": "0.3.53",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
@@ -23,12 +23,12 @@
23
23
  "require": "./mobile/dist/index.js",
24
24
  "types": "./mobile/lib/index.d.ts"
25
25
  },
26
- "./lib/*.js": {
26
+ "./lib/*": {
27
27
  "import": "./lib/*.js",
28
28
  "require": "./dist/*.js",
29
29
  "types": "./lib/*.d.ts"
30
30
  },
31
- "./mobile/lib/*.js": {
31
+ "./mobile/lib/*": {
32
32
  "import": "./mobile/lib/*.js",
33
33
  "require": "./mobile/dist/*.js",
34
34
  "types": "./mobile/lib/*.d.ts"
@@ -40,16 +40,11 @@
40
40
  "require": "./dist/content-page-repository/index.js",
41
41
  "types": "./lib/content-page-repository/index.d.ts"
42
42
  },
43
- "./lib/content-page-repository/*.js": {
43
+ "./lib/content-page-repository/*": {
44
44
  "import": "./lib/content-page-repository/*.js",
45
45
  "require": "./dist/content-page-repository/*.js",
46
46
  "types": "./lib/content-page-repository/*.d.ts"
47
47
  },
48
- "./lib/utils/*.js": {
49
- "import": "./lib/utils/*.js",
50
- "require": "./dist/utils/*.js",
51
- "types": "./lib/utils/*.d.ts"
52
- },
53
48
  "./bundle/*.js": "./bundle/*.js",
54
49
  "./bundle/*.json": "./bundle/*.json",
55
50
  "./*.json": "./*.json",
@@ -15,10 +15,11 @@
15
15
  "description": "Описание 1",
16
16
  "href": "/credit-cards",
17
17
  "version": "primary",
18
+ "isDotted": true,
18
19
  "items": [
19
- {"text":"Элемент списка 1", "title": "Элемент заголовка 1"},
20
- {"text":"Элемент списка 2", "title": "Элемент заголовка 2"},
21
- {"text":"Элемент списка 3", "title": "Элемент заголовка 3"}
20
+ { "text": "Элемент списка 1", "title": "Элемент заголовка 1" },
21
+ { "text": "Элемент списка 2", "title": "Элемент заголовка 2" },
22
+ { "text": "Элемент списка 3", "title": "Элемент заголовка 3" }
22
23
  ]
23
24
  },
24
25
  {
@@ -33,10 +34,11 @@
33
34
  "description": "Описание 2",
34
35
  "href": "/credit-cards",
35
36
  "version": "primary",
37
+ "isDotted": true,
36
38
  "items": [
37
- {"text":"Элемент списка 1", "title": "Элемент заголовка 1"},
38
- {"text":"Элемент списка 2", "title": "Элемент заголовка 2"},
39
- {"text":"Элемент списка 3", "title": "Элемент заголовка 3"}
39
+ { "text": "Элемент списка 1", "title": "Элемент заголовка 1" },
40
+ { "text": "Элемент списка 2", "title": "Элемент заголовка 2" },
41
+ { "text": "Элемент списка 3", "title": "Элемент заголовка 3" }
40
42
  ]
41
43
  },
42
44
  {
@@ -51,10 +53,11 @@
51
53
  "description": "Описание 3",
52
54
  "href": "/credit-cards",
53
55
  "version": "primary",
56
+ "isDotted": true,
54
57
  "items": [
55
- {"text":"Элемент списка 1", "title": "Элемент заголовка 1"},
56
- {"text":"Элемент списка 2", "title": "Элемент заголовка 2"},
57
- {"text":"Элемент списка 3", "title": "Элемент заголовка 3"}
58
+ { "text": "Элемент списка 1", "title": "Элемент заголовка 1" },
59
+ { "text": "Элемент списка 2", "title": "Элемент заголовка 2" },
60
+ { "text": "Элемент списка 3", "title": "Элемент заголовка 3" }
58
61
  ]
59
62
  }
60
63
  ]
@@ -1,9 +1,11 @@
1
+ import { ListOrientation } from '../../model/ListOrientation';
1
2
  import type { Picture } from '../../model/Picture';
2
3
  import { context } from '../../setup-fixture';
3
4
  import type { ButtonCommonProps } from '../../ui-kit/Button/Button';
4
5
  import { Gallery } from './Gallery';
5
6
  import { GalleryCard } from './GalleryContent';
6
- import { ListOrientation } from '../../model/ListOrientation';
7
+
8
+ const isDotted = true;
7
9
 
8
10
  const image: Picture = {
9
11
  src: 'money-1.png',
@@ -50,6 +52,7 @@ const cards: GalleryCard[] = [
50
52
  {
51
53
  image,
52
54
  title: 'Вклады в любой валюте',
55
+ isDotted,
53
56
  items: defaultItems,
54
57
  },
55
58
  {
@@ -75,6 +78,7 @@ const cards: GalleryCard[] = [
75
78
  {
76
79
  image,
77
80
  title: 'Вклады в любой валюте',
81
+ isDotted,
78
82
  items: defaultItems,
79
83
  version: 'secondary',
80
84
  },