@overmap-ai/blocks 1.0.28 → 1.0.29-item-stack.0

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/README.md CHANGED
@@ -1,3 +1,3 @@
1
- # overmap-ai blocks
2
-
3
- Contains basic components used by overmap-ai libraries.
1
+ # overmap-ai blocks
2
+
3
+ Contains basic components used by overmap-ai libraries.
package/dist/blocks.js CHANGED
@@ -221,7 +221,25 @@ function useOvermapResponsiveValue(value) {
221
221
  if (!("initial" in value)) {
222
222
  throw new Error("Expected initial property to be set in Responsive object");
223
223
  } else {
224
- return value[size];
224
+ switch (size) {
225
+ case "xl":
226
+ if (value["xl"])
227
+ return value["xl"];
228
+ case "lg":
229
+ if (value["lg"])
230
+ return value["lg"];
231
+ case "md":
232
+ if (value["md"])
233
+ return value["md"];
234
+ case "sm":
235
+ if (value["sm"])
236
+ return value["sm"];
237
+ case "xs":
238
+ if (value["xs"])
239
+ return value["xs"];
240
+ case "initial":
241
+ return value["initial"];
242
+ }
225
243
  }
226
244
  }
227
245
  return value;