@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
|
-
|
|
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
package/tokens/components.css
CHANGED
|
@@ -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);
|