@m3e/react 2.7.11 → 2.8.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.
- package/dist/all.js +185 -1
- package/dist/all.js.map +1 -1
- package/dist/all.min.js +2 -2
- package/dist/all.min.js.map +1 -1
- package/dist/gestures.js +194 -0
- package/dist/gestures.js.map +1 -0
- package/dist/gestures.min.js +7 -0
- package/dist/gestures.min.js.map +1 -0
- package/dist/src/all.d.ts +1 -0
- package/dist/src/all.d.ts.map +1 -1
- package/dist/src/gestures/LongPressGesture.d.ts +20 -0
- package/dist/src/gestures/LongPressGesture.d.ts.map +1 -0
- package/dist/src/gestures/PanGesture.d.ts +20 -0
- package/dist/src/gestures/PanGesture.d.ts.map +1 -0
- package/dist/src/gestures/RepeatGesture.d.ts +20 -0
- package/dist/src/gestures/RepeatGesture.d.ts.map +1 -0
- package/dist/src/gestures/RotateGesture.d.ts +20 -0
- package/dist/src/gestures/RotateGesture.d.ts.map +1 -0
- package/dist/src/gestures/ScaleGesture.d.ts +20 -0
- package/dist/src/gestures/ScaleGesture.d.ts.map +1 -0
- package/dist/src/gestures/SequenceGesture.d.ts +20 -0
- package/dist/src/gestures/SequenceGesture.d.ts.map +1 -0
- package/dist/src/gestures/SwipeGesture.d.ts +20 -0
- package/dist/src/gestures/SwipeGesture.d.ts.map +1 -0
- package/dist/src/gestures/TapGesture.d.ts +20 -0
- package/dist/src/gestures/TapGesture.d.ts.map +1 -0
- package/dist/src/gestures/index.d.ts +10 -0
- package/dist/src/gestures/index.d.ts.map +1 -0
- package/package.json +6 -2
package/dist/gestures.js
ADDED
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
* Copyright (c) 2025–2026 matraic
|
|
4
|
+
* See LICENSE file in the project root for full license text.
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { createComponent } from '@lit/react';
|
|
8
|
+
import { M3eLongPressGestureElement } from '@m3e/web/gestures/long-press';
|
|
9
|
+
import { M3ePanGestureElement } from '@m3e/web/gestures/pan';
|
|
10
|
+
import { M3eRepeatGestureElement } from '@m3e/web/gestures/repeat';
|
|
11
|
+
import { M3eRotateGestureElement } from '@m3e/web/gestures/rotate';
|
|
12
|
+
import { M3eScaleGestureElement } from '@m3e/web/gestures/scale';
|
|
13
|
+
import { M3eSequenceGestureElement } from '@m3e/web/gestures/sequence';
|
|
14
|
+
import { M3eSwipeGestureElement } from '@m3e/web/gestures/swipe';
|
|
15
|
+
import { M3eTapGestureElement } from '@m3e/web/gestures/tap';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* React binding for the `m3e-long-press-gesture` Web Component from `@m3e/web/gestures/long-press`.
|
|
19
|
+
*
|
|
20
|
+
* This component renders the underlying `<m3e-long-press-gesture>` element and exposes its
|
|
21
|
+
* properties, attributes, and events through an idiomatic React interface.
|
|
22
|
+
*
|
|
23
|
+
* Props map directly to element properties, and event handlers receive the
|
|
24
|
+
* native DOM events dispatched by the component. Refs are forwarded to the
|
|
25
|
+
* underlying `<m3e-long-press-gesture>` instance for imperative access.
|
|
26
|
+
*
|
|
27
|
+
* See the `m3e-long-press-gesture` documentation for full details on behavior, styling,
|
|
28
|
+
* accessibility, and supported events.
|
|
29
|
+
*/
|
|
30
|
+
const M3eLongPressGesture = createComponent({
|
|
31
|
+
tagName: "m3e-long-press-gesture",
|
|
32
|
+
elementClass: M3eLongPressGestureElement,
|
|
33
|
+
react: React,
|
|
34
|
+
events: {
|
|
35
|
+
onGesture: "gesture"
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* React binding for the `m3e-pan-gesture` Web Component from `@m3e/web/gestures/pan`.
|
|
41
|
+
*
|
|
42
|
+
* This component renders the underlying `<m3e-pan-gesture>` element and exposes its
|
|
43
|
+
* properties, attributes, and events through an idiomatic React interface.
|
|
44
|
+
*
|
|
45
|
+
* Props map directly to element properties, and event handlers receive the
|
|
46
|
+
* native DOM events dispatched by the component. Refs are forwarded to the
|
|
47
|
+
* underlying `<m3e-pan-gesture>` instance for imperative access.
|
|
48
|
+
*
|
|
49
|
+
* See the `m3e-pan-gesture` documentation for full details on behavior, styling,
|
|
50
|
+
* accessibility, and supported events.
|
|
51
|
+
*/
|
|
52
|
+
const M3ePanGesture = createComponent({
|
|
53
|
+
tagName: "m3e-pan-gesture",
|
|
54
|
+
elementClass: M3ePanGestureElement,
|
|
55
|
+
react: React,
|
|
56
|
+
events: {
|
|
57
|
+
onGesture: "gesture"
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* React binding for the `m3e-repeat-gesture` Web Component from `@m3e/web/gestures/repeat`.
|
|
63
|
+
*
|
|
64
|
+
* This component renders the underlying `<m3e-repeat-gesture>` element and exposes its
|
|
65
|
+
* properties, attributes, and events through an idiomatic React interface.
|
|
66
|
+
*
|
|
67
|
+
* Props map directly to element properties, and event handlers receive the
|
|
68
|
+
* native DOM events dispatched by the component. Refs are forwarded to the
|
|
69
|
+
* underlying `<m3e-repeat-gesture>` instance for imperative access.
|
|
70
|
+
*
|
|
71
|
+
* See the `m3e-repeat-gesture` documentation for full details on behavior, styling,
|
|
72
|
+
* accessibility, and supported events.
|
|
73
|
+
*/
|
|
74
|
+
const M3eRepeatGesture = createComponent({
|
|
75
|
+
tagName: "m3e-repeat-gesture",
|
|
76
|
+
elementClass: M3eRepeatGestureElement,
|
|
77
|
+
react: React,
|
|
78
|
+
events: {
|
|
79
|
+
onGesture: "gesture"
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* React binding for the `m3e-rotate-gesture` Web Component from `@m3e/web/gestures/rotate`.
|
|
85
|
+
*
|
|
86
|
+
* This component renders the underlying `<m3e-rotate-gesture>` element and exposes its
|
|
87
|
+
* properties, attributes, and events through an idiomatic React interface.
|
|
88
|
+
*
|
|
89
|
+
* Props map directly to element properties, and event handlers receive the
|
|
90
|
+
* native DOM events dispatched by the component. Refs are forwarded to the
|
|
91
|
+
* underlying `<m3e-rotate-gesture>` instance for imperative access.
|
|
92
|
+
*
|
|
93
|
+
* See the `m3e-rotate-gesture` documentation for full details on behavior, styling,
|
|
94
|
+
* accessibility, and supported events.
|
|
95
|
+
*/
|
|
96
|
+
const M3eRotateGesture = createComponent({
|
|
97
|
+
tagName: "m3e-rotate-gesture",
|
|
98
|
+
elementClass: M3eRotateGestureElement,
|
|
99
|
+
react: React,
|
|
100
|
+
events: {
|
|
101
|
+
onGesture: "gesture"
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* React binding for the `m3e-scale-gesture` Web Component from `@m3e/web/gestures/scale`.
|
|
107
|
+
*
|
|
108
|
+
* This component renders the underlying `<m3e-scale-gesture>` element and exposes its
|
|
109
|
+
* properties, attributes, and events through an idiomatic React interface.
|
|
110
|
+
*
|
|
111
|
+
* Props map directly to element properties, and event handlers receive the
|
|
112
|
+
* native DOM events dispatched by the component. Refs are forwarded to the
|
|
113
|
+
* underlying `<m3e-scale-gesture>` instance for imperative access.
|
|
114
|
+
*
|
|
115
|
+
* See the `m3e-scale-gesture` documentation for full details on behavior, styling,
|
|
116
|
+
* accessibility, and supported events.
|
|
117
|
+
*/
|
|
118
|
+
const M3eScaleGesture = createComponent({
|
|
119
|
+
tagName: "m3e-scale-gesture",
|
|
120
|
+
elementClass: M3eScaleGestureElement,
|
|
121
|
+
react: React,
|
|
122
|
+
events: {
|
|
123
|
+
onGesture: "gesture"
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* React binding for the `m3e-sequence-gesture` Web Component from `@m3e/web/gestures/sequence`.
|
|
129
|
+
*
|
|
130
|
+
* This component renders the underlying `<m3e-sequence-gesture>` element and exposes its
|
|
131
|
+
* properties, attributes, and events through an idiomatic React interface.
|
|
132
|
+
*
|
|
133
|
+
* Props map directly to element properties, and event handlers receive the
|
|
134
|
+
* native DOM events dispatched by the component. Refs are forwarded to the
|
|
135
|
+
* underlying `<m3e-sequence-gesture>` instance for imperative access.
|
|
136
|
+
*
|
|
137
|
+
* See the `m3e-sequence-gesture` documentation for full details on behavior, styling,
|
|
138
|
+
* accessibility, and supported events.
|
|
139
|
+
*/
|
|
140
|
+
const M3eSequenceGesture = createComponent({
|
|
141
|
+
tagName: "m3e-sequence-gesture",
|
|
142
|
+
elementClass: M3eSequenceGestureElement,
|
|
143
|
+
react: React,
|
|
144
|
+
events: {
|
|
145
|
+
onGesture: "gesture"
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* React binding for the `m3e-swipe-gesture` Web Component from `@m3e/web/gestures/swipe`.
|
|
151
|
+
*
|
|
152
|
+
* This component renders the underlying `<m3e-swipe-gesture>` element and exposes its
|
|
153
|
+
* properties, attributes, and events through an idiomatic React interface.
|
|
154
|
+
*
|
|
155
|
+
* Props map directly to element properties, and event handlers receive the
|
|
156
|
+
* native DOM events dispatched by the component. Refs are forwarded to the
|
|
157
|
+
* underlying `<m3e-swipe-gesture>` instance for imperative access.
|
|
158
|
+
*
|
|
159
|
+
* See the `m3e-swipe-gesture` documentation for full details on behavior, styling,
|
|
160
|
+
* accessibility, and supported events.
|
|
161
|
+
*/
|
|
162
|
+
const M3eSwipeGesture = createComponent({
|
|
163
|
+
tagName: "m3e-swipe-gesture",
|
|
164
|
+
elementClass: M3eSwipeGestureElement,
|
|
165
|
+
react: React,
|
|
166
|
+
events: {
|
|
167
|
+
onGesture: "gesture"
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* React binding for the `m3e-tap-gesture` Web Component from `@m3e/web/gestures/tap`.
|
|
173
|
+
*
|
|
174
|
+
* This component renders the underlying `<m3e-tap-gesture>` element and exposes its
|
|
175
|
+
* properties, attributes, and events through an idiomatic React interface.
|
|
176
|
+
*
|
|
177
|
+
* Props map directly to element properties, and event handlers receive the
|
|
178
|
+
* native DOM events dispatched by the component. Refs are forwarded to the
|
|
179
|
+
* underlying `<m3e-tap-gesture>` instance for imperative access.
|
|
180
|
+
*
|
|
181
|
+
* See the `m3e-tap-gesture` documentation for full details on behavior, styling,
|
|
182
|
+
* accessibility, and supported events.
|
|
183
|
+
*/
|
|
184
|
+
const M3eTapGesture = createComponent({
|
|
185
|
+
tagName: "m3e-tap-gesture",
|
|
186
|
+
elementClass: M3eTapGestureElement,
|
|
187
|
+
react: React,
|
|
188
|
+
events: {
|
|
189
|
+
onGesture: "gesture"
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
export { M3eLongPressGesture, M3ePanGesture, M3eRepeatGesture, M3eRotateGesture, M3eScaleGesture, M3eSequenceGesture, M3eSwipeGesture, M3eTapGesture };
|
|
194
|
+
//# sourceMappingURL=gestures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gestures.js","sources":["../../src/gestures/LongPressGesture.ts","../../src/gestures/PanGesture.ts","../../src/gestures/RepeatGesture.ts","../../src/gestures/RotateGesture.ts","../../src/gestures/ScaleGesture.ts","../../src/gestures/SequenceGesture.ts","../../src/gestures/SwipeGesture.ts","../../src/gestures/TapGesture.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent, EventName } from \"@lit/react\";\r\n\r\nimport { M3eLongPressGestureElement, LongPressGestureDetail } from \"@m3e/web/gestures/long-press\";\r\nexport type { LongPressGestureDetail, LongPressGestureOptions } from \"@m3e/web/gestures/long-press\";\r\n\r\n/**\r\n * React binding for the `m3e-long-press-gesture` Web Component from `@m3e/web/gestures/long-press`.\r\n *\r\n * This component renders the underlying `<m3e-long-press-gesture>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-long-press-gesture>` instance for imperative access.\r\n *\r\n * See the `m3e-long-press-gesture` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eLongPressGesture = createComponent({\r\n tagName: \"m3e-long-press-gesture\",\r\n elementClass: M3eLongPressGestureElement,\r\n react: React,\r\n events: {\r\n onGesture: \"gesture\" as EventName<CustomEvent<LongPressGestureDetail>>,\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent, EventName } from \"@lit/react\";\r\n\r\nimport { M3ePanGestureElement, PanGestureDetail } from \"@m3e/web/gestures/pan\";\r\nexport type {\r\n PanGestureDetail,\r\n PanGestureActivationMode,\r\n PanGestureLockAxis,\r\n PanGestureOptions,\r\n} from \"@m3e/web/gestures/pan\";\r\n\r\n/**\r\n * React binding for the `m3e-pan-gesture` Web Component from `@m3e/web/gestures/pan`.\r\n *\r\n * This component renders the underlying `<m3e-pan-gesture>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-pan-gesture>` instance for imperative access.\r\n *\r\n * See the `m3e-pan-gesture` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3ePanGesture = createComponent({\r\n tagName: \"m3e-pan-gesture\",\r\n elementClass: M3ePanGestureElement,\r\n react: React,\r\n events: {\r\n onGesture: \"gesture\" as EventName<CustomEvent<PanGestureDetail>>,\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent, EventName } from \"@lit/react\";\r\n\r\nimport { M3eRepeatGestureElement, RepeatGestureDetail } from \"@m3e/web/gestures/repeat\";\r\nexport type { RepeatGestureDetail, RepeatGestureOptions } from \"@m3e/web/gestures/repeat\";\r\n\r\n/**\r\n * React binding for the `m3e-repeat-gesture` Web Component from `@m3e/web/gestures/repeat`.\r\n *\r\n * This component renders the underlying `<m3e-repeat-gesture>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-repeat-gesture>` instance for imperative access.\r\n *\r\n * See the `m3e-repeat-gesture` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eRepeatGesture = createComponent({\r\n tagName: \"m3e-repeat-gesture\",\r\n elementClass: M3eRepeatGestureElement,\r\n react: React,\r\n events: {\r\n onGesture: \"gesture\" as EventName<CustomEvent<RepeatGestureDetail>>,\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent, EventName } from \"@lit/react\";\r\n\r\nimport { M3eRotateGestureElement, RotateGestureDetail } from \"@m3e/web/gestures/rotate\";\r\nexport type { RotateGestureDetail, RotateGestureOptions } from \"@m3e/web/gestures/rotate\";\r\n\r\n/**\r\n * React binding for the `m3e-rotate-gesture` Web Component from `@m3e/web/gestures/rotate`.\r\n *\r\n * This component renders the underlying `<m3e-rotate-gesture>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-rotate-gesture>` instance for imperative access.\r\n *\r\n * See the `m3e-rotate-gesture` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eRotateGesture = createComponent({\r\n tagName: \"m3e-rotate-gesture\",\r\n elementClass: M3eRotateGestureElement,\r\n react: React,\r\n events: {\r\n onGesture: \"gesture\" as EventName<CustomEvent<RotateGestureDetail>>,\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent, EventName } from \"@lit/react\";\r\n\r\nimport { M3eScaleGestureElement, ScaleGestureDetail } from \"@m3e/web/gestures/scale\";\r\nexport type { ScaleGestureDetail, ScaleGestureOptions } from \"@m3e/web/gestures/scale\";\r\n\r\n/**\r\n * React binding for the `m3e-scale-gesture` Web Component from `@m3e/web/gestures/scale`.\r\n *\r\n * This component renders the underlying `<m3e-scale-gesture>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-scale-gesture>` instance for imperative access.\r\n *\r\n * See the `m3e-scale-gesture` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eScaleGesture = createComponent({\r\n tagName: \"m3e-scale-gesture\",\r\n elementClass: M3eScaleGestureElement,\r\n react: React,\r\n events: {\r\n onGesture: \"gesture\" as EventName<CustomEvent<ScaleGestureDetail>>,\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent, EventName } from \"@lit/react\";\r\n\r\nimport { M3eSequenceGestureElement, SequenceGestureDetail } from \"@m3e/web/gestures/sequence\";\r\nexport type { SequenceGestureDetail, SequenceGestureOptions } from \"@m3e/web/gestures/sequence\";\r\n\r\n/**\r\n * React binding for the `m3e-sequence-gesture` Web Component from `@m3e/web/gestures/sequence`.\r\n *\r\n * This component renders the underlying `<m3e-sequence-gesture>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-sequence-gesture>` instance for imperative access.\r\n *\r\n * See the `m3e-sequence-gesture` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eSequenceGesture = createComponent({\r\n tagName: \"m3e-sequence-gesture\",\r\n elementClass: M3eSequenceGestureElement,\r\n react: React,\r\n events: {\r\n onGesture: \"gesture\" as EventName<CustomEvent<SequenceGestureDetail>>,\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent, EventName } from \"@lit/react\";\r\n\r\nimport { M3eSwipeGestureElement, SwipeGestureDetail } from \"@m3e/web/gestures/swipe\";\r\nexport type { SwipeGestureDetail, SwipeGestureDirection, SwipeGestureOptions } from \"@m3e/web/gestures/swipe\";\r\n\r\n/**\r\n * React binding for the `m3e-swipe-gesture` Web Component from `@m3e/web/gestures/swipe`.\r\n *\r\n * This component renders the underlying `<m3e-swipe-gesture>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-swipe-gesture>` instance for imperative access.\r\n *\r\n * See the `m3e-swipe-gesture` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eSwipeGesture = createComponent({\r\n tagName: \"m3e-swipe-gesture\",\r\n elementClass: M3eSwipeGestureElement,\r\n react: React,\r\n events: {\r\n onGesture: \"gesture\" as EventName<CustomEvent<SwipeGestureDetail>>,\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent, EventName } from \"@lit/react\";\r\n\r\nimport { M3eTapGestureElement, TapGestureDetail } from \"@m3e/web/gestures/tap\";\r\nexport type { TapGestureDetail, TapGestureOptions } from \"@m3e/web/gestures/tap\";\r\n\r\n/**\r\n * React binding for the `m3e-tap-gesture` Web Component from `@m3e/web/gestures/tap`.\r\n *\r\n * This component renders the underlying `<m3e-tap-gesture>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-tap-gesture>` instance for imperative access.\r\n *\r\n * See the `m3e-tap-gesture` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eTapGesture = createComponent({\r\n tagName: \"m3e-tap-gesture\",\r\n elementClass: M3eTapGestureElement,\r\n react: React,\r\n events: {\r\n onGesture: \"gesture\" as EventName<CustomEvent<TapGestureDetail>>,\r\n },\r\n});\r\n"],"names":["M3eLongPressGesture","createComponent","tagName","elementClass","M3eLongPressGestureElement","react","React","events","onGesture","M3ePanGesture","M3ePanGestureElement","M3eRepeatGesture","M3eRepeatGestureElement","M3eRotateGesture","M3eRotateGestureElement","M3eScaleGesture","M3eScaleGestureElement","M3eSequenceGesture","M3eSequenceGestureElement","M3eSwipeGesture","M3eSwipeGestureElement","M3eTapGesture","M3eTapGestureElement"],"mappings":";;;;;;;;;;;;;;;;AAMA;;;;;;;;;;;;AAYG;AACI,MAAMA,mBAAmB,GAAGC,eAAe,CAAC;AACjDC,EAAAA,OAAO,EAAE,wBAAwB;AACjCC,EAAAA,YAAY,EAAEC,0BAA0B;AACxCC,EAAAA,KAAK,EAAEC,KAAK;AACZC,EAAAA,MAAM,EAAE;AACNC,IAAAA,SAAS,EAAE;AACZ;AACF,CAAA;;ACfD;;;;;;;;;;;;AAYG;AACI,MAAMC,aAAa,GAAGR,eAAe,CAAC;AAC3CC,EAAAA,OAAO,EAAE,iBAAiB;AAC1BC,EAAAA,YAAY,EAAEO,oBAAoB;AAClCL,EAAAA,KAAK,EAAEC,KAAK;AACZC,EAAAA,MAAM,EAAE;AACNC,IAAAA,SAAS,EAAE;AACZ;AACF,CAAA;;ACzBD;;;;;;;;;;;;AAYG;AACI,MAAMG,gBAAgB,GAAGV,eAAe,CAAC;AAC9CC,EAAAA,OAAO,EAAE,oBAAoB;AAC7BC,EAAAA,YAAY,EAAES,uBAAuB;AACrCP,EAAAA,KAAK,EAAEC,KAAK;AACZC,EAAAA,MAAM,EAAE;AACNC,IAAAA,SAAS,EAAE;AACZ;AACF,CAAA;;ACpBD;;;;;;;;;;;;AAYG;AACI,MAAMK,gBAAgB,GAAGZ,eAAe,CAAC;AAC9CC,EAAAA,OAAO,EAAE,oBAAoB;AAC7BC,EAAAA,YAAY,EAAEW,uBAAuB;AACrCT,EAAAA,KAAK,EAAEC,KAAK;AACZC,EAAAA,MAAM,EAAE;AACNC,IAAAA,SAAS,EAAE;AACZ;AACF,CAAA;;ACpBD;;;;;;;;;;;;AAYG;AACI,MAAMO,eAAe,GAAGd,eAAe,CAAC;AAC7CC,EAAAA,OAAO,EAAE,mBAAmB;AAC5BC,EAAAA,YAAY,EAAEa,sBAAsB;AACpCX,EAAAA,KAAK,EAAEC,KAAK;AACZC,EAAAA,MAAM,EAAE;AACNC,IAAAA,SAAS,EAAE;AACZ;AACF,CAAA;;ACpBD;;;;;;;;;;;;AAYG;AACI,MAAMS,kBAAkB,GAAGhB,eAAe,CAAC;AAChDC,EAAAA,OAAO,EAAE,sBAAsB;AAC/BC,EAAAA,YAAY,EAAEe,yBAAyB;AACvCb,EAAAA,KAAK,EAAEC,KAAK;AACZC,EAAAA,MAAM,EAAE;AACNC,IAAAA,SAAS,EAAE;AACZ;AACF,CAAA;;ACpBD;;;;;;;;;;;;AAYG;AACI,MAAMW,eAAe,GAAGlB,eAAe,CAAC;AAC7CC,EAAAA,OAAO,EAAE,mBAAmB;AAC5BC,EAAAA,YAAY,EAAEiB,sBAAsB;AACpCf,EAAAA,KAAK,EAAEC,KAAK;AACZC,EAAAA,MAAM,EAAE;AACNC,IAAAA,SAAS,EAAE;AACZ;AACF,CAAA;;ACpBD;;;;;;;;;;;;AAYG;AACI,MAAMa,aAAa,GAAGpB,eAAe,CAAC;AAC3CC,EAAAA,OAAO,EAAE,iBAAiB;AAC1BC,EAAAA,YAAY,EAAEmB,oBAAoB;AAClCjB,EAAAA,KAAK,EAAEC,KAAK;AACZC,EAAAA,MAAM,EAAE;AACNC,IAAAA,SAAS,EAAE;AACZ;AACF,CAAA;;;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
* Copyright (c) 2025–2026 matraic
|
|
4
|
+
* See LICENSE file in the project root for full license text.
|
|
5
|
+
*/
|
|
6
|
+
import e from"react";import{createComponent as t}from"@lit/react";import{M3eLongPressGestureElement as s}from"@m3e/web/gestures/long-press";import{M3ePanGestureElement as r}from"@m3e/web/gestures/pan";import{M3eRepeatGestureElement as m}from"@m3e/web/gestures/repeat";import{M3eRotateGestureElement as a}from"@m3e/web/gestures/rotate";import{M3eScaleGestureElement as g}from"@m3e/web/gestures/scale";import{M3eSequenceGestureElement as o}from"@m3e/web/gestures/sequence";import{M3eSwipeGestureElement as u}from"@m3e/web/gestures/swipe";import{M3eTapGestureElement as n}from"@m3e/web/gestures/tap";const l=t({tagName:"m3e-long-press-gesture",elementClass:s,react:e,events:{onGesture:"gesture"}}),p=t({tagName:"m3e-pan-gesture",elementClass:r,react:e,events:{onGesture:"gesture"}}),c=t({tagName:"m3e-repeat-gesture",elementClass:m,react:e,events:{onGesture:"gesture"}}),i=t({tagName:"m3e-rotate-gesture",elementClass:a,react:e,events:{onGesture:"gesture"}}),f=t({tagName:"m3e-scale-gesture",elementClass:g,react:e,events:{onGesture:"gesture"}}),w=t({tagName:"m3e-sequence-gesture",elementClass:o,react:e,events:{onGesture:"gesture"}}),b=t({tagName:"m3e-swipe-gesture",elementClass:u,react:e,events:{onGesture:"gesture"}}),v=t({tagName:"m3e-tap-gesture",elementClass:n,react:e,events:{onGesture:"gesture"}});export{l as M3eLongPressGesture,p as M3ePanGesture,c as M3eRepeatGesture,i as M3eRotateGesture,f as M3eScaleGesture,w as M3eSequenceGesture,b as M3eSwipeGesture,v as M3eTapGesture};
|
|
7
|
+
//# sourceMappingURL=gestures.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gestures.min.js","sources":["../../src/gestures/LongPressGesture.ts","../../src/gestures/PanGesture.ts","../../src/gestures/RepeatGesture.ts","../../src/gestures/RotateGesture.ts","../../src/gestures/ScaleGesture.ts","../../src/gestures/SequenceGesture.ts","../../src/gestures/SwipeGesture.ts","../../src/gestures/TapGesture.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent, EventName } from \"@lit/react\";\r\n\r\nimport { M3eLongPressGestureElement, LongPressGestureDetail } from \"@m3e/web/gestures/long-press\";\r\nexport type { LongPressGestureDetail, LongPressGestureOptions } from \"@m3e/web/gestures/long-press\";\r\n\r\n/**\r\n * React binding for the `m3e-long-press-gesture` Web Component from `@m3e/web/gestures/long-press`.\r\n *\r\n * This component renders the underlying `<m3e-long-press-gesture>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-long-press-gesture>` instance for imperative access.\r\n *\r\n * See the `m3e-long-press-gesture` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eLongPressGesture = createComponent({\r\n tagName: \"m3e-long-press-gesture\",\r\n elementClass: M3eLongPressGestureElement,\r\n react: React,\r\n events: {\r\n onGesture: \"gesture\" as EventName<CustomEvent<LongPressGestureDetail>>,\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent, EventName } from \"@lit/react\";\r\n\r\nimport { M3ePanGestureElement, PanGestureDetail } from \"@m3e/web/gestures/pan\";\r\nexport type {\r\n PanGestureDetail,\r\n PanGestureActivationMode,\r\n PanGestureLockAxis,\r\n PanGestureOptions,\r\n} from \"@m3e/web/gestures/pan\";\r\n\r\n/**\r\n * React binding for the `m3e-pan-gesture` Web Component from `@m3e/web/gestures/pan`.\r\n *\r\n * This component renders the underlying `<m3e-pan-gesture>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-pan-gesture>` instance for imperative access.\r\n *\r\n * See the `m3e-pan-gesture` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3ePanGesture = createComponent({\r\n tagName: \"m3e-pan-gesture\",\r\n elementClass: M3ePanGestureElement,\r\n react: React,\r\n events: {\r\n onGesture: \"gesture\" as EventName<CustomEvent<PanGestureDetail>>,\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent, EventName } from \"@lit/react\";\r\n\r\nimport { M3eRepeatGestureElement, RepeatGestureDetail } from \"@m3e/web/gestures/repeat\";\r\nexport type { RepeatGestureDetail, RepeatGestureOptions } from \"@m3e/web/gestures/repeat\";\r\n\r\n/**\r\n * React binding for the `m3e-repeat-gesture` Web Component from `@m3e/web/gestures/repeat`.\r\n *\r\n * This component renders the underlying `<m3e-repeat-gesture>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-repeat-gesture>` instance for imperative access.\r\n *\r\n * See the `m3e-repeat-gesture` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eRepeatGesture = createComponent({\r\n tagName: \"m3e-repeat-gesture\",\r\n elementClass: M3eRepeatGestureElement,\r\n react: React,\r\n events: {\r\n onGesture: \"gesture\" as EventName<CustomEvent<RepeatGestureDetail>>,\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent, EventName } from \"@lit/react\";\r\n\r\nimport { M3eRotateGestureElement, RotateGestureDetail } from \"@m3e/web/gestures/rotate\";\r\nexport type { RotateGestureDetail, RotateGestureOptions } from \"@m3e/web/gestures/rotate\";\r\n\r\n/**\r\n * React binding for the `m3e-rotate-gesture` Web Component from `@m3e/web/gestures/rotate`.\r\n *\r\n * This component renders the underlying `<m3e-rotate-gesture>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-rotate-gesture>` instance for imperative access.\r\n *\r\n * See the `m3e-rotate-gesture` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eRotateGesture = createComponent({\r\n tagName: \"m3e-rotate-gesture\",\r\n elementClass: M3eRotateGestureElement,\r\n react: React,\r\n events: {\r\n onGesture: \"gesture\" as EventName<CustomEvent<RotateGestureDetail>>,\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent, EventName } from \"@lit/react\";\r\n\r\nimport { M3eScaleGestureElement, ScaleGestureDetail } from \"@m3e/web/gestures/scale\";\r\nexport type { ScaleGestureDetail, ScaleGestureOptions } from \"@m3e/web/gestures/scale\";\r\n\r\n/**\r\n * React binding for the `m3e-scale-gesture` Web Component from `@m3e/web/gestures/scale`.\r\n *\r\n * This component renders the underlying `<m3e-scale-gesture>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-scale-gesture>` instance for imperative access.\r\n *\r\n * See the `m3e-scale-gesture` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eScaleGesture = createComponent({\r\n tagName: \"m3e-scale-gesture\",\r\n elementClass: M3eScaleGestureElement,\r\n react: React,\r\n events: {\r\n onGesture: \"gesture\" as EventName<CustomEvent<ScaleGestureDetail>>,\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent, EventName } from \"@lit/react\";\r\n\r\nimport { M3eSequenceGestureElement, SequenceGestureDetail } from \"@m3e/web/gestures/sequence\";\r\nexport type { SequenceGestureDetail, SequenceGestureOptions } from \"@m3e/web/gestures/sequence\";\r\n\r\n/**\r\n * React binding for the `m3e-sequence-gesture` Web Component from `@m3e/web/gestures/sequence`.\r\n *\r\n * This component renders the underlying `<m3e-sequence-gesture>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-sequence-gesture>` instance for imperative access.\r\n *\r\n * See the `m3e-sequence-gesture` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eSequenceGesture = createComponent({\r\n tagName: \"m3e-sequence-gesture\",\r\n elementClass: M3eSequenceGestureElement,\r\n react: React,\r\n events: {\r\n onGesture: \"gesture\" as EventName<CustomEvent<SequenceGestureDetail>>,\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent, EventName } from \"@lit/react\";\r\n\r\nimport { M3eSwipeGestureElement, SwipeGestureDetail } from \"@m3e/web/gestures/swipe\";\r\nexport type { SwipeGestureDetail, SwipeGestureDirection, SwipeGestureOptions } from \"@m3e/web/gestures/swipe\";\r\n\r\n/**\r\n * React binding for the `m3e-swipe-gesture` Web Component from `@m3e/web/gestures/swipe`.\r\n *\r\n * This component renders the underlying `<m3e-swipe-gesture>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-swipe-gesture>` instance for imperative access.\r\n *\r\n * See the `m3e-swipe-gesture` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eSwipeGesture = createComponent({\r\n tagName: \"m3e-swipe-gesture\",\r\n elementClass: M3eSwipeGestureElement,\r\n react: React,\r\n events: {\r\n onGesture: \"gesture\" as EventName<CustomEvent<SwipeGestureDetail>>,\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent, EventName } from \"@lit/react\";\r\n\r\nimport { M3eTapGestureElement, TapGestureDetail } from \"@m3e/web/gestures/tap\";\r\nexport type { TapGestureDetail, TapGestureOptions } from \"@m3e/web/gestures/tap\";\r\n\r\n/**\r\n * React binding for the `m3e-tap-gesture` Web Component from `@m3e/web/gestures/tap`.\r\n *\r\n * This component renders the underlying `<m3e-tap-gesture>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-tap-gesture>` instance for imperative access.\r\n *\r\n * See the `m3e-tap-gesture` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eTapGesture = createComponent({\r\n tagName: \"m3e-tap-gesture\",\r\n elementClass: M3eTapGestureElement,\r\n react: React,\r\n events: {\r\n onGesture: \"gesture\" as EventName<CustomEvent<TapGestureDetail>>,\r\n },\r\n});\r\n"],"names":["M3eLongPressGesture","createComponent","tagName","elementClass","M3eLongPressGestureElement","react","React","events","onGesture","M3ePanGesture","M3ePanGestureElement","M3eRepeatGesture","M3eRepeatGestureElement","M3eRotateGesture","M3eRotateGestureElement","M3eScaleGesture","M3eScaleGestureElement","M3eSequenceGesture","M3eSequenceGestureElement","M3eSwipeGesture","M3eSwipeGestureElement","M3eTapGesture","M3eTapGestureElement"],"mappings":";;;;;qlBAmBO,MAAMA,EAAsBC,EAAgB,CACjDC,QAAS,yBACTC,aAAcC,EACdC,MAAOC,EACPC,OAAQ,CACNC,UAAW,aCAFC,EAAgBR,EAAgB,CAC3CC,QAAS,kBACTC,aAAcO,EACdL,MAAOC,EACPC,OAAQ,CACNC,UAAW,aCVFG,EAAmBV,EAAgB,CAC9CC,QAAS,qBACTC,aAAcS,EACdP,MAAOC,EACPC,OAAQ,CACNC,UAAW,aCLFK,EAAmBZ,EAAgB,CAC9CC,QAAS,qBACTC,aAAcW,EACdT,MAAOC,EACPC,OAAQ,CACNC,UAAW,aCLFO,EAAkBd,EAAgB,CAC7CC,QAAS,oBACTC,aAAca,EACdX,MAAOC,EACPC,OAAQ,CACNC,UAAW,aCLFS,EAAqBhB,EAAgB,CAChDC,QAAS,uBACTC,aAAce,EACdb,MAAOC,EACPC,OAAQ,CACNC,UAAW,aCLFW,EAAkBlB,EAAgB,CAC7CC,QAAS,oBACTC,aAAciB,EACdf,MAAOC,EACPC,OAAQ,CACNC,UAAW,aCLFa,EAAgBpB,EAAgB,CAC3CC,QAAS,kBACTC,aAAcmB,EACdjB,MAAOC,EACPC,OAAQ,CACNC,UAAW"}
|
package/dist/src/all.d.ts
CHANGED
package/dist/src/all.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"all.d.ts","sourceRoot":"","sources":["../../src/all.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"all.d.ts","sourceRoot":"","sources":["../../src/all.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EventName } from "@lit/react";
|
|
2
|
+
import { M3eLongPressGestureElement, LongPressGestureDetail } from "@m3e/web/gestures/long-press";
|
|
3
|
+
export type { LongPressGestureDetail, LongPressGestureOptions } from "@m3e/web/gestures/long-press";
|
|
4
|
+
/**
|
|
5
|
+
* React binding for the `m3e-long-press-gesture` Web Component from `@m3e/web/gestures/long-press`.
|
|
6
|
+
*
|
|
7
|
+
* This component renders the underlying `<m3e-long-press-gesture>` element and exposes its
|
|
8
|
+
* properties, attributes, and events through an idiomatic React interface.
|
|
9
|
+
*
|
|
10
|
+
* Props map directly to element properties, and event handlers receive the
|
|
11
|
+
* native DOM events dispatched by the component. Refs are forwarded to the
|
|
12
|
+
* underlying `<m3e-long-press-gesture>` instance for imperative access.
|
|
13
|
+
*
|
|
14
|
+
* See the `m3e-long-press-gesture` documentation for full details on behavior, styling,
|
|
15
|
+
* accessibility, and supported events.
|
|
16
|
+
*/
|
|
17
|
+
export declare const M3eLongPressGesture: import("@lit/react").ReactWebComponent<M3eLongPressGestureElement, {
|
|
18
|
+
onGesture: EventName<CustomEvent<LongPressGestureDetail>>;
|
|
19
|
+
}>;
|
|
20
|
+
//# sourceMappingURL=LongPressGesture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LongPressGesture.d.ts","sourceRoot":"","sources":["../../../src/gestures/LongPressGesture.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,SAAS,EAAE,MAAM,YAAY,CAAC;AAExD,OAAO,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAClG,YAAY,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEpG;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,mBAAmB;eAKJ,SAAS,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAAC;EAExE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EventName } from "@lit/react";
|
|
2
|
+
import { M3ePanGestureElement, PanGestureDetail } from "@m3e/web/gestures/pan";
|
|
3
|
+
export type { PanGestureDetail, PanGestureActivationMode, PanGestureLockAxis, PanGestureOptions, } from "@m3e/web/gestures/pan";
|
|
4
|
+
/**
|
|
5
|
+
* React binding for the `m3e-pan-gesture` Web Component from `@m3e/web/gestures/pan`.
|
|
6
|
+
*
|
|
7
|
+
* This component renders the underlying `<m3e-pan-gesture>` element and exposes its
|
|
8
|
+
* properties, attributes, and events through an idiomatic React interface.
|
|
9
|
+
*
|
|
10
|
+
* Props map directly to element properties, and event handlers receive the
|
|
11
|
+
* native DOM events dispatched by the component. Refs are forwarded to the
|
|
12
|
+
* underlying `<m3e-pan-gesture>` instance for imperative access.
|
|
13
|
+
*
|
|
14
|
+
* See the `m3e-pan-gesture` documentation for full details on behavior, styling,
|
|
15
|
+
* accessibility, and supported events.
|
|
16
|
+
*/
|
|
17
|
+
export declare const M3ePanGesture: import("@lit/react").ReactWebComponent<M3ePanGestureElement, {
|
|
18
|
+
onGesture: EventName<CustomEvent<PanGestureDetail>>;
|
|
19
|
+
}>;
|
|
20
|
+
//# sourceMappingURL=PanGesture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PanGesture.d.ts","sourceRoot":"","sources":["../../../src/gestures/PanGesture.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,SAAS,EAAE,MAAM,YAAY,CAAC;AAExD,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC/E,YAAY,EACV,gBAAgB,EAChB,wBAAwB,EACxB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,uBAAuB,CAAC;AAE/B;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,aAAa;eAKE,SAAS,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;EAElE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EventName } from "@lit/react";
|
|
2
|
+
import { M3eRepeatGestureElement, RepeatGestureDetail } from "@m3e/web/gestures/repeat";
|
|
3
|
+
export type { RepeatGestureDetail, RepeatGestureOptions } from "@m3e/web/gestures/repeat";
|
|
4
|
+
/**
|
|
5
|
+
* React binding for the `m3e-repeat-gesture` Web Component from `@m3e/web/gestures/repeat`.
|
|
6
|
+
*
|
|
7
|
+
* This component renders the underlying `<m3e-repeat-gesture>` element and exposes its
|
|
8
|
+
* properties, attributes, and events through an idiomatic React interface.
|
|
9
|
+
*
|
|
10
|
+
* Props map directly to element properties, and event handlers receive the
|
|
11
|
+
* native DOM events dispatched by the component. Refs are forwarded to the
|
|
12
|
+
* underlying `<m3e-repeat-gesture>` instance for imperative access.
|
|
13
|
+
*
|
|
14
|
+
* See the `m3e-repeat-gesture` documentation for full details on behavior, styling,
|
|
15
|
+
* accessibility, and supported events.
|
|
16
|
+
*/
|
|
17
|
+
export declare const M3eRepeatGesture: import("@lit/react").ReactWebComponent<M3eRepeatGestureElement, {
|
|
18
|
+
onGesture: EventName<CustomEvent<RepeatGestureDetail>>;
|
|
19
|
+
}>;
|
|
20
|
+
//# sourceMappingURL=RepeatGesture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RepeatGesture.d.ts","sourceRoot":"","sources":["../../../src/gestures/RepeatGesture.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,SAAS,EAAE,MAAM,YAAY,CAAC;AAExD,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACxF,YAAY,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAE1F;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gBAAgB;eAKD,SAAS,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC;EAErE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EventName } from "@lit/react";
|
|
2
|
+
import { M3eRotateGestureElement, RotateGestureDetail } from "@m3e/web/gestures/rotate";
|
|
3
|
+
export type { RotateGestureDetail, RotateGestureOptions } from "@m3e/web/gestures/rotate";
|
|
4
|
+
/**
|
|
5
|
+
* React binding for the `m3e-rotate-gesture` Web Component from `@m3e/web/gestures/rotate`.
|
|
6
|
+
*
|
|
7
|
+
* This component renders the underlying `<m3e-rotate-gesture>` element and exposes its
|
|
8
|
+
* properties, attributes, and events through an idiomatic React interface.
|
|
9
|
+
*
|
|
10
|
+
* Props map directly to element properties, and event handlers receive the
|
|
11
|
+
* native DOM events dispatched by the component. Refs are forwarded to the
|
|
12
|
+
* underlying `<m3e-rotate-gesture>` instance for imperative access.
|
|
13
|
+
*
|
|
14
|
+
* See the `m3e-rotate-gesture` documentation for full details on behavior, styling,
|
|
15
|
+
* accessibility, and supported events.
|
|
16
|
+
*/
|
|
17
|
+
export declare const M3eRotateGesture: import("@lit/react").ReactWebComponent<M3eRotateGestureElement, {
|
|
18
|
+
onGesture: EventName<CustomEvent<RotateGestureDetail>>;
|
|
19
|
+
}>;
|
|
20
|
+
//# sourceMappingURL=RotateGesture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RotateGesture.d.ts","sourceRoot":"","sources":["../../../src/gestures/RotateGesture.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,SAAS,EAAE,MAAM,YAAY,CAAC;AAExD,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACxF,YAAY,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAE1F;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gBAAgB;eAKD,SAAS,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC;EAErE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EventName } from "@lit/react";
|
|
2
|
+
import { M3eScaleGestureElement, ScaleGestureDetail } from "@m3e/web/gestures/scale";
|
|
3
|
+
export type { ScaleGestureDetail, ScaleGestureOptions } from "@m3e/web/gestures/scale";
|
|
4
|
+
/**
|
|
5
|
+
* React binding for the `m3e-scale-gesture` Web Component from `@m3e/web/gestures/scale`.
|
|
6
|
+
*
|
|
7
|
+
* This component renders the underlying `<m3e-scale-gesture>` element and exposes its
|
|
8
|
+
* properties, attributes, and events through an idiomatic React interface.
|
|
9
|
+
*
|
|
10
|
+
* Props map directly to element properties, and event handlers receive the
|
|
11
|
+
* native DOM events dispatched by the component. Refs are forwarded to the
|
|
12
|
+
* underlying `<m3e-scale-gesture>` instance for imperative access.
|
|
13
|
+
*
|
|
14
|
+
* See the `m3e-scale-gesture` documentation for full details on behavior, styling,
|
|
15
|
+
* accessibility, and supported events.
|
|
16
|
+
*/
|
|
17
|
+
export declare const M3eScaleGesture: import("@lit/react").ReactWebComponent<M3eScaleGestureElement, {
|
|
18
|
+
onGesture: EventName<CustomEvent<ScaleGestureDetail>>;
|
|
19
|
+
}>;
|
|
20
|
+
//# sourceMappingURL=ScaleGesture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScaleGesture.d.ts","sourceRoot":"","sources":["../../../src/gestures/ScaleGesture.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,SAAS,EAAE,MAAM,YAAY,CAAC;AAExD,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACrF,YAAY,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEvF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe;eAKA,SAAS,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;EAEpE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EventName } from "@lit/react";
|
|
2
|
+
import { M3eSequenceGestureElement, SequenceGestureDetail } from "@m3e/web/gestures/sequence";
|
|
3
|
+
export type { SequenceGestureDetail, SequenceGestureOptions } from "@m3e/web/gestures/sequence";
|
|
4
|
+
/**
|
|
5
|
+
* React binding for the `m3e-sequence-gesture` Web Component from `@m3e/web/gestures/sequence`.
|
|
6
|
+
*
|
|
7
|
+
* This component renders the underlying `<m3e-sequence-gesture>` element and exposes its
|
|
8
|
+
* properties, attributes, and events through an idiomatic React interface.
|
|
9
|
+
*
|
|
10
|
+
* Props map directly to element properties, and event handlers receive the
|
|
11
|
+
* native DOM events dispatched by the component. Refs are forwarded to the
|
|
12
|
+
* underlying `<m3e-sequence-gesture>` instance for imperative access.
|
|
13
|
+
*
|
|
14
|
+
* See the `m3e-sequence-gesture` documentation for full details on behavior, styling,
|
|
15
|
+
* accessibility, and supported events.
|
|
16
|
+
*/
|
|
17
|
+
export declare const M3eSequenceGesture: import("@lit/react").ReactWebComponent<M3eSequenceGestureElement, {
|
|
18
|
+
onGesture: EventName<CustomEvent<SequenceGestureDetail>>;
|
|
19
|
+
}>;
|
|
20
|
+
//# sourceMappingURL=SequenceGesture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SequenceGesture.d.ts","sourceRoot":"","sources":["../../../src/gestures/SequenceGesture.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,SAAS,EAAE,MAAM,YAAY,CAAC;AAExD,OAAO,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAC9F,YAAY,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEhG;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,kBAAkB;eAKH,SAAS,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC;EAEvE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EventName } from "@lit/react";
|
|
2
|
+
import { M3eSwipeGestureElement, SwipeGestureDetail } from "@m3e/web/gestures/swipe";
|
|
3
|
+
export type { SwipeGestureDetail, SwipeGestureDirection, SwipeGestureOptions } from "@m3e/web/gestures/swipe";
|
|
4
|
+
/**
|
|
5
|
+
* React binding for the `m3e-swipe-gesture` Web Component from `@m3e/web/gestures/swipe`.
|
|
6
|
+
*
|
|
7
|
+
* This component renders the underlying `<m3e-swipe-gesture>` element and exposes its
|
|
8
|
+
* properties, attributes, and events through an idiomatic React interface.
|
|
9
|
+
*
|
|
10
|
+
* Props map directly to element properties, and event handlers receive the
|
|
11
|
+
* native DOM events dispatched by the component. Refs are forwarded to the
|
|
12
|
+
* underlying `<m3e-swipe-gesture>` instance for imperative access.
|
|
13
|
+
*
|
|
14
|
+
* See the `m3e-swipe-gesture` documentation for full details on behavior, styling,
|
|
15
|
+
* accessibility, and supported events.
|
|
16
|
+
*/
|
|
17
|
+
export declare const M3eSwipeGesture: import("@lit/react").ReactWebComponent<M3eSwipeGestureElement, {
|
|
18
|
+
onGesture: EventName<CustomEvent<SwipeGestureDetail>>;
|
|
19
|
+
}>;
|
|
20
|
+
//# sourceMappingURL=SwipeGesture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SwipeGesture.d.ts","sourceRoot":"","sources":["../../../src/gestures/SwipeGesture.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,SAAS,EAAE,MAAM,YAAY,CAAC;AAExD,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACrF,YAAY,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9G;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe;eAKA,SAAS,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;EAEpE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EventName } from "@lit/react";
|
|
2
|
+
import { M3eTapGestureElement, TapGestureDetail } from "@m3e/web/gestures/tap";
|
|
3
|
+
export type { TapGestureDetail, TapGestureOptions } from "@m3e/web/gestures/tap";
|
|
4
|
+
/**
|
|
5
|
+
* React binding for the `m3e-tap-gesture` Web Component from `@m3e/web/gestures/tap`.
|
|
6
|
+
*
|
|
7
|
+
* This component renders the underlying `<m3e-tap-gesture>` element and exposes its
|
|
8
|
+
* properties, attributes, and events through an idiomatic React interface.
|
|
9
|
+
*
|
|
10
|
+
* Props map directly to element properties, and event handlers receive the
|
|
11
|
+
* native DOM events dispatched by the component. Refs are forwarded to the
|
|
12
|
+
* underlying `<m3e-tap-gesture>` instance for imperative access.
|
|
13
|
+
*
|
|
14
|
+
* See the `m3e-tap-gesture` documentation for full details on behavior, styling,
|
|
15
|
+
* accessibility, and supported events.
|
|
16
|
+
*/
|
|
17
|
+
export declare const M3eTapGesture: import("@lit/react").ReactWebComponent<M3eTapGestureElement, {
|
|
18
|
+
onGesture: EventName<CustomEvent<TapGestureDetail>>;
|
|
19
|
+
}>;
|
|
20
|
+
//# sourceMappingURL=TapGesture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TapGesture.d.ts","sourceRoot":"","sources":["../../../src/gestures/TapGesture.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,SAAS,EAAE,MAAM,YAAY,CAAC;AAExD,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC/E,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAEjF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,aAAa;eAKE,SAAS,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;EAElE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./LongPressGesture";
|
|
2
|
+
export * from "./PanGesture";
|
|
3
|
+
export * from "./RepeatGesture";
|
|
4
|
+
export * from "./RotateGesture";
|
|
5
|
+
export * from "./ScaleGesture";
|
|
6
|
+
export * from "./SequenceGesture";
|
|
7
|
+
export * from "./SwipeGesture";
|
|
8
|
+
export * from "./TapGesture";
|
|
9
|
+
export type { GestureInputButton, GestureInputFilter, GestureInputKind, GestureOptions, PointerType, } from "@m3e/web/gestures";
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/gestures/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAE7B,YAAY,EACV,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,WAAW,GACZ,MAAM,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m3e/react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"description": "React bindings for M3E Web Components",
|
|
5
5
|
"author": "matraic <matraic@yahoo.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -107,6 +107,10 @@
|
|
|
107
107
|
"types": "./dist/src/form-field/index.d.ts",
|
|
108
108
|
"default": "./dist/form-field.js"
|
|
109
109
|
},
|
|
110
|
+
"./gestures": {
|
|
111
|
+
"types": "./dist/src/gestures/index.d.ts",
|
|
112
|
+
"default": "./dist/gestures.js"
|
|
113
|
+
},
|
|
110
114
|
"./heading": {
|
|
111
115
|
"types": "./dist/src/heading/index.d.ts",
|
|
112
116
|
"default": "./dist/heading.js"
|
|
@@ -252,7 +256,7 @@
|
|
|
252
256
|
},
|
|
253
257
|
"peerDependencies": {
|
|
254
258
|
"@lit/react": "^1.0.8",
|
|
255
|
-
"@m3e/web": "^2.
|
|
259
|
+
"@m3e/web": "^2.8.0",
|
|
256
260
|
"lit": "^3.3.0",
|
|
257
261
|
"react": ">=18"
|
|
258
262
|
}
|