@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,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;
@@ -2,9 +2,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.OtherProductsItem = 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
- const useActiveHandler_1 = require("./useActiveHandler");
6
5
  const Icon_1 = require("../../ui-kit/Icon/Icon");
7
6
  const OtherProductsItemInner_1 = require("./OtherProductsItemInner");
7
+ const useActiveHandler_1 = require("./useActiveHandler");
8
8
  exports.OtherProductsItem = (0, uni_jsx_1.JSX)(({ label, isExpanded, blocks, columns, context }) => {
9
9
  const { hasContent, icon, handleToggle, isActive } = (0, useActiveHandler_1.useActiveHandler)({
10
10
  context,
@@ -1 +1 @@
1
- {"version":3,"file":"OtherProductsItem.js","sourceRoot":"","sources":["../../../src/components/OtherProducts/OtherProductsItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,yDAAsD;AAGtD,iDAA8C;AAC9C,qEAAkE;AAIrD,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,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,IAAA,mCAAgB,EAAC;QACpE,OAAO;QACP,MAAM;QACN,YAAY,EAAE,UAAU;KACzB,CAAC,CAAC;IAEH,OAAO,CACL,iCAAK,SAAS,EAAC,oDAAoD,aAChE,UAAU,CAAC,CAAC,CAAC,CACZ,uBAAC,+CAAsB,IACrB,UAAU,EAAE,QAAQ,EACpB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,GAChB,CACH,CAAC,CAAC,CAAC,IAAI,EACR,oCACE,SAAS,EAAC,8HAA8H,EACxI,OAAO,EAAE,YAAY,aAErB,iCAAM,SAAS,EAAC,MAAM,YAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,GAAQ,EAC1D,UAAU,CAAC,CAAC,CAAC,uBAAC,WAAI,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,+CAAwC;AAExC,iDAA8C;AAE9C,qEAAkE;AAClE,yDAAsD;AAIzC,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,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,IAAA,mCAAgB,EAAC;QACpE,OAAO;QACP,MAAM;QACN,YAAY,EAAE,UAAU;KACzB,CAAC,CAAC;IAEH,OAAO,CACL,iCAAK,SAAS,EAAC,oDAAoD,aAChE,UAAU,CAAC,CAAC,CAAC,CACZ,uBAAC,+CAAsB,IACrB,UAAU,EAAE,QAAQ,EACpB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,GAChB,CACH,CAAC,CAAC,CAAC,IAAI,EACR,oCACE,SAAS,EAAC,8HAA8H,EACxI,OAAO,EAAE,YAAY,aAErB,iCAAM,SAAS,EAAC,MAAM,YAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,GAAQ,EAC1D,UAAU,CAAC,CAAC,CAAC,uBAAC,WAAI,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;
@@ -4,9 +4,9 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const ButtonSection_1 = require("../../ui-kit/Button/ButtonSection");
6
6
  const Description_1 = require("../../ui-kit/Description/Description");
7
+ const Heading_1 = require("../../ui-kit/Heading/Heading");
7
8
  const Img_1 = require("../../ui-kit/Img/Img");
8
9
  const List_1 = require("../../ui-kit/List/List");
9
- const Heading_1 = require("../../ui-kit/Heading/Heading");
10
10
  const BaseTile_1 = require("../BaseTile/BaseTile");
11
11
  const renderBenefit_1 = require("./renderBenefit");
12
12
  exports.ProductBlockInner = (0, uni_jsx_1.JSX)(({ className = '', context, title, headingType = 'h2', description, benefits, benefitsVersion = 'normal', buttons, image, items, version = 'primary', isDotted = true, textBlockClassName = '', }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"ProductBlockInner.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlockInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,qEAAkE;AAClE,sEAAmE;AACnE,8CAA2C;AAC3C,iDAA8C;AAC9C,0DAAuD;AACvD,mDAAgD;AAEhD,mDAAgD;AAInC,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,OAAO,EACP,KAAK,EACL,WAAW,GAAG,IAAI,EAClB,WAAW,EACX,QAAQ,EACR,eAAe,GAAG,QAAQ,EAC1B,OAAO,EACP,KAAK,EACL,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,QAAQ,GAAG,IAAI,EACf,kBAAkB,GAAG,EAAE,GACxB,EAAE,EAAE;IACH,MAAM,SAAS,GAAG,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,mBAAmB,CAAC;IAC/E,OAAO,CACL,iCAAK,SAAS,EAAE,2CAA2C,SAAS,EAAE,aACpE,gCAAK,SAAS,EAAE,iBAAiB,kBAAkB,EAAE,YACnD,wBAAC,mBAAQ,IACP,OAA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,OAAO,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CACvB,uBAAC,6BAAa,IAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAC,iBAAiB,GAAG,CAClF,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC"}
1
+ {"version":3,"file":"ProductBlockInner.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlockInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,qEAAkE;AAClE,sEAAmE;AACnE,0DAAuD;AACvD,8CAA2C;AAC3C,iDAA8C;AAC9C,mDAAgD;AAEhD,mDAAgD;AAInC,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,OAAO,EACP,KAAK,EACL,WAAW,GAAG,IAAI,EAClB,WAAW,EACX,QAAQ,EACR,eAAe,GAAG,QAAQ,EAC1B,OAAO,EACP,KAAK,EACL,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,QAAQ,GAAG,IAAI,EACf,kBAAkB,GAAG,EAAE,GACxB,EAAE,EAAE;IACH,MAAM,SAAS,GAAG,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,mBAAmB,CAAC;IAC/E,OAAO,CACL,iCAAK,SAAS,EAAE,2CAA2C,SAAS,EAAE,aACpE,gCAAK,SAAS,EAAE,iBAAiB,kBAAkB,EAAE,YACnD,wBAAC,mBAAQ,IACP,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC,EACnC,OAAO,EAAE,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,aAEpC,WAAW,IAAI,CACd,uBAAC,yBAAW,IACV,SAAS,EAAE,yCAAyC,SAAS,EAAE,EAC/D,WAAW,EAAE,WAAW,GACxB,CACH,EACA,QAAQ,EAAE,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CA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/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';
package/dist/index.js CHANGED
@@ -22,7 +22,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
22
22
  return result;
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.url = exports.joinList = exports.Icon = exports.projectSettings = exports.Header = exports.normalizePage = exports.ContentPageHead = exports.ContentPage = exports.Blocks = exports.LikeAPI = exports.DaDataAPI = exports.setup = void 0;
25
+ exports.url = exports.joinList = exports.projectSettings = exports.ContentPage = exports.Blocks = exports.LikeAPI = exports.DaDataAPI = exports.setup = void 0;
26
26
  var uni_jsx_1 = require("@redneckz/uni-jsx");
27
27
  Object.defineProperty(exports, "setup", { enumerable: true, get: function () { return uni_jsx_1.setup; } });
28
28
  var DaDataAPI_1 = require("./api/DaDataAPI");
@@ -33,16 +33,8 @@ var Blocks_1 = require("./components/Blocks");
33
33
  Object.defineProperty(exports, "Blocks", { enumerable: true, get: function () { return Blocks_1.Blocks; } });
34
34
  var ContentPage_1 = require("./components/ContentPage/ContentPage");
35
35
  Object.defineProperty(exports, "ContentPage", { enumerable: true, get: function () { return ContentPage_1.ContentPage; } });
36
- var ContentPageHead_1 = require("./components/ContentPage/ContentPageHead");
37
- Object.defineProperty(exports, "ContentPageHead", { enumerable: true, get: function () { return ContentPageHead_1.ContentPageHead; } });
38
- var normalizePage_1 = require("./components/ContentPage/normalizePage");
39
- Object.defineProperty(exports, "normalizePage", { enumerable: true, get: function () { return normalizePage_1.normalizePage; } });
40
- var Header_1 = require("./components/Header/Header");
41
- Object.defineProperty(exports, "Header", { enumerable: true, get: function () { return Header_1.Header; } });
42
36
  var ProjectSettings_1 = require("./ProjectSettings");
43
37
  Object.defineProperty(exports, "projectSettings", { enumerable: true, get: function () { return ProjectSettings_1.projectSettings; } });
44
- var Icon_1 = require("./ui-kit/Icon/Icon");
45
- Object.defineProperty(exports, "Icon", { enumerable: true, get: function () { return Icon_1.Icon; } });
46
38
  var joinList_1 = require("./utils/joinList");
47
39
  Object.defineProperty(exports, "joinList", { enumerable: true, get: function () { return joinList_1.joinList; } });
48
40
  exports.url = __importStar(require("./utils/url"));
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA0C;AAAjC,gGAAA,KAAK,OAAA;AACd,6CAA4C;AAAnC,sGAAA,SAAS,OAAA;AAClB,yCAAwC;AAA/B,kGAAA,OAAO,OAAA;AAEhB,8CAA6C;AAApC,gGAAA,MAAM,OAAA;AACf,oEAAmE;AAA1D,0GAAA,WAAW,OAAA;AAWpB,4EAA2E;AAAlE,kHAAA,eAAe,OAAA;AACxB,wEAAuE;AAA9D,8GAAA,aAAa,OAAA;AACtB,qDAAoD;AAA3C,gGAAA,MAAM,OAAA;AAEf,qDAAoD;AAA3C,kHAAA,eAAe,OAAA;AAWxB,2CAA0C;AAAjC,4FAAA,IAAI,OAAA;AACb,6CAA4C;AAAnC,oGAAA,QAAQ,OAAA;AACjB,mDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA0C;AAAjC,gGAAA,KAAK,OAAA;AACd,6CAA4C;AAAnC,sGAAA,SAAS,OAAA;AAClB,yCAAwC;AAA/B,kGAAA,OAAO,OAAA;AAChB,8CAA6C;AAApC,gGAAA,MAAM,OAAA;AACf,oEAAmE;AAA1D,0GAAA,WAAW,OAAA;AACpB,qDAAoD;AAA3C,kHAAA,eAAe,OAAA;AACxB,6CAA4C;AAAnC,oGAAA,QAAQ,OAAA;AACjB,mDAAmC"}
@@ -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;
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.ListItem = void 0;
2
+ exports.getListStyle = exports.ListItem = 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 LIST_STYLE_CLASSES = {
@@ -17,7 +17,7 @@ const LIST_DOT_STYLE_MAP = {
17
17
  'tile-white': 'bg-white',
18
18
  };
19
19
  exports.ListItem = (0, uni_jsx_1.JSX)(({ className = '', isDotted = true, children, version = 'primary' }) => {
20
- return ((0, jsx_runtime_1.jsxs)("div", { className: `font-sans flex items-start ${className}`, role: "listitem", children: [isDotted && (0, jsx_runtime_1.jsx)("div", { className: getListStyle(version) }), (0, jsx_runtime_1.jsx)("span", { children: children })] }));
20
+ return ((0, jsx_runtime_1.jsxs)("div", { className: `font-sans flex items-start ${className}`, role: "listitem", children: [isDotted && (0, jsx_runtime_1.jsx)("div", { className: (0, exports.getListStyle)(version) }), (0, jsx_runtime_1.jsx)("span", { children: children })] }));
21
21
  });
22
22
  const getListStyle = (version) => {
23
23
  const size = {
@@ -29,4 +29,5 @@ const getListStyle = (version) => {
29
29
  };
30
30
  return `${LIST_STYLE_CLASSES[version]} ${LIST_DOT_STYLE_MAP[version]} ${size[version]}`;
31
31
  };
32
+ exports.getListStyle = getListStyle;
32
33
  //# sourceMappingURL=ListItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ListItem.js","sourceRoot":"","sources":["../../../src/ui-kit/List/ListItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;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;AAEW,QAAA,QAAQ,GAAG,IAAA,aAAG,EACzB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,GAAG,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,EAAE,EAAE;IACrE,OAAO,CACL,iCAAK,SAAS,EAAE,8BAA8B,SAAS,EAAE,EAAE,IAAI,EAAC,UAAU,aACvE,QAAQ,IAAI,gCAAK,SAAS,EAAE,YAAY,CAAC,OAAO,CAAC,GAAI,EACtD,2CAAO,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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KACxD,CAAC;IACF,OAAO,GAAG,kBAAkB,CAAC,OAAO,CAAC,IAAI,kBAAkB,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;AAC1F,CAAC,CAAC;AATW,QAAA,YAAY,gBASvB"}
@@ -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.mobile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Gallery.mobile.js","sourceRoot":"","sources":["../../../src/components/Gallery/Gallery.mobile.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,YA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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/GalleryCardInner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAG9C,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CACjC,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;IACxD,MAAM,iBAAiB,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;IACjD,OAAO,CACL,eAAK,SAAS,EAAC,kDAAkD,aAC/D,0BACG,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CACZ,cAAK,SAAS,EAAC,qBAAqB,YAClC,KAAC,GAAG,IAAC,SAAS,EAAC,MAAM,EAAC,KAAK,EAAE,KAAK,GAAI,GAClC,CACP,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,CAAC,CAAC,CAAC,eAAe,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,IAAI,EACxD,WAAW,CAAC,CAAC,CAAC,CACb,cAAK,SAAS,EAAE,4BAA4B,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,YAAG,WAAW,GAAO,CACvF,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,IAC/C,EACL,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,IACvC,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,YAAY,CAAC,MAAM;IAC1B,OAAO,CACL,KAAC,MAAM,IACL,SAAS,EAAC,aAAa,EACvB,UAAU,EAAE,MAAM,CAAC,IAAI,IAAI,KAAC,GAAG,IAAC,KAAK,EAAE,MAAM,CAAC,IAAI,EAAE,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,KAAK,SAAG,KACnF,MAAM,GACV,CACH,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CAAC,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;IAC1E,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,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"}
1
+ {"version":3,"file":"GalleryCardInner.js","sourceRoot":"","sources":["../../../src/components/Gallery/GalleryCardInner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,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KAAC,GAAG,IAAC,KAAK,EAAE,MAAM,CAAC,IAAI,EAAE,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,KAAK,SAAG,KACnF,MAAM,GACV,CACH,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CAAC,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;
@@ -2,9 +2,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
3
  import { ButtonSection } from '../../ui-kit/Button/ButtonSection.js';
4
4
  import { Description } from '../../ui-kit/Description/Description.js';
5
+ import { Heading } from '../../ui-kit/Heading/Heading.js';
5
6
  import { Img } from '../../ui-kit/Img/Img.js';
6
7
  import { List } from '../../ui-kit/List/List.js';
7
- import { Heading } from '../../ui-kit/Heading/Heading.js';
8
8
  import { BaseTile } from '../BaseTile/BaseTile.js';
9
9
  import { renderBenefit } from './renderBenefit.js';
10
10
  export const ProductBlockInner = JSX(({ className = '', context, title, headingType = 'h2', description, benefits, benefitsVersion = 'normal', buttons, image, items, version = 'primary', isDotted = true, textBlockClassName = '', }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"ProductBlockInner.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlockInner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIhD,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAClC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,OAAO,EACP,KAAK,EACL,WAAW,GAAG,IAAI,EAClB,WAAW,EACX,QAAQ,EACR,eAAe,GAAG,QAAQ,EAC1B,OAAO,EACP,KAAK,EACL,KAAK,EACL,OAAO,G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CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,KAAK,EAAE,WAAW,EAAE,EAAE;IACtC,OAAO,CACL,KAAK,IAAI,CACP,KAAC,OAAO,IACN,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,EACZ,SAAS,EAAC,mCAAmC,GAC7C,CACH,CACF,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE;IACtC,OAAO,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CACvB,KAAC,aAAa,IAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAC,iBAAiB,GAAG,CAClF,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC"}
1
+ {"version":3,"file":"ProductBlockInner.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlockInner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,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,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIhD,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAClC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,OAAO,EACP,KAAK,EACL,WAAW,GAAG,IAAI,EAClB,WAAW,EACX,QAAQ,EACR,eAAe,GAAG,QAAQ,EAC1B,OAAO,EACP,KAAK,EACL,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,QAA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AQ,GAAG,CAAC,KAAK,EAAE,WAAW,EAAE,EAAE;IACtC,OAAO,CACL,KAAK,IAAI,CACP,KAAC,OAAO,IACN,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,EACZ,SAAS,EAAC,mCAAmC,GAC7C,CACH,CACF,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE;IACtC,OAAO,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CACvB,KAAC,aAAa,IAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAC,iBAAiB,GAAG,CAClF,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC"}
package/lib/index.d.ts CHANGED
@@ -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';
package/lib/index.js CHANGED
@@ -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
package/lib/index.js.map CHANGED
@@ -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,mBA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AU;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,CAAC,MAAM,YAAY,GAAG,CAAC,OAAwB,EAAE,EAAE;IACvD,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,kBAAkB,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;AAC1F,CAAC,CAAC"}
@@ -885,7 +885,7 @@
885
885
  }
886
886
  function renderCard(card, key) {
887
887
  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
888
- ${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$1(card.button) : null] }, key));
888
+ ${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$1(card.button) : null] }, key));
889
889
  }
890
890
  function renderButton$1(button) {
891
891
  return (jsx(Button, { className: "mt-3", appendLeft: button?.icon && jsx(Img, { image: button?.icon, width: "24px", height: "24px", asSVG: true }), ...button }));
@@ -893,8 +893,8 @@
893
893
  function renderDescription(card) {
894
894
  return (jsx("div", { className: `text-secondary-text mt-1 text-m-sm ${card.version === 'secondary' ? 'text-white opacity-80' : ''}`, children: card.description }));
895
895
  }
896
- function renderItems(items, version = 'primary') {
897
- 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)))) }));
896
+ function renderItems(items, version = 'primary', isDotted) {
897
+ 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)))) }));
898
898
  }
