@stubber/ui 1.12.3 → 1.13.1
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/command/command-dialog.svelte +3 -1
- package/dist/components/command/command-dialog.svelte.d.ts +3 -0
- package/dist/components/skeleton/index.d.ts +2 -0
- package/dist/components/skeleton/index.js +4 -0
- package/dist/components/skeleton/skeleton.svelte +12 -0
- package/dist/components/skeleton/skeleton.svelte.d.ts +17 -0
- package/package.json +1 -1
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
<script>import Command from "./command.svelte";
|
|
2
2
|
import * as Dialog from "../dialog/index.js";
|
|
3
|
+
import { cn } from "../../utils/shadcn-utils";
|
|
3
4
|
export let open = false;
|
|
4
5
|
export let value = void 0;
|
|
6
|
+
export let dialogClass = void 0;
|
|
5
7
|
</script>
|
|
6
8
|
|
|
7
9
|
<Dialog.Root bind:open {...$$restProps}>
|
|
8
|
-
<Dialog.Content class="overflow-hidden p-0 shadow-lg">
|
|
10
|
+
<Dialog.Content class={cn("overflow-hidden p-0 shadow-lg", dialogClass)}>
|
|
9
11
|
<Command
|
|
10
12
|
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"
|
|
11
13
|
{...$$restProps}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
+
import type { Dialog as DialogPrimitive } from "bits-ui";
|
|
2
3
|
declare const __propDef: {
|
|
3
4
|
props: {
|
|
4
5
|
preventScroll?: boolean | undefined;
|
|
@@ -22,6 +23,8 @@ declare const __propDef: {
|
|
|
22
23
|
} & import("cmdk-sv/dist/internal").HTMLDivAttributes & {
|
|
23
24
|
onKeydown?: (e: KeyboardEvent) => void;
|
|
24
25
|
asChild?: boolean;
|
|
26
|
+
} & {
|
|
27
|
+
dialogClass?: DialogPrimitive.ContentProps["class"];
|
|
25
28
|
};
|
|
26
29
|
events: {
|
|
27
30
|
[evt: string]: CustomEvent<any>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script>import { cn } from "../../utils/shadcn-utils.js";
|
|
2
|
+
let className = void 0;
|
|
3
|
+
export { className as class };
|
|
4
|
+
export let ref = null;
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<div
|
|
8
|
+
bind:this={ref}
|
|
9
|
+
data-slot="skeleton"
|
|
10
|
+
class={cn("bg-muted animate-pulse rounded-md", className)}
|
|
11
|
+
{...$$restProps}
|
|
12
|
+
></div>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: HTMLAttributes<HTMLDivElement>;
|
|
5
|
+
events: {
|
|
6
|
+
[evt: string]: CustomEvent<any>;
|
|
7
|
+
};
|
|
8
|
+
slots: {};
|
|
9
|
+
exports?: {} | undefined;
|
|
10
|
+
bindings?: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
export type SkeletonProps = typeof __propDef.props;
|
|
13
|
+
export type SkeletonEvents = typeof __propDef.events;
|
|
14
|
+
export type SkeletonSlots = typeof __propDef.slots;
|
|
15
|
+
export default class Skeleton extends SvelteComponent<SkeletonProps, SkeletonEvents, SkeletonSlots> {
|
|
16
|
+
}
|
|
17
|
+
export {};
|