@obolnetwork/obol-ui 1.0.4 → 1.0.5

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.
@@ -1,6 +1,7 @@
1
1
  export declare const LogoCard: (props: {
2
2
  image: string;
3
3
  heading: string;
4
+ logoCardLink?: string;
4
5
  width?: string;
5
6
  height?: string;
6
7
  }) => JSX.Element;
@@ -19,6 +19,7 @@ export interface EcosystemCardProps {
19
19
  heading: string;
20
20
  subheading?: string;
21
21
  links?: SocialNetwork[];
22
+ logoCardLink?: string;
22
23
  }
23
24
  export interface EcosystemTabsProps {
24
25
  tab: string;
package/dist/index.es.js CHANGED
@@ -1122,19 +1122,20 @@ var MediaQueryKeys = {
1122
1122
 
1123
1123
  var LogoCard = function (props) {
1124
1124
  var screenDownSm = useMediaQuery(MediaQueryKeys.sm);
1125
- return (jsx(Box, __assign({ className: "logo-card", css: {
1125
+ return (jsx(Box, __assign({ as: "a", className: "logo-card", css: {
1126
1126
  position: "relative",
1127
1127
  width: "288px",
1128
1128
  height: "120px",
1129
1129
  borderRadius: "$4",
1130
1130
  backgroundColor: "$bg04",
1131
+ "&:hover": { cursor: "pointer", backgroundColor: "$bg05" },
1131
1132
  p: "$sm",
1132
1133
  "@sm": {
1133
1134
  width: "42%",
1134
1135
  height: "auto",
1135
1136
  p: "$xxs",
1136
1137
  },
1137
- } }, { children: !screenDownSm ? (jsx(Image$1, { src: props.image, layout: "fill", objectFit: "scale-down", alt: props.heading })) : (jsx(Image$1, { src: props.image, layout: "responsive", objectFit: "fill", width: props.width, height: props.height, alt: props.heading })) })));
1138
+ }, target: "_blank", href: props.logoCardLink }, { children: !screenDownSm ? (jsx(Image$1, { src: props.image, layout: "fill", objectFit: "scale-down", alt: props.heading })) : (jsx(Image$1, { src: props.image, layout: "responsive", objectFit: "fill", width: props.width, height: props.height, alt: props.heading })) })));
1138
1139
  };
1139
1140
 
1140
1141
  // Exports
package/dist/index.js CHANGED
@@ -1152,19 +1152,20 @@ var MediaQueryKeys = {
1152
1152
 
1153
1153
  var LogoCard = function (props) {
1154
1154
  var screenDownSm = useMediaQuery(MediaQueryKeys.sm);
1155
- return (jsxRuntime.jsx(Box, __assign({ className: "logo-card", css: {
1155
+ return (jsxRuntime.jsx(Box, __assign({ as: "a", className: "logo-card", css: {
1156
1156
  position: "relative",
1157
1157
  width: "288px",
1158
1158
  height: "120px",
1159
1159
  borderRadius: "$4",
1160
1160
  backgroundColor: "$bg04",
1161
+ "&:hover": { cursor: "pointer", backgroundColor: "$bg05" },
1161
1162
  p: "$sm",
1162
1163
  "@sm": {
1163
1164
  width: "42%",
1164
1165
  height: "auto",
1165
1166
  p: "$xxs",
1166
1167
  },
1167
- } }, { children: !screenDownSm ? (jsxRuntime.jsx(Image__default["default"], { src: props.image, layout: "fill", objectFit: "scale-down", alt: props.heading })) : (jsxRuntime.jsx(Image__default["default"], { src: props.image, layout: "responsive", objectFit: "fill", width: props.width, height: props.height, alt: props.heading })) })));
1168
+ }, target: "_blank", href: props.logoCardLink }, { children: !screenDownSm ? (jsxRuntime.jsx(Image__default["default"], { src: props.image, layout: "fill", objectFit: "scale-down", alt: props.heading })) : (jsxRuntime.jsx(Image__default["default"], { src: props.image, layout: "responsive", objectFit: "fill", width: props.width, height: props.height, alt: props.heading })) })));
1168
1169
  };
1169
1170
 
1170
1171
  // Exports
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@obolnetwork/obol-ui",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.es.js",
6
6
  "license": "MIT",