kosui 0.0.25 → 0.0.27

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 (173) hide show
  1. package/dist/alert/alert.svelte +1 -1
  2. package/dist/alert/alert.svelte.d.ts +1 -1
  3. package/dist/autocomplete/autocomplete-content.svelte +5 -5
  4. package/dist/autocomplete/autocomplete-content.svelte.d.ts +4 -4
  5. package/dist/autocomplete/autocomplete-context.svelte.d.ts +1 -1
  6. package/dist/autocomplete/autocomplete-context.svelte.js +2 -2
  7. package/dist/autocomplete/autocomplete-input.svelte +3 -4
  8. package/dist/autocomplete/autocomplete-input.svelte.d.ts +1 -1
  9. package/dist/autocomplete/autocomplete-item.svelte +5 -5
  10. package/dist/autocomplete/autocomplete-item.svelte.d.ts +3 -3
  11. package/dist/autocomplete/autocomplete.svelte +3 -3
  12. package/dist/autocomplete/autocomplete.svelte.d.ts +2 -2
  13. package/dist/autocomplete/index.d.ts +1 -0
  14. package/dist/autocomplete/index.js +1 -0
  15. package/dist/avatar/avatar.svelte +1 -1
  16. package/dist/avatar/avatar.svelte.d.ts +1 -1
  17. package/dist/badge/badge.svelte +1 -1
  18. package/dist/badge/badge.svelte.d.ts +1 -1
  19. package/dist/box/box.svelte +4 -4
  20. package/dist/box/box.svelte.d.ts +4 -4
  21. package/dist/breadcrumbs/breadcrumbs.svelte +2 -2
  22. package/dist/breadcrumbs/breadcrumbs.svelte.d.ts +2 -2
  23. package/dist/button/button.svelte +7 -7
  24. package/dist/button/button.svelte.d.ts +5 -5
  25. package/dist/chip/chip.svelte +2 -3
  26. package/dist/chip/chip.svelte.d.ts +2 -2
  27. package/dist/command/action.svelte.d.ts +1 -1
  28. package/dist/command/action.svelte.js +1 -0
  29. package/dist/command/command-content.svelte +2 -2
  30. package/dist/command/command-content.svelte.d.ts +2 -2
  31. package/dist/command/command-context.svelte.d.ts +1 -1
  32. package/dist/command/command-context.svelte.js +1 -1
  33. package/dist/command/command-input.svelte +5 -5
  34. package/dist/command/command-input.svelte.d.ts +3 -3
  35. package/dist/command/command-item.svelte +5 -5
  36. package/dist/command/command-item.svelte.d.ts +3 -3
  37. package/dist/command/command-search.svelte +1 -2
  38. package/dist/command/command-search.svelte.d.ts +1 -1
  39. package/dist/command/command.svelte +3 -3
  40. package/dist/command/command.svelte.d.ts +2 -2
  41. package/dist/command/commander.svelte +6 -6
  42. package/dist/command/commander.svelte.d.ts +1 -1
  43. package/dist/command/index.d.ts +7 -6
  44. package/dist/command/index.js +5 -4
  45. package/dist/common/divider.svelte +2 -2
  46. package/dist/common/divider.svelte.d.ts +2 -2
  47. package/dist/common/header.svelte +4 -4
  48. package/dist/common/header.svelte.d.ts +4 -4
  49. package/dist/common/item-context.svelte.js +3 -3
  50. package/dist/dialog/dialog-button.svelte +2 -2
  51. package/dist/dialog/dialog-button.svelte.d.ts +2 -2
  52. package/dist/dialog/dialog.svelte +4 -4
  53. package/dist/dialog/dialog.svelte.d.ts +3 -3
  54. package/dist/dialog/dialoguer-context.svelte.d.ts +6 -6
  55. package/dist/dialog/dialoguer-context.svelte.js +3 -0
  56. package/dist/dialog/dialoguer.svelte +7 -7
  57. package/dist/dialog/dialoguer.svelte.d.ts +1 -1
  58. package/dist/dialog/index.d.ts +1 -1
  59. package/dist/dialog/index.js +1 -1
  60. package/dist/event-manager.d.ts +1 -1
  61. package/dist/event-manager.js +2 -2
  62. package/dist/fab/fab.svelte +2 -2
  63. package/dist/fab/fab.svelte.d.ts +2 -2
  64. package/dist/fab/index.d.ts +1 -1
  65. package/dist/index.d.ts +30 -30
  66. package/dist/index.js +30 -30
  67. package/dist/input/input.svelte +4 -4
  68. package/dist/input/input.svelte.d.ts +3 -3
  69. package/dist/link/link.svelte +3 -3
  70. package/dist/link/link.svelte.d.ts +3 -3
  71. package/dist/markdown/markdown-blockquote.svelte +3 -3
  72. package/dist/markdown/markdown-blockquote.svelte.d.ts +3 -3
  73. package/dist/markdown/markdown-br.svelte +3 -3
  74. package/dist/markdown/markdown-br.svelte.d.ts +3 -3
  75. package/dist/markdown/markdown-code.svelte +3 -3
  76. package/dist/markdown/markdown-code.svelte.d.ts +3 -3
  77. package/dist/markdown/markdown-codespan.svelte +3 -3
  78. package/dist/markdown/markdown-codespan.svelte.d.ts +3 -3
  79. package/dist/markdown/markdown-context.svelte.d.ts +1 -1
  80. package/dist/markdown/markdown-context.svelte.js +1 -0
  81. package/dist/markdown/markdown-def.svelte +3 -3
  82. package/dist/markdown/markdown-def.svelte.d.ts +3 -3
  83. package/dist/markdown/markdown-del.svelte +3 -3
  84. package/dist/markdown/markdown-del.svelte.d.ts +3 -3
  85. package/dist/markdown/markdown-em.svelte +3 -3
  86. package/dist/markdown/markdown-em.svelte.d.ts +3 -3
  87. package/dist/markdown/markdown-escape.svelte +1 -1
  88. package/dist/markdown/markdown-escape.svelte.d.ts +1 -1
  89. package/dist/markdown/markdown-heading.svelte +3 -3
  90. package/dist/markdown/markdown-heading.svelte.d.ts +3 -3
  91. package/dist/markdown/markdown-hr.svelte +3 -3
  92. package/dist/markdown/markdown-hr.svelte.d.ts +3 -3
  93. package/dist/markdown/markdown-html.svelte +2 -2
  94. package/dist/markdown/markdown-html.svelte.d.ts +2 -2
  95. package/dist/markdown/markdown-image.svelte +3 -3
  96. package/dist/markdown/markdown-image.svelte.d.ts +3 -3
  97. package/dist/markdown/markdown-link.svelte +3 -3
  98. package/dist/markdown/markdown-link.svelte.d.ts +3 -3
  99. package/dist/markdown/markdown-list-item.svelte +3 -3
  100. package/dist/markdown/markdown-list-item.svelte.d.ts +3 -3
  101. package/dist/markdown/markdown-list.svelte +3 -3
  102. package/dist/markdown/markdown-list.svelte.d.ts +3 -3
  103. package/dist/markdown/markdown-paragraph.svelte +3 -3
  104. package/dist/markdown/markdown-paragraph.svelte.d.ts +3 -3
  105. package/dist/markdown/markdown-space.svelte +2 -2
  106. package/dist/markdown/markdown-space.svelte.d.ts +2 -2
  107. package/dist/markdown/markdown-strong.svelte +3 -3
  108. package/dist/markdown/markdown-strong.svelte.d.ts +3 -3
  109. package/dist/markdown/markdown-table-cell.svelte +6 -3
  110. package/dist/markdown/markdown-table-cell.svelte.d.ts +3 -3
  111. package/dist/markdown/markdown-table.svelte +6 -4
  112. package/dist/markdown/markdown-table.svelte.d.ts +3 -3
  113. package/dist/markdown/markdown-text.svelte +2 -2
  114. package/dist/markdown/markdown-text.svelte.d.ts +2 -2
  115. package/dist/markdown/markdown-token.svelte +1 -1
  116. package/dist/markdown/markdown-tokens.svelte +2 -2
  117. package/dist/markdown/markdown-tokens.svelte.d.ts +1 -1
  118. package/dist/markdown/markdown.svelte +8 -8
  119. package/dist/markdown/markdown.svelte.d.ts +2 -2
  120. package/dist/menu/index.d.ts +2 -1
  121. package/dist/menu/index.js +2 -1
  122. package/dist/menu/menu-actions.svelte +2 -2
  123. package/dist/menu/menu-actions.svelte.d.ts +1 -1
  124. package/dist/menu/menu-content.svelte +6 -6
  125. package/dist/menu/menu-content.svelte.d.ts +4 -4
  126. package/dist/menu/menu-context.svelte.js +4 -4
  127. package/dist/menu/menu-item.svelte +6 -6
  128. package/dist/menu/menu-item.svelte.d.ts +3 -3
  129. package/dist/menu/menu-trigger-button.svelte +4 -4
  130. package/dist/menu/menu-trigger-button.svelte.d.ts +1 -1
  131. package/dist/menu/menu-trigger.svelte +6 -6
  132. package/dist/menu/menu-trigger.svelte.d.ts +3 -3
  133. package/dist/menu/menu.svelte +3 -3
  134. package/dist/menu/menu.svelte.d.ts +2 -2
  135. package/dist/modal/modal.svelte +6 -6
  136. package/dist/modal/modal.svelte.d.ts +3 -3
  137. package/dist/popover/popover.svelte +9 -9
  138. package/dist/popover/popover.svelte.d.ts +2 -2
  139. package/dist/portal/index.d.ts +2 -1
  140. package/dist/portal/index.js +1 -0
  141. package/dist/portal/portal.svelte +7 -4
  142. package/dist/portal/portal.svelte.d.ts +2 -2
  143. package/dist/portal/proxy.svelte +7 -4
  144. package/dist/portal/proxy.svelte.d.ts +3 -3
  145. package/dist/progress/circular-progress.svelte +8 -7
  146. package/dist/progress/circular-progress.svelte.d.ts +3 -3
  147. package/dist/progress/index.d.ts +1 -1
  148. package/dist/progress/index.js +1 -1
  149. package/dist/shortcut/index.d.ts +1 -1
  150. package/dist/shortcut/index.js +1 -1
  151. package/dist/shortcut/shortcut-badge.svelte +4 -4
  152. package/dist/shortcut/shortcut-badge.svelte.d.ts +3 -3
  153. package/dist/skeleton/skeleton.svelte +2 -2
  154. package/dist/skeleton/skeleton.svelte.d.ts +2 -2
  155. package/dist/switch/index.d.ts +1 -0
  156. package/dist/switch/index.js +1 -0
  157. package/dist/switch/switch-thumb.svelte +52 -0
  158. package/dist/switch/switch-thumb.svelte.d.ts +7 -0
  159. package/dist/switch/switch.svelte +36 -52
  160. package/dist/switch/switch.svelte.d.ts +7 -4
  161. package/dist/textarea/textarea.svelte +3 -3
  162. package/dist/textarea/textarea.svelte.d.ts +3 -3
  163. package/dist/toggle/index.d.ts +3 -2
  164. package/dist/toggle/index.js +3 -2
  165. package/dist/toggle/toggle-button.svelte +6 -6
  166. package/dist/toggle/toggle-button.svelte.d.ts +4 -4
  167. package/dist/toggle/toggle-group.svelte +3 -3
  168. package/dist/toggle/toggle-group.svelte.d.ts +2 -2
  169. package/dist/tooltip/tooltip.svelte +2 -2
  170. package/dist/tooltip/tooltip.svelte.d.ts +2 -2
  171. package/dist/utils.d.ts +1 -1
  172. package/dist/utils.js +1 -0
  173. package/package.json +4 -2
