@snacky/ui 0.6.2 → 0.7.1

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/dist/index.js CHANGED
@@ -1198,6 +1198,39 @@ function ProductCard(props) {
1198
1198
  }
1199
1199
  );
1200
1200
  }
1201
+
1202
+ // src/components/ImagePlaceholder/ImagePlaceholder.tsx
1203
+ import { jsx as jsx33, jsxs as jsxs24 } from "react/jsx-runtime";
1204
+ function ImagePlaceholder({ width, height, className }) {
1205
+ const iconSize = Math.round(Math.min(width, height) * 0.32);
1206
+ return /* @__PURE__ */ jsx33(
1207
+ "div",
1208
+ {
1209
+ className: cx("snacky-image-placeholder", className),
1210
+ style: { width, height },
1211
+ role: "img",
1212
+ "aria-label": "No image",
1213
+ children: /* @__PURE__ */ jsxs24(
1214
+ "svg",
1215
+ {
1216
+ width: iconSize,
1217
+ height: iconSize,
1218
+ viewBox: "0 0 24 24",
1219
+ fill: "none",
1220
+ stroke: "currentColor",
1221
+ strokeWidth: 2,
1222
+ strokeLinecap: "round",
1223
+ strokeLinejoin: "round",
1224
+ children: [
1225
+ /* @__PURE__ */ jsx33("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
1226
+ /* @__PURE__ */ jsx33("circle", { cx: "8.5", cy: "8.5", r: "1.5", fill: "currentColor", stroke: "none" }),
1227
+ /* @__PURE__ */ jsx33("polyline", { points: "21 15 16 10 5 21" })
1228
+ ]
1229
+ }
1230
+ )
1231
+ }
1232
+ );
1233
+ }
1201
1234
  export {
1202
1235
  Accordion,
1203
1236
  AddressResult,
@@ -1217,6 +1250,7 @@ export {
1217
1250
  HeroBanner,
1218
1251
  IconButton,
1219
1252
  Illustration,
1253
+ ImagePlaceholder,
1220
1254
  NavBar,
1221
1255
  NotificationBadge,
1222
1256
  NotificationListItem,