@redneckz/wildless-cms-uni-blocks 0.14.902 → 0.14.903
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.
- package/bundle/bundle.umd.js +5 -4
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/ui-kit/DialogManager/Dialog.d.ts +3 -1
- package/dist/ui-kit/DialogManager/Dialog.d.ts +3 -1
- package/dist/ui-kit/DialogManager/Dialog.js +3 -2
- package/dist/ui-kit/DialogManager/Dialog.js.map +1 -1
- package/dist/ui-kit/SearchDialog/SearchDialog.js +1 -1
- package/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/retail/components/DraftDialog/utils.d.ts +3 -3
- package/lib/ui-kit/DialogManager/Dialog.d.ts +3 -1
- package/lib/ui-kit/DialogManager/Dialog.js +3 -2
- package/lib/ui-kit/DialogManager/Dialog.js.map +1 -1
- package/lib/ui-kit/SearchDialog/SearchDialog.fixture.d.ts +5 -0
- package/lib/ui-kit/SearchDialog/SearchDialog.js +1 -1
- package/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +4 -3
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/ui-kit/DialogManager/Dialog.d.ts +3 -1
- package/mobile/dist/ui-kit/DialogManager/Dialog.d.ts +3 -1
- package/mobile/dist/ui-kit/DialogManager/Dialog.js +3 -2
- package/mobile/dist/ui-kit/DialogManager/Dialog.js.map +1 -1
- package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js +1 -1
- package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/ui-kit/DialogManager/Dialog.d.ts +3 -1
- package/mobile/lib/ui-kit/DialogManager/Dialog.js +3 -2
- package/mobile/lib/ui-kit/DialogManager/Dialog.js.map +1 -1
- package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js +1 -1
- package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
- package/mobile/src/ui-kit/DialogManager/Dialog.tsx +6 -3
- package/mobile/src/ui-kit/SearchDialog/SearchDialog.tsx +1 -0
- package/package.json +1 -1
- package/src/ui-kit/DialogManager/Dialog.tsx +6 -3
- package/src/ui-kit/SearchDialog/SearchDialog.fixture.tsx +7 -0
- package/src/ui-kit/SearchDialog/SearchDialog.tsx +1 -0
package/bundle/bundle.umd.js
CHANGED
|
@@ -1481,12 +1481,13 @@
|
|
|
1481
1481
|
|
|
1482
1482
|
const CloseButton = JSX(({ className, onClose }) => (jsx("button", { className: style('flex justify-center items-center w-12 h-12 p-2xs bg-transparent border-none', className), onClick: onClose, title: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C", type: "button", children: jsx(Icon, { name: "CloseIcon", width: "20", height: "20", iconVersion: "gray" }) })));
|
|
1483
1483
|
|
|
1484
|
-
const
|
|
1484
|
+
const DIALOG_STYLE = {
|
|
1485
1485
|
sm: 'max-w-sm top-1/3',
|
|
1486
1486
|
lg: 'max-w-lg',
|
|
1487
1487
|
'4xl': 'max-w-4xl',
|
|
1488
|
+
none: 'mt-0',
|
|
1488
1489
|
};
|
|
1489
|
-
const Dialog = JSX(({ head, maxWidth = '4xl', children, onClose, onClick }) => (jsxs("div", { className: style('relative bg-white p-lg pb-6xl my-6xl mx-auto rounded-lg w-full',
|
|
1490
|
+
const Dialog = JSX(({ head, maxWidth = '4xl', children, onClose, onClick }) => (jsxs("div", { className: style('relative bg-white p-lg pb-6xl my-6xl mx-auto rounded-lg w-full', DIALOG_STYLE[maxWidth]), role: "dialog", title: "\u0414\u0438\u0430\u043B\u043E\u0433", onClick: onClick, children: [jsxs("div", { className: "sticky py-xl top-0 bg-white z-10", children: [jsx(CloseButton, { className: "absolute top-0 right-0 z-10", onClose: onClose }), jsx("div", { className: "container", children: head })] }), jsx("div", { className: "container", children: children })] })));
|
|
1490
1491
|
|
|
1491
1492
|
function useDialog(Dialog, initialProps = {}) {
|
|
1492
1493
|
const { open, close, ...rest } = useDialogManager();
|
|
@@ -10597,7 +10598,7 @@
|
|
|
10597
10598
|
initialQuery,
|
|
10598
10599
|
});
|
|
10599
10600
|
const searchItems = useMemo(() => combineTopItemsAndSearchResult(navigationItems)(searchResult), [navigationItems, searchResult]);
|
|
10600
|
-
return (jsx(Dialog, { head: jsx(SearchInput, { className: "mt-s", autoFocus: true, ...searchInputProps }), onClose: onClose, children: jsx(Sitemap, { navigationItems: searchItems }) }));
|
|
10601
|
+
return (jsx(Dialog, { maxWidth: "none", head: jsx(SearchInput, { className: "mt-s", autoFocus: true, ...searchInputProps }), onClose: onClose, children: jsx(Sitemap, { navigationItems: searchItems }) }));
|
|
10601
10602
|
});
|
|
10602
10603
|
const combineTopItemsAndSearchResult = (topItems) => (searchResult) => topItems?.length && searchResult?.length
|
|
10603
10604
|
? zip(topItems, searchResult).map(([_, portalSearchResult]) => ({
|
|
@@ -11962,7 +11963,7 @@
|
|
|
11962
11963
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
11963
11964
|
});
|
|
11964
11965
|
|
|
11965
|
-
const packageVersion = "0.14.
|
|
11966
|
+
const packageVersion = "0.14.902";
|
|
11966
11967
|
|
|
11967
11968
|
exports.Blocks = Blocks;
|
|
11968
11969
|
exports.ContentPage = ContentPage;
|