@redneckz/wildless-cms-uni-blocks 0.14.514 → 0.14.515

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.
@@ -1,9 +1,9 @@
1
- import { type TitleProps } from '../model/HeadlineType';
1
+ import { type DescriptionProps, type TitleProps } from '../model/HeadlineType';
2
2
  import { type Picture } from '../model/Picture';
3
3
  /**
4
4
  * @title Пункт меню
5
5
  */
6
- export declare type StickyMenuItem = TitleProps & {
6
+ export declare type StickyMenuItem = TitleProps & DescriptionProps & {
7
7
  /** @title Адрес страницы меню */
8
8
  src?: string;
9
9
  /** @title Иконка */
@@ -11,7 +11,7 @@ const useBottomMenuItemDialog = ({ menuRef, dialogRef, closeDialog, openDialog,
11
11
  const ifDoc = document.getElementsByTagName('iframe')['iframe-dialog'];
12
12
  ifDoc.style.height = String(ifDoc?.contentWindow?.document.body.offsetHeight) + 'px';
13
13
  };
14
- openDialog((0, jsx_runtime_1.jsx)(StickyBottomMenuDialog_1.StickyBottomMenuDialog, { onClick: (e) => e.stopPropagation(), onClose: closeDialog, className: "mt-[20%] border-t border-current", head: (0, jsx_runtime_1.jsx)("div", { className: "flex items-center px-xl", children: (0, jsx_runtime_1.jsx)(Heading_1.Heading, { as: "h4", title: requiredArray[index].title }) }), children: (0, jsx_runtime_1.jsx)("div", { className: "bg-white pb-20 pt-1 text-l", ref: dialogRef, children: (0, jsx_runtime_1.jsx)("iframe", { id: "iframe-dialog", onLoad: () => handleIframeLoad(), src: requiredArray[index]?.src, width: menuDimensions?.width || 0 }) }) }), { id: itemsPosition === 'left' ? leftItems[index].title : rightItems[index].title });
14
+ openDialog((0, jsx_runtime_1.jsx)(StickyBottomMenuDialog_1.StickyBottomMenuDialog, { onClick: (e) => e.stopPropagation(), onClose: closeDialog, className: "mt-[20%] border-t border-current", head: (0, jsx_runtime_1.jsx)("div", { className: "flex items-center justify-center px-xl", children: (0, jsx_runtime_1.jsx)(Heading_1.Heading, { as: "h4", title: requiredArray[index].description || requiredArray[index].title }) }), children: (0, jsx_runtime_1.jsx)("div", { className: "bg-white pb-20 pt-1 text-l", ref: dialogRef, children: (0, jsx_runtime_1.jsx)("iframe", { id: "iframe-dialog", onLoad: () => handleIframeLoad(), src: requiredArray[index]?.src, width: menuDimensions?.width || 0 }) }) }), { id: itemsPosition === 'left' ? leftItems[index].title : rightItems[index].title });
15
15
  };
16
16
  return [{ openBottomMenuItemDialog }];
17
17
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useBottomMenuItemDialog.js","sourceRoot":"","sources":["../../../src/components/StickyBottomMenu/useBottomMenuItemDialog.tsx"],"names":[],"mappings":";;;AAGA,0DAAuD;AACvD,qEAAkE;AAe3D,MAAM,uBAAuB,GAAG,CAAC,EACtC,OAAO,EACP,SAAS,EACT,WAAW,EACX,UAAU,EACV,SAAS,EACT,UAAU,GACW,EAAE,EAAE;IACzB,MAAM,wBAAwB,GAAG,CAAC,KAAa,EAAE,aAAqB,EAAE,EAAE;QACxE,MAAM,aAAa,GAAG,aAAa,KAAK,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC;QACxE,MAAM,cAAc,GAAG,OAAO,EAAE,OAAO,EAAE,qBAAqB,EAAE,CAAC;QAEjE,MAAM,gBAAgB,GAAG,GAAG,EAAE;YAC5B,MAAM,KAAK,GAAsB,QAAQ,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC,eAAe,CAAC,CAAC;YAC1F,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,aAAa,EAAE,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;QACvF,CAAC,CAAC;QAEF,UAAU,CACR,uBAAC,+CAAsB,IACrB,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,EAAE,EACnC,OAAO,EAAE,WAAW,EACpB,SAAS,EAAC,kCAAkC,EAC5C,IAAI,EACF,gCAAK,SAAS,EAAC,yBAAyB,YACtC,uBAAC,iBAAO,IAAC,EAAE,EAAC,IAAI,EAAC,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC,KAAK,GAAI,GAClD,YAGR,gCAAK,SAAS,EAAC,4BAA4B,EAAC,GAAG,EAAE,SAAS,YACxD,mCACE,EAAE,EAAC,eAAe,EAClB,MAAM,EAAE,GAAG,EAAE,CAAC,gBAAgB,EAAE,EAChC,GAAG,EAAE,aAAa,CAAC,KAAK,CAAC,EAAE,GAAG,EAC9B,KAAK,EAAE,cAAc,EAAE,KAAK,IAAI,CAAC,GACjC,GACE,GACiB,EACzB,EAAE,EAAE,EAAE,aAAa,KAAK,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,CACpF,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,CAAC,EAAE,wBAAwB,EAAE,CAAC,CAAC;AACxC,CAAC,CAAC;AA1CW,QAAA,uBAAuB,2BA0ClC"}
1
+ {"version":3,"file":"useBottomMenuItemDialog.js","sourceRoot":"","sources":["../../../src/components/StickyBottomMenu/useBottomMenuItemDialog.tsx"],"names":[],"mappings":";;;AAGA,0DAAuD;AACvD,qEAAkE;AAe3D,MAAM,uBAAuB,GAAG,CAAC,EACtC,OAAO,EACP,SAAS,EACT,WAAW,EACX,UAAU,EACV,SAAS,EACT,UAAU,GACW,EAAE,EAAE;IACzB,MAAM,wBAAwB,GAAG,CAAC,KAAa,EAAE,aAAqB,EAAE,EAAE;QACxE,MAAM,aAAa,GAAG,aAAa,KAAK,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC;QACxE,MAAM,cAAc,GAAG,OAAO,EAAE,OAAO,EAAE,qBAAqB,EAAE,CAAC;QAEjE,MAAM,gBAAgB,GAAG,GAAG,EAAE;YAC5B,MAAM,KAAK,GAAsB,QAAQ,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC,eAAe,CAAC,CAAC;YAC1F,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,aAAa,EAAE,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;QACvF,CAAC,CAAC;QAEF,UAAU,CACR,uBAAC,+CAAsB,IACrB,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,EAAE,EACnC,OAAO,EAAE,WAAW,EACpB,SAAS,EAAC,kCAAkC,EAC5C,IAAI,EACF,gCAAK,SAAS,EAAC,wCAAwC,YACrD,uBAAC,iBAAO,IACN,EAAE,EAAC,IAAI,EACP,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC,WAAW,IAAI,aAAa,CAAC,KAAK,CAAC,CAAC,KAAK,GACrE,GACE,YAGR,gCAAK,SAAS,EAAC,4BAA4B,EAAC,GAAG,EAAE,SAAS,YACxD,mCACE,EAAE,EAAC,eAAe,EAClB,MAAM,EAAE,GAAG,EAAE,CAAC,gBAAgB,EAAE,EAChC,GAAG,EAAE,aAAa,CAAC,KAAK,CAAC,EAAE,GAAG,EAC9B,KAAK,EAAE,cAAc,EAAE,KAAK,IAAI,CAAC,GACjC,GACE,GACiB,EACzB,EAAE,EAAE,EAAE,aAAa,KAAK,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,CACpF,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,CAAC,EAAE,wBAAwB,EAAE,CAAC,CAAC;AACxC,CAAC,CAAC;AA7CW,QAAA,uBAAuB,2BA6ClC"}
@@ -1,9 +1,9 @@
1
- import { type TitleProps } from '../model/HeadlineType';
1
+ import { type DescriptionProps, type TitleProps } from '../model/HeadlineType';
2
2
  import { type Picture } from '../model/Picture';
3
3
  /**
4
4
  * @title Пункт меню
5
5
  */
6
- export declare type StickyMenuItem = TitleProps & {
6
+ export declare type StickyMenuItem = TitleProps & DescriptionProps & {
7
7
  /** @title Адрес страницы меню */
8
8
  src?: string;
9
9
  /** @title Иконка */
@@ -9,7 +9,7 @@ export const useBottomMenuItemDialog = ({ menuRef, dialogRef, closeDialog, openD
9
9
  const ifDoc = document.getElementsByTagName('iframe')['iframe-dialog'];
10
10
  ifDoc.style.height = String(ifDoc?.contentWindow?.document.body.offsetHeight) + 'px';
11
11
  };
12
- openDialog(_jsx(StickyBottomMenuDialog, { onClick: (e) => e.stopPropagation(), onClose: closeDialog, className: "mt-[20%] border-t border-current", head: _jsx("div", { className: "flex items-center px-xl", children: _jsx(Heading, { as: "h4", title: requiredArray[index].title }) }), children: _jsx("div", { className: "bg-white pb-20 pt-1 text-l", ref: dialogRef, children: _jsx("iframe", { id: "iframe-dialog", onLoad: () => handleIframeLoad(), src: requiredArray[index]?.src, width: menuDimensions?.width || 0 }) }) }), { id: itemsPosition === 'left' ? leftItems[index].title : rightItems[index].title });
12
+ openDialog(_jsx(StickyBottomMenuDialog, { onClick: (e) => e.stopPropagation(), onClose: closeDialog, className: "mt-[20%] border-t border-current", head: _jsx("div", { className: "flex items-center justify-center px-xl", children: _jsx(Heading, { as: "h4", title: requiredArray[index].description || requiredArray[index].title }) }), children: _jsx("div", { className: "bg-white pb-20 pt-1 text-l", ref: dialogRef, children: _jsx("iframe", { id: "iframe-dialog", onLoad: () => handleIframeLoad(), src: requiredArray[index]?.src, width: menuDimensions?.width || 0 }) }) }), { id: itemsPosition === 'left' ? leftItems[index].title : rightItems[index].title });
13
13
  };
14
14
  return [{ openBottomMenuItemDialog }];
15
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useBottomMenuItemDialog.js","sourceRoot":"","sources":["../../../src/components/StickyBottomMenu/useBottomMenuItemDialog.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,OAAO,EAAE,MA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c,EAAE,KAAK,IAAI,CAAC,GACjC,GACE,GACiB,EACzB,EAAE,EAAE,EAAE,aAAa,KAAK,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,CACpF,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,CAAC,EAAE,wBAAwB,EAAE,CAAC,CAAC;AACxC,CAAC,CAAC"}
1
+ {"version":3,"file":"useBottomMenuItemDialog.js","sourceRoot":"","sources":["../../../src/components/StickyBottomMenu/useBottomMenuItemDialog.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAelE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,EACtC,OAAO,EACP,SAAS,EACT,WAAW,EACX,UAAU,EACV,SAAS,EACT,UAAU,GACW,EAAE,EAAE;IACzB,MAAM,wBAAwB,GAAG,CAAC,KAAa,EAAE,aAAqB,EAAE,EAAE;QACxE,MAAM,aAAa,GAAG,aAAa,KAAK,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC;QACxE,MAAM,cAAc,GAAG,OAAO,EAAE,OAAO,EAAE,qBAAqB,EAAE,CAAC;QAEjE,MAAM,gBAAgB,GAAG,GAAG,EAAE;YAC5B,MAAM,KAAK,GAAsB,QAAQ,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC,eAAe,CAAC,CAAC;YAC1F,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,aAAa,EAAE,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;QACvF,CAAC,CAAC;QAEF,UAAU,CACR,KAAC,sBAAsB,IACrB,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,EAAE,EACnC,OAAO,EAAE,WAAW,EACpB,SAAS,EAAC,kCAAkC,EAC5C,IAAI,EACF,cAAK,SAAS,EAAC,wCAAwC,YACrD,KAAC,OAAO,IACN,EAAE,EAAC,IAAI,EACP,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC,WAAW,IAAI,aAAa,CAAC,KAAK,CAAC,CAAC,KAAK,GACrE,GACE,YAGR,cAAK,SAAS,EAAC,4BAA4B,EAAC,GAAG,EAAE,SAAS,YACxD,iBACE,EAAE,EAAC,eAAe,EAClB,MAAM,EAAE,GAAG,EAAE,CAAC,gBAAgB,EAAE,EAChC,GAAG,EAAE,aAAa,CAAC,KAAK,CAAC,EAAE,GAAG,EAC9B,KAAK,EAAE,cAAc,EAAE,KAAK,IAAI,CAAC,GACjC,GACE,GACiB,EACzB,EAAE,EAAE,EAAE,aAAa,KAAK,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,CACpF,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,CAAC,EAAE,wBAAwB,EAAE,CAAC,CAAC;AACxC,CAAC,CAAC"}
@@ -1,9 +1,9 @@
1
- import { type TitleProps } from '../model/HeadlineType';
1
+ import { type DescriptionProps, type TitleProps } from '../model/HeadlineType';
2
2
  import { type Picture } from '../model/Picture';
3
3
  /**
4
4
  * @title Пункт меню
5
5
  */
6
- export declare type StickyMenuItem = TitleProps & {
6
+ export declare type StickyMenuItem = TitleProps & DescriptionProps & {
7
7
  /** @title Адрес страницы меню */
8
8
  src?: string;
9
9
  /** @title Иконка */
@@ -5289,7 +5289,7 @@
5289
5289
  const ifDoc = document.getElementsByTagName('iframe')['iframe-dialog'];
5290
5290
  ifDoc.style.height = String(ifDoc?.contentWindow?.document.body.offsetHeight) + 'px';
5291
5291
  };
5292
- openDialog(jsx(StickyBottomMenuDialog, { onClick: (e) => e.stopPropagation(), onClose: closeDialog, className: "mt-[20%] border-t border-current", head: jsx("div", { className: "flex items-center px-xl", children: jsx(Heading, { as: "h4", title: requiredArray[index].title }) }), children: jsx("div", { className: "bg-white pb-20 pt-1 text-l", ref: dialogRef, children: jsx("iframe", { id: "iframe-dialog", onLoad: () => handleIframeLoad(), src: requiredArray[index]?.src, width: menuDimensions?.width || 0 }) }) }), { id: itemsPosition === 'left' ? leftItems[index].title : rightItems[index].title });
5292
+ openDialog(jsx(StickyBottomMenuDialog, { onClick: (e) => e.stopPropagation(), onClose: closeDialog, className: "mt-[20%] border-t border-current", head: jsx("div", { className: "flex items-center justify-center px-xl", children: jsx(Heading, { as: "h4", title: requiredArray[index].description || requiredArray[index].title }) }), children: jsx("div", { className: "bg-white pb-20 pt-1 text-l", ref: dialogRef, children: jsx("iframe", { id: "iframe-dialog", onLoad: () => handleIframeLoad(), src: requiredArray[index]?.src, width: menuDimensions?.width || 0 }) }) }), { id: itemsPosition === 'left' ? leftItems[index].title : rightItems[index].title });
5293
5293
  };
5294
5294
  return [{ openBottomMenuItemDialog }];
5295
5295
  };
@@ -6083,7 +6083,7 @@
6083
6083
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
6084
6084
  });
6085
6085
 
6086
- const packageVersion = "0.14.513";
6086
+ const packageVersion = "0.14.514";
6087
6087
 
6088
6088
  exports.Blocks = Blocks;
6089
6089
  exports.ContentPage = ContentPage;