@redneckz/wildless-cms-uni-blocks 0.6.48 → 0.6.49

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.
Files changed (29) hide show
  1. package/bundle/bundle.umd.js +10 -5
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/components/Footer/MediaButton.d.ts +3 -0
  4. package/bundle/components/Footer/SocialMedia.d.ts +3 -0
  5. package/dist/components/Footer/MediaButton.d.ts +3 -0
  6. package/dist/components/Footer/MediaButton.js +8 -3
  7. package/dist/components/Footer/MediaButton.js.map +1 -1
  8. package/dist/components/Footer/SocialMedia.d.ts +3 -0
  9. package/dist/components/Footer/SocialMedia.js +1 -1
  10. package/dist/components/Footer/SocialMedia.js.map +1 -1
  11. package/lib/components/Footer/MediaButton.d.ts +3 -0
  12. package/lib/components/Footer/MediaButton.js +8 -3
  13. package/lib/components/Footer/MediaButton.js.map +1 -1
  14. package/lib/components/Footer/SocialMedia.d.ts +3 -0
  15. package/lib/components/Footer/SocialMedia.js +1 -1
  16. package/lib/components/Footer/SocialMedia.js.map +1 -1
  17. package/mobile/bundle/bundle.umd.js +9 -4
  18. package/mobile/bundle/bundle.umd.min.js +1 -1
  19. package/mobile/bundle/components/Footer/MediaButton.d.ts +3 -0
  20. package/mobile/dist/components/Footer/MediaButton.d.ts +3 -0
  21. package/mobile/dist/components/Footer/MediaButton.js +8 -3
  22. package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
  23. package/mobile/lib/components/Footer/MediaButton.d.ts +3 -0
  24. package/mobile/lib/components/Footer/MediaButton.js +8 -3
  25. package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
  26. package/mobile/src/components/Footer/MediaButton.tsx +46 -36
  27. package/package.json +1 -1
  28. package/src/components/Footer/MediaButton.tsx +46 -36
  29. package/src/components/Footer/SocialMedia.tsx +20 -10
@@ -1730,7 +1730,11 @@
1730
1730
  label: 'Google Play',
1731
1731
  },
1732
1732
  ];
1733
- const MediaButton = JSX(({ version = 'primary', ...rest }) => {
1733
+ const BUTTON_SIZE = {
1734
+ default: ' w-14 h-14',
1735
+ small: ' w-12 h-12',
1736
+ };
1737
+ const MediaButton = JSX(({ version = 'primary', isRounded = false, buttonSize = 'default', ...rest }) => {
1734
1738
  const link = useLink();
1735
1739
  const { href, onClick } = link(rest);
1736
1740
  const { icon, label } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
@@ -1740,11 +1744,12 @@
1740
1744
  const classes = version === 'secondary'
1741
1745
  ? 'bg-white hover:bg-secondary-hover'
1742
1746
  : 'border-solid border border-main-divider hover:border-transparent hover:bg-primary-main';
1743
- const isPrimary = version === 'primary';
1744
- return (jsx("a", { className: `flex items-center justify-center rounded-md w-14 h-14 group box-border ${classes} ${isPrimary ? 'hover:text-black' : ''}`, href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", onClick: onClick, children: icon ? (jsx(ImgInner, { image: getIconWithVersion(icon), imageClassName: "group-hover:text-white", width: "24", height: "24", asSVG: true })) : null }));
1747
+ const isPrimary = version === 'primary' ? 'hover:text-black' : '';
1748
+ const rounded = isRounded ? 'rounded-full' : 'rounded-md';
1749
+ return (jsx("a", { className: `flex items-center justify-center group box-border ${classes} ${rounded} ${isPrimary} ${BUTTON_SIZE[buttonSize]}`, href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", onClick: onClick, children: icon ? (jsx(ImgInner, { image: getIconWithVersion(icon), imageClassName: "group-hover:text-white", width: "24", height: "24", asSVG: true })) : null }));
1745
1750
  });
1746
1751
 
1747
- const SocialMedia = JSX(({ className = '', media, version, children }) => (jsxs("div", { className: "font-sans", children: [jsx("div", { className: `flex gap-2.5 ${className}`, children: media?.map((_, index) => (jsx(MediaButton, { version: version, ..._ }, String(index)))) }), jsx("span", { className: "text-s-light text-secondary-text", children: children })] })));
1752
+ const SocialMedia = JSX(({ className = '', media, version, isRounded = false, buttonSize, children }) => (jsxs("div", { className: "font-sans", children: [jsx("div", { className: `flex gap-2.5 ${className}`, children: media?.map((_, index) => (jsx(MediaButton, { version: version, isRounded: isRounded, buttonSize: buttonSize, ..._ }, String(index)))) }), jsx("span", { className: "text-s-light text-secondary-text", children: children })] })));
1748
1753
 
1749
1754
  const CarouselRecommendationCard = JSX(({ button, className = '', description, image, items = [], socialMedia = [], title, version = 'primary', ...rest }) => {
1750
1755
  const tileTitle = title ? (jsx(Heading, { headingType: "h5", as: "h3", className: "mb-3.5 z-10", title: title })) : null;
@@ -4145,7 +4150,7 @@
4145
4150
  return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-lg sticky bottom-0 pointer-events-auto" }) }));
4146
4151
  }
4147
4152
 
4148
- const packageVersion = "0.6.48";
4153
+ const packageVersion = "0.6.49";
4149
4154
 
4150
4155
  exports.Blocks = Blocks;
4151
4156
  exports.ContentPage = ContentPage;