From 8175db2cdedb72ca4f93ae2f34392fb1bdea229b Mon Sep 17 00:00:00 2001 From: Matthew L McPeak Date: Mon, 13 Jul 2026 18:12:38 -0400 Subject: [PATCH] refactor: rewrite Checkbox and Switch without reka-ui Both become plain role="checkbox"/role="switch" buttons driven by useVModel, matching the existing Input.vue controlled-value pattern. Classes and data-state/aria-checked contract are unchanged. --- .../src/components/ui/checkbox/Checkbox.vue | 50 ++++++++++----- .../src/components/ui/switch/Switch.vue | 64 +++++++++++-------- 2 files changed, 71 insertions(+), 43 deletions(-) diff --git a/packages/library/src/components/ui/checkbox/Checkbox.vue b/packages/library/src/components/ui/checkbox/Checkbox.vue index f370cb2..29d285d 100644 --- a/packages/library/src/components/ui/checkbox/Checkbox.vue +++ b/packages/library/src/components/ui/checkbox/Checkbox.vue @@ -1,34 +1,50 @@ diff --git a/packages/library/src/components/ui/switch/Switch.vue b/packages/library/src/components/ui/switch/Switch.vue index f56f98b..8b5dcdb 100644 --- a/packages/library/src/components/ui/switch/Switch.vue +++ b/packages/library/src/components/ui/switch/Switch.vue @@ -1,44 +1,56 @@