@@ -1,6 +1,6 @@
1
1
  <script lang="ts" module>
2
+ import { Box, type BoxProps } from "../box/index.js";
2
3
  import { twMerge } from "tailwind-merge";
3
- import { Box, type BoxProps } from "../box";
4
4
 
5
5
  export type AlertProps = BoxProps;
6
6
  </script>
@@ -1,4 +1,4 @@
1
- import { type BoxProps } from "../box";
1
+ import { type BoxProps } from "../box/index.js";
2
2
  export type AlertProps = BoxProps;
3
3
  declare const Alert: import("svelte").Component<BoxProps, {}, "el">;
4
4
  type Alert = ReturnType<typeof Alert>;
@@ -1,10 +1,10 @@
1
1
  <script module lang="ts">
2
- import type { Snippet } from "svelte";
2
+ import { getAutocompleteContext } from "./index.js";
3
+ import { baseClasses, type Variants } from "../base.js";
4
+ import { Popover, type PopoverProps } from "../popover/index.js";
5
+ import { type ClassName } from "../utils.js";
6
+ import { type Snippet } from "svelte";
3
7
  import { twMerge } from "tailwind-merge";
4
- import { baseClasses, type Variants } from "../base";
5
- import { Popover, type PopoverProps } from "../popover";
6
- import type { ClassName } from "../utils";
7
- import { getAutocompleteContext } from "./autocomplete-context.svelte";
8
8
 