899
899
 
900
900
  const LinkList = JSX(({ className = '', documents, anchor = null }) => {
@@ -1583,68 +1583,15 @@
1583
1583
  return style ? style.join(' ') : '';
1584
1584
  }
1585
1585
 
1586
- const ContentPageHead = JSX(({ HeadComponent, data, children }) => {
1587
- const { title, main, og, twitter, jsonLd } = data;
1588
- const { description, keywords, canonical, robots } = main || {};
1589
- return (jsxs(HeadComponent, { children: [jsx("title", { children: title }), jsx("meta", { name: "viewport", content: "width=device-width, initial-scale=1" }), description && jsx("meta", { name: "description", content: description }), keywords && jsx("meta", { name: "keywords", content: keywords.join(',') }), robots && jsx("meta", { name: "robots", content: robots.join(',') }), renderOpenGraph(og), renderTwitter(twitter), canonical && jsx("link", { rel: "canonical", href: canonical }), jsonLd && jsx("script", { type: "application/ld+json", children: jsonLd }), children] }));
1590
- });
1591
- function renderOpenGraph(og) {
1592
- return og
1593
- ? Object.entries(og).map(([key, value]) => (jsx("meta", { property: `og:${key}`, content: value }, key)))
1594
- : null;
1595
- }
1596
- function renderTwitter(twitter) {
1597
- return twitter
1598
- ? Object.entries(twitter).map(([key, value]) => (jsx("meta", { name: `twitter:${key}`, content: value }, key)))
1599
- : null;
1600
- }
1601
-
1602
- function isBlockInRegistry(blockType, registry) {
1603
- return (blockType || '') in registry;
1604
- }
1605
-
1606
- function normalizeBlock(block) {
1607
- const { mobile, ...rest } = block;
1608
- return mobile ? { ...rest, ...mobile, content: { ...rest.content, ...mobile.content } } : block;
1609
- }
1610
-
1611
- function normalizePage(contentPage) {
1612
- if (!contentPage) {
1613
- return undefined;
1614
- }
1615
- const { blocks, slots } = contentPage;
1616
- return {
1617
- ...contentPage,
1618
- blocks: getMobileBlocks(blocks),
1619
- slots: slots &&
1620
- Object.keys(slots).reduce((res, key) => ({
1621
- ...res,
1622
- [key]: {
1623
- ...slots[key],
1624
- blocks: getMobileBlocks(slots[key].blocks),
1625
- },
1626
- }), {}),
1627
- };
1628
- }
1629
- function getMobileBlocks(blocks) {
1630
- return blocks
1631
- ?.filter((block) => isBlockInRegistry(block?.type || block?.mobile?.type, Blocks) && !block.mobile?.hidden)
1632
- .map(normalizeBlock);
1633
- }
1634
-
1635
1586
  function joinList(sep) {
1636
1587
  return (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: i }, el) : [el]), []);
1637
1588
  }
1638
1589
 
1639
1590
  exports.Blocks = Blocks;
1640
1591
  exports.ContentPage = ContentPage;
1641
- exports.ContentPageHead = ContentPageHead;
1642
1592
  exports.DaDataAPI = DaDataAPI;
1643
- exports.Header = Header;
1644
- exports.Icon = Icon;
1645
1593
  exports.LikeAPI = LikeAPI;
1646
1594
  exports.joinList = joinList;
1647
- exports.normalizePage = normalizePage;
1648
1595
  exports.projectSettings = projectSettings;
1649
1596
  exports.setup = setup;
1650
1597
  exports.url = url;