@redneckz/wildless-cms-uni-blocks 0.14.1036 → 0.14.1037
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 +8 -10
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/ui-kit/DialogManager/Dialog.js +2 -2
- package/dist/ui-kit/DialogManager/Dialog.js.map +1 -1
- package/dist/ui-kit/Foldable/DefaultFoldButton.js +1 -1
- package/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/dist/ui-kit/LinkButton/LinkButton.js +4 -6
- package/dist/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/ui-kit/DialogManager/Dialog.js +2 -2
- package/lib/ui-kit/DialogManager/Dialog.js.map +1 -1
- package/lib/ui-kit/Foldable/DefaultFoldButton.js +1 -1
- package/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/lib/ui-kit/LinkButton/LinkButton.js +4 -6
- package/lib/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +8 -10
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/ui-kit/DialogManager/Dialog.js +2 -2
- package/mobile/dist/ui-kit/DialogManager/Dialog.js.map +1 -1
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js +1 -1
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/mobile/dist/ui-kit/LinkButton/LinkButton.js +4 -6
- package/mobile/dist/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/ui-kit/DialogManager/Dialog.js +2 -2
- package/mobile/lib/ui-kit/DialogManager/Dialog.js.map +1 -1
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js +1 -1
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/mobile/lib/ui-kit/LinkButton/LinkButton.js +4 -6
- package/mobile/lib/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/mobile/src/ui-kit/DialogManager/Dialog.tsx +2 -2
- package/mobile/src/ui-kit/Foldable/DefaultFoldButton.tsx +5 -1
- package/mobile/src/ui-kit/LinkButton/LinkButton.tsx +5 -7
- package/package.json +1 -1
- package/src/ui-kit/DialogManager/Dialog.tsx +2 -2
- package/src/ui-kit/Foldable/DefaultFoldButton.tsx +5 -1
- package/src/ui-kit/LinkButton/LinkButton.tsx +5 -7
package/bundle/bundle.umd.js
CHANGED
|
@@ -710,13 +710,11 @@
|
|
|
710
710
|
const [currentLink, setCurrentLink] = useState();
|
|
711
711
|
const handleFormSubmit = useFormSubmit({ method, href });
|
|
712
712
|
const linksStore = useLocalStore();
|
|
713
|
-
saveLinksToStore({ linksStore, href, id, additionalHrefs });
|
|
714
|
-
const adjustedHref = additionalHrefs
|
|
715
|
-
? (linksStore.links || []).find((store) => store.id === id)?.lastLink
|
|
716
|
-
: href;
|
|
717
713
|
useEffect(() => {
|
|
718
|
-
|
|
719
|
-
|
|
714
|
+
additionalHrefs && saveLinksToStore({ linksStore, href, id, additionalHrefs });
|
|
715
|
+
const adjustedHref = (linksStore.links || []).find((store) => store.id === id)?.lastLink;
|
|
716
|
+
setCurrentLink(adjustedHref ?? href);
|
|
717
|
+
}, [additionalHrefs, href]);
|
|
720
718
|
const link = useLink();
|
|
721
719
|
const adjustedProps = link({ onClick: handleFormSubmit, href: currentLink, ...rest });
|
|
722
720
|
const buttonInner = children ?? jsx(ButtonInner, { ...adjustedProps });
|
|
@@ -1531,14 +1529,14 @@
|
|
|
1531
1529
|
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" }) })));
|
|
1532
1530
|
|
|
1533
1531
|
const DIALOG_STYLE = {
|
|
1534
|
-
sm: 'max-w-sm
|
|
1532
|
+
sm: 'max-w-sm',
|
|
1535
1533
|
lg: 'max-w-lg',
|
|
1536
1534
|
xl: 'max-w-xl',
|
|
1537
1535
|
'4xl': 'max-w-4xl',
|
|
1538
1536
|
none: 'mt-0',
|
|
1539
1537
|
};
|
|
1540
1538
|
const DIALOG_POSITION = {
|
|
1541
|
-
center: 'relative mx-auto',
|
|
1539
|
+
center: 'relative mx-auto top-1/2 -translate-y-1/2',
|
|
1542
1540
|
corner: 'absolute bottom-0 right-0',
|
|
1543
1541
|
};
|
|
1544
1542
|
const Dialog = JSX(({ head, maxWidth = '4xl', children, onClose, onClick, position = 'center' }) => {
|
|
@@ -4892,7 +4890,7 @@
|
|
|
4892
4890
|
|
|
4893
4891
|
const DefaultFoldButton = JSX(({ className, isUnfolded, short, label = isUnfolded ? 'Скрыть' : 'Развернуть', embedded, labelColorStyle, ...rest }) => {
|
|
4894
4892
|
const iconColor = labelColorStyle === 'white' ? '' : 'color';
|
|
4895
|
-
return (jsxs(Button, { className: style({ 'w-full': !short }, className), embedded: embedded, shape: short ? 'default' : 'square', role: "tab", "aria-label": "\u041A\u043D\u043E\u043F\u043A\u0430 \u0441\u0432\u043E\u0440\u0430\u0447\u0438\u0432\u0430\u044E\u0449\u0435\u0439\u0441\u044F \u0441\u0435\u043A\u0446\u0438\u0438", ...rest, children: [jsx(ButtonTitle, { labelColor: labelColorStyle, children: label }), jsx(ToggleIcon, { isUnfolded: isUnfolded, iconVersion: embedded ? iconColor : '' })] }));
|
|
4893
|
+
return (jsxs(Button, { className: style({ 'w-full': !short }, className), embedded: embedded, shape: short ? 'default' : 'square', role: "tab", "aria-label": "\u041A\u043D\u043E\u043F\u043A\u0430 \u0441\u0432\u043E\u0440\u0430\u0447\u0438\u0432\u0430\u044E\u0449\u0435\u0439\u0441\u044F \u0441\u0435\u043A\u0446\u0438\u0438", ...rest, children: [jsx(ButtonTitle, { labelColor: labelColorStyle, children: label }), jsx(ToggleIcon, { isUnfolded: isUnfolded, iconVersion: embedded ? iconColor : '', className: "flex-grow-0 flex-shrink-0 basis-auto" })] }));
|
|
4896
4894
|
});
|
|
4897
4895
|
|
|
4898
4896
|
// TODO Не особо полезно, в итоге
|
|
@@ -14693,7 +14691,7 @@
|
|
|
14693
14691
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
14694
14692
|
});
|
|
14695
14693
|
|
|
14696
|
-
const packageVersion = "0.14.
|
|
14694
|
+
const packageVersion = "0.14.1036";
|
|
14697
14695
|
|
|
14698
14696
|
exports.Blocks = Blocks;
|
|
14699
14697
|
exports.ContentPage = ContentPage;
|