@redneckz/wildless-cms-uni-blocks 0.14.835 → 0.14.836
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 +26 -23
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/GalleryLayout/utils.d.ts +29 -0
- package/dist/components/GalleryLayout/GalleryLayout.js +3 -24
- package/dist/components/GalleryLayout/GalleryLayout.js.map +1 -1
- package/dist/components/GalleryLayout/utils.d.ts +29 -0
- package/dist/components/GalleryLayout/utils.js +29 -0
- package/dist/components/GalleryLayout/utils.js.map +1 -0
- package/lib/components/GalleryLayout/GalleryLayout.js +1 -22
- package/lib/components/GalleryLayout/GalleryLayout.js.map +1 -1
- package/lib/components/GalleryLayout/utils.d.ts +29 -0
- package/lib/components/GalleryLayout/utils.js +25 -0
- package/lib/components/GalleryLayout/utils.js.map +1 -0
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +26 -23
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/GalleryLayout/utils.d.ts +29 -0
- package/mobile/dist/components/GalleryLayout/GalleryLayout.js +3 -24
- package/mobile/dist/components/GalleryLayout/GalleryLayout.js.map +1 -1
- package/mobile/dist/components/GalleryLayout/utils.d.ts +29 -0
- package/mobile/dist/components/GalleryLayout/utils.js +29 -0
- package/mobile/dist/components/GalleryLayout/utils.js.map +1 -0
- package/mobile/lib/components/GalleryLayout/GalleryLayout.js +1 -22
- package/mobile/lib/components/GalleryLayout/GalleryLayout.js.map +1 -1
- package/mobile/lib/components/GalleryLayout/utils.d.ts +29 -0
- package/mobile/lib/components/GalleryLayout/utils.js +25 -0
- package/mobile/lib/components/GalleryLayout/utils.js.map +1 -0
- package/mobile/src/components/GalleryLayout/GalleryLayout.tsx +1 -32
- package/mobile/src/components/GalleryLayout/utils.ts +35 -0
- package/package.json +1 -1
- package/src/components/GalleryLayout/GalleryLayout.tsx +1 -32
- package/src/components/GalleryLayout/utils.ts +35 -0
- package/src/icons/IconName.ts +4 -4
package/bundle/bundle.umd.js
CHANGED
|
@@ -10043,8 +10043,32 @@
|
|
|
10043
10043
|
return blocks;
|
|
10044
10044
|
};
|
|
10045
10045
|
|
|
10046
|
-
const MIN_LENGTH_CHILD = 5;
|
|
10047
10046
|
const SHORT_TILE_INDEXES = [1, 2, 3, 4];
|
|
10047
|
+
const getChildStyle = (index) => SHORT_TILE_INDEXES.includes(index)
|
|
10048
|
+
? 'lg:col-span-1 lg:row-span-1'
|
|
10049
|
+
: 'lg:col-span-2 lg:row-span-2';
|
|
10050
|
+
const modifyBlock = (block, i) => {
|
|
10051
|
+
const content = { ...block.content };
|
|
10052
|
+
const isSmallTile = SHORT_TILE_INDEXES.includes(i);
|
|
10053
|
+
if (isSmallTile) {
|
|
10054
|
+
delete content.description;
|
|
10055
|
+
delete content.benefits;
|
|
10056
|
+
if (content.link?.href) {
|
|
10057
|
+
delete content.buttons;
|
|
10058
|
+
}
|
|
10059
|
+
content.imageOptions = { ...content.imageOptions, className: 'max-w-max !h-auto' };
|
|
10060
|
+
content.headlineVersion = 'S';
|
|
10061
|
+
}
|
|
10062
|
+
else {
|
|
10063
|
+
if ((content.buttons ?? []).length) {
|
|
10064
|
+
delete content.link;
|
|
10065
|
+
}
|
|
10066
|
+
content.headlineVersion = 'L';
|
|
10067
|
+
}
|
|
10068
|
+
return { ...block, content };
|
|
10069
|
+
};
|
|
10070
|
+
|
|
10071
|
+
const MIN_LENGTH_CHILD = 5;
|
|
10048
10072
|
const LINK_SCHEMA = {
|
|
10049
10073
|
link: {
|
|
10050
10074
|
allOf: [
|
|
@@ -10095,27 +10119,6 @@
|
|
|
10095
10119
|
block: modifiedBlock,
|
|
10096
10120
|
}) }, String(i)));
|
|
10097
10121
|
};
|
|
10098
|
-
const getChildStyle = (index) => SHORT_TILE_INDEXES.includes(index)
|
|
10099
|
-
? 'lg:col-span-1 lg:row-span-1'
|
|
10100
|
-
: 'lg:col-span-2 lg:row-span-2';
|
|
10101
|
-
const modifyBlock = (block, i) => {
|
|
10102
|
-
const content = { ...block.content };
|
|
10103
|
-
const isSmallTile = SHORT_TILE_INDEXES.includes(i);
|
|
10104
|
-
if (isSmallTile) {
|
|
10105
|
-
delete content.description;
|
|
10106
|
-
delete content.benefits;
|
|
10107
|
-
if (content.link?.href) {
|
|
10108
|
-
delete content.buttons;
|
|
10109
|
-
}
|
|
10110
|
-
content.imageOptions = { ...content.imageOptions, className: 'max-w-max !h-auto' };
|
|
10111
|
-
}
|
|
10112
|
-
else {
|
|
10113
|
-
if ((content.buttons ?? []).length) {
|
|
10114
|
-
delete content.link;
|
|
10115
|
-
}
|
|
10116
|
-
}
|
|
10117
|
-
return { ...block, content };
|
|
10118
|
-
};
|
|
10119
10122
|
|
|
10120
10123
|
const GrantSupport = UniBlock(({ className, title, button, regionSource, data, ...rest }) => {
|
|
10121
10124
|
const [region, setRegion] = useState({ key: '' });
|
|
@@ -11436,7 +11439,7 @@
|
|
|
11436
11439
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
11437
11440
|
});
|
|
11438
11441
|
|
|
11439
|
-
const packageVersion = "0.14.
|
|
11442
|
+
const packageVersion = "0.14.835";
|
|
11440
11443
|
|
|
11441
11444
|
exports.Blocks = Blocks;
|
|
11442
11445
|
exports.ContentPage = ContentPage;
|