-
-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
249 additions
and
271 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
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
Large diffs are not rendered by default.
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
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
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
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
1 change: 0 additions & 1 deletion
1
sites/docs/src/lib/components/docs/theme-customizer/theme-customizer.svelte
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
26 changes: 11 additions & 15 deletions
26
sites/docs/src/lib/registry/default/ui/hover-card/hover-card-content.svelte
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,27 +1,23 @@ | ||
<script lang="ts"> | ||
import { LinkPreview as HoverCardPrimitive } from "bits-ui"; | ||
import { cn, flyAndScale } from "$lib/utils.js"; | ||
import { cn } from "$lib/utils.js"; | ||
type $$Props = HoverCardPrimitive.ContentProps; | ||
let className: $$Props["class"] = undefined; | ||
export let transition: $$Props["transition"] = flyAndScale; | ||
export let transitionConfig: $$Props["transitionConfig"] = undefined; | ||
export let align: $$Props["align"] = "center"; | ||
export let sideOffset: $$Props["sideOffset"] = 4; | ||
export { className as class }; | ||
let { | ||
ref = $bindable(null), | ||
class: className, | ||
align = "center", | ||
sideOffset = 4, | ||
...restProps | ||
}: HoverCardPrimitive.ContentProps = $props(); | ||
</script> | ||
|
||
<HoverCardPrimitive.Content | ||
{transition} | ||
{transitionConfig} | ||
bind:ref | ||
{align} | ||
{sideOffset} | ||
class={cn( | ||
"bg-popover text-popover-foreground z-50 mt-3 w-64 rounded-md border p-4 shadow-md outline-none", | ||
className | ||
)} | ||
{...$$restProps} | ||
> | ||
<slot /> | ||
</HoverCardPrimitive.Content> | ||
{...restProps} | ||
/> |
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
11 changes: 0 additions & 11 deletions
11
sites/docs/src/lib/registry/new-york/ui/aspect-ratio/aspect-ratio.svelte
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import Root from "./aspect-ratio.svelte"; | ||
import { AspectRatio as AspectRatioPrimitive } from "bits-ui"; | ||
|
||
const Root = AspectRatioPrimitive.Root; | ||
|
||
export { Root, Root as AspectRatio }; |
18 changes: 10 additions & 8 deletions
18
sites/docs/src/lib/registry/new-york/ui/command/command-dialog.svelte
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,23 +1,25 @@ | ||
<script lang="ts"> | ||
import type { Dialog as DialogPrimitive } from "bits-ui"; | ||
import type { Dialog as DialogPrimitive, WithoutChild } from "bits-ui"; | ||
import type { Command as CommandPrimitive } from "cmdk-sv"; | ||
import Command from "./command.svelte"; | ||
import * as Dialog from "$lib/registry/new-york/ui/dialog/index.js"; | ||
type $$Props = DialogPrimitive.Props & CommandPrimitive.CommandProps; | ||
export let open: $$Props["open"] = false; | ||
export let value: $$Props["value"] = undefined; | ||
let { | ||
open = $bindable(false), | ||
value = $bindable(""), | ||
children, | ||
...restProps | ||
}: WithoutChild<DialogPrimitive.RootProps> & CommandPrimitive.CommandProps = $props(); | ||
</script> | ||
|
||
<Dialog.Root bind:open {...$$restProps}> | ||
<Dialog.Root bind:open {...restProps}> | ||
<Dialog.Content class="overflow-hidden p-0"> | ||
<Command | ||
class="[&_[data-cmdk-group-heading]]:text-muted-foreground [&_[data-cmdk-group-heading]]:px-2 [&_[data-cmdk-group-heading]]:font-medium [&_[data-cmdk-group]:not([hidden])_~[data-cmdk-group]]:pt-0 [&_[data-cmdk-group]]:px-2 [&_[data-cmdk-input-wrapper]_svg]:h-5 [&_[data-cmdk-input-wrapper]_svg]:w-5 [&_[data-cmdk-input]]:h-12 [&_[data-cmdk-item]]:px-2 [&_[data-cmdk-item]]:py-3 [&_[data-cmdk-item]_svg]:h-5 [&_[data-cmdk-item]_svg]:w-5" | ||
{...$$restProps} | ||
{...restProps} | ||
bind:value | ||
> | ||
<slot /> | ||
{@render children?.()} | ||
</Command> | ||
</Dialog.Content> | ||
</Dialog.Root> |
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
8 changes: 3 additions & 5 deletions
8
sites/docs/src/lib/registry/new-york/ui/command/command-group.svelte
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,18 +1,16 @@ | ||
<script lang="ts"> | ||
import { Command as CommandPrimitive } from "cmdk-sv"; | ||
import { cn } from "$lib/utils.js"; | ||
type $$Props = CommandPrimitive.GroupProps; | ||
let className: string | undefined | null = undefined; | ||
export { className as class }; | ||
let { class: className, children, ...restProps }: CommandPrimitive.GroupProps = $props(); | ||
</script> | ||
|
||
<CommandPrimitive.Group | ||
class={cn( | ||
"text-foreground [&_[data-cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[data-cmdk-group-heading]]:px-2 [&_[data-cmdk-group-heading]]:py-1.5 [&_[data-cmdk-group-heading]]:text-xs [&_[data-cmdk-group-heading]]:font-medium", | ||
className | ||
)} | ||
{...$$restProps} | ||
{...restProps} | ||
> | ||
<slot /> | ||
{@render children?.()} | ||
</CommandPrimitive.Group> |
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
26 changes: 11 additions & 15 deletions
26
sites/docs/src/lib/registry/new-york/ui/hover-card/hover-card-content.svelte
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,27 +1,23 @@ | ||
<script lang="ts"> | ||
import { LinkPreview as HoverCardPrimitive } from "bits-ui"; | ||
import { cn, flyAndScale } from "$lib/utils.js"; | ||
import { cn } from "$lib/utils.js"; | ||
type $$Props = HoverCardPrimitive.ContentProps; | ||
let className: $$Props["class"] = undefined; | ||
export let align: $$Props["align"] = "center"; | ||
export let sideOffset: $$Props["sideOffset"] = 4; | ||
export let transition: $$Props["transition"] = flyAndScale; | ||
export let transitionConfig: $$Props["transitionConfig"] = undefined; | ||
export { className as class }; | ||
let { | ||
ref = $bindable(null), | ||
class: className, | ||
align = "center", | ||
sideOffset = 4, | ||
...restProps | ||
}: HoverCardPrimitive.ContentProps = $props(); | ||
</script> | ||
|
||
<HoverCardPrimitive.Content | ||
{transition} | ||
{transitionConfig} | ||
bind:ref | ||
{sideOffset} | ||
{align} | ||
class={cn( | ||
"bg-popover text-popover-foreground z-50 w-64 rounded-md border p-4 shadow-md outline-none", | ||
className | ||
)} | ||
{...$$restProps} | ||
> | ||
<slot /> | ||
</HoverCardPrimitive.Content> | ||
{...restProps} | ||
/> |
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
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.