Skip to content

Commit

Permalink
add construction warning
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed Aug 18, 2023
1 parent 7fb775a commit b665ffc
Show file tree
Hide file tree
Showing 27 changed files with 53 additions and 3 deletions.
Empty file.
2 changes: 2 additions & 0 deletions src/content/components/alert-dialog.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ description: Presents critical information or prompts to the user, typically req
</AlertDialog.Portal>
</AlertDialog.Root>
```

🚧 **UNDER CONSTRUCTION** 🚧
2 changes: 2 additions & 0 deletions src/content/components/aspect-ratio.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ description: Displays content with a specified aspect ratio, ensuring consistent
<AspectRatio.Root />
```

🚧 **UNDER CONSTRUCTION** 🚧
2 changes: 2 additions & 0 deletions src/content/components/avatar.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ description: Displays user or entity images with a fallback option for failed lo
<Avatar.Fallback />
</Avatar.Root>
```

🚧 **UNDER CONSTRUCTION** 🚧
2 changes: 2 additions & 0 deletions src/content/components/button.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ description: An interactive component that triggers an event.
<Button.Root />
```

🚧 **UNDER CONSTRUCTION** 🚧
2 changes: 2 additions & 0 deletions src/content/components/checkbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ description: Allow users to mark options as checked, unchecked, or indeterminate
<Checkbox.Input />
</Checkbox.Root>
```

🚧 **UNDER CONSTRUCTION** 🚧
2 changes: 2 additions & 0 deletions src/content/components/collapsible.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ description: An interactive component which expands and collapses content.
<Collapsible.Content />
</Collapsible.Root>
```

🚧 **UNDER CONSTRUCTION** 🚧
2 changes: 2 additions & 0 deletions src/content/components/context-menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ description: Displays a menu at the pointer's position when the trigger is right
</ContextMenu.Content>
</ContextMenu.Root>
```

🚧 **UNDER CONSTRUCTION** 🚧
2 changes: 2 additions & 0 deletions src/content/components/dialog.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ description: A window overlaid on either the primary window or another dialog wi
</Dialog.Portal>
</Dialog.Root>
```

🚧 **UNDER CONSTRUCTION** 🚧
2 changes: 2 additions & 0 deletions src/content/components/dropdown-menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ description: Displays a menu to the user, which can consist of links or function
</DropdownMenu.Content>
</DropdownMenu.Root>
```

🚧 **UNDER CONSTRUCTION** 🚧
2 changes: 2 additions & 0 deletions src/content/components/hover-card.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ description: Enable sighted users to preview content behind a link.
<HoverCard.Content />
</HoverCard.Root>
```

🚧 **UNDER CONSTRUCTION** 🚧
2 changes: 2 additions & 0 deletions src/content/components/label.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ description: An enhanced version of the native HTML label element.
<Label.Root />
```

🚧 **UNDER CONSTRUCTION** 🚧
3 changes: 2 additions & 1 deletion src/content/components/menubar.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@ description: Displays a list of menus that can be used to control the applicatio
</Menubar.Content>
</Menubar.Menu>
</Menubar.Root>
```

🚧 **UNDER CONSTRUCTION** 🚧
2 changes: 2 additions & 0 deletions src/content/components/popover.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ description: Displays content in a floating container that appears above the sur
</Popover.Content>
</Popover.Root>
```

🚧 **UNDER CONSTRUCTION** 🚧
2 changes: 2 additions & 0 deletions src/content/components/progress.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ description: A visual indicator that displays the progress of a task, usually in
<Progress.Root />
```

🚧 **UNDER CONSTRUCTION** 🚧
2 changes: 2 additions & 0 deletions src/content/components/radio-group.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ description: Allows users to select a single option from a predetermined set of
</RadioGroup.Item>
</RadioGroup.Root>
```

🚧 **UNDER CONSTRUCTION** 🚧
2 changes: 2 additions & 0 deletions src/content/components/select.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ description: Enable users to choose a single option from a dropdown menu that pr
</Select.Content>
</Select.Root>
```

🚧 **UNDER CONSTRUCTION** 🚧
2 changes: 2 additions & 0 deletions src/content/components/separator.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ description: Visually divide or separate sections or elements, providing clarity
<Separator.Root />
```

🚧 **UNDER CONSTRUCTION** 🚧
2 changes: 2 additions & 0 deletions src/content/components/slider.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ description: Enable users to select a value within a specific range with sliding
<Slider.Input />
</Slider.Root>
```

🚧 **UNDER CONSTRUCTION** 🚧
2 changes: 2 additions & 0 deletions src/content/components/switch.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ description: Enables users to toggle between two states.
<Switch.Input />
</Switch.Root>
```

🚧 **UNDER CONSTRUCTION** 🚧
2 changes: 2 additions & 0 deletions src/content/components/tabs.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ description: Allows users to navigate between different views
<Tabs.Content />
</Tabs.Root>
```

🚧 **UNDER CONSTRUCTION** 🚧
2 changes: 2 additions & 0 deletions src/content/components/toggle.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ description: An interactive component that toggles between two states.
<Toggle.Input />
</Toggle.Root>
```

🚧 **UNDER CONSTRUCTION** 🚧
3 changes: 2 additions & 1 deletion src/content/components/tooltip.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ description: Displays floating content containing additional information about a
<Tooltip.Arrow />
</Tooltip.Content>
</Tooltip.Root>
```

🚧 **UNDER CONSTRUCTION** 🚧
2 changes: 2 additions & 0 deletions src/content/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,5 @@ You can them import and start using them in your app.
</Accordion.Item>
</Accordion.Root>
```

🚧 **UNDER CONSTRUCTION** 🚧
2 changes: 2 additions & 0 deletions src/content/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -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** 🚧
4 changes: 4 additions & 0 deletions src/styles/markdown.postcss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export function parseMarkdown(text: string) {
.replace(/\*([^*]+)\*/g, "<em>$1</em>")
.replace(/_([^_]+)_/g, "<em>$1</em>")
.replace(/~~([^~]+)~~/g, "<del>$1</del>")
.replace(/\[([^\]]+)\]\(([^)]+)\)/g, "<a href='$2'>$1</a>")
.replace(/\[([^\]]+)\]\(([^)]+)\)/g, "<a class='link' href='$2'>$1</a>")
.replace(/&gt;([^>]+)\n/g, "<blockquote>$1</blockquote>")
.replace(/\n/g, "<br />");
}

0 comments on commit b665ffc

Please sign in to comment.