From a8ff32f5eef8a029027b659e5cd15e1e1e0f9c5d Mon Sep 17 00:00:00 2001 From: supakornnetsuwan Date: Sat, 18 Oct 2025 17:11:29 +0700 Subject: [PATCH 1/4] migrate: `toggle`, `toggle-group`, `toast` and `textarea` --- .../src/app/playground/shadcn/page.tsx | 52 ++ .../playground/shadcn/textarea-section.tsx | 257 ++++++++ .../app/playground/shadcn/toast-section.tsx | 576 ++++++++++++++++++ .../shadcn/toggle-group-section.tsx | 395 ++++++++++++ .../app/playground/shadcn/toggle-section.tsx | 326 ++++++++++ .../src/components/providers.tsx | 4 +- packages/react/package.json | 2 + .../compound/reorder-group/index.tsx | 12 + .../react/components/primitives/dialog.tsx | 4 +- .../src/react/components/primitives/toast.tsx | 7 +- .../react/components/primitives/toggle.tsx | 34 ++ packages/react/src/react/styles/tailwind.css | 3 +- .../react/v2/components/primitives/button.tsx | 2 +- .../react/v2/components/primitives/dialog.tsx | 2 +- .../react/v2/components/primitives/index.ts | 4 + .../react/v2/components/primitives/input.tsx | 2 +- .../react/v2/components/primitives/sheet.tsx | 2 +- .../v2/components/primitives/sidebar.tsx | 10 +- .../react/v2/components/primitives/sonner.tsx | 73 +++ .../v2/components/primitives/textarea.tsx | 18 + .../react/v2/components/primitives/toggel.tsx | 47 ++ .../v2/components/primitives/toggle-group.tsx | 71 +++ .../v2/components/primitives/tooltip.tsx | 2 +- pnpm-lock.yaml | 58 ++ 24 files changed, 1944 insertions(+), 19 deletions(-) create mode 100644 examples/ui-playground/src/app/playground/shadcn/textarea-section.tsx create mode 100644 examples/ui-playground/src/app/playground/shadcn/toast-section.tsx create mode 100644 examples/ui-playground/src/app/playground/shadcn/toggle-group-section.tsx create mode 100644 examples/ui-playground/src/app/playground/shadcn/toggle-section.tsx create mode 100644 packages/react/v2/components/primitives/sonner.tsx create mode 100644 packages/react/v2/components/primitives/textarea.tsx create mode 100644 packages/react/v2/components/primitives/toggel.tsx create mode 100644 packages/react/v2/components/primitives/toggle-group.tsx diff --git a/examples/ui-playground/src/app/playground/shadcn/page.tsx b/examples/ui-playground/src/app/playground/shadcn/page.tsx index 7e72b72a..e2595acd 100644 --- a/examples/ui-playground/src/app/playground/shadcn/page.tsx +++ b/examples/ui-playground/src/app/playground/shadcn/page.tsx @@ -12,6 +12,10 @@ import { ComboboxSection } from './combobox-section' import { DropdownMenuSection } from './dropdown-menu-section' import { InputSection } from './input-section' import { LinkSection } from './link-section' +import { TextareaSection } from './textarea-section' +import { ToastSection } from './toast-section' +import { ToggleGroupSection } from './toggle-group-section' +import { ToggleSection } from './toggle-section' import { TooltipSection } from './tooltip-section' export default function ComboboxPage() { @@ -56,6 +60,26 @@ export default function ComboboxPage() { Collapsible + + + Toggle + + + + + Toggle Group + + + + + Textarea + + + + + Toast + +
@@ -112,6 +136,34 @@ export default function ComboboxPage() { {'>'} Collapsible
+ + {'>'} Toggle + +
+ + {'>'} Toggle Group + +
+ + {'>'} Textarea + +
+ + {'>'} Toast + +
+