@aiaiai-pt/design-system 0.60.0 → 0.61.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.
@@ -513,7 +513,11 @@
513
513
  const type = parameterType(parameter);
514
514
  if (type === "bool" || type === "boolean") return false;
515
515
  if (type === "number" || type === "integer") return "";
516
- if (type === "enum" || type === "select") return enumOptions(parameter)[0]?.value ?? "";
516
+ // A choice with no declared default starts EMPTY (the placeholder), never
517
+ // on its first option: a pre-selected option is a value nobody chose,
518
+ // and it rides the payload (atelier#2838 — staff creates wrote untouched
519
+ // `location_level: "building"`). A required one blocks submit until picked.
520
+ if (type === "enum" || type === "select") return "";
517
521
  // #34 — an unset single `relationship` summary is null on the wire
518
522
  // (string|null contract). Legacy `object_reference` keeps its "" seed.
519
523
  if (type === "relationship") return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiaiai-pt/design-system",
3
- "version": "0.60.0",
3
+ "version": "0.61.1",
4
4
  "description": "Design system tokens and Svelte components for aiaiai products",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -853,6 +853,10 @@
853
853
  --map-radius: var(--radius-md);
854
854
  --map-border: var(--elevation-border);
855
855
 
856
+ /* Read-only map (MapDisplay) heights: a detail field, a page section */
857
+ --map-display-height-sm: 200px;
858
+ --map-display-height-md: 280px;
859
+
856
860
  /* Marker */
857
861
  --map-marker-radius: var(--space-sm);
858
862
  --map-marker-fill: var(--color-accent);