bits-ui 0.21.15 → 0.22.0

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,4 +1,4 @@
1
- import type { EventHandler, HTMLInputAttributes, HTMLLabelAttributes } from "svelte/elements";
1
+ import type { HTMLInputAttributes, HTMLLabelAttributes } from "svelte/elements";
2
2
  import type { ComboboxOptionProps as MeltComboboxOptionProps, CreateComboboxProps as MeltComboboxProps } from "@melt-ui/svelte";
3
3
  import type { DOMElement, Expand, HTMLDivAttributes, OmitFloating, OnChangeFn, Transition } from "../../internal/index.js";
4
4
  import type { CustomEventHandler, Selected } from "../../index.js";
@@ -76,14 +76,14 @@ export type ComboboxArrowProps = ComboboxArrowPropsWithoutHTML & HTMLDivAttribut
76
76
  export type ComboboxItemEvents<T extends Element = HTMLDivElement> = {
77
77
  click: CustomEventHandler<MouseEvent, T>;
78
78
  pointermove: CustomEventHandler<PointerEvent, T>;
79
- focusin: EventHandler<FocusEvent, T>;
80
- keydown: EventHandler<KeyboardEvent, T>;
81
- focusout: EventHandler<FocusEvent, T>;
82
- pointerleave: EventHandler<PointerEvent, T>;
79
+ focusin: CustomEventHandler<FocusEvent, T>;
80
+ keydown: CustomEventHandler<KeyboardEvent, T>;
81
+ focusout: CustomEventHandler<FocusEvent, T>;
82
+ pointerleave: CustomEventHandler<PointerEvent, T>;
83
83
  };
84
84
  export type ComboboxContentEvents<T extends Element = HTMLDivElement> = {
85
85
  pointerleave: CustomEventHandler<PointerEvent, T>;
86
- keydown: EventHandler<KeyboardEvent, T>;
86
+ keydown: CustomEventHandler<KeyboardEvent, T>;
87
87
  };
88
88
  export type ComboboxGroupLabelEvents<T extends Element = HTMLSpanElement> = {
89
89
  click: CustomEventHandler<MouseEvent, T>;
@@ -1,4 +1,4 @@
1
- import type { EventHandler, HTMLAttributes, HTMLButtonAttributes, HTMLInputAttributes } from "svelte/elements";
1
+ import type { HTMLAttributes, HTMLButtonAttributes, HTMLInputAttributes } from "svelte/elements";
2
2
  import type { SelectOptionProps as MeltSelectOptionProps, CreateSelectProps as MeltSelectProps } from "@melt-ui/svelte";
3
3
  import type { DOMElement, Expand, HTMLDivAttributes, OmitFloating, OnChangeFn, Transition } from "../../internal/index.js";
4
4
  import type { CustomEventHandler, Selected } from "../../index.js";
@@ -70,10 +70,10 @@ export type SelectIndicatorProps = SelectIndicatorPropsWithoutHTML & HTMLDivAttr
70
70
  export type SelectItemEvents<T extends Element = HTMLDivElement> = {
71
71
  click: CustomEventHandler<MouseEvent, T>;
72
72
  pointermove: CustomEventHandler<PointerEvent, T>;
73
- focusin: EventHandler<FocusEvent, T>;
74
- keydown: EventHandler<KeyboardEvent, T>;
75
- focusout: EventHandler<FocusEvent, T>;
76
- pointerleave: EventHandler<PointerEvent, T>;
73
+ focusin: CustomEventHandler<FocusEvent, T>;
74
+ keydown: CustomEventHandler<KeyboardEvent, T>;
75
+ focusout: CustomEventHandler<FocusEvent, T>;
76
+ pointerleave: CustomEventHandler<PointerEvent, T>;
77
77
  };
78
78
  export type SelectTriggerEvents<T extends Element = HTMLButtonElement> = {
79
79
  click: CustomEventHandler<MouseEvent, T>;
@@ -84,5 +84,5 @@ export type SelectLabelEvents<T extends Element = HTMLSpanElement> = {
84
84
  };
85
85
  export type SelectContentEvents<T extends Element = HTMLDivElement> = {
86
86
  pointerleave: CustomEventHandler<PointerEvent, T>;
87
- keydown: EventHandler<KeyboardEvent, T>;
87
+ keydown: CustomEventHandler<KeyboardEvent, T>;
88
88
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bits-ui",
3
- "version": "0.21.15",
3
+ "version": "0.22.0",
4
4
  "license": "MIT",
5
5
  "repository": "github:huntabyte/bits-ui",
6
6
  "funding": "https://github.com/sponsors/huntabyte",
@@ -49,7 +49,7 @@
49
49
  "nanoid": "^5.0.5"
50
50
  },
51
51
  "peerDependencies": {
52
- "svelte": "^4.0.0 || ^5.0.0-next.118"
52
+ "svelte": "^4.0.0 || ^5.0.0"
53
53
  },
54
54
  "scripts": {
55
55
  "build": "pnpm package",