-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/tax-invoice-release
- Loading branch information
Showing
68 changed files
with
2,187 additions
and
527 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
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 |
---|---|---|
@@ -1,12 +1,24 @@ | ||
import { Collapsible } from "@kobalte/core/collapsible"; | ||
import { Dynamic } from "solid-js/web"; | ||
|
||
import { useInteractiveDocs } from "~/state/interactive-docs"; | ||
|
||
export function CodePreview() { | ||
const { preview } = useInteractiveDocs(); | ||
|
||
return ( | ||
<div class="grid bg-slate-8 pt-2"> | ||
<Dynamic component={preview()} /> | ||
</div> | ||
<Collapsible | ||
class="grid grid-rows-[auto_auto] bg-slate-8 pt-2" | ||
forceMount | ||
defaultOpen | ||
> | ||
<Collapsible.Trigger class="flex gap-2 rounded-t-lg bg-slate-5 px-4 py-2 [&[data-expanded]>i]:transform-rotate-180"> | ||
<i class="i-ic-baseline-keyboard-arrow-down text-xl text-slate-3 font-medium" /> | ||
<span class="text-sm text-slate-3 font-medium">미리보기</span> | ||
</Collapsible.Trigger> | ||
<Collapsible.Content class="data-[closed]:hidden"> | ||
<Dynamic component={preview()} /> | ||
</Collapsible.Content> | ||
</Collapsible> | ||
); | ||
} |
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
Oops, something went wrong.