From c5794a2593ce437b1182ff2d1043e6092bad0a6e Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Mon, 28 Jul 2025 22:49:44 -0600 Subject: [PATCH] Update nodes --- apps/web/src/components/ui/report/Toolbar.tsx | 37 +++-- .../ui/report/elements/BlockDraggable.tsx | 91 ++++++----- .../ui/report/elements/ColumnNode.tsx | 24 +-- .../ui/report/elements/EmojiToolbarButton.tsx | 38 +++-- .../elements/FontColorToolbarButton.tsx | 10 +- .../components/ui/report/elements/Toolbar.tsx | 147 +++++++----------- 6 files changed, 147 insertions(+), 200 deletions(-) diff --git a/apps/web/src/components/ui/report/Toolbar.tsx b/apps/web/src/components/ui/report/Toolbar.tsx index 66e22a720..424fc3492 100644 --- a/apps/web/src/components/ui/report/Toolbar.tsx +++ b/apps/web/src/components/ui/report/Toolbar.tsx @@ -236,32 +236,35 @@ export function ToolbarSplitButtonSecondary({ ); } -export function ToolbarToggleItem({ - className, - size = 'sm', - variant, - ...props -}: React.ComponentProps & - VariantProps) { +export const ToolbarToggleItem = React.forwardRef< + React.ElementRef, + React.ComponentProps & + VariantProps +>(function ToolbarToggleItem({ className, size = 'sm', variant, ...props }, ref) { return ( ); -} +}); -export function ToolbarGroup({ children, className }: React.ComponentProps<'div'>) { - return ( -