Skip to content

Scheduling infrastructure for absolutely everyone.

chore: remove ui-playground app (#25266)

sean-brydona7352cf58744
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 525c155e227..ca8815224fe 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -1,6 +1,5 @@
/**/package.json @calcom/Foundation
/apps/api/**/* @calcom/API
-/apps/ui-playground/**/* @calcom/Consumer @calcom/Foundation
/apps/web/**/layout.tsx @calcom/Consumer @calcom/Foundation
/apps/web/lib/csp.ts @calcom/Foundation
/apps/web/lib/buildNonce.ts @calcom/Foundation
diff --git a/apps/ui-playground/.gitignore b/apps/ui-playground/.gitignore
deleted file mode 100644
index b4ae1e735b8..00000000000
--- a/apps/ui-playground/.gitignore
+++ /dev/null
@@ -1,44 +0,0 @@
-# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
-
-# dependencies
-/node_modules
-/.pnp
-.pnp.*
-.yarn/*
-!.yarn/patches
-!.yarn/plugins
-!.yarn/releases
-!.yarn/versions
-
-# testing
-/coverage
-
-# next.js
-/.next/
-/out/
-
-# production
-/build
-
-# misc
-.DS_Store
-*.pem
-
-# debug
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-.pnpm-debug.log*
-
-# env files (can opt-in for committing if needed)
-.env*
-
-# vercel
-.vercel
-
-# typescript
-*.tsbuildinfo
-next-env.d.ts
-
-# Source maps
-*.source/*
diff --git a/apps/ui-playground/README.md b/apps/ui-playground/README.md
deleted file mode 100644
index e215bc4ccf1..00000000000
--- a/apps/ui-playground/README.md
+++ /dev/null
@@ -1,36 +0,0 @@
-This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
-
-## Getting Started
-
-First, run the development server:
-
-```bash
-npm run dev
-# or
-yarn dev
-# or
-pnpm dev
-# or
-bun dev
-```
-
-Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
-
-You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
-
-This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
-
-## Learn More
-
-To learn more about Next.js, take a look at the following resources:
-
-- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
-- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
-
-You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
-
-## Deploy on Vercel
-
-The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
-
-Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
diff --git a/apps/ui-playground/app/(home)/layout.tsx b/apps/ui-playground/app/(home)/layout.tsx
deleted file mode 100644
index a44af49c2a6..00000000000
--- a/apps/ui-playground/app/(home)/layout.tsx
+++ /dev/null
@@ -1,9 +0,0 @@
-import { HomeLayout } from "fumadocs-ui/layouts/home";
-import type { ReactNode } from "react";
-
-import { baseOptions } from "../layout.config";
-
-export default function Layout({ children }: { children: ReactNode }) {
- // @ts-expect-error weird type check
- return <HomeLayout {...baseOptions}>{children}</HomeLayout>;
-}
diff --git a/apps/ui-playground/app/(home)/page.tsx b/apps/ui-playground/app/(home)/page.tsx
deleted file mode 100644
index b7f52d73a34..00000000000
--- a/apps/ui-playground/app/(home)/page.tsx
+++ /dev/null
@@ -1,12 +0,0 @@
-export default function Page() {
- return (
- <div className="font-cal -mt-16 flex min-h-screen w-screen items-center justify-center border pt-16 text-center ">
- <div>
- <h1 className="text-7xl leading-none md:text-8xl">
- Open UI for absolutely
- <br /> everyone
- </h1>
- </div>
- </div>
- );
-}
diff --git a/apps/ui-playground/app/api/search/route.ts b/apps/ui-playground/app/api/search/route.ts
deleted file mode 100644
index e10d2f3b120..00000000000
--- a/apps/ui-playground/app/api/search/route.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-import { componentSource } from "@/app/source";
-import { createSearchAPI } from "fumadocs-core/search/server";
-
-const indexes = [componentSource].flatMap((src) =>
- src.getPages().map((page) => ({
- title: page.data.title,
- description: page.data.description,
- structuredData: page.data.structuredData,
- id: page.url,
- url: page.url,
- }))
-);
-
-export const { GET } = createSearchAPI("advanced", {
- indexes,
-});
diff --git a/apps/ui-playground/app/components/icon-swatch.tsx b/apps/ui-playground/app/components/icon-swatch.tsx
deleted file mode 100644
index 0fbc6cce8a8..00000000000
--- a/apps/ui-playground/app/components/icon-swatch.tsx
+++ /dev/null
@@ -1,21 +0,0 @@
-import type { PropsWithChildren } from "react";
-
-type Props = {
- name: string;
-};
-export const Icon: React.FC<PropsWithChildren<Props>> = (props) => {
- return (
- <div className="text-gray-12 flex flex-col items-center justify-center gap-4">
- <div className="size-12 border-gray-5 bg-gray-3 flex aspect-square items-center justify-center rounded-lg border ">
- {props.children}
- </div>
- <span className="font-mono text-sm">
- {"<"}
- {props.name}
- {"/>"}
- </span>
- </div>
- );
-};
-
-Icon.displayName = "Icon";
diff --git a/apps/ui-playground/app/components/render.tsx b/apps/ui-playground/app/components/render.tsx
deleted file mode 100644
index 10f0437ecc6..00000000000
--- a/apps/ui-playground/app/components/render.tsx
+++ /dev/null
@@ -1,57 +0,0 @@
-"use client";
-
-import { type PropsWithChildren, useState } from "react";
-
-import className from "@calcom/ui/classNames";
-import { Button } from "@calcom/ui/components/button";
-
-type Props = {
- customCodeSnippet?: string;
- className?: string;
-};
-
-export const RenderComponentWithSnippet: React.FC<PropsWithChildren<Props>> = (props) => {
- const [open, setOpen] = useState(false);
- // const snippet =
- // props.customCodeSnippet ??
- // reactElementToJSXString(props.children, {
- // showFunctions: true,
- // useBooleanShorthandSyntax: true,
-
- // displayName: (node) => {
- // // @ts-ignore
- // return node?.type.displayName ?? node?.type ?? "Unknown";
- // },
- // });
- return (
- <div className="border-gray-6 bg-default rounded-lg border">
- <div className={className("not-prose p-8 xl:p-12", props.className)}>{props.children}</div>
-
- <div className="bg-gray-3 border-gray-6 flex items-center justify-start border-b border-t p-2">
- <Button
- color="minimal"
- onClick={() => {
- setOpen(!open);
- }}>
- Code (WIP)
- </Button>
- </div>
-
- <div
- className={className(
- "bg-gray-2 max-h-96 w-full overflow-y-scroll transition-all",
- open ? "block" : "hidden"
- )}>
- <div className="flex items-start">
- {/* <pre className="py-0 text-gray-8 text-right">
- {snippet
- .split("\n")
- .map((_line, i) => i + 1)
- .join("\n")}
- </pre>
- <pre className="py-0 text-gray-12 w-full">{snippet}</pre> */}
- </div>
- </div>
- </div>
- );
-};
diff --git a/apps/ui-playground/app/components/row.tsx b/apps/ui-playground/app/components/row.tsx
deleted file mode 100644
index f5ca400e44b..00000000000
--- a/apps/ui-playground/app/components/row.tsx
+++ /dev/null
@@ -1,7 +0,0 @@
-import type { PropsWithChildren } from "react";
-
-export const Row: React.FC<PropsWithChildren> = (props) => {
- return <div className="flex w-full items-center justify-between gap-8">{props.children}</div>;
-};
-
-Row.displayName = "Row";
diff --git a/apps/ui-playground/app/design/[[...slug]]/page.tsx b/apps/ui-playground/app/design/[[...slug]]/page.tsx
deleted file mode 100644
index 6a14cb8c87c..00000000000
--- a/apps/ui-playground/app/design/[[...slug]]/page.tsx
+++ /dev/null
@@ -1,56 +0,0 @@
-import { componentSource } from "@/app/source";
-import { TooltipProvider } from "@radix-ui/react-tooltip";
-import { createTypeTable } from "fumadocs-typescript/ui";
-import defaultMdxComponents from "fumadocs-ui/mdx";
-import { DocsBody, DocsDescription, DocsPage, DocsTitle } from "fumadocs-ui/page";
-import type { Metadata } from "next";
-import { notFound } from "next/navigation";
-import { Toaster } from "react-hot-toast";
-
-export default async function Page(props: { params: Promise<{ slug?: string[] }> }) {
- const params = await props.params;
-
- const page = componentSource.getPage(params.slug);
-
- if (!page) {
- notFound();
- }
- const { AutoTypeTable } = createTypeTable();
-
- const MDX = page.data.body;
-
- return (
- <>
- {/* @ts-expect-error idk why fumadocs doersnt like this */}
- <DocsPage toc={page.data.toc} full={page.data.full}>
- <Toaster />
- <DocsTitle>{page.data.title}</DocsTitle>
-
- <DocsDescription>{page.data.description}</DocsDescription>
-
- <DocsBody>
- <TooltipProvider>
- {/* @ts-expect-error idk why fumadocs doersnt like this */}
- <MDX components={{ ...defaultMdxComponents, AutoTypeTable }} />
- </TooltipProvider>
- </DocsBody>
- </DocsPage>
- </>
- );
-}
-
-export async function generateStaticParams() {
- return componentSource.generateParams();
-}
-
-export async function generateMetadata({ params }: { params: Promise<{ slug?: string[] }> }) {
- const page = componentSource.getPage((await params).slug);
- if (!page) {
- notFound();
- }
-
- return {
- title: page.data.title,
- description: page.data.description,
- } satisfies Metadata;
-}
diff --git a/apps/ui-playground/app/design/layout.tsx b/apps/ui-playground/app/design/layout.tsx
deleted file mode 100644
index 270fa5319fe..00000000000
--- a/apps/ui-playground/app/design/layout.tsx
+++ /dev/null
@@ -1,17 +0,0 @@
-import { componentSource } from "@/app/source";
-import { TooltipProvider } from "@radix-ui/react-tooltip";
-import { DocsLayout } from "fumadocs-ui/layouts/notebook";
-import type { ReactNode } from "react";
-
-import { IconSprites } from "@calcom/ui/components/icon";
-
-import { baseOptions } from "../layout.config";
-
-export default function Layout({ children }: { children: ReactNode }) {
- return (
- <DocsLayout tree={componentSource.pageTree} {...baseOptions}>
- <TooltipProvider>{children}</TooltipProvider>
- <IconSprites />
- </DocsLayout>
- );
-}
diff --git a/apps/ui-playground/app/global.css b/apps/ui-playground/app/global.css
deleted file mode 100644
index e2544b23891..00000000000
--- a/apps/ui-playground/app/global.css
+++ /dev/null
@@ -1,1028 +0,0 @@
-@tailwind base;
-@tailwind components;
-@tailwind utilities;
-/**
-* Add css variables here as well for light mode in addition to tailwind.config to avoid FOUC
-*/
-:root {
- /* Spacing Scale */
- --cal-spacing-0: 0px;
- --cal-spacing-px: 1px;
- --cal-spacing-0_5: 0.125rem; /* 2px */
- --cal-spacing-1: 0.25rem; /* 4px */
- --cal-spacing-1_5: 0.375rem; /* 6px */
- --cal-spacing-2: 0.5rem; /* 8px */
- --cal-spacing-2_5: 0.625rem; /* 10px */
- --cal-spacing-3: 0.75rem; /* 12px */
- --cal-spacing-3_5: 0.875rem; /* 14px */
- --cal-spacing-4: 1rem; /* 16px */
- --cal-spacing-5: 1.25rem; /* 20px */
- --cal-spacing-6: 1.5rem; /* 24px */
- --cal-spacing-7: 1.75rem; /* 28px */
- --cal-spacing-8: 2rem; /* 32px */
- --cal-spacing-9: 2.25rem; /* 36px */
- --cal-spacing-10: 2.5rem; /* 40px */
- --cal-spacing-11: 2.75rem; /* 44px */
- --cal-spacing-12: 3rem; /* 48px */
- --cal-spacing-14: 3.5rem; /* 56px */
- --cal-spacing-16: 4rem; /* 64px */
- --cal-spacing-20: 5rem; /* 80px */
- --cal-spacing-24: 6rem; /* 96px */
- --cal-spacing-28: 7rem; /* 112px */
- --cal-spacing-32: 8rem; /* 128px */
- --cal-spacing-36: 9rem; /* 144px */
- --cal-spacing-40: 10rem; /* 160px */
- --cal-spacing-44: 11rem; /* 176px */
- --cal-spacing-48: 12rem; /* 192px */
- --cal-spacing-52: 13rem; /* 208px */
- --cal-spacing-56: 14rem; /* 224px */
- --cal-spacing-60: 15rem; /* 240px */
- --cal-spacing-64: 16rem; /* 256px */
- --cal-spacing-72: 18rem; /* 288px */
- --cal-spacing-80: 20rem; /* 320px */
- --cal-spacing-96: 24rem; /* 384px */
-
- /* Border Radius */
- --cal-radius-none: 0px;
- --cal-radius-sm: 0.125rem; /* 2px */
- --cal-radius: 0.25rem; /* 4px */
- --cal-radius-md: 0.375rem; /* 6px */
- --cal-radius-lg: 0.5rem; /* 8px */
- --cal-radius-xl: 0.75rem; /* 12px */
- --cal-radius-2xl: 1rem; /* 16px */
- --cal-radius-3xl: 1.5rem; /* 24px */
- --cal-radius-full: 9999px;
-
- /* Background Standard */
- --cal-bg-emphasis: hsla(220, 13%, 91%, 1); /* gray.200 - active items and emphasising */
- --cal-bg: hsla(0, 0%, 100%, 1); /* white - default background */
- --cal-bg-subtle: hsla(220, 14%, 94%, 1); /* gray.100 - hovering on items, subtle raising */
- --cal-bg-muted: hsla(210, 20%, 97%, 1); /* gray.50 - large items, sidebar, sections */
- --cal-bg-inverted: hsla(210, 30%, 4%, 1); /* gray.900 - tooltips */
-
- /* Background Primary */
- --cal-bg-primary: hsla(214, 30%, 16%, 1); /* stone-100 */
- --cal-bg-primary-emphasis: hsla(220, 6%, 25%, 1); /* stone-800 */
- --cal-bg-primary-muted: hsla(220, 14%, 94%, 1); /* stone-400 */
-
- /* Background Brand */
- --cal-bg-brand: hsla(214, 30%, 16%, 1); /* gray-50 */
- --cal-bg-brand-emphasis: hsla(220, 6%, 25%, 1); /* stone-100 */
- --cal-bg-brand-muted: hsla(220, 14%, 94%, 1); /* stone-100 */
-
- /* Background Semantic */
- --cal-bg-semantic-info-subtle: hsla(212, 88%, 97%, 1); /* blue-100 */
- --cal-bg-semantic-info-emphasis: hsla(236, 80%, 25%, 1); /* blue-500 */
- --cal-bg-semantic-success-subtle: hsla(167, 54%, 93%, 1); /* green-100 */
- --cal-bg-semantic-success-emphasis: hsla(158, 74%, 38%, 1); /* green-500 */
- --cal-bg-semantic-attention-subtle: hsla(34, 100%, 92%, 1); /* orange-100 */
- --cal-bg-semantic-attention-emphasis: hsla(15, 79%, 34%, 1); /* orange-500 */
- --cal-bg-semantic-error-subtle: hsla(0, 93%, 94%, 1); /* red-100 */
- --cal-bg-semantic-error-emphasis: hsla(0, 63%, 24%, 1); /* red-500 */
-
- /* Background Visualization */
- --cal-bg-visualization-1-subtle: hsla(326, 78%, 95%, 1); /* pink-100 */
- --cal-bg-visualization-1-emphasis: hsla(330, 81%, 60%, 1); /* pink-500 */
- --cal-bg-visualization-2-subtle: hsla(256, 86%, 91%, 1); /* purple-100 */
- --cal-bg-visualization-2-emphasis: hsla(256, 85%, 57%, 1); /* purple-500 */
- --cal-bg-visualization-3-subtle: hsla(217, 87%, 91%, 1); /* blue-100 */
- --cal-bg-visualization-3-emphasis: hsla(235, 100%, 63%, 1); /* blue-500 */
- --cal-bg-visualization-4-subtle: hsla(167, 54%, 93%, 1); /* green-100 */
- --cal-bg-visualization-4-emphasis: hsla(158, 74%, 38%, 1); /* green-500 */
- --cal-bg-visualization-5-subtle: hsla(55, 97%, 88%, 1); /* yellow-100 */
- --cal-bg-visualization-5-emphasis: hsla(45, 93%, 47%, 1); /* yellow-500 */
- --cal-bg-visualization-6-subtle: hsla(34, 100%, 92%, 1); /* orange-100 */
- --cal-bg-visualization-6-emphasis: hsla(25, 95%, 53%, 1); /* orange-500 */
- --cal-bg-visualization-7-subtle: hsla(0, 96%, 89%, 1); /* red-100 */
- --cal-bg-visualization-7-emphasis: hsla(0, 84%, 60%, 1); /* red-500 */
-
- /* Launch Background */
- --cal-bg-launch-dark: hsla(242, 53%, 10%, 1); /* #0D0C27 - Launch card dark background */
-
- /* Legacy Background Components - Consider deprecating */
- --cal-bg-info: hsla(221, 91%, 93%, 1); /* #dee9fc - info backgrounds */
- --cal-bg-success: hsla(142, 76%, 94%, 1); /* #e2fbe8 - success backgrounds */
- --cal-bg-attention: hsla(33, 100%, 92%, 1); /* #fceed8 - attention backgrounds */
- --cal-bg-error: hsla(3, 66%, 93%, 1); /* #f9e3e2 - error backgrounds */
- --cal-bg-dark-error: hsla(2, 55%, 30%, 1); /* Keeping existing dark error */
-
- /* Borders */
- --cal-border-emphasis: hsla(218, 11%, 65%, 1); /* gray.400 - input:hover */
- --cal-border: hsla(216, 12%, 84%, 1); /* gray.300 - inputs */
- --cal-border-subtle: hsla(220, 13%, 91%, 1); /* gray.200 - container borders */
- --cal-border-muted: hsla(220, 14%, 94%, 1); /* gray.100 */
- --cal-border-error: hsla(0, 96%, 89%, 1); /* Keeping existing error border */
- --cal-border-semantic-error: hsla(0, 96%, 89%, 1);
-
- /* Content/Text Standard */
- --cal-text-emphasis: hsla(210, 30%, 4%, 1); /* gray-900 */
- --cal-text: hsla(220, 6%, 25%, 1); /* gray-700 */
- --cal-text-subtle: hsla(220, 9%, 46%, 1); /* gray-500 */
- --cal-text-muted: hsla(218, 11%, 65%, 1); /* gray-400 */
- --cal-text-inverted: hsla(0, 0%, 100%, 1); /* white */
-
- /* Content/Text Semantic */
- --cal-text-semantic-info: hsla(236, 80%, 25%, 1); /* blue-800 */
- --cal-text-semantic-success: hsla(150, 84%, 22%, 1); /* green-800 */
- --cal-text-semantic-attention: hsla(15, 79%, 34%, 1); /* orange-800 */
- --cal-text-semantic-error: hsla(0, 63%, 24%, 1); /* red-800 */
-
- /* Border/Semantic Subtle */
- --cal-border-semantic-attention-subtle: hsla(32, 98%, 83%, 1);
- --cal-border-semantic-error-subtle: hsla(0, 96%, 89%, 1);
-
- /* Content/Text Visualization */
- --cal-text-visualization-1: hsla(332, 79%, 25%, 1); /* pink-800 */
- --cal-text-visualization-2: hsla(270, 91%, 25%, 1); /* purple-800 */
- --cal-text-visualization-3: hsla(217, 91%, 25%, 1); /* blue-800 */
- --cal-text-visualization-4: hsla(142, 71%, 25%, 1); /* green-800 */
- --cal-text-visualization-5: hsla(45, 93%, 25%, 1); /* yellow-800 */
- --cal-text-visualization-6: hsla(24, 95%, 25%, 1); /* orange-800 */
- --cal-text-visualization-7: hsla(0, 84%, 25%, 1); /* red-800 */
-
- /* Legacy Content/Text Components - Consider deprecating */
- --cal-text-info: hsla(225, 57%, 33%, 1); /* #253985 - interactive text/icons */
- --cal-text-success: hsla(144, 34%, 24%, 1); /* #285231 */
- --cal-text-attention: hsla(16, 62%, 28%, 1); /* Keeping existing attention text */
- --cal-text-error: hsla(0, 63%, 31%, 1); /* Keeping existing error text */
-
- /* Brand */
- --cal-brand: hsla(221, 39%, 11%, 1); /* Keeping existing brand color */
- --cal-brand-emphasis: hsla(0, 0%, 6%, 1); /* Keeping existing brand emphasis */
- --cal-brand-text: hsla(0, 0%, 100%, 1); /* white */
-}
-.dark {
- /* Background Standard */
- --cal-bg-emphasis: hsla(0, 0%, 25%, 1); /* stone-700 */
- --cal-bg: hsla(0, 0%, 6%, 1); /* stone-950 */
- --cal-bg-subtle: hsla(0, 0%, 15%, 1); /* stone-800 */
- --cal-bg-muted: hsla(0, 0%, 9%, 1); /* stone-900 */
- --cal-bg-inverted: hsla(0, 0%, 98%, 1); /* stone-50 */
-
- /* Background Primary */
- --cal-bg-primary: hsla(0, 0%, 96%, 1); /* stone-100 */
- --cal-bg-primary-emphasis: hsla(0, 0%, 64%, 1); /* stone-800 */
- --cal-bg-primary-muted: hsla(0, 0%, 15%, 1); /* stone-400 */
-
- /* Background Brand */
- --cal-bg-brand: hsla(0, 0%, 98%, 1); /* gray-50 */
- --cal-bg-brand-emphasis: hsla(0, 0%, 96%, 1); /* stone-100 */
- --cal-bg-brand-muted: hsla(0, 0%, 96%, 1); /* stone-100 */
-
- /* Background Semantic */
- --cal-bg-semantic-info-subtle: hsla(236, 80%, 8%, 1); /* blue-800 */
- --cal-bg-semantic-info-emphasis: hsla(229, 90%, 74%, 1); /* blue-500 */
- --cal-bg-semantic-success-subtle: hsla(148, 88%, 16%, 1); /* green-800 */
- --cal-bg-semantic-success-emphasis: hsla(158, 74%, 38%, 1); /* green-500 */
- --cal-bg-semantic-attention-subtle: hsla(21, 86%, 8%, 1); /* orange-800 */
- --cal-bg-semantic-attention-emphasis: hsla(27, 96%, 61%, 1); /* orange-500 */
- --cal-bg-semantic-error-subtle: hsla(0, 70%, 8%, 1); /* red-800 */
- --cal-bg-semantic-error-emphasis: hsla(0, 91%, 71%, 1); /* red-500 */
-
- /* Background Visualization */
- --cal-bg-visualization-1-subtle: hsla(336, 74%, 35%, 1); /* pink-200 */
- --cal-bg-visualization-1-emphasis: hsla(330, 81%, 60%, 1); /* pink-500 */
- --cal-bg-visualization-2-subtle: hsla(252, 83%, 23%, 1); /* purple-200 */
- --cal-bg-visualization-2-emphasis: hsla(256, 85%, 57%, 1); /* purple-500 */
- --cal-bg-visualization-3-subtle: hsla(236, 74%, 35%, 1); /* blue-200 */
- --cal-bg-visualization-3-emphasis: hsla(235, 100%, 63%, 1); /* blue-500 */
- --cal-bg-visualization-4-subtle: hsla(150, 84%, 22%, 1); /* green-200 */
- --cal-bg-visualization-4-emphasis: hsla(158, 74%, 38%, 1); /* green-500 */
- --cal-bg-visualization-5-subtle: hsla(28, 73%, 26%, 1); /* yellow-200 */
- --cal-bg-visualization-5-emphasis: hsla(45, 93%, 47%, 1); /* yellow-500 */
- --cal-bg-visualization-6-subtle: hsla(15, 75%, 23%, 1); /* orange-200 */
- --cal-bg-visualization-6-emphasis: hsla(25, 95%, 53%, 1); /* orange-500 */
- --cal-bg-visualization-7-subtle: hsla(0, 70%, 35%, 1); /* red-200 */
- --cal-bg-visualization-7-emphasis: hsla(0, 84%, 60%, 1); /* red-500 */
-
- /* Launch Background */
- --cal-bg-launch-dark: hsla(242, 53%, 10%, 1); /* #0D0C27 - Launch card dark background */
-
- /* Legacy Background Components - Consider deprecating */
- --cal-bg-info: hsla(228, 56%, 33%, 1); /* Keeping existing info background */
- --cal-bg-success: hsla(133, 34%, 24%, 1); /* Keeping existing success background */
- --cal-bg-attention: hsla(16, 62%, 28%, 1); /* Keeping existing attention background */
- --cal-bg-error: hsla(2, 55%, 30%, 1); /* Keeping existing error background */
- --cal-bg-dark-error: hsla(2, 55%, 30%, 1); /* Keeping existing dark error */
-
- /* Border Standard */
- --cal-border: hsla(0, 0%, 30%, 1); /* stone-600 */
- --cal-border-muted: hsla(0, 0%, 9%, 1); /* stone-500 */
- --cal-border-subtle: hsla(0, 0%, 15%, 1); /* stone-700 */
- --cal-border-emphasis: hsla(0, 0%, 45%, 1); /* stone-800 */
- /* Border Semantic */
- --cal-border-semantic-error: hsla(0, 63%, 24%, 1); /* red-800 */
-
- /* Legacy Border - Consider deprecating */
- --cal-border-error: hsla(0, 63%, 24%, 1); /* Keeping existing error border */
-
- /* Content/Text Standard */
- --cal-text-emphasis: hsla(0, 0%, 98%, 1); /* stone-50 */
- --cal-text: hsla(0, 0%, 83%, 1); /* stone-300 */
- --cal-text-subtle: hsla(0, 0%, 64%, 1); /* stone-400 */
- --cal-text-muted: hsla(0, 0%, 64%, 1); /* stone-400 */
- --cal-text-inverted: hsla(0, 0%, 0%, 1); /* black */
-
- /* Content/Text Semantic */
- --cal-text-semantic-info: hsla(229, 90%, 74%, 1); /* blue-100 */
- --cal-text-semantic-success: hsla(161, 49%, 54%, 1); /* green-100 */
- --cal-text-semantic-attention: hsla(27, 96%, 61%, 1); /* orange-100 */
- --cal-text-semantic-error: hsla(0, 91%, 71%, 1); /* red-100 */
-
- /* Content/Text Semantic Emphasis */
- --cal-text-semantic-info-emphasis: hsla(217, 91%, 25%, 1); /* blue-800 */
- --cal-text-semantic-success-emphasis: hsla(142, 71%, 25%, 1); /* green-800 */
- --cal-text-semantic-attention-emphasis: hsla(24, 95%, 25%, 1); /* orange-800 */
- --cal-text-semantic-error-emphasis: hsla(0, 84%, 25%, 1); /* red-800 */
-
- /* Border/Semantic Subtle */
- --cal-border-semantic-attention-subtle: hsla(15, 75%, 23%, 1);
- --cal-border-semantic-error-subtle: hsla(0, 63%, 24%, 1);
-
- /* Legacy Content/Text Components - Consider deprecating */
- --cal-text-info: hsla(218, 83%, 93%, 1); /* Keeping existing info text */
- --cal-text-success: hsla(134, 76%, 94%, 1); /* Keeping existing success text */
- --cal-text-attention: hsla(37, 86%, 92%, 1); /* Keeping existing attention text */
- --cal-text-error: hsla(3, 66%, 93%, 1); /* Keeping existing error text */
-
- /* Brand */
- --cal-brand: hsla(0, 0%, 100%, 1); /* white */
- --cal-brand-emphasis: hsla(218, 11%, 65%, 1); /* Keeping existing brand emphasis */
- --cal-brand-text: hsla(0, 0%, 0%, 1); /* black */
-}
-
-@layer base {
- * {
- @apply border-default
- }
-}
-
-::-moz-selection {
- color: var(--cal-brand-text);
- background: var(--cal-brand);
-}
-
-::selection {
- color: var(--cal-brand-text);
- background: var(--cal-brand);
-}
-
-body  {
- text-rendering: optimizeLegibility;
- -webkit-font-smoothing: antialiased;
-}
-
-/*
- Desktop App specific CSS
- https://docs.todesktop.com/
-*/
-
-html.todesktop-platform-win32 .todesktop\:\!bg-transparent{
- background: inherit !important;
-}
-
-/* disable user selection on buttons, links and images on desktop app */
-html.todesktop button,
-html.todesktop a,
-html.todesktop img,
-html.todesktop header {
- -webkit-touch-callout: none;
- -webkit-user-select: none;
- -khtml-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- cursor: default !important;
-}
-
-html.todesktop,
-html.todesktop div {
- cursor: default !important;
-}
-
-/* make header draggable on desktop app */
-html.todesktop header {
- -webkit-app-region: drag;
-}
-
-html.todesktop header button,
-html.todesktop header a {
- -webkit-app-region: no-drag;
-}
-
-html.todesktop-platform-darwin body, html.todesktop-platform-darwin aside {
- background: transparent !important;
-}
-
-html.todesktop-platform-darwin.dark main.bg-default {
- background: rgba(0, 0, 0, 0.6) !important;
-}
-
-html.todesktop-platform-darwin.light main.bg-default {
- background: rgba(255, 255, 255, 0.8) !important;
-}
-
-html.todesktop.light {
- --cal-bg-emphasis: hsla(0, 0%, 11%, 0.1);
-}
-
-html.todesktop.dark {
- --cal-bg-emphasis: hsla(220, 2%, 26%, 0.3);
-}
-
-/*
- Adds Utility to hide scrollbar to tailwind
- https://github.com/tailwindlabs/tailwindcss/discussions/2394
- https://github.com/tailwindlabs/tailwindcss/pull/5732
-*/
-@layer utilities {
- /* Chrome, Safari and Opera */
- .no-scrollbar::-webkit-scrollbar {
- display: none;
- }
-
- .no-scrollbar {
- -ms-overflow-style: none; /* IE and Edge */
- scrollbar-width: none; /* Firefox */
- }
-}
-
-/*
- * Override the default tailwindcss-forms styling (default is: 'colors.blue.600')
- * @see: https://github.com/tailwindlabs/tailwindcss-forms/issues/14#issuecomment-1005376006
- */
-[type="text"]:focus,
-[type="email"]:focus,
-[type="url"]:focus,
-[type="password"]:focus,
-[type="number"]:focus,
-[type="date"]:focus,
-[type="datetime-local"]:focus,
-[type="month"]:focus,
-[type="search"]:focus,
-[type="tel"]:focus,
-[type="checkbox"]:focus,
-[type="radio"]:focus,
-[type="time"]:focus,
-[type="week"]:focus,
-[multiple]:focus,
-textarea:focus,
-select:focus {
- border-color: var(--cal-border-emphasis);
- box-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 0.20), 0px 0px 0px 2px rgba(0, 0, 0, 0.10);
-}
-
-@layer components {
- .scroll-bar {
- @apply scrollbar-thin scrollbar-thumb-rounded-md dark:scrollbar-thumb-darkgray-300 scrollbar-thumb-gray-300 scrollbar-track-transparent;
- }
-}
-
-/* TODO: avoid global specific css */
-/* button[role="switch"][data-state="checked"] span {
- transform: translateX(16px);
-} */
-
-@layer components {
- /* slider */
- .slider {
- @apply relative flex h-4 w-40 select-none items-center;
- }
-
- .slider > .slider-track {
- @apply relative h-1 flex-grow rounded-md bg-gray-400;
- }
-
- .slider .slider-range {
- @apply absolute h-full rounded-full bg-gray-700;
- }
-
- .slider .slider-thumb {
- @apply block h-3 w-3 cursor-pointer rounded-full bg-gray-700 transition-all;
- }
-
- .slider .slider-thumb:hover {
- @apply bg-gray-600;
- }
-
- .slider .slider-thumb:focus {
- box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.2);
- }
-}
-
-/* hide chat bubble on mobile */
-@media only screen and (max-width: 768px) {
- /* Intercom FAB*/
- #launcher {
- display: none !important;
- }
-
- /* Zendesk FAB*/
- div[role="presentation"] > iframe {
- display: none !important;
- }
-
- /* Helpscout FAB*/
- .BeaconFabButtonFrame {
- margin-left: -30px;
- left: 50%;
- bottom: 28px !important;
- z-index: 1058 !important;
- }
-}
-
-/* TODO: implement styling for react-multi-email */
-
-/* !important to override react-dates */
-.DateRangePickerInput__withBorder {
- border: 0 !important;
-}
-.DateInput_input {
- border: 1px solid #d1d5db !important;
- border-radius: 2px !important;
- font-size: inherit !important;
- font-weight: inherit !important;
- color: #000;
- padding: 11px ​11px 9px !important;
- line-height: 16px !important;
-}
-
-.DateInput_input__focused {
- border: 2px solid #000 !important;
- border-radius: 2px !important;
- box-shadow: none !important;
- padding: 10px ​10px 9px !important;
-}
-
-.DateRangePickerInput_arrow {
- padding: 0px 10px;
-}
-
-.loader {
- display: block;
- width: 30px;
- height: 30px;
- margin: 60px auto;
- position: relative;
- border-width: 4px;
- border-style: solid;
- animation: loader 2s infinite ease;
-}
-
-.loader-inner {
- vertical-align: top;
- display: inline-block;
- width: 100%;
- animation: loader-inner 2s infinite ease-in;
-}
-
-.no-ring-inset {
- --tw-ring-inset: unset;
-}
-
-@keyframes loader {
- 0% {
- transform: rotate(0deg);
- }
-
- 25% {
- transform: rotate(180deg);
- }
-
- 50% {
- transform: rotate(180deg);
- }
-
- 75% {
- transform: rotate(360deg);
- }
-
- 100% {
- transform: rotate(360deg);
- }
-}
-
-@keyframes loader-inner {
- 0% {
- height: 0%;
- }
-
- 25% {
- height: 0%;
- }
-
- 50% {
- height: 100%;
- }
-
- 75% {
- height: 100%;
- }
-
- 100% {
- height: 0%;
- }
-}
-
-.text-inverted-important {
- color: white !important;
-}
-
-@layer utilities {
- .transition-max-width {
- -webkit-transition-property: max-width;
- transition-property: max-width;
- }
-}
-
-#timeZone input:focus {
- box-shadow: none;
-}
-
-/* react-date-picker forces a border upon us, cast it away */
-.react-date-picker__wrapper {
- border: none !important;
-}
-
-.react-date-picker__inputGroup__input {
- padding-top: 0;
- padding-bottom: 0;
-}
-
-/* animations */
-.slideInBottom {
- animation-duration: 0.3s;
- animation-fill-mode: both;
- animation-name: slideInBottom;
-}
-
-@keyframes slideInBottom {
- from {
- opacity: 0;
- transform: translateY(30%);
- pointer-events: none;
- }
- to {
- opacity: 1;
- pointer-events: auto;
- }
-}
-
-/* animations */
-.slideInTop {
- animation-duration: 0.3s;
- animation-fill-mode: both;
- animation-name: slideInTop;
-}
-
-@keyframes slideInTop {
- from {
- opacity: 0;
- transform: translateY(-20%);
- pointer-events: none;
- }
- to {
- opacity: 1;
- pointer-events: auto;
- transform: translateY(0%);
- }
-}
-
-.fadeIn {
- animation-duration: 0.3s;
- animation-fill-mode: both;
- animation-name: fadeIn;
- animation-timing-function: ease-in-out;
-}
-
-@keyframes fadeIn {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
-}
-
-/**
- * Makes sure h-screen works on mobile Safari. By default h-screen
- * does not take into account the height of the address bar, causing
- * weird behaviour when scrolling — sometimes the height will be correct
- * and sometimes it won't, depending on whether the address bar is
- * in 'collapsed' state or not.
- * @see: https://benborgers.com/posts/tailwind-h-screen
- */
-@supports (-webkit-touch-callout: none) {
- .h-screen {
- height: -webkit-fill-available;
- }
-}
-
-::-webkit-search-cancel-button {
- -webkit-appearance: none;
-}
-
-.react-tel-input .country-list .country:hover,
-.react-tel-input .country-list .country.highlight {
- @apply !bg-emphasis;
-}
-
-.react-tel-input .flag-dropdown .selected-flag,
-.react-tel-input .flag-dropdown.open .selected-flag {
- @apply !bg-default;
-}
-
-.react-tel-input .flag-dropdown {
- @apply !border-r-default left-0.5 !border-y-0 !border-l-0;
-}
-
-@import "../../web/styles/tokens.css";
-
-@layer base {
- * {
- @apply border-default
- }
-}
-
-::-moz-selection {
- color: var(--cal-brand-text);
- background: var(--cal-brand);
-}
-
-::selection {
- color: var(--cal-brand-text);
- background: var(--cal-brand);
-}
-
-body  {
- text-rendering: optimizeLegibility;
- -webkit-font-smoothing: antialiased;
-}
-
-/*
- Desktop App specific CSS
- https://docs.todesktop.com/
-*/
-
-html.todesktop-platform-win32 .todesktop\:\!bg-transparent{
- background: inherit !important;
-}
-
-/* disable user selection on buttons, links and images on desktop app */
-html.todesktop button,
-html.todesktop a,
-html.todesktop img,
-html.todesktop header {
- -webkit-touch-callout: none;
- -webkit-user-select: none;
- -khtml-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- cursor: default !important;
-}
-
-html.todesktop,
-html.todesktop div {
- cursor: default !important;
-}
-
-/* make header draggable on desktop app */
-html.todesktop header {
- -webkit-app-region: drag;
-}
-
-html.todesktop header button,
-html.todesktop header a {
- -webkit-app-region: no-drag;
-}
-
-html.todesktop-platform-darwin body, html.todesktop-platform-darwin aside {
- background: transparent !important;
-}
-
-html.todesktop-platform-darwin.dark main.bg-default {
- background: rgba(0, 0, 0, 0.6) !important;
-}
-
-html.todesktop-platform-darwin.light main.bg-default {
- background: rgba(255, 255, 255, 0.8) !important;
-}
-
-html.todesktop.light {
- --cal-bg-emphasis: hsla(0, 0%, 11%, 0.1);
-}
-
-html.todesktop.dark {
- --cal-bg-emphasis: hsla(220, 2%, 26%, 0.3);
-}
-
-/*
- Adds Utility to hide scrollbar to tailwind
- https://github.com/tailwindlabs/tailwindcss/discussions/2394
- https://github.com/tailwindlabs/tailwindcss/pull/5732
-*/
-@layer utilities {
- /* Chrome, Safari and Opera */
- .no-scrollbar::-webkit-scrollbar {
- display: none;
- }
-
- .no-scrollbar {
- -ms-overflow-style: none; /* IE and Edge */
- scrollbar-width: none; /* Firefox */
- }
-}
-
-/*
- * Override the default tailwindcss-forms styling (default is: 'colors.blue.600')
- * @see: https://github.com/tailwindlabs/tailwindcss-forms/issues/14#issuecomment-1005376006
- */
-[type="text"]:focus,
-[type="email"]:focus,
-[type="url"]:focus,
-[type="password"]:focus,
-[type="number"]:focus,
-[type="date"]:focus,
-[type="datetime-local"]:focus,
-[type="month"]:focus,
-[type="search"]:focus,
-[type="tel"]:focus,
-[type="checkbox"]:focus,
-[type="radio"]:focus,
-[type="time"]:focus,
-[type="week"]:focus,
-[multiple]:focus,
-textarea:focus,
-select:focus {
- --tw-ring-color: var(--brand-color);
- border-color: var(--brand-color);
-}
-
-@layer components {
- .scroll-bar {
- @apply scrollbar-thin scrollbar-thumb-rounded-md dark:scrollbar-thumb-darkgray-300 scrollbar-thumb-gray-300 scrollbar-track-transparent;
- }
-}
-
-/* TODO: avoid global specific css */
-/* button[role="switch"][data-state="checked"] span {
- transform: translateX(16px);
-} */
-
-@layer components {
- /* slider */
- .slider {
- @apply relative flex h-4 w-40 select-none items-center;
- }
-
- .slider > .slider-track {
- @apply relative h-1 flex-grow rounded-md bg-gray-400;
- }
-
- .slider .slider-range {
- @apply absolute h-full rounded-full bg-gray-700;
- }
-
- .slider .slider-thumb {
- @apply block h-3 w-3 cursor-pointer rounded-full bg-gray-700 transition-all;
- }
-
- .slider .slider-thumb:hover {
- @apply bg-gray-600;
- }
-
- .slider .slider-thumb:focus {
- box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.2);
- }
-}
-
-/* hide chat bubble on mobile */
-@media only screen and (max-width: 768px) {
- /* Intercom FAB*/
- #launcher {
- display: none !important;
- }
-
- /* Zendesk FAB*/
- div[role="presentation"] > iframe {
- display: none !important;
- }
-
- /* Helpscout FAB*/
- .BeaconFabButtonFrame {
- margin-left: -30px;
- left: 50%;
- bottom: 28px !important;
- z-index: 1058 !important;
- }
-}
-
-/* TODO: implement styling for react-multi-email */
-
-/* !important to override react-dates */
-.DateRangePickerInput__withBorder {
- border: 0 !important;
-}
-.DateInput_input {
- border: 1px solid #d1d5db !important;
- border-radius: 2px !important;
- font-size: inherit !important;
- font-weight: inherit !important;
- color: #000;
- padding: 11px ​11px 9px !important;
- line-height: 16px !important;
-}
-
-.DateInput_input__focused {
- border: 2px solid #000 !important;
- border-radius: 2px !important;
- box-shadow: none !important;
- padding: 10px ​10px 9px !important;
-}
-
-.DateRangePickerInput_arrow {
- padding: 0px 10px;
-}
-
-.loader {
- display: block;
- width: 30px;
- height: 30px;
- margin: 60px auto;
- position: relative;
- border-width: 4px;
- border-style: solid;
- animation: loader 2s infinite ease;
-}
-
-.loader-inner {
- vertical-align: top;
- display: inline-block;
- width: 100%;
- animation: loader-inner 2s infinite ease-in;
-}
-
-.no-ring-inset {
- --tw-ring-inset: unset;
-}
-
-@keyframes loader {
- 0% {
- transform: rotate(0deg);
- }
-
- 25% {
- transform: rotate(180deg);
- }
-
- 50% {
- transform: rotate(180deg);
- }
-
- 75% {
- transform: rotate(360deg);
- }
-
- 100% {
- transform: rotate(360deg);
- }
-}
-
-@keyframes loader-inner {
- 0% {
- height: 0%;
- }
-
- 25% {
- height: 0%;
- }
-
- 50% {
- height: 100%;
- }
-
- 75% {
- height: 100%;
- }
-
- 100% {
- height: 0%;
- }
-}
-
-.text-inverted-important {
- color: white !important;
-}
-
-@layer utilities {
- .transition-max-width {
- -webkit-transition-property: max-width;
- transition-property: max-width;
- }
-}
-
-#timeZone input:focus {
- box-shadow: none;
-}
-
-/* react-date-picker forces a border upon us, cast it away */
-.react-date-picker__wrapper {
- border: none !important;
-}
-
-.react-date-picker__inputGroup__input {
- padding-top: 0;
- padding-bottom: 0;
-}
-
-/* animations */
-.slideInBottom {
- animation-duration: 0.3s;
- animation-fill-mode: both;
- animation-name: slideInBottom;
-}
-
-@keyframes slideInBottom {
- from {
- opacity: 0;
- transform: translateY(30%);
- pointer-events: none;
- }
- to {
- opacity: 1;
- pointer-events: auto;
- }
-}
-
-/* animations */
-.slideInTop {
- animation-duration: 0.3s;
- animation-fill-mode: both;
- animation-name: slideInTop;
-}
-
-@keyframes slideInTop {
- from {
- opacity: 0;
- transform: translateY(-20%);
- pointer-events: none;
- }
- to {
- opacity: 1;
- pointer-events: auto;
- transform: translateY(0%);
- }
-}
-
-.fadeIn {
- animation-duration: 0.3s;
- animation-fill-mode: both;
- animation-name: fadeIn;
- animation-timing-function: ease-in-out;
-}
-
-@keyframes fadeIn {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
-}
-
-/**
- * Makes sure h-screen works on mobile Safari. By default h-screen
- * does not take into account the height of the address bar, causing
- * weird behaviour when scrolling — sometimes the height will be correct
- * and sometimes it won't, depending on whether the address bar is
- * in 'collapsed' state or not.
- * @see: https://benborgers.com/posts/tailwind-h-screen
- */
-@supports (-webkit-touch-callout: none) {
- .h-screen {
- height: -webkit-fill-available;
- }
-}
-
-::-webkit-search-cancel-button {
- -webkit-appearance: none;
-}
-
-.react-tel-input .country-list .country:hover,
-.react-tel-input .country-list .country.highlight {
- @apply !bg-emphasis;
-}
-
-.react-tel-input .flag-dropdown .selected-flag,
-.react-tel-input .flag-dropdown.open .selected-flag {
- @apply !bg-default;
-}
-
-.react-tel-input .flag-dropdown {
- @apply !border-r-default left-0.5 !border-y-0 !border-l-0;
-}
-
-.prose :where(a:not([data-card])):not(:where([class~="not-prose"] *)) {
- text-decoration: none;
-}
diff --git a/apps/ui-playground/app/layout.config.tsx b/apps/ui-playground/app/layout.config.tsx
deleted file mode 100644
index 4426a6bf606..00000000000
--- a/apps/ui-playground/app/layout.config.tsx
+++ /dev/null
@@ -1,26 +0,0 @@
-import type { HomeLayoutProps } from "fumadocs-ui/layouts/home";
-
-/**
- * Shared layout configurations
- *
- * you can configure layouts individually from:
- * Home Layout: app/(home)/layout.tsx
- * Docs Layout: app/docs/layout.tsx
- */
-export const baseOptions: HomeLayoutProps = {
- nav: {
- title: "Cal.com",
- },
- githubUrl: "https://github.com/calcom/cal.com",
- links: [
- {
- text: "Design",
- url: "/design",
- active: "nested-url",
- },
- {
- text: "GitHub",
- url: "https://github.com/calcom/cal.com",
- },
- ],
-};
diff --git a/apps/ui-playground/app/layout.tsx b/apps/ui-playground/app/layout.tsx
deleted file mode 100644
index e7dbf4ab507..00000000000
--- a/apps/ui-playground/app/layout.tsx
+++ /dev/null
@@ -1,36 +0,0 @@
-import { RootProvider } from "fumadocs-ui/provider";
-import type { Metadata } from "next";
-import { Inter } from "next/font/google";
-
-import "./global.css";
-
-const inter = Inter({
- variable: "--font-inter",
- subsets: ["latin"],
-});
-
-export const metadata: Metadata = {
- title: "Create Next App",
- description: "Generated by create next app",
-};
-
-export default function RootLayout({
- children,
-}: Readonly<{
- children: React.ReactNode;
-}>) {
- return (
- <html lang="en">
- <head>
- <style>{`
- :root {
- --font-inter: ${inter.style.fontFamily.replace(/\'/g, "")};
- }
- `}</style>
- </head>
- <body className={`${inter.variable} antialiased`}>
- <RootProvider>{children}</RootProvider>
- </body>
- </html>
- );
-}
diff --git a/apps/ui-playground/app/source.ts b/apps/ui-playground/app/source.ts
deleted file mode 100644
index ac2303ab9d7..00000000000
--- a/apps/ui-playground/app/source.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-import { components, docs, meta } from "@/.source";
-import { loader } from "fumadocs-core/source";
-import { createMDXSource } from "fumadocs-mdx";
-
-export const source = loader({
- baseUrl: "/docs",
- source: createMDXSource(docs, meta),
-});
-
-export const componentSource = loader({
- baseUrl: "/design",
- source: createMDXSource(components, []),
-});
diff --git a/apps/ui-playground/components/MDXLayout.tsx b/apps/ui-playground/components/MDXLayout.tsx
deleted file mode 100644
index 260e668812c..00000000000
--- a/apps/ui-playground/components/MDXLayout.tsx
+++ /dev/null
@@ -1,19 +0,0 @@
-import { Toaster } from "react-hot-toast";
-
-import { Status } from "./Status";
-
-export function MDXLayout({ children, frontmatter }: { children: React.ReactNode; frontmatter: any }) {
- return (
- <div className="prose max-w-none">
- <Toaster />
- {frontmatter.airtableId && (
- <Status
- airtableId={frontmatter.airtableId}
- designStatus={frontmatter.designStatus}
- devStatus={frontmatter.devStatus}
- />
- )}
- {children}
- </div>
- );
-}
diff --git a/apps/ui-playground/components/ui/BorderRadiusTable.tsx b/apps/ui-playground/components/ui/BorderRadiusTable.tsx
deleted file mode 100644
index e22df848abb..00000000000
--- a/apps/ui-playground/components/ui/BorderRadiusTable.tsx
+++ /dev/null
@@ -1,65 +0,0 @@
-"use client";
-
-import React from "react";
-import { Toaster } from "react-hot-toast";
-
-import { showToast } from "@calcom/ui/components/toast";
-
-interface BorderRadiusToken {
- name: string;
- value: string;
- className: string;
-}
-
-interface BorderRadiusTableProps {
- tokens: BorderRadiusToken[];
-}
-
-const tokens: BorderRadiusToken[] = [
- { name: "None", value: "0px", className: "rounded-none" },
- { name: "Small", value: "0.125rem", className: "rounded-sm" },
- { name: "Default", value: "0.25rem", className: "rounded" },
- { name: "Medium", value: "0.375rem", className: "rounded-md" },
- { name: "Large", value: "0.5rem", className: "rounded-lg" },
- { name: "XLarge", value: "0.75rem", className: "rounded-xl" },
- { name: "2XLarge", value: "1rem", className: "rounded-2xl" },
- { name: "3XLarge", value: "1.5rem", className: "rounded-3xl" },
- { name: "Full", value: "9999px", className: "rounded-full" },
-];
-
-export const BorderRadiusTable: React.FC<BorderRadiusTableProps> = () => {
- const handleCopy = async (value: string) => {
- try {
- await navigator.clipboard.writeText(value);
- showToast(`Copied ${value}`, "success");
- } catch (error) {
- console.error("Failed to copy:", error);
- showToast("Failed to copy", "error");
- }
- };
-
- return (
- <>
- <Toaster position="bottom-right" />
- <div className="grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3">
- {tokens.map((token) => (
- <div
- key={token.name}
- onClick={() => handleCopy(token.className)}
- className="border-subtle bg-default hover:bg-subtle group relative cursor-pointer overflow-hidden rounded-lg border p-4">
- <div className="space-y-3">
- <div className="flex items-center justify-between">
- <div>
- <p className="text-emphasis text-sm font-medium">{token.name}</p>
- <p className="text-subtle mt-1 text-xs">{token.className}</p>
- </div>
- <p className="text-subtle text-sm">{token.value}</p>
- </div>
- <div className={`bg-emphasis h-16 w-full ${token.className}`} />
- </div>
- </div>
- ))}
- </div>
- </>
- );
-};
diff --git a/apps/ui-playground/components/ui/IconGrid.tsx b/apps/ui-playground/components/ui/IconGrid.tsx
deleted file mode 100644
index 8ead4d51a12..00000000000
--- a/apps/ui-playground/components/ui/IconGrid.tsx
+++ /dev/null
@@ -1,372 +0,0 @@
-"use client";
-
-import React, { useState, useMemo } from "react";
-import { Toaster } from "react-hot-toast";
-
-import { Icon } from "@calcom/ui/components/icon";
-import { showToast } from "@calcom/ui/components/toast";
-
-type IconName =
- | "activity"
- | "arrow-down"
- | "arrow-left"
- | "arrow-right"
- | "arrow-up-right"
- | "arrow-up"
- | "asterisk"
- | "at-sign"
- | "atom"
- | "badge-check"
- | "ban"
- | "bell"
- | "binary"
- | "blocks"
- | "bold"
- | "book"
- | "book-open-check"
- | "book-open"
- | "book-user"
- | "building"
- | "calendar-check-2"
- | "calendar-days"
- | "calendar-heart"
- | "calendar-range"
- | "calendar-search"
- | "calendar-x-2"
- | "calendar"
- | "chart-bar"
- | "chart-line"
- | "check-check"
- | "check"
- | "chevron-down"
- | "chevron-left"
- | "chevron-right"
- | "chevron-up"
- | "chevrons-down-up"
- | "chevrons-left"
- | "chevrons-right"
- | "chevrons-up-down"
- | "circle-alert"
- | "circle-arrow-up"
- | "circle-check-big"
- | "circle-check"
- | "circle-help"
- | "circle-x"
- | "circle"
- | "clipboard-check"
- | "clipboard"
- | "clock"
- | "code"
- | "columns-3"
- | "command"
- | "contact"
- | "copy"
- | "corner-down-left"
- | "corner-down-right"
- | "credit-card"
- | "disc"
- | "dot"
- | "download"
- | "ellipsis-vertical"
- | "ellipsis"
- | "external-link"
- | "eye-off"
- | "eye"
- | "file-down"
- | "file-text"
- | "file"
- | "filter"
- | "fingerprint"
- | "flag"
- | "folder"
- | "gift"
- | "git-merge"
- | "github"
- | "globe"
- | "grid-3x3"
- | "handshake"
- | "info"
- | "italic"
- | "key"
- | "layers"
- | "layout-dashboard"
- | "link-2"
- | "link"
- | "loader"
- | "lock-open"
- | "lock"
- | "log-out"
- | "mail-open"
- | "mail"
- | "map-pin"
- | "map"
- | "menu"
- | "message-circle"
- | "messages-square"
- | "moon"
- | "paintbrush"
- | "paperclip"
- | "pencil"
- | "phone-call"
- | "phone"
- | "plus"
- | "refresh-ccw"
- | "refresh-cw"
- | "repeat"
- | "rocket"
- | "rotate-ccw"
- | "rotate-cw"
- | "search"
- | "send"
- | "settings"
- | "share-2"
- | "shield-check"
- | "shield"
- | "shuffle"
- | "sliders-horizontal"
- | "sliders-vertical"
- | "smartphone"
- | "sparkles"
- | "square-check"
- | "star"
- | "sun"
- | "sunrise"
- | "sunset"
- | "tags"
- | "terminal"
- | "trash-2"
- | "trash"
- | "trello"
- | "triangle-alert"
- | "upload"
- | "user-check"
- | "user-plus"
- | "user-x"
- | "user"
- | "users"
- | "venetian-mask"
- | "video"
- | "waypoints"
- | "webhook"
- | "x"
- | "zap";
-
-interface IconGridProps {
- className?: string;
-}
-
-interface CopyMenuProps {
- name: IconName;
- onCopy: (format: string) => void;
-}
-
-const CopyMenu: React.FC<CopyMenuProps> = ({ name, onCopy }) => {
- return (
- <div className="absolute inset-2 flex items-center justify-center bg-black/10 opacity-0 transition-opacity group-hover:opacity-100">
- <div className="bg-default space-y-1 rounded-md p-2 shadow-lg">
- <button
- onClick={() => onCopy(`<Icon name="${name}" className="h-4 w-4" />`)}
- className="hover:bg-subtle w-full rounded px-3 py-1 text-left text-sm">
- Copy Component
- </button>
- </div>
- </div>
- );
-};
-
-export const IconGrid: React.FC<IconGridProps> = ({ className }) => {
- const [searchQuery, setSearchQuery] = useState("");
-
- const handleCopy = async (value: string) => {
- try {
- await navigator.clipboard.writeText(value);
- showToast(`Copied ${value}`, "success");
- } catch (error) {
- console.error("Failed to copy:", error);
- showToast("Failed to copy", "error");
- }
- };
-
- const icons: IconName[] = [
- "activity",
- "arrow-down",
- "arrow-left",
- "arrow-right",
- "arrow-up-right",
- "arrow-up",
- "asterisk",
- "at-sign",
- "atom",
- "badge-check",
- "ban",
- "bell",
- "binary",
- "blocks",
- "bold",
- "book-open-check",
- "book-open",
- "book-user",
- "building",
- "calendar-check-2",
- "calendar-days",
- "calendar-heart",
- "calendar-range",
- "calendar-search",
- "calendar-x-2",
- "calendar",
- "chart-bar",
- "chart-line",
- "check-check",
- "check",
- "chevron-down",
- "chevron-left",
- "chevron-right",
- "chevron-up",
- "chevrons-down-up",
- "chevrons-left",
- "chevrons-right",
- "chevrons-up-down",
- "circle-alert",
- "circle-arrow-up",
- "circle-check-big",
- "circle-check",
- "circle-help",
- "circle-x",
- "circle",
- "clipboard-check",
- "clipboard",
- "clock",
- "code",
- "columns-3",
- "command",
- "contact",
- "copy",
- "corner-down-left",
- "corner-down-right",
- "credit-card",
- "disc",
- "dot",
- "download",
- "ellipsis-vertical",
- "ellipsis",
- "external-link",
- "eye-off",
- "eye",
- "file-down",
- "file-text",
- "file",
- "filter",
- "fingerprint",
- "flag",
- "folder",
- "gift",
- "git-merge",
- "github",
- "globe",
- "grid-3x3",
- "handshake",
- "info",
- "italic",
- "key",
- "layers",
- "layout-dashboard",
- "link-2",
- "link",
- "loader",
- "lock-open",
- "lock",
- "log-out",
- "mail-open",
- "mail",
- "map-pin",
- "map",
- "menu",
- "message-circle",
- "messages-square",
- "moon",
- "paintbrush",
- "paperclip",
- "pencil",
- "phone-call",
- "phone",
- "plus",
- "refresh-ccw",
- "refresh-cw",
- "repeat",
- "rocket",
- "rotate-ccw",
- "rotate-cw",
- "search",
- "send",
- "settings",
- "share-2",
- "shield-check",
- "shield",
- "shuffle",
- "sliders-horizontal",
- "sliders-vertical",
- "smartphone",
- "sparkles",
- "square-check",
- "star",
- "sun",
- "sunrise",
- "sunset",
- "tags",
- "terminal",
- "trash-2",
- "trash",
- "trello",
- "triangle-alert",
- "upload",
- "user-check",
- "user-plus",
- "user-x",
- "user",
- "users",
- "venetian-mask",
- "video",
- "waypoints",
- "webhook",
- "x",
- "zap",
- ];
-
- const filteredIcons = useMemo(() => {
- if (!searchQuery) return icons;
- const query = searchQuery.toLowerCase();
- return icons.filter((icon) => icon.toLowerCase().includes(query));
- }, [searchQuery]);
-
- return (
- <>
- <Toaster position="bottom-right" />
- <div className={className}>
- <div className="mb-8">
- <input
- type="text"
- placeholder="Search icons..."
- value={searchQuery}
- onChange={(e) => setSearchQuery(e.target.value)}
- className="border-subtle bg-default text-emphasis focus:ring-emphasis placeholder:text-subtle w-full rounded-md border px-4 py-2 focus:outline-none focus:ring-2"
- />
- </div>
- <div className="grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6">
- {filteredIcons.map((iconName) => (
- <div
- key={iconName}
- className="border-subtle bg-default group relative overflow-hidden rounded-lg border p-4">
- <div className="flex flex-col items-center space-y-2">
- <div className="bg-subtle flex h-12 w-12 items-center justify-center rounded-md">
- <Icon name={iconName} className="text-emphasis h-6 w-6" />
- </div>
- <p className="text-emphasis text-center text-sm">{iconName}</p>
- </div>
- <CopyMenu name={iconName} onCopy={handleCopy} />
- </div>
- ))}
- </div>
- </div>
- </>
- );
-};
diff --git a/apps/ui-playground/components/ui/ShadowTable.tsx b/apps/ui-playground/components/ui/ShadowTable.tsx
deleted file mode 100644
index 4443fd0ac01..00000000000
--- a/apps/ui-playground/components/ui/ShadowTable.tsx
+++ /dev/null
@@ -1,126 +0,0 @@
-"use client";
-
-import React from "react";
-import { Toaster } from "react-hot-toast";
-
-import { showToast } from "@calcom/ui/components/toast";
-
-interface ShadowToken {
- name: string;
- className: string;
- description: string;
-}
-
-interface ShadowTableProps {
- tokens: ShadowToken[];
-}
-
-const tokens: ShadowToken[] = [
- {
- name: "Dropdown",
- className: "shadow-dropdown",
- description: "Used for dropdown menus and popovers",
- },
- {
- name: "Solid Gray Rested",
- className: "shadow-solid-gray-rested",
- description: "Default state for solid gray buttons",
- },
- {
- name: "Solid Gray Hover",
- className: "shadow-solid-gray-hover",
- description: "Hover state for solid gray buttons",
- },
- {
- name: "Solid Gray Active",
- className: "shadow-solid-gray-active",
- description: "Active/pressed state for solid gray buttons",
- },
- {
- name: "Outline Gray Rested",
- className: "shadow-outline-gray-rested",
- description: "Default state for outline gray buttons",
- },
- {
- name: "Outline Gray Hover",
- className: "shadow-outline-gray-hover",
- description: "Hover state for outline gray buttons",
- },
- {
- name: "Outline Gray Active",
- className: "shadow-outline-gray-active",
- description: "Active/pressed state for outline gray buttons",
- },
- {
- name: "Outline Red Rested",
- className: "shadow-outline-red-rested",
- description: "Default state for outline red buttons",
- },
- {
- name: "Outline Red Hover",
- className: "shadow-outline-red-hover",
- description: "Hover state for outline red buttons",
- },
- {
- name: "Outline Red Active",
- className: "shadow-outline-red-active",
- description: "Active/pressed state for outline red buttons",
- },
- {
- name: "Elevation Low",
- className: "shadow-elevation-low",
- description: "Subtle elevation for UI elements",
- },
- {
- name: "Button Solid Brand Default",
- className: "shadow-button-solid-brand-default",
- description: "Default state for solid brand buttons",
- },
- {
- name: "Button Solid Brand Hover",
- className: "shadow-button-solid-brand-hover",
- description: "Hover state for solid brand buttons",
- },
- {
- name: "Button Solid Brand Active",
- className: "shadow-button-solid-brand-active",
- description: "Active/pressed state for solid brand buttons",
- },
-];
-
-export const ShadowTable: React.FC<ShadowTableProps> = () => {
- const handleCopy = async (value: string) => {
- try {
- await navigator.clipboard.writeText(value);
- showToast(`Copied ${value}`, "success");
- } catch (error) {
- console.error("Failed to copy:", error);
- showToast("Failed to copy", "error");
- }
- };
-
- return (
- <>
- <Toaster position="bottom-right" />
- <div className="grid grid-cols-1 gap-6 sm:grid-cols-2">
- {tokens.map((token) => (
- <div
- key={token.name}
- onClick={() => handleCopy(token.className)}
- className="group relative cursor-pointer">
- <div
- className={`border-subtle bg-default hover:bg-subtle relative overflow-hidden rounded-lg border p-4 transition-colors ${token.className}`}>
- <div className="space-y-2">
- <div>
- <p className="text-emphasis text-sm font-medium">{token.name}</p>
- <p className="text-subtle mt-1 text-xs">{token.className}</p>
- </div>
- <p className="text-subtle text-sm">{token.description}</p>
- </div>
- </div>
- </div>
- ))}
- </div>
- </>
- );
-};
diff --git a/apps/ui-playground/components/ui/SpacingTable.tsx b/apps/ui-playground/components/ui/SpacingTable.tsx
deleted file mode 100644
index 6d8f296a630..00000000000
--- a/apps/ui-playground/components/ui/SpacingTable.tsx
+++ /dev/null
@@ -1,45 +0,0 @@
-"use client";
-
-import React from "react";
-import { Toaster } from "react-hot-toast";
-
-interface SpacingToken {
- name: string;
- value: string;
- pixels: string;
-}
-
-interface SpacingTableProps {
- tokens: SpacingToken[];
-}
-
-export const SpacingTable: React.FC<SpacingTableProps> = ({ tokens }) => {
- return (
- <>
- <Toaster position="bottom-right" />
- <div className="space-y-6">
- <div className="grid grid-cols-3 gap-4">
- {tokens.map((token, index) => (
- <div
- key={index}
- className="border-subtle bg-default group relative overflow-hidden rounded-lg border">
- <div className="flex items-center gap-4 p-4">
- <div className="w-[100px] space-y-1">
- <p className="text-emphasis text-sm font-medium">
- {token.name === "px" ? "px" : `${token.name} (${token.pixels})`}
- </p>
- </div>
- <div className="bg-subtle relative h-8 rounded">
- <div
- className="absolute left-0 top-1/2 h-2 -translate-y-1/2 bg-red-500"
- style={{ width: token.pixels }}
- />
- </div>
- </div>
- </div>
- ))}
- </div>
- </div>
- </>
- );
-};
diff --git a/apps/ui-playground/components/ui/TypeTable.tsx b/apps/ui-playground/components/ui/TypeTable.tsx
deleted file mode 100644
index f9293e50a84..00000000000
--- a/apps/ui-playground/components/ui/TypeTable.tsx
+++ /dev/null
@@ -1,103 +0,0 @@
-"use client";
-
-import { getColorFormats, copyToClipboard } from "@/lib/colorUtils";
-import React from "react";
-import { Toaster } from "react-hot-toast";
-
-import { showToast } from "@calcom/ui/components/toast";
-
-interface ColorSwatch {
- name: string;
- value: string;
- className: string;
-}
-
-interface ColorSection {
- title: string;
- description?: string;
- colors: ColorSwatch[];
-}
-
-interface TypeTableProps {
- sections: ColorSection[];
-}
-
-interface CopyMenuProps {
- color: string;
- className: string;
- onCopy: (format: string) => void;
-}
-
-const CopyMenu: React.FC<CopyMenuProps> = ({ color, className, onCopy }) => {
- const formats = getColorFormats(color, className);
- if (!formats) return null;
-
- return (
- <div className="absolute inset-2 flex items-center justify-center opacity-0 transition-opacity group-hover:opacity-100">
- <div className="bg-default space-y-1 rounded-md p-2 shadow-lg">
- <button
- onClick={() => onCopy(formats.hex)}
- className="hover:bg-subtle w-full rounded px-3 py-1 text-left text-sm">
- Copy as HEX
- </button>
- <button
- onClick={() => onCopy(formats.rgb)}
- className="hover:bg-subtle w-full rounded px-3 py-1 text-left text-sm">
- Copy as RGB
- </button>
- <button
- onClick={() => onCopy(formats.hsl)}
- className="hover:bg-subtle w-full rounded px-3 py-1 text-left text-sm">
- Copy as HSL
- </button>
- <button
- onClick={() => onCopy(formats.tailwind)}
- className="hover:bg-subtle w-full rounded px-3 py-1 text-left text-sm">
- Copy Tailwind Class
- </button>
- </div>
- </div>
- );
-};
-
-export const TypeTable: React.FC<TypeTableProps> = ({ sections }) => {
- const handleCopy = async (colorValue: string) => {
- try {
- await copyToClipboard(colorValue);
- showToast(`Copied ${colorValue}`, "success");
- } catch (error) {
- console.error("Failed to copy color:", error);
- showToast("Failed to copy color", "error");
- }
- };
-
- return (
- <>
- <Toaster position="bottom-right" />
- <div className="space-y-8">
- {sections.map((section, sectionIndex) => (
- <div key={sectionIndex} className="space-y-4">
- <div>
- <h3 className="text-emphasis text-lg font-semibold">{section.title}</h3>
- {section.description && <p className="text-subtle text-sm">{section.description}</p>}
- </div>
- <div className="grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3">
- {section.colors.map((color, colorIndex) => (
- <div key={colorIndex} className="border-subtle bg-default overflow-hidden rounded-lg border">
- <div className="group relative">
- <div className={`h-36 w-full ${color.className}`} title={color.value} />
- <CopyMenu color={color.value} className={color.className} onCopy={handleCopy} />
- </div>
- <div className="space-y-1 p-2">
- <p className="text-emphasis text-sm font-medium">{color.name}</p>
- <p className="text-subtle text-xs">{color.value}</p>
- </div>
- </div>
- ))}
- </div>
- </div>
- ))}
- </div>
- </>
- );
-};
diff --git a/apps/ui-playground/components/ui/TypographyTable.tsx b/apps/ui-playground/components/ui/TypographyTable.tsx
deleted file mode 100644
index 15b6f5a4561..00000000000
--- a/apps/ui-playground/components/ui/TypographyTable.tsx
+++ /dev/null
@@ -1,109 +0,0 @@
-"use client";
-
-import React from "react";
-import { Toaster } from "react-hot-toast";
-
-import { showToast } from "@calcom/ui/components/toast";
-
-interface TypographyStyle {
- name: string;
- className: string;
- specs: {
- fontFamily: string;
- fontSize: string;
- lineHeight: string;
- weight: string;
- };
- category?: string;
-}
-
-interface TypographySection {
- title: string;
- description?: string;
- styles: TypographyStyle[];
-}
-
-interface TypographyTableProps {
- sections: TypographySection[];
-}
-
-interface CopyMenuProps {
- style: TypographyStyle;
- onCopy: (format: string) => void;
-}
-
-const CopyMenu: React.FC<CopyMenuProps> = ({ style, onCopy }) => {
- return (
- <div className="absolute inset-2 flex items-center justify-center bg-black/10 opacity-0 transition-opacity group-hover:opacity-100">
- <div className="bg-default space-y-1 rounded-md p-2 shadow-lg">
- <button
- onClick={() => onCopy(style.className)}
- className="hover:bg-subtle w-full rounded px-3 py-1 text-left text-sm">
- Copy Tailwind Class
- </button>
- <button
- onClick={() =>
- onCopy(`font-family: ${style.specs.fontFamily};
-font-size: ${style.specs.fontSize}px;
-line-height: ${style.specs.lineHeight};
-font-weight: ${style.specs.weight};`)
- }
- className="hover:bg-subtle w-full rounded px-3 py-1 text-left text-sm">
- Copy CSS
- </button>
- </div>
- </div>
- );
-};
-
-export const TypographyTable: React.FC<TypographyTableProps> = ({ sections }) => {
- const handleCopy = async (value: string) => {
- try {
- await navigator.clipboard.writeText(value);
- showToast(`Copied to clipboard`, "success");
- } catch (error) {
- console.error("Failed to copy:", error);
- showToast("Failed to copy", "error");
- }
- };
-
- return (
- <>
- <Toaster position="bottom-right" />
- <div className="space-y-12">
- {sections.map((section, sectionIndex) => (
- <div key={sectionIndex} className="space-y-6">
- <div>
- <h3 className="text-emphasis text-2xl font-semibold">{section.title}</h3>
- {section.description && <p className="text-subtle mt-2 text-base">{section.description}</p>}
- </div>
- <div className="grid gap-6">
- {section.styles.map((style, styleIndex) => (
- <div
- key={styleIndex}
- className="border-subtle bg-default group relative overflow-hidden rounded-lg border p-6">
- <div className="flex items-start justify-between">
- <div className="space-y-4">
- <div>
- <p className="text-emphasis text-sm font-medium">{style.name}</p>
- <p className="text-subtle mt-1 text-xs">{style.className}</p>
- </div>
- <div className={style.className}>The quick brown fox jumps over the lazy dog</div>
- </div>
- <div className="text-subtle space-y-2 text-sm">
- <p>Font: {style.specs.fontFamily}</p>
- <p>Size: {style.specs.fontSize}px</p>
- <p>Line Height: {style.specs.lineHeight}</p>
- <p>Weight: {style.specs.weight}</p>
- </div>
- </div>
- <CopyMenu style={style} onCopy={handleCopy} />
- </div>
- ))}
- </div>
- </div>
- ))}
- </div>
- </>
- );
-};
diff --git a/apps/ui-playground/content/design/border-radius.mdx b/apps/ui-playground/content/design/border-radius.mdx
deleted file mode 100644
index 804233da3f9..00000000000
--- a/apps/ui-playground/content/design/border-radius.mdx
+++ /dev/null
@@ -1,32 +0,0 @@
----
-title: Border Radius
-description: Cal.com's border radius system
----
-
-import { BorderRadiusTable } from '@/components/ui/BorderRadiusTable';
-
-# Border Radius
-
-Our design system uses a consistent set of border radius values to create a cohesive and modern interface. The border radius scale ranges from none (sharp corners) to full (completely rounded).
-
-## Usage
-
-```tsx
-// No border radius
-<div className="rounded-none">Sharp corners</div>
-
-// Default radius
-<div className="rounded">Default rounded corners</div>
-
-// Larger radius
-<div className="rounded-lg">Larger rounded corners</div>
-
-// Fully rounded (useful for pills, badges)
-<div className="rounded-full">Completely rounded</div>
-```
-
-## Border Radius Scale
-
-Click on any radius to copy its Tailwind class name. Each preview shows how the radius appears when applied.
-
-<BorderRadiusTable />
diff --git a/apps/ui-playground/content/design/colors.mdx b/apps/ui-playground/content/design/colors.mdx
deleted file mode 100644
index d751b7f121a..00000000000
--- a/apps/ui-playground/content/design/colors.mdx
+++ /dev/null
@@ -1,144 +0,0 @@
----
-title: Colors
-description: Cal.com Color System Documentation
----
-
-import { TypeTable } from '@/components/ui/TypeTable';
-
-export const backgroundTokens = {
- title: 'Background Tokens',
- colors: [
- { name: 'emphasis', value: 'var(--cal-bg-emphasis)', className: 'bg-emphasis' },
- { name: 'default', value: 'var(--cal-bg, white)', className: 'bg-default' },
- { name: 'subtle', value: 'var(--cal-bg-subtle)', className: 'bg-subtle' },
- { name: 'muted', value: 'var(--cal-bg-muted)', className: 'bg-muted' },
- { name: 'inverted', value: 'var(--cal-bg-inverted)', className: 'bg-inverted' },
- ],
-};
-
-export const primaryBackgroundTokens = {
- title: 'Primary Background Tokens',
- colors: [
- { name: 'primary.default', value: 'var(--cal-bg-primary)', className: 'bg-primary-default' },
- { name: 'primary.emphasis', value: 'var(--cal-bg-primary-emphasis)', className: 'bg-primary-emphasis' },
- { name: 'primary.muted', value: 'var(--cal-bg-primary-muted)', className: 'bg-primary-muted' },
- ],
-};
-
-export const brandTokens = {
- title: 'Brand Colors',
- colors: [
- { name: 'brand.default', value: 'var(--cal-brand,#111827)', className: 'bg-brand-default' },
- { name: 'brand.emphasis', value: 'var(--cal-brand-emphasis,#101010)', className: 'bg-brand-emphasis' },
- { name: 'brand.subtle', value: 'var(--cal-brand-subtle,#9CA3AF)', className: 'bg-brand-subtle' },
- { name: 'brand.accent', value: 'var(--cal-brand-accent,white)', className: 'bg-brand-accent' },
- ],
-};
-
-export const semanticBackgroundTokens = {
- title: 'Semantic Background Tokens',
- colors: [
- { name: 'semantic.info.subtle', value: 'var(--cal-bg-semantic-info-subtle)', className: 'bg-semantic-info-subtle' },
- { name: 'semantic.info.emphasis', value: 'var(--cal-bg-semantic-info-emphasis)', className: 'bg-semantic-info-emphasis' },
- { name: 'semantic.success.subtle', value: 'var(--cal-bg-semantic-success-subtle)', className: 'bg-semantic-success-subtle' },
- { name: 'semantic.success.emphasis', value: 'var(--cal-bg-semantic-success-emphasis)', className: 'bg-semantic-success-emphasis' },
- { name: 'semantic.attention.subtle', value: 'var(--cal-bg-semantic-attention-subtle)', className: 'bg-semantic-attention-subtle' },
- { name: 'semantic.attention.emphasis', value: 'var(--cal-bg-semantic-attention-emphasis)', className: 'bg-semantic-attention-emphasis' },
- { name: 'semantic.error.subtle', value: 'var(--cal-bg-semantic-error-subtle)', className: 'bg-semantic-error-subtle' },
- { name: 'semantic.error.emphasis', value: 'var(--cal-bg-semantic-error-emphasis)', className: 'bg-semantic-error-emphasis' },
- ],
-};
-
-export const borderTokens = {
- title: 'Border Tokens',
- colors: [
- { name: 'border.emphasis', value: 'var(--cal-border-emphasis)', className: 'border-emphasis' },
- { name: 'border.default', value: 'var(--cal-border)', className: 'border-default' },
- { name: 'border.subtle', value: 'var(--cal-border-subtle)', className: 'border-subtle' },
- { name: 'border.muted', value: 'var(--cal-border-muted)', className: 'border-muted' },
- { name: 'border.semantic.error', value: 'var(--cal-border-semantic-error)', className: 'border-semantic-error' },
- ],
-};
-
-export const textTokens = {
- title: 'Text Tokens',
- description: 'Semantic text colors for various purposes',
- colors: [
- { name: 'text.emphasis', value: 'var(--cal-text-emphasis)', className: 'text-emphasis' },
- { name: 'text.default', value: 'var(--cal-text)', className: 'text-default' },
- { name: 'text.subtle', value: 'var(--cal-text-subtle)', className: 'text-subtle' },
- { name: 'text.muted', value: 'var(--cal-text-muted)', className: 'text-muted' },
- { name: 'text.inverted', value: 'var(--cal-text-inverted)', className: 'text-inverted' },
- ],
-};
-
-# Color System
-
-Our color system is built on semantic tokens that provide consistent theming across light and dark modes. The system is organized into five main categories:
-
-1. Background Colors
-2. Primary Colors
-3. Brand Colors
-4. Semantic Colors
-5. Text & Border Colors
-
-## Usage Guidelines
-
-1. **Use Semantic Tokens**: Always prefer semantic tokens over direct color values to maintain consistency and theme support.
-2. **Dark Mode Support**: Our semantic tokens automatically handle dark mode transitions.
-3. **Component Design**: When creating new components, follow the semantic token system:
- - Use `bg-*` tokens for backgrounds
- - Use `text-*` tokens for text content
- - Use `border-*` tokens for borders
-4. **Semantic States**: Use semantic color variations to convey meaning:
- - Info: For informational UI elements
- - Success: For successful actions and positive states
- - Attention: For warnings and important notices
- - Error: For error states and destructive actions
-5. **Brand Colors**: Use brand colors sparingly and primarily for:
- - Primary CTAs
- - Brand identity elements
- - Key interactive components
-
-
-## Using Semantic Tokens
-
-Our color tokens are CSS variables that automatically handle light and dark mode transitions. Here's how to use them:
-
-### Background Colors
-```tsx
-// Basic backgrounds
-<div className="bg-default">Default background</div>
-<div className="bg-subtle">Subtle background</div>
-<div className="bg-emphasis">Emphasis background</div>
-
-// Primary backgrounds
-<div className="bg-primary-default">Primary background</div>
-<div className="bg-primary-emphasis">Primary emphasis</div>
-```
-
-### Semantic Colors
-```tsx
-// Info states
-<div className="bg-semantic-info-subtle">Info subtle</div>
-<div className="bg-semantic-info-emphasis">Info emphasis</div>
-
-// Success states
-<div className="bg-semantic-success-subtle">Success subtle</div>
-<div className="bg-semantic-success-emphasis">Success emphasis</div>
-
-// Error states
-<div className="bg-semantic-error-subtle">Error subtle</div>
-<div className="bg-semantic-error-emphasis">Error emphasis</div>
-```
-
-### Text Colors
-```tsx
-<p className="text-emphasis">High emphasis text</p>
-<p className="text-default">Default text</p>
-<p className="text-subtle">Subtle text</p>
-<p className="text-muted">Muted text</p>
-```
-
-<TypeTable sections={[backgroundTokens, primaryBackgroundTokens, brandTokens, semanticBackgroundTokens, borderTokens, textTokens]} />
-
diff --git a/apps/ui-playground/content/design/components/MultiInputField.mdx b/apps/ui-playground/content/design/components/MultiInputField.mdx
deleted file mode 100644
index e97a237c5e3..00000000000
--- a/apps/ui-playground/content/design/components/MultiInputField.mdx
+++ /dev/null
@@ -1,106 +0,0 @@
----
-title: MultiOptionInput
----
-import { MultiOptionInput } from "@calcom/ui/components/form"
-import { RenderComponentWithSnippet } from "@/app/components/render"
-import { Row } from "@/app/components/row"
-import { StatesExample } from "./multiInputField.states"
-import { PasteExample } from "./multiInputField.paste"
-import { CustomizationExample } from "./multiInputField.customization"
-
-## Overview
-
-The MultiOptionInput component is a flexible form input that allows users to manage a list of options with features like:
-- Adding and removing options
-- Reordering options with move up/down buttons
-- Pasting multiple options with configurable delimiters
-- Minimum options requirement
-- Customizable placeholders and labels
-- Key-value pair mode for environment variables, configuration settings, etc.
-
-## States
-
-MultiOptionInput in different states: default, disabled, and with minimum options.
-
-<StatesExample/>
-
-## Paste Support
-
-Demonstrates the paste functionality with different delimiters. Users can paste comma-separated values, newline-separated values, or use custom delimiters.
-
-In key-value mode, the component can also parse key-value pairs from pasted text. For example:
-- `KEY=value`
-- `NODE_ENV:production`
-
-<PasteExample/>
-
-## Customization
-
-Examples of different customization options like placeholders, move buttons, remove buttons, and key-value pairs.
-
-<CustomizationExample/>
-
-## Usage
-
-### Standard Options
-
-```tsx
-import { MultiOptionInput } from "@calcom/ui/components/form/inputs/MultiOptionInput";
-import { useForm, FormProvider } from "react-hook-form";
-
-type FormValues = {
- options: Array<{ label: string; id: string }>;
-};
-
-const MyForm = () => {
- const methods = useForm<FormValues>();
-
- return (
- <FormProvider {...methods}>
- <form>
- <MultiOptionInput<FormValues>
- fieldArrayName="options"
- optionPlaceholders={["Option 1", "Option 2"]}
- defaultNumberOfOptions={2}
- pasteDelimiters={["\n", ","]} // Optional
- showMoveButtons={true} // Optional
- minOptions={1} // Optional
- addOptionLabel="Add another option" // Optional
- />
- </form>
- </FormProvider>
- );
-};
-```
-
-### Key-Value Pairs
-
-```tsx
-import { MultiOptionInput } from "@calcom/ui/components/form/inputs/MultiOptionInput";
-import { useForm, FormProvider } from "react-hook-form";
-
-type FormValues = {
- envVars: Array<{ label: string; value: string; id: string }>;
-};
-
-const EnvVarsForm = () => {
- const methods = useForm<FormValues>();
-
- return (
- <FormProvider {...methods}>
- <form>
- <MultiOptionInput<FormValues>
- fieldArrayName="envVars"
- keyValueMode={true}
- keyLabel="Environment Variable"
- valueLabel="Value"
- optionPlaceholders={["NODE_ENV", "PORT"]}
- valuePlaceholders={["production", "3000"]}
- keyValueDelimiters={[":", "="]} // Optional, defaults to [":", "="]
- defaultNumberOfOptions={2}
- />
- </form>
- </FormProvider>
- );
-};
-```
diff --git a/apps/ui-playground/content/design/components/alert.actions.tsx b/apps/ui-playground/content/design/components/alert.actions.tsx
deleted file mode 100644
index 28e3877c8a8..00000000000
--- a/apps/ui-playground/content/design/components/alert.actions.tsx
+++ /dev/null
@@ -1,28 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { Alert } from "@calcom/ui/components/alert";
-
-const severities = ["neutral", "info", "warning", "error"] as const;
-
-export const ActionsExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="no-prose space-y-4">
- {severities.map((severity) => (
- <Alert
- key={severity}
- severity={severity}
- title={`${severity.charAt(0).toUpperCase() + severity.slice(1)} Alert with Actions`}
- message={`This is a ${severity} alert with action buttons.`}
- actions={
- <div className="flex space-x-2">
- <button className="rounded-md px-3 py-2 text-sm font-medium hover:opacity-90">Dismiss</button>
- <button className="rounded-md px-3 py-2 text-sm font-medium hover:opacity-90">View</button>
- </div>
- }
- />
- ))}
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/alert.basic.tsx b/apps/ui-playground/content/design/components/alert.basic.tsx
deleted file mode 100644
index b42cffd50bf..00000000000
--- a/apps/ui-playground/content/design/components/alert.basic.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { Alert } from "@calcom/ui/components/alert";
-
-const severities = ["neutral", "info", "warning", "error"] as const;
-
-export const BasicExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="not-prose space-y-4">
- {severities.map((severity) => (
- <Alert
- key={severity}
- severity={severity}
- title={`${severity.charAt(0).toUpperCase() + severity.slice(1)} Alert`}
- message={`This is a ${severity} alert message to show important information to users.`}
- />
- ))}
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/alert.customIconColor.tsx b/apps/ui-playground/content/design/components/alert.customIconColor.tsx
deleted file mode 100644
index efddf9c22bb..00000000000
--- a/apps/ui-playground/content/design/components/alert.customIconColor.tsx
+++ /dev/null
@@ -1,24 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { Alert } from "@calcom/ui/components/alert";
-
-const severities = ["neutral", "info", "warning", "error"] as const;
-
-export const CustomIconColorExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="not-prose space-y-4">
- {severities.map((severity) => (
- <Alert
- key={severity}
- severity={severity}
- CustomIcon="bell"
- customIconColor="text-emphasis"
- title={`${severity.charAt(0).toUpperCase() + severity.slice(1)} Alert with Custom Icon Color`}
- message="This alert uses a custom icon color."
- />
- ))}
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/alert.customIcons.tsx b/apps/ui-playground/content/design/components/alert.customIcons.tsx
deleted file mode 100644
index 1819b0dce3c..00000000000
--- a/apps/ui-playground/content/design/components/alert.customIcons.tsx
+++ /dev/null
@@ -1,25 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { Alert } from "@calcom/ui/components/alert";
-
-const severities = ["neutral", "info", "warning", "error"] as const;
-const customIcons = ["info", "alert-triangle", "circle-x", "circle-check", "bell"] as const;
-
-export const CustomIconsExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="not-prose space-y-4">
- {severities.map((severity, index) => (
- <Alert
- key={severity}
- severity={severity}
- // @ts-expect-error Didnt type this as IconName for CustomIcon
- CustomIcon={customIcons[index % customIcons.length]}
- title={`${severity.charAt(0).toUpperCase() + severity.slice(1)} Alert with Custom Icon`}
- message="This alert uses a custom icon instead of the default one."
- />
- ))}
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/alert.mdx b/apps/ui-playground/content/design/components/alert.mdx
deleted file mode 100644
index b5956e59dab..00000000000
--- a/apps/ui-playground/content/design/components/alert.mdx
+++ /dev/null
@@ -1,42 +0,0 @@
----
-title: Alert
-airtableId: recnvwaXqOucqLo9Y
----
-import { Alert } from "@calcom/ui/components/alert"
-import { RenderComponentWithSnippet } from "@/app/components/render"
-import { Row } from "@/app/components/row"
-import { BasicExample } from "./alert.basic"
-import { ActionsExample } from "./alert.actions"
-import { CustomIconsExample } from "./alert.customIcons"
-import { CustomIconColorExample } from "./alert.customIconColor"
-import { NoTitleExample } from "./alert.noTitle"
-
-## Basic Alerts
-
-Alerts come in different severities to convey different levels of importance.
-
-<BasicExample/>
-
-## Alerts with Actions
-
-Alerts can include action buttons to provide users with immediate options.
-
-<ActionsExample/>
-
-## Custom Icons
-
-You can customize the alert icon to better match your message context.
-
-<CustomIconsExample/>
-
-## Custom Icon Colors
-
-The icon color can be customized independently of the alert severity.
-
-<CustomIconColorExample/>
-
-## Without Title
-
-For simpler messages, alerts can be displayed without a title.
-
-<NoTitleExample/>
diff --git a/apps/ui-playground/content/design/components/alert.noTitle.tsx b/apps/ui-playground/content/design/components/alert.noTitle.tsx
deleted file mode 100644
index b7229d28eb7..00000000000
--- a/apps/ui-playground/content/design/components/alert.noTitle.tsx
+++ /dev/null
@@ -1,21 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { Alert } from "@calcom/ui/components/alert";
-
-const severities = ["neutral", "info", "warning", "error"] as const;
-
-export const NoTitleExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="not-prose space-y-4">
- {severities.map((severity) => (
- <Alert
- key={severity}
- severity={severity}
- message={`This is a ${severity} alert without a title to show a more compact version.`}
- />
- ))}
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/avatar.image.tsx b/apps/ui-playground/content/design/components/avatar.image.tsx
deleted file mode 100644
index 2c20ec8e52b..00000000000
--- a/apps/ui-playground/content/design/components/avatar.image.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { Avatar } from "@calcom/ui/components/avatar";
-
-const sampleImage = "https://cal.com/stakeholder/peer.jpg";
-
-export const ImageExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="flex items-center gap-8">
- <div className="flex flex-col items-center gap-2">
- <Avatar size="md" alt="With image" imageSrc={sampleImage} />
- <span className="text-subtle text-xs">With Image</span>
- </div>
- <div className="flex flex-col items-center gap-2">
- <Avatar size="md" alt="Without image" imageSrc="https://cal.com/avatar.svg" />
- <span className="text-subtle text-xs">Without Image</span>
- </div>
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/avatar.indicator.tsx b/apps/ui-playground/content/design/components/avatar.indicator.tsx
deleted file mode 100644
index 25f41bad280..00000000000
--- a/apps/ui-playground/content/design/components/avatar.indicator.tsx
+++ /dev/null
@@ -1,25 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { Avatar } from "@calcom/ui/components/avatar";
-
-const sampleImage = "https://cal.com/stakeholder/peer.jpg";
-
-export const IndicatorExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="flex items-center gap-4">
- <div className="flex flex-col items-center gap-2">
- <Avatar
- size="md"
- alt="With indicator"
- imageSrc={sampleImage}
- indicator={
- <div className="absolute bottom-0 right-0 h-2.5 w-2.5 rounded-full bg-green-500 ring-2 ring-white" />
- }
- />
- <span className="text-subtle text-xs">With Status Indicator</span>
- </div>
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/avatar.link.tsx b/apps/ui-playground/content/design/components/avatar.link.tsx
deleted file mode 100644
index 61fc4ecf9e6..00000000000
--- a/apps/ui-playground/content/design/components/avatar.link.tsx
+++ /dev/null
@@ -1,18 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { Avatar } from "@calcom/ui/components/avatar";
-
-const sampleImage = "https://cal.com/stakeholder/peer.jpg";
-
-export const LinkExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="flex items-center gap-4">
- <div className="flex flex-col items-center gap-2">
- <Avatar size="md" alt="With link" imageSrc={sampleImage} href="https://cal.com" />
- <span className="text-subtle text-xs">Clickable</span>
- </div>
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/avatar.mdx b/apps/ui-playground/content/design/components/avatar.mdx
deleted file mode 100644
index fa843d6c80a..00000000000
--- a/apps/ui-playground/content/design/components/avatar.mdx
+++ /dev/null
@@ -1,103 +0,0 @@
----
-title: Avatar
-airtableId: reciflFrJo5cVgGrS
----
-import { Avatar } from "@calcom/ui/components/avatar"
-import { RenderComponentWithSnippet } from "@/app/components/render"
-import { Row } from "@/app/components/row"
-import { SizesExample } from "./avatar.sizes"
-import { ImageExample } from "./avatar.image"
-import { TooltipExample } from "./avatar.tooltip"
-import { LinkExample } from "./avatar.link"
-import { IndicatorExample } from "./avatar.indicator"
-import { ShapeExample } from "./avatar.shape"
-
-## Size Variations
-
-Avatars come in different sizes to suit various use cases.
-
-<SizesExample/>
-
-## Shape Variations
-
-Avatars can be displayed in either circular or square shapes.
-
-<ShapeExample/>
-
-## With and Without Image
-
-Avatars can display either an image or a fallback placeholder.
-
-<ImageExample/>
-
-## With Tooltip
-
-Avatars can show additional information on hover using tooltips.
-
-<TooltipExample/>
-
-## With Link
-
-Avatars can be made clickable by providing an href.
-
-<LinkExample/>
-
-## With Indicator
-
-Avatars can include status indicators or badges.
-
-<IndicatorExample/>
-
-## Usage Example
-
-Here's a complete example showing how to use the Avatar component with all its props:
-
-```tsx
-import { Avatar } from "@calcom/ui/components/avatar";
-
-function Example() {
- return (
- <div className="flex flex-col gap-4">
- {/* Basic Avatar */}
- <Avatar
- alt="User Name"
- title="User Name"
- size="md"
- shape="circle"
- imageSrc="https://example.com/avatar.jpg"
- />
-
- {/* Avatar with Link */}
- <Avatar
- alt="User Name"
- title="User Name"
- size="lg"
- shape="square"
- imageSrc="https://example.com/avatar.jpg"
- href="/profile"
- />
-
- {/* Avatar with Tooltip and Indicator */}
- <Avatar
- alt="User Name"
- title="User Name"
- size="md"
- shape="circle"
- imageSrc="https://example.com/avatar.jpg"
- indicator={<div className="absolute bottom-0 right-0 h-3 w-3 rounded-full bg-green-500" />}
- />
-
- {/* Avatar with Fallback */}
- <Avatar
- alt="User Name"
- title="User Name"
- size="md"
- shape="circle"
- fallback={<span>UN</span>}
- />
- </div>
- );
-}
-```
-
-
diff --git a/apps/ui-playground/content/design/components/avatar.shape.tsx b/apps/ui-playground/content/design/components/avatar.shape.tsx
deleted file mode 100644
index 105f16875d8..00000000000
--- a/apps/ui-playground/content/design/components/avatar.shape.tsx
+++ /dev/null
@@ -1,24 +0,0 @@
-import { Avatar } from "@calcom/ui/components/avatar";
-
-export function ShapeExample() {
- return (
- <div className="flex flex-col gap-4">
- <div className="flex items-center gap-4">
- <Avatar
- alt="Circle Avatar"
- title="Circle Avatar"
- size="lg"
- shape="circle"
- imageSrc="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80"
- />
- <Avatar
- alt="Square Avatar"
- title="Square Avatar"
- size="lg"
- shape="square"
- imageSrc="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80"
- />
- </div>
- </div>
- );
-}
diff --git a/apps/ui-playground/content/design/components/avatar.sizes.tsx b/apps/ui-playground/content/design/components/avatar.sizes.tsx
deleted file mode 100644
index 078a626e7bb..00000000000
--- a/apps/ui-playground/content/design/components/avatar.sizes.tsx
+++ /dev/null
@@ -1,29 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { Avatar } from "@calcom/ui/components/avatar";
-
-const sizes = ["xs", "xsm", "sm", "md", "mdLg", "lg", "xl"] as const;
-const sampleImage = "https://cal.com/stakeholder/peer.jpg";
-
-export const SizesExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="flex items-center gap-4">
- {sizes.map((size) => (
- <div key={size} className="flex flex-col items-center gap-2">
- <Avatar size={size} alt={`${size} avatar`} imageSrc={sampleImage} />
- <span className="text-subtle text-xs">{size}</span>
- </div>
- ))}
- </div>
- <div className="mt-2 flex items-center gap-4">
- {sizes.map((size) => (
- <div key={size} className="flex flex-col items-center gap-2">
- <Avatar size={size} alt={`${size} avatar`} imageSrc={sampleImage} shape="square" />
- <span className="text-subtle text-xs">{size}</span>
- </div>
- ))}
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/avatar.tooltip.tsx b/apps/ui-playground/content/design/components/avatar.tooltip.tsx
deleted file mode 100644
index 341d5a06b4b..00000000000
--- a/apps/ui-playground/content/design/components/avatar.tooltip.tsx
+++ /dev/null
@@ -1,18 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { Avatar } from "@calcom/ui/components/avatar";
-
-const sampleImage = "https://cal.com/stakeholder/peer.jpg";
-
-export const TooltipExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="flex items-center gap-4">
- <div className="flex flex-col items-center gap-2">
- <Avatar size="md" alt="With tooltip" imageSrc={sampleImage} title="Hover me!" />
- <span className="text-subtle text-xs">Hover to see tooltip</span>
- </div>
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/badge.dots.tsx b/apps/ui-playground/content/design/components/badge.dots.tsx
deleted file mode 100644
index 7f39362a50f..00000000000
--- a/apps/ui-playground/content/design/components/badge.dots.tsx
+++ /dev/null
@@ -1,33 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { Badge } from "@calcom/ui/components/badge";
-
-const variants = [
- "default",
- "warning",
- "orange",
- "success",
- "green",
- "gray",
- "blue",
- "red",
- "error",
- "grayWithoutHover",
-] as const;
-
-export const DotsExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="flex flex-wrap items-center gap-4">
- {variants.map((variant) => (
- <div key={variant} className="flex flex-col items-center gap-2">
- <Badge variant={variant} withDot>
- {variant}
- </Badge>
- <span className="text-subtle text-xs">Dot</span>
- </div>
- ))}
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/badge.icons.tsx b/apps/ui-playground/content/design/components/badge.icons.tsx
deleted file mode 100644
index de3fe763408..00000000000
--- a/apps/ui-playground/content/design/components/badge.icons.tsx
+++ /dev/null
@@ -1,33 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { Badge } from "@calcom/ui/components/badge";
-
-const variants = [
- "default",
- "warning",
- "orange",
- "success",
- "green",
- "gray",
- "blue",
- "red",
- "error",
- "grayWithoutHover",
-] as const;
-
-export const IconsExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="flex flex-wrap items-center gap-4">
- {variants.map((variant) => (
- <div key={variant} className="flex flex-col items-center gap-2">
- <Badge variant={variant} startIcon="bell">
- {variant}
- </Badge>
- <span className="text-subtle text-xs">Icon</span>
- </div>
- ))}
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/badge.interactive.tsx b/apps/ui-playground/content/design/components/badge.interactive.tsx
deleted file mode 100644
index 03d94ec3685..00000000000
--- a/apps/ui-playground/content/design/components/badge.interactive.tsx
+++ /dev/null
@@ -1,33 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { Badge } from "@calcom/ui/components/badge";
-
-const variants = [
- "default",
- "warning",
- "orange",
- "success",
- "green",
- "gray",
- "blue",
- "red",
- "error",
- "grayWithoutHover",
-] as const;
-
-export const InteractiveExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="flex flex-wrap items-center gap-4">
- {variants.map((variant) => (
- <div key={variant} className="flex flex-col items-center gap-2">
- <Badge variant={variant} onClick={() => alert(`${variant} badge clicked!`)}>
- Click me
- </Badge>
- <span className="text-subtle text-xs">Clickable</span>
- </div>
- ))}
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/badge.mdx b/apps/ui-playground/content/design/components/badge.mdx
deleted file mode 100644
index 6b6ca51ff5d..00000000000
--- a/apps/ui-playground/content/design/components/badge.mdx
+++ /dev/null
@@ -1,42 +0,0 @@
----
-title: Badge
-airtableId: recso7QMfD2xwI04K
----
-import { Badge } from "@calcom/ui/components/badge"
-import { RenderComponentWithSnippet } from "@/app/components/render"
-import { Row } from "@/app/components/row"
-import { VariantsExample } from "./badge.variants"
-import { IconsExample } from "./badge.icons"
-import { DotsExample } from "./badge.dots"
-import { InteractiveExample } from "./badge.interactive"
-import { RoundedExample } from "./badge.rounded"
-
-## Variants and Sizes
-
-Badges come in different variants and sizes to suit various use cases.
-
-<VariantsExample/>
-
-## With Icons
-
-Badges can include icons to provide additional visual context.
-
-<IconsExample/>
-
-## With Dots
-
-Badges can include dots, useful for showing status or notifications.
-
-<DotsExample/>
-
-## Interactive
-
-Badges can be made interactive with click handlers.
-
-<InteractiveExample/>
-
-## Rounded
-
-Badges can be fully rounded, useful for numerical indicators.
-
-<RoundedExample/>
diff --git a/apps/ui-playground/content/design/components/badge.rounded.tsx b/apps/ui-playground/content/design/components/badge.rounded.tsx
deleted file mode 100644
index e31a1c2e472..00000000000
--- a/apps/ui-playground/content/design/components/badge.rounded.tsx
+++ /dev/null
@@ -1,33 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { Badge } from "@calcom/ui/components/badge";
-
-const variants = [
- "default",
- "warning",
- "orange",
- "success",
- "green",
- "gray",
- "blue",
- "red",
- "error",
- "grayWithoutHover",
-] as const;
-
-export const RoundedExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="flex flex-wrap items-center gap-4">
- {variants.map((variant) => (
- <div key={variant} className="flex flex-col items-center gap-2">
- <Badge variant={variant} rounded>
- 1
- </Badge>
- <span className="text-subtle text-xs">{variant}</span>
- </div>
- ))}
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/badge.variants.tsx b/apps/ui-playground/content/design/components/badge.variants.tsx
deleted file mode 100644
index b3e80a386a6..00000000000
--- a/apps/ui-playground/content/design/components/badge.variants.tsx
+++ /dev/null
@@ -1,42 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { Badge } from "@calcom/ui/components/badge";
-
-const variants = [
- "default",
- "warning",
- "orange",
- "success",
- "green",
- "gray",
- "blue",
- "red",
- "error",
- "grayWithoutHover",
-] as const;
-
-const sizes = ["sm", "md", "lg"] as const;
-
-export const VariantsExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="space-y-8">
- {variants.map((variant) => (
- <div key={variant} className="space-y-2">
- <h4 className="text-default text-sm capitalize">{variant}</h4>
- <div className="flex items-center gap-4">
- {sizes.map((size) => (
- <div key={size} className="flex flex-col items-center gap-2">
- <Badge variant={variant} size={size}>
- {variant}
- </Badge>
- <span className="text-subtle text-xs">{size}</span>
- </div>
- ))}
- </div>
- </div>
- ))}
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/button.buttongroup.tsx b/apps/ui-playground/content/design/components/button.buttongroup.tsx
deleted file mode 100644
index 2982634791e..00000000000
--- a/apps/ui-playground/content/design/components/button.buttongroup.tsx
+++ /dev/null
@@ -1,63 +0,0 @@
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { Button } from "@calcom/ui/components/button";
-import { ButtonGroup } from "@calcom/ui/components/buttonGroup";
-
-export const ButtonGroupExample = () => {
- return (
- <RenderComponentWithSnippet className="flex flex-col space-y-6">
- {/* Basic Button Group */}
- <ButtonGroup>
- <Button variant="icon" StartIcon="ellipsis" color="secondary" />
- <Button variant="icon" StartIcon="ellipsis" color="secondary" />
- <Button variant="icon" StartIcon="ellipsis" color="secondary" />
- </ButtonGroup>
-
- {/* Combined Button Group */}
- <ButtonGroup combined>
- <Button variant="icon" StartIcon="ellipsis" color="secondary" />
- <Button variant="icon" StartIcon="ellipsis" color="secondary" />
- <Button variant="icon" StartIcon="ellipsis" color="secondary" />
- </ButtonGroup>
-
- {/* Button Group with different variants */}
- <ButtonGroup combined>
- <Button variant="icon" color="secondary" StartIcon="ellipsis" />
- <Button variant="icon" color="secondary" StartIcon="ellipsis" />
- <Button variant="icon" color="destructive" StartIcon="trash" />
- </ButtonGroup>
- </RenderComponentWithSnippet>
- );
-};
-
-export const ButtonGroupSizes = () => {
- const sizes = ["xs", "sm", "base", "lg"] as const;
-
- return (
- <RenderComponentWithSnippet className="flex flex-col space-y-6">
- {sizes.map((size) => (
- <ButtonGroup key={size}>
- <Button variant="icon" color="secondary" StartIcon="ellipsis" size={size} />
- <Button variant="icon" color="secondary" StartIcon="ellipsis" size={size} />
- <Button variant="icon" color="secondary" StartIcon="ellipsis" size={size} />
- </ButtonGroup>
- ))}
- </RenderComponentWithSnippet>
- );
-};
-
-export const ButtonGroupSizesCombined = () => {
- const sizes = ["xs", "sm", "base", "lg"] as const;
-
- return (
- <RenderComponentWithSnippet className="flex flex-col space-y-6">
- {sizes.map((size) => (
- <ButtonGroup key={size} combined>
- <Button variant="icon" color="secondary" StartIcon="ellipsis" size={size} />
- <Button variant="icon" color="secondary" StartIcon="ellipsis" size={size} />
- <Button variant="icon" color="secondary" StartIcon="ellipsis" size={size} />
- </ButtonGroup>
- ))}
- </RenderComponentWithSnippet>
- );
-};
diff --git a/apps/ui-playground/content/design/components/button.disabled.tsx b/apps/ui-playground/content/design/components/button.disabled.tsx
deleted file mode 100644
index 9ab2eac1381..00000000000
--- a/apps/ui-playground/content/design/components/button.disabled.tsx
+++ /dev/null
@@ -1,42 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-import { Row } from "@/app/components/row";
-
-import { Button } from "@calcom/ui/components/button";
-
-const colors = ["primary", "secondary", "minimal", "destructive"] as const;
-
-export const DisabledExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="space-y-8">
- <div>
- <h3 className="text-default mb-4 text-sm">Disabled State</h3>
- <Row>
- {colors.map((color) => (
- <div key={color} className="flex flex-col items-center gap-2">
- <Button color={color} disabled>
- {color}
- </Button>
- <span className="text-subtle text-xs">Disabled</span>
- </div>
- ))}
- </Row>
- </div>
-
- <div>
- <h3 className="text-default mb-4 text-sm">Disabled with Icons</h3>
- <Row>
- {colors.map((color) => (
- <div key={color} className="flex flex-col items-center gap-2">
- <Button color={color} disabled StartIcon="calendar">
- {color}
- </Button>
- <span className="text-subtle text-xs">With Icon</span>
- </div>
- ))}
- </Row>
- </div>
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/button.icons.tsx b/apps/ui-playground/content/design/components/button.icons.tsx
deleted file mode 100644
index 1c1b24c1e33..00000000000
--- a/apps/ui-playground/content/design/components/button.icons.tsx
+++ /dev/null
@@ -1,42 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-import { Row } from "@/app/components/row";
-
-import { Button } from "@calcom/ui/components/button";
-
-const colors = ["primary", "secondary", "minimal", "destructive"] as const;
-
-export const IconsExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="space-y-8">
- <div>
- <h3 className="text-default mb-4 text-sm">Start Icon</h3>
- <Row>
- {colors.map((color) => (
- <div key={color} className="flex flex-col items-center gap-2">
- <Button color={color} StartIcon="calendar">
- {color}
- </Button>
- <span className="text-subtle text-xs">Start Icon</span>
- </div>
- ))}
- </Row>
- </div>
-
- <div>
- <h3 className="text-default mb-4 text-sm">End Icon</h3>
- <Row>
- {colors.map((color) => (
- <div key={color} className="flex flex-col items-center gap-2">
- <Button color={color} EndIcon="arrow-right">
- {color}
- </Button>
- <span className="text-subtle text-xs">End Icon</span>
- </div>
- ))}
- </Row>
- </div>
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/button.loading.tsx b/apps/ui-playground/content/design/components/button.loading.tsx
deleted file mode 100644
index 4a5b33c34e6..00000000000
--- a/apps/ui-playground/content/design/components/button.loading.tsx
+++ /dev/null
@@ -1,44 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-import { Row } from "@/app/components/row";
-
-import { Button } from "@calcom/ui/components/button";
-
-const colors = ["primary", "secondary", "minimal", "destructive"] as const;
-
-export const LoadingExample: React.FC = () => {
- return (
- <RenderComponentWithSnippet>
- <div className="space-y-8">
- <div>
- <h3 className="text-default mb-4 text-sm">Loading State</h3>
- <Row>
- {colors.map((color) => (
- <div key={color} className="flex flex-col items-center gap-2">
- <Button color={color} loading>
- {color}
- </Button>
- <span className="text-subtle text-xs">Loading</span>
- </div>
- ))}
- </Row>
- </div>
-
- <div>
- <h3 className="text-default mb-4 text-sm">Loading with Icons</h3>
- <Row>
- {colors.map((color) => (
- <div key={color} className="flex flex-col items-center gap-2">
- <Button color={color} loading StartIcon="calendar">
- {color}
- </Button>
- <span className="text-subtle text-xs">With Icon</span>
- </div>
- ))}
- </Row>
- </div>
- </div>
- </RenderComponentWithSnippet>
- );
-};
diff --git a/apps/ui-playground/content/design/components/button.mdx b/apps/ui-playground/content/design/components/button.mdx
deleted file mode 100644
index cf7a55bb7a6..00000000000
--- a/apps/ui-playground/content/design/components/button.mdx
+++ /dev/null
@@ -1,98 +0,0 @@
----
-title: Button
-airtableId: recEJyzUeMMXCjyTB
----
-import { Button } from "@calcom/ui/components/button"
-import { RenderComponentWithSnippet } from "@/app/components/render"
-import { Row } from "@/app/components/row"
-import { OnClickExample } from "./button.onClick"
-import { VariantExample } from "./button.variant"
-import { IconsExample } from "./button.icons"
-import { LoadingExample } from "./button.loading"
-import { DisabledExample } from "./button.disabled"
-import { ButtonGroupExample,ButtonGroupSizes,ButtonGroupSizesCombined} from "./button.buttongroup"
-
-## Variants and Colors
-
-Buttons come in different variants and colors to suit different purposes. Each variant can be combined with any color and size.
-
-<VariantExample/>
-
-## Icons
-
-Buttons can include icons at the start or end. The icon color and size are automatically handled by the button component.
-
-<IconsExample/>
-
-## Loading State
-
-Buttons can show a loading state to indicate an ongoing action. The loading spinner replaces the button text while maintaining the button's width.
-
-<LoadingExample/>
-
-## Disabled State
-
-Buttons can be disabled to indicate that they are not interactive. The disabled state is visually distinct and prevents any click events.
-
-<DisabledExample/>
-
-## onClick Events
-
-Buttons handle click events like any other button component. You can provide an onClick handler to respond to user interactions.
-
-<OnClickExample/>
-
-Providing a loading state will add a spinner on the left side of the button.
-
-<LoadingExample/>
-
-## Disabled
-
-<DisabledExample/>
-
-## Button Groups
-
-Buttons can be grouped together using the ButtonGroup component. The ButtonGroup component can be used to create a group of related buttons with consistent spacing and optional combined borders.
-
-<ButtonGroupExample/>
-
-### Button Group Sizes
-
-#### Separated
-
-<ButtonGroupSizes/>
-
-#### Combined
-
-<ButtonGroupSizesCombined/>
-
-## Usage
-
-```tsx
-// Primary button (default)
-<Button>Primary Button</Button>
-
-// Secondary button
-<Button color="secondary">Secondary Button</Button>
-
-// Minimal button
-<Button color="minimal">Minimal Button</Button>
-
-// Destructive button
-<Button color="destructive">Destructive Button</Button>
-
-// With start icon
-<Button StartIcon="plus">Add Item</Button>
-
-// With end icon
-<Button EndIcon="chevronRight">View More</Button>
-
-// With link
-<Button href="/some-path">Navigate</Button>
-
-// Different sizes
-<Button size="xs">Extra Small</Button>
-<Button size="sm">Small</Button>
-<Button size="base">Base (Default)</Button>
-<Button size="lg">Large</Button>
-```
diff --git a/apps/ui-playground/content/design/components/button.onClick.tsx b/apps/ui-playground/content/design/components/button.onClick.tsx
deleted file mode 100644
index 35f1418cd95..00000000000
--- a/apps/ui-playground/content/design/components/button.onClick.tsx
+++ /dev/null
@@ -1,14 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-import { Row } from "@/app/components/row";
-
-import { Button } from "@calcom/ui/components/button";
-
-export const OnClickExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <Row>
- <Button onClick={() => alert("hello")}>Trigger Alert</Button>
- </Row>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/button.variant.tsx b/apps/ui-playground/content/design/components/button.variant.tsx
deleted file mode 100644
index 0a8d72ebfe2..00000000000
--- a/apps/ui-playground/content/design/components/button.variant.tsx
+++ /dev/null
@@ -1,43 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-import { Row } from "@/app/components/row";
-
-import { Button } from "@calcom/ui/components/button";
-
-const variants = ["button", "icon"] as const;
-const colors = ["primary", "secondary", "minimal", "destructive"] as const;
-const sizes = ["xs", "sm", "base", "lg"] as const;
-
-export const VariantExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="space-y-8">
- {variants.map((variant) => (
- <div key={variant} className="space-y-6">
- <h3 className="text-default text-sm capitalize">{variant === "button" ? "Default" : variant}</h3>
- <div className="space-y-6">
- {colors.map((color) => (
- <div key={color} className="space-y-2">
- <h4 className="text-default text-sm capitalize">{color}</h4>
- <Row>
- {sizes.map((size) => (
- <div key={size} className="flex flex-col items-center gap-2">
- <Button
- variant={variant}
- color={color}
- size={size}
- StartIcon={variant === "icon" ? "plus" : undefined}>
- {variant !== "icon" && `Label`}
- </Button>
- <span className="text-subtle text-xs">{size}</span>
- </div>
- ))}
- </Row>
- </div>
- ))}
- </div>
- </div>
- ))}
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/checkbox.basic.tsx b/apps/ui-playground/content/design/components/checkbox.basic.tsx
deleted file mode 100644
index e8f353f9cec..00000000000
--- a/apps/ui-playground/content/design/components/checkbox.basic.tsx
+++ /dev/null
@@ -1,31 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { Checkbox } from "@calcom/ui/components/form";
-
-export const BasicExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="flex flex-wrap gap-4">
- <div className="flex flex-col items-center justify-center gap-2">
- <Checkbox id="basic-unchecked" />
- <span className="text-subtle text-xs">Unchecked</span>
- </div>
-
- <div className="flex flex-col items-center justify-center gap-2">
- <Checkbox id="basic-checked" defaultChecked />
- <span className="text-subtle text-xs">Checked</span>
- </div>
-
- <div className="flex flex-col items-center justify-center gap-2">
- <Checkbox id="basic-disabled" disabled />
- <span className="text-subtle text-xs">Disabled</span>
- </div>
-
- <div className="flex flex-col items-center justify-center gap-2">
- <Checkbox id="basic-disabled-checked" disabled defaultChecked />
- <span className="text-subtle text-xs">Disabled Checked</span>
- </div>
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/checkbox.description.tsx b/apps/ui-playground/content/design/components/checkbox.description.tsx
deleted file mode 100644
index 8ae2473bcfb..00000000000
--- a/apps/ui-playground/content/design/components/checkbox.description.tsx
+++ /dev/null
@@ -1,15 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { CheckboxField } from "@calcom/ui/components/form";
-
-export const DescriptionExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="space-y-4">
- <CheckboxField description="This is a regular description" id="desc-normal" />
- <CheckboxField description="This description acts as the label" descriptionAsLabel id="desc-as-label" />
- <CheckboxField id="desc-long" label="Label and description" description="Label and description" />
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/checkbox.infoIcon.tsx b/apps/ui-playground/content/design/components/checkbox.infoIcon.tsx
deleted file mode 100644
index 32e9cdcdc51..00000000000
--- a/apps/ui-playground/content/design/components/checkbox.infoIcon.tsx
+++ /dev/null
@@ -1,16 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { CheckboxField } from "@calcom/ui/components/form";
-
-export const InfoIconExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <CheckboxField
- description="Checkbox with additional information"
- id="info-icon"
- label="Information Icon"
- informationIconText="This is additional information that appears in a tooltip"
- />
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/checkbox.labelPosition.tsx b/apps/ui-playground/content/design/components/checkbox.labelPosition.tsx
deleted file mode 100644
index 66561cfce28..00000000000
--- a/apps/ui-playground/content/design/components/checkbox.labelPosition.tsx
+++ /dev/null
@@ -1,24 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { CheckboxField } from "@calcom/ui/components/form";
-
-export const LabelPositionExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="space-y-4">
- <CheckboxField
- description="Description with label above (default on mobile)"
- id="label-above"
- label="Label Above"
- />
- <div className="sm:min-w-[400px]">
- <CheckboxField
- description="Description with label to the side (on larger screens)"
- id="label-side"
- label="Label to the Side"
- />
- </div>
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/checkbox.mdx b/apps/ui-playground/content/design/components/checkbox.mdx
deleted file mode 100644
index fc71982bbac..00000000000
--- a/apps/ui-playground/content/design/components/checkbox.mdx
+++ /dev/null
@@ -1,35 +0,0 @@
----
-title: Checkbox
-airtableId: recXGPNAfDJVm8NHo
----
-import { Checkbox } from "@calcom/ui/components/form"
-import { RenderComponentWithSnippet } from "@/app/components/render"
-import { Row } from "@/app/components/row"
-import { BasicExample } from "./checkbox.basic"
-import { DescriptionExample } from "./checkbox.description"
-import { LabelPositionExample } from "./checkbox.labelPosition"
-import { InfoIconExample } from "./checkbox.infoIcon"
-
-## Basic Usage
-
-Checkboxes in their various states - unchecked, checked, disabled, and disabled checked.
-
-<BasicExample/>
-
-## With Description
-
-Checkboxes can include descriptions to provide additional context.
-
-<DescriptionExample/>
-
-## Label Positions
-
-Labels can be positioned above or to the side of the checkbox.
-
-<LabelPositionExample/>
-
-## With Information Icon
-
-Checkboxes can include an information icon with a tooltip for additional details.
-
-<InfoIconExample/>
diff --git a/apps/ui-playground/content/design/components/dialog.basic.tsx b/apps/ui-playground/content/design/components/dialog.basic.tsx
deleted file mode 100644
index 6c5eb0a568d..00000000000
--- a/apps/ui-playground/content/design/components/dialog.basic.tsx
+++ /dev/null
@@ -1,33 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-import { useState } from "react";
-
-import { Button } from "@calcom/ui/components/button";
-import { Dialog, DialogClose, DialogContent, DialogFooter } from "@calcom/ui/components/dialog";
-
-export const BasicExample: React.FC = () => {
- const [open, setOpen] = useState(false);
-
- return (
- <RenderComponentWithSnippet>
- <div className="space-y-2">
- <Button onClick={() => setOpen(true)}>Open Basic Dialog</Button>
- <Dialog open={open} onOpenChange={setOpen}>
- <DialogContent
- title="Basic Dialog"
- description="This is a basic dialog with a title and description.">
- <p className="text-default text-sm">
- Dialogs are used to display content that requires user attention or interaction. They appear
- above the page content and must be closed before interacting with the page again.
- </p>
- <DialogFooter>
- <DialogClose />
- <Button>Action</Button>
- </DialogFooter>
- </DialogContent>
- </Dialog>
- </div>
- </RenderComponentWithSnippet>
- );
-};
diff --git a/apps/ui-playground/content/design/components/dialog.confirmation.tsx b/apps/ui-playground/content/design/components/dialog.confirmation.tsx
deleted file mode 100644
index d3acc63ea37..00000000000
--- a/apps/ui-playground/content/design/components/dialog.confirmation.tsx
+++ /dev/null
@@ -1,37 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-import { useState } from "react";
-
-import { Button } from "@calcom/ui/components/button";
-import { Dialog, DialogClose, DialogContent, DialogFooter } from "@calcom/ui/components/dialog";
-
-export const ConfirmationExample: React.FC = () => {
- const [open, setOpen] = useState(false);
-
- return (
- <RenderComponentWithSnippet>
- <div className="space-y-2">
- <Button color="destructive" onClick={() => setOpen(true)}>
- Delete Item
- </Button>
- <Dialog open={open} onOpenChange={setOpen}>
- <DialogContent
- title="Confirm Deletion"
- description="Are you sure you want to delete this item? This action cannot be undone.">
- <DialogFooter>
- <DialogClose />
- <Button
- color="destructive"
- onClick={() => {
- setOpen(false);
- }}>
- Delete
- </Button>
- </DialogFooter>
- </DialogContent>
- </Dialog>
- </div>
- </RenderComponentWithSnippet>
- );
-};
diff --git a/apps/ui-playground/content/design/components/dialog.form.tsx b/apps/ui-playground/content/design/components/dialog.form.tsx
deleted file mode 100644
index 7e7720ea490..00000000000
--- a/apps/ui-playground/content/design/components/dialog.form.tsx
+++ /dev/null
@@ -1,56 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-import { useState } from "react";
-
-import { Button } from "@calcom/ui/components/button";
-import { Dialog, DialogClose, DialogContent, DialogFooter } from "@calcom/ui/components/dialog";
-import { TextAreaField } from "@calcom/ui/components/form";
-
-export const FormExample: React.FC = () => {
- const [open, setOpen] = useState(false);
- const [formInput, setFormInput] = useState("");
-
- return (
- <RenderComponentWithSnippet>
- <div className="space-y-2">
- <Button color="secondary" onClick={() => setOpen(true)}>
- Open Form Dialog
- </Button>
- <Dialog open={open} onOpenChange={setOpen}>
- <DialogContent title="Feedback Form" description="Please provide your feedback below">
- <div>
- <TextAreaField
- name="feedback"
- label={
- <>
- Your Feedback
- <span className="text-subtle font-normal"> (Optional)</span>
- </>
- }
- value={formInput}
- onChange={(e) => setFormInput(e.target.value)}
- />
- </div>
- <DialogFooter>
- <DialogClose />
- <Button
- onClick={() => {
- setOpen(false);
- setFormInput("");
- }}>
- Submit Feedback
- </Button>
- </DialogFooter>
- </DialogContent>
- </Dialog>
- <div className="mt-6">
- <h4 className="text-emphasis text-sm font-medium">Current Form Input:</h4>
- <pre className="text-default bg-subtle mt-2 rounded-md p-4 text-sm">
- {formInput || "No input yet"}
- </pre>
- </div>
- </div>
- </RenderComponentWithSnippet>
- );
-};
diff --git a/apps/ui-playground/content/design/components/dialog.largeContent.tsx b/apps/ui-playground/content/design/components/dialog.largeContent.tsx
deleted file mode 100644
index 0d77357d8b6..00000000000
--- a/apps/ui-playground/content/design/components/dialog.largeContent.tsx
+++ /dev/null
@@ -1,58 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-import { useState } from "react";
-
-import { Button } from "@calcom/ui/components/button";
-import { Dialog, DialogClose, DialogContent, DialogFooter } from "@calcom/ui/components/dialog";
-
-export const LargeContentExample: React.FC = () => {
- const [open, setOpen] = useState(false);
-
- return (
- <RenderComponentWithSnippet>
- <div className="space-y-2">
- <Button color="secondary" onClick={() => setOpen(true)}>
- Open Large Content Dialog
- </Button>
- <Dialog open={open} onOpenChange={setOpen}>
- <DialogContent
- title="Terms and Conditions"
- description="Please review our terms and conditions carefully"
- enableOverflow>
- <div className="space-y-6">
- {Array.from({ length: 5 }).map((_, i) => (
- <div key={i} className="space-y-4">
- <h3 className="text-emphasis font-semibold">Section {i + 1}</h3>
- <p className="text-default text-sm">
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam in dui mauris. Vivamus
- hendrerit arcu sed erat molestie vehicula. Sed auctor neque eu tellus rhoncus ut eleifend
- nibh porttitor. Ut in nulla enim. Phasellus molestie magna non est bibendum non venenatis
- nisl tempor.
- </p>
- <p className="text-default text-sm">
- Suspendisse in orci enim. Integer vel sapien at risus ultrices ornare nec sit amet nibh.
- Duis blandit lectus ac odio rhoncus non congue diam bibendum. Aliquam erat volutpat.
- </p>
- {i === 2 && (
- <div className="border-subtle rounded-lg border p-4 shadow-sm">
- <h4 className="text-emphasis mb-2 font-medium">Important Notice</h4>
- <p className="text-default text-sm">
- This is a highlighted section within the content to demonstrate how different UI
- elements appear within a scrollable dialog.
- </p>
- </div>
- )}
- </div>
- ))}
- </div>
- <DialogFooter>
- <DialogClose>Decline</DialogClose>
- <Button>Accept Terms</Button>
- </DialogFooter>
- </DialogContent>
- </Dialog>
- </div>
- </RenderComponentWithSnippet>
- );
-};
diff --git a/apps/ui-playground/content/design/components/dialog.mdx b/apps/ui-playground/content/design/components/dialog.mdx
deleted file mode 100644
index 5e03bc7ebd5..00000000000
--- a/apps/ui-playground/content/design/components/dialog.mdx
+++ /dev/null
@@ -1,35 +0,0 @@
----
-title: Dialog
-airtableId: rechCoaoEMZLnLChR
----
-import { Dialog } from "@calcom/ui/components/dialog"
-import { RenderComponentWithSnippet } from "@/app/components/render"
-import { Row } from "@/app/components/row"
-import { BasicExample } from "./dialog.basic"
-import { LargeContentExample } from "./dialog.largeContent"
-import { FormExample } from "./dialog.form"
-import { ConfirmationExample } from "./dialog.confirmation"
-
-## Basic Dialog
-
-A simple dialog with a title, description, and action buttons.
-
-<BasicExample/>
-
-## Large Content Dialog
-
-A dialog that can handle scrollable content, such as terms and conditions.
-
-<LargeContentExample/>
-
-## Form Dialog
-
-A dialog containing a form for user input.
-
-<FormExample/>
-
-## Confirmation Dialog
-
-A dialog for confirming destructive actions.
-
-<ConfirmationExample/>
diff --git a/apps/ui-playground/content/design/components/dropdown.avatarTrigger.tsx b/apps/ui-playground/content/design/components/dropdown.avatarTrigger.tsx
deleted file mode 100644
index 1b980fa104f..00000000000
--- a/apps/ui-playground/content/design/components/dropdown.avatarTrigger.tsx
+++ /dev/null
@@ -1,38 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { Avatar } from "@calcom/ui/components/avatar";
-import {
- Dropdown,
- DropdownMenuTrigger,
- DropdownMenuContent,
- DropdownItem,
- DropdownMenuLabel,
- DropdownMenuSeparator,
-} from "@calcom/ui/components/dropdown";
-
-export const AvatarTriggerExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="flex flex-wrap items-center gap-8">
- <div className="flex flex-col items-center gap-2">
- <Dropdown>
- <DropdownMenuTrigger asChild>
- <button className="cursor-pointer">
- <Avatar size="sm" imageSrc="https://cal.com/stakeholder/peer.jpg" alt="Avatar" />
- </button>
- </DropdownMenuTrigger>
- <DropdownMenuContent>
- <DropdownMenuLabel>Profile</DropdownMenuLabel>
- <DropdownMenuSeparator />
- <DropdownItem>View Profile</DropdownItem>
- <DropdownItem>Settings</DropdownItem>
- <DropdownMenuSeparator />
- <DropdownItem className="text-error">Sign out</DropdownItem>
- </DropdownMenuContent>
- </Dropdown>
- <span className="text-subtle text-xs">Avatar Menu</span>
- </div>
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/dropdown.buttonTrigger.tsx b/apps/ui-playground/content/design/components/dropdown.buttonTrigger.tsx
deleted file mode 100644
index 10fc247e375..00000000000
--- a/apps/ui-playground/content/design/components/dropdown.buttonTrigger.tsx
+++ /dev/null
@@ -1,84 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import type { IconName } from "@calcom/ui";
-import { Button } from "@calcom/ui/components/button";
-import {
- Dropdown,
- DropdownMenuTrigger,
- DropdownMenuContent,
- DropdownItem,
- DropdownMenuLabel,
-} from "@calcom/ui/components/dropdown";
-
-const menuItems = [
- { label: "View", icon: "eye", kbd: "V" },
- { label: "Edit", icon: "edit", kbd: "E" },
- { label: "Share", icon: "share", kbd: "⌘S" },
- { label: "Delete", icon: "trash", destructive: true, kbd: "⌘⌫" },
-] as {
- label: string;
- icon: IconName;
- destructive?: boolean;
- kbd?: string;
-}[];
-
-export const ButtonTriggerExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="flex flex-wrap items-center gap-8">
- {/* Default Button */}
- <div className="flex flex-col items-center gap-2">
- <Dropdown>
- <DropdownMenuTrigger asChild>
- <Button>Menu</Button>
- </DropdownMenuTrigger>
- <DropdownMenuContent>
- <DropdownMenuLabel>Actions</DropdownMenuLabel>
- {menuItems.map((item) => (
- <DropdownItem color={item.destructive ? "destructive" : "secondary"} key={item.label}>
- {item.label}
- </DropdownItem>
- ))}
- </DropdownMenuContent>
- </Dropdown>
- <span className="text-subtle text-xs">Default</span>
- </div>
-
- {/* Button with Icon */}
- <div className="flex flex-col items-center gap-2">
- <Dropdown>
- <DropdownMenuTrigger asChild>
- <Button>More Actions</Button>
- </DropdownMenuTrigger>
- <DropdownMenuContent>
- <DropdownMenuLabel>Quick Actions</DropdownMenuLabel>
- {menuItems.map((item) => (
- <DropdownItem key={item.label} color={item.destructive ? "destructive" : undefined}>
- {item.label}
- </DropdownItem>
- ))}
- </DropdownMenuContent>
- </Dropdown>
- <span className="text-subtle text-xs">With Icon</span>
- </div>
-
- {/* Icon Button */}
- <div className="flex flex-col items-center gap-2">
- <Dropdown>
- <DropdownMenuTrigger asChild>
- <Button variant="icon" StartIcon="calendar" />
- </DropdownMenuTrigger>
- <DropdownMenuContent>
- {menuItems.map((item) => (
- <DropdownItem key={item.label} color={item.destructive ? "destructive" : undefined}>
- {item.label}
- </DropdownItem>
- ))}
- </DropdownMenuContent>
- </Dropdown>
- <span className="text-subtle text-xs">Icon Only</span>
- </div>
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/dropdown.complex.tsx b/apps/ui-playground/content/design/components/dropdown.complex.tsx
deleted file mode 100644
index fed3f374aa6..00000000000
--- a/apps/ui-playground/content/design/components/dropdown.complex.tsx
+++ /dev/null
@@ -1,86 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { Avatar } from "@calcom/ui/components/avatar";
-import { Button } from "@calcom/ui/components/button";
-import {
- Dropdown,
- DropdownMenuTrigger,
- DropdownMenuContent,
- DropdownItem,
- DropdownMenuLabel,
- DropdownMenuSeparator,
-} from "@calcom/ui/components/dropdown";
-
-export const ComplexExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="flex flex-wrap items-center gap-8">
- {/* Example 1: Complex Menu Structure */}
- <div className="flex flex-col items-center gap-2">
- <Dropdown>
- <DropdownMenuTrigger asChild>
- <Button color="secondary">Open</Button>
- </DropdownMenuTrigger>
- <DropdownMenuContent>
- <DropdownMenuLabel>My account</DropdownMenuLabel>
- <DropdownItem>Profile</DropdownItem>
- <DropdownItem>Billing</DropdownItem>
- <DropdownItem>Settings</DropdownItem>
- <DropdownItem>Keyboard Shortcuts</DropdownItem>
- <DropdownMenuSeparator />
- <DropdownMenuLabel>Team</DropdownMenuLabel>
- <DropdownItem>Invite users</DropdownItem>
- <DropdownItem>New team</DropdownItem>
- <DropdownMenuSeparator />
- <DropdownItem>Github</DropdownItem>
- <DropdownItem>Support</DropdownItem>
- <DropdownItem>API</DropdownItem>
- </DropdownMenuContent>
- </Dropdown>
- <span className="text-subtle text-xs">Complex Menu</span>
- </div>
-
- {/* Example 2: Avatar with Icons */}
- <div className="flex flex-col items-center gap-2">
- <Dropdown>
- <DropdownMenuTrigger asChild>
- <button className="cursor-pointer">
- <Avatar size="md" imageSrc="https://cal.com/stakeholder/peer.jpg" alt="Avatar" />
- </button>
- </DropdownMenuTrigger>
- <DropdownMenuContent>
- <DropdownMenuLabel>[email protected]</DropdownMenuLabel>
- <DropdownMenuSeparator />
- <DropdownItem StartIcon="user">My account</DropdownItem>
- <DropdownItem StartIcon="map">Plan</DropdownItem>
- <DropdownItem StartIcon="credit-card">Billing</DropdownItem>
- <DropdownItem StartIcon="link">Integrations</DropdownItem>
- <DropdownItem StartIcon="upload">Module</DropdownItem>
- <DropdownMenuSeparator />
- <DropdownItem className="text-error" StartIcon="log-out">
- Log out
- </DropdownItem>
- </DropdownMenuContent>
- </Dropdown>
- <span className="text-subtle text-xs">With Icons</span>
- </div>
-
- {/* Example 3: Simple Actions */}
- <div className="flex flex-col items-center gap-2">
- <Dropdown>
- <DropdownMenuTrigger asChild>
- <Button variant="icon" color="secondary" StartIcon="calendar" />
- </DropdownMenuTrigger>
- <DropdownMenuContent>
- <DropdownItem>Rename</DropdownItem>
- <DropdownItem>Duplicate</DropdownItem>
- <DropdownItem>Move</DropdownItem>
- <DropdownItem color="destructive">Delete</DropdownItem>
- </DropdownMenuContent>
- </Dropdown>
- <span className="text-subtle text-xs">Simple Actions</span>
- </div>
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/dropdown.mdx b/apps/ui-playground/content/design/components/dropdown.mdx
deleted file mode 100644
index ace82eef946..00000000000
--- a/apps/ui-playground/content/design/components/dropdown.mdx
+++ /dev/null
@@ -1,28 +0,0 @@
----
-title: Dropdown
-airtableId: recMePWqulsKOCa59
----
-import { Dropdown } from "@calcom/ui/components/dropdown"
-import { RenderComponentWithSnippet } from "@/app/components/render"
-import { Row } from "@/app/components/row"
-import { ButtonTriggerExample } from "./dropdown.buttonTrigger"
-import { AvatarTriggerExample } from "./dropdown.avatarTrigger"
-import { ComplexExample } from "./dropdown.complex"
-
-## Button Trigger
-
-Dropdowns can be triggered by various types of buttons.
-
-<ButtonTriggerExample/>
-
-## Avatar Trigger
-
-Dropdowns can be triggered by avatar components, commonly used for profile menus.
-
-<AvatarTriggerExample/>
-
-## Complex Examples
-
-More complex dropdown examples with various combinations of labels, icons, and separators.
-
-<ComplexExample/>
diff --git a/apps/ui-playground/content/design/components/emptyScreen.basic.tsx b/apps/ui-playground/content/design/components/emptyScreen.basic.tsx
deleted file mode 100644
index bf6e465ad1f..00000000000
--- a/apps/ui-playground/content/design/components/emptyScreen.basic.tsx
+++ /dev/null
@@ -1,17 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { EmptyScreen } from "@calcom/ui/components/empty-screen";
-
-export const BasicExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <EmptyScreen
- Icon="calendar"
- headline="No upcoming meetings"
- description="Create a meeting to get started"
- buttonText="Create Meeting"
- buttonOnClick={() => alert("Create Meeting clicked")}
- />
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/emptyScreen.border.tsx b/apps/ui-playground/content/design/components/emptyScreen.border.tsx
deleted file mode 100644
index f7c5d987fd8..00000000000
--- a/apps/ui-playground/content/design/components/emptyScreen.border.tsx
+++ /dev/null
@@ -1,37 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { EmptyScreen } from "@calcom/ui/components/empty-screen";
-
-export const BorderExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="space-y-8">
- {/* Without Border */}
- <div>
- <h4 className="text-emphasis mb-4 text-sm font-medium">Without Border</h4>
- <EmptyScreen
- Icon="grid-3x3"
- headline="No apps installed"
- description="Browse available apps in the marketplace"
- buttonText="Browse Apps"
- buttonOnClick={() => alert("Browse Apps clicked")}
- border={false}
- />
- </div>
-
- {/* With Solid Border */}
- <div>
- <h4 className="text-emphasis mb-4 text-sm font-medium">With Solid Border</h4>
- <EmptyScreen
- Icon="mail"
- headline="No messages"
- description="Your inbox is empty"
- buttonText="Compose"
- buttonOnClick={() => alert("Compose clicked")}
- dashedBorder={false}
- />
- </div>
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/emptyScreen.customIcon.tsx b/apps/ui-playground/content/design/components/emptyScreen.customIcon.tsx
deleted file mode 100644
index 876276957d6..00000000000
--- a/apps/ui-playground/content/design/components/emptyScreen.customIcon.tsx
+++ /dev/null
@@ -1,18 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { EmptyScreen } from "@calcom/ui/components/empty-screen";
-
-export const CustomIconExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <EmptyScreen
- Icon="user"
- iconClassName="text-emphasis h-12 w-12"
- headline="No team members"
- description="Add team members to collaborate"
- buttonText="Add Members"
- buttonOnClick={() => alert("Add Members clicked")}
- />
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/emptyScreen.htmlContent.tsx b/apps/ui-playground/content/design/components/emptyScreen.htmlContent.tsx
deleted file mode 100644
index a51833bc0dc..00000000000
--- a/apps/ui-playground/content/design/components/emptyScreen.htmlContent.tsx
+++ /dev/null
@@ -1,28 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { EmptyScreen } from "@calcom/ui/components/empty-screen";
-
-export const HtmlContentExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <EmptyScreen
- Icon="info"
- headline={
- <span className="text-emphasis">
- Custom Headline with <strong>HTML</strong>
- </span>
- }
- description={
- <div className="text-subtle space-y-2">
- <p>This is a custom description with multiple paragraphs.</p>
- <p>
- You can include <em>any HTML content</em> here.
- </p>
- </div>
- }
- buttonText="Learn More"
- buttonOnClick={() => alert("Learn More clicked")}
- />
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/emptyScreen.mdx b/apps/ui-playground/content/design/components/emptyScreen.mdx
deleted file mode 100644
index 94ba61fbd32..00000000000
--- a/apps/ui-playground/content/design/components/emptyScreen.mdx
+++ /dev/null
@@ -1,41 +0,0 @@
----
-title: Empty Screen
----
-import { EmptyScreen } from "@calcom/ui/components/empty-screen";
-import { RenderComponentWithSnippet } from "@/app/components/render"
-import { Row } from "@/app/components/row"
-import { BasicExample } from "./emptyScreen.basic"
-import { CustomIconExample } from "./emptyScreen.customIcon"
-import { RawButtonExample } from "./emptyScreen.rawButton"
-import { BorderExample } from "./emptyScreen.border"
-import { HtmlContentExample } from "./emptyScreen.htmlContent"
-
-## Basic Usage
-
-A simple empty screen with an icon, headline, description, and action button.
-
-<BasicExample/>
-
-## Custom Icon
-
-Empty screen with a custom icon and styling.
-
-<CustomIconExample/>
-
-## Raw Button
-
-Empty screen with custom button layout.
-
-<RawButtonExample/>
-
-## Border Variations
-
-Empty screen with different border styles.
-
-<BorderExample/>
-
-## HTML Content
-
-Empty screen with custom HTML content in headline and description.
-
-<HtmlContentExample/>
diff --git a/apps/ui-playground/content/design/components/emptyScreen.rawButton.tsx b/apps/ui-playground/content/design/components/emptyScreen.rawButton.tsx
deleted file mode 100644
index 28e3ee740bb..00000000000
--- a/apps/ui-playground/content/design/components/emptyScreen.rawButton.tsx
+++ /dev/null
@@ -1,26 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { Button } from "@calcom/ui/components/button";
-import { EmptyScreen } from "@calcom/ui/components/empty-screen";
-
-export const RawButtonExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <EmptyScreen
- Icon="link"
- headline="No links found"
- description="Create a new link to share"
- buttonRaw={
- <div className="flex space-x-2">
- <Button color="primary" onClick={() => alert("Create Link clicked")}>
- Create Link
- </Button>
- <Button color="secondary" onClick={() => alert("Import Links clicked")}>
- Import Links
- </Button>
- </div>
- }
- />
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/form.addOns.tsx b/apps/ui-playground/content/design/components/form.addOns.tsx
deleted file mode 100644
index 74883658f13..00000000000
--- a/apps/ui-playground/content/design/components/form.addOns.tsx
+++ /dev/null
@@ -1,67 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-import { useForm } from "react-hook-form";
-
-import { Button } from "@calcom/ui/components/button";
-import { InputField } from "@calcom/ui/components/form";
-import { Icon } from "@calcom/ui/components/icon";
-
-type FormValues = {
- website: string;
- githubUsername: string;
- customDomain: string;
-};
-
-export const AddOnsExample: React.FC = () => {
- const form = useForm<FormValues>({
- defaultValues: {
- website: "",
- githubUsername: "",
- customDomain: "",
- },
- });
-
- const onSubmit = (data: FormValues) => {
- console.log("Form submitted:", data);
- };
-
- return (
- <RenderComponentWithSnippet>
- <form onSubmit={form.handleSubmit(onSubmit)} className="space-y-4">
- <InputField
- label="Website"
- addOnLeading="https://"
- {...form.register("website")}
- error={form.formState.errors.website?.message}
- />
- <InputField
- label="Website"
- addOnLeading="apple.cal.com/team/seeded-team/"
- {...form.register("website")}
- error={form.formState.errors.website?.message}
- />
- <InputField
- label="GitHub Username"
- addOnLeading={<Icon name="github" className="text-subtle h-4 w-4" />}
- {...form.register("githubUsername")}
- error={form.formState.errors.githubUsername?.message}
- />
- <InputField
- label="Custom Domain"
- addOnSuffix=".cal.com"
- {...form.register("customDomain")}
- error={form.formState.errors.customDomain?.message}
- />
- <div className="flex justify-end space-x-2">
- <Button color="minimal" type="button" onClick={() => form.reset()}>
- Reset
- </Button>
- <Button type="submit" loading={form.formState.isSubmitting}>
- Submit
- </Button>
- </div>
- </form>
- </RenderComponentWithSnippet>
- );
-};
diff --git a/apps/ui-playground/content/design/components/form.basic.tsx b/apps/ui-playground/content/design/components/form.basic.tsx
deleted file mode 100644
index 1768e7d50b0..00000000000
--- a/apps/ui-playground/content/design/components/form.basic.tsx
+++ /dev/null
@@ -1,59 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-import { useForm } from "react-hook-form";
-
-import { Button } from "@calcom/ui/components/button";
-import { InputField } from "@calcom/ui/components/form";
-
-type FormValues = {
- username: string;
- email: string;
- password: string;
-};
-
-export const BasicExample: React.FC = () => {
- const form = useForm<FormValues>({
- defaultValues: {
- username: "",
- email: "",
- password: "",
- },
- });
-
- const onSubmit = (data: FormValues) => {
- console.log("Form submitted:", data);
- };
-
- return (
- <RenderComponentWithSnippet>
- <form onSubmit={form.handleSubmit(onSubmit)} className="space-y-4">
- <InputField
- label="Username"
- {...form.register("username")}
- error={form.formState.errors.username?.message}
- />
- <InputField
- label="Email"
- type="email"
- {...form.register("email")}
- error={form.formState.errors.email?.message}
- />
- <InputField
- label="Password"
- type="password"
- {...form.register("password")}
- error={form.formState.errors.password?.message}
- />
- <div className="flex justify-end space-x-2">
- <Button color="minimal" type="button" onClick={() => form.reset()}>
- Reset
- </Button>
- <Button type="submit" loading={form.formState.isSubmitting}>
- Submit
- </Button>
- </div>
- </form>
- </RenderComponentWithSnippet>
- );
-};
diff --git a/apps/ui-playground/content/design/components/form.mdx b/apps/ui-playground/content/design/components/form.mdx
deleted file mode 100644
index e49856bf058..00000000000
--- a/apps/ui-playground/content/design/components/form.mdx
+++ /dev/null
@@ -1,26 +0,0 @@
----
-title: Form
----
-import { RenderComponentWithSnippet } from "@/app/components/render"
-import { Row } from "@/app/components/row"
-import { BasicExample } from "./form.basic"
-import { AddOnsExample } from "./form.addOns"
-import { SpecialFieldsExample } from "./form.specialFields"
-
-## Basic Fields
-
-Basic form fields with validation using React Hook Form and Zod.
-
-<BasicExample/>
-
-## Fields with Add-ons
-
-Form fields with leading and trailing add-ons.
-
-<AddOnsExample/>
-
-## Number and Special Fields
-
-Form fields for numbers and special input types.
-
-<SpecialFieldsExample/>
diff --git a/apps/ui-playground/content/design/components/form.specialFields.tsx b/apps/ui-playground/content/design/components/form.specialFields.tsx
deleted file mode 100644
index 86dd9258e1b..00000000000
--- a/apps/ui-playground/content/design/components/form.specialFields.tsx
+++ /dev/null
@@ -1,53 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-import { useForm } from "react-hook-form";
-
-import { Button } from "@calcom/ui/components/button";
-import { InputField } from "@calcom/ui/components/form";
-
-type FormValues = {
- age?: number;
- phone?: string;
-};
-
-export const SpecialFieldsExample: React.FC = () => {
- const form = useForm<FormValues>({
- defaultValues: {
- age: undefined,
- phone: "",
- },
- });
-
- const onSubmit = (data: FormValues) => {
- console.log("Form submitted:", data);
- };
-
- return (
- <RenderComponentWithSnippet>
- <form onSubmit={form.handleSubmit(onSubmit)} className="space-y-4">
- <InputField
- label="Age"
- type="number"
- {...form.register("age", { valueAsNumber: true })}
- error={form.formState.errors.age?.message}
- />
- <InputField
- label="Phone"
- type="tel"
- addOnLeading="+"
- {...form.register("phone")}
- error={form.formState.errors.phone?.message}
- />
- <div className="flex justify-end space-x-2">
- <Button color="minimal" type="button" onClick={() => form.reset()}>
- Reset
- </Button>
- <Button type="submit" loading={form.formState.isSubmitting}>
- Submit
- </Button>
- </div>
- </form>
- </RenderComponentWithSnippet>
- );
-};
diff --git a/apps/ui-playground/content/design/components/input.mdx b/apps/ui-playground/content/design/components/input.mdx
deleted file mode 100644
index b95fb005bf2..00000000000
--- a/apps/ui-playground/content/design/components/input.mdx
+++ /dev/null
@@ -1,35 +0,0 @@
----
-title: Input
-airtableId: rec2yv97ak5hv3kIL
----
-import { Input } from "@calcom/ui/components/form"
-import { RenderComponentWithSnippet } from "@/app/components/render"
-import { Row } from "@/app/components/row"
-import { StatesExample } from "./input.states"
-import { TypesExample } from "./input.types"
-import { WidthsExample } from "./input.widths"
-import { ValuesExample } from "./input.values"
-
-## States
-
-Input fields in different states: default, disabled, and readonly.
-
-<StatesExample/>
-
-## Types
-
-Different types of input fields for various data types.
-
-<TypesExample/>
-
-## Widths
-
-Input fields with different width configurations.
-
-<WidthsExample/>
-
-## With Values
-
-Input fields with default values and placeholders.
-
-<ValuesExample/>
diff --git a/apps/ui-playground/content/design/components/input.states.tsx b/apps/ui-playground/content/design/components/input.states.tsx
deleted file mode 100644
index f63285e7741..00000000000
--- a/apps/ui-playground/content/design/components/input.states.tsx
+++ /dev/null
@@ -1,37 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { Input } from "@calcom/ui/components/form";
-
-const states = ["default", "disabled", "readonly"] as const;
-const sizes = ["sm", "md"] as const;
-
-export const StatesExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="space-y-6">
- <div className="space-y-4">
- {states.map((state) => (
- <div key={state} className="flex flex-col space-y-2">
- <h3 className="text-emphasis text-sm capitalize">{state}</h3>
- <div className="flex flex-wrap items-center gap-4">
- {sizes.map((size) => (
- <div key={size} className="flex flex-col items-center gap-2">
- <Input
- type="text"
- placeholder={`${state} input`}
- disabled={state === "disabled"}
- readOnly={state === "readonly"}
- size={size}
- isFullWidth={false}
- />
- <span className="text-subtle text-xs">{size}</span>
- </div>
- ))}
- </div>
- </div>
- ))}
- </div>
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/input.types.tsx b/apps/ui-playground/content/design/components/input.types.tsx
deleted file mode 100644
index e9cbc4e3fbe..00000000000
--- a/apps/ui-playground/content/design/components/input.types.tsx
+++ /dev/null
@@ -1,46 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { Input } from "@calcom/ui/components/form";
-
-const types = ["text", "email", "password", "number", "tel", "url", "search"] as const;
-const sizes = ["sm", "md"] as const;
-
-export const TypesExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="space-y-6">
- <div className="space-y-4">
- {types.map((type) => (
- <div key={type} className="flex flex-col space-y-2">
- <h3 className="text-emphasis text-sm capitalize">{type}</h3>
- <div className="flex flex-wrap items-center gap-4">
- {sizes.map((size) => (
- <div key={size} className="flex flex-col items-center gap-2">
- <Input
- type={type}
- placeholder={`Enter ${type}...`}
- defaultValue={
- type === "email"
- : type === "url"
- ? "https://cal.com"
- : type === "number"
- ? "42"
- : type === "tel"
- ? "+1234567890"
- : ""
- }
- size={size}
- isFullWidth={false}
- />
- <span className="text-subtle text-xs">{size}</span>
- </div>
- ))}
- </div>
- </div>
- ))}
- </div>
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/input.values.tsx b/apps/ui-playground/content/design/components/input.values.tsx
deleted file mode 100644
index c6835482c64..00000000000
--- a/apps/ui-playground/content/design/components/input.values.tsx
+++ /dev/null
@@ -1,31 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { Input } from "@calcom/ui/components/form";
-
-const sizes = ["sm", "md"] as const;
-
-export const ValuesExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="space-y-6">
- <div className="space-y-4">
- {sizes.map((size) => (
- <div key={size} className="flex flex-col space-y-2">
- <h3 className="text-emphasis text-sm">Size: {size}</h3>
- <div className="space-y-4">
- <div className="flex flex-col space-y-2">
- <h4 className="text-subtle text-xs">Default Value</h4>
- <Input type="text" defaultValue="Default text value" size={size} />
- </div>
- <div className="flex flex-col space-y-2">
- <h4 className="text-subtle text-xs">Placeholder</h4>
- <Input type="text" placeholder="Placeholder text" size={size} />
- </div>
- </div>
- </div>
- ))}
- </div>
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/input.widths.tsx b/apps/ui-playground/content/design/components/input.widths.tsx
deleted file mode 100644
index 804f31f4661..00000000000
--- a/apps/ui-playground/content/design/components/input.widths.tsx
+++ /dev/null
@@ -1,31 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { Input } from "@calcom/ui/components/form";
-
-const sizes = ["sm", "md"] as const;
-
-export const WidthsExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="space-y-6">
- <div className="space-y-4">
- {sizes.map((size) => (
- <div key={size} className="flex flex-col space-y-2">
- <h3 className="text-emphasis text-sm">Size: {size}</h3>
- <div className="space-y-4">
- <div className="flex flex-col space-y-2">
- <h4 className="text-subtle text-xs">Full Width</h4>
- <Input type="text" placeholder="Full width input" size={size} isFullWidth />
- </div>
- <div className="flex flex-col space-y-2">
- <h4 className="text-subtle text-xs">Auto Width</h4>
- <Input type="text" placeholder="Auto width input" size={size} isFullWidth={false} />
- </div>
- </div>
- </div>
- ))}
- </div>
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/multiInputField.customization.tsx b/apps/ui-playground/content/design/components/multiInputField.customization.tsx
deleted file mode 100644
index efa4bf1e448..00000000000
--- a/apps/ui-playground/content/design/components/multiInputField.customization.tsx
+++ /dev/null
@@ -1,71 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-import { useForm, FormProvider } from "react-hook-form";
-
-import { MultiOptionInput } from "@calcom/ui/components/form";
-
-type FormValues = {
- customPlaceholders: Array<{ label: string; id: string }>;
- noMoveButtons: Array<{ label: string; id: string }>;
- customLabel: Array<{ label: string; id: string }>;
- keyValuePairs: Array<{ label: string; value: string; id: string }>;
-};
-
-export const CustomizationExample: React.FC = () => {
- const methods = useForm<FormValues>();
-
- return (
- <RenderComponentWithSnippet>
- <FormProvider {...methods}>
- <div className="space-y-6">
- <div className="space-y-4">
- <div className="flex flex-col space-y-2">
- <h3 className="text-emphasis text-sm">Key-Value Pairs</h3>
- <p className="text-subtle text-xs">Allows inputting keys and values</p>
- <MultiOptionInput<FormValues>
- fieldArrayName="keyValuePairs"
- keyValueMode
- keyLabel="Environment Variable"
- valueLabel="Value"
- optionPlaceholders={["NODE_ENV", "PORT", "DATABASE_URL"]}
- valuePlaceholders={["production", "3000", "postgres://..."]}
- defaultNumberOfOptions={3}
- keyValueDelimiters={[":", "="]}
- />
- </div>
-
- <div className="flex flex-col space-y-2">
- <h3 className="text-emphasis text-sm">Custom Placeholders</h3>
- <MultiOptionInput<FormValues>
- fieldArrayName="customPlaceholders"
- optionPlaceholders={["Enter your name", "Enter your email", "Enter your phone"]}
- defaultNumberOfOptions={3}
- />
- </div>
-
- <div className="flex flex-col space-y-2">
- <h3 className="text-emphasis text-sm">Without Move Buttons</h3>
- <MultiOptionInput<FormValues>
- fieldArrayName="noMoveButtons"
- optionPlaceholders={["Static option 1", "Static option 2"]}
- defaultNumberOfOptions={2}
- showMoveButtons={false}
- />
- </div>
-
- <div className="flex flex-col space-y-2">
- <h3 className="text-emphasis text-sm">Custom Add Button Label</h3>
- <MultiOptionInput<FormValues>
- fieldArrayName="customLabel"
- optionPlaceholders={["Social media link"]}
- defaultNumberOfOptions={1}
- addOptionLabel="Add another social media link"
- />
- </div>
- </div>
- </div>
- </FormProvider>
- </RenderComponentWithSnippet>
- );
-};
diff --git a/apps/ui-playground/content/design/components/multiInputField.paste.tsx b/apps/ui-playground/content/design/components/multiInputField.paste.tsx
deleted file mode 100644
index ea6fe03f96b..00000000000
--- a/apps/ui-playground/content/design/components/multiInputField.paste.tsx
+++ /dev/null
@@ -1,76 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-import { useForm, FormProvider } from "react-hook-form";
-
-import { MultiOptionInput } from "@calcom/ui/components/form";
-
-type FormValues = {
- newlineOptions: Array<{ label: string; id: string }>;
- commaOptions: Array<{ label: string; id: string }>;
- customOptions: Array<{ label: string; id: string }>;
- keyValueOptions: Array<{ label: string; value: string; id: string }>;
-};
-
-export const PasteExample: React.FC = () => {
- const methods = useForm<FormValues>();
-
- return (
- <RenderComponentWithSnippet>
- <FormProvider {...methods}>
- <div className="space-y-6">
- <div className="space-y-4">
- <div className="flex flex-col space-y-2">
- <h3 className="text-emphasis text-sm">Default Delimiters (Newline and Comma)</h3>
- <p className="text-subtle text-xs">
- Try pasting: &ldquo;Option 1, Option 2&rdquo; or multiple lines
- </p>
- <MultiOptionInput<FormValues>
- fieldArrayName="newlineOptions"
- optionPlaceholders={["Paste here..."]}
- defaultNumberOfOptions={1}
- />
- </div>
-
- <div className="flex flex-col space-y-2">
- <h3 className="text-emphasis text-sm">Comma Only Delimiter</h3>
- <p className="text-subtle text-xs">Try pasting: &ldquo;First, Second, Third&rdquo;</p>
- <MultiOptionInput<FormValues>
- fieldArrayName="commaOptions"
- optionPlaceholders={["Paste here..."]}
- defaultNumberOfOptions={1}
- pasteDelimiters={[","]}
- />
- </div>
-
- <div className="flex flex-col space-y-2">
- <h3 className="text-emphasis text-sm">Key-Value Pair Paste Support</h3>
- <p className="text-subtle text-xs">
- Try pasting: &ldquo;NODE_ENV=production&rdquo; or &ldquo;KEY1:value1, KEY2:value2&rdquo;
- </p>
- <MultiOptionInput<FormValues>
- fieldArrayName="keyValueOptions"
- keyValueMode
- optionPlaceholders={["Key..."]}
- valuePlaceholders={["Value..."]}
- defaultNumberOfOptions={1}
- keyValueDelimiters={[":", "="]}
- />
- </div>
-
- <div className="flex flex-col space-y-2">
- <h3 className="text-emphasis text-sm">Custom Delimiters (Semicolon and Pipe)</h3>
- <p className="text-subtle text-xs">Try pasting: &ldquo;One;Two|Three&rdquo;</p>
- <MultiOptionInput<FormValues>
- fieldArrayName="customOptions"
- optionPlaceholders={["Paste here..."]}
- defaultNumberOfOptions={1}
- pasteDelimiters={[";", "|"]}
- />
- </div>
- </div>
- </div>
- </FormProvider>
- </RenderComponentWithSnippet>
- );
-};
diff --git a/apps/ui-playground/content/design/components/multiInputField.states.tsx b/apps/ui-playground/content/design/components/multiInputField.states.tsx
deleted file mode 100644
index 82f4c206782..00000000000
--- a/apps/ui-playground/content/design/components/multiInputField.states.tsx
+++ /dev/null
@@ -1,55 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-import { useForm, FormProvider } from "react-hook-form";
-
-import { MultiOptionInput } from "@calcom/ui/components/form";
-
-type FormValues = {
- defaultOptions: Array<{ label: string; id: string }>;
- disabledOptions: Array<{ label: string; id: string }>;
- minOptions: Array<{ label: string; id: string }>;
-};
-
-export const StatesExample: React.FC = () => {
- const methods = useForm<FormValues>();
-
- return (
- <RenderComponentWithSnippet>
- <FormProvider {...methods}>
- <div className="space-y-6">
- <div className="space-y-4">
- <div className="flex flex-col space-y-2">
- <h3 className="text-emphasis text-sm">Default State</h3>
- <MultiOptionInput<FormValues>
- fieldArrayName="defaultOptions"
- optionPlaceholders={["First option", "Second option", "Third option"]}
- defaultNumberOfOptions={3}
- />
- </div>
-
- <div className="flex flex-col space-y-2">
- <h3 className="text-emphasis text-sm">Disabled State</h3>
- <MultiOptionInput<FormValues>
- fieldArrayName="disabledOptions"
- optionPlaceholders={["Disabled option 1", "Disabled option 2"]}
- defaultNumberOfOptions={2}
- disabled
- />
- </div>
-
- <div className="flex flex-col space-y-2">
- <h3 className="text-emphasis text-sm">Minimum Options (2)</h3>
- <MultiOptionInput<FormValues>
- fieldArrayName="minOptions"
- optionPlaceholders={["Required option 1", "Required option 2", "Optional option"]}
- defaultNumberOfOptions={3}
- minOptions={2}
- />
- </div>
- </div>
- </div>
- </FormProvider>
- </RenderComponentWithSnippet>
- );
-};
diff --git a/apps/ui-playground/content/design/components/navigation.items.tsx b/apps/ui-playground/content/design/components/navigation.items.tsx
deleted file mode 100644
index cc716d34ee3..00000000000
--- a/apps/ui-playground/content/design/components/navigation.items.tsx
+++ /dev/null
@@ -1,92 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { Badge } from "@calcom/ui/components/badge";
-import { NavigationItem } from "@calcom/ui/components/navigation";
-
-export const ItemsExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="space-y-4 md:w-64">
- <div className="space-y-1">
- <h3 className="text-emphasis mb-2 text-sm font-medium">Basic Items</h3>
- <NavigationItem
- item={{
- name: "Event Types",
- href: "#event-types",
- icon: "link",
- }}
- />
- <NavigationItem
- item={{
- name: "Availability",
- href: "#availability",
- icon: "clock",
- }}
- />
- </div>
-
- <div className="space-y-1">
- <h3 className="text-emphasis mb-2 text-sm font-medium">With Badge</h3>
- <NavigationItem
- item={{
- name: "Bookings",
- href: "#bookings",
- icon: "calendar",
- badge: <Badge variant="blue">3</Badge>,
- }}
- />
- <NavigationItem
- item={{
- name: "Teams",
- href: "#teams",
- icon: "users",
- badge: <Badge variant="gray">New</Badge>,
- }}
- />
- </div>
-
- <div className="space-y-1">
- <h3 className="text-emphasis mb-2 text-sm font-medium">Active State</h3>
- <NavigationItem
- item={{
- name: "Event Types",
- href: "#event-types",
- icon: "link",
- isCurrent: true,
- }}
- />
- <NavigationItem
- item={{
- name: "Availability",
- href: "#availability",
- icon: "clock",
- badge: <Badge variant="blue">3</Badge>,
- isCurrent: true,
- }}
- />
-
- <NavigationItem
- item={{
- name: "Apps",
- href: "#apps",
- icon: "grid-3x3",
- isCurrent: true,
- isExpanded: true,
- child: [
- {
- name: "App Store",
- href: "#apps/store",
- isCurrent: true,
- },
- {
- name: "Installed Apps",
- href: "#apps/installed",
- },
- ],
- }}
- />
- </div>
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/navigation.mdx b/apps/ui-playground/content/design/components/navigation.mdx
deleted file mode 100644
index 093eb207baf..00000000000
--- a/apps/ui-playground/content/design/components/navigation.mdx
+++ /dev/null
@@ -1,20 +0,0 @@
----
-title: Navigation
-airtableId: recwHio1ktKQOdXGL
----
-import { RenderComponentWithSnippet } from "@/app/components/render"
-import { Row } from "@/app/components/row"
-// import { SidebarExample } from "./navigation.sidebar.tsx"
-import { ItemsExample } from "./navigation.items.tsx"
-
-{/* ## Sidebar Navigation
-
-Full sidebar navigation with logo, sections, and footer.
-
-<SidebarExample/> */}
-
-## Navigation Items
-
-Individual navigation items with different states and variants.
-
-<ItemsExample/>
diff --git a/apps/ui-playground/content/design/components/navigation.sidebar.tsx b/apps/ui-playground/content/design/components/navigation.sidebar.tsx
deleted file mode 100644
index c5cdcc1aab2..00000000000
--- a/apps/ui-playground/content/design/components/navigation.sidebar.tsx
+++ /dev/null
@@ -1,204 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-import { useState } from "react";
-
-import { NavigationItem } from "@calcom/ui";
-
-export const SidebarExample: React.FC = () => {
- const [isDeelExpanded, setIsDeelExpanded] = useState(true);
-
- return (
- <RenderComponentWithSnippet>
- <div className="bg-muted border-muted flex w-60 flex-col border p-3">
- <NavigationItem
- item={{
- name: "Event types",
- href: "#event-types",
- icon: "link",
- }}
- />
- <NavigationItem
- item={{
- name: "Bookings",
- href: "#bookings",
- icon: "users",
- isCurrent: true,
- isExpanded: true,
- child: [
- { name: "Label", href: "#label-1" },
- { name: "Label", href: "#label-2" },
- { name: "Label", href: "#label-3" },
- { name: "Label", href: "#label-4" },
- ],
- }}
- />
- <NavigationItem
- item={{
- name: "Insights",
- href: "#insights",
- icon: "chart-line",
- }}
- />
- <NavigationItem
- item={{
- name: "Routing forms",
- href: "#routing-forms",
- icon: "shuffle",
- }}
- />
- <NavigationItem
- item={{
- name: "Workflows",
- href: "#workflows",
- icon: "zap",
- }}
- />
- <div className="text-subtle mt-4 px-2 text-sm">Manage</div>
- <NavigationItem
- item={{
- name: "Members",
- href: "#members",
- icon: "users",
- }}
- />
- <NavigationItem
- item={{
- name: "Apps",
- href: "#apps",
- icon: "grid-3x3",
- }}
- />
- <NavigationItem
- item={{
- name: "Availability",
- href: "#availability",
- icon: "clock",
- }}
- />
- <div className="mt-auto" />
- <NavigationItem
- item={{
- name: "Help",
- href: "#help",
- icon: "circle-help",
- }}
- />
- <NavigationItem
- item={{
- name: "Settings",
- href: "#settings",
- icon: "settings",
- }}
- />
- </div>
- <div className="bg-muted border-muted flex w-60 flex-col border p-3">
- <NavigationItem
- item={{
- name: "Back",
- href: "#back",
- icon: "chevron-left",
- }}
- />
- <NavigationItem
- item={{
- name: "Appearance",
- href: "#appearance",
- }}
- />
- <NavigationItem
- item={{
- name: "Out of office",
- href: "#out-of-office",
- }}
- />
- <NavigationItem
- item={{
- name: "Security",
- icon: "shield",
- isExpanded: true,
- child: [
- {
- name: "Password",
- href: "#password",
- },
- {
- name: "Impersonation",
- href: "#impersonation",
- },
- {
- name: "Two factor auth",
- href: "#2fa",
- },
- ],
- }}
- />
-
- <NavigationItem
- item={{
- name: "Billing",
- icon: "credit-card",
- isExpanded: true,
- child: [
- {
- name: "Manage billing",
- href: "#manage-billing",
- },
- ],
- }}
- />
-
- <NavigationItem
- item={{
- name: "Developer",
- icon: "code",
- isExpanded: true,
- child: [
- {
- name: "Webhooks",
- href: "#webhooks",
- },
- {
- name: "API Keys",
- href: "#api-keys",
- },
- ],
- }}
- />
-
- <NavigationItem
- item={{
- name: "Teams",
- icon: "users",
- }}
- />
- <NavigationItem
- item={{
- name: "Deel",
- icon: isDeelExpanded ? "chevron-down" : "chevron-right",
- isExpanded: isDeelExpanded,
- onToggle: () => setIsDeelExpanded(!isDeelExpanded),
- child: [
- { name: "Profile", href: "#profile" },
- { name: "Members", href: "#members" },
- { name: "Event Types", href: "#event-types" },
- { name: "Appearance", href: "#appearance" },
- { name: "Billing", href: "#billing" },
- { name: "Booking Limits", href: "#booking-limits" },
- { name: "Attributes", href: "#attributes" },
- { name: "Segments", href: "#segments", isCurrent: true },
- ],
- }}
- />
-
- <NavigationItem
- item={{
- name: "Add team",
- href: "#add-team",
- icon: "plus",
- }}
- />
- </div>
- </RenderComponentWithSnippet>
- );
-};
diff --git a/apps/ui-playground/content/design/components/pagination.mdx b/apps/ui-playground/content/design/components/pagination.mdx
deleted file mode 100644
index e0eb078a589..00000000000
--- a/apps/ui-playground/content/design/components/pagination.mdx
+++ /dev/null
@@ -1,42 +0,0 @@
----
-title: Pagination
----
-
-import { BasicExample, CustomPageSizesExample, LargeDatasetExample, WithCallbacksExample } from "./pagination";
-
-# Pagination
-
-The Pagination component provides a consistent way to handle data pagination across the application. It includes rows per page selection and navigation controls.
-
-## Installation
-
-```ts
-import { Pagination } from "@calcom/ui";
-```
-
-## Examples
-
-### Basic Usage
-
-A basic pagination component with default settings.
-
-<BasicExample />
-
-### Custom Page Sizes
-
-Customize the available page size options.
-
-<CustomPageSizesExample />
-
-### With Navigation Callbacks
-
-Use `onNext` and `onPrevious` callbacks to perform additional actions when navigating pages.
-
-<WithCallbacksExample />
-
-### Large Dataset
-
-The pagination component handles large datasets efficiently.
-
-<LargeDatasetExample />
-
diff --git a/apps/ui-playground/content/design/components/pagination.tsx b/apps/ui-playground/content/design/components/pagination.tsx
deleted file mode 100644
index f81e8988c18..00000000000
--- a/apps/ui-playground/content/design/components/pagination.tsx
+++ /dev/null
@@ -1,97 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-import { useState } from "react";
-
-import { Pagination } from "@calcom/ui/components/pagination";
-
-export const BasicExample = () => {
- const [currentPage, setCurrentPage] = useState(1);
- const [pageSize, setPageSize] = useState(25);
- const totalItems = 61;
-
- return (
- <RenderComponentWithSnippet>
- <div className="w-full">
- <Pagination
- currentPage={currentPage}
- pageSize={pageSize}
- totalItems={totalItems}
- onPageChange={setCurrentPage}
- onPageSizeChange={setPageSize}
- />
- </div>
- </RenderComponentWithSnippet>
- );
-};
-
-export const CustomPageSizesExample = () => {
- const [currentPage, setCurrentPage] = useState(1);
- const [pageSize, setPageSize] = useState(5);
- const totalItems = 25;
-
- return (
- <RenderComponentWithSnippet>
- <div className="w-full">
- <Pagination
- currentPage={currentPage}
- pageSize={pageSize}
- totalItems={totalItems}
- onPageChange={setCurrentPage}
- onPageSizeChange={setPageSize}
- pageSizeOptions={[5, 10, 15, 25]}
- />
- </div>
- </RenderComponentWithSnippet>
- );
-};
-
-export const WithCallbacksExample = () => {
- const [currentPage, setCurrentPage] = useState(1);
- const [pageSize, setPageSize] = useState(25);
- const totalItems = 100;
-
- const handleNext = () => {
- console.log("Next page clicked");
- };
-
- const handlePrevious = () => {
- console.log("Previous page clicked");
- };
-
- return (
- <RenderComponentWithSnippet>
- <div className="w-full">
- <Pagination
- currentPage={currentPage}
- pageSize={pageSize}
- totalItems={totalItems}
- onPageChange={setCurrentPage}
- onPageSizeChange={setPageSize}
- onNext={handleNext}
- onPrevious={handlePrevious}
- />
- </div>
- </RenderComponentWithSnippet>
- );
-};
-
-export const LargeDatasetExample = () => {
- const [currentPage, setCurrentPage] = useState(1);
- const [pageSize, setPageSize] = useState(25);
- const totalItems = 1000;
-
- return (
- <RenderComponentWithSnippet>
- <div className="w-full">
- <Pagination
- currentPage={currentPage}
- pageSize={pageSize}
- totalItems={totalItems}
- onPageChange={setCurrentPage}
- onPageSizeChange={setPageSize}
- />
- </div>
- </RenderComponentWithSnippet>
- );
-};
diff --git a/apps/ui-playground/content/design/components/rangeslider.basic.tsx b/apps/ui-playground/content/design/components/rangeslider.basic.tsx
deleted file mode 100644
index a2908933981..00000000000
--- a/apps/ui-playground/content/design/components/rangeslider.basic.tsx
+++ /dev/null
@@ -1,72 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-import { useState } from "react";
-
-import { RangeSlider } from "@calcom/ui/components/form";
-
-export const BasicExample: React.FC = () => {
- const [singleValue, setSingleValue] = useState([50]);
- const [rangeValue, setRangeValue] = useState([20, 80]);
- const [steppedValue, setSteppedValue] = useState([25]);
-
- return (
- <RenderComponentWithSnippet>
- <div className="space-y-6 md:w-80">
- <div className="w-full max-w-[300px] space-y-6">
- <div className="space-y-2">
- <div className="flex justify-between">
- <span className="text-default text-sm">Single Value: {singleValue[0]}%</span>
- </div>
- <RangeSlider
- value={singleValue}
- onValueChange={setSingleValue}
- max={100}
- step={1}
- aria-label="Single value"
- />
- </div>
- </div>
- <div className="w-full max-w-[300px] space-y-6">
- <div className="space-y-2">
- <div className="flex justify-between">
- <span className="text-default text-sm">
- Range: {rangeValue[0]}% - {rangeValue[1]}%
- </span>
- </div>
- <RangeSlider
- value={rangeValue}
- onValueChange={setRangeValue}
- max={100}
- step={1}
- aria-label="Range"
- />
- </div>
- </div>
-
- <div className="w-full max-w-[300px] space-y-6">
- <div className="space-y-2">
- <div className="flex justify-between">
- <span className="text-default text-sm">Step Size 25: {steppedValue[0]}%</span>
- </div>
- <RangeSlider
- value={steppedValue}
- onValueChange={setSteppedValue}
- max={100}
- step={25}
- aria-label="Stepped"
- />
- </div>
- </div>
- <div className="w-full max-w-[300px] space-y-6">
- <div className="space-y-2">
- <div className="flex justify-between">
- <span className="text-default text-sm">Disabled: 50%</span>
- </div>
- <RangeSlider value={[50]} max={100} step={1} disabled aria-label="Disabled" />
- </div>
- </div>
- </div>
- </RenderComponentWithSnippet>
- );
-};
diff --git a/apps/ui-playground/content/design/components/rangeslider.mdx b/apps/ui-playground/content/design/components/rangeslider.mdx
deleted file mode 100644
index 6b1b7410afc..00000000000
--- a/apps/ui-playground/content/design/components/rangeslider.mdx
+++ /dev/null
@@ -1,22 +0,0 @@
----
-title: Range Slider
-airtableId: recPe8JPnGCVmjROA
----
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-import { Row } from "@/app/components/row";
-
-import { BasicExample } from "./rangeslider.basic.tsx";
-import { PopoverExample } from "./rangeslider.popover";
-
-## Basic
-
-Basic range slider for selecting numeric values.
-
-<BasicExample />
-
-## With Popover
-
-Range slider with a popover showing the current value.
-
-<PopoverExample />
diff --git a/apps/ui-playground/content/design/components/rangeslider.popover.tsx b/apps/ui-playground/content/design/components/rangeslider.popover.tsx
deleted file mode 100644
index 8805ed95487..00000000000
--- a/apps/ui-playground/content/design/components/rangeslider.popover.tsx
+++ /dev/null
@@ -1,71 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-import { useState } from "react";
-
-import { RangeSliderPopover } from "@calcom/ui/components/form";
-
-export const PopoverExample: React.FC = () => {
- const [defaultRange, setDefaultRange] = useState([15, 30]);
- const [customRange, setCustomRange] = useState([5, 20]);
- const [largeRange, setLargeRange] = useState([0, 100]);
-
- return (
- <RenderComponentWithSnippet>
- <div className="space-y-6 md:w-80">
- <div className="space-y-2">
- <h3 className="text-emphasis text-sm font-medium">Default Range (15-30 mins)</h3>
- <RangeSliderPopover
- triggerText="Total time"
- value={defaultRange}
- onChange={setDefaultRange}
- min={0}
- max={48}
- badgeVariant="default"
- inputSuffix="mins"
- />
- </div>
-
- <div className="space-y-2">
- <h3 className="text-emphasis text-sm font-medium">Custom Range with Success Badge (5-20 mins)</h3>
- <RangeSliderPopover
- triggerText="Meeting duration"
- value={customRange}
- onChange={setCustomRange}
- min={5}
- max={20}
- badgeVariant="success"
- />
- </div>
-
- <div className="space-y-2">
- <h3 className="text-emphasis text-sm font-medium">Large Range with Warning Badge (0-100 mins)</h3>
- <RangeSliderPopover
- triggerText="Extended duration"
- value={largeRange}
- onChange={setLargeRange}
- min={0}
- max={100}
- step={5}
- badgeVariant="warning"
- />
- </div>
-
- <div className="mt-4">
- <h4 className="text-default text-sm font-medium">Selected Values:</h4>
- <pre className="text-emphasis bg-subtle mt-2 rounded-md p-4 text-sm">
- {JSON.stringify(
- {
- defaultRange,
- customRange,
- largeRange,
- },
- null,
- 2
- )}
- </pre>
- </div>
- </div>
- </RenderComponentWithSnippet>
- );
-};
diff --git a/apps/ui-playground/content/design/components/section.basic.tsx b/apps/ui-playground/content/design/components/section.basic.tsx
deleted file mode 100644
index 5563890e15c..00000000000
--- a/apps/ui-playground/content/design/components/section.basic.tsx
+++ /dev/null
@@ -1,58 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-import { useState } from "react";
-
-import { Switch } from "@calcom/ui/components/form";
-import { Section } from "@calcom/ui/components/section";
-
-export const BasicExample = () => {
- const [isOpen, setIsOpen] = useState(true);
-
- return (
- <RenderComponentWithSnippet>
- <Section>
- <Section.Header
- title="Basic Section"
- description="This is a basic section with a title and description">
- <Switch size="sm" checked={isOpen} onCheckedChange={setIsOpen} />
- </Section.Header>
- {isOpen && (
- <Section.Content>
- <p>This is the main content of the section.</p>
- </Section.Content>
- )}
- </Section>
- </RenderComponentWithSnippet>
- );
-};
-
-export const BasicExampleSnippet = `
-"use client";
-
-import { useState } from "react";
-import { Section } from "@calcom/ui/components/section";
-import { Switch } from "@calcom/ui/components/form";
-
-const BasicSection = () => {
- const [isOpen, setIsOpen] = useState(true);
-
- return (
- <Section>
- <Section.Header
- title="Basic Section"
- description="This is a basic section with a title and description"
- >
- <Section.HeaderRight>
- <Switch size="sm" checked={isOpen} onCheckedChange={setIsOpen} />
- </Section.HeaderRight>
- </Section.Header>
- {isOpen && (
- <Section.Content>
- <p>This is the main content of the section.</p>
- </Section.Content>
- )}
- </Section>
- );
-};
-`;
diff --git a/apps/ui-playground/content/design/components/section.mdx b/apps/ui-playground/content/design/components/section.mdx
deleted file mode 100644
index b98257cf2d4..00000000000
--- a/apps/ui-playground/content/design/components/section.mdx
+++ /dev/null
@@ -1,40 +0,0 @@
----
-title: Section
----
-import { Section } from "@calcom/ui/components/section"
-import { RenderComponentWithSnippet } from "@/app/components/render"
-import { Row } from "@/app/components/row"
-import { BasicExample } from "./section.basic"
-import { WithIconExample } from "./section.withIcon"
-import { SubSectionExample } from "./section.subsection"
-
-## Basic Usage
-
-The Section component provides a structured way to organize content with a consistent visual hierarchy. It includes several subcomponents for different parts of the section.
-
-<BasicExample/>
-
-## With Icon
-
-Sections can include an icon in the header to provide visual context.
-
-<WithIconExample/>
-
-## SubSections
-
-Sections can contain subsections for organizing related content in a nested structure.
-
-<SubSectionExample/>
-
-## Components
-
-The Section component is composed of several subcomponents:
-
-- `Section` - The root container
-- `Section.Header` - Container for the section header
-- `Section.Title` - The section title
-- `Section.Description` - Optional description text
-- `Section.Content` - The main content area
-- `Section.SubSection` - A nested section
-- `Section.SubSectionHeader` - Header for a subsection
-- `Section.SubSectionContent` - Content area for a subsection
diff --git a/apps/ui-playground/content/design/components/section.subsection.tsx b/apps/ui-playground/content/design/components/section.subsection.tsx
deleted file mode 100644
index dbb461880dc..00000000000
--- a/apps/ui-playground/content/design/components/section.subsection.tsx
+++ /dev/null
@@ -1,151 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-import { useState } from "react";
-
-import { Input, Switch } from "@calcom/ui/components/form";
-import { Section } from "@calcom/ui/components/section";
-
-export const SubSectionExample = () => {
- const [isMainOpen, setIsMainOpen] = useState(true);
- const [isFirstSubsectionOpen, setIsFirstSubsectionOpen] = useState(true);
- const [isSecondSubsectionOpen, setIsSecondSubsectionOpen] = useState(true);
-
- return (
- <RenderComponentWithSnippet>
- <Section>
- <Section.Header
- icon="calendar"
- title="Section with Subsections"
- description="This section contains nested subsections">
- <Switch size="sm" checked={isMainOpen} onCheckedChange={setIsMainOpen} />
- </Section.Header>
- {isMainOpen && (
- <Section.Content>
- <Section.SubSection>
- <Section.SubSectionHeader icon="zap" title="Automatic Sync (Justify Start)" justify="start">
- <Switch size="sm" />
- </Section.SubSectionHeader>
- </Section.SubSection>
- <Section.SubSection>
- <Section.SubSectionHeader icon="user" title="Create new records for guests added">
- <Switch
- size="sm"
- checked={isFirstSubsectionOpen}
- onCheckedChange={setIsFirstSubsectionOpen}
- />
- </Section.SubSectionHeader>
- {isFirstSubsectionOpen && (
- <Section.SubSectionContent>
- <p>This is the content of the first subsection.</p>
- </Section.SubSectionContent>
- )}
- </Section.SubSection>
- <Section.SubSection>
- <Section.SubSectionHeader icon="settings" title="Open Settings">
- <Switch
- size="sm"
- checked={isSecondSubsectionOpen}
- onCheckedChange={setIsSecondSubsectionOpen}
- />
- </Section.SubSectionHeader>
- {isSecondSubsectionOpen && (
- <Section.SubSectionContent>
- <div className="flex gap-3 px-3 py-1.5">
- <div className="text-subtle w-full text-sm font-medium">Field Name</div>
- <div className="text-subtle w-full text-sm font-medium">Field Type</div>
- <div className="text-subtle w-full text-sm font-medium">Value</div>
- <div className="text-subtle w-full text-sm font-medium">When to Write</div>
- </div>
- <Section.SubSectionNested>
- <div className="flex gap-3">
- <Input value="Customer Name" className="w-full" />
- <Input value="Text" className="w-full" />
- <Input value="John Doe" className="w-full" />
- <Input value="On Create" className="w-full" />
- </div>
- </Section.SubSectionNested>
- </Section.SubSectionContent>
- )}
- </Section.SubSection>
- </Section.Content>
- )}
- </Section>
- </RenderComponentWithSnippet>
- );
-};
-
-export const SubSectionExampleSnippet = `
-"use client";
-
-import { useState } from "react";
-import { Section } from "@calcom/ui/components/section";
-import { Switch } from "@calcom/ui/components/form";
-
-const SectionWithSubsections = () => {
- const [isMainOpen, setIsMainOpen] = useState(true);
- const [isFirstSubsectionOpen, setIsFirstSubsectionOpen] = useState(true);
- const [isSecondSubsectionOpen, setIsSecondSubsectionOpen] = useState(true);
-
- return (
- <Section>
- <Section.Header
- icon="calendar"
- title="Section with Subsections"
- description="This section contains nested subsections">
- <Switch size="sm" checked={isMainOpen} onCheckedChange={setIsMainOpen} />
- </Section.Header>
- {isMainOpen && (
- <Section.Content>
- <Section.SubSection>
- <Section.SubSectionHeader icon="zap" title="Automatic Sync (Justify Start)" justify="start">
- <Switch size="sm" />
- </Section.SubSectionHeader>
- </Section.SubSection>
- <Section.SubSection>
- <Section.SubSectionHeader icon="user" title="Create new records for guests added">
- <Switch
- size="sm"
- checked={isFirstSubsectionOpen}
- onCheckedChange={setIsFirstSubsectionOpen}
- />
- </Section.SubSectionHeader>
- {isFirstSubsectionOpen && (
- <Section.SubSectionContent>
- <p>This is the content of the first subsection.</p>
- </Section.SubSectionContent>
- )}
- </Section.SubSection>
- <Section.SubSection>
- <Section.SubSectionHeader icon="settings" title="Open Settings">
- <Switch
- size="sm"
- checked={isSecondSubsectionOpen}
- onCheckedChange={setIsSecondSubsectionOpen}
- />
- </Section.SubSectionHeader>
- {isSecondSubsectionOpen && (
- <Section.SubSectionContent>
- <div className="flex gap-3 px-3 py-1.5">
- <div className="text-subtle w-full text-sm font-medium">Field Name</div>
- <div className="text-subtle w-full text-sm font-medium">Field Type</div>
- <div className="text-subtle w-full text-sm font-medium">Value</div>
- <div className="text-subtle w-full text-sm font-medium">When to Write</div>
- </div>
- <Section.SubSectionNested>
- <div className="flex gap-3">
- <Input value="Customer Name" className="w-full" />
- <Input value="Text" className="w-full" />
- <Input value="John Doe" className="w-full" />
- <Input value="On Create" className="w-full" />
- </div>
- </Section.SubSectionNested>
- </Section.SubSectionContent>
- )}
- </Section.SubSection>
- </Section.Content>
- )}
- </Section>
- );
-};
-`;
diff --git a/apps/ui-playground/content/design/components/section.withIcon.tsx b/apps/ui-playground/content/design/components/section.withIcon.tsx
deleted file mode 100644
index 7e1e0326305..00000000000
--- a/apps/ui-playground/content/design/components/section.withIcon.tsx
+++ /dev/null
@@ -1,63 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-import { useState } from "react";
-
-import { Switch } from "@calcom/ui/components/form";
-import { Section } from "@calcom/ui/components/section";
-
-export const WithIconExample = () => {
- const [isOpen, setIsOpen] = useState(true);
-
- return (
- <RenderComponentWithSnippet>
- <Section>
- <Section.Header
- icon="calendar"
- title="Section with Icon"
- description="This section includes an icon in the header. Toggle to see auto-animation.">
- <Switch size="sm" checked={isOpen} onCheckedChange={setIsOpen} />
- </Section.Header>
- {isOpen && (
- <Section.Content>
- <p>
- This section demonstrates how to include an icon in the header and uses FormKit auto-animate for
- smooth transitions when toggling content visibility.
- </p>
- </Section.Content>
- )}
- </Section>
- </RenderComponentWithSnippet>
- );
-};
-
-export const WithIconExampleSnippet = `
-"use client";
-
-import { useState } from "react";
-import { Section } from "@calcom/ui/components/section";
-import { Switch } from "@calcom/ui/components/form";
-
-const SectionWithIcon = () => {
- const [isOpen, setIsOpen] = useState(true);
-
- return (
- <Section>
- <Section.Header
- icon="calendar"
- title="Section with Icon"
- description="This section includes an icon in the header. Toggle to see auto-animation.">
- <Switch size="sm" checked={isOpen} onCheckedChange={setIsOpen} />
- </Section.Header>
- {isOpen && (
- <Section.Content>
- <p>
- This section demonstrates how to include an icon in the header and uses FormKit auto-animate for
- smooth transitions when toggling content visibility.
- </p>
- </Section.Content>
- )}
- </Section>
- );
-};
-`;
diff --git a/apps/ui-playground/content/design/components/select.async.tsx b/apps/ui-playground/content/design/components/select.async.tsx
deleted file mode 100644
index e6461cf60ac..00000000000
--- a/apps/ui-playground/content/design/components/select.async.tsx
+++ /dev/null
@@ -1,89 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-import { useCallback, useState } from "react";
-
-import { Select } from "@calcom/ui/components/form";
-import { showToast } from "@calcom/ui/components/toast";
-
-const countries = [
- { value: "us", label: "United States" },
- { value: "uk", label: "United Kingdom" },
- { value: "ca", label: "Canada" },
- { value: "fr", label: "France" },
- { value: "de", label: "Germany" },
- { value: "it", label: "Italy" },
- { value: "es", label: "Spain" },
- { value: "au", label: "Australia" },
- { value: "jp", label: "Japan" },
- { value: "br", label: "Brazil" },
-];
-
-// Simulate an API call with delay
-const searchCountries = (query: string) => {
- return new Promise<{ value: string; label: string }[]>((resolve) => {
- setTimeout(() => {
- const filtered = countries.filter((country) =>
- country.label.toLowerCase().includes(query.toLowerCase())
- );
- resolve(filtered);
- }, 1000); // Simulate network delay
- });
-};
-
-export const AsyncExample: React.FC = () => {
- const [asyncOptions, setAsyncOptions] = useState<{ value: string; label: string }[]>([]);
- const [isLoading, setIsLoading] = useState(false);
-
- const handleValueChange = (newValue: unknown, actionMeta: { action: string }) => {
- showToast(`Selected: ${JSON.stringify(newValue)}, Action: ${actionMeta.action}`, "success");
- };
-
- const loadOptions = useCallback(async (inputValue: string) => {
- setIsLoading(true);
- try {
- const results = await searchCountries(inputValue);
- setAsyncOptions(results);
- } catch (error) {
- showToast("Error loading options", "error");
- } finally {
- setIsLoading(false);
- }
- }, []);
-
- return (
- <RenderComponentWithSnippet>
- <div className="space-y-4 md:w-80">
- <Select
- options={asyncOptions}
- onInputChange={(value) => {
- if (value) {
- loadOptions(value);
- }
- }}
- isLoading={isLoading}
- placeholder="Search for a country..."
- noOptionsMessage={({ inputValue }) =>
- inputValue ? "No countries found" : "Start typing to search..."
- }
- onChange={handleValueChange}
- />
- <Select
- options={asyncOptions}
- onInputChange={(value) => {
- if (value) {
- loadOptions(value);
- }
- }}
- isLoading={isLoading}
- placeholder="Search for a country... (small)"
- noOptionsMessage={({ inputValue }) =>
- inputValue ? "No countries found" : "Start typing to search..."
- }
- onChange={handleValueChange}
- size="sm"
- />
- </div>
- </RenderComponentWithSnippet>
- );
-};
diff --git a/apps/ui-playground/content/design/components/select.basic.tsx b/apps/ui-playground/content/design/components/select.basic.tsx
deleted file mode 100644
index eab7e3da644..00000000000
--- a/apps/ui-playground/content/design/components/select.basic.tsx
+++ /dev/null
@@ -1,41 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-import { useState } from "react";
-
-import { Select } from "@calcom/ui/components/form";
-
-const options = [
- { value: "chocolate", label: "Chocolate" },
- { value: "strawberry", label: "Strawberry" },
- { value: "vanilla", label: "Vanilla" },
- { value: "mint", label: "Mint" },
- { value: "coffee", label: "Coffee" },
-];
-
-export const BasicExample: React.FC = () => {
- const [singleValue, setSingleValue] = useState<{ value: string; label: string } | null>(null);
-
- return (
- <RenderComponentWithSnippet>
- <div className="space-y-4 md:w-80">
- <Select
- options={options}
- value={singleValue}
- onChange={(newValue) => setSingleValue(newValue)}
- isClearable
- placeholder="Choose a flavor..."
- size="md"
- />
- <Select
- options={options}
- value={singleValue}
- onChange={(newValue) => setSingleValue(newValue)}
- isClearable
- placeholder="Small size select..."
- size="sm"
- />
- </div>
- </RenderComponentWithSnippet>
- );
-};
diff --git a/apps/ui-playground/content/design/components/select.disabled.tsx b/apps/ui-playground/content/design/components/select.disabled.tsx
deleted file mode 100644
index 34da21f6a8d..00000000000
--- a/apps/ui-playground/content/design/components/select.disabled.tsx
+++ /dev/null
@@ -1,27 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { Select, SelectField } from "@calcom/ui/components/form";
-
-const options = [
- { value: "chocolate", label: "Chocolate" },
- { value: "strawberry", label: "Strawberry" },
- { value: "vanilla", label: "Vanilla" },
- { value: "mint", label: "Mint" },
- { value: "coffee", label: "Coffee" },
-];
-
-export const DisabledExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="space-y-4 md:w-80">
- <Select options={options} isDisabled placeholder="This select is disabled..." />
- <SelectField
- label="Disabled Field"
- options={options}
- isDisabled
- placeholder="This field is disabled..."
- />
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/select.field.tsx b/apps/ui-playground/content/design/components/select.field.tsx
deleted file mode 100644
index d020cfd6bbe..00000000000
--- a/apps/ui-playground/content/design/components/select.field.tsx
+++ /dev/null
@@ -1,63 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { SelectField } from "@calcom/ui/components/form";
-import { showToast } from "@calcom/ui/components/toast";
-
-const options = [
- { value: "chocolate", label: "Chocolate" },
- { value: "strawberry", label: "Strawberry" },
- { value: "vanilla", label: "Vanilla" },
- { value: "mint", label: "Mint" },
- { value: "coffee", label: "Coffee" },
-];
-
-export const FieldExample: React.FC = () => {
- const handleValueChange = (newValue: unknown, actionMeta: { action: string }) => {
- showToast(`Selected: ${JSON.stringify(newValue)}, Action: ${actionMeta.action}`, "success");
- };
-
- return (
- <RenderComponentWithSnippet>
- <div className="space-y-4 md:w-80">
- <SelectField
- label="Flavor"
- options={options}
- onChange={handleValueChange}
- placeholder="Choose a flavor..."
- />
-
- <SelectField
- label="Required Field"
- options={options}
- required
- onChange={handleValueChange}
- placeholder="This field is required..."
- />
-
- <SelectField label="With Error" options={options} />
- </div>
- <div className="mt-4 space-y-4 md:w-80">
- <SelectField
- label="Flavor"
- options={options}
- onChange={handleValueChange}
- placeholder="Choose a flavor... (small)"
- size="sm"
- />
-
- <SelectField
- label="Required Field"
- options={options}
- required
- onChange={handleValueChange}
- placeholder="This field is required... (small)"
- size="sm"
- />
-
- <SelectField label="With Error (small)" options={options} size="sm" />
- </div>
- </RenderComponentWithSnippet>
- );
-};
diff --git a/apps/ui-playground/content/design/components/select.grouped.tsx b/apps/ui-playground/content/design/components/select.grouped.tsx
deleted file mode 100644
index f5744eb9fc8..00000000000
--- a/apps/ui-playground/content/design/components/select.grouped.tsx
+++ /dev/null
@@ -1,32 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { Select } from "@calcom/ui/components/form";
-
-const groupedOptions = [
- {
- label: "Fruits",
- options: [
- { value: "apple", label: "Apple" },
- { value: "banana", label: "Banana" },
- { value: "orange", label: "Orange" },
- ],
- },
- {
- label: "Vegetables",
- options: [
- { value: "carrot", label: "Carrot" },
- { value: "broccoli", label: "Broccoli" },
- { value: "spinach", label: "Spinach" },
- ],
- },
-];
-
-export const GroupedExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="space-y-4 md:w-80">
- <Select options={groupedOptions} placeholder="Choose food..." />
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/select.loading.tsx b/apps/ui-playground/content/design/components/select.loading.tsx
deleted file mode 100644
index ba9f72c5251..00000000000
--- a/apps/ui-playground/content/design/components/select.loading.tsx
+++ /dev/null
@@ -1,21 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { Select } from "@calcom/ui/components/form";
-
-const options = [
- { value: "chocolate", label: "Chocolate" },
- { value: "strawberry", label: "Strawberry" },
- { value: "vanilla", label: "Vanilla" },
- { value: "mint", label: "Mint" },
- { value: "coffee", label: "Coffee" },
-];
-
-export const LoadingExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="space-y-4 md:w-80">
- <Select options={options} isLoading placeholder="Loading options..." />
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/select.mdx b/apps/ui-playground/content/design/components/select.mdx
deleted file mode 100644
index fc4bab58ae7..00000000000
--- a/apps/ui-playground/content/design/components/select.mdx
+++ /dev/null
@@ -1,57 +0,0 @@
----
-title: Select
-airtableId: reccfLvVzECvskVmu
----
-import { RenderComponentWithSnippet } from "@/app/components/render"
-import { Row } from "@/app/components/row"
-import { BasicExample } from "./select.basic"
-import { MultiExample } from "./select.multi"
-import { GroupedExample } from "./select.grouped"
-import { FieldExample } from "./select.field"
-import { DisabledExample } from "./select.disabled"
-import { LoadingExample } from "./select.loading"
-import { AsyncExample } from "./select.async"
-
-## Basic
-
-Basic select component with single selection and clearable option.
-
-<BasicExample/>
-
-## Multi Select
-
-Select component that allows multiple selections.
-
-<MultiExample/>
-
-
-## Grouped Options
-
-Select with options grouped into categories.
-
-<GroupedExample/>
-
-## Async Select with Search
-
-Select with asynchronous loading and search functionality.
-
-<AsyncExample/>
-
-{/* ## Select Field
-
-Select component with label and validation support.
-
-<FieldExample/> */}
-
-## Disabled State
-
-Select component in disabled state.
-
-<DisabledExample/>
-
-## Loading State
-
-Select component in loading state.
-
-<LoadingExample/>
-
diff --git a/apps/ui-playground/content/design/components/select.multi.tsx b/apps/ui-playground/content/design/components/select.multi.tsx
deleted file mode 100644
index 497d5e62dc0..00000000000
--- a/apps/ui-playground/content/design/components/select.multi.tsx
+++ /dev/null
@@ -1,42 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-import { useState } from "react";
-
-import { Select } from "@calcom/ui/components/form";
-
-const options = [
- { value: "chocolate", label: "Chocolate" },
- { value: "strawberry", label: "Strawberry" },
- { value: "vanilla", label: "Vanilla" },
- { value: "mint", label: "Mint" },
- { value: "coffee", label: "Coffee" },
-];
-
-export const MultiExample: React.FC = () => {
- const [multiValue, setMultiValue] = useState<{ value: string; label: string }[]>([]);
-
- return (
- <RenderComponentWithSnippet>
- <div className="space-y-4 md:w-80">
- <Select
- options={options}
- value={multiValue}
- onChange={(newValue) => setMultiValue(newValue as { value: string; label: string }[])}
- isMulti
- isClearable
- placeholder="Choose multiple flavors..."
- />
- <Select
- options={options}
- value={multiValue}
- onChange={(newValue) => setMultiValue(newValue as { value: string; label: string }[])}
- isMulti
- isClearable
- placeholder="Choose multiple flavors... (small)"
- size="sm"
- />
- </div>
- </RenderComponentWithSnippet>
- );
-};
diff --git a/apps/ui-playground/content/design/components/switch.mdx b/apps/ui-playground/content/design/components/switch.mdx
deleted file mode 100644
index 9c3fa3db366..00000000000
--- a/apps/ui-playground/content/design/components/switch.mdx
+++ /dev/null
@@ -1,53 +0,0 @@
----
-title: Switch
-airtableId: reccfLvVzECvskVmu
----
-import { BasicExample, ControlledExample, LabelPositionExample, StatesExample,WithPadding,SwitchSizes } from "./switch";
-
-The Switch component is a toggle that allows users to turn a setting on or off. It's built on top of Radix UI's Switch primitive and includes support for labels, tooltips, and various size options.
-
-## Installation
-
-```ts
-import { Switch } from "@calcom/ui";
-```
-
-## Examples
-
-### Basic Switch
-
-A simple switch with and without a label.
-
-<BasicExample />
-
-### Switch sizes
-
-A switch can be sized either small or 'base'.
-
-<SwitchSizes />
-
-
-### Label Position
-
-The label can be positioned either before or after the switch.
-
-<LabelPositionExample />
-
-### States
-
-Switches can be enabled, disabled, or disabled in a checked state.
-
-<StatesExample />
-
-
-### Controlled Switch
-
-Use state to control the switch's checked state.
-
-<ControlledExample />
-
-### With Padding
-
-Use the padding prop to add padding to the switch.
-
-<WithPadding />
\ No newline at end of file
diff --git a/apps/ui-playground/content/design/components/switch.tsx b/apps/ui-playground/content/design/components/switch.tsx
deleted file mode 100644
index e4ce1d769bd..00000000000
--- a/apps/ui-playground/content/design/components/switch.tsx
+++ /dev/null
@@ -1,87 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-import { useState } from "react";
-
-import { Switch } from "@calcom/ui/components/form";
-
-export const BasicExample = () => {
- const [checked, setChecked] = useState(false);
-
- return (
- <RenderComponentWithSnippet>
- <div className="flex flex-col space-y-4">
- <Switch label="Basic switch with label" checked={checked} onCheckedChange={setChecked} />
- </div>
- </RenderComponentWithSnippet>
- );
-};
-
-export const LabelPositionExample = () => {
- const [checked, setChecked] = useState(false);
- return (
- <RenderComponentWithSnippet>
- <div className="flex flex-col space-y-4">
- <Switch label="Label on trailing side (default)" checked={checked} onCheckedChange={setChecked} />
- <Switch label="Label on leading side" labelOnLeading checked={checked} onCheckedChange={setChecked} />
- </div>
- </RenderComponentWithSnippet>
- );
-};
-
-export const StatesExample = () => {
- return (
- <RenderComponentWithSnippet>
- <div className="flex flex-col space-y-4">
- <Switch label="Enabled switch" checked />
- <Switch label="Disabled switch" disabled />
- <Switch label="Disabled and checked switch" disabled defaultChecked />
- </div>
- </RenderComponentWithSnippet>
- );
-};
-
-export const ControlledExample = () => {
- const [checked, setChecked] = useState(false);
-
- return (
- <RenderComponentWithSnippet>
- <div className="flex flex-col space-y-4">
- <Switch
- label={`Switch is ${checked ? "on" : "off"}`}
- checked={checked}
- onCheckedChange={setChecked}
- />
- </div>
- </RenderComponentWithSnippet>
- );
-};
-
-export const WithPadding = () => {
- const [checked, setChecked] = useState(false);
- return (
- <RenderComponentWithSnippet>
- <div className="flex flex-col space-y-4">
- <Switch
- label={`Switch is ${checked ? "on" : "off"}`}
- checked={checked}
- onCheckedChange={setChecked}
- padding
- />
- </div>
- </RenderComponentWithSnippet>
- );
-};
-
-export const SwitchSizes = () => {
- const [checked, setChecked] = useState(false);
-
- return (
- <RenderComponentWithSnippet>
- <div className="flex flex-col space-y-4">
- <Switch label="Small switch" size="sm" checked={checked} onCheckedChange={setChecked} />
- <Switch label="Medium switch" checked={checked} onCheckedChange={setChecked} />
- </div>
- </RenderComponentWithSnippet>
- );
-};
diff --git a/apps/ui-playground/content/design/components/tabs.horizontal.tsx b/apps/ui-playground/content/design/components/tabs.horizontal.tsx
deleted file mode 100644
index c0e54052835..00000000000
--- a/apps/ui-playground/content/design/components/tabs.horizontal.tsx
+++ /dev/null
@@ -1,81 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-import { useState } from "react";
-
-import { Icon } from "@calcom/ui/components/icon";
-import { HorizontalTabs } from "@calcom/ui/components/navigation";
-
-const tabItems = [
- {
- name: "Overview",
- href: "#",
- icon: "grid-3x3",
- },
- {
- name: "Settings",
- href: "#",
- icon: "settings",
- },
- {
- name: "Notifications",
- href: "#",
- icon: "bell",
- info: "3 unread notifications",
- },
- {
- name: "Profile",
- href: "#",
- avatar: "https://avatars.githubusercontent.com/u/8019099?v=4",
- },
-] as const;
-
-export const HorizontalExample: React.FC = () => {
- const [activeTab, setActiveTab] = useState("Overview");
-
- return (
- <RenderComponentWithSnippet>
- <div className="space-y-6">
- <div>
- <h3 className="text-emphasis mb-2 text-sm font-medium">Basic</h3>
- <HorizontalTabs
- tabs={tabItems.map((item) => ({
- ...item,
- icon: undefined,
- onClick: () => setActiveTab(item.name),
- isActive: activeTab === item.name,
- }))}
- />
- </div>
-
- <div>
- <h3 className="text-emphasis mb-2 text-sm font-medium">With Icons</h3>
- <HorizontalTabs
- tabs={tabItems.map((item) => ({
- ...item,
- onClick: () => setActiveTab(item.name),
- isActive: activeTab === item.name,
- }))}
- />
- </div>
-
- <div>
- <h3 className="text-emphasis mb-2 text-sm font-medium">With Actions</h3>
- <HorizontalTabs
- tabs={tabItems.map((item) => ({
- ...item,
- onClick: () => setActiveTab(item.name),
- isActive: activeTab === item.name,
- }))}
- actions={
- <button className="hover:text-emphasis text-default ml-auto flex items-center space-x-1 rounded-md px-3 py-[10px] transition">
- <Icon name="plus" className="h-4 w-4" />
- <span>Add New</span>
- </button>
- }
- />
- </div>
- </div>
- </RenderComponentWithSnippet>
- );
-};
diff --git a/apps/ui-playground/content/design/components/tabs.mdx b/apps/ui-playground/content/design/components/tabs.mdx
deleted file mode 100644
index dccc6e0c6bf..00000000000
--- a/apps/ui-playground/content/design/components/tabs.mdx
+++ /dev/null
@@ -1,20 +0,0 @@
----
-title: Tabs
-airtableId: recdPvp9q8sfBXrXG
----
-import { RenderComponentWithSnippet } from "@/app/components/render"
-import { Row } from "@/app/components/row"
-import { HorizontalExample } from "./tabs.horizontal"
-import { VerticalExample } from "./tabs.vertical"
-
-## Horizontal Tabs
-
-Horizontal tabs for navigation with various styles.
-
-<HorizontalExample/>
-
-## Vertical Tabs
-
-Vertical tabs with nested navigation and additional features.
-
-<VerticalExample/>
diff --git a/apps/ui-playground/content/design/components/tabs.vertical.tsx b/apps/ui-playground/content/design/components/tabs.vertical.tsx
deleted file mode 100644
index 9bdcbf0818c..00000000000
--- a/apps/ui-playground/content/design/components/tabs.vertical.tsx
+++ /dev/null
@@ -1,72 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-import { useState } from "react";
-
-import type { VerticalTabItemProps } from "@calcom/ui/components/navigation";
-import { VerticalTabs } from "@calcom/ui/components/navigation";
-
-const verticalTabItems = [
- {
- name: "Overview",
- href: "#",
- icon: "grid-3x3",
- },
- {
- name: "Settings",
- href: "#",
- icon: "settings",
- children: [
- {
- name: "General",
- href: "#",
- },
- {
- name: "Security",
- href: "#",
- },
- {
- name: "Notifications",
- href: "#",
- },
- ],
- },
- {
- name: "Notifications",
- href: "#",
- icon: "bell",
- },
- {
- name: "Documentation",
- href: "https://docs.example.com",
- icon: "book-open",
- isExternalLink: true,
- },
- {
- name: "Disabled Tab",
- href: "#",
- icon: "lock",
- disabled: true,
- },
-] as VerticalTabItemProps[];
-
-export const VerticalExample: React.FC = () => {
- const [activeTab, setActiveTab] = useState("Overview");
-
- return (
- <RenderComponentWithSnippet>
- <div className="max-w-xs space-y-6">
- <div>
- <h3 className="text-emphasis mb-2 text-sm font-medium">Basic</h3>
- <VerticalTabs
- tabs={verticalTabItems.map((item) => ({
- ...item,
- onClick: () => setActiveTab(item.name),
- isActive: activeTab === item.name,
- }))}
- />
- </div>
- </div>
- </RenderComponentWithSnippet>
- );
-};
diff --git a/apps/ui-playground/content/design/components/textarea.basic.tsx b/apps/ui-playground/content/design/components/textarea.basic.tsx
deleted file mode 100644
index c57fadb49c1..00000000000
--- a/apps/ui-playground/content/design/components/textarea.basic.tsx
+++ /dev/null
@@ -1,18 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { TextAreaField } from "@calcom/ui/components/form";
-
-export const BasicExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="space-y-4 md:w-80">
- <TextAreaField name="message" placeholder="Enter your message..." defaultValue="" />
- <TextAreaField
- name="description"
- placeholder="With default value..."
- defaultValue="This is a default value for the textarea component."
- />
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/textarea.mdx b/apps/ui-playground/content/design/components/textarea.mdx
deleted file mode 100644
index 9b4677aa4c6..00000000000
--- a/apps/ui-playground/content/design/components/textarea.mdx
+++ /dev/null
@@ -1,27 +0,0 @@
----
-title: Textarea
-airtableId: recUXs75TMoHNJnZM
----
-import { RenderComponentWithSnippet } from "@/app/components/render"
-import { Row } from "@/app/components/row"
-import { BasicExample } from "./textarea.basic.tsx"
-import { StatesExample } from "./textarea.states.tsx"
-import { SizesExample } from "./textarea.sizes.tsx"
-
-## Basic
-
-Basic textarea component for multiline text input.
-
-<BasicExample/>
-
-## States
-
-Textarea in different states: default, disabled, and readonly.
-
-<StatesExample/>
-
-## Sizes
-
-Textarea with different height configurations.
-
-<SizesExample/>
diff --git a/apps/ui-playground/content/design/components/textarea.sizes.tsx b/apps/ui-playground/content/design/components/textarea.sizes.tsx
deleted file mode 100644
index 58ad6c4d382..00000000000
--- a/apps/ui-playground/content/design/components/textarea.sizes.tsx
+++ /dev/null
@@ -1,30 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { TextAreaField } from "@calcom/ui/components/form";
-
-export const SizesExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="space-y-4 md:w-80">
- <div className="space-y-2">
- <h3 className="text-emphasis text-sm">Default Height</h3>
- <TextAreaField name="default" placeholder="Default height textarea..." />
- </div>
-
- <div className="space-y-2">
- <h3 className="text-emphasis text-sm">Custom Height (6 rows)</h3>
- <TextAreaField name="Taller" placeholder="Taller textarea..." rows={6} />
- </div>
-
- <div className="space-y-2">
- <h3 className="text-emphasis text-sm">Auto-growing</h3>
- <TextAreaField
- name="grows"
- placeholder="This textarea grows with content..."
- className="min-h-[100px]"
- />
- </div>
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/textarea.states.tsx b/apps/ui-playground/content/design/components/textarea.states.tsx
deleted file mode 100644
index d0a12ec3bec..00000000000
--- a/apps/ui-playground/content/design/components/textarea.states.tsx
+++ /dev/null
@@ -1,31 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { TextAreaField } from "@calcom/ui/components/form";
-
-export const StatesExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="space-y-4 md:w-80">
- <div className="space-y-2">
- <h3 className="text-emphasis text-sm">Default</h3>
- <TextAreaField name="default" placeholder="Default textarea..." />
- </div>
-
- <div className="space-y-2">
- <h3 className="text-emphasis text-sm">Disabled</h3>
- <TextAreaField name="disabled" placeholder="Disabled textarea..." disabled />
- </div>
-
- <div className="space-y-2">
- <h3 className="text-emphasis text-sm">Readonly</h3>
- <TextAreaField
- name="readonly"
- placeholder="Readonly textarea..."
- defaultValue="This is a readonly textarea"
- readOnly
- />
- </div>
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/toast.basic.tsx b/apps/ui-playground/content/design/components/toast.basic.tsx
deleted file mode 100644
index 074e2fc70a7..00000000000
--- a/apps/ui-playground/content/design/components/toast.basic.tsx
+++ /dev/null
@@ -1,76 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-import { useState } from "react";
-
-import { Button } from "@calcom/ui/components/button";
-import { ErrorToast, showToast, SuccessToast, WarningToast } from "@calcom/ui/components/toast";
-
-export const BasicExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="space-x-2">
- <Button
- onClick={() => {
- showToast("This is a basic toast message", "success");
- }}>
- Show Toast
- </Button>
-
- <Button
- onClick={() => {
- showToast("This toast will disappear in 2 seconds", "success", { duration: 2000 });
- }}>
- Custom Duration
- </Button>
-
- <Button
- onClick={() => {
- showToast("This toast will persist until dismissed", "success", { duration: Infinity });
- }}>
- Persistent Toast
- </Button>
- </div>
- </RenderComponentWithSnippet>
-);
-
-export const RawToastComponents = () => {
- const [toastVisible, setToastVisible] = useState(true);
- const toastId = "123";
- const onClose = () => {
- setToastVisible(false);
- };
-
- const handleReplay = () => {
- setToastVisible(true);
- };
-
- return (
- <RenderComponentWithSnippet>
- <div className="space-y-4">
- <Button onClick={handleReplay} disabled={toastVisible}>
- Replay Toasts
- </Button>
- <div className="flex flex-col gap-2">
- <SuccessToast
- message="This is a basic toast message"
- toastVisible={toastVisible}
- toastId={toastId}
- onClose={onClose}
- />
- <ErrorToast
- message="This is an error toast message"
- toastVisible={toastVisible}
- toastId={toastId}
- onClose={onClose}
- />
- <WarningToast
- message="This is a warning toast message"
- toastVisible={toastVisible}
- toastId={toastId}
- onClose={onClose}
- />
- </div>
- </div>
- </RenderComponentWithSnippet>
- );
-};
diff --git a/apps/ui-playground/content/design/components/toast.mdx b/apps/ui-playground/content/design/components/toast.mdx
deleted file mode 100644
index 3cd50714dad..00000000000
--- a/apps/ui-playground/content/design/components/toast.mdx
+++ /dev/null
@@ -1,28 +0,0 @@
----
-title: Toast
-airtableId: recenz4I2G0PsCCCI
----
-import { RenderComponentWithSnippet } from "@/app/components/render"
-import { Row } from "@/app/components/row"
-import { BasicExample,RawToastComponents } from "./toast.basic.tsx"
-import { VariantsExample } from "./toast.variants.tsx"
-
-## Components
-
-Toast raw components
-
-<RawToastComponents/>
-
-## Basic
-
-Basic toast notifications.
-
-<BasicExample/>
-
-## Variants
-
-Different variants of toast notifications.
-
-<VariantsExample/>
-
-
diff --git a/apps/ui-playground/content/design/components/toast.variants.tsx b/apps/ui-playground/content/design/components/toast.variants.tsx
deleted file mode 100644
index 5c0cc7e6bf4..00000000000
--- a/apps/ui-playground/content/design/components/toast.variants.tsx
+++ /dev/null
@@ -1,36 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { Button } from "@calcom/ui/components/button";
-import { showToast } from "@calcom/ui/components/toast";
-
-export const VariantsExample: React.FC = () => (
- <RenderComponentWithSnippet>
- <div className="space-x-2">
- <Button
- color="primary"
- onClick={() => {
- showToast("This is a success message", "success");
- }}>
- Success
- </Button>
-
- <Button
- color="minimal"
- onClick={() => {
- showToast("This is a warning message", "warning");
- }}>
- Warning
- </Button>
-
- <Button
- color="destructive"
- onClick={() => {
- showToast("This is an error message", "error");
- }}>
- Error
- </Button>
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/toggleGroup.basic.tsx b/apps/ui-playground/content/design/components/toggleGroup.basic.tsx
deleted file mode 100644
index 9e3c38e06d7..00000000000
--- a/apps/ui-playground/content/design/components/toggleGroup.basic.tsx
+++ /dev/null
@@ -1,171 +0,0 @@
-"use client";
-
-import { RenderComponentWithSnippet } from "@/app/components/render";
-
-import { ToggleGroup } from "@calcom/ui/components/form";
-import { Icon } from "@calcom/ui/components/icon";
-
-export const BasicExample = () => (
- <RenderComponentWithSnippet>
- <ToggleGroup
- defaultValue="month"
- onValueChange={(value) => {
- if (!value) return;
- console.log("Selected:", value);
- }}
- options={[
- { value: "day", label: "Day" },
- { value: "week", label: "Week" },
- { value: "month", label: "Month" },
- ]}
- />
- </RenderComponentWithSnippet>
-);
-
-export const WithIconsExample = () => (
- <RenderComponentWithSnippet>
- <ToggleGroup
- defaultValue="grid"
- onValueChange={(value) => {
- if (!value) return;
- console.log("Selected view:", value);
- }}
- options={[
- {
- value: "list",
- label: "List",
- iconLeft: <Icon name="menu" className="h-4 w-4" />,
- },
- {
- value: "grid",
- label: "Grid",
- iconLeft: <Icon name="grid-3x3" className="h-4 w-4" />,
- },
- ]}
- />
- </RenderComponentWithSnippet>
-);
-
-export const DisabledExample = () => (
- <RenderComponentWithSnippet>
- <ToggleGroup
- defaultValue="active"
- onValueChange={(value) => {
- if (!value) return;
- console.log("Selected status:", value);
- }}
- options={[
- { value: "active", label: "Active" },
- { value: "archived", label: "Archived" },
- { value: "deleted", label: "Deleted", disabled: true },
- ]}
- />
- </RenderComponentWithSnippet>
-);
-
-export const FullWidthExample = () => (
- <RenderComponentWithSnippet>
- <ToggleGroup
- isFullWidth
- defaultValue="all"
- onValueChange={(value) => {
- if (!value) return;
- console.log("Selected filter:", value);
- }}
- options={[
- { value: "all", label: "All" },
- { value: "active", label: "Active" },
- { value: "inactive", label: "Inactive" },
- ]}
- />
- </RenderComponentWithSnippet>
-);
-
-export const VerticalExample = () => (
- <RenderComponentWithSnippet>
- <ToggleGroup
- orientation="vertical"
- defaultValue="inbox"
- onValueChange={(value) => {
- if (!value) return;
- console.log("Selected mailbox:", value);
- }}
- options={[
- {
- value: "inbox",
- label: "Inbox",
- iconLeft: <Icon name="mail" className="h-4 w-4" />,
- },
- {
- value: "sent",
- label: "Sent",
- iconLeft: <Icon name="send" className="h-4 w-4" />,
- },
- {
- value: "archive",
- label: "Archive",
- iconLeft: <Icon name="trash" className="h-4 w-4" />,
- },
- ]}
- />
- </RenderComponentWithSnippet>
-);
-
-export const IconOnlyExample = () => (
- <RenderComponentWithSnippet>
- <div className="space-y-8">
- {/* Horizontal icon-only toggle group */}
- <ToggleGroup
- defaultValue="list"
- onValueChange={(value) => {
- if (!value) return;
- console.log("Selected view:", value);
- }}
- options={[
- {
- value: "list",
- label: "",
- iconLeft: <Icon name="menu" className="h-4 w-4" />,
- },
- {
- value: "grid",
- label: "",
- iconLeft: <Icon name="grid-3x3" className="h-4 w-4" />,
- },
- {
- value: "columns",
- label: "",
- iconLeft: <Icon name="blocks" className="h-4 w-4" />,
- },
- ]}
- />
-
- {/* Vertical icon-only toggle group */}
- <ToggleGroup
- orientation="vertical"
- defaultValue="edit"
- onValueChange={(value) => {
- if (!value) return;
- console.log("Selected tool:", value);
- }}
- options={[
- {
- value: "list",
- label: "",
- iconLeft: <Icon name="menu" className="h-4 w-4" />,
- },
- {
- value: "grid",
- label: "",
- iconLeft: <Icon name="grid-3x3" className="h-4 w-4" />,
- },
- {
- value: "columns",
- label: "",
- iconLeft: <Icon name="blocks" className="h-4 w-4" />,
- },
- ]}
- />
- </div>
- </RenderComponentWithSnippet>
-);
diff --git a/apps/ui-playground/content/design/components/toggleGroup.mdx b/apps/ui-playground/content/design/components/toggleGroup.mdx
deleted file mode 100644
index dc83cb89230..00000000000
--- a/apps/ui-playground/content/design/components/toggleGroup.mdx
+++ /dev/null
@@ -1,40 +0,0 @@
----
-title: Toggle Group
----
-import { BasicExample, WithIconsExample, DisabledExample, FullWidthExample, VerticalExample, IconOnlyExample } from "./toggleGroup.basic.tsx"
-
-## Basic
-
-A basic toggle group with simple text labels.
-
-<BasicExample/>
-
-## With Icons
-
-Toggle group with icons.
-
-<WithIconsExample/>
-
-## Disabled Items
-
-Toggle group with a disabled option.
-
-<DisabledExample/>
-
-## Full Width
-
-A full-width toggle group that spans the container width.
-
-<FullWidthExample/>
-
-## Vertical Orientation
-
-A vertical toggle group with icons, perfect for navigation menus or filters.
-
-<VerticalExample/>
-
-## Icon Only
-
-Toggle groups with only icons and tooltips, in both horizontal and vertical orientations.
-
-<IconOnlyExample/>
diff --git a/apps/ui-playground/content/design/icons.mdx b/apps/ui-playground/content/design/icons.mdx
deleted file mode 100644
index cf840f2edc4..00000000000
--- a/apps/ui-playground/content/design/icons.mdx
+++ /dev/null
@@ -1,31 +0,0 @@
----
-title: Icons
-description: Cal.com's icon system using Lucide icons
----
-
-import { IconGrid } from '@/components/ui/IconGrid';
-
-# Icon System
-
-Our icon system is built using [Lucide](https://lucide.dev/) icons, providing a consistent and scalable set of icons across the application. All icons are available through the `Icon` component from `@calcom/ui`.
-
-## Usage
-
-```tsx
-import { Icon } from "@calcom/ui";
-
-// Basic usage
-<Icon name="calendar" className="h-4 w-4" />
-
-// With different size
-<Icon name="user" className="h-6 w-6" />
-
-// With different color
-<Icon name="star" className="h-4 w-4 text-yellow-500" />
-```
-
-## Available Icons
-
-Search and browse all available icons. Hover over an icon to copy its component code or name.
-
-<IconGrid className="mt-8" />
diff --git a/apps/ui-playground/content/design/index.mdx b/apps/ui-playground/content/design/index.mdx
deleted file mode 100644
index 463b548daf9..00000000000
--- a/apps/ui-playground/content/design/index.mdx
+++ /dev/null
@@ -1,7 +0,0 @@
----
-title: Design System
----
-
-
-
-Component and general design documentation.
diff --git a/apps/ui-playground/content/design/meta.json b/apps/ui-playground/content/design/meta.json
deleted file mode 100644
index a55c67ffde7..00000000000
--- a/apps/ui-playground/content/design/meta.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "title": "Design",
- "description": "Our components",
- "icon": "Frame",
- "root": true
-}
diff --git a/apps/ui-playground/content/design/shadows.mdx b/apps/ui-playground/content/design/shadows.mdx
deleted file mode 100644
index 996c29cb9f1..00000000000
--- a/apps/ui-playground/content/design/shadows.mdx
+++ /dev/null
@@ -1,58 +0,0 @@
----
-title: Shadows
-description: Cal.com's shadow system for depth and elevation
----
-
-import { ShadowTable } from '@/components/ui/ShadowTable';
-
-# Shadows
-
-Our shadow system is designed to create visual hierarchy and depth in the interface. We provide specific shadows for different components and states, ensuring consistent interaction patterns across the application.
-
-## Shadow Categories
-
-### Component-Specific Shadows
-- **Dropdown**: Used for dropdown menus and popovers
-- **Button States**: Different shadows for default, hover, and active states
-- **Brand Buttons**: Special shadows for brand-colored buttons
-
-### State-Based Shadows
-- **Rested State**: Default appearance
-- **Hover State**: Enhanced depth when hovering
-- **Active State**: Pressed appearance
-
-## Usage Examples
-
-### Dropdowns and Popovers
-```tsx
-<div className="shadow-dropdown">
- Dropdown Content
-</div>
-```
-
-### Solid Gray Buttons
-```tsx
-<button className="shadow-solid-gray-rested hover:shadow-solid-gray-hover active:shadow-solid-gray-active">
- Solid Gray Button
-</button>
-```
-
-### Outline Buttons
-```tsx
-<button className="shadow-outline-gray-rested hover:shadow-outline-gray-hover active:shadow-outline-gray-active">
- Outline Button
-</button>
-```
-
-### Brand Buttons
-```tsx
-<button className="shadow-button-solid-brand-default hover:shadow-button-solid-brand-hover active:shadow-button-solid-brand-active">
- Brand Button
-</button>
-```
-
-## Shadow Preview
-
-Click on any shadow to copy its Tailwind class name. Each card demonstrates how the shadow appears when applied.
-
-<ShadowTable />
diff --git a/apps/ui-playground/content/design/spacing.mdx b/apps/ui-playground/content/design/spacing.mdx
deleted file mode 100644
index 29e50bdd883..00000000000
--- a/apps/ui-playground/content/design/spacing.mdx
+++ /dev/null
@@ -1,39 +0,0 @@
----
-title: Spacing
-description: Cal.com's spacing system follows the Tailwind spacing scale
----
-
-import { SpacingTable } from '@/components/ui/SpacingTable';
-
-export const spacingTokens = [
- { name: '0', value: '0', pixels: '0px' },
- { name: 'px', value: '1px', pixels: '1px' },
- { name: '0.5', value: '0.125rem', pixels: '2px' },
- { name: '1', value: '0.25rem', pixels: '4px' },
- { name: '1.5', value: '0.375rem', pixels: '6px' },
- { name: '2', value: '0.5rem', pixels: '8px' },
- { name: '2.5', value: '0.625rem', pixels: '10px' },
- { name: '3', value: '0.75rem', pixels: '12px' },
- { name: '4', value: '1rem', pixels: '16px' },
- { name: '5', value: '1.25rem', pixels: '20px' },
- { name: '6', value: '1.5rem', pixels: '24px' },
- { name: '8', value: '2rem', pixels: '32px' },
- { name: '9', value: '2.25rem', pixels: '36px' },
- { name: '10', value: '2.5rem', pixels: '40px' },
- { name: '12', value: '3rem', pixels: '48px' },
- { name: '14', value: '3.5rem', pixels: '56px' },
- { name: '16', value: '4rem', pixels: '64px' },
- { name: '20', value: '5rem', pixels: '80px' },
-];
-
-# Spacing System
-
-Our spacing system follows the Tailwind spacing scale, providing consistent spacing values across the application. Each spacing token can be used with various utility classes:
-
-- **Padding**: `p-{size}`, `px-{size}`, `py-{size}`, `pt-{size}`, `pr-{size}`, `pb-{size}`, `pl-{size}`
-- **Margin**: `m-{size}`, `mx-{size}`, `my-{size}`, `mt-{size}`, `mr-{size}`, `mb-{size}`, `ml-{size}`
-- **Gap**: `gap-{size}`, `gap-x-{size}`, `gap-y-{size}`
-
-Hover over each token to copy its utility classes or pixel value.
-
-<SpacingTable tokens={spacingTokens} />
diff --git a/apps/ui-playground/content/design/typography.mdx b/apps/ui-playground/content/design/typography.mdx
deleted file mode 100644
index f7f01b5d90b..00000000000
--- a/apps/ui-playground/content/design/typography.mdx
+++ /dev/null
@@ -1,156 +0,0 @@
----
-title: Typography
----
-
-import { TypographyTable } from '@/components/ui/TypographyTable';
-
-export const displayStyles = {
- title: 'Display',
- description: 'Used for large headings and prominent text',
- styles: [
- {
- name: 'Display 3XL',
- className: 'text-3xl font-medium font-display',
- specs: {
- fontFamily: 'InterDisplay',
- fontSize: '30',
- lineHeight: '36px',
- weight: 'medium',
- },
- },
- {
- name: 'Display 2XL',
- className: 'text-2xl font-medium font-display',
- specs: {
- fontFamily: 'InterDisplay',
- fontSize: '24',
- lineHeight: '32px',
- weight: 'medium',
- },
- },
- {
- name: 'Display XL',
- className: 'text-xl font-medium font-display',
- specs: {
- fontFamily: 'InterDisplay',
- fontSize: '20',
- lineHeight: '28px',
- weight: 'medium',
- },
- },
- {
- name: 'Display LG',
- className: 'text-lg font-medium font-display',
- specs: {
- fontFamily: 'InterDisplay',
- fontSize: '18',
- lineHeight: '20px',
- weight: 'medium',
- },
- },
- {
- name: 'Display Base',
- className: 'text-base font-medium font-display',
- specs: {
- fontFamily: 'InterDisplay',
- fontSize: '16',
- lineHeight: '18px',
- weight: 'medium',
- },
- },
- ],
-};
-
-export const bodyStyles = {
- title: 'Body',
- description: 'Used for general text content',
- styles: [
- {
- name: 'Large Semibold',
- className: 'text-lg font-semibold leading-none',
- specs: {
- fontFamily: 'Inter',
- fontSize: '18',
- lineHeight: '20px',
- weight: 'semibold',
- },
- },
- {
- name: 'Base Normal',
- className: 'text-base font-normal leading-none',
- specs: {
- fontFamily: 'Inter',
- fontSize: '16',
- lineHeight: '18px',
- weight: 'regular',
- },
- },
- {
- name: 'Base Medium',
- className: 'text-base font-medium leading-none',
- specs: {
- fontFamily: 'Inter',
- fontSize: '16',
- lineHeight: '18px',
- weight: 'medium',
- },
- },
- {
- name: 'Small Normal',
- className: 'text-sm font-normal leading-none',
- specs: {
- fontFamily: 'Inter',
- fontSize: '14',
- lineHeight: '16px',
- weight: 'regular',
- },
- },
- ],
-};
-
-export const paragraphStyles = {
- title: 'Paragraph',
- description: 'Used for longer text content with different line heights',
- styles: [
- {
- name: 'Large Medium Normal',
- className: 'text-lg font-medium leading-normal',
- specs: {
- fontFamily: 'Inter',
- fontSize: '18',
- lineHeight: '150%',
- weight: 'medium',
- },
- },
- {
- name: 'Base Normal',
- className: 'text-base font-normal leading-normal',
- specs: {
- fontFamily: 'Inter',
- fontSize: '16',
- lineHeight: '150%',
- weight: 'regular',
- },
- },
- {
- name: 'Small Medium Tight',
- className: 'text-sm font-medium leading-tight',
- specs: {
- fontFamily: 'Inter',
- fontSize: '14',
- lineHeight: '125%',
- weight: 'medium',
- },
- },
- ],
-};
-
-# Typography System
-
-Our typography system follows the Tailwind typography scale with custom modifications for Cal.com's brand. The system is organized into three main categories:
-
-1. Display - Large headings and prominent text
-2. Body - General text content
-3. Paragraph - Longer form content with different line heights
-
-<TypographyTable sections={[displayStyles, bodyStyles, paragraphStyles]} />
diff --git a/apps/ui-playground/eslint.config.mjs b/apps/ui-playground/eslint.config.mjs
deleted file mode 100644
index e08e866e1b8..00000000000
--- a/apps/ui-playground/eslint.config.mjs
+++ /dev/null
@@ -1,3 +0,0 @@
-import { nextJsConfig } from "@calcom/eslint-config/next-js";
-
-export default nextJsConfig;
diff --git a/apps/ui-playground/fonts/CalSans-SemiBold.woff2 b/apps/ui-playground/fonts/CalSans-SemiBold.woff2
deleted file mode 100644
index 36d71b70d0c..00000000000
Binary files a/apps/ui-playground/fonts/CalSans-SemiBold.woff2 and /dev/null differ
diff --git a/apps/ui-playground/lib/colorUtils.ts b/apps/ui-playground/lib/colorUtils.ts
deleted file mode 100644
index 67fde99eb9e..00000000000
--- a/apps/ui-playground/lib/colorUtils.ts
+++ /dev/null
@@ -1,77 +0,0 @@
-function hexToRgb(hex: string): { r: number; g: number; b: number } | null {
- const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
- return result
- ? {
- r: parseInt(result[1], 16),
- g: parseInt(result[2], 16),
- b: parseInt(result[3], 16),
- }
- : null;
-}
-
-function rgbToHsl(r: number, g: number, b: number): { h: number; s: number; l: number } {
- r /= 255;
- g /= 255;
- b /= 255;
-
- const max = Math.max(r, g, b);
- const min = Math.min(r, g, b);
- let h = 0;
- let s;
- const l = (max + min) / 2;
-
- if (max === min) {
- h = s = 0;
- } else {
- const d = max - min;
- s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
-
- switch (max) {
- case r:
- h = (g - b) / d + (g < b ? 6 : 0);
- break;
- case g:
- h = (b - r) / d + 2;
- break;
- case b:
- h = (r - g) / d + 4;
- break;
- }
-
- h /= 6;
- }
-
- return {
- h: Math.round(h * 360),
- s: Math.round(s * 100),
- l: Math.round(l * 100),
- };
-}
-
-export function getColorFormats(color: string, className?: string) {
- // If we have a Tailwind class name, include it in the formats
- if (!color.startsWith("#")) {
- return {
- hex: color,
- rgb: "Computed at runtime",
- hsl: "Computed at runtime",
- tailwind: className || "Computed at runtime",
- };
- }
-
- const rgb = hexToRgb(color);
- if (!rgb) return null;
-
- const hsl = rgbToHsl(rgb.r, rgb.g, rgb.b);
-
- return {
- hex: color,
- rgb: `rgb(${rgb.r}, ${rgb.g}, ${rgb.b})`,
- hsl: `hsl(${hsl.h}, ${hsl.s}%, ${hsl.l}%)`,
- tailwind: className || "Computed at runtime",
- };
-}
-
-export function copyToClipboard(text: string): Promise<void> {
- return navigator.clipboard.writeText(text);
-}
diff --git a/apps/ui-playground/next.config.mjs b/apps/ui-playground/next.config.mjs
deleted file mode 100644
index ed016a49275..00000000000
--- a/apps/ui-playground/next.config.mjs
+++ /dev/null
@@ -1,17 +0,0 @@
-import { createMDX } from "fumadocs-mdx/next";
-
-const withMDX = createMDX();
-
-/** @type {import('next').NextConfig} */
-const config = {
- reactStrictMode: true,
- transpilePackages: ["@calcom/ui"],
- // We are ignoring type errors in this playground to pass build -
- // Calcom UI pulls in appstore and trpc and they have type errors
- // when you dont have their d.ts imported into a workspace
- typescript: {
- ignoreBuildErrors: true,
- },
-};
-
-export default withMDX(config);
diff --git a/apps/ui-playground/package.json b/apps/ui-playground/package.json
deleted file mode 100644
index edad9b5f2d6..00000000000
--- a/apps/ui-playground/package.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
- "name": "@calcom/timeless-ui-docs",
- "version": "0.1.0",
- "private": true,
- "scripts": {
- "dev": "next dev --turbopack --port=1337",
- "build": "next build",
- "start": "next start",
- "lint": "eslint ."
- },
- "dependencies": {
- "@calcom/config": "workspace:*",
- "@calcom/lib": "workspace:*",
- "@calcom/ui": "workspace:*",
- "@radix-ui/react-tooltip": "^1.1.8",
- "airtable": "^0.12.2",
- "fumadocs-core": "^14.5.4",
- "fumadocs-mdx": "^11.1.1",
- "fumadocs-typescript": "^3.0.2",
- "fumadocs-ui": "14.4.0",
- "next": "15.1.6",
- "react": "^18.0.0",
- "react-dom": "^18.0.0",
- "react-hot-toast": "^2.5.2"
- },
- "devDependencies": {
- "@calcom/eslint-config": "workspace:*",
- "@calcom/tsconfig": "workspace:*",
- "@types/mdx": "^2.0.13",
- "@types/node": "^20",
- "@types/react": "^18",
- "@types/react-dom": "^18",
- "postcss": "^8",
- "tailwindcss": "^3.4.1",
- "typescript": "^5.9.0-beta"
- }
-}
diff --git a/apps/ui-playground/postcss.config.js b/apps/ui-playground/postcss.config.js
deleted file mode 100644
index 6887c82624a..00000000000
--- a/apps/ui-playground/postcss.config.js
+++ /dev/null
@@ -1,8 +0,0 @@
-module.exports = {
- plugins: {
- "postcss-import": {},
- "tailwindcss/nesting": {},
- tailwindcss: {},
- autoprefixer: {},
- },
-};
diff --git a/apps/ui-playground/source.config.ts b/apps/ui-playground/source.config.ts
deleted file mode 100644
index 9734be8bf40..00000000000
--- a/apps/ui-playground/source.config.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-import { defineCollections, defineConfig, defineDocs, frontmatterSchema } from "fumadocs-mdx/config";
-import { z } from "zod";
-
-export const { docs, meta } = defineDocs();
-
-export const components = defineCollections({
- dir: "content/design",
- schema: frontmatterSchema.extend({
- airtableId: z.string().optional(),
- designStatus: z
- .enum(["Needs changes", "In progress", "Ready for dev", "Not started"])
- .default("In progress"),
- devStatus: z
- .enum(["Changes requested", "Ready for review", "Not started", "Needs Changes", "Approved"])
- .default("Not started"),
- }),
- type: "doc",
-});
-
-export default defineConfig({
- lastModifiedTime: "git",
-});
diff --git a/apps/ui-playground/tailwind.config.js b/apps/ui-playground/tailwind.config.js
deleted file mode 100644
index 79913114525..00000000000
--- a/apps/ui-playground/tailwind.config.js
+++ /dev/null
@@ -1,21 +0,0 @@
-import { createPreset } from "fumadocs-ui/tailwind-plugin";
-
-import base from "@calcom/config/tailwind-preset";
-
-/** @type {import('tailwindcss').Config} */
-export default {
- content: [
- ...base.content,
- "./components/**/*.{ts,tsx}",
- "./app/**/*.{ts,tsx}",
- "./content/**/*.{md,mdx}",
- "./mdx-components.{ts,tsx}",
- "./node_modules/fumadocs-ui/dist/**/*.js",
- "../../internal/ui/src/**/*.tsx",
- "../../internal/icons/src/**/*.tsx",
- "../../packages/ui/components/**/*.{ts,tsx}",
- ],
- plugins: [...base.plugins],
- theme: base.theme,
- presets: [createPreset()],
-};
diff --git a/apps/ui-playground/tsconfig.json b/apps/ui-playground/tsconfig.json
deleted file mode 100644
index eca971ac677..00000000000
--- a/apps/ui-playground/tsconfig.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "extends": "@calcom/tsconfig/nextjs.json",
- "compilerOptions": {
- "strictNullChecks": true,
- "experimentalDecorators": true,
- "plugins": [
- {
- "name": "next"
- }
- ],
- "paths": {
- "@/*": ["./*"]
- }
- },
- "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
- "exclude": ["node_modules"]
-}