@autumnsgrove/groveengine 0.1.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/admin/GutterManager.svelte +1 -2
- package/dist/components/admin/MarkdownEditor.svelte +1 -2
- package/dist/components/custom/InternalsPostViewer.svelte +95 -0
- package/dist/components/custom/InternalsPostViewer.svelte.d.ts +13 -0
- package/dist/components/ui/index.d.ts +0 -12
- package/dist/components/ui/index.js +2 -13
- package/dist/components/ui/select/select-separator.svelte +2 -3
- package/dist/components/ui/select/select-separator.svelte.d.ts +1 -1
- package/dist/utils/markdown.d.ts +42 -0
- package/dist/utils/markdown.js +104 -0
- package/package.json +2 -1
- package/dist/components/ui/Badge.svelte +0 -48
- package/dist/components/ui/Badge.svelte.d.ts +0 -26
- package/dist/components/ui/Button.svelte +0 -74
- package/dist/components/ui/Button.svelte.d.ts +0 -34
- package/dist/components/ui/Card.svelte +0 -102
- package/dist/components/ui/Card.svelte.d.ts +0 -46
- package/dist/components/ui/Input.svelte +0 -81
- package/dist/components/ui/Input.svelte.d.ts +0 -35
- package/dist/components/ui/Skeleton.svelte +0 -31
- package/dist/components/ui/Skeleton.svelte.d.ts +0 -26
- package/dist/components/ui/Textarea.svelte +0 -81
- package/dist/components/ui/Textarea.svelte.d.ts +0 -35
- package/dist/components/ui/badge/badge.svelte +0 -50
- package/dist/components/ui/badge/badge.svelte.d.ts +0 -60
- package/dist/components/ui/badge/index.d.ts +0 -2
- package/dist/components/ui/badge/index.js +0 -2
- package/dist/components/ui/button/button.svelte +0 -82
- package/dist/components/ui/button/button.svelte.d.ts +0 -132
- package/dist/components/ui/button/index.d.ts +0 -2
- package/dist/components/ui/button/index.js +0 -4
- package/dist/components/ui/card/card-content.svelte +0 -16
- package/dist/components/ui/card/card-content.svelte.d.ts +0 -5
- package/dist/components/ui/card/card-description.svelte +0 -16
- package/dist/components/ui/card/card-description.svelte.d.ts +0 -5
- package/dist/components/ui/card/card-footer.svelte +0 -16
- package/dist/components/ui/card/card-footer.svelte.d.ts +0 -5
- package/dist/components/ui/card/card-header.svelte +0 -16
- package/dist/components/ui/card/card-header.svelte.d.ts +0 -5
- package/dist/components/ui/card/card-title.svelte +0 -25
- package/dist/components/ui/card/card-title.svelte.d.ts +0 -8
- package/dist/components/ui/card/card.svelte +0 -20
- package/dist/components/ui/card/card.svelte.d.ts +0 -5
- package/dist/components/ui/card/index.d.ts +0 -7
- package/dist/components/ui/card/index.js +0 -9
- package/dist/components/ui/input/index.d.ts +0 -2
- package/dist/components/ui/input/index.js +0 -4
- package/dist/components/ui/input/input.svelte +0 -46
- package/dist/components/ui/input/input.svelte.d.ts +0 -13
- package/dist/components/ui/separator/index.d.ts +0 -2
- package/dist/components/ui/separator/index.js +0 -4
- package/dist/components/ui/separator/separator.svelte +0 -22
- package/dist/components/ui/separator/separator.svelte.d.ts +0 -4
- package/dist/components/ui/skeleton/index.d.ts +0 -2
- package/dist/components/ui/skeleton/index.js +0 -4
- package/dist/components/ui/skeleton/skeleton.svelte +0 -17
- package/dist/components/ui/skeleton/skeleton.svelte.d.ts +0 -5
- package/dist/components/ui/textarea/index.d.ts +0 -2
- package/dist/components/ui/textarea/index.js +0 -4
- package/dist/components/ui/textarea/textarea.svelte +0 -24
- package/dist/components/ui/textarea/textarea.svelte.d.ts +0 -6
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { WithElementRef } from "bits-ui";
|
|
3
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
4
|
-
import { cn } from "../../../utils";
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
ref = $bindable(null),
|
|
8
|
-
class: className,
|
|
9
|
-
children,
|
|
10
|
-
...restProps
|
|
11
|
-
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<div bind:this={ref} class={cn("p-6", className)} {...restProps}>
|
|
15
|
-
{@render children?.()}
|
|
16
|
-
</div>
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { WithElementRef } from "bits-ui";
|
|
2
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
-
declare const CardContent: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
|
-
type CardContent = ReturnType<typeof CardContent>;
|
|
5
|
-
export default CardContent;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { WithElementRef } from "bits-ui";
|
|
3
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
4
|
-
import { cn } from "../../../utils";
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
ref = $bindable(null),
|
|
8
|
-
class: className,
|
|
9
|
-
children,
|
|
10
|
-
...restProps
|
|
11
|
-
}: WithElementRef<HTMLAttributes<HTMLParagraphElement>> = $props();
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<p bind:this={ref} class={cn("text-muted-foreground text-sm", className)} {...restProps}>
|
|
15
|
-
{@render children?.()}
|
|
16
|
-
</p>
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { WithElementRef } from "bits-ui";
|
|
2
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
-
declare const CardDescription: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLParagraphElement>>, {}, "ref">;
|
|
4
|
-
type CardDescription = ReturnType<typeof CardDescription>;
|
|
5
|
-
export default CardDescription;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { WithElementRef } from "bits-ui";
|
|
3
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
4
|
-
import { cn } from "../../../utils";
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
ref = $bindable(null),
|
|
8
|
-
class: className,
|
|
9
|
-
children,
|
|
10
|
-
...restProps
|
|
11
|
-
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<div bind:this={ref} class={cn("flex items-center p-6 pt-0", className)} {...restProps}>
|
|
15
|
-
{@render children?.()}
|
|
16
|
-
</div>
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { WithElementRef } from "bits-ui";
|
|
2
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
-
declare const CardFooter: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
|
-
type CardFooter = ReturnType<typeof CardFooter>;
|
|
5
|
-
export default CardFooter;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { WithElementRef } from "bits-ui";
|
|
3
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
4
|
-
import { cn } from "../../../utils";
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
ref = $bindable(null),
|
|
8
|
-
class: className,
|
|
9
|
-
children,
|
|
10
|
-
...restProps
|
|
11
|
-
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<div bind:this={ref} class={cn("flex flex-col space-y-1.5 p-6 pb-0", className)} {...restProps}>
|
|
15
|
-
{@render children?.()}
|
|
16
|
-
</div>
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { WithElementRef } from "bits-ui";
|
|
2
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
-
declare const CardHeader: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
|
-
type CardHeader = ReturnType<typeof CardHeader>;
|
|
5
|
-
export default CardHeader;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { WithElementRef } from "bits-ui";
|
|
3
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
4
|
-
import { cn } from "../../../utils";
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
ref = $bindable(null),
|
|
8
|
-
class: className,
|
|
9
|
-
level = 3,
|
|
10
|
-
children,
|
|
11
|
-
...restProps
|
|
12
|
-
}: WithElementRef<HTMLAttributes<HTMLDivElement>> & {
|
|
13
|
-
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
14
|
-
} = $props();
|
|
15
|
-
</script>
|
|
16
|
-
|
|
17
|
-
<div
|
|
18
|
-
role="heading"
|
|
19
|
-
aria-level={level}
|
|
20
|
-
bind:this={ref}
|
|
21
|
-
class={cn("text-2xl font-semibold leading-none tracking-tight", className)}
|
|
22
|
-
{...restProps}
|
|
23
|
-
>
|
|
24
|
-
{@render children?.()}
|
|
25
|
-
</div>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { WithElementRef } from "bits-ui";
|
|
2
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
-
type $$ComponentProps = WithElementRef<HTMLAttributes<HTMLDivElement>> & {
|
|
4
|
-
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
5
|
-
};
|
|
6
|
-
declare const CardTitle: import("svelte").Component<$$ComponentProps, {}, "ref">;
|
|
7
|
-
type CardTitle = ReturnType<typeof CardTitle>;
|
|
8
|
-
export default CardTitle;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { WithElementRef } from "bits-ui";
|
|
3
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
4
|
-
import { cn } from "../../../utils";
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
ref = $bindable(null),
|
|
8
|
-
class: className,
|
|
9
|
-
children,
|
|
10
|
-
...restProps
|
|
11
|
-
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<div
|
|
15
|
-
bind:this={ref}
|
|
16
|
-
class={cn("bg-card text-card-foreground rounded-lg border shadow-sm", className)}
|
|
17
|
-
{...restProps}
|
|
18
|
-
>
|
|
19
|
-
{@render children?.()}
|
|
20
|
-
</div>
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { WithElementRef } from "bits-ui";
|
|
2
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
-
declare const Card: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
|
-
type Card = ReturnType<typeof Card>;
|
|
5
|
-
export default Card;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import Root from "./card.svelte";
|
|
2
|
-
import Content from "./card-content.svelte";
|
|
3
|
-
import Description from "./card-description.svelte";
|
|
4
|
-
import Footer from "./card-footer.svelte";
|
|
5
|
-
import Header from "./card-header.svelte";
|
|
6
|
-
import Title from "./card-title.svelte";
|
|
7
|
-
export { Root, Content, Description, Footer, Header, Title, Root as Card, Content as CardContent, Description as CardDescription, Footer as CardFooter, Header as CardHeader, Title as CardTitle, };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import Root from "./card.svelte";
|
|
2
|
-
import Content from "./card-content.svelte";
|
|
3
|
-
import Description from "./card-description.svelte";
|
|
4
|
-
import Footer from "./card-footer.svelte";
|
|
5
|
-
import Header from "./card-header.svelte";
|
|
6
|
-
import Title from "./card-title.svelte";
|
|
7
|
-
export { Root, Content, Description, Footer, Header, Title,
|
|
8
|
-
//
|
|
9
|
-
Root as Card, Content as CardContent, Description as CardDescription, Footer as CardFooter, Header as CardHeader, Title as CardTitle, };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { HTMLInputAttributes, HTMLInputTypeAttribute } from "svelte/elements";
|
|
3
|
-
import type { WithElementRef } from "bits-ui";
|
|
4
|
-
import { cn } from "../../../utils";
|
|
5
|
-
|
|
6
|
-
type InputType = Exclude<HTMLInputTypeAttribute, "file">;
|
|
7
|
-
|
|
8
|
-
type Props = WithElementRef<
|
|
9
|
-
Omit<HTMLInputAttributes, "type"> &
|
|
10
|
-
({ type: "file"; files?: FileList } | { type?: InputType; files?: undefined })
|
|
11
|
-
>;
|
|
12
|
-
|
|
13
|
-
let {
|
|
14
|
-
ref = $bindable(null),
|
|
15
|
-
value = $bindable(),
|
|
16
|
-
type,
|
|
17
|
-
files = $bindable(),
|
|
18
|
-
class: className,
|
|
19
|
-
...restProps
|
|
20
|
-
}: Props = $props();
|
|
21
|
-
</script>
|
|
22
|
-
|
|
23
|
-
{#if type === "file"}
|
|
24
|
-
<input
|
|
25
|
-
bind:this={ref}
|
|
26
|
-
class={cn(
|
|
27
|
-
"border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex h-10 w-full rounded-md border px-3 py-2 text-base file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
28
|
-
className
|
|
29
|
-
)}
|
|
30
|
-
type="file"
|
|
31
|
-
bind:files
|
|
32
|
-
bind:value
|
|
33
|
-
{...restProps}
|
|
34
|
-
/>
|
|
35
|
-
{:else}
|
|
36
|
-
<input
|
|
37
|
-
bind:this={ref}
|
|
38
|
-
class={cn(
|
|
39
|
-
"border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex h-10 w-full rounded-md border px-3 py-2 text-base file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
40
|
-
className
|
|
41
|
-
)}
|
|
42
|
-
{type}
|
|
43
|
-
bind:value
|
|
44
|
-
{...restProps}
|
|
45
|
-
/>
|
|
46
|
-
{/if}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { HTMLInputAttributes, HTMLInputTypeAttribute } from "svelte/elements";
|
|
2
|
-
import type { WithElementRef } from "bits-ui";
|
|
3
|
-
type InputType = Exclude<HTMLInputTypeAttribute, "file">;
|
|
4
|
-
type Props = WithElementRef<Omit<HTMLInputAttributes, "type"> & ({
|
|
5
|
-
type: "file";
|
|
6
|
-
files?: FileList;
|
|
7
|
-
} | {
|
|
8
|
-
type?: InputType;
|
|
9
|
-
files?: undefined;
|
|
10
|
-
})>;
|
|
11
|
-
declare const Input: import("svelte").Component<Props, {}, "value" | "ref" | "files">;
|
|
12
|
-
type Input = ReturnType<typeof Input>;
|
|
13
|
-
export default Input;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Separator as SeparatorPrimitive } from "bits-ui";
|
|
3
|
-
import { cn } from "../../../utils";
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
orientation = "horizontal",
|
|
9
|
-
...restProps
|
|
10
|
-
}: SeparatorPrimitive.RootProps = $props();
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<SeparatorPrimitive.Root
|
|
14
|
-
bind:ref
|
|
15
|
-
class={cn(
|
|
16
|
-
"bg-border shrink-0",
|
|
17
|
-
orientation === "horizontal" ? "h-[1px] w-full" : "min-h-full w-[1px]",
|
|
18
|
-
className
|
|
19
|
-
)}
|
|
20
|
-
{orientation}
|
|
21
|
-
{...restProps}
|
|
22
|
-
/>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { WithElementRef, WithoutChildren } from "bits-ui";
|
|
3
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
4
|
-
import { cn } from "../../../utils";
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
ref = $bindable(null),
|
|
8
|
-
class: className,
|
|
9
|
-
...restProps
|
|
10
|
-
}: WithoutChildren<WithElementRef<HTMLAttributes<HTMLDivElement>>> = $props();
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<div
|
|
14
|
-
bind:this={ref}
|
|
15
|
-
class={cn("bg-muted animate-pulse rounded-md", className)}
|
|
16
|
-
{...restProps}
|
|
17
|
-
></div>
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { WithElementRef } from "bits-ui";
|
|
2
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
-
declare const Skeleton: import("svelte").Component<Omit<WithElementRef<HTMLAttributes<HTMLDivElement>>, "children">, {}, "ref">;
|
|
4
|
-
type Skeleton = ReturnType<typeof Skeleton>;
|
|
5
|
-
export default Skeleton;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { HTMLTextareaAttributes } from "svelte/elements";
|
|
3
|
-
import type { WithElementRef } from "bits-ui";
|
|
4
|
-
import { cn } from "../../../utils";
|
|
5
|
-
|
|
6
|
-
type Props = WithElementRef<HTMLTextareaAttributes>;
|
|
7
|
-
|
|
8
|
-
let {
|
|
9
|
-
ref = $bindable(null),
|
|
10
|
-
value = $bindable(),
|
|
11
|
-
class: className,
|
|
12
|
-
...restProps
|
|
13
|
-
}: Props = $props();
|
|
14
|
-
</script>
|
|
15
|
-
|
|
16
|
-
<textarea
|
|
17
|
-
bind:this={ref}
|
|
18
|
-
class={cn(
|
|
19
|
-
"border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex min-h-[80px] w-full rounded-md border px-3 py-2 text-base focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
20
|
-
className
|
|
21
|
-
)}
|
|
22
|
-
bind:value
|
|
23
|
-
{...restProps}
|
|
24
|
-
/>
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { HTMLTextareaAttributes } from "svelte/elements";
|
|
2
|
-
import type { WithElementRef } from "bits-ui";
|
|
3
|
-
type Props = WithElementRef<HTMLTextareaAttributes>;
|
|
4
|
-
declare const Textarea: import("svelte").Component<Props, {}, "value" | "ref">;
|
|
5
|
-
type Textarea = ReturnType<typeof Textarea>;
|
|
6
|
-
export default Textarea;
|