@redneckz/wildless-cms-uni-blocks 0.14.476 → 0.14.478
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 -10
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/OfficesAtmsMap/CardCell.js +3 -7
- package/dist/components/OfficesAtmsMap/CardCell.js.map +1 -1
- package/dist/ui-kit/BlockWrapper.js +1 -2
- package/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/lib/components/OfficesAtmsMap/CardCell.js +3 -7
- package/lib/components/OfficesAtmsMap/CardCell.js.map +1 -1
- package/lib/ui-kit/BlockWrapper.js +1 -2
- package/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +5 -10
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/OfficesAtmsMap/CardCell.js +3 -7
- package/mobile/dist/components/OfficesAtmsMap/CardCell.js.map +1 -1
- package/mobile/dist/ui-kit/BlockWrapper.js +1 -2
- package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/CardCell.js +3 -7
- package/mobile/lib/components/OfficesAtmsMap/CardCell.js.map +1 -1
- package/mobile/lib/ui-kit/BlockWrapper.js +1 -2
- package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/src/components/OfficesAtmsMap/CardCell.tsx +20 -23
- package/mobile/src/ui-kit/BlockWrapper.tsx +0 -1
- package/package.json +1 -1
- package/src/components/OfficesAtmsMap/CardCell.tsx +20 -23
- package/src/ui-kit/BlockWrapper.tsx +0 -1
package/bundle/bundle.umd.js
CHANGED
|
@@ -151,8 +151,7 @@
|
|
|
151
151
|
const router = useRouter();
|
|
152
152
|
const [isHidden, setHidden] = useState(false);
|
|
153
153
|
useEffect(() => defaultEventBus.subscribe('tab', (event) => {
|
|
154
|
-
if (
|
|
155
|
-
event.type === 'group' &&
|
|
154
|
+
if (event.type === 'group' &&
|
|
156
155
|
(!event.groupName || event.groupName === block?.labelGroup)) {
|
|
157
156
|
setHidden(Boolean(event.label && block?.labels?.length && !block.labels.includes(event.label)));
|
|
158
157
|
}
|
|
@@ -5376,13 +5375,9 @@
|
|
|
5376
5375
|
}
|
|
5377
5376
|
return renderCardCell({ textItems, subText, children, isPhone, ...props });
|
|
5378
5377
|
});
|
|
5379
|
-
const renderCardCell = ({ label, labelSize = 'text-m', textItems, subColor, subText, className, children, isPhone, }) => {
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
};
|
|
5383
|
-
const cleanPhoneNumber = (phone) => {
|
|
5384
|
-
return phone.replace(/\D/g, '');
|
|
5385
|
-
};
|
|
5378
|
+
const renderCardCell = ({ label, labelSize = 'text-m', textItems, subColor, subText, className, children, isPhone = false, }) => (jsxs("div", { className: style('flex gap-2xs flex-col h-full max-w-[300px]', className), children: [label ? (jsx(Text, { color: "text-secondary-text", font: "font-light", size: labelSize, children: label })) : null, children || renderTextItems(textItems, isPhone), subText ? (jsx(Text, { color: subColor, size: "text-m", children: subText })) : null] }));
|
|
5379
|
+
const renderTextItems = (textItems, isPhone) => textItems.filter(Boolean).map((text, i) => (jsx(Text, { size: "text-l", children: isPhone ? jsx("a", { href: `tel:${cleanPhoneNumber(text)}`, children: text.trim() }) : text.trim() }, String(i))));
|
|
5380
|
+
const cleanPhoneNumber = (phone) => phone.replace(/\D/g, '');
|
|
5386
5381
|
|
|
5387
5382
|
const CardRow = JSX(({ className, children }) => (jsx("div", { className: style('flex flex-col sm:flex-row sm:border-t sm:border-solid sm:border-main-divider py-xl gap-x-6xl gap-y-xl', className), children: children })));
|
|
5388
5383
|
|
|
@@ -6572,7 +6567,7 @@
|
|
|
6572
6567
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6573
6568
|
});
|
|
6574
6569
|
|
|
6575
|
-
const packageVersion = "0.14.
|
|
6570
|
+
const packageVersion = "0.14.477";
|
|
6576
6571
|
|
|
6577
6572
|
exports.Blocks = Blocks;
|
|
6578
6573
|
exports.ContentPage = ContentPage;
|