kosui 0.0.26 → 0.0.28

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 (186) 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 +4 -4
  4. package/dist/autocomplete/autocomplete-content.svelte.d.ts +3 -3
  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 +1 -1
  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 +2 -2
  20. package/dist/box/box.svelte.d.ts +2 -2
  21. package/dist/breadcrumbs/breadcrumbs.svelte +1 -1
  22. package/dist/breadcrumbs/breadcrumbs.svelte.d.ts +1 -1
  23. package/dist/button/button.svelte +4 -4
  24. package/dist/button/button.svelte.d.ts +2 -2
  25. package/dist/chip/chip.svelte +1 -2
  26. package/dist/chip/chip.svelte.d.ts +1 -1
  27. package/dist/command/action.svelte.d.ts +1 -1
  28. package/dist/command/command-content.svelte +1 -1
  29. package/dist/command/command-content.svelte.d.ts +1 -1
  30. package/dist/command/command-context.svelte.d.ts +1 -1
  31. package/dist/command/command-context.svelte.js +1 -1
  32. package/dist/command/command-input.svelte +4 -4
  33. package/dist/command/command-input.svelte.d.ts +2 -2
  34. package/dist/command/command-item.svelte +5 -5
  35. package/dist/command/command-item.svelte.d.ts +3 -3
  36. package/dist/command/command-search.svelte +1 -2
  37. package/dist/command/command-search.svelte.d.ts +1 -1
  38. package/dist/command/command.svelte +2 -2
  39. package/dist/command/command.svelte.d.ts +1 -1
  40. package/dist/command/commander.svelte +6 -6
  41. package/dist/command/commander.svelte.d.ts +1 -1
  42. package/dist/command/index.d.ts +7 -6
  43. package/dist/command/index.js +5 -4
  44. package/dist/common/divider.svelte +1 -1
  45. package/dist/common/divider.svelte.d.ts +1 -1
  46. package/dist/common/header.svelte +2 -2
  47. package/dist/common/header.svelte.d.ts +2 -2
  48. package/dist/common/item-context.svelte.js +3 -3
  49. package/dist/dialog/dialog-button.svelte +1 -1
  50. package/dist/dialog/dialog-button.svelte.d.ts +1 -1
  51. package/dist/dialog/dialog.svelte +2 -2
  52. package/dist/dialog/dialog.svelte.d.ts +1 -1
  53. package/dist/dialog/dialoguer-context.svelte.d.ts +5 -5
  54. package/dist/dialog/dialoguer.svelte +7 -7
  55. package/dist/dialog/index.d.ts +1 -1
  56. package/dist/dialog/index.js +1 -1
  57. package/dist/event-manager.d.ts +1 -1
  58. package/dist/event-manager.js +2 -2
  59. package/dist/fab/fab.svelte +2 -2
  60. package/dist/fab/fab.svelte.d.ts +2 -2
  61. package/dist/fab/index.d.ts +1 -1
  62. package/dist/index.d.ts +31 -30
  63. package/dist/index.js +31 -30
  64. package/dist/input/input.svelte +4 -4
  65. package/dist/input/input.svelte.d.ts +2 -2
  66. package/dist/link/link.svelte +2 -2
  67. package/dist/link/link.svelte.d.ts +2 -2
  68. package/dist/markdown/markdown-blockquote.svelte +1 -1
  69. package/dist/markdown/markdown-blockquote.svelte.d.ts +1 -1
  70. package/dist/markdown/markdown-br.svelte +1 -1
  71. package/dist/markdown/markdown-br.svelte.d.ts +1 -1
  72. package/dist/markdown/markdown-code.svelte +1 -1
  73. package/dist/markdown/markdown-code.svelte.d.ts +1 -1
  74. package/dist/markdown/markdown-codespan.svelte +1 -1
  75. package/dist/markdown/markdown-codespan.svelte.d.ts +1 -1
  76. package/dist/markdown/markdown-def.svelte +1 -1
  77. package/dist/markdown/markdown-def.svelte.d.ts +1 -1
  78. package/dist/markdown/markdown-del.svelte +1 -1
  79. package/dist/markdown/markdown-del.svelte.d.ts +1 -1
  80. package/dist/markdown/markdown-em.svelte +1 -1
  81. package/dist/markdown/markdown-em.svelte.d.ts +1 -1
  82. package/dist/markdown/markdown-escape.svelte +2 -2
  83. package/dist/markdown/markdown-escape.svelte.d.ts +2 -2
  84. package/dist/markdown/markdown-heading.svelte +1 -1
  85. package/dist/markdown/markdown-heading.svelte.d.ts +1 -1
  86. package/dist/markdown/markdown-hr.svelte +1 -1
  87. package/dist/markdown/markdown-hr.svelte.d.ts +1 -1
  88. package/dist/markdown/markdown-html.svelte +1 -1
  89. package/dist/markdown/markdown-html.svelte.d.ts +1 -1
  90. package/dist/markdown/markdown-image.svelte +1 -1
  91. package/dist/markdown/markdown-image.svelte.d.ts +1 -1
  92. package/dist/markdown/markdown-link.svelte +1 -1
  93. package/dist/markdown/markdown-link.svelte.d.ts +1 -1
  94. package/dist/markdown/markdown-list-item.svelte +1 -1
  95. package/dist/markdown/markdown-list-item.svelte.d.ts +1 -1
  96. package/dist/markdown/markdown-list.svelte +1 -1
  97. package/dist/markdown/markdown-list.svelte.d.ts +1 -1
  98. package/dist/markdown/markdown-paragraph.svelte +1 -1
  99. package/dist/markdown/markdown-paragraph.svelte.d.ts +1 -1
  100. package/dist/markdown/markdown-space.svelte +1 -1
  101. package/dist/markdown/markdown-space.svelte.d.ts +1 -1
  102. package/dist/markdown/markdown-strong.svelte +1 -1
  103. package/dist/markdown/markdown-strong.svelte.d.ts +1 -1
  104. package/dist/markdown/markdown-table-cell.svelte +1 -1
  105. package/dist/markdown/markdown-table-cell.svelte.d.ts +1 -1
  106. package/dist/markdown/markdown-table.svelte +4 -2
  107. package/dist/markdown/markdown-table.svelte.d.ts +1 -1
  108. package/dist/markdown/markdown-text.svelte +1 -1
  109. package/dist/markdown/markdown-text.svelte.d.ts +1 -1
  110. package/dist/markdown/markdown-token.svelte +2 -2
  111. package/dist/markdown/markdown-token.svelte.d.ts +1 -1
  112. package/dist/markdown/markdown-tokens.svelte +1 -1
  113. package/dist/markdown/markdown.svelte +8 -8
  114. package/dist/markdown/markdown.svelte.d.ts +1 -1
  115. package/dist/menu/index.d.ts +2 -1
  116. package/dist/menu/index.js +2 -1
  117. package/dist/menu/menu-actions.svelte +2 -2
  118. package/dist/menu/menu-actions.svelte.d.ts +1 -1
  119. package/dist/menu/menu-content.svelte +5 -5
  120. package/dist/menu/menu-content.svelte.d.ts +3 -3
  121. package/dist/menu/menu-context.svelte.js +4 -4
  122. package/dist/menu/menu-item.svelte +6 -6
  123. package/dist/menu/menu-item.svelte.d.ts +3 -3
  124. package/dist/menu/menu-trigger-button.svelte +4 -4
  125. package/dist/menu/menu-trigger-button.svelte.d.ts +1 -1
  126. package/dist/menu/menu-trigger.svelte +6 -6
  127. package/dist/menu/menu-trigger.svelte.d.ts +3 -3
  128. package/dist/menu/menu.svelte +2 -2
  129. package/dist/menu/menu.svelte.d.ts +1 -1
  130. package/dist/modal/modal.svelte +4 -4
  131. package/dist/modal/modal.svelte.d.ts +1 -1
  132. package/dist/popover/popover.svelte +9 -9
  133. package/dist/popover/popover.svelte.d.ts +2 -2
  134. package/dist/portal/index.d.ts +2 -1
  135. package/dist/portal/index.js +1 -0
  136. package/dist/portal/portal.svelte +7 -4
  137. package/dist/portal/portal.svelte.d.ts +2 -2
  138. package/dist/portal/proxy.svelte +6 -3
  139. package/dist/portal/proxy.svelte.d.ts +2 -2
  140. package/dist/progress/circular-progress.svelte +7 -6
  141. package/dist/progress/circular-progress.svelte.d.ts +2 -2
  142. package/dist/progress/index.d.ts +1 -1
  143. package/dist/progress/index.js +1 -1
  144. package/dist/shortcut/index.d.ts +1 -1
  145. package/dist/shortcut/index.js +1 -1
  146. package/dist/shortcut/shortcut-badge.svelte +3 -3
  147. package/dist/shortcut/shortcut-badge.svelte.d.ts +2 -2
  148. package/dist/shortcut/shortcut.d.ts +2 -0
  149. package/dist/shortcut/shortcut.js +2 -0
  150. package/dist/skeleton/skeleton.svelte +1 -1
  151. package/dist/skeleton/skeleton.svelte.d.ts +1 -1
  152. package/dist/slider/index.d.ts +8 -0
  153. package/dist/slider/index.js +8 -0
  154. package/dist/slider/slider-context.svelte.d.ts +48 -0
  155. package/dist/slider/slider-context.svelte.js +192 -0
  156. package/dist/slider/slider-handle-label-arrow.svelte +18 -0
  157. package/dist/slider/slider-handle-label-arrow.svelte.d.ts +6 -0
  158. package/dist/slider/slider-handle-label.svelte +31 -0
  159. package/dist/slider/slider-handle-label.svelte.d.ts +6 -0
  160. package/dist/slider/slider-handle.svelte +51 -0
  161. package/dist/slider/slider-handle.svelte.d.ts +6 -0
  162. package/dist/slider/slider-mark-dot.svelte +25 -0
  163. package/dist/slider/slider-mark-dot.svelte.d.ts +6 -0
  164. package/dist/slider/slider-mark-label.svelte +37 -0
  165. package/dist/slider/slider-mark-label.svelte.d.ts +9 -0
  166. package/dist/slider/slider-mark.svelte +33 -0
  167. package/dist/slider/slider-mark.svelte.d.ts +9 -0
  168. package/dist/slider/slider.svelte +227 -0
  169. package/dist/slider/slider.svelte.d.ts +41 -0
  170. package/dist/switch/index.d.ts +1 -0
  171. package/dist/switch/index.js +1 -0
  172. package/dist/switch/switch-thumb.svelte +52 -0
  173. package/dist/switch/switch-thumb.svelte.d.ts +7 -0
  174. package/dist/switch/switch.svelte +15 -29
  175. package/dist/switch/switch.svelte.d.ts +6 -3
  176. package/dist/textarea/textarea.svelte +2 -2
  177. package/dist/textarea/textarea.svelte.d.ts +2 -2
  178. package/dist/toggle/index.d.ts +3 -2
  179. package/dist/toggle/index.js +3 -2
  180. package/dist/toggle/toggle-button.svelte +4 -4
  181. package/dist/toggle/toggle-button.svelte.d.ts +2 -2
  182. package/dist/toggle/toggle-group.svelte +3 -3
  183. package/dist/toggle/toggle-group.svelte.d.ts +2 -2
  184. package/dist/tooltip/tooltip.svelte +7 -6
  185. package/dist/tooltip/tooltip.svelte.d.ts +3 -3
  186. package/package.json +7 -5
