@stubber/ui 1.0.8 → 1.0.9

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.
Files changed (29) hide show
  1. package/dist/components/context-menu/context-menu-checkbox-item.svelte +29 -0
  2. package/dist/components/context-menu/context-menu-checkbox-item.svelte.d.ts +15 -0
  3. package/dist/components/context-menu/context-menu-content.svelte +20 -0
  4. package/dist/components/context-menu/context-menu-content.svelte.d.ts +19 -0
  5. package/dist/components/context-menu/context-menu-item.svelte +24 -0
  6. package/dist/components/context-menu/context-menu-item.svelte.d.ts +17 -0
  7. package/dist/components/context-menu/context-menu-label.svelte +13 -0
  8. package/dist/components/context-menu/context-menu-label.svelte.d.ts +21 -0
  9. package/dist/components/context-menu/context-menu-radio-group.svelte +7 -0
  10. package/dist/components/context-menu/context-menu-radio-group.svelte.d.ts +17 -0
  11. package/dist/components/context-menu/context-menu-radio-item.svelte +29 -0
  12. package/dist/components/context-menu/context-menu-radio-item.svelte.d.ts +15 -0
  13. package/dist/components/context-menu/context-menu-separator.svelte +10 -0
  14. package/dist/components/context-menu/context-menu-separator.svelte.d.ts +15 -0
  15. package/dist/components/context-menu/context-menu-shortcut.svelte +11 -0
  16. package/dist/components/context-menu/context-menu-shortcut.svelte.d.ts +17 -0
  17. package/dist/components/context-menu/context-menu-sub-content.svelte +25 -0
  18. package/dist/components/context-menu/context-menu-sub-content.svelte.d.ts +21 -0
  19. package/dist/components/context-menu/context-menu-sub-trigger.svelte +24 -0
  20. package/dist/components/context-menu/context-menu-sub-trigger.svelte.d.ts +21 -0
  21. package/dist/components/context-menu/index.d.ts +16 -0
  22. package/dist/components/context-menu/index.js +18 -0
  23. package/dist/components/popover/index.d.ts +6 -0
  24. package/dist/components/popover/index.js +8 -0
  25. package/dist/components/popover/popover-content.svelte +19 -0
  26. package/dist/components/popover/popover-content.svelte.d.ts +17 -0
  27. package/dist/index.d.ts +1 -1
  28. package/dist/index.js +1 -1
  29. package/package.json +1 -1
