@stubber/ui 1.13.0 → 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.
@@ -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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stubber/ui",
3
- "version": "1.13.0",
3
+ "version": "1.13.1",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && pnpm run package && node ./fix_dts_imports.js",