bits-ui 0.21.7 → 0.21.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.
@@ -21,6 +21,10 @@ const attrs = {
21
21
  on:keyup
22
22
  on:mouseenter
23
23
  on:mouseleave
24
+ on:mousedown
25
+ on:pointerdown
26
+ on:mouseup
27
+ on:pointerup
24
28
  tabindex="0"
25
29
  use:builderActions={{ builders }}
26
30
  {...getAttrs(builders)}
@@ -42,6 +46,10 @@ const attrs = {
42
46
  on:keyup
43
47
  on:mouseenter
44
48
  on:mouseleave
49
+ on:mousedown
50
+ on:pointerdown
51
+ on:mouseup
52
+ on:pointerup
45
53
  tabindex="0"
46
54
  {...$$restProps}
47
55
  {...attrs}
@@ -26,5 +26,9 @@ export type ButtonEvents = {
26
26
  keyup: ButtonEventHandler<KeyboardEvent>;
27
27
  mouseenter: ButtonEventHandler<MouseEvent>;
28
28
  mouseleave: ButtonEventHandler<MouseEvent>;
29
+ mousedown: ButtonEventHandler<MouseEvent>;
30
+ mouseup: ButtonEventHandler<MouseEvent>;
31
+ pointerdown: ButtonEventHandler<PointerEvent>;
32
+ pointerup: ButtonEventHandler<PointerEvent>;
29
33
  };
30
34
  export {};
@@ -1,4 +1,4 @@
1
- import type { EventHandler, HTMLInputAttributes } from "svelte/elements";
1
+ import type { EventHandler, 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";
@@ -65,7 +65,7 @@ export type ComboboxIndicatorPropsWithoutHTML = DOMElement;
65
65
  export type ComboboxProps<T, Multiple extends boolean = false> = ComboboxPropsWithoutHTML<T, Multiple>;
66
66
  export type ComboboxContentProps<T extends Transition = Transition, In extends Transition = Transition, Out extends Transition = Transition> = ComboboxContentPropsWithoutHTML<T, In, Out> & HTMLDivAttributes;
67
67
  export type ComboboxInputProps = ComboboxInputPropsWithoutHTML & HTMLInputAttributes;
68
- export type ComboboxLabelProps = ComboboxLabelPropsWithoutHTML & HTMLDivAttributes;
68
+ export type ComboboxLabelProps = ComboboxLabelPropsWithoutHTML & HTMLLabelAttributes;
69
69
  export type ComboboxGroupProps = ComboboxGroupPropsWithoutHTML & HTMLDivAttributes;
70
70
  export type ComboboxGroupLabelProps = ComboboxGroupLabelPropsWithoutHTML & HTMLDivAttributes;
71
71
  export type ComboboxItemProps = ComboboxItemPropsWithoutHTML & HTMLDivAttributes;
@@ -1,4 +1,4 @@
1
- import type { DOMElement, Transition, TransitionProps } from "../../internal/index.js";
1
+ import type { DOMElement, Expand, Transition, TransitionProps } from "../../internal/index.js";
2
2
  export type ArrowProps = Expand<{
3
3
  size?: number;
4
4
  } & DOMElement>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bits-ui",
3
- "version": "0.21.7",
3
+ "version": "0.21.9",
4
4
  "license": "MIT",
5
5
  "repository": "github:huntabyte/bits-ui",
6
6
  "funding": "https://github.com/sponsors/huntabyte",