@redneckz/wildless-cms-uni-blocks 0.14.902 → 0.14.904
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 +6 -21
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/ui-kit/DialogManager/Dialog.d.ts +3 -1
- package/dist/retail/components/Fields/AddressFactField.js +2 -17
- package/dist/retail/components/Fields/AddressFactField.js.map +1 -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/Fields/AddressFactField.js +2 -17
- package/lib/retail/components/Fields/AddressFactField.js.map +1 -1
- 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 +5 -20
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/ui-kit/DialogManager/Dialog.d.ts +3 -1
- package/mobile/dist/retail/components/Fields/AddressFactField.js +2 -17
- package/mobile/dist/retail/components/Fields/AddressFactField.js.map +1 -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/retail/components/Fields/AddressFactField.js +2 -17
- package/mobile/lib/retail/components/Fields/AddressFactField.js.map +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/retail/components/Fields/AddressFactField.tsx +2 -17
- 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/retail/components/Fields/AddressFactField.tsx +2 -17
- 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();
|
|
@@ -3770,23 +3771,7 @@
|
|
|
3770
3771
|
}
|
|
3771
3772
|
}, [value, field('addressRegistration').value]);
|
|
3772
3773
|
const onDaDataChange = useCallback((item) => {
|
|
3773
|
-
field?.(fieldName)?.onChange?.(
|
|
3774
|
-
apartment: item?.data?.flat,
|
|
3775
|
-
city: item?.data?.city,
|
|
3776
|
-
district: item?.data?.area_with_type,
|
|
3777
|
-
fullAddress: item?.value,
|
|
3778
|
-
fiasCode: item?.data?.fias_id,
|
|
3779
|
-
house: item?.data?.house,
|
|
3780
|
-
locality: item?.data?.settlement_with_type,
|
|
3781
|
-
okatoRegionCode: item?.data?.okato,
|
|
3782
|
-
postcode: item?.data?.postal_code,
|
|
3783
|
-
region: item?.data?.region,
|
|
3784
|
-
regionCode: item?.data?.region_kladr_id ? item?.data?.region_kladr_id.substring(0, 2) : '',
|
|
3785
|
-
street: item?.data?.house,
|
|
3786
|
-
qc: item?.data?.qc,
|
|
3787
|
-
qcComplete: item?.data?.qc_complete,
|
|
3788
|
-
qcHouse: item?.data?.qc_house,
|
|
3789
|
-
});
|
|
3774
|
+
field?.(fieldName)?.onChange?.(getAddressFromDaDataItem(item));
|
|
3790
3775
|
}, []);
|
|
3791
3776
|
const onChange = useCallback((val) => {
|
|
3792
3777
|
field?.(fieldName)?.onChange?.({
|
|
@@ -10597,7 +10582,7 @@
|
|
|
10597
10582
|
initialQuery,
|
|
10598
10583
|
});
|
|
10599
10584
|
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 }) }));
|
|
10585
|
+
return (jsx(Dialog, { maxWidth: "none", head: jsx(SearchInput, { className: "mt-s", autoFocus: true, ...searchInputProps }), onClose: onClose, children: jsx(Sitemap, { navigationItems: searchItems }) }));
|
|
10601
10586
|
});
|
|
10602
10587
|
const combineTopItemsAndSearchResult = (topItems) => (searchResult) => topItems?.length && searchResult?.length
|
|
10603
10588
|
? zip(topItems, searchResult).map(([_, portalSearchResult]) => ({
|
|
@@ -11962,7 +11947,7 @@
|
|
|
11962
11947
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
11963
11948
|
});
|
|
11964
11949
|
|
|
11965
|
-
const packageVersion = "0.14.
|
|
11950
|
+
const packageVersion = "0.14.903";
|
|
11966
11951
|
|
|
11967
11952
|
exports.Blocks = Blocks;
|
|
11968
11953
|
exports.ContentPage = ContentPage;
|