@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.
@@ -220,7 +220,25 @@
220
220
  if (!("initial" in value)) {
221
221
  throw new Error("Expected initial property to be set in Responsive object");
222
222
  } else {
223
- return value[size];
223
+ switch (size) {
224
+ case "xl":
225
+ if (value["xl"])
226
+ return value["xl"];
227
+ case "lg":
228
+ if (value["lg"])
229
+ return value["lg"];
230
+ case "md":
231
+ if (value["md"])
232
+ return value["md"];
233
+ case "sm":
234
+ if (value["sm"])
235
+ return value["sm"];
236
+ case "xs":
237
+ if (value["xs"])
238
+ return value["xs"];
239
+ case "initial":
240
+ return value["initial"];
241
+ }
224
242
  }
225
243
  }
226
244
  return value;