From 416210d6669a8d670bb18778aea3668cf237abbf Mon Sep 17 00:00:00 2001 From: Gildas Garcia <1122076+djhi@users.noreply.github.com> Date: Mon, 27 Apr 2026 11:07:06 +0200 Subject: [PATCH] chore: remove `_Shadcn_` suffix for Checkbox and Radio components (#45263) ## Problem With #45211 and #45218 merged, we don't need the `_Shadcn_` suffix anymore ## Solution - [x] Remove the `_Shadcn_` suffix - [x] Update exports and imports ## Summary by CodeRabbit * **Refactor** * Standardized UI component exports by removing legacy naming conventions and providing direct imports for checkbox and radio group components throughout the design system. --- .../components/theme-settings.tsx | 10 +++++----- .../default/example/checkbox-demo.tsx | 4 ++-- .../default/example/checkbox-disabled.tsx | 4 ++-- .../example/checkbox-form-multiple.tsx | 4 ++-- .../default/example/checkbox-form-single.tsx | 4 ++-- .../default/example/checkbox-with-text.tsx | 4 ++-- .../default/example/data-grid-demo.tsx | 4 ++-- .../default/example/data-table-demo.tsx | 6 +++--- .../default/example/field-checkbox.tsx | 2 +- .../registry/default/example/field-demo.tsx | 2 +- .../registry/default/example/field-group.tsx | 2 +- .../registry/default/example/field-hear.tsx | 2 +- .../form-item-layout-with-checkbox-list.tsx | 4 ++-- .../form-item-layout-with-checkbox.tsx | 4 ++-- .../example/form-patterns-pagelayout.tsx | 8 ++++---- .../example/form-patterns-sidepanel.tsx | 8 ++++---- .../registry/default/example/label-demo.tsx | 4 ++-- .../default/example/radio-group-demo.tsx | 12 +++++------ .../default/example/radio-group-form.tsx | 14 ++++++------- .../components/theme-switcher-dropdown.tsx | 9 ++++----- apps/lite-studio/app/routes/projects.$ref.tsx | 2 +- .../PermissionResourceSelector.tsx | 4 ++-- .../Scoped/Form/Permissions/Permissions.tsx | 4 ++-- .../Account/Preferences/ThemeSettings.tsx | 12 +++++------ .../PolicyEditorPanel/PolicyDetailsV2.tsx | 10 +++++----- .../Auth/Policies/PolicyEditorPanel/index.tsx | 4 ++-- .../Auth/RedirectUrls/RedirectUrlList.tsx | 4 ++-- .../interfaces/Auth/Users/CreateUserModal.tsx | 4 ++-- .../interfaces/Auth/Users/Users.utils.tsx | 4 ++-- .../Billing/Payment/AddPaymentMethodForm.tsx | 6 +++--- .../NewPaymentMethodElement.tsx | 4 ++-- .../Database/Hooks/FormContents.tsx | 4 ++-- .../interfaces/Database/Tables/TableList.tsx | 4 ++-- .../Database/Triggers/TriggerSheet.tsx | 4 ++-- .../create-key-dialog.tsx | 10 +++------- .../rotate-key-dialog.tsx | 8 ++++---- .../Subscription/PaymentMethodSelection.tsx | 4 ++-- .../GeneralSettings/AIOptInLevelSelector.tsx | 8 ++++---- .../DeleteOrganizationButton.ListAck.tsx | 4 ++-- .../DeleteOrganizationButton.SingleAck.tsx | 4 ++-- .../Apps/CreateAppSheet/CreateAppSheet.tsx | 6 +++--- .../PlatformWebhooksEndpointSheet.tsx | 2 +- .../ProjectCreation/SecurityOptions.tsx | 10 +++++----- .../SQLEditor/UtilityPanel/ChartConfig.tsx | 8 ++++---- .../Settings/Addons/IPv4SidePanel.tsx | 10 +++++----- .../JitDbAccessRoleGrantFields.tsx | 4 ++-- .../interfaces/Settings/Logs/LogTable.tsx | 4 ++-- .../StorageExplorer/FileExplorerColumn.tsx | 2 +- .../StorageExplorer/FileExplorerRow.tsx | 2 +- .../StoragePolicies/StoragePoliciesEditor.tsx | 2 +- .../DeleteConfirmationDialogs.tsx | 8 +------- .../ColumnEditor/ColumnEditor.tsx | 6 +++--- .../SidePanelEditor/TableEditor/Column.tsx | 12 +++++------ .../TableEditor/TableEditor.tsx | 8 ++++---- .../TableEditorLayout/TableEditorMenu.tsx | 4 ++-- .../DataTableFilterCheckbox.tsx | 2 +- .../DataTableFilterCheckboxAsync.tsx | 2 +- .../ui/DataTable/DataTableViewOptions.tsx | 4 ++-- apps/studio/components/ui/FilterPopover.tsx | 4 ++-- .../ui/QueryBlock/BlockViewConfiguration.tsx | 6 +++--- .../[slug]/deploy-button/new-project.tsx | 6 +++--- .../components/theme-switcher-dropdown.tsx | 6 +++--- apps/www/pages/features.tsx | 2 +- packages/ui-patterns/src/form/FormLayout2.tsx | 20 +++++++++---------- packages/ui/index.tsx | 8 ++------ 65 files changed, 176 insertions(+), 191 deletions(-) diff --git a/apps/design-system/components/theme-settings.tsx b/apps/design-system/components/theme-settings.tsx index bb074b6546c..7b72bd9daab 100644 --- a/apps/design-system/components/theme-settings.tsx +++ b/apps/design-system/components/theme-settings.tsx @@ -3,7 +3,7 @@ import { useTheme } from 'next-themes' import { useEffect, useState } from 'react' import SVG from 'react-inlinesvg' -import { RadioGroup_Shadcn_, RadioGroupLargeItem_Shadcn_, singleThemes, Theme } from 'ui' +import { RadioGroup, RadioGroupLargeItem, singleThemes, Theme } from 'ui' const ThemeSettings = () => { const [mounted, setMounted] = useState(false) @@ -25,7 +25,7 @@ const ThemeSettings = () => { function SingleThemeSelection() { return (
) } diff --git a/apps/design-system/registry/default/example/checkbox-demo.tsx b/apps/design-system/registry/default/example/checkbox-demo.tsx index 8f7ebf20d67..f299a237be2 100644 --- a/apps/design-system/registry/default/example/checkbox-demo.tsx +++ b/apps/design-system/registry/default/example/checkbox-demo.tsx @@ -1,11 +1,11 @@ 'use client' -import { Checkbox_Shadcn_ } from 'ui' +import { Checkbox } from 'ui' export default function CheckboxDemo() { return (