lyco 1.2.6 → 1.2.7

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/index.es.js CHANGED
@@ -26,7 +26,7 @@ const{I:re}=te,ie=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ae={HTML
26
26
  ${n}
27
27
  `}function Ne(e,t,n){t.forEach(([t,r])=>{n.has(t)&&e.removeEventListener(t,n.get(t));let i,a;typeof r==`function`?(i=r,a=void 0):(i=r.handler,a=r.options);let o=e=>i(e);e.addEventListener(t,o,a),n.set(t,o)})}function Z(e){let t=new Map,n=Object.entries(e);return{bind(e){Ne(e,n,t)},unbindAll(){t.clear()},auto(e){e?this.bind(e):this.unbindAll()}}}function Q(t,n){if(n===void 0){let n=n=>Q(t,n??e``);return n.html=(n,...r)=>Q(t,e(n,...r)),n}let r=t?.fadeBg??`rgba(0,0,0,0.7)`,i=t?.zIndex??2e3,a=Z(t?.on??{});return e`
28
28
  <div
29
- ${H(a.auto)}
29
+ ${H(e=>{e?a.bind(e):a.unbindAll()})}
30
30
  style="
31
31
  position: fixed;
32
32
  top: 0; left: 0; right: 0; bottom: 0;
@@ -41,7 +41,7 @@ const{I:re}=te,ie=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ae={HTML
41
41
  </div>
42
42
  `}function Pe(t,n){let r=Z(t?.on??{});return n===void 0?n=>Pe(t,n??[e``]):e`
43
43
  <div
44
- ${H(r.auto)}
44
+ ${H(e=>{e?r.bind(e):r.unbindAll()})}
45
45
  .class="${t?.className}"
46
46
  style="
47
47
  display: flex;
@@ -54,7 +54,7 @@ const{I:re}=te,ie=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ae={HTML
54
54
  </div>
55
55
  `}function $(t,n){if(n===void 0){let n=n=>$(t,n??e``);return n.html=(n,...r)=>$(t,e(n,...r)),n}let r=t?.direction??`row`,i=Z(t?.on??{});return e`
56
56
  <div
57
- ${H(i.auto)}
57
+ ${H(e=>{e?i.bind(e):i.unbindAll()})}
58
58
  style="
59
59
  display: flex;
60
60
  flex-direction: ${r};
@@ -66,12 +66,15 @@ const{I:re}=te,ie=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ae={HTML
66
66
  ${U(n)}
67
67
  </div>
68
68
  `}function Fe(t,n){if(n===void 0){let n=n=>Fe(t,n??e``);return n.html=(n,...r)=>Fe(t,e(n,...r)),n}let r=Z(t?.on??{});return e`
69
- <div ${H(r.auto)} style="break-inside: avoid; margin-bottom: 16px;">
69
+ <div
70
+ ${H(e=>{e?r.bind(e):r.unbindAll()})}
71
+ style="break-inside: avoid; margin-bottom: 16px;"
72
+ >
70
73
  ${U(n)}
71
74
  </div>
72
75
  `}function Ie(t,n){if(n===void 0)return n=>Ie(t,n??[e``]);let r=t?.columns??1,i=Z(t?.on??{});return e`
73
76
  <div
74
- ${H(i.auto)}
77
+ ${H(e=>{e?i.bind(e):i.unbindAll()})}
75
78
  style="
76
79
  display: grid;
77
80
  grid-template-columns: repeat(${r}, 1fr);
@@ -90,10 +93,15 @@ const{I:re}=te,ie=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ae={HTML
90
93
  <style>
91
94
  ${o}
92
95
  </style>
93
- <div ${H(s.auto)} class="${i}">${U(n)}</div>
96
+ <div
97
+ ${H(e=>{e?s.bind(e):s.unbindAll()})}
98
+ class="${i}"
99
+ >
100
+ ${U(n)}
101
+ </div>
94
102
  `)}function Re(t,n){if(n===void 0){let n=n=>Re(t,n??e``);return n.html=(n,...r)=>Re(t,e(n,...r)),n}let r=Z(t?.on??{});return e`
95
103
  <div
96
- ${H(r.auto)}
104
+ ${H(e=>{e?r.bind(e):r.unbindAll()})}
97
105
  style="${t?.span?`grid-column: span ${t.span};`:``}"
98
106
  >
99
107
  ${U(n)}
@@ -108,10 +116,15 @@ const{I:re}=te,ie=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ae={HTML
108
116
  <style>
109
117
  ${o}
110
118
  </style>
111
- <div ${H(s.auto)} class="${i}">${U(n)}</div>
119
+ <div
120
+ ${H(e=>{e?s.bind(e):s.unbindAll()})}
121
+ class="${i}"
122
+ >
123
+ ${U(n)}
124
+ </div>
112
125
  `)}function Be(t,n){if(n===void 0)return n=>Be(t,n??[e``]);let r=Z(t?.on??{});return e`
113
126
  <div
114
- ${H(r.auto)}
127
+ ${H(e=>{e?r.bind(e):r.unbindAll()})}
115
128
  style="
116
129
  display: flex;
117
130
  flex-direction: row;
@@ -136,10 +149,15 @@ const{I:re}=te,ie=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ae={HTML
136
149
  ${s}
137
150
  </style>
138
151
 
139
- <div ${H(c.auto)} class="${o}">${U(n)}</div>
152
+ <div
153
+ ${H(e=>{e?c.bind(e):c.unbindAll()})}
154
+ class="${o}"
155
+ >
156
+ ${U(n)}
157
+ </div>
140
158
  `)}function He(t,n){if(n===void 0){let n=n=>He(t,n??e``);return n.html=(n,...r)=>He(t,e(n,...r)),n}let r=t?.gap??`0px`,i=t?.firstHeight??`50%`,a=e``,o=e``;if(typeof n==`function`){var s;let t=(s=n.call)?.call(n,null)??[];a=t[0]??e``,o=t[1]??e``}else a=U(n);let c=Z(t?.on??{});return e`
141
159
  <div
142
- ${H(c.auto)}
160
+ ${H(e=>{e?c.bind(e):c.unbindAll()})}
143
161
  style="
144
162
  display: flex;
145
163
  flex-direction: column;
@@ -153,7 +171,7 @@ const{I:re}=te,ie=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ae={HTML
153
171
  </div>
154
172
  `}function Ue(t,n){if(n===void 0){let n=n=>Ue(t,n??e``);return n.html=(n,...r)=>Ue(t,e(n,...r)),n}let r=t?.gap??`0px`,i=t?.firstWidth??`50%`,a=e``,o=e``;if(typeof n==`function`){var s;let t=(s=n.call)?.call(n,null)??[];a=t[0]??e``,o=t[1]??e``}else a=U(n);let c=Z(t?.on??{});return e`
155
173
  <div
156
- ${H(c.auto)}
174
+ ${H(e=>{e?c.bind(e):c.unbindAll()})}
157
175
  style="
158
176
  display: flex;
159
177
  flex-direction: row;
@@ -187,10 +205,15 @@ const{I:re}=te,ie=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ae={HTML
187
205
  <style>
188
206
  ${u}
189
207
  </style>
190
- <div ${H(d.auto)} class="${c}">${U(n)}</div>
208
+ <div
209
+ ${H(e=>{e?d.bind(e):d.unbindAll()})}
210
+ class="${c}"
211
+ >
212
+ ${U(n)}
213
+ </div>
191
214
  `)}function Ge(t,n){if(n===void 0)return n=>Ge(t,n??[e``]);let r=t?.sidebarWidth??`240px`,i=t?.sidebarPosition??`left`,a=t?.gap??`0px`,o=e``,s=e``;if(typeof n==`function`){var c;let t=(c=n.call)?.call(n,null)??[];o=t[0]??e``,s=t[1]??e``}else s=W(n);let l=Z(t?.on??{});return e`
192
215
  <div
193
- ${H(l.auto)}
216
+ ${H(e=>{e?l.bind(e):l.unbindAll()})}
194
217
  style="
195
218
  display: flex;
196
219
  flex-direction: ${i===`left`?`row`:`row-reverse`};
@@ -339,7 +362,10 @@ const{I:re}=te,ie=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ae={HTML
339
362
  ${se}
340
363
  </style>
341
364
 
342
- <div ${H(ce.auto)} class="${S}">
365
+ <div
366
+ ${H(e=>{e?ce.bind(e):ce.unbindAll()})}
367
+ class="${S}"
368
+ >
343
369
  <div class="${C}">
344
370
  ${D.map((t,n)=>e`
345
371
  <div class="${w} --slide-${n}" key=${n}>
@@ -355,7 +381,7 @@ const{I:re}=te,ie=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ae={HTML
355
381
  </div>
356
382
  `)}function qe(t,n){let r=t?.top?`top: ${t.top};`:``,i=t?.right?`right: ${t.right};`:``,a=t?.bottom?`bottom: ${t.bottom};`:``,o=t?.left?`left: ${t.left};`:``,s=t?.width?`width: ${t.width};`:``,c=t?.height?`height: ${t.height};`:``,l=typeof t?.zIndex==`number`?`z-index: ${t.zIndex};`:``,u=t?.style?t.style:``,d=t?.className?t.className:``,f=Z(t?.on??{}),p=t=>e`
357
383
  <div
358
- ${H(f.auto)}
384
+ ${H(e=>{e?f.bind(e):f.unbindAll()})}
359
385
  class="${d}"
360
386
  style="
361
387
  position: absolute;
@@ -369,7 +395,7 @@ const{I:re}=te,ie=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ae={HTML
369
395
  </div>
370
396
  `;return je(n,p)}function Je(t,n){let r=t?.width??`300px`,i=t?.height??`auto`,a=t?.top??`20%`,o=t?.bottom??`auto`,s=t?.left??`50%`,c=t?.right??`auto`,l=s===`auto`?``:`transform: translateX(-50%);`,u=t?.background??`rgba(255, 255, 255, 0.3)`,d=t?.blur??`10px`,f=t?.borderRadius??`12px`,p=t?.padding??`16px`,m=t?.zIndex??1e3,h=Z(t?.on??{}),g=t=>e`
371
397
  <div
372
- ${H(h.auto)}
398
+ ${H(e=>{e?h.bind(e):h.unbindAll()})}
373
399
  style="
374
400
  position: fixed;
375
401
  top: ${a};
@@ -394,7 +420,7 @@ const{I:re}=te,ie=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ae={HTML
394
420
  </div>
395
421
  `;return Me(n,void 0,g)}function Ye(t,n){if(n===void 0)return n=>Ye(t,n??[e``]);let r=`${100/t.ratio}%`,i=t.maxWidth?`max-width: ${t.maxWidth};`:``,a=t.background?`background: ${t.background};`:``,o=t.overflow??`hidden`,s=Z(t.on??{});return e`
396
422
  <div
397
- ${H(s.auto)}
423
+ ${H(e=>{e?s.bind(e):s.unbindAll()})}
398
424
  style="
399
425
  position: relative;
400
426
  width: 100%;
@@ -426,7 +452,12 @@ const{I:re}=te,ie=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ae={HTML
426
452
  <style>
427
453
  ${o}
428
454
  </style>
429
- <div class="${i}" ${H(s.auto)}>${U(n)}</div>
455
+ <div
456
+ class="${i}"
457
+ ${H(e=>{e?s.bind(e):s.unbindAll()})}
458
+ >
459
+ ${U(n)}
460
+ </div>
430
461
  `)}function Ze(t,n){if(n===void 0)return n=>Ze(t,n??[e``]);let r=t?.size??`32px`,i=t?.overlap??`-8px`,a=Z(t?.on??{}),o=(t,n)=>e`
431
462
  <div
432
463
  style="
@@ -442,14 +473,17 @@ const{I:re}=te,ie=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ae={HTML
442
473
  ${t}
443
474
  </div>
444
475
  `;return e`
445
- <div ${H(a.auto)} style="display: flex; align-items: center;">
476
+ <div
477
+ ${H(e=>{e?a.bind(e):a.unbindAll()})}
478
+ style="display: flex; align-items: center;"
479
+ >
446
480
  ${W(n,o)}
447
481
  </div>
448
482
  `}function Qe(t,n){if(n===void 0){let n=n=>Qe(t,n??e``);return n.html=(n,...r)=>Qe(t,e(n,...r)),n}let r=t?.position??`top-right`,i=t?.size??`16px`,a=t?.background??`red`,o=t?.color??`#fff`,[s,c,l,u]=[r.includes(`top`)?`0`:`auto`,r.includes(`right`)?`0`:`auto`,r.includes(`bottom`)?`0`:`auto`,r.includes(`left`)?`0`:`auto`],d=Z(t?.on??{});return e`
449
483
  <div style="position: relative; display: inline-block;">
450
484
  ${U(n)}
451
485
  <div
452
- ${H(d.auto)}
486
+ ${H(e=>{e?d.bind(e):d.unbindAll()})}
453
487
  style="
454
488
  position: absolute;
455
489
  top: ${s};
@@ -471,7 +505,7 @@ const{I:re}=te,ie=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ae={HTML
471
505
  ${t?.content??``}
472
506
  </div>
473
507
  </div>
474
- `}function $e(e,t){return e?n=>{typeof e==`function`?e(n):e.current=n,typeof t==`function`?t(n):t.current=n}:t}function et(t,n){if(!n)return e=>et(t,e??De());let r=Z(t?.on??{}),i=$e(n,r.auto);return e`
508
+ `}function $e(e,t){return e?n=>{typeof e==`function`?e(n):e.current=n,typeof t==`function`?t(n):t.current=n}:t}function et(t,n){if(!n)return e=>et(t,e??De());let r=Z(t?.on??{}),i=$e(n,e=>{e?r.bind(e):r.unbindAll()});return e`
475
509
  <canvas
476
510
  ${H(i)}
477
511
  .class=${t?.className}
@@ -479,7 +513,7 @@ const{I:re}=te,ie=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ae={HTML
479
513
  ></canvas>
480
514
  `}function tt(t,n){if(n===void 0)return n=>tt(t,n??[e``]);let r=t?.padding??`16px`,i=t?.borderRadius??`8px`,a=t?.shadow??`0 2px 8px rgba(0,0,0,0.1)`,o=t?.background??`#fff`,s=Z(t?.on??{});return e`
481
515
  <div
482
- ${H(s.auto)}
516
+ ${H(e=>{e?s.bind(e):s.unbindAll()})}
483
517
  style="
484
518
  background: ${o};
485
519
  border-radius: ${i};
@@ -492,7 +526,7 @@ const{I:re}=te,ie=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ae={HTML
492
526
  </div>
493
527
  `}function nt(t,n){if(n===void 0){let n=n=>nt(t,n??e``);return n.html=(n,...r)=>nt(t,e(n,...r)),n}let r=t?.width?`width: ${t.width};`:``,i=t?.height?`height: ${t.height};`:``,a=t?.background?`background: ${t.background};`:``,o=Z(t?.on??{});return e`
494
528
  <div
495
- ${H(o.auto)}
529
+ ${H(e=>{e?o.bind(e):o.unbindAll()})}
496
530
  style="
497
531
  display: flex;
498
532
  justify-content: center;
@@ -504,7 +538,7 @@ const{I:re}=te,ie=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ae={HTML
504
538
  </div>
505
539
  `}function rt(t,n){if(n===void 0)return n=>rt(t,n??[e``]);let r=t?.maxWidth??`1024px`,i=t?.padding??`0 16px`,a=t?.background?`background: ${t.background};`:``,o=t?.fullHeight?`height: 100%;`:``,s=Z(t?.on??{});return e`
506
540
  <div
507
- ${H(s.auto)}
541
+ ${H(e=>{e?s.bind(e):s.unbindAll()})}
508
542
  style="
509
543
  width: 100%;
510
544
  max-width: ${r};
@@ -518,9 +552,12 @@ const{I:re}=te,ie=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ae={HTML
518
552
  >
519
553
  ${W(n)}
520
554
  </div>
521
- `}function it(t){let n=t?.orientation??`horizontal`,r=t?.thickness??`1px`,i=t?.color??`#e0e0e0`,a=t?.margin??(n===`horizontal`?`8px 0`:`0 8px`),o=Z(t?.on??{}),s=n===`horizontal`?`width: 100%; height: ${r}; background: ${i}; margin: ${a};`:`width: ${r}; height: 100%; background: ${i}; margin: ${a};`;return e`<div ${H(o.auto)} style="${s}"></div>`}function at(t,n){if(n===void 0){let n=n=>at(t,n??e``);return n.html=(n,...r)=>at(t,e(n,...r)),n}let r=t?.columns??4,i=t?.gap??`24px`,a=t?.background??`#f8f8f8`,o=t?.padding??`40px 16px`,s=Z(t?.on??{});return e`
555
+ `}function it(t){let n=t?.orientation??`horizontal`,r=t?.thickness??`1px`,i=t?.color??`#e0e0e0`,a=t?.margin??(n===`horizontal`?`8px 0`:`0 8px`),o=Z(t?.on??{}),s=n===`horizontal`?`width: 100%; height: ${r}; background: ${i}; margin: ${a};`:`width: ${r}; height: 100%; background: ${i}; margin: ${a};`;return e`<div
556
+ ${H(e=>{e?o.bind(e):o.unbindAll()})}
557
+ style="${s}"
558
+ ></div>`}function at(t,n){if(n===void 0){let n=n=>at(t,n??e``);return n.html=(n,...r)=>at(t,e(n,...r)),n}let r=t?.columns??4,i=t?.gap??`24px`,a=t?.background??`#f8f8f8`,o=t?.padding??`40px 16px`,s=Z(t?.on??{});return e`
522
559
  <div
523
- ${H(s.auto)}
560
+ ${H(e=>{e?s.bind(e):s.unbindAll()})}
524
561
  style="
525
562
  width: 100%;
526
563
  background: ${a};
@@ -554,10 +591,15 @@ const{I:re}=te,ie=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ae={HTML
554
591
  <style>
555
592
  ${c}
556
593
  </style>
557
- <div ${H(l.auto)} class="${o}">${U(n)}</div>
594
+ <div
595
+ ${H(e=>{e?l.bind(e):l.unbindAll()})}
596
+ class="${o}"
597
+ >
598
+ ${U(n)}
599
+ </div>
558
600
  `)}function ct(t,n){if(n===void 0)return n=>ct(t,n??[e``]);let r=t?.backgroundImage?`background-image: url('${t.backgroundImage}');`:``,i=t?.height??`400px`,a=t?.overlayColor??`rgba(0, 0, 0, 0.3)`,o=Z(t?.on??{});return e`
559
601
  <div
560
- ${H(o.auto)}
602
+ ${H(e=>{e?o.bind(e):o.unbindAll()})}
561
603
  style="
562
604
  position: relative;
563
605
  width: 100%;
@@ -602,7 +644,12 @@ const{I:re}=te,ie=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ae={HTML
602
644
  <style>
603
645
  ${c}
604
646
  </style>
605
- <div ${H(l.auto)} class="${o}">${U(n)}</div>
647
+ <div
648
+ ${H(e=>{e?l.bind(e):l.unbindAll()})}
649
+ class="${o}"
650
+ >
651
+ ${U(n)}
652
+ </div>
606
653
  `)}function ut(t){return e` <li>${W(t)}</li> `}function dt(t,n){let r=t?.bordered?`border: 1px solid #ddd; border-radius: 4px`:``,i=t?.striped?`li:nth-child(even) { background: #f9f9f9; }`:``,a=t?.hover?`li:hover { background: #f1f1f1; cursor: pointer; }`:``,o=Y(`List`),s=t?.className??q(`List::list`)+`-lyco-now-${o}`,c=`
607
654
  ul.${s} {
608
655
  list-style: none;
@@ -646,12 +693,15 @@ const{I:re}=te,ie=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ae={HTML
646
693
  <style>
647
694
  ${l}
648
695
  </style>
649
- <ul ${H(u.auto)} class="${s}">
696
+ <ul
697
+ ${H(e=>{e?u.bind(e):u.unbindAll()})}
698
+ class="${s}"
699
+ >
650
700
  ${W(t,c)}
651
701
  </ul>
652
702
  `);return Me(n,d)}function pt(t,n){if(n===void 0)return n=>pt(t,n??[e``]);let r=t?.background??`rgba(0, 0, 0, 0.5)`,i=t?.zIndex??1e3,a=t?.fullScreen!==!1,o=Z(t?.on??{});return e`
653
703
  <div
654
- ${H(o.auto)}
704
+ ${H(e=>{e?o.bind(e):o.unbindAll()})}
655
705
  style="
656
706
  position: ${a?`fixed`:`absolute`};
657
707
  top: 0; left: 0; right: 0; bottom: 0;
@@ -666,7 +716,7 @@ const{I:re}=te,ie=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ae={HTML
666
716
  </div>
667
717
  `}function mt(t,n){if(n===void 0){let n=n=>mt(t,n??e``);return n.html=(n,...r)=>mt(t,e(n,...r)),n}let r=t?.width?`width: ${t.width};`:``,i=t?.height?`height: ${t.height};`:``,a=t?.background?`background: ${t.background};`:``,o=Z(t?.on??{});return e`
668
718
  <div
669
- ${H(o.auto)}
719
+ ${H(e=>{e?o.bind(e):o.unbindAll()})}
670
720
  style="
671
721
  position: relative;
672
722
  ${r} ${i} ${a}
@@ -675,7 +725,10 @@ const{I:re}=te,ie=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ae={HTML
675
725
  >
676
726
  ${U(n)}
677
727
  </div>
678
- `}function ht(t){let n=t?.width?`width: ${t.width};`:``,r=t?.height?`height: ${t.height};`:``,i=Z(t?.on??{});return e`<div ${H(i.auto)} style="${n} ${r}"></div>`}function gt(t){let n=t?.type??`rect`,r=t?.width??`100%`,i=t?.height??`16px`,a=t?.borderRadius??`4px`,o=t?.animation!==!1,s=Y(`SkeletonLoader`),c=t?.className??q(`SkeletonLoader::skeleton-shimmer`)+`-lyco-now-`+s,l=n===`circle`?`border-radius: 50%; width: ${r}; height: ${r}`:`border-radius: ${a}; width: ${r}; height: ${i}`,u=Z(t?.on??{});return X(`SkeletonLoader`,e`
728
+ `}function ht(t){let n=t?.width?`width: ${t.width};`:``,r=t?.height?`height: ${t.height};`:``,i=Z(t?.on??{});return e`<div
729
+ ${H(e=>{e?i.bind(e):i.unbindAll()})}
730
+ style="${n} ${r}"
731
+ ></div>`}function gt(t){let n=t?.type??`rect`,r=t?.width??`100%`,i=t?.height??`16px`,a=t?.borderRadius??`4px`,o=t?.animation!==!1,s=Y(`SkeletonLoader`),c=t?.className??q(`SkeletonLoader::skeleton-shimmer`)+`-lyco-now-`+s,l=n===`circle`?`border-radius: 50%; width: ${r}; height: ${r}`:`border-radius: ${a}; width: ${r}; height: ${i}`,u=Z(t?.on??{});return X(`SkeletonLoader`,e`
679
732
  <style>
680
733
  ${`
681
734
  @keyframes ${c+`-shimmer`} {
@@ -690,10 +743,16 @@ const{I:re}=te,ie=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ae={HTML
690
743
  ${o?`animation: ${c+`-shimmer`} 1.2s infinite ease-in-out`:``};
691
744
  }
692
745
  </style>
693
- <div ${H(u.auto)} class="${c}"></div>
694
- `)}function _t(t){let n=Z(t?.on??{});return e`<div ${H(n.auto)} style="flex: 1 1 auto;"></div>`}function vt(t,n){if(n===void 0){let n=n=>vt(t,n??e``);return n.html=(n,...r)=>vt(t,e(n,...r)),n}let r=t?.top?`top: ${t.top};`:``,i=t?.bottom?`bottom: ${t.bottom};`:``,a=typeof t?.zIndex==`number`?`z-index: ${t.zIndex};`:``,o=Z(t?.on??{});return e`
746
+ <div
747
+ ${H(e=>{e?u.bind(e):u.unbindAll()})}
748
+ class="${c}"
749
+ ></div>
750
+ `)}function _t(t){let n=Z(t?.on??{});return e`<div
751
+ ${H(e=>{e?n.bind(e):n.unbindAll()})}
752
+ style="flex: 1 1 auto;"
753
+ ></div>`}function vt(t,n){if(n===void 0){let n=n=>vt(t,n??e``);return n.html=(n,...r)=>vt(t,e(n,...r)),n}let r=t?.top?`top: ${t.top};`:``,i=t?.bottom?`bottom: ${t.bottom};`:``,a=typeof t?.zIndex==`number`?`z-index: ${t.zIndex};`:``,o=Z(t?.on??{});return e`
695
754
  <div
696
- ${H(o.auto)}
755
+ ${H(e=>{e?o.bind(e):o.unbindAll()})}
697
756
  style="
698
757
  position: sticky;
699
758
  ${r} ${i}
@@ -727,14 +786,17 @@ const{I:re}=te,ie=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ae={HTML
727
786
  ${c}
728
787
  </style>
729
788
 
730
- <div ${H(l.auto)} class="${i}">
789
+ <div
790
+ ${H(e=>{e?l.bind(e):l.unbindAll()})}
791
+ class="${i}"
792
+ >
731
793
  <table>
732
794
  ${U(n)}
733
795
  </table>
734
796
  </div>
735
797
  `)}function bt(t,n){let r=t?.direction??`row`,i=Z(t?.on??{});return n===void 0?n=>bt(t,n??e``):e`
736
798
  <div
737
- ${H(i.auto)}
799
+ ${H(e=>{e?i.bind(e):i.unbindAll()})}
738
800
  style="
739
801
  display: flex;
740
802
  flex-direction: ${r};
@@ -748,7 +810,7 @@ const{I:re}=te,ie=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ae={HTML
748
810
  </div>
749
811
  `}function xt(t,n){let r=t?.width?`width: ${t.width};`:``,i=t?.height?`height: ${t.height};`:``,a=t?.background?`background: ${t.background};`:``,o=Z(t?.on??{});if(n===void 0)return n=>xt(t,n??[e``]);let s=`flex-start`,c=`flex-start`;switch(t?.align){case`top-right`:s=`flex-end`,c=`flex-start`;break;case`center`:s=`center`,c=`center`;break;case`bottom-left`:s=`flex-start`,c=`flex-end`;break;case`bottom-right`:s=`flex-end`,c=`flex-end`;break;default:s=`flex-start`,c=`flex-start`}return e`
750
812
  <div
751
- ${H(o.auto)}
813
+ ${H(e=>{e?o.bind(e):o.unbindAll()})}
752
814
  style="
753
815
  position: relative;
754
816
  display: flex;