@typed/ui 0.13.0 → 1.0.0-beta.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.
Files changed (79) hide show
  1. package/README.md +96 -2
  2. package/dist/HttpRouter.d.ts +13 -0
  3. package/dist/HttpRouter.d.ts.map +1 -0
  4. package/dist/HttpRouter.js +99 -0
  5. package/dist/Link.d.ts +36 -0
  6. package/dist/Link.d.ts.map +1 -0
  7. package/dist/Link.js +45 -0
  8. package/dist/index.d.ts +3 -0
  9. package/dist/index.d.ts.map +1 -0
  10. package/dist/index.js +2 -0
  11. package/package.json +25 -79
  12. package/src/HttpRouter.test.ts +294 -0
  13. package/src/HttpRouter.ts +168 -0
  14. package/src/Link.test.ts +85 -0
  15. package/src/Link.ts +97 -90
  16. package/src/index.ts +2 -40
  17. package/tsconfig.json +6 -0
  18. package/LICENSE +0 -21
  19. package/Link/package.json +0 -6
  20. package/Props/package.json +0 -6
  21. package/dist/cjs/Link.js +0 -76
  22. package/dist/cjs/Link.js.map +0 -1
  23. package/dist/cjs/Props.js +0 -26
  24. package/dist/cjs/Props.js.map +0 -1
  25. package/dist/cjs/dom-properties.js +0 -6
  26. package/dist/cjs/dom-properties.js.map +0 -1
  27. package/dist/cjs/hyperscript.js +0 -484
  28. package/dist/cjs/hyperscript.js.map +0 -1
  29. package/dist/cjs/index.js +0 -39
  30. package/dist/cjs/index.js.map +0 -1
  31. package/dist/cjs/internal/addEventListener.js +0 -19
  32. package/dist/cjs/internal/addEventListener.js.map +0 -1
  33. package/dist/cjs/useClickAway.js +0 -43
  34. package/dist/cjs/useClickAway.js.map +0 -1
  35. package/dist/cjs/usePagination.js +0 -68
  36. package/dist/cjs/usePagination.js.map +0 -1
  37. package/dist/dts/Link.d.ts +0 -26
  38. package/dist/dts/Link.d.ts.map +0 -1
  39. package/dist/dts/Props.d.ts +0 -67
  40. package/dist/dts/Props.d.ts.map +0 -1
  41. package/dist/dts/dom-properties.d.ts +0 -928
  42. package/dist/dts/dom-properties.d.ts.map +0 -1
  43. package/dist/dts/hyperscript.d.ts +0 -461
  44. package/dist/dts/hyperscript.d.ts.map +0 -1
  45. package/dist/dts/index.d.ts +0 -16
  46. package/dist/dts/index.d.ts.map +0 -1
  47. package/dist/dts/internal/addEventListener.d.ts +0 -6
  48. package/dist/dts/internal/addEventListener.d.ts.map +0 -1
  49. package/dist/dts/useClickAway.d.ts +0 -19
  50. package/dist/dts/useClickAway.d.ts.map +0 -1
  51. package/dist/dts/usePagination.d.ts +0 -41
  52. package/dist/dts/usePagination.d.ts.map +0 -1
  53. package/dist/esm/Link.js +0 -52
  54. package/dist/esm/Link.js.map +0 -1
  55. package/dist/esm/Props.js +0 -19
  56. package/dist/esm/Props.js.map +0 -1
  57. package/dist/esm/dom-properties.js +0 -5
  58. package/dist/esm/dom-properties.js.map +0 -1
  59. package/dist/esm/hyperscript.js +0 -470
  60. package/dist/esm/hyperscript.js.map +0 -1
  61. package/dist/esm/index.js +0 -37
  62. package/dist/esm/index.js.map +0 -1
  63. package/dist/esm/internal/addEventListener.js +0 -11
  64. package/dist/esm/internal/addEventListener.js.map +0 -1
  65. package/dist/esm/package.json +0 -4
  66. package/dist/esm/useClickAway.js +0 -36
  67. package/dist/esm/useClickAway.js.map +0 -1
  68. package/dist/esm/usePagination.js +0 -59
  69. package/dist/esm/usePagination.js.map +0 -1
  70. package/dom-properties/package.json +0 -6
  71. package/hyperscript/package.json +0 -6
  72. package/src/Props.ts +0 -104
  73. package/src/dom-properties.ts +0 -1132
  74. package/src/hyperscript.ts +0 -649
  75. package/src/internal/addEventListener.ts +0 -22
  76. package/src/useClickAway.ts +0 -66
  77. package/src/usePagination.ts +0 -122
  78. package/useClickAway/package.json +0 -6
  79. package/usePagination/package.json +0 -6