@@ -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 { 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";
2
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 Variants } from "../base.js";
2
+ import { type PopoverProps } from "../popover/index.js";
3
+ import type { ClassName } from "../utils.js";
1
4
  import type { Snippet } from "svelte";
2
- import { type Variants } from "../base";
3
- import { type PopoverProps } from "../popover";
4
- import type { ClassName } from "../utils";
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 { type Snippet } from "svelte";
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, ElementRef } from "../utils.js";
6
+ import type { Snippet } from "svelte";
3
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 Snippet } from "svelte";
1
+ import { type Variants } from "../base.js";
2
+ import type { ClassName, ElementRef } from "../utils.js";
3
+ import type { Snippet } from "svelte";
2
4
  import type { HTMLAttributes } from "svelte/elements";
3
- import { type Variants } from "../base";
4
- import { type ClassName, type ElementRef } from "../utils";
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 { ClassName } from "../utils.js";
1
2
  import type { Snippet } from "svelte";
2
- import type { ClassName } from "../utils";
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 { baseClasses, type Variants } from "../base.js";
3
+ import { noop, type ClassName, type ElementRef } from "../utils.js";
2
4
  import type { Snippet } from "svelte";
3
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 Variants } from "../base.js";
2
+ import { type ClassName, type ElementRef } from "../utils.js";
1
3
  import type { Snippet } from "svelte";
