-
-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from huntabyte/revert-v2
- Loading branch information
Showing
15 changed files
with
149 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"bits-ui": patch | ||
--- | ||
|
||
fix menubar & rename hovercard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
<script> | ||
import * as Menubar from "@/components/ui/menubar"; | ||
let bookmarks = false; | ||
let fullUrls = true; | ||
const profileRadioValue = "benoit"; | ||
</script> | ||
|
||
<Menubar.Root> | ||
<Menubar.Menu> | ||
<Menubar.Trigger>File</Menubar.Trigger> | ||
<Menubar.Content> | ||
<Menubar.Item> | ||
New Tab <Menubar.Shortcut>⌘T</Menubar.Shortcut> | ||
</Menubar.Item> | ||
<Menubar.Item> | ||
New Window <Menubar.Shortcut>⌘N</Menubar.Shortcut> | ||
</Menubar.Item> | ||
<Menubar.Item>New Incognito Window</Menubar.Item> | ||
<Menubar.Separator /> | ||
<Menubar.Sub> | ||
<Menubar.SubTrigger>Share</Menubar.SubTrigger> | ||
<Menubar.SubContent> | ||
<Menubar.Item>Email link</Menubar.Item> | ||
<Menubar.Item>Messages</Menubar.Item> | ||
<Menubar.Item>Notes</Menubar.Item> | ||
</Menubar.SubContent> | ||
</Menubar.Sub> | ||
<Menubar.Separator /> | ||
<Menubar.Item> | ||
Print... <Menubar.Shortcut>⌘P</Menubar.Shortcut> | ||
</Menubar.Item> | ||
</Menubar.Content> | ||
</Menubar.Menu> | ||
<Menubar.Menu> | ||
<Menubar.Trigger>Edit</Menubar.Trigger> | ||
<Menubar.Content> | ||
<Menubar.Item> | ||
Undo <Menubar.Shortcut>⌘Z</Menubar.Shortcut> | ||
</Menubar.Item> | ||
<Menubar.Item> | ||
Redo <Menubar.Shortcut>⇧⌘Z</Menubar.Shortcut> | ||
</Menubar.Item> | ||
<Menubar.Separator /> | ||
<Menubar.Sub> | ||
<Menubar.SubTrigger>Find</Menubar.SubTrigger> | ||
<Menubar.SubContent> | ||
<Menubar.Item>Search the web</Menubar.Item> | ||
<Menubar.Separator /> | ||
<Menubar.Item>Find...</Menubar.Item> | ||
<Menubar.Item>Find Next</Menubar.Item> | ||
<Menubar.Item>Find Previous</Menubar.Item> | ||
</Menubar.SubContent> | ||
</Menubar.Sub> | ||
<Menubar.Separator /> | ||
<Menubar.Item>Cut</Menubar.Item> | ||
<Menubar.Item>Copy</Menubar.Item> | ||
<Menubar.Item>Paste</Menubar.Item> | ||
</Menubar.Content> | ||
</Menubar.Menu> | ||
<Menubar.Menu> | ||
<Menubar.Trigger>View</Menubar.Trigger> | ||
<Menubar.Content> | ||
<Menubar.CheckboxItem bind:checked={bookmarks}>Always Show Bookmarks Bar</Menubar.CheckboxItem | ||
> | ||
<Menubar.CheckboxItem bind:checked={fullUrls}>Always Show Full URLs</Menubar.CheckboxItem> | ||
<Menubar.Separator /> | ||
<Menubar.Item inset> | ||
Reload <Menubar.Shortcut>⌘R</Menubar.Shortcut> | ||
</Menubar.Item> | ||
<Menubar.Item inset> | ||
Force Reload <Menubar.Shortcut>⇧⌘R</Menubar.Shortcut> | ||
</Menubar.Item> | ||
<Menubar.Separator /> | ||
<Menubar.Item inset>Toggle Fullscreen</Menubar.Item> | ||
<Menubar.Separator /> | ||
<Menubar.Item inset>Hide Sidebar</Menubar.Item> | ||
</Menubar.Content> | ||
</Menubar.Menu> | ||
<Menubar.Menu> | ||
<Menubar.Trigger>Profiles</Menubar.Trigger> | ||
<Menubar.Content> | ||
<Menubar.RadioGroup value={profileRadioValue}> | ||
<Menubar.RadioItem value="andy">Andy</Menubar.RadioItem> | ||
<Menubar.RadioItem value="benoit">Benoit</Menubar.RadioItem> | ||
<Menubar.RadioItem value="Luis">Luis</Menubar.RadioItem> | ||
</Menubar.RadioGroup> | ||
<Menubar.Separator /> | ||
<Menubar.Item inset>Edit...</Menubar.Item> | ||
<Menubar.Separator /> | ||
<Menubar.Item inset>Add Profile...</Menubar.Item> | ||
</Menubar.Content> | ||
</Menubar.Menu> | ||
</Menubar.Root> |
12 changes: 6 additions & 6 deletions
12
src/content/components/hover-card.md → src/content/components/link-preview.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
--- | ||
title: Hover Card | ||
title: Link Preview | ||
description: Enable sighted users to preview content behind a link. | ||
--- | ||
|
||
## Structure | ||
|
||
```svelte | ||
<script lang="ts"> | ||
import { HoverCard } from "bits-ui"; | ||
import { LinkPreview } from "bits-ui"; | ||
</script> | ||
<HoverCard.Root> | ||
<HoverCard.Trigger /> | ||
<HoverCard.Content /> | ||
</HoverCard.Root> | ||
<LinkPreview.Root> | ||
<LinkPreview.Trigger /> | ||
<LinkPreview.Content /> | ||
</LinkPreview.Root> | ||
``` | ||
|
||
🚧 **UNDER CONSTRUCTION** 🚧 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import Root from "./components/LinkPreview.svelte"; | ||
import Content from "./components/LinkPreviewContent.svelte"; | ||
import Trigger from "./components/LinkPreviewTrigger.svelte"; | ||
|
||
export { | ||
Root, | ||
Content, | ||
Trigger, | ||
// | ||
Root as LinkPreview, | ||
Content as LinkPreviewContent, | ||
Trigger as LinkPreviewTrigger | ||
}; | ||
|
||
export * from "./types.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.