@@ -0,0 +1,29 @@
1
+ <script>import { ContextMenu as ContextMenuPrimitive } from "bits-ui";
2
+ import { cn } from "../../utils/shadcn-utils.js";
3
+ let className = void 0;
4
+ export let checked = void 0;
5
+ export { className as class };
6
+ </script>
7
+
8
+ <ContextMenuPrimitive.CheckboxItem
9
+ bind:checked
10
+ class={cn(
11
+ "data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
12
+ className
13
+ )}
14
+ {...$$restProps}
15
+ on:click
16
+ on:keydown
17
+ on:focusin
18
+ on:focusout
19
+ on:pointerdown
20
+ on:pointerleave
21
+ on:pointermove
22
+ >
23
+ <span class="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
24
+ <ContextMenuPrimitive.CheckboxIndicator>
25
+ <i class="fa-regular fa-check h-4 w-4" />
26
+ </ContextMenuPrimitive.CheckboxIndicator>
27
+ </span>
28
+ <slot />
29
+ </ContextMenuPrimitive.CheckboxItem>
@@ -0,0 +1,15 @@
1
+ import { SvelteComponent } from "svelte";
2
+ import { ContextMenu as ContextMenuPrimitive } from "bits-ui";
3
+ declare const __propDef: {
4
+ props: ContextMenuPrimitive.CheckboxItemProps;
5
+ slots: {
6
+ default: {};
7
+ };
8
+ events: ContextMenuPrimitive.CheckboxItemEvents;
9
+ };
10
+ export type ContextMenuCheckboxItemProps = typeof __propDef.props;
11
+ export type ContextMenuCheckboxItemEvents = typeof __propDef.events;
12
+ export type ContextMenuCheckboxItemSlots = typeof __propDef.slots;
13
+ export default class ContextMenuCheckboxItem extends SvelteComponent<ContextMenuCheckboxItemProps, ContextMenuCheckboxItemEvents, ContextMenuCheckboxItemSlots> {
14
+ }
15
+ export {};
@@ -0,0 +1,20 @@
1
+ <script>import { ContextMenu as ContextMenuPrimitive } from "bits-ui";
2
+ import { cn, flyAndScale } from "../../utils/shadcn-utils.js";
3
+ let className = void 0;
4
+ export let transition = flyAndScale;
5
+ export let transitionConfig = void 0;
6
+ export { className as class };
7
+ </script>
8
+
9
+ <ContextMenuPrimitive.Content
10
+ {transition}
11
+ {transitionConfig}
12
+ class={cn(
13
+ "bg-popover text-popover-foreground z-50 min-w-[8rem] rounded-md border p-1 shadow-md focus:outline-none",
14
+ className
15
+ )}
16
+ {...$$restProps}
17
+ on:keydown
18
+ >
19
+ <slot />
20
+ </ContextMenuPrimitive.Content>
@@ -0,0 +1,19 @@
1
+ import { SvelteComponent } from "svelte";
2
+ import { ContextMenu as ContextMenuPrimitive } from "bits-ui";
3
+ declare const __propDef: {
4
+ props: ContextMenuPrimitive.ContentProps;
5
+ events: {
6
+ keydown: import("bits-ui").CustomEventHandler<KeyboardEvent, HTMLDivElement>;
7
+ } & {
8
+ [evt: string]: CustomEvent<any>;
9
+ };
10
+ slots: {
11
+ default: {};
12
+ };
13
+ };
14
+ export type ContextMenuContentProps = typeof __propDef.props;
15
+ export type ContextMenuContentEvents = typeof __propDef.events;
16
+ export type ContextMenuContentSlots = typeof __propDef.slots;
17
+ export default class ContextMenuContent extends SvelteComponent<ContextMenuContentProps, ContextMenuContentEvents, ContextMenuContentSlots> {
18
+ }
19
+ export {};
@@ -0,0 +1,24 @@
1
+ <script>import { ContextMenu as ContextMenuPrimitive } from "bits-ui";
2
+ import { cn } from "../../utils/shadcn-utils.js";
3
+ let className = void 0;
4
+ export let inset = void 0;
5
+ export { className as class };
6
+ </script>
7
+
8
+ <ContextMenuPrimitive.Item
9
+ class={cn(
10
+ "data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
11
+ inset && "pl-8",
12
+ className
13
+ )}
14
+ {...$$restProps}
15
+ on:click
16
+ on:keydown
17
+ on:focusin
18
+ on:focusout
19
+ on:pointerdown
20
+ on:pointerleave
21
+ on:pointermove
22
+ >
23
+ <slot />
24
+ </ContextMenuPrimitive.Item>
@@ -0,0 +1,17 @@
1
+ import { SvelteComponent } from "svelte";
2
+ import { ContextMenu as ContextMenuPrimitive } from "bits-ui";
3
+ declare const __propDef: {
4
+ props: ContextMenuPrimitive.ItemProps & {
5
+ inset?: boolean | undefined;
6
+ };
7
+ slots: {
8
+ default: {};
9
+ };
10
+ events: ContextMenuPrimitive.ItemEvents;
11
+ };
12
+ export type ContextMenuItemProps = typeof __propDef.props;
13
+ export type ContextMenuItemEvents = typeof __propDef.events;
14
+ export type ContextMenuItemSlots = typeof __propDef.slots;
15
+ export default class ContextMenuItem extends SvelteComponent<ContextMenuItemProps, ContextMenuItemEvents, ContextMenuItemSlots> {
16
+ }
17
+ export {};
@@ -0,0 +1,13 @@
1
+ <script>import { ContextMenu as ContextMenuPrimitive } from "bits-ui";
2
+ import { cn } from "../../utils/shadcn-utils.js";
3
+ let className = void 0;
4
+ export let inset = void 0;
5
+ export { className as class };
6
+ </script>
7
+
8
+ <ContextMenuPrimitive.Label
9
+ class={cn("text-foreground px-2 py-1.5 text-sm font-semibold", inset && "pl-8", className)}
10
+ {...$$restProps}
11
+ >
12
+ <slot />
13
+ </ContextMenuPrimitive.Label>
@@ -0,0 +1,21 @@
1
+ import { SvelteComponent } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ asChild?: boolean | undefined;
5
+ el?: HTMLDivElement | undefined;
6
+ } & import("bits-ui/dist/internal").HTMLDivAttributes & {
7
+ inset?: boolean | undefined;
8
+ };
9
+ events: {
10
+ [evt: string]: CustomEvent<any>;
11
+ };
12
+ slots: {
13
+ default: {};
14
+ };
15
+ };
16
+ export type ContextMenuLabelProps = typeof __propDef.props;
17
+ export type ContextMenuLabelEvents = typeof __propDef.events;
18
+ export type ContextMenuLabelSlots = typeof __propDef.slots;
19
+ export default class ContextMenuLabel extends SvelteComponent<ContextMenuLabelProps, ContextMenuLabelEvents, ContextMenuLabelSlots> {
20
+ }
21
+ export {};
@@ -0,0 +1,7 @@
1
+ <script>import { ContextMenu as ContextMenuPrimitive } from "bits-ui";
2
+ export let value = void 0;
3
+ </script>
4
+
5
+ <ContextMenuPrimitive.RadioGroup {...$$restProps} bind:value>
6
+ <slot />
7
+ </ContextMenuPrimitive.RadioGroup>
@@ -0,0 +1,17 @@
1
+ import { SvelteComponent } from "svelte";
2
+ import { ContextMenu as ContextMenuPrimitive } from "bits-ui";
3
+ declare const __propDef: {
4
+ props: ContextMenuPrimitive.RadioGroupProps;
5
+ events: {
6
+ [evt: string]: CustomEvent<any>;
7
+ };
8
+ slots: {
9
+ default: {};
10
+ };
11
+ };
12
+ export type ContextMenuRadioGroupProps = typeof __propDef.props;
13
+ export type ContextMenuRadioGroupEvents = typeof __propDef.events;
14
+ export type ContextMenuRadioGroupSlots = typeof __propDef.slots;
15
+ export default class ContextMenuRadioGroup extends SvelteComponent<ContextMenuRadioGroupProps, ContextMenuRadioGroupEvents, ContextMenuRadioGroupSlots> {
16
+ }
17
+ export {};
@@ -0,0 +1,29 @@
1
+ <script>import { ContextMenu as ContextMenuPrimitive } from "bits-ui";
2
+ import { cn } from "../../utils/shadcn-utils.js";
3
+ let className = void 0;
4
+ export let value;
5
+ export { className as class };
6
+ </script>
7
+
8
+ <ContextMenuPrimitive.RadioItem
9
+ class={cn(
10
+ "data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
11
+ className
12
+ )}
13
+ {value}
14
+ {...$$restProps}
15
+ on:click
16
+ on:keydown
17
+ on:focusin
18
+ on:focusout
19
+ on:pointerdown
20
+ on:pointerleave
21
+ on:pointermove
22
+ >
23
+ <span class="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
24
+ <ContextMenuPrimitive.RadioIndicator>
25
+ <div class="h-1.5 w-1.5 rounded-full fill-current" />
26
+ </ContextMenuPrimitive.RadioIndicator>
27
+ </span>
28
+ <slot />
29
+ </ContextMenuPrimitive.RadioItem>
@@ -0,0 +1,15 @@
1
+ import { SvelteComponent } from "svelte";
2
+ import { ContextMenu as ContextMenuPrimitive } from "bits-ui";
3
+ declare const __propDef: {
4
+ props: ContextMenuPrimitive.RadioItemProps;
5
+ slots: {
6
+ default: {};
7
+ };
8
+ events: ContextMenuPrimitive.RadioItemEvents;
9
+ };
10
+ export type ContextMenuRadioItemProps = typeof __propDef.props;
11
+ export type ContextMenuRadioItemEvents = typeof __propDef.events;
12
+ export type ContextMenuRadioItemSlots = typeof __propDef.slots;
13
+ export default class ContextMenuRadioItem extends SvelteComponent<ContextMenuRadioItemProps, ContextMenuRadioItemEvents, ContextMenuRadioItemSlots> {
14
+ }
15
+ export {};
@@ -0,0 +1,10 @@
1
+ <script>import { ContextMenu as ContextMenuPrimitive } from "bits-ui";
2
+ import { cn } from "../../utils/shadcn-utils.js";
3
+ let className = void 0;
4
+ export { className as class };
5
+ </script>
6
+
7
+ <ContextMenuPrimitive.Separator
8
+ class={cn("bg-border -mx-1 my-1 h-px", className)}
9
+ {...$$restProps}
10
+ />
@@ -0,0 +1,15 @@
1
+ import { SvelteComponent } from "svelte";
2
+ import { ContextMenu as ContextMenuPrimitive } from "bits-ui";
3
+ declare const __propDef: {
4
+ props: ContextMenuPrimitive.SeparatorProps;
5
+ events: {
6
+ [evt: string]: CustomEvent<any>;
7
+ };
8
+ slots: {};
9
+ };
10
+ export type ContextMenuSeparatorProps = typeof __propDef.props;
11
+ export type ContextMenuSeparatorEvents = typeof __propDef.events;
12
+ export type ContextMenuSeparatorSlots = typeof __propDef.slots;
13
+ export default class ContextMenuSeparator extends SvelteComponent<ContextMenuSeparatorProps, ContextMenuSeparatorEvents, ContextMenuSeparatorSlots> {
14
+ }
15
+ export {};
@@ -0,0 +1,11 @@
1
+ <script>import { cn } from "../../utils/shadcn-utils.js";
2
+ let className = void 0;
3
+ export { className as class };
4
+ </script>
5
+
6
+ <span
7
+ class={cn("text-muted-foreground ml-auto text-xs tracking-widest", className)}
8
+ {...$$restProps}
9
+ >
10
+ <slot />
11
+ </span>
@@ -0,0 +1,17 @@
1
+ import { SvelteComponent } from "svelte";
2
+ import type { HTMLAttributes } from "svelte/elements";
3
+ declare const __propDef: {
4
+ props: HTMLAttributes<HTMLSpanElement>;
5
+ events: {
6
+ [evt: string]: CustomEvent<any>;
7
+ };
8
+ slots: {
9
+ default: {};
10
+ };
11
+ };
12
+ export type ContextMenuShortcutProps = typeof __propDef.props;
13
+ export type ContextMenuShortcutEvents = typeof __propDef.events;
14
+ export type ContextMenuShortcutSlots = typeof __propDef.slots;
15
+ export default class ContextMenuShortcut extends SvelteComponent<ContextMenuShortcutProps, ContextMenuShortcutEvents, ContextMenuShortcutSlots> {
16
+ }
17
+ export {};
@@ -0,0 +1,25 @@
1
+ <script>import { ContextMenu as ContextMenuPrimitive } from "bits-ui";
2
+ import { cn, flyAndScale } from "../../utils/shadcn-utils.js";
3
+ let className = void 0;
4
+ export let transition = flyAndScale;
5
+ export let transitionConfig = {
6
+ x: -10,
7
+ y: 0
8
+ };
9
+ export { className as class };
10
+ </script>
11
+
12
+ <ContextMenuPrimitive.SubContent
13
+ {transition}
14
+ {transitionConfig}
15
+ class={cn(
16
+ "bg-popover text-popover-foreground z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md focus:outline-none",
17
+ className
18
+ )}
19
+ {...$$restProps}
20
+ on:keydown
21
+ on:focusout
22
+ on:pointermove
23
+ >
24
+ <slot />
25
+ </ContextMenuPrimitive.SubContent>
@@ -0,0 +1,21 @@
1
+ import { SvelteComponent } from "svelte";
2
+ import { ContextMenu as ContextMenuPrimitive } from "bits-ui";
3
+ declare const __propDef: {
4
+ props: ContextMenuPrimitive.SubContentProps;
5
+ events: {
6
+ keydown: import("bits-ui").CustomEventHandler<KeyboardEvent, HTMLDivElement>;
7
+ focusout: import("bits-ui").CustomEventHandler<FocusEvent, HTMLDivElement>;
8
+ pointermove: import("bits-ui").CustomEventHandler<PointerEvent, HTMLDivElement>;
9
+ } & {
10
+ [evt: string]: CustomEvent<any>;
11
+ };
12
+ slots: {
13
+ default: {};
14
+ };
15
+ };
16
+ export type ContextMenuSubContentProps = typeof __propDef.props;
17
+ export type ContextMenuSubContentEvents = typeof __propDef.events;
18
+ export type ContextMenuSubContentSlots = typeof __propDef.slots;
19
+ export default class ContextMenuSubContent extends SvelteComponent<ContextMenuSubContentProps, ContextMenuSubContentEvents, ContextMenuSubContentSlots> {
20
+ }
21
+ export {};
@@ -0,0 +1,24 @@
1
+ <script>import { ContextMenu as ContextMenuPrimitive } from "bits-ui";
2
+ import { cn } from "../../utils/shadcn-utils.js";
3
+ let className = void 0;
4
+ export let inset = void 0;
5
+ export { className as class };
6
+ </script>
7
+
8
+ <ContextMenuPrimitive.SubTrigger
9
+ class={cn(
10
+ "data-[highlighted]:bg-accent data-[state=open]:bg-accent data-[highlighted]:text-accent-foreground data-[state=open]:text-accent-foreground flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none",
11
+ inset && "pl-8",
12
+ className
13
+ )}
14
+ {...$$restProps}
15
+ on:click
16
+ on:keydown
17
+ on:focusin
18
+ on:focusout
19
+ on:pointerleave
20
+ on:pointermove
21
+ >
22
+ <slot />
23
+ <i class="fa-regular fa-chevron-right ml-auto h-4 w-4" />
24
+ </ContextMenuPrimitive.SubTrigger>
@@ -0,0 +1,21 @@
1
+ import { SvelteComponent } from "svelte";
2
+ import { ContextMenu as ContextMenuPrimitive } from "bits-ui";
3
+ declare const __propDef: {
4
+ props: {
5
+ disabled?: boolean | undefined;
6
+ asChild?: boolean | undefined;
7
+ el?: HTMLDivElement | undefined;
8
+ } & import("bits-ui/dist/internal").HTMLDivAttributes & {
9
+ inset?: boolean | undefined;
10
+ };
11
+ slots: {
12
+ default: {};
13
+ };
14
+ events: ContextMenuPrimitive.SubTriggerEvents;
15
+ };
16
+ export type ContextMenuSubTriggerProps = typeof __propDef.props;
17
+ export type ContextMenuSubTriggerEvents = typeof __propDef.events;
18
+ export type ContextMenuSubTriggerSlots = typeof __propDef.slots;
19
+ export default class ContextMenuSubTrigger extends SvelteComponent<ContextMenuSubTriggerProps, ContextMenuSubTriggerEvents, ContextMenuSubTriggerSlots> {
20
+ }
21
+ export {};
@@ -0,0 +1,16 @@
1
+ import { ContextMenu as ContextMenuPrimitive } from "bits-ui";
2
+ import Item from "./context-menu-item.svelte";
3
+ import Label from "./context-menu-label.svelte";
4
+ import Content from "./context-menu-content.svelte";
5
+ import Shortcut from "./context-menu-shortcut.svelte";
6
+ import RadioItem from "./context-menu-radio-item.svelte";
7
+ import Separator from "./context-menu-separator.svelte";
8
+ import RadioGroup from "./context-menu-radio-group.svelte";
9
+ import SubContent from "./context-menu-sub-content.svelte";
10
+ import SubTrigger from "./context-menu-sub-trigger.svelte";
11
+ import CheckboxItem from "./context-menu-checkbox-item.svelte";
12
+ declare const Sub: typeof ContextMenuPrimitive.Sub;
13
+ declare const Root: typeof ContextMenuPrimitive.Root;
14
+ declare const Trigger: typeof ContextMenuPrimitive.Trigger;
15
+ declare const Group: typeof ContextMenuPrimitive.Group;
16
+ export { Sub, Root, Item, Label, Group, Trigger, Content, Shortcut, Separator, RadioItem, SubContent, SubTrigger, RadioGroup, CheckboxItem, Root as ContextMenu, Sub as ContextMenuSub, Item as ContextMenuItem, Label as ContextMenuLabel, Group as ContextMenuGroup, Content as ContextMenuContent, Trigger as ContextMenuTrigger, Shortcut as ContextMenuShortcut, RadioItem as ContextMenuRadioItem, Separator as ContextMenuSeparator, RadioGroup as ContextMenuRadioGroup, SubContent as ContextMenuSubContent, SubTrigger as ContextMenuSubTrigger, CheckboxItem as ContextMenuCheckboxItem, };
@@ -0,0 +1,18 @@
1
+ import { ContextMenu as ContextMenuPrimitive } from "bits-ui";
2
+ import Item from "./context-menu-item.svelte";
3
+ import Label from "./context-menu-label.svelte";
4
+ import Content from "./context-menu-content.svelte";
5
+ import Shortcut from "./context-menu-shortcut.svelte";
6
+ import RadioItem from "./context-menu-radio-item.svelte";
7
+ import Separator from "./context-menu-separator.svelte";
8
+ import RadioGroup from "./context-menu-radio-group.svelte";
9
+ import SubContent from "./context-menu-sub-content.svelte";
10
+ import SubTrigger from "./context-menu-sub-trigger.svelte";
11
+ import CheckboxItem from "./context-menu-checkbox-item.svelte";
12
+ const Sub = ContextMenuPrimitive.Sub;
13
+ const Root = ContextMenuPrimitive.Root;
14
+ const Trigger = ContextMenuPrimitive.Trigger;
15
+ const Group = ContextMenuPrimitive.Group;
16
+ export { Sub, Root, Item, Label, Group, Trigger, Content, Shortcut, Separator, RadioItem, SubContent, SubTrigger, RadioGroup, CheckboxItem,
17
+ //
18
+ Root as ContextMenu, Sub as ContextMenuSub, Item as ContextMenuItem, Label as ContextMenuLabel, Group as ContextMenuGroup, Content as ContextMenuContent, Trigger as ContextMenuTrigger, Shortcut as ContextMenuShortcut, RadioItem as ContextMenuRadioItem, Separator as ContextMenuSeparator, RadioGroup as ContextMenuRadioGroup, SubContent as ContextMenuSubContent, SubTrigger as ContextMenuSubTrigger, CheckboxItem as ContextMenuCheckboxItem, };
@@ -0,0 +1,6 @@
1
+ import { Popover as PopoverPrimitive } from "bits-ui";
2
+ import Content from "./popover-content.svelte";
3
+ declare const Root: typeof PopoverPrimitive.Root;
4
+ declare const Trigger: typeof PopoverPrimitive.Trigger;
5
+ declare const Close: typeof PopoverPrimitive.Close;
6
+ export { Root, Content, Trigger, Close, Root as Popover, Content as PopoverContent, Trigger as PopoverTrigger, Close as PopoverClose, };
@@ -0,0 +1,8 @@
1
+ import { Popover as PopoverPrimitive } from "bits-ui";
2
+ import Content from "./popover-content.svelte";
3
+ const Root = PopoverPrimitive.Root;
4
+ const Trigger = PopoverPrimitive.Trigger;
5
+ const Close = PopoverPrimitive.Close;
6
+ export { Root, Content, Trigger, Close,
7
+ //
8
+ Root as Popover, Content as PopoverContent, Trigger as PopoverTrigger, Close as PopoverClose, };
@@ -0,0 +1,19 @@
1
+ <script>import { Popover as PopoverPrimitive } from "bits-ui";
2
+ import { cn, flyAndScale } from "../../utils/shadcn-utils.js";
3
+ let className = void 0;
4
+ export let transition = flyAndScale;
5
+ export let transitionConfig = void 0;
6
+ export { className as class };
7
+ </script>
8
+
9
+ <PopoverPrimitive.Content
10
+ {transition}
11
+ {transitionConfig}
12
+ class={cn(
13
+ "bg-popover text-popover-foreground z-50 w-72 rounded-md border p-4 shadow-md outline-none",
14
+ className
15
+ )}
16
+ {...$$restProps}
17
+ >
18
+ <slot />
19
+ </PopoverPrimitive.Content>
@@ -0,0 +1,17 @@
1
+ import { SvelteComponent } from "svelte";
2
+ import { Popover as PopoverPrimitive } from "bits-ui";
3
+ declare const __propDef: {
4
+ props: PopoverPrimitive.ContentProps;
5
+ events: {
6
+ [evt: string]: CustomEvent<any>;
7
+ };
8
+ slots: {
9
+ default: {};
10
+ };
11
+ };
12
+ export type PopoverContentProps = typeof __propDef.props;
13
+ export type PopoverContentEvents = typeof __propDef.events;
14
+ export type PopoverContentSlots = typeof __propDef.slots;
15
+ export default class PopoverContent extends SvelteComponent<PopoverContentProps, PopoverContentEvents, PopoverContentSlots> {
16
+ }
17
+ export {};
package/dist/index.d.ts CHANGED
@@ -18,4 +18,4 @@ export { default as TextInput } from "./components/Inputs/TextInput.svelte";
18
18
  export { default as PasswordInput } from "./components/Inputs/PasswordInput.svelte";
19
19
  export { default as PasswordStrengthValidator } from "./components/PasswordStrengthValidator.svelte";
20
20
  export { default as Tooltip } from "./components/Tooltip.svelte";
21
- export { default as Button } from "./components/button/button.svelte";
21
+ export * from "./components/button/index.js";
package/dist/index.js CHANGED
@@ -28,4 +28,4 @@ export { default as PasswordStrengthValidator } from "./components/PasswordStren
28
28
  export { default as Tooltip } from "./components/Tooltip.svelte";
29
29
 
30
30
  // new base components using bits-ui
31
- export { default as Button } from "./components/button/button.svelte";
31
+ export * from "./components/button/index.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stubber/ui",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",