@uibit/effect-trigger 0.1.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/LICENSE +21 -0
- package/README.md +27 -0
- package/custom-elements.json +588 -0
- package/dist/effect-trigger.d.ts +65 -0
- package/dist/effect-trigger.d.ts.map +1 -0
- package/dist/effect-trigger.js +535 -0
- package/dist/effect-trigger.js.map +1 -0
- package/dist/frameworks/angular/index.ts +87 -0
- package/dist/frameworks/astro/index.d.ts +10 -0
- package/dist/frameworks/nuxt/index.ts +7 -0
- package/dist/frameworks/preact/index.d.ts +24 -0
- package/dist/frameworks/qwik/index.tsx +10 -0
- package/dist/frameworks/react/index.d.ts +29 -0
- package/dist/frameworks/solid/index.d.ts +25 -0
- package/dist/frameworks/stencil/index.d.ts +23 -0
- package/dist/frameworks/svelte/index.svelte +82 -0
- package/dist/frameworks/vue/index.ts +35 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/styles.d.ts +2 -0
- package/dist/styles.d.ts.map +1 -0
- package/dist/styles.js +17 -0
- package/dist/styles.js.map +1 -0
- package/dist/types.d.ts +22 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/package.json +91 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 UIBit Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Effect Trigger
|
|
2
|
+
|
|
3
|
+
[Interactive Demonstration](https://rawlings.github.io/uibit/components/effect-trigger)
|
|
4
|
+
|
|
5
|
+
Effect Trigger is an interactive animation wrapper that orchestrates visual reactions based on user inputs. By separating interactive triggers from animation assets, it allows product teams to add spatial transitions, particle bursts, and motion paths to standard controls, enhancing visual feedback and celebration states.
|
|
6
|
+
|
|
7
|
+
## Value Delivery
|
|
8
|
+
|
|
9
|
+
- **Polished Feedback** – Adds a layer of response to clicks, hovers, or success events, reinforcing user action completion.
|
|
10
|
+
- **Dynamic Physics Paths** – Supports pre-configured movement profiles, including sweeps, bursts, orbits, and gravity-simulated drops, without needing to hand-code complex physics loops.
|
|
11
|
+
- **Design Agility** – Decouples animations from control elements. Any standard markup, icon, or visual asset can serve as the animation payload.
|
|
12
|
+
- **Seamless Integration** – Wraps standard interactive components such as buttons, form fields, and cards to trigger animations automatically.
|
|
13
|
+
|
|
14
|
+
## Ideal Applications
|
|
15
|
+
|
|
16
|
+
- **Reward Configurations** – Celebrating order completions, payment successes, or milestones.
|
|
17
|
+
- **Interactive Button States** – Enhancing key calls-to-action with hover effects or custom visual bursts.
|
|
18
|
+
- **Gamified Elements** – Providing visual rewards for quizzes, loyalty points, or feature discoveries.
|
|
19
|
+
|
|
20
|
+
## Further Information
|
|
21
|
+
|
|
22
|
+
Detailed design guidelines, customizable attributes, and integration examples are available on our documentation site.
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## Changelog
|
|
26
|
+
|
|
27
|
+
Please see the [Changelog](CHANGELOG.md) for version history.
|
|
@@ -0,0 +1,588 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"readme": "",
|
|
4
|
+
"modules": [
|
|
5
|
+
{
|
|
6
|
+
"kind": "javascript-module",
|
|
7
|
+
"path": "src/effect-trigger.ts",
|
|
8
|
+
"declarations": [
|
|
9
|
+
{
|
|
10
|
+
"kind": "class",
|
|
11
|
+
"description": "Trigger visual effects like particles or vortex attractions.",
|
|
12
|
+
"name": "EffectTrigger",
|
|
13
|
+
"members": [
|
|
14
|
+
{
|
|
15
|
+
"kind": "field",
|
|
16
|
+
"name": "_customBehaviors",
|
|
17
|
+
"type": {
|
|
18
|
+
"text": "Map<string, BehaviorFn>"
|
|
19
|
+
},
|
|
20
|
+
"privacy": "private",
|
|
21
|
+
"static": true,
|
|
22
|
+
"default": "new Map()",
|
|
23
|
+
"description": "Registry of custom behaviors"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"kind": "method",
|
|
27
|
+
"name": "registerBehavior",
|
|
28
|
+
"static": true,
|
|
29
|
+
"parameters": [
|
|
30
|
+
{
|
|
31
|
+
"name": "name",
|
|
32
|
+
"type": {
|
|
33
|
+
"text": "string"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "fn",
|
|
38
|
+
"type": {
|
|
39
|
+
"text": "BehaviorFn"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"description": "Register a custom behavior that content authors can use by setting the behavior attribute."
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"kind": "method",
|
|
47
|
+
"name": "getRegisteredBehaviors",
|
|
48
|
+
"static": true,
|
|
49
|
+
"return": {
|
|
50
|
+
"type": {
|
|
51
|
+
"text": "Map<string, BehaviorFn>"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"description": "Get all registered custom behaviors."
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"kind": "field",
|
|
58
|
+
"name": "trigger",
|
|
59
|
+
"type": {
|
|
60
|
+
"text": "EffectTriggerType"
|
|
61
|
+
},
|
|
62
|
+
"default": "'click'",
|
|
63
|
+
"description": "The trigger action to listen for",
|
|
64
|
+
"attribute": "trigger"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"kind": "field",
|
|
68
|
+
"name": "behavior",
|
|
69
|
+
"type": {
|
|
70
|
+
"text": "EffectBehaviorType"
|
|
71
|
+
},
|
|
72
|
+
"default": "'float-displace'",
|
|
73
|
+
"description": "The movement behavior/vector path to execute",
|
|
74
|
+
"attribute": "behavior"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"kind": "field",
|
|
78
|
+
"name": "density",
|
|
79
|
+
"type": {
|
|
80
|
+
"text": "number"
|
|
81
|
+
},
|
|
82
|
+
"default": "1",
|
|
83
|
+
"description": "Number of dynamic asset clones generated for particle-based behaviors",
|
|
84
|
+
"attribute": "density"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"kind": "field",
|
|
88
|
+
"name": "velocity",
|
|
89
|
+
"type": {
|
|
90
|
+
"text": "string"
|
|
91
|
+
},
|
|
92
|
+
"default": "'1s'",
|
|
93
|
+
"description": "Duration/velocity bound of the movement (e.g. \"600ms\", \"2.5s\")",
|
|
94
|
+
"attribute": "velocity"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"kind": "field",
|
|
98
|
+
"name": "randomize",
|
|
99
|
+
"type": {
|
|
100
|
+
"text": "boolean"
|
|
101
|
+
},
|
|
102
|
+
"default": "false",
|
|
103
|
+
"description": "Applies real-time visual variations (scale, drift, rotation) to each clone",
|
|
104
|
+
"attribute": "randomize"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"kind": "field",
|
|
108
|
+
"name": "stagger",
|
|
109
|
+
"type": {
|
|
110
|
+
"text": "string"
|
|
111
|
+
},
|
|
112
|
+
"default": "'0ms'",
|
|
113
|
+
"description": "Stagger delay between spawning each particle (e.g., \"50ms\", \"0.1s\")",
|
|
114
|
+
"attribute": "stagger"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"kind": "field",
|
|
118
|
+
"name": "scaleRange",
|
|
119
|
+
"type": {
|
|
120
|
+
"text": "string"
|
|
121
|
+
},
|
|
122
|
+
"default": "'0.5,1.5'",
|
|
123
|
+
"description": "Min,Max range scale bounds for randomization (e.g., \"0.5,1.5\")",
|
|
124
|
+
"attribute": "scale-range"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"kind": "field",
|
|
128
|
+
"name": "rotationRange",
|
|
129
|
+
"type": {
|
|
130
|
+
"text": "string"
|
|
131
|
+
},
|
|
132
|
+
"default": "'-180,180'",
|
|
133
|
+
"description": "Min,Max range rotation degrees for randomization (e.g., \"-180,180\")",
|
|
134
|
+
"attribute": "rotation-range"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"kind": "field",
|
|
138
|
+
"name": "keyframes",
|
|
139
|
+
"type": {
|
|
140
|
+
"text": "string | undefined"
|
|
141
|
+
},
|
|
142
|
+
"description": "Custom keyframe definition in JSON string format to override behavior",
|
|
143
|
+
"attribute": "keyframes"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"kind": "field",
|
|
147
|
+
"name": "targetSelector",
|
|
148
|
+
"type": {
|
|
149
|
+
"text": "string | undefined"
|
|
150
|
+
},
|
|
151
|
+
"description": "CSS selector of an external element to bind trigger events to",
|
|
152
|
+
"attribute": "target-selector"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"kind": "field",
|
|
156
|
+
"name": "destinationSelector",
|
|
157
|
+
"type": {
|
|
158
|
+
"text": "string | undefined"
|
|
159
|
+
},
|
|
160
|
+
"description": "CSS selector of a destination element to animate particles towards",
|
|
161
|
+
"attribute": "destination-selector"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"kind": "field",
|
|
165
|
+
"name": "_viewport",
|
|
166
|
+
"type": {
|
|
167
|
+
"text": "ViewportController | undefined"
|
|
168
|
+
},
|
|
169
|
+
"privacy": "private"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"kind": "field",
|
|
173
|
+
"name": "_hasIntersections",
|
|
174
|
+
"type": {
|
|
175
|
+
"text": "boolean"
|
|
176
|
+
},
|
|
177
|
+
"privacy": "private",
|
|
178
|
+
"default": "false"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"kind": "field",
|
|
182
|
+
"name": "_boundEventsCleanups",
|
|
183
|
+
"type": {
|
|
184
|
+
"text": "Array<() => void>"
|
|
185
|
+
},
|
|
186
|
+
"privacy": "private",
|
|
187
|
+
"default": "[]"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"kind": "method",
|
|
191
|
+
"name": "_cleanupObserver",
|
|
192
|
+
"privacy": "private"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"kind": "method",
|
|
196
|
+
"name": "_cleanupBoundEvents",
|
|
197
|
+
"privacy": "private"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"kind": "method",
|
|
201
|
+
"name": "_getTriggerElement",
|
|
202
|
+
"privacy": "private",
|
|
203
|
+
"return": {
|
|
204
|
+
"type": {
|
|
205
|
+
"text": "HTMLElement"
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"kind": "method",
|
|
211
|
+
"name": "_getAssetTemplate",
|
|
212
|
+
"privacy": "private",
|
|
213
|
+
"return": {
|
|
214
|
+
"type": {
|
|
215
|
+
"text": "HTMLElement"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"kind": "method",
|
|
221
|
+
"name": "_setupListeners",
|
|
222
|
+
"privacy": "private"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"kind": "method",
|
|
226
|
+
"name": "ignite",
|
|
227
|
+
"parameters": [
|
|
228
|
+
{
|
|
229
|
+
"name": "event",
|
|
230
|
+
"optional": true,
|
|
231
|
+
"type": {
|
|
232
|
+
"text": "Event"
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
"description": "Launch/Ignite the visual effect. Can be called programmatically."
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"kind": "method",
|
|
240
|
+
"name": "_spawnParticle",
|
|
241
|
+
"privacy": "private",
|
|
242
|
+
"parameters": [
|
|
243
|
+
{
|
|
244
|
+
"name": "index",
|
|
245
|
+
"type": {
|
|
246
|
+
"text": "number"
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"name": "triggerEl",
|
|
251
|
+
"type": {
|
|
252
|
+
"text": "HTMLElement"
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"name": "assetEl",
|
|
257
|
+
"type": {
|
|
258
|
+
"text": "HTMLElement"
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"name": "container",
|
|
263
|
+
"type": {
|
|
264
|
+
"text": "HTMLElement"
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"name": "event",
|
|
269
|
+
"optional": true,
|
|
270
|
+
"type": {
|
|
271
|
+
"text": "Event"
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
]
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"kind": "method",
|
|
278
|
+
"name": "_getRandomFromRange",
|
|
279
|
+
"privacy": "private",
|
|
280
|
+
"return": {
|
|
281
|
+
"type": {
|
|
282
|
+
"text": "number"
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
"parameters": [
|
|
286
|
+
{
|
|
287
|
+
"name": "rangeStr",
|
|
288
|
+
"type": {
|
|
289
|
+
"text": "string"
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
]
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"kind": "method",
|
|
296
|
+
"name": "_parseDuration",
|
|
297
|
+
"privacy": "private",
|
|
298
|
+
"return": {
|
|
299
|
+
"type": {
|
|
300
|
+
"text": "number"
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
"parameters": [
|
|
304
|
+
{
|
|
305
|
+
"name": "v",
|
|
306
|
+
"type": {
|
|
307
|
+
"text": "string"
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
]
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"kind": "method",
|
|
314
|
+
"name": "_createClone",
|
|
315
|
+
"privacy": "private",
|
|
316
|
+
"return": {
|
|
317
|
+
"type": {
|
|
318
|
+
"text": "HTMLElement"
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
"parameters": [
|
|
322
|
+
{
|
|
323
|
+
"name": "template",
|
|
324
|
+
"type": {
|
|
325
|
+
"text": "HTMLElement"
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
]
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"kind": "method",
|
|
332
|
+
"name": "_executeBakedBehavior",
|
|
333
|
+
"privacy": "private",
|
|
334
|
+
"parameters": [
|
|
335
|
+
{
|
|
336
|
+
"name": "triggerEl",
|
|
337
|
+
"type": {
|
|
338
|
+
"text": "HTMLElement"
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"name": "clone",
|
|
343
|
+
"type": {
|
|
344
|
+
"text": "HTMLElement"
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "container",
|
|
349
|
+
"type": {
|
|
350
|
+
"text": "HTMLElement"
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"name": "event",
|
|
355
|
+
"optional": true,
|
|
356
|
+
"type": {
|
|
357
|
+
"text": "Event"
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
]
|
|
361
|
+
}
|
|
362
|
+
],
|
|
363
|
+
"events": [
|
|
364
|
+
{
|
|
365
|
+
"type": {
|
|
366
|
+
"text": "{ particle: HTMLElement, index: number, trigger: string }"
|
|
367
|
+
},
|
|
368
|
+
"description": "Fired when a particle is created",
|
|
369
|
+
"name": "uibit-particle-create"
|
|
370
|
+
}
|
|
371
|
+
],
|
|
372
|
+
"attributes": [
|
|
373
|
+
{
|
|
374
|
+
"name": "trigger",
|
|
375
|
+
"type": {
|
|
376
|
+
"text": "EffectTriggerType"
|
|
377
|
+
},
|
|
378
|
+
"default": "'click'",
|
|
379
|
+
"description": "The trigger action to listen for",
|
|
380
|
+
"fieldName": "trigger"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"name": "behavior",
|
|
384
|
+
"type": {
|
|
385
|
+
"text": "EffectBehaviorType"
|
|
386
|
+
},
|
|
387
|
+
"default": "'float-displace'",
|
|
388
|
+
"description": "The movement behavior/vector path to execute",
|
|
389
|
+
"fieldName": "behavior"
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"name": "density",
|
|
393
|
+
"type": {
|
|
394
|
+
"text": "number"
|
|
395
|
+
},
|
|
396
|
+
"default": "1",
|
|
397
|
+
"description": "Number of dynamic asset clones generated for particle-based behaviors",
|
|
398
|
+
"fieldName": "density"
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"name": "velocity",
|
|
402
|
+
"type": {
|
|
403
|
+
"text": "string"
|
|
404
|
+
},
|
|
405
|
+
"default": "'1s'",
|
|
406
|
+
"description": "Duration/velocity bound of the movement (e.g. \"600ms\", \"2.5s\")",
|
|
407
|
+
"fieldName": "velocity"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"name": "randomize",
|
|
411
|
+
"type": {
|
|
412
|
+
"text": "boolean"
|
|
413
|
+
},
|
|
414
|
+
"default": "false",
|
|
415
|
+
"description": "Applies real-time visual variations (scale, drift, rotation) to each clone",
|
|
416
|
+
"fieldName": "randomize"
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"name": "stagger",
|
|
420
|
+
"type": {
|
|
421
|
+
"text": "string"
|
|
422
|
+
},
|
|
423
|
+
"default": "'0ms'",
|
|
424
|
+
"description": "Stagger delay between spawning each particle (e.g., \"50ms\", \"0.1s\")",
|
|
425
|
+
"fieldName": "stagger"
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"name": "scale-range",
|
|
429
|
+
"type": {
|
|
430
|
+
"text": "string"
|
|
431
|
+
},
|
|
432
|
+
"default": "'0.5,1.5'",
|
|
433
|
+
"description": "Min,Max range scale bounds for randomization (e.g., \"0.5,1.5\")",
|
|
434
|
+
"fieldName": "scaleRange"
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"name": "rotation-range",
|
|
438
|
+
"type": {
|
|
439
|
+
"text": "string"
|
|
440
|
+
},
|
|
441
|
+
"default": "'-180,180'",
|
|
442
|
+
"description": "Min,Max range rotation degrees for randomization (e.g., \"-180,180\")",
|
|
443
|
+
"fieldName": "rotationRange"
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"name": "keyframes",
|
|
447
|
+
"type": {
|
|
448
|
+
"text": "string | undefined"
|
|
449
|
+
},
|
|
450
|
+
"description": "Custom keyframe definition in JSON string format to override behavior",
|
|
451
|
+
"fieldName": "keyframes"
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"name": "target-selector",
|
|
455
|
+
"type": {
|
|
456
|
+
"text": "string | undefined"
|
|
457
|
+
},
|
|
458
|
+
"description": "CSS selector of an external element to bind trigger events to",
|
|
459
|
+
"fieldName": "targetSelector"
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"name": "destination-selector",
|
|
463
|
+
"type": {
|
|
464
|
+
"text": "string | undefined"
|
|
465
|
+
},
|
|
466
|
+
"description": "CSS selector of a destination element to animate particles towards",
|
|
467
|
+
"fieldName": "destinationSelector"
|
|
468
|
+
}
|
|
469
|
+
],
|
|
470
|
+
"superclass": {
|
|
471
|
+
"name": "UIBitElement",
|
|
472
|
+
"package": "@uibit/core"
|
|
473
|
+
},
|
|
474
|
+
"tagName": "uibit-effect-trigger",
|
|
475
|
+
"customElement": true
|
|
476
|
+
}
|
|
477
|
+
],
|
|
478
|
+
"exports": [
|
|
479
|
+
{
|
|
480
|
+
"kind": "js",
|
|
481
|
+
"name": "EffectTrigger",
|
|
482
|
+
"declaration": {
|
|
483
|
+
"name": "EffectTrigger",
|
|
484
|
+
"module": "src/effect-trigger.ts"
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"kind": "custom-element-definition",
|
|
489
|
+
"name": "uibit-effect-trigger",
|
|
490
|
+
"declaration": {
|
|
491
|
+
"name": "EffectTrigger",
|
|
492
|
+
"module": "src/effect-trigger.ts"
|
|
493
|
+
}
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"kind": "js",
|
|
497
|
+
"name": "default",
|
|
498
|
+
"declaration": {
|
|
499
|
+
"name": "EffectTrigger",
|
|
500
|
+
"module": "src/effect-trigger.ts"
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
]
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"kind": "javascript-module",
|
|
507
|
+
"path": "src/index.ts",
|
|
508
|
+
"declarations": [],
|
|
509
|
+
"exports": [
|
|
510
|
+
{
|
|
511
|
+
"kind": "js",
|
|
512
|
+
"name": "default",
|
|
513
|
+
"declaration": {
|
|
514
|
+
"name": "default",
|
|
515
|
+
"module": "./effect-trigger"
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"kind": "js",
|
|
520
|
+
"name": "EffectTrigger",
|
|
521
|
+
"declaration": {
|
|
522
|
+
"name": "EffectTrigger",
|
|
523
|
+
"module": "./effect-trigger"
|
|
524
|
+
}
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"kind": "js",
|
|
528
|
+
"name": "EffectTriggerType",
|
|
529
|
+
"declaration": {
|
|
530
|
+
"name": "EffectTriggerType",
|
|
531
|
+
"module": "./types"
|
|
532
|
+
}
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
"kind": "js",
|
|
536
|
+
"name": "EffectBehaviorType",
|
|
537
|
+
"declaration": {
|
|
538
|
+
"name": "EffectBehaviorType",
|
|
539
|
+
"module": "./types"
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
"kind": "js",
|
|
544
|
+
"name": "BehaviorContext",
|
|
545
|
+
"declaration": {
|
|
546
|
+
"name": "BehaviorContext",
|
|
547
|
+
"module": "./types"
|
|
548
|
+
}
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
"kind": "js",
|
|
552
|
+
"name": "BehaviorFn",
|
|
553
|
+
"declaration": {
|
|
554
|
+
"name": "BehaviorFn",
|
|
555
|
+
"module": "./types"
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
]
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"kind": "javascript-module",
|
|
562
|
+
"path": "src/styles.ts",
|
|
563
|
+
"declarations": [
|
|
564
|
+
{
|
|
565
|
+
"kind": "variable",
|
|
566
|
+
"name": "styles",
|
|
567
|
+
"default": "css` :host { display: inline-block; position: relative; } ::slotted([slot=\"trigger\"]) { display: inline-block; } /* Hide the template asset from standard layout */ slot[name=\"asset\"] { display: none !important; } `"
|
|
568
|
+
}
|
|
569
|
+
],
|
|
570
|
+
"exports": [
|
|
571
|
+
{
|
|
572
|
+
"kind": "js",
|
|
573
|
+
"name": "styles",
|
|
574
|
+
"declaration": {
|
|
575
|
+
"name": "styles",
|
|
576
|
+
"module": "src/styles.ts"
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
]
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"kind": "javascript-module",
|
|
583
|
+
"path": "src/types.ts",
|
|
584
|
+
"declarations": [],
|
|
585
|
+
"exports": []
|
|
586
|
+
}
|
|
587
|
+
]
|
|
588
|
+
}
|