From a5c2ac6e8cd271b1febf80e383e292ef0ed8b89b Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 26 Aug 2026 10:47:32 +0000 Subject: [PATCH] fix(types): narrow SonnerSchema.buttonVariant to the six Button variants The zod mirror spelled `buttonVariant` as `z.string()` while the TS face beside it declared a six-member union, so one key on one component shipped as an open string to anyone validating (`@object-ui/types/zod`) and as a closed union to anyone type-checking (`@object-ui/types`). This is an accept-set NARROWING on a published surface: `'primary'`, `'danger'`, `'Default'` and `''` used to validate and now fail. Every one of them renders a broken button today -- the renderer passes the value straight into `