diff --git a/src/content/api-reference/alert-dialog.ts b/src/content/api-reference/alert-dialog.ts new file mode 100644 index 000000000..e69de29bb diff --git a/src/content/components/alert-dialog.md b/src/content/components/alert-dialog.md index af06c6194..23b6b62cc 100644 --- a/src/content/components/alert-dialog.md +++ b/src/content/components/alert-dialog.md @@ -23,3 +23,5 @@ description: Presents critical information or prompts to the user, typically req ``` + +🚧 **UNDER CONSTRUCTION** 🚧 diff --git a/src/content/components/aspect-ratio.md b/src/content/components/aspect-ratio.md index 4d2e2fb2c..909df73bf 100644 --- a/src/content/components/aspect-ratio.md +++ b/src/content/components/aspect-ratio.md @@ -12,3 +12,5 @@ description: Displays content with a specified aspect ratio, ensuring consistent ``` + +🚧 **UNDER CONSTRUCTION** 🚧 diff --git a/src/content/components/avatar.md b/src/content/components/avatar.md index eb97e0bf8..829827882 100644 --- a/src/content/components/avatar.md +++ b/src/content/components/avatar.md @@ -15,3 +15,5 @@ description: Displays user or entity images with a fallback option for failed lo ``` + +🚧 **UNDER CONSTRUCTION** 🚧 diff --git a/src/content/components/button.md b/src/content/components/button.md index 1e440d82b..f458af4af 100644 --- a/src/content/components/button.md +++ b/src/content/components/button.md @@ -12,3 +12,5 @@ description: An interactive component that triggers an event. ``` + +🚧 **UNDER CONSTRUCTION** 🚧 diff --git a/src/content/components/checkbox.md b/src/content/components/checkbox.md index f0bb0497f..fb5f4924d 100644 --- a/src/content/components/checkbox.md +++ b/src/content/components/checkbox.md @@ -15,3 +15,5 @@ description: Allow users to mark options as checked, unchecked, or indeterminate ``` + +🚧 **UNDER CONSTRUCTION** 🚧 diff --git a/src/content/components/collapsible.md b/src/content/components/collapsible.md index 229375ac4..aeac6a32e 100644 --- a/src/content/components/collapsible.md +++ b/src/content/components/collapsible.md @@ -15,3 +15,5 @@ description: An interactive component which expands and collapses content. ``` + +🚧 **UNDER CONSTRUCTION** 🚧 diff --git a/src/content/components/context-menu.md b/src/content/components/context-menu.md index 02b029393..3d6a0fd01 100644 --- a/src/content/components/context-menu.md +++ b/src/content/components/context-menu.md @@ -41,3 +41,5 @@ description: Displays a menu at the pointer's position when the trigger is right ``` + +🚧 **UNDER CONSTRUCTION** 🚧 diff --git a/src/content/components/dialog.md b/src/content/components/dialog.md index d9feeba57..092d041fa 100644 --- a/src/content/components/dialog.md +++ b/src/content/components/dialog.md @@ -22,3 +22,5 @@ description: A window overlaid on either the primary window or another dialog wi ``` + +🚧 **UNDER CONSTRUCTION** 🚧 diff --git a/src/content/components/dropdown-menu.md b/src/content/components/dropdown-menu.md index b92b27019..eb36dc33b 100644 --- a/src/content/components/dropdown-menu.md +++ b/src/content/components/dropdown-menu.md @@ -41,3 +41,5 @@ description: Displays a menu to the user, which can consist of links or function ``` + +🚧 **UNDER CONSTRUCTION** 🚧 diff --git a/src/content/components/hover-card.md b/src/content/components/hover-card.md index 40f55811d..9b35f876d 100644 --- a/src/content/components/hover-card.md +++ b/src/content/components/hover-card.md @@ -15,3 +15,5 @@ description: Enable sighted users to preview content behind a link. ``` + +🚧 **UNDER CONSTRUCTION** 🚧 diff --git a/src/content/components/label.md b/src/content/components/label.md index 8b9d8102d..8f80a6aee 100644 --- a/src/content/components/label.md +++ b/src/content/components/label.md @@ -12,3 +12,5 @@ description: An enhanced version of the native HTML label element. ``` + +🚧 **UNDER CONSTRUCTION** 🚧 diff --git a/src/content/components/menubar.md b/src/content/components/menubar.md index e76ad9991..52e7b54d6 100644 --- a/src/content/components/menubar.md +++ b/src/content/components/menubar.md @@ -41,5 +41,6 @@ description: Displays a list of menus that can be used to control the applicatio - ``` + +🚧 **UNDER CONSTRUCTION** 🚧 diff --git a/src/content/components/popover.md b/src/content/components/popover.md index f83d9e565..14f33840e 100644 --- a/src/content/components/popover.md +++ b/src/content/components/popover.md @@ -18,3 +18,5 @@ description: Displays content in a floating container that appears above the sur ``` + +🚧 **UNDER CONSTRUCTION** 🚧 diff --git a/src/content/components/progress.md b/src/content/components/progress.md index 1e686cfdc..a1c435d65 100644 --- a/src/content/components/progress.md +++ b/src/content/components/progress.md @@ -12,3 +12,5 @@ description: A visual indicator that displays the progress of a task, usually in ``` + +🚧 **UNDER CONSTRUCTION** 🚧 diff --git a/src/content/components/radio-group.md b/src/content/components/radio-group.md index 14c590963..07dfc9195 100644 --- a/src/content/components/radio-group.md +++ b/src/content/components/radio-group.md @@ -16,3 +16,5 @@ description: Allows users to select a single option from a predetermined set of ``` + +🚧 **UNDER CONSTRUCTION** 🚧 diff --git a/src/content/components/select.md b/src/content/components/select.md index 7ed565f47..2a8fe258c 100644 --- a/src/content/components/select.md +++ b/src/content/components/select.md @@ -31,3 +31,5 @@ description: Enable users to choose a single option from a dropdown menu that pr ``` + +🚧 **UNDER CONSTRUCTION** 🚧 diff --git a/src/content/components/separator.md b/src/content/components/separator.md index 76ed4fcb9..de9f8f679 100644 --- a/src/content/components/separator.md +++ b/src/content/components/separator.md @@ -12,3 +12,5 @@ description: Visually divide or separate sections or elements, providing clarity ``` + +🚧 **UNDER CONSTRUCTION** 🚧 diff --git a/src/content/components/slider.md b/src/content/components/slider.md index 504990441..2018aca5f 100644 --- a/src/content/components/slider.md +++ b/src/content/components/slider.md @@ -16,3 +16,5 @@ description: Enable users to select a value within a specific range with sliding ``` + +🚧 **UNDER CONSTRUCTION** 🚧 diff --git a/src/content/components/switch.md b/src/content/components/switch.md index 42c6060d7..13551a2b6 100644 --- a/src/content/components/switch.md +++ b/src/content/components/switch.md @@ -15,3 +15,5 @@ description: Enables users to toggle between two states. ``` + +🚧 **UNDER CONSTRUCTION** 🚧 diff --git a/src/content/components/tabs.md b/src/content/components/tabs.md index ce31c596f..0cba36241 100644 --- a/src/content/components/tabs.md +++ b/src/content/components/tabs.md @@ -17,3 +17,5 @@ description: Allows users to navigate between different views ``` + +🚧 **UNDER CONSTRUCTION** 🚧 diff --git a/src/content/components/toggle.md b/src/content/components/toggle.md index 3a9ba1ed9..3bbe894b2 100644 --- a/src/content/components/toggle.md +++ b/src/content/components/toggle.md @@ -15,3 +15,5 @@ description: An interactive component that toggles between two states. ``` + +🚧 **UNDER CONSTRUCTION** 🚧 diff --git a/src/content/components/tooltip.md b/src/content/components/tooltip.md index f194efb7d..ef3b57bfc 100644 --- a/src/content/components/tooltip.md +++ b/src/content/components/tooltip.md @@ -16,5 +16,6 @@ description: Displays floating content containing additional information about a - ``` + +🚧 **UNDER CONSTRUCTION** 🚧 diff --git a/src/content/getting-started.md b/src/content/getting-started.md index 8a2385132..1647daafe 100644 --- a/src/content/getting-started.md +++ b/src/content/getting-started.md @@ -39,3 +39,5 @@ You can them import and start using them in your app. ``` + +🚧 **UNDER CONSTRUCTION** 🚧 diff --git a/src/content/introduction.md b/src/content/introduction.md index 147ccbff3..10b60390a 100644 --- a/src/content/introduction.md +++ b/src/content/introduction.md @@ -13,3 +13,5 @@ While our goal has been to keep the APIs as close to Melt's as possible, there a - [Melt UI](https://melt-ui.com) - The underlying builder API that powers Bits. - [Radix UI](https://radix-ui.com) - The de-facto standard for headless APIs that we've strived to follow. + +🚧 **UNDER CONSTRUCTION** 🚧 diff --git a/src/styles/markdown.postcss b/src/styles/markdown.postcss index c097425a1..10e35c8a3 100644 --- a/src/styles/markdown.postcss +++ b/src/styles/markdown.postcss @@ -2,6 +2,10 @@ @apply relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm; } +.link { + @apply inline-flex items-center gap-1 font-medium underline underline-offset-4; +} + [data-theme="light"] { display: flex; } diff --git a/src/utils/markdown.ts b/src/utils/markdown.ts index 2c2d6f75f..665a52675 100644 --- a/src/utils/markdown.ts +++ b/src/utils/markdown.ts @@ -5,7 +5,7 @@ export function parseMarkdown(text: string) { .replace(/\*([^*]+)\*/g, "$1") .replace(/_([^_]+)_/g, "$1") .replace(/~~([^~]+)~~/g, "$1") - .replace(/\[([^\]]+)\]\(([^)]+)\)/g, "$1") + .replace(/\[([^\]]+)\]\(([^)]+)\)/g, "$1") .replace(/>([^>]+)\n/g, "
$1
") .replace(/\n/g, "
"); }