forked from unovue/reka-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* init * chore:change import paths to static * complete api * udpate pnpm-lock --------- Co-authored-by: zernonia <[email protected]>
- Loading branch information
Showing
5 changed files
with
50 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
<script lang="ts"> | ||
import BaseSeparator from "../shared/component/BaseSeparator.vue"; | ||
import type { DataOrientation } from "../shared/types"; | ||
import { type PrimitiveProps } from "@/Primitive"; | ||
import BaseSeparator, { | ||
type BaseSeparatorProps, | ||
} from "@/shared/component/BaseSeparator.vue"; | ||
export interface BaseSeparatorProps extends PrimitiveProps { | ||
orientation?: DataOrientation; | ||
decorative?: boolean; | ||
} | ||
export interface SeparatorProps extends BaseSeparatorProps {} | ||
</script> | ||
|
||
<script setup lang="ts"> | ||
const props = withDefaults(defineProps<BaseSeparatorProps>(), { | ||
const props = withDefaults(defineProps<SeparatorProps>(), { | ||
orientation: "horizontal", | ||
}); | ||
</script> | ||
|
||
<template> | ||
<BaseSeparator v-bind="props" :data-orientation="props.orientation" /> | ||
<BaseSeparator v-bind="props"> | ||
<slot></slot> | ||
</BaseSeparator> | ||
</template> |
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 +1 @@ | ||
export { default as Separator } from "./Separator.vue"; | ||
export { default as Separator, type SeparatorProps } from "./Separator.vue"; |
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,38 +1,28 @@ | ||
<script setup lang="ts"> | ||
import { Separator } from 'radix-vue' | ||
import { Separator } from "radix-vue"; | ||
</script> | ||
|
||
<template> | ||
<div class="w-full max-w-[300px] mx-[15px]"> | ||
<div class="text-white text-[15px] leading-5 font-medium"> | ||
Radix Primitives | ||
</div> | ||
<div class="text-white text-[15px] leading-5"> | ||
An open-source UI component library. | ||
</div> | ||
<div class="text-white text-[15px] leading-5 font-medium">Radix Primitives</div> | ||
<div class="text-white text-[15px] leading-5">An open-source UI component library.</div> | ||
<Separator | ||
class="bg-[#d7cff9] data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px my-[15px]" | ||
/> | ||
<div class="flex h-5 items-center"> | ||
<div class="text-white text-[15px] leading-5"> | ||
Blog | ||
</div> | ||
<div class="text-white text-[15px] leading-5">Blog</div> | ||
<Separator | ||
class="bg-[#d7cff9] data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px mx-[15px]" | ||
decorative | ||
orientation="vertical" | ||
/> | ||
<div class="text-white text-[15px] leading-5"> | ||
Docs | ||
</div> | ||
<div class="text-white text-[15px] leading-5">Docs</div> | ||
<Separator | ||
class="bg-[#d7cff9] data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px mx-[15px]" | ||
decorative | ||
aschild | ||
orientation="vertical" | ||
/> | ||
<div class="text-white text-[15px] leading-5"> | ||
Source | ||
</div> | ||
<div class="text-white text-[15px] leading-5">Source</div> | ||
</div> | ||
</div> | ||
</template> |