bits-ui 0.15.1 → 0.16.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.
@@ -36,6 +36,10 @@ $:
36
36
  on:pointerdown
37
37
  on:pointermove
38
38
  on:pointerup
39
+ on:touchend
40
+ on:touchstart
41
+ on:touchcancel
42
+ on:touchmove
39
43
  {...$$restProps}
40
44
  >
41
45
  <slot {builder} />
@@ -49,6 +53,10 @@ $:
49
53
  on:pointerdown
50
54
  on:pointermove
51
55
  on:pointerup
56
+ on:touchend
57
+ on:touchstart
58
+ on:touchcancel
59
+ on:touchmove
52
60
  {...$$restProps}
53
61
  >
54
62
  <slot {builder} />
@@ -61,6 +69,10 @@ $:
61
69
  on:pointerdown
62
70
  on:pointermove
63
71
  on:pointerup
72
+ on:touchend
73
+ on:touchstart
74
+ on:touchcancel
75
+ on:touchmove
64
76
  {...$$restProps}
65
77
  >
66
78
  <slot {builder} />
@@ -73,6 +85,10 @@ $:
73
85
  on:pointerdown
74
86
  on:pointermove
75
87
  on:pointerup
88
+ on:touchend
89
+ on:touchstart
90
+ on:touchcancel
91
+ on:touchmove
76
92
  {...$$restProps}
77
93
  >
78
94
  <slot {builder} />
@@ -84,6 +100,10 @@ $:
84
100
  on:pointerdown
85
101
  on:pointermove
86
102
  on:pointerup
103
+ on:touchend
104
+ on:touchstart
105
+ on:touchcancel
106
+ on:touchmove
87
107
  {...$$restProps}
88
108
  >
89
109
  <slot {builder} />
@@ -7,6 +7,10 @@ declare class __sveltets_Render<T extends Transition, In extends Transition, Out
7
7
  pointerdown: PointerEvent;
8
8
  pointermove: PointerEvent;
9
9
  pointerup: PointerEvent;
10
+ touchend: TouchEvent;
11
+ touchstart: TouchEvent;
12
+ touchcancel: TouchEvent;
13
+ touchmove: TouchEvent;
10
14
  } & {
11
15
  [evt: string]: CustomEvent<any>;
12
16
  };
@@ -18,6 +18,10 @@ type ContentEvents<T extends Element = HTMLElement> = {
18
18
  pointerdown: SvelteEvent<PointerEvent, T>;
19
19
  pointerup: SvelteEvent<PointerEvent, T>;
20
20
  pointermove: SvelteEvent<PointerEvent, T>;
21
+ touchend: SvelteEvent<TouchEvent, T>;
22
+ touchstart: SvelteEvent<TouchEvent, T>;
23
+ touchcancel: SvelteEvent<TouchEvent, T>;
24
+ touchmove: SvelteEvent<TouchEvent, T>;
21
25
  };
22
26
  type ActionEvents = TriggerEvents;
23
27
  type CancelEvents = TriggerEvents;
@@ -37,6 +37,10 @@ $:
37
37
  on:pointerdown
38
38
  on:pointermove
39
39
  on:pointerup
40
+ on:touchend
41
+ on:touchstart
42
+ on:touchcancel
43
+ on:touchmove
40
44
  >
41
45
  <slot {builder} />
42
46
  </div>
@@ -49,6 +53,10 @@ $:
49
53
  on:pointerdown
50
54
  on:pointermove
51
55
  on:pointerup
56
+ on:touchend
57
+ on:touchstart
58
+ on:touchcancel
59
+ on:touchmove
52
60
  {...$$restProps}
53
61
  >
54
62
  <slot {builder} />
@@ -61,6 +69,10 @@ $:
61
69
  on:pointerdown
62
70
  on:pointermove
63
71
  on:pointerup
72
+ on:touchend
73
+ on:touchstart
74
+ on:touchcancel
75
+ on:touchmove
64
76
  {...$$restProps}
65
77
  >
66
78
  <slot {builder} />
@@ -73,6 +85,10 @@ $:
73
85
  on:pointerdown
74
86
  on:pointermove
75
87
  on:pointerup
88
+ on:touchend
89
+ on:touchstart
90
+ on:touchcancel
91
+ on:touchmove
76
92
  {...$$restProps}
77
93
  >
78
94
  <slot {builder} />
@@ -84,6 +100,10 @@ $:
84
100
  on:pointerdown
85
101
  on:pointermove
86
102
  on:pointerup
103
+ on:touchend
104
+ on:touchstart
105
+ on:touchcancel
106
+ on:touchmove
87
107
  {...$$restProps}
88
108
  >
89
109
  <slot {builder} />
@@ -17,6 +17,10 @@ type ContentEvents<T extends Element = HTMLElement> = {
17
17
  pointerdown: SvelteEvent<PointerEvent, T>;
18
18
  pointerup: SvelteEvent<PointerEvent, T>;
19
19
  pointermove: SvelteEvent<PointerEvent, T>;
20
+ touchend: SvelteEvent<TouchEvent, T>;
21
+ touchstart: SvelteEvent<TouchEvent, T>;
22
+ touchcancel: SvelteEvent<TouchEvent, T>;
23
+ touchmove: SvelteEvent<TouchEvent, T>;
20
24
  };
21
25
  type TriggerEvents<T extends Element = HTMLButtonElement> = {
22
26
  click: CustomEventHandler<MouseEvent, T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bits-ui",
3
- "version": "0.15.1",
3
+ "version": "0.16.0",
4
4
  "license": "MIT",
5
5
  "repository": "github:huntabyte/bits-ui",
6
6
  "exports": {