9
9
  export type AutocompleteProps = {
10
10
  children: Snippet;
@@ -1,7 +1,7 @@
1
- import type { Snippet } from "svelte";
2
- import { type Variants } from "../base";
3
- import { type PopoverProps } from "../popover";
4
- import type { ClassName } from "../utils";
1
+ import { type Variants } from "../base.js";
2
+ import { type PopoverProps } from "../popover/index.js";
3
+ import { type ClassName } from "../utils.js";
4
+ import { type Snippet } from "svelte";
5
5
  export type AutocompleteProps = {
6
6
  children: Snippet;
7
7
  } & ClassName & Variants & Omit<PopoverProps, "children">;
@@ -1,4 +1,4 @@
1
- import { ItemContext } from "../common";
1
+ import { ItemContext } from "../common/index.js";
2
2
  export declare class AutocompleteContext extends ItemContext {
3
3
  #private;
4
4
  get open(): boolean;
@@ -1,6 +1,6 @@
1
+ import { Bindable } from "../bindable.svelte.js";
2
+ import { ItemContext } from "../common/index.js";
1
3
  import { getContext, setContext } from "svelte";
2
- import { Bindable } from "../bindable.svelte";
3
- import { ItemContext } from "../common";
4
4
  export class AutocompleteContext extends ItemContext {
5
5
  #open = new Bindable(false);
6
6
  #anchorEl = new Bindable(undefined);
@@ -1,13 +1,12 @@
1
1
  <script module lang="ts">
2
- import { Input, type InputProps } from "..";
3
- import { getAutocompleteContext } from "./autocomplete-context.svelte";
2
+ import { getAutocompleteContext } from "./index.js";
3
+ import { Input, type InputProps } from "../input/index.js";
4
+ import { mergeComponentProps } from "../merge-props.js";
4
5
 
5
6
  export type AutocompleteInputProps = InputProps;
6
7
  </script>
7
8
 
8
9
  <script lang="ts">
9
- import { mergeComponentProps } from "../merge-props";
10
-
11
10
  let {
12
11
  el = $bindable(),
13
12
  value = $bindable(""),
@@ -1,4 +1,4 @@
1
- import { type InputProps } from "..";
1
+ import { type InputProps } from "../input/index.js";
2
2
  export type AutocompleteInputProps = InputProps;
3
3
  declare const AutocompleteInput: import("svelte").Component<InputProps, {}, "el" | "value">;
4
4
  type AutocompleteInput = ReturnType<typeof AutocompleteInput>;
@@ -1,11 +1,11 @@
1
1
  <script module lang="ts">
2
+ import { getAutocompleteContext } from "./index.js";
3
+ import { baseClasses, type Variants } from "../base.js";
4
+ import { mergeProps } from "../merge-props.js";
5
+ import { type ClassName, type ElementRef } from "../utils.js";
2
6
  import { type Snippet } from "svelte";
3
- import type { HTMLAttributes } from "svelte/elements";
7
+ import { type HTMLAttributes } from "svelte/elements";
4
8
  import { twMerge } from "tailwind-merge";
5
- import { baseClasses, type Variants } from "../base";
6
- import { mergeProps } from "../merge-props";
7
- import { type ClassName, type ElementRef } from "../utils";
8
- import { getAutocompleteContext } from "./autocomplete-context.svelte";
9
9
 
10
10
  export type AutocompleteItemProps = {
11
11
  onSelect?: (el: HTMLElement) => void;
@@ -1,7 +1,7 @@
1
+ import { type Variants } from "../base.js";
2
+ import { type ClassName, type ElementRef } from "../utils.js";
1
3
  import { type Snippet } from "svelte";
2
- import type { HTMLAttributes } from "svelte/elements";
3
- import { type Variants } from "../base";
4
- import { type ClassName, type ElementRef } from "../utils";
4
+ import { type HTMLAttributes } from "svelte/elements";
5
5
  export type AutocompleteItemProps = {
6
6
  onSelect?: (el: HTMLElement) => void;
7
7
  children: Snippet;
@@ -1,10 +1,10 @@
1
1
  <script module lang="ts">
2
- import type { Snippet } from "svelte";
3
- import type { ClassName } from "../utils";
4
2
  import {
5
3
  AutocompleteContext,
6
4
  setAutocompleteContext,
7
- } from "./autocomplete-context.svelte";
5
+ } from "./index.js";
6
+ import { type ClassName } from "../utils.js";
7
+ import { type Snippet } from "svelte";
8
8
 
9
9
  export type AutocompleteProps = {
10
10
  children: Snippet;
@@ -1,5 +1,5 @@
1
- import type { Snippet } from "svelte";
2
- import type { ClassName } from "../utils";
1
+ import { type ClassName } from "../utils.js";
2
+ import { type Snippet } from "svelte";
3
3
  export type AutocompleteProps = {
4
4
  children: Snippet;
5
5
  } & ClassName;
@@ -1,4 +1,5 @@
1
1
  export { default as AutocompleteContent } from "./autocomplete-content.svelte";
2
+ export { AutocompleteContext, getAutocompleteContext, setAutocompleteContext, } from "./autocomplete-context.svelte.js";
2
3
  export { default as AutocompleteInput } from "./autocomplete-input.svelte";
3
4
  export { default as AutocompleteItem } from "./autocomplete-item.svelte";
4
5
  export { default as Autocomplete } from "./autocomplete.svelte";
@@ -1,4 +1,5 @@
1
1
  export { default as AutocompleteContent } from "./autocomplete-content.svelte";
2
+ export { AutocompleteContext, getAutocompleteContext, setAutocompleteContext, } from "./autocomplete-context.svelte.js";
2
3
  export { default as AutocompleteInput } from "./autocomplete-input.svelte";
3
4
  export { default as AutocompleteItem } from "./autocomplete-item.svelte";
4
5
  export { default as Autocomplete } from "./autocomplete.svelte";
@@ -1,6 +1,6 @@
1
1
  <script lang="ts" module>
2
+ import { Box, type BoxProps } from "../box/index.js";
2
3
  import { twMerge } from "tailwind-merge";
3
- import { Box, type BoxProps } from "../box";
4
4
 
5
5
  export type AvatarProps = {
6
6
  src?: string;
@@ -1,4 +1,4 @@
1
- import { type BoxProps } from "../box";
1
+ import { type BoxProps } from "../box/index.js";
2
2
  export type AvatarProps = {
3
3
  src?: string;
4
4
  alt?: string;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
+ import { Box, type BoxProps } from "../box/index.js";
2
3
  import { twMerge } from "tailwind-merge";
3
- import { Box, type BoxProps } from "../box";
4
4
 
5
5
  export type BadgeProps = {
6
6
  verticalAlignment?: "top" | "bottom";
@@ -1,4 +1,4 @@
1
- import { type BoxProps } from "../box";
1
+ import { type BoxProps } from "../box/index.js";
2
2
  export type BadgeProps = {
3
3
  verticalAlignment?: "top" | "bottom";
4
4
  horizontalAlignment?: "left" | "right";
@@ -1,9 +1,9 @@
1
1
  <script lang="ts">
2
- import type { Snippet } from "svelte";
3
- import type { HTMLAttributes } from "svelte/elements";
2
+ import { baseClasses, type Variants } from "../base.js";
3
+ import { noop, type ClassName, type ElementRef } from "../utils.js";
4
+ import { type Snippet } from "svelte";
5
+ import { type HTMLAttributes } from "svelte/elements";
4
6
  import { twMerge } from "tailwind-merge";
5
- import { baseClasses, type Variants } from "../base";
6
- import { noop, type ClassName, type ElementRef } from "../utils";
7
7
 
8
8
  export type BoxProps = {
9
9
  centered?: boolean;
@@ -1,7 +1,7 @@
1
- import type { Snippet } from "svelte";
2
- import type { HTMLAttributes } from "svelte/elements";
3
- import { type Variants } from "../base";
4
- import { type ClassName, type ElementRef } from "../utils";
1
+ import { type Variants } from "../base.js";
2
+ import { type ClassName, type ElementRef } from "../utils.js";
3
+ import { type Snippet } from "svelte";
4
+ import { type HTMLAttributes } from "svelte/elements";
5
5
  export type BoxProps = {
6
6
  centered?: boolean;
7
7
  backdrop?: boolean;
@@ -1,6 +1,6 @@
1
1
  <script module lang="ts">
2
- import { Link, type LinkProps } from "..";
3
- import type { Snippet } from "svelte";
2
+ import { Link, type LinkProps } from "../link/index.js";
3
+ import { type Snippet } from "svelte";
4
4
  import { twMerge } from "tailwind-merge";
5
5
 
6
6
  type Crumb = {
@@ -1,5 +1,5 @@
1
- import { type LinkProps } from "..";
2
- import type { Snippet } from "svelte";
1
+ import { type LinkProps } from "../link/index.js";
2
+ import { type Snippet } from "svelte";
3
3
  type Crumb = {
4
4
  title: string;
5
5
  href: string;
@@ -1,12 +1,12 @@
1
1
  <script lang="ts" module>
2
- import type { Icon } from "@lucide/svelte";
3
- import type { Snippet } from "svelte";
4
- import type { HTMLButtonAttributes } from "svelte/elements";
2
+ import { baseClasses, type Variants } from "../base.js";
3
+ import { mergeProps } from "../merge-props.js";
4
+ import { Tooltip, type TooltipTriggerProps } from "../tooltip/index.js";
5
+ import { noop, type ClassName, type ElementRef } from "../utils.js";
6
+ import { type Icon } from "@lucide/svelte";
7
+ import { type Snippet } from "svelte";
8
+ import { type HTMLButtonAttributes } from "svelte/elements";
5
9
  import { twMerge } from "tailwind-merge";
6
- import { baseClasses, type Variants } from "../base";
7
- import { mergeProps } from "../merge-props";
8
- import { Tooltip, type TooltipTriggerProps } from "../tooltip";
9
- import { noop, type ClassName, type ElementRef } from "../utils";
10
10
 
11
11
  export type ButtonProps = {
12
12
  icon?: typeof Icon;
@@ -1,8 +1,8 @@
1
- import type { Icon } from "@lucide/svelte";
2
- import type { Snippet } from "svelte";
3
- import type { HTMLButtonAttributes } from "svelte/elements";
4
- import { type Variants } from "../base";
5
- import { type ClassName, type ElementRef } from "../utils";
1
+ import { type Variants } from "../base.js";
2
+ import { type ClassName, type ElementRef } from "../utils.js";
3
+ import { type Icon } from "@lucide/svelte";
4
+ import { type Snippet } from "svelte";
5
+ import { type HTMLButtonAttributes } from "svelte/elements";
6
6
  export type ButtonProps = {
7
7
  icon?: typeof Icon;
8
8
  size?: number;
@@ -1,6 +1,7 @@
1
1
  <script lang="ts" module>
2
+ import { Box, type BoxProps } from "../box/index.js";
2
3
  import { X } from "@lucide/svelte";
3
- import type { Snippet } from "svelte";
4
+ import { type Snippet } from "svelte";
4
5
  import { twMerge } from "tailwind-merge";
5
6
 
6
7
  export type ChipProps = {
@@ -12,8 +13,6 @@
12
13
  </script>
13
14
 
14
15
  <script lang="ts">
15
- import { Box, type BoxProps } from "../box";
16
-
17
16
  let {
18
17
  title,
19
18
  onClick,
@@ -1,11 +1,11 @@
1
- import type { Snippet } from "svelte";
1
+ import { type BoxProps } from "../box/index.js";
2
+ import { type Snippet } from "svelte";
2
3
  export type ChipProps = {
3
4
  title?: string;
4
5
  onClick?: (event: MouseEvent | KeyboardEvent) => void;
5
6
  onDelete?: (event: MouseEvent | KeyboardEvent) => void;
6
7
  children: Snippet;
7
8
  } & BoxProps;
8
- import { type BoxProps } from "../box";
9
9
  declare const Chip: import("svelte").Component<ChipProps, {}, "el">;
10
10
  type Chip = ReturnType<typeof Chip>;
11
11
  export default Chip;
@@ -1,5 +1,5 @@
1
+ import { type Shortcut } from "../shortcut/index.js";
1
2
  import { type Icon } from "@lucide/svelte";
2
- import type { Shortcut } from "../shortcut";
3
3
  type ActionProps = {
4
4
  id: string;
5
5
  callback: () => void;
@@ -1,3 +1,4 @@
1
+ import {} from "../shortcut/index.js";
1
2
  import { CircleSlash } from "@lucide/svelte";
2
3
  import { untrack } from "svelte";
3
4
  export class Action {
@@ -1,7 +1,7 @@
1
1
  <script module lang="ts">
2
- import type { Snippet } from "svelte";
2
+ import { type ClassName } from "../utils.js";
3
+ import { type Snippet } from "svelte";
3
4
  import { twMerge } from "tailwind-merge";
4
- import type { ClassName } from "../utils";
5
5
 
6
6
  export type CommandContentProps = { children: Snippet } & ClassName;
7
7
  </script>
@@ -1,5 +1,5 @@
1
- import type { Snippet } from "svelte";
2
- import type { ClassName } from "../utils";
1
+ import { type ClassName } from "../utils.js";
2
+ import { type Snippet } from "svelte";
3
3
  export type CommandContentProps = {
4
4
  children: Snippet;
5
5
  } & ClassName;
@@ -1,4 +1,4 @@
1
- import { ItemContext } from "../common";
1
+ import { ItemContext } from "../common/index.js";
2
2
  export declare class CommandContext extends ItemContext {
3
3
  }
4
4
  export declare function setCommandContext(state: CommandContext): CommandContext;
@@ -1,5 +1,5 @@
1
+ import { ItemContext } from "../common/index.js";
1
2
  import { getContext, setContext } from "svelte";
2
- import { ItemContext } from "../common";
3
3
  export class CommandContext extends ItemContext {
4
4
  }
5
5
  export function setCommandContext(state) {
@@ -1,10 +1,10 @@
1
1
  <script module lang="ts">
2
- import type { HTMLInputAttributes } from "svelte/elements";
2
+ import { baseClasses, type Variants } from "../base.js";
3
+ import { getCommandContext } from "./index.js";
4
+ import { mergeProps } from "../merge-props.js";
5
+ import { type ClassName, type ElementRef } from "../utils.js";
6
+ import { type HTMLInputAttributes } from "svelte/elements";
3
7
  import { twMerge } from "tailwind-merge";
4
- import { baseClasses, type Variants } from "../base";
5
- import { mergeProps } from "../merge-props";
6
- import type { ClassName, ElementRef } from "../utils";
7
- import { getCommandContext } from "./command-context.svelte";
8
8
 
9
9
  export type CommandInputProps = {} & ElementRef &
10
10
  ClassName &
@@ -1,6 +1,6 @@
1
- import type { HTMLInputAttributes } from "svelte/elements";
2
- import { type Variants } from "../base";
3
- import type { ClassName, ElementRef } from "../utils";
1
+ import { type Variants } from "../base.js";
2
+ import { type ClassName, type ElementRef } from "../utils.js";
3
+ import { type HTMLInputAttributes } from "svelte/elements";
4
4
  export type CommandInputProps = {} & ElementRef & ClassName & Variants & HTMLInputAttributes;
5
5
  declare const CommandInput: import("svelte").Component<CommandInputProps, {}, "value">;
6
6
  type CommandInput = ReturnType<typeof CommandInput>;
@@ -1,11 +1,11 @@
1
1
  <script module lang="ts">
2
+ import { baseClasses, type Variants } from "../base.js";
3
+ import { getCommandContext } from "./index.js";
4
+ import { mergeProps } from "../merge-props.js";
5
+ import { type ClassName, type ElementRef } from "../utils.js";
2
6
  import { type Snippet } from "svelte";
3
- import type { HTMLAttributes } from "svelte/elements";
7
+ import { type HTMLAttributes } from "svelte/elements";
4
8
  import { twMerge } from "tailwind-merge";
5
- import { baseClasses, type Variants } from "../base";
6
- import { mergeProps } from "../merge-props";
7
- import { type ClassName, type ElementRef } from "../utils";
8
- import { getCommandContext } from "./command-context.svelte";
9
9
 
10
10
  export type CommandItemProps = {
11
11
  onSelect?: (el: HTMLElement) => void;
@@ -1,7 +1,7 @@
1
+ import { type Variants } from "../base.js";
2
+ import { type ClassName, type ElementRef } from "../utils.js";
1
3
  import { type Snippet } from "svelte";
2
- import type { HTMLAttributes } from "svelte/elements";
3
- import { type Variants } from "../base";
4
- import { type ClassName, type ElementRef } from "../utils";
4
+ import { type HTMLAttributes } from "svelte/elements";
5
5
  export type CommandItemProps = {
6
6
  onSelect?: (el: HTMLElement) => void;
7
7
  children: Snippet<[]>;
@@ -1,7 +1,6 @@
1
1
  <script module lang="ts">
2
+ import { CommandInput, type CommandInputProps } from "./index.js";
2
3
  import { SearchIcon } from "@lucide/svelte";
3
- import { CommandInput } from ".";
4
- import type { CommandInputProps } from "./command-input.svelte";
5
4
 
6
5
  export type CommandSearchProps = {} & CommandInputProps;
7
6
  </script>
@@ -1,4 +1,4 @@
1
- import type { CommandInputProps } from "./command-input.svelte";
1
+ import { type CommandInputProps } from "./index.js";
2
2
  export type CommandSearchProps = {} & CommandInputProps;
3
3
  declare const CommandSearch: import("svelte").Component<CommandSearchProps, {}, "value">;
4
4
  type CommandSearch = ReturnType<typeof CommandSearch>;
@@ -1,8 +1,8 @@
1
1
  <script module lang="ts">
2
- import type { Snippet } from "svelte";
2
+ import { CommandContext, setCommandContext } from "./index.js";
3
+ import { type ClassName } from "../utils.js";
4
+ import { type Snippet } from "svelte";
3
5
  import { twMerge } from "tailwind-merge";
4
- import type { ClassName } from "../utils";
5
- import { CommandContext, setCommandContext } from "./command-context.svelte";
6
6
 
7
7
  export type CommandProps = {
8
8
  children: Snippet<[]>;
@@ -1,5 +1,5 @@
1
- import type { Snippet } from "svelte";
2
- import type { ClassName } from "../utils";
1
+ import { type ClassName } from "../utils.js";
2
+ import { type Snippet } from "svelte";
3
3
  export type CommandProps = {
4
4
  children: Snippet<[]>;
5
5
  } & ClassName;
@@ -1,6 +1,4 @@
1
1
  <script module lang="ts">
2
- import { match } from "../utils";
3
- import { Check, ChevronRight } from "@lucide/svelte";
4
2
  import {
5
3
  Action,
6
4
  Command,
@@ -9,10 +7,12 @@
9
7
  CommandItem,
10
8
  CommandSearch,
11
9
  Registry,
12
- } from ".";
13
- import { events } from "..";
14
- import { Modal } from "../modal";
15
- import { Shortcut, ShortcutBadge } from "../shortcut";
10
+ } from "./index.js";
11
+ import { events } from "../index.js";
12
+ import { Modal } from "../modal/index.js";
13
+ import { Shortcut, ShortcutBadge } from "../shortcut/index.js";
14
+ import { match } from "../utils.js";
15
+ import { Check, ChevronRight } from "@lucide/svelte";
16
16
 
17
17
  export type CommanderProps = {
18
18
  open?: boolean;
@@ -1,4 +1,4 @@
1
- import { Registry } from ".";
1
+ import { Registry } from "./index.js";
2
2
  export type CommanderProps = {
3
3
  open?: boolean;
4
4
  query?: string;
@@ -1,8 +1,9 @@
1
- export { Divider as CommandDivider, Header as CommandHeader } from "../common";
1
+ export { Divider as CommandDivider, Header as CommandHeader, } from "../common/index.js";
2
2
  export { Action, Registry } from "./action.svelte";
3
3
  export { default as CommandContent } from "./command-content.svelte";
4
- export { default as CommandInput } from "./command-input.svelte";
5
- export { default as CommandItem } from "./command-item.svelte";
6
- export { default as CommandSearch } from "./command-search.svelte";
7
- export { default as Command } from "./command.svelte";
8
- export { default as Commander } from "./commander.svelte";
4
+ export { CommandContext, getCommandContext, setCommandContext, } from "./command-context.svelte.js";
5
+ export { default as CommandInput, type CommandInputProps, } from "./command-input.svelte";
6
+ export { default as CommandItem, type CommandItemProps, } from "./command-item.svelte";
7
+ export { default as CommandSearch, type CommandSearchProps, } from "./command-search.svelte";
8
+ export { default as Command, type CommandProps } from "./command.svelte";
9
+ export { default as Commander, type CommanderProps } from "./commander.svelte";
@@ -1,8 +1,9 @@
1
- export { Divider as CommandDivider, Header as CommandHeader } from "../common";
1
+ export { Divider as CommandDivider, Header as CommandHeader, } from "../common/index.js";
2
2
  export { Action, Registry } from "./action.svelte";
3
3
  export { default as CommandContent } from "./command-content.svelte";
4
- export { default as CommandInput } from "./command-input.svelte";
5
- export { default as CommandItem } from "./command-item.svelte";
6
- export { default as CommandSearch } from "./command-search.svelte";
4
+ export { CommandContext, getCommandContext, setCommandContext, } from "./command-context.svelte.js";
5
+ export { default as CommandInput, } from "./command-input.svelte";
6
+ export { default as CommandItem, } from "./command-item.svelte";
7
+ export { default as CommandSearch, } from "./command-search.svelte";
7
8
  export { default as Command } from "./command.svelte";
8
9
  export { default as Commander } from "./commander.svelte";
@@ -1,7 +1,7 @@
1
1
  <script module lang="ts">
2
- import type { HTMLAttributes } from "svelte/elements";
2
+ import { type ClassName } from "../utils.js";
3
+ import { type HTMLAttributes } from "svelte/elements";
3
4
  import { twMerge } from "tailwind-merge";
4
- import type { ClassName } from "../utils";
5
5
 
6
6
  export type DividerProps = {} & ClassName & HTMLAttributes<HTMLHRElement>;
7
7
  </script>
@@ -1,5 +1,5 @@
1
- import type { HTMLAttributes } from "svelte/elements";
2
- import type { ClassName } from "../utils";
1
+ import { type ClassName } from "../utils.js";
2
+ import { type HTMLAttributes } from "svelte/elements";
3
3
  export type DividerProps = {} & ClassName & HTMLAttributes<HTMLHRElement>;
4
4
  declare const Divider: import("svelte").Component<DividerProps, {}, "">;
5
5
  type Divider = ReturnType<typeof Divider>;
@@ -1,9 +1,9 @@
1
1
  <script module lang="ts">
2
- import type { Snippet } from "svelte";
3
- import type { HTMLAttributes } from "svelte/elements";
2
+ import { baseClasses, type Variants } from "../base.js";
3
+ import { type ClassName } from "../utils.js";
4
+ import { type Snippet } from "svelte";
5
+ import { type HTMLAttributes } from "svelte/elements";
4
6
  import { twMerge } from "tailwind-merge";
5
- import { baseClasses, type Variants } from "../base";
6
- import type { ClassName } from "../utils";
7
7
 
8
8
  export type HeaderProps = {
9
9
  children: Snippet;
@@ -1,7 +1,7 @@
1
- import type { Snippet } from "svelte";
2
- import type { HTMLAttributes } from "svelte/elements";
3
- import { type Variants } from "../base";
4
- import type { ClassName } from "../utils";
1
+ import { type Variants } from "../base.js";
2
+ import { type ClassName } from "../utils.js";
3
+ import { type Snippet } from "svelte";
4
+ import { type HTMLAttributes } from "svelte/elements";
5
5
  export type HeaderProps = {
6
6
  children: Snippet;
7
7
  } & ClassName & Variants & HTMLAttributes<HTMLDivElement>;
@@ -1,6 +1,6 @@
1
- import { Bindable } from "../bindable.svelte";
2
- import { OrderedHTMLElements } from "../ordered-html-elements";
3
- import { Shortcut } from "../shortcut";
1
+ import { Bindable } from "../bindable.svelte.js";
2
+ import { OrderedHTMLElements } from "../ordered-html-elements.js";
3
+ import { Shortcut } from "../shortcut/index.js";
4
4
  export class ItemContext {
5
5
  #input = new Bindable("");
6
6
  #items = new OrderedHTMLElements();
@@ -1,6 +1,6 @@
1
1
  <script module lang="ts">
2
- import type { Snippet } from "svelte";
3
- import { Button, type ButtonProps } from "../button";
2
+ import { Button, type ButtonProps } from "../button/index.js";
3
+ import { type Snippet } from "svelte";
4
4
 
5
5
  export type DialogButtonProps<T> = {
6
6
  value: T | undefined;
@@ -1,5 +1,5 @@
1
- import type { Snippet } from "svelte";
2
- import { type ButtonProps } from "../button";
1
+ import { type ButtonProps } from "../button/index.js";
2
+ import { type Snippet } from "svelte";
3
3
  export type DialogButtonProps<T> = {
4
4
  value: T | undefined;
5
5
  autofocus?: boolean;
@@ -1,9 +1,9 @@
1
1
  <script module lang="ts">
2
- import type { Icon } from "@lucide/svelte";
3
- import type { Snippet } from "svelte";
2
+ import { mergeComponentProps } from "../merge-props.js";
3
+ import { Modal, type ModalProps } from "../modal/index.js";
4
+ import { type Icon } from "@lucide/svelte";
5
+ import { type Snippet } from "svelte";
4
6
  import { twMerge } from "tailwind-merge";
5
- import { mergeComponentProps } from "../merge-props";
6
- import { Modal, type ModalProps } from "../modal";
7
7
 
8
8
  export type DialogProps<T> = {
9
9
  ref?: HTMLDialogElement;