Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed Feb 23, 2024
1 parent aeb10aa commit 1484790
Show file tree
Hide file tree
Showing 13 changed files with 61 additions and 43 deletions.
2 changes: 2 additions & 0 deletions packages/paneforge/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ node_modules
pnpm-lock.yaml
package-lock.json
yarn.lock
dist
/dist
2 changes: 2 additions & 0 deletions packages/paneforge/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
pnpm-lock.yaml
package-lock.json
yarn.lock
dist
.svelte-kit
3 changes: 2 additions & 1 deletion sites/docs/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ node_modules
pnpm-lock.yaml
package-lock.json
yarn.lock
CHANGELOG.md
CHANGELOG.md
/.contentlayer
5 changes: 4 additions & 1 deletion sites/docs/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
pnpm-lock.yaml
package-lock.json
yarn.lock
CHANGELOG.md
CHANGELOG.md
.svelte-kit
/.svelte-kit
/.contentlayer
14 changes: 7 additions & 7 deletions sites/docs/src/lib/components/demos/collapsible-demo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,29 +35,29 @@
onCollapse={() => (collapsed = true)}
onExpand={() => (collapsed = false)}
>
<div class="bg-muted flex h-[400px] items-center justify-center rounded-lg p-6">
<div class="flex h-[400px] items-center justify-center rounded-lg bg-muted p-6">
<span class="font-semibold">One</span>
</div>
</Pane>
<PaneResizeHandle class="bg-background relative flex w-2 items-center justify-center">
<div class="bg-brand z-10 flex h-7 w-5 items-center justify-center rounded-sm border">
<PaneResizeHandle class="relative flex w-2 items-center justify-center bg-background">
<div class="z-10 flex h-7 w-5 items-center justify-center rounded-sm border bg-brand">
<DotsSixVertical class="size-4 text-black" weight="bold" />
</div>
</PaneResizeHandle>
<Pane defaultSize={50}>
<PaneGroup direction="vertical">
<Pane defaultSize={50}>
<div class="bg-muted flex h-full items-center justify-center rounded-lg p-6">
<div class="flex h-full items-center justify-center rounded-lg bg-muted p-6">
<span class="font-semibold">Two</span>
</div>
</Pane>
<PaneResizeHandle class="bg-background relative flex h-2 items-center justify-center">
<div class="bg-brand z-10 flex h-5 w-7 items-center justify-center rounded-sm border">
<PaneResizeHandle class="relative flex h-2 items-center justify-center bg-background">
<div class="z-10 flex h-5 w-7 items-center justify-center rounded-sm border bg-brand">
<DotsSixVertical class="size-4 text-black" weight="bold" />
</div>
</PaneResizeHandle>
<Pane defaultSize={50}>
<div class="bg-muted flex h-full items-center justify-center rounded-lg p-6">
<div class="flex h-full items-center justify-center rounded-lg bg-muted p-6">
<span class="font-semibold">Three</span>
</div>
</Pane>
Expand Down
14 changes: 7 additions & 7 deletions sites/docs/src/lib/components/demos/conditional-demo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,29 +25,29 @@
<PaneGroup direction="horizontal" class="w-full">
{#if showPaneOne}
<Pane defaultSize={1 / 3} order={1}>
<div class="bg-muted flex h-[400px] items-center justify-center rounded-lg p-6">
<div class="flex h-[400px] items-center justify-center rounded-lg bg-muted p-6">
<span class="font-semibold">One</span>
</div>
</Pane>
<PaneResizeHandle class="bg-background relative flex w-2 items-center justify-center">
<div class="bg-brand z-10 flex h-7 w-5 items-center justify-center rounded-sm border">
<PaneResizeHandle class="relative flex w-2 items-center justify-center bg-background">
<div class="z-10 flex h-7 w-5 items-center justify-center rounded-sm border bg-brand">
<DotsSixVertical class="size-4 text-black" weight="bold" />
</div>
</PaneResizeHandle>
{/if}
<Pane defaultSize={1 / 3} order={2}>
<div class="bg-muted flex h-[400px] items-center justify-center rounded-lg p-6">
<div class="flex h-[400px] items-center justify-center rounded-lg bg-muted p-6">
<span class="font-semibold">Two</span>
</div>
</Pane>
{#if showPaneThree}
<PaneResizeHandle class="bg-background relative flex w-2 items-center justify-center">
<div class="bg-brand z-10 flex h-7 w-5 items-center justify-center rounded-sm border">
<PaneResizeHandle class="relative flex w-2 items-center justify-center bg-background">
<div class="z-10 flex h-7 w-5 items-center justify-center rounded-sm border bg-brand">
<DotsSixVertical class="size-4 text-black" weight="bold" />
</div>
</PaneResizeHandle>
<Pane defaultSize={1 / 3} order={3}>
<div class="bg-muted flex h-[400px] items-center justify-center rounded-lg p-6">
<div class="flex h-[400px] items-center justify-center rounded-lg bg-muted p-6">
<span class="font-semibold">Three</span>
</div>
</Pane>
Expand Down
8 changes: 4 additions & 4 deletions sites/docs/src/lib/components/demos/cookie-demo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
</script>

<PaneGroup direction="horizontal" class="w-full rounded-lg" {onLayoutChange}>
<Pane defaultSize={defaultLayout ? defaultLayout[0] : 50} class="bg-muted rounded-lg">
<Pane defaultSize={defaultLayout ? defaultLayout[0] : 50} class="rounded-lg bg-muted">
<div class="flex h-[400px] items-center justify-center p-6">
<span class="font-semibold">Left</span>
</div>
</Pane>
<PaneResizeHandle class="bg-background relative flex w-2 items-center justify-center">
<div class="bg-brand z-10 flex h-7 w-5 items-center justify-center rounded-sm border">
<PaneResizeHandle class="relative flex w-2 items-center justify-center bg-background">
<div class="z-10 flex h-7 w-5 items-center justify-center rounded-sm border bg-brand">
<DotsSixVertical class="size-4 text-black" weight="bold" />
</div>
</PaneResizeHandle>
<Pane defaultSize={defaultLayout ? defaultLayout[1] : 50} class="bg-muted rounded-lg">
<Pane defaultSize={defaultLayout ? defaultLayout[1] : 50} class="rounded-lg bg-muted">
<div class="flex h-full items-center justify-center p-6">
<span class="font-semibold">Right</span>
</div>
Expand Down
8 changes: 4 additions & 4 deletions sites/docs/src/lib/components/demos/horizontal-demo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
</script>

<PaneGroup direction="horizontal" class="w-full rounded-lg">
<Pane defaultSize={50} class="bg-muted rounded-lg">
<Pane defaultSize={50} class="rounded-lg bg-muted">
<div class="flex h-[400px] items-center justify-center p-6">
<span class="font-semibold">Left</span>
</div>
</Pane>
<PaneResizeHandle class="bg-background relative flex w-2 items-center justify-center">
<div class="bg-brand z-10 flex h-7 w-5 items-center justify-center rounded-sm border">
<PaneResizeHandle class="relative flex w-2 items-center justify-center bg-background">
<div class="z-10 flex h-7 w-5 items-center justify-center rounded-sm border bg-brand">
<DotsSixVertical class="size-4 text-black" weight="bold" />
</div>
</PaneResizeHandle>
<Pane defaultSize={50} class="bg-muted rounded-lg">
<Pane defaultSize={50} class="rounded-lg bg-muted">
<div class="flex h-full items-center justify-center p-6">
<span class="font-semibold">Right</span>
</div>
Expand Down
14 changes: 7 additions & 7 deletions sites/docs/src/lib/components/demos/nested-groups-demo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,29 @@

<PaneGroup direction="horizontal" class="w-full">
<Pane defaultSize={50}>
<div class="bg-muted flex h-[400px] items-center justify-center rounded-lg p-6">
<div class="flex h-[400px] items-center justify-center rounded-lg bg-muted p-6">
<span class="font-semibold">One</span>
</div>
</Pane>
<PaneResizeHandle class="bg-background relative flex w-2 items-center justify-center">
<div class="bg-brand z-10 flex h-7 w-5 items-center justify-center rounded-sm border">
<PaneResizeHandle class="relative flex w-2 items-center justify-center bg-background">
<div class="z-10 flex h-7 w-5 items-center justify-center rounded-sm border bg-brand">
<DotsSixVertical class="size-4 text-black" weight="bold" />
</div>
</PaneResizeHandle>
<Pane defaultSize={50}>
<PaneGroup direction="vertical">
<Pane defaultSize={50}>
<div class="bg-muted flex h-full items-center justify-center rounded-lg p-6">
<div class="flex h-full items-center justify-center rounded-lg bg-muted p-6">
<span class="font-semibold">Two</span>
</div>
</Pane>
<PaneResizeHandle class="bg-background relative flex h-2 items-center justify-center">
<div class="bg-brand z-10 flex h-5 w-7 items-center justify-center rounded-sm border">
<PaneResizeHandle class="relative flex h-2 items-center justify-center bg-background">
<div class="z-10 flex h-5 w-7 items-center justify-center rounded-sm border bg-brand">
<DotsSixVertical class="size-4 text-black" weight="bold" />
</div>
</PaneResizeHandle>
<Pane defaultSize={50}>
<div class="bg-muted flex h-full items-center justify-center rounded-lg p-6">
<div class="flex h-full items-center justify-center rounded-lg bg-muted p-6">
<span class="font-semibold">Three</span>
</div>
</Pane>
Expand Down
10 changes: 5 additions & 5 deletions sites/docs/src/lib/components/demos/overflow-demo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<PaneGroup direction="horizontal" class="w-full">
<Pane defaultSize={50}>
<div class="bg-muted flex h-[400px] items-center justify-center rounded-lg">
<div class="flex h-[400px] items-center justify-center rounded-lg bg-muted">
<div class="h-full overflow-auto p-6">
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Fuga quaerat eos, saepe doloribus
facere fugiat! Magni consequatur a veniam quia. Exercitationem recusandae facilis cupiditate
Expand All @@ -17,11 +17,11 @@
</div>
</div>
</Pane>
<PaneResizeHandle class="bg-background relative flex w-2 items-center justify-center" />
<PaneResizeHandle class="relative flex w-2 items-center justify-center bg-background" />
<Pane defaultSize={50}>
<PaneGroup direction="vertical">
<Pane defaultSize={25}>
<div class="bg-muted flex h-full items-center justify-center rounded-lg">
<div class="flex h-full items-center justify-center rounded-lg bg-muted">
<div class="h-full overflow-auto p-6">
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Fuga quaerat eos, saepe
doloribus facere fugiat! Magni consequatur a veniam quia. Exercitationem recusandae
Expand All @@ -34,9 +34,9 @@
</div>
</div>
</Pane>
<PaneResizeHandle class="bg-background relative flex h-2 items-center justify-center" />
<PaneResizeHandle class="relative flex h-2 items-center justify-center bg-background" />
<Pane defaultSize={75}>
<div class="bg-muted flex h-full items-center justify-center rounded-lg">
<div class="flex h-full items-center justify-center rounded-lg bg-muted">
<div class="h-full overflow-auto p-6">
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Fuga quaerat eos, saepe
doloribus facere fugiat! Magni consequatur a veniam quia. Exercitationem recusandae
Expand Down
8 changes: 4 additions & 4 deletions sites/docs/src/lib/components/demos/vertical-demo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@

<div class="h-[400px]">
<PaneGroup direction="vertical" class="w-full rounded-lg">
<Pane defaultSize={50} class="bg-muted rounded-lg">
<Pane defaultSize={50} class="rounded-lg bg-muted">
<div class="flex h-[200px] items-center justify-center p-6">
<span class="font-semibold">Top</span>
</div>
</Pane>
<PaneResizeHandle class="bg-background relative flex h-2 items-center justify-center">
<div class="bg-brand z-10 flex h-5 w-7 items-center justify-center rounded-sm border">
<PaneResizeHandle class="relative flex h-2 items-center justify-center bg-background">
<div class="z-10 flex h-5 w-7 items-center justify-center rounded-sm border bg-brand">
<DotsSixVertical class="size-4 text-black" weight="bold" />
</div>
</PaneResizeHandle>
<Pane defaultSize={50} class="bg-muted rounded-lg">
<Pane defaultSize={50} class="rounded-lg bg-muted">
<div class="flex h-full items-center justify-center p-6">
<span class="font-semibold">Bottom</span>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@

<ResizablePrimitive.PaneResizeHandle
class={cn(
"bg-border focus-visible:ring-ring data-[resize-handle-active=pointer]:bg-muted-foreground relative flex w-[3px] items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-offset-1 data-[pane-group-direction=vertical]:h-[3px] data-[pane-group-direction=vertical]:w-full data-[pane-group-direction=vertical]:after:left-0 data-[pane-group-direction=vertical]:after:h-1 data-[pane-group-direction=vertical]:after:w-full data-[pane-group-direction=vertical]:after:-translate-y-1/2 data-[pane-group-direction=vertical]:after:translate-x-0 [&[data-pane-group-direction=vertical]>div]:rotate-90",
"relative flex w-[3px] items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[pane-group-direction=vertical]:h-[3px] data-[pane-group-direction=vertical]:w-full data-[resize-handle-active=pointer]:bg-muted-foreground data-[pane-group-direction=vertical]:after:left-0 data-[pane-group-direction=vertical]:after:h-1 data-[pane-group-direction=vertical]:after:w-full data-[pane-group-direction=vertical]:after:-translate-y-1/2 data-[pane-group-direction=vertical]:after:translate-x-0 [&[data-pane-group-direction=vertical]>div]:rotate-90",
className
)}
{...$$restProps}
>
{#if withHandle}
<div class="bg-border z-10 flex h-4 w-3 items-center justify-center rounded-sm border">
<div class="z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border">
<DotsSixVertical class="size-2.5" />
</div>
{/if}
Expand Down
12 changes: 11 additions & 1 deletion sites/docs/static/site.webmanifest
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
{
"name": "",
"short_name": "",
"icons": [
{ "src": "/android-chrome-192x192.png", "sizes": "192x192", "type": "image/png" },
{ "src": "/android-chrome-512x512.png", "sizes": "512x512", "type": "image/png" }
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}

0 comments on commit 1484790

Please sign in to comment.