2
4
  import type { HTMLAttributes } from "svelte/elements";
3
- import { type Variants } from "../base";
4
- import { type ClassName, type ElementRef } from "../utils";
5
5
  export type BoxProps = {
6
6
  centered?: boolean;
7
7
  backdrop?: boolean;
@@ -1,5 +1,5 @@
1
1
  <script module lang="ts">
2
- import { Link, type LinkProps } from "..";
2
+ import { Link, type LinkProps } from "../link/index.js";
3
3
  import type { Snippet } from "svelte";
4
4
  import { twMerge } from "tailwind-merge";
5
5
 
@@ -1,4 +1,4 @@
1
- import { type LinkProps } from "..";
1
+ import { type LinkProps } from "../link/index.js";
2
2
  import type { Snippet } from "svelte";
3
3
  type Crumb = {
4
4
  title: string;
@@ -1,12 +1,12 @@
1
1
  <script lang="ts" module>
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";
2
6
  import type { Icon } from "@lucide/svelte";
3
7
  import type { Snippet } from "svelte";
4
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 Variants } from "../base.js";
2
+ import { type ClassName, type ElementRef } from "../utils.js";
1
3
  import type { Icon } from "@lucide/svelte";
2
4
  import type { Snippet } from "svelte";
3
5
  import type { HTMLButtonAttributes } from "svelte/elements";
4
- import { type Variants } from "../base";
5
- import { type ClassName, type ElementRef } from "../utils";
6
6
  export type ButtonProps = {
7
7
  icon?: typeof Icon;
8
8
  size?: number;
@@ -1,4 +1,5 @@
1
1
  <script lang="ts" module>
2
+ import { Box, type BoxProps } from "../box/index.js";
2
3
  import { X } from "@lucide/svelte";
3
4
  import type { Snippet } from "svelte";
4
5
  import { twMerge } from "tailwind-merge";
@@ -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,3 +1,4 @@
1
+ import { type BoxProps } from "../box/index.js";
1
2
  import type { Snippet } from "svelte";
2
3
  export type ChipProps = {
3
4
  title?: string;
@@ -5,7 +6,6 @@ export type ChipProps = {
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,7 +1,7 @@
1
1
  <script module lang="ts">
2
+ import type { ClassName } from "../utils.js";
2
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 { ClassName } from "../utils.js";
1
2
  import type { Snippet } from "svelte";
2
- import type { ClassName } from "../utils";
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 { baseClasses, type Variants } from "../base.js";
3
+ import { getCommandContext } from "./index.js";
4
+ import { mergeProps } from "../merge-props.js";
5
+ import type { ClassName, ElementRef } from "../utils.js";
2
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 Variants } from "../base.js";
2
+ import type { ClassName, ElementRef } from "../utils.js";
1
3
  import type { HTMLInputAttributes } from "svelte/elements";
2
- import { type Variants } from "../base";
3
- import type { ClassName, ElementRef } from "../utils";
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 { type Snippet } from "svelte";
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, ElementRef } from "../utils.js";
6
+ import type { Snippet } from "svelte";
3
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 Snippet } from "svelte";
1
+ import { type Variants } from "../base.js";
2
+ import type { ClassName, ElementRef } from "../utils.js";
3
+ import type { Snippet } from "svelte";
2
4
  import type { HTMLAttributes } from "svelte/elements";
3
- import { type Variants } from "../base";
4
- import { type ClassName, type ElementRef } from "../utils";
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 { CommandContext, setCommandContext } from "./index.js";
3
+ import type { ClassName } from "../utils.js";
2
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 { ClassName } from "../utils.js";
1
2
  import type { Snippet } from "svelte";
2
- import type { ClassName } from "../utils";
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 { ClassName } from "../utils.js";
2
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 { ClassName } from "../utils.js";
1
2
  import type { HTMLAttributes } from "svelte/elements";
2
- import type { ClassName } from "../utils";
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 { baseClasses, type Variants } from "../base.js";
3
+ import type { ClassName } from "../utils.js";
2
4
  import type { Snippet } from "svelte";
3
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 Variants } from "../base.js";
2
+ import type { ClassName } from "../utils.js";
1
3
  import type { Snippet } from "svelte";