@@ -1,484 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.colgroup = exports.col = exports.code = exports.cite = exports.caption = exports.canvas = exports.button = exports.br = exports.body = exports.blockquote = exports.bdo = exports.bdi = exports.base = exports.b = exports.audio = exports.aside = exports.article = exports.area = exports.address = exports.abbr = exports.a = void 0;
7
- exports.createHyperscript = createHyperscript;
8
- exports.form = exports.footer = exports.figure = exports.figcaption = exports.fieldset = exports.embed = exports.em = exports.dt = exports.dl = exports.div = exports.dialog = exports.dfn = exports.details = exports.del = exports.dd = exports.datalist = exports.data = void 0;
9
- exports.h = h;
10
- exports.textarea = exports.template = exports.td = exports.tbody = exports.table = exports.sup = exports.summary = exports.sub = exports.style = exports.strong = exports.span = exports.source = exports.small = exports.select = exports.section = exports.script = exports.samp = exports.s = exports.ruby = exports.rt = exports.rp = exports.q = exports.progress = exports.pre = exports.picture = exports.param = exports.p = exports.output = exports.option = exports.optgroup = exports.ol = exports.object = exports.noscript = exports.nav = exports.meter = exports.meta = exports.mark = exports.map = exports.main = exports.link = exports.li = exports.legend = exports.label = exports.kbd = exports.ins = exports.input = exports.img = exports.iframe = exports.i = exports.html = exports.hr = exports.hgroup = exports.header = exports.head = exports.h6 = exports.h5 = exports.h4 = exports.h3 = exports.h2 = exports.h1 = void 0;
11
- exports.wbr = exports.video = exports.ul = exports.u = exports.track = exports.tr = exports.title = exports.time = exports.thead = exports.th = exports.tfoot = void 0;
12
- var _Fx = /*#__PURE__*/require("@typed/fx/Fx");
13
- var _RenderTemplate = /*#__PURE__*/require("@typed/template/RenderTemplate");
14
- /**
15
- * Hyperscript for @typed/template.
16
- * @since 1.0.0
17
- */
18
-
19
- /**
20
- * @since 1.0.0
21
- */
22
- function h(tagName, properties, ...children) {
23
- return (0, _Fx.fromFxEffect)(_RenderTemplate.RenderTemplate.with(render => render(getTemplateStringsArrayFor(tagName), [properties, children])));
24
- }
25
- const templateStringsArray = /*#__PURE__*/new Map();
26
- function getTemplateStringsArrayFor(tagName) {
27
- let template = templateStringsArray.get(tagName);
28
- if (template === undefined) {
29
- template = makeTemplateStringsArrayFor(tagName);
30
- templateStringsArray.set(tagName, template);
31
- }
32
- return template;
33
- }
34
- function makeTemplateStringsArrayFor(tagName) {
35
- const template = [`<${tagName} ...`, `>`, `</${tagName}>`];
36
- return Object.assign(template, {
37
- raw: template
38
- });
39
- }
40
- /**
41
- * @since 1.0.0
42
- */
43
- function createHyperscript(tagName) {
44
- return (properties, ...children) => {
45
- return h(tagName, properties, ...children);
46
- };
47
- }
48
- /**
49
- * @since 1.0.0
50
- */
51
- const a = exports.a = /*#__PURE__*/createHyperscript("a");
52
- /**
53
- * @since 1.0.0
54
- */
55
- const abbr = exports.abbr = /*#__PURE__*/createHyperscript("abbr");
56
- /**
57
- * @since 1.0.0
58
- */
59
- const address = exports.address = /*#__PURE__*/createHyperscript("address");
60
- /**
61
- * @since 1.0.0
62
- */
63
- const area = exports.area = /*#__PURE__*/createHyperscript("area");
64
- /**
65
- * @since 1.0.0
66
- */
67
- const article = exports.article = /*#__PURE__*/createHyperscript("article");
68
- /**
69
- * @since 1.0.0
70
- */
71
- const aside = exports.aside = /*#__PURE__*/createHyperscript("aside");
72
- /**
73
- * @since 1.0.0
74
- */
75
- const audio = exports.audio = /*#__PURE__*/createHyperscript("audio");
76
- /**
77
- * @since 1.0.0
78
- */
79
- const b = exports.b = /*#__PURE__*/createHyperscript("b");
80
- /**
81
- * @since 1.0.0
82
- */
83
- const base = exports.base = /*#__PURE__*/createHyperscript("base");
84
- /**
85
- * @since 1.0.0
86
- */
87
- const bdi = exports.bdi = /*#__PURE__*/createHyperscript("bdi");
88
- /**
89
- * @since 1.0.0
90
- */
91
- const bdo = exports.bdo = /*#__PURE__*/createHyperscript("bdo");
92
- /**
93
- * @since 1.0.0
94
- */
95
- const blockquote = exports.blockquote = /*#__PURE__*/createHyperscript("blockquote");
96
- /**
97
- * @since 1.0.0
98
- */
99
- const body = exports.body = /*#__PURE__*/createHyperscript("body");
100
- /**
101
- * @since 1.0.0
102
- */
103
- const br = exports.br = /*#__PURE__*/createHyperscript("br");
104
- /**
105
- * @since 1.0.0
106
- */
107
- const button = exports.button = /*#__PURE__*/createHyperscript("button");
108
- /**
109
- * @since 1.0.0
110
- */
111
- const canvas = exports.canvas = /*#__PURE__*/createHyperscript("canvas");
112
- /**
113
- * @since 1.0.0
114
- */
115
- const caption = exports.caption = /*#__PURE__*/createHyperscript("caption");
116
- /**
117
- * @since 1.0.0
118
- */
119
- const cite = exports.cite = /*#__PURE__*/createHyperscript("cite");
120
- /**
121
- * @since 1.0.0
122
- */
123
- const code = exports.code = /*#__PURE__*/createHyperscript("code");
124
- /**
125
- * @since 1.0.0
126
- */
127
- const col = exports.col = /*#__PURE__*/createHyperscript("col");
128
- /**
129
- * @since 1.0.0
130
- */
131
- const colgroup = exports.colgroup = /*#__PURE__*/createHyperscript("colgroup");
132
- /**
133
- * @since 1.0.0
134
- */
135
- const data = exports.data = /*#__PURE__*/createHyperscript("data");
136
- /**
137
- * @since 1.0.0
138
- */
139
- const datalist = exports.datalist = /*#__PURE__*/createHyperscript("datalist");
140
- /**
141
- * @since 1.0.0
142
- */
143
- const dd = exports.dd = /*#__PURE__*/createHyperscript("dd");
144
- /**
145
- * @since 1.0.0
146
- */
147
- const del = exports.del = /*#__PURE__*/createHyperscript("del");
148
- /**
149
- * @since 1.0.0
150
- */
151
- const details = exports.details = /*#__PURE__*/createHyperscript("details");
152
- /**
153
- * @since 1.0.0
154
- */
155
- const dfn = exports.dfn = /*#__PURE__*/createHyperscript("dfn");
156
- /**
157
- * @since 1.0.0
158
- */
159
- const dialog = exports.dialog = /*#__PURE__*/createHyperscript("dialog");
160
- /**
161
- * @since 1.0.0
162
- */
163
- const div = exports.div = /*#__PURE__*/createHyperscript("div");
164
- /**
165
- * @since 1.0.0
166
- */
167
- const dl = exports.dl = /*#__PURE__*/createHyperscript("dl");
168
- /**
169
- * @since 1.0.0
170
- */
171
- const dt = exports.dt = /*#__PURE__*/createHyperscript("dt");
172
- /**
173
- * @since 1.0.0
174
- */
175
- const em = exports.em = /*#__PURE__*/createHyperscript("em");
176
- /**
177
- * @since 1.0.0
178
- */
179
- const embed = exports.embed = /*#__PURE__*/createHyperscript("embed");
180
- /**
181
- * @since 1.0.0
182
- */
183
- const fieldset = exports.fieldset = /*#__PURE__*/createHyperscript("fieldset");
184
- /**
185
- * @since 1.0.0
186
- */
187
- const figcaption = exports.figcaption = /*#__PURE__*/createHyperscript("figcaption");
188
- /**
189
- * @since 1.0.0
190
- */
191
- const figure = exports.figure = /*#__PURE__*/createHyperscript("figure");
192
- /**
193
- * @since 1.0.0
194
- */
195
- const footer = exports.footer = /*#__PURE__*/createHyperscript("footer");
196
- /**
197
- * @since 1.0.0
198
- */
199
- const form = exports.form = /*#__PURE__*/createHyperscript("form");
200
- /**
201
- * @since 1.0.0
202
- */
203
- const h1 = exports.h1 = /*#__PURE__*/createHyperscript("h1");
204
- /**
205
- * @since 1.0.0
206
- */
207
- const h2 = exports.h2 = /*#__PURE__*/createHyperscript("h2");
208
- /**
209
- * @since 1.0.0
210
- */
211
- const h3 = exports.h3 = /*#__PURE__*/createHyperscript("h3");
212
- /**
213
- * @since 1.0.0
214
- */
215
- const h4 = exports.h4 = /*#__PURE__*/createHyperscript("h4");
216
- /**
217
- * @since 1.0.0
218
- */
219
- const h5 = exports.h5 = /*#__PURE__*/createHyperscript("h5");
220
- /**
221
- * @since 1.0.0
222
- */
223
- const h6 = exports.h6 = /*#__PURE__*/createHyperscript("h6");
224
- /**
225
- * @since 1.0.0
226
- */
227
- const head = exports.head = /*#__PURE__*/createHyperscript("head");
228
- /**
229
- * @since 1.0.0
230
- */
231
- const header = exports.header = /*#__PURE__*/createHyperscript("header");
232
- /**
233
- * @since 1.0.0
234
- */
235
- const hgroup = exports.hgroup = /*#__PURE__*/createHyperscript("hgroup");
236
- /**
237
- * @since 1.0.0
238
- */
239
- const hr = exports.hr = /*#__PURE__*/createHyperscript("hr");
240
- /**
241
- * @since 1.0.0
242
- */
243
- const html = exports.html = /*#__PURE__*/createHyperscript("html");
244
- /**
245
- * @since 1.0.0
246
- */
247
- const i = exports.i = /*#__PURE__*/createHyperscript("i");
248
- /**
249
- * @since 1.0.0
250
- */
251
- const iframe = exports.iframe = /*#__PURE__*/createHyperscript("iframe");
252
- /**
253
- * @since 1.0.0
254
- */
255
- const img = exports.img = /*#__PURE__*/createHyperscript("img");
256
- /**
257
- * @since 1.0.0
258
- */
259
- const input = exports.input = /*#__PURE__*/createHyperscript("input");
260
- /**
261
- * @since 1.0.0
262
- */
263
- const ins = exports.ins = /*#__PURE__*/createHyperscript("ins");
264
- /**
265
- * @since 1.0.0
266
- */
267
- const kbd = exports.kbd = /*#__PURE__*/createHyperscript("kbd");
268
- /**
269
- * @since 1.0.0
270
- */
271
- const label = exports.label = /*#__PURE__*/createHyperscript("label");
272
- /**
273
- * @since 1.0.0
274
- */
275
- const legend = exports.legend = /*#__PURE__*/createHyperscript("legend");
276
- /**
277
- * @since 1.0.0
278
- */
279
- const li = exports.li = /*#__PURE__*/createHyperscript("li");
280
- /**
281
- * @since 1.0.0
282
- */
283
- const link = exports.link = /*#__PURE__*/createHyperscript("link");
284
- /**
285
- * @since 1.0.0
286
- */
287
- const main = exports.main = /*#__PURE__*/createHyperscript("main");
288
- /**
289
- * @since 1.0.0
290
- */
291
- const map = exports.map = /*#__PURE__*/createHyperscript("map");
292
- /**
293
- * @since 1.0.0
294
- */
295
- const mark = exports.mark = /*#__PURE__*/createHyperscript("mark");
296
- /**
297
- * @since 1.0.0
298
- */
299
- const meta = exports.meta = /*#__PURE__*/createHyperscript("meta");
300
- /**
301
- * @since 1.0.0
302
- */
303
- const meter = exports.meter = /*#__PURE__*/createHyperscript("meter");
304
- /**
305
- * @since 1.0.0
306
- */
307
- const nav = exports.nav = /*#__PURE__*/createHyperscript("nav");
308
- /**
309
- * @since 1.0.0
310
- */
311
- const noscript = exports.noscript = /*#__PURE__*/createHyperscript("noscript");
312
- /**
313
- * @since 1.0.0
314
- */
315
- const object = exports.object = /*#__PURE__*/createHyperscript("object");
316
- /**
317
- * @since 1.0.0
318
- */
319
- const ol = exports.ol = /*#__PURE__*/createHyperscript("ol");
320
- /**
321
- * @since 1.0.0
322
- */
323
- const optgroup = exports.optgroup = /*#__PURE__*/createHyperscript("optgroup");
324
- /**
325
- * @since 1.0.0
326
- */
327
- const option = exports.option = /*#__PURE__*/createHyperscript("option");
328
- /**
329
- * @since 1.0.0
330
- */
331
- const output = exports.output = /*#__PURE__*/createHyperscript("output");
332
- /**
333
- * @since 1.0.0
334
- */
335
- const p = exports.p = /*#__PURE__*/createHyperscript("p");
336
- /**
337
- * @since 1.0.0
338
- */
339
- const param = exports.param = /*#__PURE__*/createHyperscript("param");
340
- /**
341
- * @since 1.0.0
342
- */
343
- const picture = exports.picture = /*#__PURE__*/createHyperscript("picture");
344
- /**
345
- * @since 1.0.0
346
- */
347
- const pre = exports.pre = /*#__PURE__*/createHyperscript("pre");
348
- /**
349
- * @since 1.0.0
350
- */
351
- const progress = exports.progress = /*#__PURE__*/createHyperscript("progress");
352
- /**
353
- * @since 1.0.0
354
- */
355
- const q = exports.q = /*#__PURE__*/createHyperscript("q");
356
- /**
357
- * @since 1.0.0
358
- */
359
- const rp = exports.rp = /*#__PURE__*/createHyperscript("rp");
360
- /**
361
- * @since 1.0.0
362
- */
363
- const rt = exports.rt = /*#__PURE__*/createHyperscript("rt");
364
- /**
365
- * @since 1.0.0
366
- */
367
- const ruby = exports.ruby = /*#__PURE__*/createHyperscript("ruby");
368
- /**
369
- * @since 1.0.0
370
- */
371
- const s = exports.s = /*#__PURE__*/createHyperscript("s");
372
- /**
373
- * @since 1.0.0
374
- */
375
- const samp = exports.samp = /*#__PURE__*/createHyperscript("samp");
376
- /**
377
- * @since 1.0.0
378
- */
379
- const script = exports.script = /*#__PURE__*/createHyperscript("script");
380
- /**
381
- * @since 1.0.0
382
- */
383
- const section = exports.section = /*#__PURE__*/createHyperscript("section");
384
- /**
385
- * @since 1.0.0
386
- */
387
- const select = exports.select = /*#__PURE__*/createHyperscript("select");
388
- /**
389
- * @since 1.0.0
390
- */
391
- const small = exports.small = /*#__PURE__*/createHyperscript("small");
392
- /**
393
- * @since 1.0.0
394
- */
395
- const source = exports.source = /*#__PURE__*/createHyperscript("source");
396
- /**
397
- * @since 1.0.0
398
- */
399
- const span = exports.span = /*#__PURE__*/createHyperscript("span");
400
- /**
401
- * @since 1.0.0
402
- */
403
- const strong = exports.strong = /*#__PURE__*/createHyperscript("strong");
404
- /**
405
- * @since 1.0.0
406
- */
407
- const style = exports.style = /*#__PURE__*/createHyperscript("style");
408
- /**
409
- * @since 1.0.0
410
- */
411
- const sub = exports.sub = /*#__PURE__*/createHyperscript("sub");
412
- /**
413
- * @since 1.0.0
414
- */
415
- const summary = exports.summary = /*#__PURE__*/createHyperscript("summary");
416
- /**
417
- * @since 1.0.0
418
- */
419
- const sup = exports.sup = /*#__PURE__*/createHyperscript("sup");
420
- /**
421
- * @since 1.0.0
422
- */
423
- const table = exports.table = /*#__PURE__*/createHyperscript("table");
424
- /**
425
- * @since 1.0.0
426
- */
427
- const tbody = exports.tbody = /*#__PURE__*/createHyperscript("tbody");
428
- /**
429
- * @since 1.0.0
430
- */
431
- const td = exports.td = /*#__PURE__*/createHyperscript("td");
432
- /**
433
- * @since 1.0.0
434
- */
435
- const template = exports.template = /*#__PURE__*/createHyperscript("template");
436
- /**
437
- * @since 1.0.0
438
- */
439
- const textarea = exports.textarea = /*#__PURE__*/createHyperscript("textarea");
440
- /**
441
- * @since 1.0.0
442
- */
443
- const tfoot = exports.tfoot = /*#__PURE__*/createHyperscript("tfoot");
444
- /**
445
- * @since 1.0.0
446
- */
447
- const th = exports.th = /*#__PURE__*/createHyperscript("th");
448
- /**
449
- * @since 1.0.0
450
- */
451
- const thead = exports.thead = /*#__PURE__*/createHyperscript("thead");
452
- /**
453
- * @since 1.0.0
454
- */
455
- const time = exports.time = /*#__PURE__*/createHyperscript("time");
456
- /**
457
- * @since 1.0.0
458
- */
459
- const title = exports.title = /*#__PURE__*/createHyperscript("title");
460
- /**
461
- * @since 1.0.0
462
- */
463
- const tr = exports.tr = /*#__PURE__*/createHyperscript("tr");
464
- /**
465
- * @since 1.0.0
466
- */
467
- const track = exports.track = /*#__PURE__*/createHyperscript("track");
468
- /**
469
- * @since 1.0.0
470
- */
471
- const u = exports.u = /*#__PURE__*/createHyperscript("u");
472
- /**
473
- * @since 1.0.0
474
- */
475
- const ul = exports.ul = /*#__PURE__*/createHyperscript("ul");
476
- /**
477
- * @since 1.0.0
478
- */
479
- const video = exports.video = /*#__PURE__*/createHyperscript("video");
480
- /**
481
- * @since 1.0.0
482
- */
483
- const wbr = exports.wbr = /*#__PURE__*/createHyperscript("wbr");
484
- //# sourceMappingURL=hyperscript.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hyperscript.js","names":["_Fx","require","_RenderTemplate","h","tagName","properties","children","fromFxEffect","RenderTemplate","with","render","getTemplateStringsArrayFor","templateStringsArray","Map","template","get","undefined","makeTemplateStringsArrayFor","set","Object","assign","raw","createHyperscript","a","exports","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","video","wbr"],"sources":["../../src/hyperscript.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;AAMA,IAAAA,GAAA,gBAAAC,OAAA;AAKA,IAAAC,eAAA,gBAAAD,OAAA;AAXA;;;;;AAeA;;;AAGM,SAAUE,CAACA,CAKfC,OAAgB,EAChBC,UAAiB,EACjB,GAAGC,QAAkB;EAarB,OAAO,IAAAC,gBAAY,EACjBC,8BAAc,CAACC,IAAI,CAAEC,MAAM,IA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A1G,OAAA,CAAA0G,KAAA,gBAAmC5G,iBAAiB,CAAC,OAAO,CAAC;AAE/E;;;AAGO,MAAM6G,GAAG,GAAA3G,OAAA,CAAA2G,GAAA,gBAAiC7G,iBAAiB,CAAC,KAAK,CAAC","ignoreList":[]}
package/dist/cjs/index.js DELETED
@@ -1,39 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _Link = /*#__PURE__*/require("./Link.js");
7
- Object.keys(_Link).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _Link[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function () {
13
- return _Link[key];
14
- }
15
- });
16
- });
17
- var _useClickAway = /*#__PURE__*/require("./useClickAway.js");
18
- Object.keys(_useClickAway).forEach(function (key) {
19
- if (key === "default" || key === "__esModule") return;
20
- if (key in exports && exports[key] === _useClickAway[key]) return;
21
- Object.defineProperty(exports, key, {
22
- enumerable: true,
23
- get: function () {
24
- return _useClickAway[key];
25
- }
26
- });
27
- });
28
- var _usePagination = /*#__PURE__*/require("./usePagination.js");
29
- Object.keys(_usePagination).forEach(function (key) {
30
- if (key === "default" || key === "__esModule") return;
31
- if (key in exports && exports[key] === _usePagination[key]) return;
32
- Object.defineProperty(exports, key, {
33
- enumerable: true,
34
- get: function () {
35
- return _usePagination[key];
36
- }
37
- });
38
- });
39
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["_Link","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_useClickAway","_usePagination"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;AA6BA,IAAAA,KAAA,gBAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,KAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,KAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,KAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AAKA,IAAAK,aAAA,gBAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,aAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,aAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,aAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AAKA,IAAAM,cAAA,gBAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,cAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,cAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,cAAA,CAAAN,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
@@ -1,19 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.addEventListeners = addEventListeners;
7
- var Fx = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@typed/fx/Fx"));
8
- var Effect = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("effect/Effect"));
9
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
10
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
11
- function addEventListeners(target, ...events) {
12
- return Fx.withEmitter(emitter => {
13
- events.forEach(event => target.addEventListener(event, emitter.succeed));
14
- return Effect.addFinalizer(() => Effect.sync(() => {
15
- events.forEach(event => target.addEventListener(event, emitter.succeed));
16
- }));
17
- });
18
- }
19
- //# sourceMappingURL=addEventListener.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"addEventListener.js","names":["Fx","_interopRequireWildcard","require","Effect","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","addEventListeners","target","events","withEmitter","emitter","forEach","event","addEventListener","succeed","addFinalizer","sync"],"sources":["../../../src/internal/addEventListener.ts"],"sourcesContent":[null],"mappings":";;;;;;AACA,IAAAA,EAAA,gBAAAC,uBAAA,eAAAC,OAAA;AAEA,IAAAC,MAAA,gBAAAF,uBAAA,eAAAC,OAAA;AAAuC,SAAAE,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAJ,wBAAAI,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA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C,CACF;AACH","ignoreList":[]}
@@ -1,43 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.onClickAway = onClickAway;
7
- exports.useClickAway = useClickAway;
8
- var _Document = /*#__PURE__*/require("@typed/dom/Document");
9
- var Fx = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@typed/fx/Fx"));
10
- var _ElementSource = /*#__PURE__*/require("@typed/template/ElementSource");
11
- var Option = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("effect/Option"));
12
- var _addEventListener = /*#__PURE__*/require("./internal/addEventListener.js");
13
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
14
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
15
- /**
16
- * @since 1.0.0
17
- */
18
-
19
- /**
20
- * @since 1.0.0
21
- */
22
- function useClickAway(refs, f) {
23
- return Fx.forkScoped(onClickAway(refs, f));
24
- }
25
- /**
26
- * @since 1.0.0
27
- */
28
- function onClickAway(refs, f) {
29
- return Fx.fromFxEffect(_Document.Document.with(document => {
30
- const events = (0, _addEventListener.addEventListeners)(document, "click", "touchend", "contextmenu");
31
- const elements = Fx.map(Fx.tuple(refs), els => els.flatMap(_ElementSource.getElements));
32
- return Fx.mapEffect(Fx.compact(Fx.snapshot(events, elements, containsRefs)), f);
33
- }));
34
- }
35
- const containsRefs = (event, refs) => {
36
- const target = event.target;
37
- if (target === null || refs.some(c => c === target || c.contains(target))) {
38
- return Option.none();
39
- } else {
40
- return Option.some(event);
41
- }
42
- };
43
- //# sourceMappingURL=useClickAway.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useClickAway.js","names":["_Document","require","Fx","_interopRequireWildcard","_ElementSource","Option","_addEventListener","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","useClickAway","refs","f","forkScoped","onClickAway","fromFxEffect","Document","with","document","events","addEventListeners","elements","map","tuple","els","flatMap","getElements","mapEffect","compact","snapshot","containsRefs","event","target","some","c","contains","none"],"sources":["../../src/useClickAway.ts"],"sourcesContent":[null],"mappings":";;;;;;;AAIA,IAAAA,SAAA,gBAAAC,OAAA;AAEA,IAAAC,EAAA,gBAAAC,uBAAA,eAAAF,OAAA;AAEA,IAAAG,cAAA,gBAAAH,OAAA;AAIA,IAAAI,MAAA,gBAAAF,uBAAA,eAAAF,OAAA;AAEA,IAAAK,iBAAA,gBAAAL,OAAA;AAAkE,SAAAM,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAL,wBAAAK,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAA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