@flamingo-stack/openframe-frontend-core 0.0.650-2249.6503.1 → 0.0.650

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 +1 @@
1
- {"version":3,"file":"vendor-icon.d.ts","sourceRoot":"","sources":["../../src/components/vendor-icon.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAiB,KAAK,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAEjF,UAAU,eAAe;IACvB,MAAM,EAAE,eAAe,GAAG;QACxB,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACtB,CAAC;IACF,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,GAAG,GAAG,IAAI,CAAC;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;CAC9C;AA0BD;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EACzB,MAAM,EACN,IAAW,EACX,SAAc,EACd,cAAqB,EACrB,eAAwB,GACzB,EAAE,eAAe,+BAkCjB"}
1
+ {"version":3,"file":"vendor-icon.d.ts","sourceRoot":"","sources":["../../src/components/vendor-icon.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAiB,KAAK,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAEjF,UAAU,eAAe;IACvB,MAAM,EAAE,eAAe,GAAG;QACxB,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACtB,CAAC;IACF,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,GAAG,GAAG,IAAI,CAAC;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;CAC9C;AAyCD;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EACzB,MAAM,EACN,IAAW,EACX,SAAc,EACd,cAAqB,EACrB,eAAwB,GACzB,EAAE,eAAe,+BAkCjB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flamingo-stack/openframe-frontend-core",
3
- "version": "0.0.650-2249.6503.1",
3
+ "version": "0.0.650",
4
4
  "description": "Shared design system and components for all Flamingo platforms",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -36,6 +36,21 @@ const imageSizeMap = {
36
36
  xl: { width: 40, height: 40 },
37
37
  };
38
38
 
39
+ /**
40
+ * Tile px per size (the `sizeClasses` box). With `showBackground={false}`
41
+ * the image FILLS the tile (`h-full w-full`), so it must be requested at the
42
+ * tile's size: requesting the padded `imageSizeMap` size there served a
43
+ * 32px bitmap stretched over a 40-64px tile, blurry on every display.
44
+ */
45
+ const tilePxMap = {
46
+ xs: 24,
47
+ sm: 32,
48
+ md: 40,
49
+ lg: 48,
50
+ l: 56,
51
+ xl: 64,
52
+ };
53
+
39
54
  const backgroundClasses = {
40
55
  dark: 'bg-ods-bg border border-ods-border',
41
56
  light: 'bg-ods-card border border-ods-border',
@@ -54,7 +69,7 @@ export function VendorIcon({
54
69
  backgroundStyle = 'dark',
55
70
  }: VendorIconProps) {
56
71
  const logoUrl = getVendorLogo(vendor);
57
- const { width, height } = imageSizeMap[size];
72
+ const { width, height } = showBackground ? imageSizeMap[size] : { width: tilePxMap[size], height: tilePxMap[size] };
58
73
 
59
74
  const containerClasses = cn(
60
75
  sizeClasses[size],