2
4
  import type { HTMLAttributes } from "svelte/elements";
3
- import { type Variants } from "../base";
4
- import type { ClassName } from "../utils";
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 { Button, type ButtonProps } from "../button/index.js";
2
3
  import type { Snippet } from "svelte";
3
- import { Button, type ButtonProps } from "../button";
4
4
 
5
5
  export type DialogButtonProps<T> = {
6
6
  value: T | undefined;
@@ -1,5 +1,5 @@
1
+ import { type ButtonProps } from "../button/index.js";
1
2
  import type { Snippet } from "svelte";
2
- import { type ButtonProps } from "../button";
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 { mergeComponentProps } from "../merge-props.js";
3
+ import { Modal, type ModalProps } from "../modal/index.js";
2
4
  import type { Icon } from "@lucide/svelte";
3
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;
@@ -1,6 +1,6 @@
1
+ import { type ModalProps } from "../modal/index.js";
1
2
  import type { Icon } from "@lucide/svelte";
2
3
  import type { Snippet } from "svelte";
3
- import { type ModalProps } from "../modal";
4
4
  export type DialogProps<T> = {
5
5
  ref?: HTMLDialogElement;
6
6
  onSelect?: (value: T | undefined) => void;
@@ -1,8 +1,8 @@
1
+ import type { Variants } from "../base.js";
2
+ import type { InputProps } from "../input/index.js";
1
3
  import type { Icon } from "@lucide/svelte";
2
4
  import { type Snippet } from "svelte";
3
- import type { Variants } from "../base";
4
- import type { InputProps } from "../input";
5
- export type ButtonProps<T> = {
5
+ export type DialoguerButtonProps<T> = {
6
6
  text: string;
7
7
  value: T;
8
8
  default?: boolean;
@@ -12,7 +12,7 @@ type ShowDialogProps<T> = {
12
12
  title?: string;
13
13
  inputProps?: InputProps;
14
14
  message: Snippet<[]> | string;
15
- buttons: ButtonProps<T>[];
15
+ buttons: DialoguerButtonProps<T>[];
16
16
  };
17
17
  type NoticeDialogProps = {
18
18
  icon?: typeof Icon;
@@ -40,7 +40,7 @@ export declare class DialoguerContext {
40
40
  icon: typeof Icon | undefined;
41
41
  title: string | undefined;
42
42
  inputProps: InputProps | undefined;
43
- buttons: ButtonProps<unknown>[];
43
+ buttons: DialoguerButtonProps<unknown>[];
44
44
  resolve: (value: unknown) => void;
45
45
  open: boolean;
46
46
  show<T>(dialog: ShowDialogProps<T>): Promise<T>;