lyco 1.2.3 → 1.2.5

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
@@ -1,4 +1,7 @@
1
- import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``}function n(n,r){let i=r??(e=>e);if(n===void 0)return e``;if(Array.isArray(n))return n.map((e,n)=>i(t(e),n,!0,!1));if(typeof n!=`function`)return i(t(n),void 0,!1,!1);let a=n();return Array.isArray(a)?a.map((e,n)=>i(t(e),n,!0,!1)):i(t(a),void 0,!1,!0)}function r(e){let t=Math.random().toString(36).substring(2,15);return e?`lyco-${e}-${t}`:`lyco-${t}`}function i(e,n){let r=n??(e=>e),i=e=>r(t(e));return e?i(e):i}function a(e,t,r){let i=t??(e=>e),a=e=>i(n(e,r));return e?a(e):a}const o=e=>({init:!1,prefix:e,className:`___LYCO_NULL___`}),s={"GridBreakpoint::grid-breakpoint":o(`grid-breakpoint`),"Hidden::hidden-container":o(`hidden-container`),"ListGroup::list-group":o(`list-group`),"ScrollBar::scrollbar-container":o(`scrollbar-container`),"SkeletonLoader::skeleton-shimmer":o(`skeleton-shimmer`),"Swiper::swiper":o(`swiper`),"Table::table":o(`table`),"WaterFlow::waterflow":o(`waterflow`),"AutoFitGrid::auto-fit-grid":o(`auto-fit-grid`),"GridCol::grid-col":o(`grid-col`),"GridRow::grid-row":o(`grid-row`)};function c(e){let t=s[e];return t.init||(s[e].init=!0,s[e].className=r(t.prefix)),s[e].className===`___LYCO_NULL___`?r(t.prefix):s[e].className}function l(n,r){if(r===void 0){let t=t=>l(n,t??e``);return t.html=(t,...r)=>l(n,e(t,...r)),t}let i=n?.fadeBg??`rgba(0,0,0,0.7)`,a=n?.zIndex??2e3;return e`
1
+ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``}function n(n,r){let i=r??(e=>e);if(n===void 0)return e``;if(Array.isArray(n))return n.map((e,n)=>i(t(e),n,!0,!1));if(typeof n!=`function`)return i(t(n),void 0,!1,!1);let a=n();return Array.isArray(a)?a.map((e,n)=>i(t(e),n,!0,!1)):i(t(a),void 0,!1,!0)}function r(e){let t=Math.random().toString(36).substring(2,15);return e?`lyco-${e}-${t}`:`lyco-${t}`}function i(e,n){let r=n??(e=>e),i=e=>r(t(e));return e?i(e):i}function a(e,t,r){let i=t??(e=>e),a=e=>i(n(e,r));return e?a(e):a}const o=e=>({init:!1,prefix:e,className:`___LYCO_NULL___`}),s={"GridBreakpoint::grid-breakpoint":o(`grid-breakpoint`),"Hidden::hidden-container":o(`hidden-container`),"ListGroup::list-group":o(`list-group`),"ScrollBar::scrollbar-container":o(`scrollbar-container`),"SkeletonLoader::skeleton-shimmer":o(`skeleton-shimmer`),"Swiper::swiper":o(`swiper`),"Table::table":o(`table`),"WaterFlow::waterflow":o(`waterflow`),"AutoFitGrid::auto-fit-grid":o(`auto-fit-grid`),"GridCol::grid-col":o(`grid-col`),"GridRow::grid-row":o(`grid-row`)};function c(e){let t=s[e];return t.init||(s[e].init=!0,s[e].className=r(t.prefix)),s[e].className===`___LYCO_NULL___`?r(t.prefix):s[e].className}const l={all:{value:0}};function u(e){var t;return(t=l[e])?.value||(l[e]={value:0}),l[e].value}function d(t,n){return l.all={value:l.all.value+1},l[t]===void 0?l[t]={value:0}:l[t].value=l[t].value+1,console.debug(`LycoComponent: ${t} - ${l[t].value} - ${l.all.value}`),e`
2
+ <!-- ${t} - ${l[t].value} -->
3
+ ${n}
4
+ `}function f(n,r){if(r===void 0){let t=t=>f(n,t??e``);return t.html=(t,...r)=>f(n,e(t,...r)),t}let i=n?.fadeBg??`rgba(0,0,0,0.7)`,a=n?.zIndex??2e3;return e`
2
5
  <div
3
6
  style="
4
7
  position: fixed;
@@ -12,7 +15,7 @@ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``
12
15
  >
13
16
  ${t(r)}
14
17
  </div>
15
- `}function u(t,r){return r===void 0?n=>u(t,n??[e``]):e`
18
+ `}function p(t,r){return r===void 0?n=>p(t,n??[e``]):e`
16
19
  <div
17
20
  style="
18
21
  display: flex;
@@ -22,7 +25,7 @@ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``
22
25
  >
23
26
  ${n(r)}
24
27
  </div>
25
- `}function d(n,r){if(r===void 0){let t=t=>d(n,t??e``);return t.html=(t,...r)=>d(n,e(t,...r)),t}let i=n?.direction??`row`;return e`
28
+ `}function m(n,r){if(r===void 0){let t=t=>m(n,t??e``);return t.html=(t,...r)=>m(n,e(t,...r)),t}let i=n?.direction??`row`;return e`
26
29
  <div
27
30
  style="
28
31
  display: flex;
@@ -34,11 +37,11 @@ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``
34
37
  >
35
38
  ${t(r)}
36
39
  </div>
37
- `}function f(n){return e`
40
+ `}function h(n){return e`
38
41
  <div style="break-inside: avoid; margin-bottom: 16px;">
39
42
  ${t(n)}
40
43
  </div>
41
- `}function p(t,r){if(r===void 0)return n=>p(t,n??[e``]);let i=t?.columns??1;return e`
44
+ `}function g(t,r){if(r===void 0)return n=>g(t,n??[e``]);let i=t?.columns??1;return e`
42
45
  <div
43
46
  style="
44
47
  display: grid;
@@ -48,33 +51,33 @@ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``
48
51
  >
49
52
  ${n(r)}
50
53
  </div>
51
- `}function m(n,r){if(r===void 0){let t=t=>m(n,t??e``);return t.html=(t,...r)=>m(n,e(t,...r)),t}let i=c(`GridCol::grid-col`),a=n?.gap?`column-gap: ${n.gap};`:``,o=`
52
- .${i} {
54
+ `}function _(n,r){if(r===void 0){let t=t=>_(n,t??e``);return t.html=(t,...r)=>_(n,e(t,...r)),t}let i=u(`GridCol`),a=c(`GridCol::grid-col`)+`-lyco-now-`+i,o=n?.gap?`column-gap: ${n.gap};`:``,s=`
55
+ .${a} {
53
56
  display: grid;
54
57
  grid-auto-flow: column;
55
- ${a}
58
+ ${o}
56
59
  }
57
- `;return e`
58
- <style>
59
- ${o}
60
- </style>
61
- <div class="${i}">${t(r)}</div>
62
- `}function h(n,r){if(r===void 0){let t=t=>h(n,t??e``);return t.html=(t,...r)=>h(n,e(t,...r)),t}return e`
60
+ `;return d(`GridCol`,e`
61
+ <style>
62
+ ${s}
63
+ </style>
64
+ <div class="${a}">${t(r)}</div>
65
+ `)}function v(n,r){if(r===void 0){let t=t=>v(n,t??e``);return t.html=(t,...r)=>v(n,e(t,...r)),t}return e`
63
66
  <div style="${n?.span?`grid-column: span ${n.span};`:``}">
64
67
  ${t(r)}
65
68
  </div>
66
- `}function g(n,r){if(r===void 0){let t=t=>g(n,t??e``);return t.html=(t,...r)=>g(n,e(t,...r)),t}let i=c(`GridRow::grid-row`),a=n?.gap?`row-gap: ${n.gap};`:``,o=`
67
- .${i} {
69
+ `}function y(n,r){if(r===void 0){let t=t=>y(n,t??e``);return t.html=(t,...r)=>y(n,e(t,...r)),t}let i=u(`GridRow`),a=c(`GridRow::grid-row`)+`-lyco-now-`+i,o=n?.gap?`row-gap: ${n.gap};`:``,s=`
70
+ .${a} {
68
71
  display: grid;
69
72
  grid-auto-flow: row;
70
- ${a}
73
+ ${o}
71
74
  }
72
- `;return e`
73
- <style>
74
- ${o}
75
- </style>
76
- <div class="${i}">${t(r)}</div>
77
- `}function _(t,r){return r===void 0?n=>_(t,n??[e``]):e`
75
+ `;return d(`GridRow`,e`
76
+ <style>
77
+ ${s}
78
+ </style>
79
+ <div class="${a}">${t(r)}</div>
80
+ `)}function b(t,r){return r===void 0?n=>b(t,n??[e``]):e`
78
81
  <div
79
82
  style="
80
83
  display: flex;
@@ -84,35 +87,24 @@ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``
84
87
  >
85
88
  ${n(r)}
86
89
  </div>
87
- `}function v(n,r){if(r===void 0){let t=t=>v(n,t??e``);return t.html=(t,...r)=>v(n,e(t,...r)),t}let i=n?.columnCount??3,a=n?.gap??`16px`,o=c(`WaterFlow::waterflow`);return e`
88
- <style>
89
- /* 使用 CSS 类来控制多列布局 */
90
- .${o} {
91
- column-count: ${i};
92
- column-gap: ${typeof a==`number`?`${a}px`:a};
93
- }
94
- /* 子元素如果是块级元素,需要让它们适应多列流式布局 */
95
- .${o} > * {
96
- display: inline-block;
97
- width: 100%;
98
- }
99
- </style>
90
+ `}function x(n,r){if(r===void 0){let t=t=>x(n,t??e``);return t.html=(t,...r)=>x(n,e(t,...r)),t}let i=n?.columnCount??3,a=n?.gap??`16px`,o=u(`WaterFlow`),s=c(`WaterFlow::waterflow`)+`-lyco-now-${o}`,l=`
91
+ /* 使用 CSS 类来控制多列布局 */
92
+ .${s} {
93
+ column-count: ${i};
94
+ column-gap: ${typeof a==`number`?`${a}px`:a};
95
+ }
96
+ /* 子元素如果是块级元素,需要让它们适应多列流式布局 */
97
+ .${s} > * {
98
+ display: inline-block;
99
+ width: 100%;
100
+ }
101
+ `;return d(`WaterFlow`,e`
102
+ <style>
103
+ ${l}
104
+ </style>
100
105
 
101
- <div class="${o}">${t(r)}</div>
102
- `}v().html`
103
- <div>
104
- <div>1</div>
105
- <div>2</div>
106
- <div>3</div>
107
- <div>4</div>
108
- <div>5</div>
109
- <div>6</div>
110
- <div>7</div>
111
- <div>8</div>
112
- <div>9</div>
113
- <div>10</div>
114
- </div>
115
- `;function y(n,r){if(r===void 0){let t=t=>y(n,t??e``);return t.html=(t,...r)=>y(n,e(t,...r)),t}let i=n?.gap??`0px`,a=n?.firstHeight??`50%`,o=e``,s=e``;if(typeof r==`function`){var c;let t=(c=r.call)?.call(r,null)??[];o=t[0]??e``,s=t[1]??e``}else o=t(r);return e`
106
+ <div class="${s}">${t(r)}</div>
107
+ `)}function S(n,r){if(r===void 0){let t=t=>S(n,t??e``);return t.html=(t,...r)=>S(n,e(t,...r)),t}let i=n?.gap??`0px`,a=n?.firstHeight??`50%`,o=e``,s=e``;if(typeof r==`function`){var c;let t=(c=r.call)?.call(r,null)??[];o=t[0]??e``,s=t[1]??e``}else o=t(r);return e`
116
108
  <div
117
109
  style="
118
110
  display: flex;
@@ -125,7 +117,7 @@ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``
125
117
  <div style="flex: 0 0 ${a}; overflow: auto;">${o}</div>
126
118
  <div style="flex: 1 1 auto; overflow: auto;">${s}</div>
127
119
  </div>
128
- `}function b(n,r){if(r===void 0){let t=t=>b(n,t??e``);return t.html=(t,...r)=>b(n,e(t,...r)),t}let i=n?.gap??`0px`,a=n?.firstWidth??`50%`,o=e``,s=e``;if(typeof r==`function`){var c;let t=(c=r.call)?.call(r,null)??[];o=t[0]??e``,s=t[1]??e``}else o=t(r);return e`
120
+ `}function C(n,r){if(r===void 0){let t=t=>C(n,t??e``);return t.html=(t,...r)=>C(n,e(t,...r)),t}let i=n?.gap??`0px`,a=n?.firstWidth??`50%`,o=e``,s=e``;if(typeof r==`function`){var c;let t=(c=r.call)?.call(r,null)??[];o=t[0]??e``,s=t[1]??e``}else o=t(r);return e`
129
121
  <div
130
122
  style="
131
123
  display: flex;
@@ -138,28 +130,30 @@ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``
138
130
  <div style="flex: 0 0 ${a}; overflow: auto;">${o}</div>
139
131
  <div style="flex: 1 1 auto; overflow: auto;">${s}</div>
140
132
  </div>
141
- `}function x(n,r){if(r===void 0){let t=t=>x(n,t??e``);return t.html=(t,...r)=>x(n,e(t,...r)),t}let i=n?.direction??`vertical`,a=n?.height??`100%`,o=n?.width??`100%`,s=n?.customCss??``,l=n?.className??c(`ScrollBar::scrollbar-container`),u=i===`horizontal`?`overflow-x: auto; overflow-y: hidden`:`overflow-y: auto; overflow-x: hidden`;return e`
142
- <style>
143
- .${l} {
144
- ${u};
145
- width: ${o};
146
- height: ${a};
147
- }
148
- .${l}::-webkit-scrollbar {
149
- width: 8px;
150
- height: 8px;
151
- }
152
- .${l}::-webkit-scrollbar-thumb {
153
- background-color: rgba(0, 0, 0, 0.2);
154
- border-radius: 4px;
155
- }
156
- .${l}::-webkit-scrollbar-track {
157
- background: rgba(0, 0, 0, 0.05);
158
- }
159
- ${s}
160
- </style>
161
- <div class="${l}">${t(r)}</div>
162
- `}function S(t,r){if(r===void 0)return n=>S(t,n??[e``]);let i=t?.sidebarWidth??`240px`,a=t?.sidebarPosition??`left`,o=t?.gap??`0px`,s=e``,c=e``;if(typeof r==`function`){var l;let t=(l=r.call)?.call(r,null)??[];s=t[0]??e``,c=t[1]??e``}else c=n(r);return e`
133
+ `}function w(n,r){if(r===void 0){let t=t=>w(n,t??e``);return t.html=(t,...r)=>w(n,e(t,...r)),t}let i=n?.direction??`vertical`,a=n?.height??`100%`,o=n?.width??`100%`,s=n?.customCss??``,l=u(`ScrollBar`),f=n?.className??c(`ScrollBar::scrollbar-container`)+`-lyco-now-`+l,p=i===`horizontal`?`overflow-x: auto; overflow-y: hidden`:`overflow-y: auto; overflow-x: hidden`,m=`
134
+ .${f} {
135
+ ${p};
136
+ width: ${o};
137
+ height: ${a};
138
+ }
139
+ .${f}::-webkit-scrollbar {
140
+ width: 8px;
141
+ height: 8px;
142
+ }
143
+ .${f}::-webkit-scrollbar-thumb {
144
+ background-color: rgba(0, 0, 0, 0.2);
145
+ border-radius: 4px;
146
+ }
147
+ .${f}::-webkit-scrollbar-track {
148
+ background: rgba(0, 0, 0, 0.05);
149
+ }
150
+ ${s}
151
+ `;return d(`ScrollBar`,e`
152
+ <style>
153
+ ${m}
154
+ </style>
155
+ <div class="${f}">${t(r)}</div>
156
+ `)}function T(t,r){if(r===void 0)return n=>T(t,n??[e``]);let i=t?.sidebarWidth??`240px`,a=t?.sidebarPosition??`left`,o=t?.gap??`0px`,s=e``,c=e``;if(typeof r==`function`){var l;let t=(l=r.call)?.call(r,null)??[];s=t[0]??e``,c=t[1]??e``}else c=n(r);return e`
163
157
  <div
164
158
  style="
165
159
  display: flex;
@@ -172,156 +166,158 @@ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``
172
166
  <div style="flex: 0 0 ${i}; overflow: auto;">${s}</div>
173
167
  <div style="flex: 1 1 auto; overflow: auto;">${c}</div>
174
168
  </div>
175
- `}function C(t={},n){if(n===void 0)return n=>C(t,n??[e``]);let{gap:r=`8px`,snapType:i=`mandatory`,height:a=`auto`,width:o=`100%`,className:s=c(`Swiper::swiper`),direction:l=`x`,scrollBehavior:u=`smooth`,align:d=`start`,showNavigation:f=!0,navigationPosition:p=`inside`,showPagination:m=!0,paginationType:h=`dots`,autoPlay:g=!1,interval:_=3e3,loop:v=!1,touchEnabled:y=!0,mouseWheel:b=!1,onSlideChange:x}=t,S=s,w=S+`-container`,T=S+`-slide`,E=S+`-navigation`,D=S+`-pagination`,O;O=n?typeof n==`function`?n():n:[];let k=O.length,[A,j]=(()=>{let e={value:0};return[()=>e.value,t=>{let n=Math.max(0,Math.min(t,k-1));e.value!==n&&(e.value=n,x?.(n))}]})(),M=e=>{let t=typeof document<`u`?document.querySelector(`.${w}`):null;if(!t)return;let n=t.querySelectorAll(`.${T}`);if(e<0||e>=n.length)return;let r=n[e],i=r.getBoundingClientRect(),a=t.getBoundingClientRect(),o;l===`x`?(o=r.offsetLeft-t.offsetLeft,d===`center`?o-=(a.width-i.width)/2:d===`end`&&(o-=a.width-i.width),t.scrollTo({left:o,behavior:u})):(o=r.offsetTop-t.offsetTop,d===`center`?o-=(a.height-i.height)/2:d===`end`&&(o-=a.height-i.height),t.scrollTo({top:o,behavior:u})),j(e)},N=()=>{let e=A()+1>=k?v?0:A():A()+1;M(e)},P=()=>{let e=A()-1<0?v?k-1:A():A()-1;M(e)},F=()=>{let e=typeof document<`u`?document.querySelector(`.${w}`):null;if(!e)return;let t=e.querySelectorAll(`.${T}`),n=0,r=1/0;t.forEach((t,i)=>{let a=t.getBoundingClientRect(),o=e.getBoundingClientRect(),s;if(l===`x`){let e=a.left+a.width/2-(o.left+o.width/2);s=Math.abs(e)}else{let e=a.top+a.height/2-(o.top+o.height/2);s=Math.abs(e)}s<r&&(r=s,n=i)}),j(n)},I=e=>{if(!y)return;let t=e.touches[0],n=e.currentTarget;n.dataset.touchStartX=t.clientX.toString(),n.dataset.touchStartY=t.clientY.toString()},L=e=>{if(!y)return;let t=e.touches[0],n=e.currentTarget,r=parseFloat(n.dataset.touchStartX||`0`),i=parseFloat(n.dataset.touchStartY||`0`),a=t.clientX-r,o=t.clientY-i;(Math.abs(a)>Math.abs(o)||l===`x`)&&e.preventDefault()},R=e=>{if(!y)return;let t=e.currentTarget,n=parseFloat(t.dataset.touchStartX||`0`),r=parseFloat(t.dataset.touchStartY||`0`);if(!n&&!r)return;let i=e.changedTouches[0],a=i.clientX-n,o=i.clientY-r,s=Math.max(Math.abs(a),Math.abs(o))>30;s&&(l===`x`?a>0?P():N():o>0?P():N()),delete t.dataset.touchStartX,delete t.dataset.touchStartY},z=e=>{b&&(e.preventDefault(),e.deltaY>0?N():P())},B=e=>{if(!g||!e)return;let t,n=()=>{t=setInterval(N,_)},r=()=>{clearInterval(t)};return e.addEventListener(`mouseenter`,r),e.addEventListener(`mouseleave`,n),n(),()=>{clearInterval(t),e.removeEventListener(`mouseenter`,r),e.removeEventListener(`mouseleave`,n)}},V=()=>{let e=typeof document<`u`?document.querySelector(`.${w}`):null;if(!e)return;let t=[];e.addEventListener(`scroll`,F),t.push(()=>e.removeEventListener(`scroll`,F)),y&&(e.addEventListener(`touchstart`,I),e.addEventListener(`touchmove`,L,{passive:!1}),e.addEventListener(`touchend`,R),t.push(()=>e.removeEventListener(`touchstart`,I)),t.push(()=>e.removeEventListener(`touchmove`,L)),t.push(()=>e.removeEventListener(`touchend`,R))),b&&(e.addEventListener(`wheel`,z,{passive:!1}),t.push(()=>e.removeEventListener(`wheel`,z)));let n=B(e);return n&&t.push(n),M(0),()=>t.forEach(e=>e())};typeof window<`u`&&typeof document<`u`&&setTimeout(V,0);let H=e`
176
- <div class="${D}">
177
- ${Array.from({length:k},(t,n)=>e`
169
+ `}function E(t={},n){if(n===void 0)return n=>E(t,n??[e``]);let r=u(`Swiper`),{gap:i=`8px`,snapType:a=`mandatory`,height:o=`auto`,width:s=`100%`,className:l=c(`Swiper::swiper`)+`-lyco-now-${r}`,direction:f=`x`,scrollBehavior:p=`smooth`,align:m=`start`,showNavigation:h=!0,navigationPosition:g=`inside`,showPagination:_=!0,paginationType:v=`dots`,autoPlay:y=!1,interval:b=3e3,loop:x=!1,touchEnabled:S=!0,mouseWheel:C=!1,onSlideChange:w}=t,T=l,D=T+`-container`,O=T+`-slide`,k=T+`-navigation`,A=T+`-pagination`,j;j=n?typeof n==`function`?n():n:[];let M=j.length,[N,P]=(()=>{let e={value:0};return[()=>e.value,t=>{let n=Math.max(0,Math.min(t,M-1));e.value!==n&&(e.value=n,w?.(n))}]})(),F=e=>{let t=typeof document<`u`?document.querySelector(`.${D}`):null;if(!t)return;let n=t.querySelectorAll(`.${O}`);if(e<0||e>=n.length)return;let r=n[e],i=r.getBoundingClientRect(),a=t.getBoundingClientRect(),o;f===`x`?(o=r.offsetLeft-t.offsetLeft,m===`center`?o-=(a.width-i.width)/2:m===`end`&&(o-=a.width-i.width),t.scrollTo({left:o,behavior:p})):(o=r.offsetTop-t.offsetTop,m===`center`?o-=(a.height-i.height)/2:m===`end`&&(o-=a.height-i.height),t.scrollTo({top:o,behavior:p})),P(e)},I=()=>{let e=N()+1>=M?x?0:N():N()+1;F(e)},L=()=>{let e=N()-1<0?x?M-1:N():N()-1;F(e)},R=()=>{let e=typeof document<`u`?document.querySelector(`.${D}`):null;if(!e)return;let t=e.querySelectorAll(`.${O}`),n=0,r=1/0;t.forEach((t,i)=>{let a=t.getBoundingClientRect(),o=e.getBoundingClientRect(),s;if(f===`x`){let e=a.left+a.width/2-(o.left+o.width/2);s=Math.abs(e)}else{let e=a.top+a.height/2-(o.top+o.height/2);s=Math.abs(e)}s<r&&(r=s,n=i)}),P(n)},z=e=>{if(!S)return;let t=e.touches[0],n=e.currentTarget;n.dataset.touchStartX=t.clientX.toString(),n.dataset.touchStartY=t.clientY.toString()},B=e=>{if(!S)return;let t=e.touches[0],n=e.currentTarget,r=parseFloat(n.dataset.touchStartX||`0`),i=parseFloat(n.dataset.touchStartY||`0`),a=t.clientX-r,o=t.clientY-i;(Math.abs(a)>Math.abs(o)||f===`x`)&&e.preventDefault()},V=e=>{if(!S)return;let t=e.currentTarget,n=parseFloat(t.dataset.touchStartX||`0`),r=parseFloat(t.dataset.touchStartY||`0`);if(!n&&!r)return;let i=e.changedTouches[0],a=i.clientX-n,o=i.clientY-r,s=Math.max(Math.abs(a),Math.abs(o))>30;s&&(f===`x`?a>0?L():I():o>0?L():I()),delete t.dataset.touchStartX,delete t.dataset.touchStartY},H=e=>{C&&(e.preventDefault(),e.deltaY>0?I():L())},U=e=>{if(!y||!e)return;let t,n=()=>{t=setInterval(I,b)},r=()=>{clearInterval(t)};return e.addEventListener(`mouseenter`,r),e.addEventListener(`mouseleave`,n),n(),()=>{clearInterval(t),e.removeEventListener(`mouseenter`,r),e.removeEventListener(`mouseleave`,n)}},W=()=>{let e=typeof document<`u`?document.querySelector(`.${D}`):null;if(!e)return;let t=[];e.addEventListener(`scroll`,R),t.push(()=>e.removeEventListener(`scroll`,R)),S&&(e.addEventListener(`touchstart`,z),e.addEventListener(`touchmove`,B,{passive:!1}),e.addEventListener(`touchend`,V),t.push(()=>e.removeEventListener(`touchstart`,z)),t.push(()=>e.removeEventListener(`touchmove`,B)),t.push(()=>e.removeEventListener(`touchend`,V))),C&&(e.addEventListener(`wheel`,H,{passive:!1}),t.push(()=>e.removeEventListener(`wheel`,H)));let n=U(e);return n&&t.push(n),F(0),()=>t.forEach(e=>e())};typeof window<`u`&&typeof document<`u`&&setTimeout(W,0);let G=e`
170
+ <div class="${A}">
171
+ ${Array.from({length:M},(t,n)=>e`
178
172
  <button
179
- class="${n===A()?`active`:``}"
180
- @click=${()=>M(n)}
173
+ class="${n===N()?`active`:``}"
174
+ @click=${()=>F(n)}
181
175
  ></button>
182
176
  `)}
183
177
  </div>
184
- `,U=e`
185
- <div class="${D} fraction">
186
- <span class="current">${A()+1}</span>
178
+ `,K=e`
179
+ <div class="${A} fraction">
180
+ <span class="current">${N()+1}</span>
187
181
  <span class="separator">/</span>
188
- <span class="total">${k}</span>
182
+ <span class="total">${M}</span>
189
183
  </div>
190
- `,W=e`
191
- <div class="${D} progressbar">
184
+ `,q=e`
185
+ <div class="${A} progressbar">
192
186
  <div
193
187
  class="progress"
194
- style="width: ${k>1?A()/(k-1)*100:0}%"
188
+ style="width: ${M>1?N()/(M-1)*100:0}%"
195
189
  ></div>
196
190
  </div>
197
- `,G=e`
198
- <div class="${E}">
199
- <button class="prev" @click=${P}>◀</button>
200
- <button class="next" @click=${N}>▶</button>
191
+ `,J=e`
192
+ <div class="${k}">
193
+ <button class="prev" @click=${L}>◀</button>
194
+ <button class="next" @click=${I}>▶</button>
201
195
  </div>
202
- `;return e`
203
- <style>
204
- .${S} {
205
- position: relative;
206
- overflow: hidden;
207
- width: ${o};
208
- height: ${a};
209
- }
196
+ `,Y=`
197
+ .${T} {
198
+ position: relative;
199
+ overflow: hidden;
200
+ width: ${s};
201
+ height: ${o};
202
+ }
210
203
 
211
- .${w} {
212
- width: 100%;
213
- height: 100%;
214
- overflow: auto;
215
- scroll-snap-type: ${l+` `+i};
216
- -webkit-overflow-scrolling: touch;
217
- scroll-behavior: ${u};
218
- gap: ${r};
219
- display: flex;
220
- flex-direction: ${l===`x`?`row`:`column`};
221
- }
204
+ .${D} {
205
+ width: 100%;
206
+ height: 100%;
207
+ overflow: auto;
208
+ scroll-snap-type: ${f+` `+a};
209
+ -webkit-overflow-scrolling: touch;
210
+ scroll-behavior: ${p};
211
+ gap: ${i};
212
+ display: flex;
213
+ flex-direction: ${f===`x`?`row`:`column`};
214
+ }
222
215
 
223
- .${T} {
224
- scroll-snap-align: ${d};
225
- flex-shrink: 0;
226
- }
216
+ .${O} {
217
+ scroll-snap-align: ${m};
218
+ flex-shrink: 0;
219
+ }
227
220
 
228
- .${E} {
229
- position: absolute;
230
- top: 50%;
231
- left: 0;
232
- right: 0;
233
- transform: translateY(-50%);
234
- display: flex;
235
- justify-content: space-between;
236
- pointer-events: none;
237
- padding: ${p===`outside`?`0 1rem`:`0 0.5rem`};
238
- }
221
+ .${k} {
222
+ position: absolute;
223
+ top: 50%;
224
+ left: 0;
225
+ right: 0;
226
+ transform: translateY(-50%);
227
+ display: flex;
228
+ justify-content: space-between;
229
+ pointer-events: none;
230
+ padding: ${g===`outside`?`0 1rem`:`0 0.5rem`};
231
+ }
239
232
 
240
- .${E} button {
241
- width: 2.5rem;
242
- height: 2.5rem;
243
- border-radius: 50%;
244
- background-color: rgba(0, 0, 0, 0.5);
245
- color: white;
246
- border: none;
247
- display: flex;
248
- align-items: center;
249
- justify-content: center;
250
- cursor: pointer;
251
- pointer-events: auto;
252
- transition: background-color 0.3s;
253
- }
233
+ .${k} button {
234
+ width: 2.5rem;
235
+ height: 2.5rem;
236
+ border-radius: 50%;
237
+ background-color: rgba(0, 0, 0, 0.5);
238
+ color: white;
239
+ border: none;
240
+ display: flex;
241
+ align-items: center;
242
+ justify-content: center;
243
+ cursor: pointer;
244
+ pointer-events: auto;
245
+ transition: background-color 0.3s;
246
+ }
254
247
 
255
- .${E} button:hover {
256
- background-color: rgba(0, 0, 0, 0.8);
257
- }
248
+ .${k} button:hover {
249
+ background-color: rgba(0, 0, 0, 0.8);
250
+ }
258
251
 
259
- .${D} {
260
- position: absolute;
261
- bottom: 1rem;
262
- left: 0;
263
- right: 0;
264
- display: flex;
265
- justify-content: center;
266
- gap: 0.5rem;
267
- align-items: center;
268
- }
269
- .${D} button {
270
- width: 0.75rem;
271
- height: 0.75rem;
272
- border-radius: 50%;
273
- background-color: rgba(255, 255, 255, 0.5);
274
- border: none;
275
- cursor: pointer;
276
- transition: background-color 0.3s, transform 0.3s;
277
- }
278
- .${D} button.active {
279
- background-color: white;
280
- transform: scale(1.2);
281
- }
252
+ .${A} {
253
+ position: absolute;
254
+ bottom: 1rem;
255
+ left: 0;
256
+ right: 0;
257
+ display: flex;
258
+ justify-content: center;
259
+ gap: 0.5rem;
260
+ align-items: center;
261
+ }
262
+ .${A} button {
263
+ width: 0.75rem;
264
+ height: 0.75rem;
265
+ border-radius: 50%;
266
+ background-color: rgba(255, 255, 255, 0.5);
267
+ border: none;
268
+ cursor: pointer;
269
+ transition: background-color 0.3s, transform 0.3s;
270
+ }
271
+ .${A} button.active {
272
+ background-color: white;
273
+ transform: scale(1.2);
274
+ }
282
275
 
283
- .${D}.fraction {
284
- position: absolute;
285
- bottom: 1rem;
286
- left: 50%;
287
- transform: translateX(-50%);
288
- color: white;
289
- font-size: 1rem;
290
- display: flex;
291
- align-items: center;
292
- gap: 0.25rem;
293
- }
276
+ .${A}.fraction {
277
+ position: absolute;
278
+ bottom: 1rem;
279
+ left: 50%;
280
+ transform: translateX(-50%);
281
+ color: white;
282
+ font-size: 1rem;
283
+ display: flex;
284
+ align-items: center;
285
+ gap: 0.25rem;
286
+ }
294
287
 
295
- .${D}.progressbar {
296
- position: absolute;
297
- bottom: 0.5rem;
298
- left: 0;
299
- right: 0;
300
- height: 0.25rem;
301
- background-color: rgba(255, 255, 255, 0.2);
302
- }
303
- .${D}.progressbar .progress {
304
- height: 100%;
305
- background-color: white;
306
- transition: width 0.3s;
307
- }
308
- </style>
288
+ .${A}.progressbar {
289
+ position: absolute;
290
+ bottom: 0.5rem;
291
+ left: 0;
292
+ right: 0;
293
+ height: 0.25rem;
294
+ background-color: rgba(255, 255, 255, 0.2);
295
+ }
296
+ .${A}.progressbar .progress {
297
+ height: 100%;
298
+ background-color: white;
299
+ transition: width 0.3s;
300
+ }
301
+ `;return d(`Swiper`,e`
302
+ <style>
303
+ ${Y}
304
+ </style>
309
305
 
310
- <div class="${S}">
311
- <div class="${w}">
312
- ${O.map((t,n)=>e`
313
- <div class="${T} --slide-${n}" key=${n}>
314
- ${t}
315
- </div>
316
- `)}
317
- </div>
306
+ <div class="${T}">
307
+ <div class="${D}">
308
+ ${j.map((t,n)=>e`
309
+ <div class="${O} --slide-${n}" key=${n}>
310
+ ${t}
311
+ </div>
312
+ `)}
313
+ </div>
318
314
 
319
- ${f?G:null}
320
- ${m&&h===`dots`?H:null}
321
- ${m&&h===`fraction`?U:null}
322
- ${m&&h===`progressbar`?W:null}
323
- </div>
324
- `}function w(n,r){let a=n?.top?`top: ${n.top};`:``,o=n?.right?`right: ${n.right};`:``,s=n?.bottom?`bottom: ${n.bottom};`:``,c=n?.left?`left: ${n.left};`:``,l=n?.width?`width: ${n.width};`:``,u=n?.height?`height: ${n.height};`:``,d=typeof n?.zIndex==`number`?`z-index: ${n.zIndex};`:``,f=n?.style?n.style:``,p=n?.className?n.className:``,m=n=>e`
315
+ ${h?J:null}
316
+ ${_&&v===`dots`?G:null}
317
+ ${_&&v===`fraction`?K:null}
318
+ ${_&&v===`progressbar`?q:null}
319
+ </div>
320
+ `)}function D(n,r){let a=n?.top?`top: ${n.top};`:``,o=n?.right?`right: ${n.right};`:``,s=n?.bottom?`bottom: ${n.bottom};`:``,c=n?.left?`left: ${n.left};`:``,l=n?.width?`width: ${n.width};`:``,u=n?.height?`height: ${n.height};`:``,d=typeof n?.zIndex==`number`?`z-index: ${n.zIndex};`:``,f=n?.style?n.style:``,p=n?.className?n.className:``,m=n=>e`
325
321
  <div
326
322
  class="${p}"
327
323
  style="
@@ -334,7 +330,7 @@ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``
334
330
  >
335
331
  ${t(n)}
336
332
  </div>
337
- `;return i(r,m)}function T(t,n){let r=t?.width??`300px`,i=t?.height??`auto`,o=t?.top??`20%`,s=t?.bottom??`auto`,c=t?.left??`50%`,l=t?.right??`auto`,u=c===`auto`?``:`transform: translateX(-50%);`,d=t?.background??`rgba(255, 255, 255, 0.3)`,f=t?.blur??`10px`,p=t?.borderRadius??`12px`,m=t?.padding??`16px`,h=t?.zIndex??1e3,g=t=>e`
333
+ `;return i(r,m)}function O(t,n){let r=t?.width??`300px`,i=t?.height??`auto`,o=t?.top??`20%`,s=t?.bottom??`auto`,c=t?.left??`50%`,l=t?.right??`auto`,u=c===`auto`?``:`transform: translateX(-50%);`,d=t?.background??`rgba(255, 255, 255, 0.3)`,f=t?.blur??`10px`,p=t?.borderRadius??`12px`,m=t?.padding??`16px`,h=t?.zIndex??1e3,g=t=>e`
338
334
  <div
339
335
  style="
340
336
  position: fixed;
@@ -358,7 +354,7 @@ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``
358
354
  >
359
355
  ${t}
360
356
  </div>
361
- `;return a(n,void 0,g)}function E(t,r){if(r===void 0)return n=>E(t,n??[e``]);let i=`${100/t.ratio}%`,a=t.maxWidth?`max-width: ${t.maxWidth};`:``,o=t.background?`background: ${t.background};`:``,s=t.overflow??`hidden`;return e`
357
+ `;return a(n,void 0,g)}function k(t,r){if(r===void 0)return n=>k(t,n??[e``]);let i=`${100/t.ratio}%`,a=t.maxWidth?`max-width: ${t.maxWidth};`:``,o=t.background?`background: ${t.background};`:``,s=t.overflow??`hidden`;return e`
362
358
  <div
363
359
  style="
364
360
  position: relative;
@@ -381,18 +377,18 @@ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``
381
377
  ${n(r)}
382
378
  </div>
383
379
  </div>
384
- `}function D(n,r){if(r===void 0){let t=e=>D(n,e);return t.html=(t,...r)=>D(n,e(t,...r)),t}let i=c(`AutoFitGrid::auto-fit-grid`),a=n?.gap??`16px`,o=`
385
- .${i} {
380
+ `}function A(n,r){if(r===void 0){let t=e=>A(n,e);return t.html=(t,...r)=>A(n,e(t,...r)),t}let i=u(`AutoFitGrid`),a=c(`AutoFitGrid::auto-fit-grid`)+`-lyco-now-`+i,o=n?.gap??`16px`,s=`
381
+ .${a} {
386
382
  display: grid;
387
383
  grid-template-columns: repeat(auto-fit, minmax(${n.minItemWidth}, 1fr));
388
- gap: ${a};
384
+ gap: ${o};
389
385
  }
390
- `;return e`
391
- <style>
392
- ${o}
393
- </style>
394
- <div class="${i}">${t(r)}</div>
395
- `}function O(t,r){if(r===void 0)return n=>O(t,n??[e``]);let i=t?.size??`32px`,a=t?.overlap??`-8px`,o=(t,n)=>e`
386
+ `;return d(`AutoFitGrid`,e`
387
+ <style>
388
+ ${s}
389
+ </style>
390
+ <div class="${a}">${t(r)}</div>
391
+ `)}function j(t,r){if(r===void 0)return n=>j(t,n??[e``]);let i=t?.size??`32px`,a=t?.overlap??`-8px`,o=(t,n)=>e`
396
392
  <div
397
393
  style="
398
394
  width: ${i};
@@ -410,7 +406,7 @@ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``
410
406
  <div style="display: flex; align-items: center;">
411
407
  ${n(r,o)}
412
408
  </div>
413
- `}function k(n,r){if(r===void 0){let t=t=>k(n,t??e``);return t.html=(t,...r)=>k(n,e(t,...r)),t}let i=n?.position??`top-right`,a=n?.size??`16px`,o=n?.background??`red`,s=n?.color??`#fff`,[c,l,u,d]=[i.includes(`top`)?`0`:`auto`,i.includes(`right`)?`0`:`auto`,i.includes(`bottom`)?`0`:`auto`,i.includes(`left`)?`0`:`auto`];return e`
409
+ `}function M(n,r){if(r===void 0){let t=t=>M(n,t??e``);return t.html=(t,...r)=>M(n,e(t,...r)),t}let i=n?.position??`top-right`,a=n?.size??`16px`,o=n?.background??`red`,s=n?.color??`#fff`,[c,l,u,d]=[i.includes(`top`)?`0`:`auto`,i.includes(`right`)?`0`:`auto`,i.includes(`bottom`)?`0`:`auto`,i.includes(`left`)?`0`:`auto`];return e`
414
410
  <div style="position: relative; display: inline-block;">
415
411
  ${t(r)}
416
412
  <div
@@ -435,7 +431,7 @@ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``
435
431
  ${n?.content??``}
436
432
  </div>
437
433
  </div>
438
- `}function A(t,r){if(r===void 0)return n=>A(t,n??[e``]);let i=t?.padding??`16px`,a=t?.borderRadius??`8px`,o=t?.shadow??`0 2px 8px rgba(0,0,0,0.1)`,s=t?.background??`#fff`;return e`
434
+ `}function N(t,r){if(r===void 0)return n=>N(t,n??[e``]);let i=t?.padding??`16px`,a=t?.borderRadius??`8px`,o=t?.shadow??`0 2px 8px rgba(0,0,0,0.1)`,s=t?.background??`#fff`;return e`
439
435
  <div
440
436
  style="
441
437
  background: ${s};
@@ -447,7 +443,7 @@ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``
447
443
  >
448
444
  ${n(r)}
449
445
  </div>
450
- `}function j(n,r){if(r===void 0){let t=t=>j(n,t??e``);return t.html=(t,...r)=>j(n,e(t,...r)),t}let i=n?.width?`width: ${n.width};`:``,a=n?.height?`height: ${n.height};`:``,o=n?.background?`background: ${n.background};`:``;return e`
446
+ `}function P(n,r){if(r===void 0){let t=t=>P(n,t??e``);return t.html=(t,...r)=>P(n,e(t,...r)),t}let i=n?.width?`width: ${n.width};`:``,a=n?.height?`height: ${n.height};`:``,o=n?.background?`background: ${n.background};`:``;return e`
451
447
  <div
452
448
  style="
453
449
  display: flex;
@@ -458,7 +454,7 @@ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``
458
454
  >
459
455
  ${t(r)}
460
456
  </div>
461
- `}function M(t,r){if(r===void 0)return n=>M(t,n??[e``]);let i=t?.maxWidth??`1024px`,a=t?.padding??`0 16px`,o=t?.background?`background: ${t.background};`:``,s=t?.fullHeight?`height: 100%;`:``;return e`
457
+ `}function F(t,r){if(r===void 0)return n=>F(t,n??[e``]);let i=t?.maxWidth??`1024px`,a=t?.padding??`0 16px`,o=t?.background?`background: ${t.background};`:``,s=t?.fullHeight?`height: 100%;`:``;return e`
462
458
  <div
463
459
  style="
464
460
  width: 100%;
@@ -473,7 +469,7 @@ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``
473
469
  >
474
470
  ${n(r)}
475
471
  </div>
476
- `}function N(t){let n=t?.orientation??`horizontal`,r=t?.thickness??`1px`,i=t?.color??`#e0e0e0`,a=t?.margin??(n===`horizontal`?`8px 0`:`0 8px`),o=n===`horizontal`?`width: 100%; height: ${r}; background: ${i}; margin: ${a};`:`width: ${r}; height: 100%; background: ${i}; margin: ${a};`;return e`<div style="${o}"></div>`}function P(n,r){if(r===void 0){let t=t=>P(n,t??e``);return t.html=(t,...r)=>P(n,e(t,...r)),t}let i=n?.columns??4,a=n?.gap??`24px`,o=n?.background??`#f8f8f8`,s=n?.padding??`40px 16px`;return e`
472
+ `}function I(t){let n=t?.orientation??`horizontal`,r=t?.thickness??`1px`,i=t?.color??`#e0e0e0`,a=t?.margin??(n===`horizontal`?`8px 0`:`0 8px`),o=n===`horizontal`?`width: 100%; height: ${r}; background: ${i}; margin: ${a};`:`width: ${r}; height: 100%; background: ${i}; margin: ${a};`;return e`<div style="${o}"></div>`}function L(n,r){if(r===void 0){let t=t=>L(n,t??e``);return t.html=(t,...r)=>L(n,e(t,...r)),t}let i=n?.columns??4,a=n?.gap??`24px`,o=n?.background??`#f8f8f8`,s=n?.padding??`40px 16px`;return e`
477
473
  <div
478
474
  style="
479
475
  width: 100%;
@@ -495,22 +491,21 @@ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``
495
491
  © ${new Date().getFullYear()} Your Company. All rights reserved.
496
492
  </div>
497
493
  </div>
498
- `}function F(n,r){if(r===void 0){let t=t=>F(n,t??e``);return t.html=(t,...r)=>F(n,e(t,...r)),t}let i=n.defaultColumns??1,a=n.gap??`16px`,o=n.className??c(`GridBreakpoint::grid-breakpoint`),s=Object.entries(n.breakpoints).map(([e,t])=>`
499
- @media ${e} {
500
- .${o} { grid-template-columns: repeat(${t}, 1fr); }
501
- }
502
- `).join(`
503
- `);return e`
504
- <style>
505
- .${o} {
506
- display: grid;
507
- grid-template-columns: repeat(${i}, 1fr);
508
- gap: ${a};
509
- }
510
- ${s}
511
- </style>
512
- <div class="${o}">${t(r)}</div>
513
- `}function I(t,r){if(r===void 0)return n=>I(t,n??[e``]);let i=t?.backgroundImage?`background-image: url('${t.backgroundImage}');`:``,a=t?.height??`400px`,o=t?.overlayColor??`rgba(0, 0, 0, 0.3)`;return e`
494
+ `}function R(n,r){if(r===void 0){let t=t=>R(n,t??e``);return t.html=(t,...r)=>R(n,e(t,...r)),t}let i=n.defaultColumns??1,a=n.gap??`16px`,o=u(`GridBreakpoint`),s=n.className??c(`GridBreakpoint::grid-breakpoint`)+`-lyco-now-`+o,l=Object.entries(n.breakpoints).map(([e,t])=>`@media`+e+`{
495
+ `+s+`{ grid-template-columns: repeat(`+t+`, 1fr); }
496
+ }`).join(`
497
+ `),f=`
498
+ .${s} {
499
+ display: grid;
500
+ grid-template-columns: repeat(${i}, 1fr);
501
+ gap: ${a};
502
+ }
503
+ ${l}`;return d(`GridBreakpoint`,e`
504
+ <style>
505
+ ${f}
506
+ </style>
507
+ <div class="${s}">${t(r)}</div>
508
+ `)}function z(t,r){if(r===void 0)return n=>z(t,n??[e``]);let i=t?.backgroundImage?`background-image: url('${t.backgroundImage}');`:``,a=t?.height??`400px`,o=t?.overlayColor??`rgba(0, 0, 0, 0.3)`;return e`
514
509
  <div
515
510
  style="
516
511
  position: relative;
@@ -547,37 +542,40 @@ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``
547
542
  ${n(r)}
548
543
  </div>
549
544
  </div>
550
- `}function L(n,r){if(r===void 0){let t=t=>L(n,t??e``);return t.html=(t,...r)=>L(n,e(t,...r)),t}let i=n?.breakpoint??`(max-width: 600px)`,a=n?.mode??`hide`,o=n?.className??c(`Hidden::hidden-container`),s=a===`hide`?`@media ${i} { .${o} { display: none !important; } }`:`@media ${i} { .${o} { display: block !important; } }
551
- @media not ${i} { .${o} { display: none !important; } }`;return e`
552
- <style>
553
- .${o} {
554
- display: block;
555
- }
556
- ${s}
557
- </style>
558
- <div class="${o}">${t(r)}</div>
559
- `}function R(t,r){let i=t?.bordered?`border: 1px solid #ddd; border-radius: 4px`:``,o=t?.striped?`li:nth-child(even) { background: #f9f9f9; }`:``,s=t?.hover?`li:hover { background: #f1f1f1; cursor: pointer; }`:``,l=t?.className??c(`ListGroup::list-group`),u=(t,n,r,i)=>r?e` <li>${t}</li> `:t,d=r=>e`
560
- <style>
561
- ul.${l} {
562
- list-style: none;
563
- margin: 0;
564
- padding: 0;
565
- ${i};
566
- }
567
- ul.${l} li {
568
- padding: 12px 16px;
569
- ${t?.bordered?`border-bottom: 1px solid #ddd`:``};
570
- }
571
- ul.${l} li:last-child {
572
- ${t?.bordered?`border-bottom: none`:``};
573
- }
574
- ${o}
575
- ${s}
576
- </style>
577
- <ul class="${l}">
578
- ${n(r,u)}
579
- </ul>
580
- `;return a(r,d)}function z(t,r){if(r===void 0)return n=>z(t,n??[e``]);let i=t?.background??`rgba(0, 0, 0, 0.5)`,a=t?.zIndex??1e3,o=t?.fullScreen!==!1;return e`
545
+ `}function B(n,r){if(r===void 0){let t=t=>B(n,t??e``);return t.html=(t,...r)=>B(n,e(t,...r)),t}let i=n?.breakpoint??`(max-width: 600px)`,a=n?.mode??`hide`,o=u(`Hidden`),s=n?.className??c(`Hidden::hidden-container`)+`-lyco-now-`+o,l=a===`hide`?`@media ${i} { .${s} { display: none !important; } }`:`@media ${i} { .${s} { display: block !important; } }
546
+ @media not ${i} { .${s} { display: none !important; } }`,f=`
547
+ .${s} {
548
+ display: block;
549
+ }
550
+ ${l}`;return d(`Hidden`,e`
551
+ <style>
552
+ ${f}
553
+ </style>
554
+ <div class="${s}">${t(r)}</div>
555
+ `)}function V(t,r){let i=t?.bordered?`border: 1px solid #ddd; border-radius: 4px`:``,o=t?.striped?`li:nth-child(even) { background: #f9f9f9; }`:``,s=t?.hover?`li:hover { background: #f1f1f1; cursor: pointer; }`:``,l=u(`ListGroup`),f=t?.className??c(`ListGroup::list-group`)+`-lyco-now-`+l,p=(t,n,r,i)=>r?e` <li>${t}</li> `:t,m=`
556
+ ul.${f} {
557
+ list-style: none;
558
+ margin: 0;
559
+ padding: 0;
560
+ ${i};
561
+ }
562
+ ul.${f} li {
563
+ padding: 12px 16px;
564
+ ${t?.bordered?`border-bottom: 1px solid #ddd`:``};
565
+ }
566
+ ul.${f} li:last-child {
567
+ ${t?.bordered?`border-bottom: none`:``};
568
+ }
569
+ ${o}
570
+ ${s}
571
+ `,h=t=>d(`ListGroup`,e`
572
+ <style>
573
+ ${m}
574
+ </style>
575
+ <ul class="${f}">
576
+ ${n(t,p)}
577
+ </ul>
578
+ `);return a(r,h)}function H(t,r){if(r===void 0)return n=>H(t,n??[e``]);let i=t?.background??`rgba(0, 0, 0, 0.5)`,a=t?.zIndex??1e3,o=t?.fullScreen!==!1;return e`
581
579
  <div
582
580
  style="
583
581
  position: ${o?`fixed`:`absolute`};
@@ -591,7 +589,7 @@ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``
591
589
  >
592
590
  ${n(r)}
593
591
  </div>
594
- `}function B(n,r){if(r===void 0){let t=t=>B(n,t??e``);return t.html=(t,...r)=>B(n,e(t,...r)),t}let i=n?.width?`width: ${n.width};`:``,a=n?.height?`height: ${n.height};`:``,o=n?.background?`background: ${n.background};`:``;return e`
592
+ `}function U(n,r){if(r===void 0){let t=t=>U(n,t??e``);return t.html=(t,...r)=>U(n,e(t,...r)),t}let i=n?.width?`width: ${n.width};`:``,a=n?.height?`height: ${n.height};`:``,o=n?.background?`background: ${n.background};`:``;return e`
595
593
  <div
596
594
  style="
597
595
  position: relative;
@@ -601,23 +599,23 @@ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``
601
599
  >
602
600
  ${t(r)}
603
601
  </div>
604
- `}function V(t){let n=t?.width?`width: ${t.width};`:``,r=t?.height?`height: ${t.height};`:``;return e` <div style="${n} ${r}"></div> `}function H(t){let n=t?.type??`rect`,r=t?.width??`100%`,i=t?.height??`16px`,a=t?.borderRadius??`4px`,o=t?.animation!==!1,s=t?.className??c(`SkeletonLoader::skeleton-shimmer`),l=n===`circle`?`border-radius: 50%; width: ${r}; height: ${r}`:`border-radius: ${a}; width: ${r}; height: ${i}`;return e`
605
- <style>
606
- ${`
607
- @keyframes ${s+`-shimmer`} {
608
- 0% { background-color: #eee; }
609
- 50% { background-color: #ddd; }
610
- 100% { background-color: #eee; }
611
- }
612
- `}
613
- .${s} {
614
- ${l};
615
- background-color: #eee;
616
- ${o?`animation: ${s+`-shimmer`} 1.2s infinite ease-in-out`:``};
617
- }
618
- </style>
619
- <div class="${s}"></div>
620
- `}function U(){return e`<div style="flex: 1 1 auto;"></div>`}function W(n,r){if(r===void 0){let t=t=>W(n,t??e``);return t.html=(t,...r)=>W(n,e(t,...r)),t}let i=n?.top?`top: ${n.top};`:``,a=n?.bottom?`bottom: ${n.bottom};`:``,o=typeof n?.zIndex==`number`?`z-index: ${n.zIndex};`:``;return e`
602
+ `}function W(t){let n=t?.width?`width: ${t.width};`:``,r=t?.height?`height: ${t.height};`:``;return e` <div style="${n} ${r}"></div> `}function G(t){let n=t?.type??`rect`,r=t?.width??`100%`,i=t?.height??`16px`,a=t?.borderRadius??`4px`,o=t?.animation!==!1,s=u(`SkeletonLoader`),l=t?.className??c(`SkeletonLoader::skeleton-shimmer`)+`-lyco-now-`+s,f=n===`circle`?`border-radius: 50%; width: ${r}; height: ${r}`:`border-radius: ${a}; width: ${r}; height: ${i}`;return d(`SkeletonLoader`,e`
603
+ <style>
604
+ ${`
605
+ @keyframes ${l+`-shimmer`} {
606
+ 0% { background-color: #eee; }
607
+ 50% { background-color: #ddd; }
608
+ 100% { background-color: #eee; }
609
+ }
610
+ `}
611
+ .${l} {
612
+ ${f};
613
+ background-color: #eee;
614
+ ${o?`animation: ${l+`-shimmer`} 1.2s infinite ease-in-out`:``};
615
+ }
616
+ </style>
617
+ <div class="${l}"></div>
618
+ `)}function K(){return e`<div style="flex: 1 1 auto;"></div>`}function q(n,r){if(r===void 0){let t=t=>q(n,t??e``);return t.html=(t,...r)=>q(n,e(t,...r)),t}let i=n?.top?`top: ${n.top};`:``,a=n?.bottom?`bottom: ${n.bottom};`:``,o=typeof n?.zIndex==`number`?`z-index: ${n.zIndex};`:``;return e`
621
619
  <div
622
620
  style="
623
621
  position: sticky;
@@ -627,35 +625,37 @@ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``
627
625
  >
628
626
  ${t(r)}
629
627
  </div>
630
- `}function G(n,r){if(r===void 0){let t=t=>G(n,t??e``);return t.html=(t,...r)=>G(n,e(t,...r)),t}let i=n?.className??c(`Table::table`),a=n?.striped?`
631
- .${i} tr:nth-child(even) { background: #f9f9f9; }
632
- `:``,o=n?.hover?`
633
- .${i} tr:hover { background: #f1f1f1; }
634
- `:``,s=n?.bordered?`
635
- .${i}, .${i} th, .${i} td { border: 1px solid #ddd; }
636
- `:``;return e`
637
- <style>
638
- /* 将表格包裹在带有 _className 的 div 里,使后续 CSS 作用于该 div 下的 table */
639
- .${i} table {
640
- width: 100%;
641
- border-collapse: collapse;
642
- }
643
- .${i} th,
644
- .${i} td {
645
- padding: 8px 12px;
646
- text-align: left;
647
- }
648
- ${a}
649
- ${o}
650
- ${s}
651
- </style>
628
+ `}function J(n,r){if(r===void 0){let t=t=>J(n,t??e``);return t.html=(t,...r)=>J(n,e(t,...r)),t}let i=u(`Table`),a=n?.className??c(`Table::table`)+`-lyco-now-${i}`,o=n?.striped?`
629
+ .${a} tr:nth-child(even) { background: #f9f9f9; }
630
+ `:``,s=n?.hover?`
631
+ .${a} tr:hover { background: #f1f1f1; }
632
+ `:``,l=n?.bordered?`
633
+ .${a}, .${a} th, .${a} td { border: 1px solid #ddd; }
634
+ `:``,f=`
635
+ /* 将表格包裹在带有 _className 的 div 里,使后续 CSS 作用于该 div 下的 table */
636
+ .${a} table {
637
+ width: 100%;
638
+ border-collapse: collapse;
639
+ }
640
+ .${a} th,
641
+ .${a} td {
642
+ padding: 8px 12px;
643
+ text-align: left;
644
+ }
645
+ ${o}
646
+ ${s}
647
+ ${l}
648
+ `;return d(`Table`,e`
649
+ <style>
650
+ ${f}
651
+ </style>
652
652
 
653
- <div class="${i}">
654
- <table>
655
- ${t(r)}
656
- </table>
657
- </div>
658
- `}function K(t,r){let i=t?.direction??`row`;return r===void 0?n=>K(t,n??e``):e`
653
+ <div class="${a}">
654
+ <table>
655
+ ${t(r)}
656
+ </table>
657
+ </div>
658
+ `)}function Y(t,r){let i=t?.direction??`row`;return r===void 0?n=>Y(t,n??e``):e`
659
659
  <div
660
660
  style="
661
661
  display: flex;
@@ -668,7 +668,7 @@ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``
668
668
  >
669
669
  ${n(r)}
670
670
  </div>
671
- `}function q(t,r){let i=t?.width?`width: ${t.width};`:``,a=t?.height?`height: ${t.height};`:``,o=t?.background?`background: ${t.background};`:``;if(r===void 0)return n=>q(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`
671
+ `}function X(t,r){let i=t?.width?`width: ${t.width};`:``,a=t?.height?`height: ${t.height};`:``,o=t?.background?`background: ${t.background};`:``;if(r===void 0)return n=>X(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`
672
672
  <div
673
673
  style="
674
674
  position: relative;
@@ -680,5 +680,5 @@ import{html as e}from"lit";function t(t){return t?typeof t==`function`?t():t:e``
680
680
  >
681
681
  ${n(r)}
682
682
  </div>
683
- `}export{w as AbsoluteBox,T as AcrylicBar,E as AspectRatio,D as AutoFitGrid,O as AvatarStack,k as Badge,A as Card,j as Center,u as Column,y as ColumnSplit,M as Container,N as Divider,d as Flex,f as FlowItem,P as FooterLayout,p as Grid,F as GridBreakpoint,m as GridCol,h as GridItem,g as GridRow,I as HeroSection,L as Hidden,l as LightboxContainer,R as ListGroup,z as Overlay,B as PositionContainer,_ as Row,b as RowSplit,x as ScrollBar,S as SideBarContainer,V as SizedBox,H as SkeletonLoader,U as Spacer,W as Sticky,C as Swiper,G as Table,v as WaterFlow,K as Wrap,q as ZStack};
683
+ `}export{D as AbsoluteBox,O as AcrylicBar,k as AspectRatio,A as AutoFitGrid,j as AvatarStack,M as Badge,N as Card,P as Center,p as Column,S as ColumnSplit,F as Container,I as Divider,m as Flex,h as FlowItem,L as FooterLayout,g as Grid,R as GridBreakpoint,_ as GridCol,v as GridItem,y as GridRow,z as HeroSection,B as Hidden,f as LightboxContainer,V as ListGroup,H as Overlay,U as PositionContainer,b as Row,C as RowSplit,w as ScrollBar,T as SideBarContainer,W as SizedBox,G as SkeletonLoader,K as Spacer,q as Sticky,E as Swiper,J as Table,x as WaterFlow,Y as Wrap,X as ZStack};
684
684
  //# sourceMappingURL=index.es.js.map