From 887f97b966b8ab4f19eec97d93205076b1398f6b Mon Sep 17 00:00:00 2001 From: Ravi Suhag Date: Mon, 20 Jul 2026 21:33:43 +0530 Subject: [PATCH] chore: comment cleanup across components and docs --- apps/www/src/app/examples/page.tsx | 73 +------------------ apps/www/src/app/examples/table/page.tsx | 35 --------- apps/www/src/components/datatable-demo.tsx | 1 - .../www/src/components/demo/demo-controls.tsx | 3 - apps/www/src/components/docs/sidebar.tsx | 7 -- .../www/src/components/mdx/mdx-components.tsx | 7 -- .../playground/skeleton-examples.tsx | 5 -- apps/www/src/components/toc/toc.tsx | 2 - apps/www/src/lib/ai.ts | 9 +-- apps/www/src/lib/prettier.ts | 4 +- apps/www/src/lib/remark.ts | 1 - apps/www/src/lib/utils.ts | 1 - .../raystack/components/amount/amount.tsx | 55 ++------------ .../calendar/__tests__/calendar.test.tsx | 4 - .../components/code-block/code-block-code.tsx | 2 - .../__tests__/color-picker.test.tsx | 18 ----- .../color-picker/color-picker-area.tsx | 4 +- .../raystack/components/color-picker/utils.ts | 24 ++---- .../data-table/__tests__/data-table.test.tsx | 10 --- .../components/data-table/data-table.tsx | 9 +-- .../data-table/utils/__tests__/index.test.tsx | 1 - .../data-table/utils/filter-operations.tsx | 1 - .../components/data-table/utils/index.tsx | 11 +-- .../data-view/__tests__/data-view.test.tsx | 3 - .../data-view/__tests__/debug.test.tsx | 2 +- .../components/theme-provider/theme.tsx | 10 +-- .../components/tour-beta/tour-backdrop.tsx | 3 +- .../raystack/hooks/useCopyToClipboard.tsx | 13 ++-- packages/raystack/hooks/useMouse.tsx | 1 - packages/raystack/styles/typography.css | 3 - packages/raystack/types/filters.tsx | 2 - 31 files changed, 37 insertions(+), 287 deletions(-) diff --git a/apps/www/src/app/examples/page.tsx b/apps/www/src/app/examples/page.tsx index 01048209b..c3011750f 100644 --- a/apps/www/src/app/examples/page.tsx +++ b/apps/www/src/app/examples/page.tsx @@ -66,7 +66,6 @@ const Page = () => { to: dayjs('2027-12-10').toDate() }); - // Sample options data with icons const selectOptions = [ { value: 'dashboard', label: 'Dashboard', icon: }, { value: 'analytics', label: 'Analytics', icon: }, @@ -431,7 +430,6 @@ const Page = () => { ); } - // Show info on 15th of any month if (date.getDate() === 15) { return ( { ); } - // Show info for today if (isToday) { return ( { - {/* Button Examples */} { Button Examples - All Combinations - {/* Solid Variant */} Solid Variant - {/* Normal Size */} Normal Size: @@ -582,7 +576,6 @@ const Page = () => { - {/* Small Size */} Small Size: @@ -695,11 +688,9 @@ const Page = () => { - {/* Outline Variant */} Outline Variant - {/* Normal Size */} Normal Size: @@ -757,7 +748,6 @@ const Page = () => { - {/* Small Size */} Small Size: @@ -880,11 +870,9 @@ const Page = () => { - {/* Ghost Variant */} Ghost Variant - {/* Normal Size */} Normal Size: @@ -942,7 +930,6 @@ const Page = () => { - {/* Small Size */} Small Size: @@ -1055,11 +1042,9 @@ const Page = () => { - {/* Text Variant */} Text Variant - {/* Normal Size */} Normal Size: @@ -1117,7 +1102,6 @@ const Page = () => { - {/* Small Size */} Small Size: @@ -1238,7 +1222,6 @@ const Page = () => { - {/* Solid Variant */} Solid Variant (Inverted Spinner) @@ -1254,7 +1237,6 @@ const Page = () => { - {/* Outline Variant */} Outline Variant (Matching Color Spinner) @@ -1272,7 +1254,6 @@ const Page = () => { - {/* Ghost Variant */} Ghost Variant (Matching Color Spinner for colored) @@ -1290,7 +1271,6 @@ const Page = () => { - {/* Text Variant */} Text Variant (Matching Color Spinner for colored) @@ -1311,7 +1291,6 @@ const Page = () => { - {/* Size Variants */} Size Variants @@ -1345,7 +1324,6 @@ const Page = () => { - {/* Loading with and without text */} Loading With/Without Text @@ -1374,7 +1352,6 @@ const Page = () => { - {/* Disabled Loading State */} Disabled Loading State @@ -1429,7 +1406,6 @@ const Page = () => { /> - {/* Select component examples */} {