lyco 1.2.4 → 1.2.6

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 (50) hide show
  1. package/dist/index.cjs.js +416 -346
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.es.js +488 -418
  4. package/dist/index.es.js.map +1 -1
  5. package/dist/types/components/AbsoluteBox.d.ts +4 -3
  6. package/dist/types/components/AcrylicBar.d.ts +2 -1
  7. package/dist/types/components/AspectRatio.d.ts +2 -1
  8. package/dist/types/components/AutoFitGrid.d.ts +3 -1
  9. package/dist/types/components/AvatarStack.d.ts +3 -1
  10. package/dist/types/components/Badge.d.ts +2 -1
  11. package/dist/types/components/Canvas.d.ts +13 -0
  12. package/dist/types/components/Card.d.ts +2 -1
  13. package/dist/types/components/Center.d.ts +3 -1
  14. package/dist/types/components/Column.d.ts +7 -1
  15. package/dist/types/components/ColumnSplit.d.ts +3 -1
  16. package/dist/types/components/Container.d.ts +2 -1
  17. package/dist/types/components/Divider.d.ts +2 -0
  18. package/dist/types/components/Flex.d.ts +2 -1
  19. package/dist/types/components/FlowItem.d.ts +8 -2
  20. package/dist/types/components/FooterLayout.d.ts +2 -1
  21. package/dist/types/components/ForEach.d.ts +3 -0
  22. package/dist/types/components/Grid.d.ts +3 -1
  23. package/dist/types/components/GridBreakpoint.d.ts +2 -1
  24. package/dist/types/components/GridCol.d.ts +3 -1
  25. package/dist/types/components/GridItem.d.ts +3 -1
  26. package/dist/types/components/GridRow.d.ts +3 -1
  27. package/dist/types/components/HeroSection.d.ts +3 -1
  28. package/dist/types/components/Hidden.d.ts +2 -1
  29. package/dist/types/components/LightboxContainer.d.ts +3 -1
  30. package/dist/types/components/List.d.ts +15 -0
  31. package/dist/types/components/ListGroup.d.ts +3 -1
  32. package/dist/types/components/Overlay.d.ts +3 -1
  33. package/dist/types/components/PositionContainer.d.ts +3 -1
  34. package/dist/types/components/Row.d.ts +3 -1
  35. package/dist/types/components/RowSplit.d.ts +3 -1
  36. package/dist/types/components/ScrollBar.d.ts +3 -1
  37. package/dist/types/components/SideBarContainer.d.ts +3 -1
  38. package/dist/types/components/SizedBox.d.ts +2 -0
  39. package/dist/types/components/SkeletonLoader.d.ts +2 -0
  40. package/dist/types/components/Spacer.d.ts +4 -1
  41. package/dist/types/components/Sticky.d.ts +2 -1
  42. package/dist/types/components/Style.d.ts +0 -7
  43. package/dist/types/components/Swiper.d.ts +2 -0
  44. package/dist/types/components/Table.d.ts +2 -1
  45. package/dist/types/components/WaterFlow.d.ts +2 -1
  46. package/dist/types/components/Wrap.d.ts +2 -1
  47. package/dist/types/components/ZStack.d.ts +2 -1
  48. package/dist/types/components/core.d.ts +40 -18
  49. package/dist/types/components/index.d.ts +3 -0
  50. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1,371 +1,409 @@
1
- import{LitElement as e,html as t}from"lit";function n(e){return e?typeof e==`function`?e():e:t``}function r(e,r){let i=r??(e=>e);if(e===void 0)return t``;if(Array.isArray(e))return e.map((e,t)=>i(n(e),t,!0,!1));if(typeof e!=`function`)return i(n(e),void 0,!1,!1);let a=e();return Array.isArray(a)?a.map((e,t)=>i(n(e),t,!0,!1)):i(n(a),void 0,!1,!0)}function i(e){let t=Math.random().toString(36).substring(2,15);return e?`lyco-${e}-${t}`:`lyco-${t}`}function a(e,t){let r=t??(e=>e),i=e=>r(n(e));return e?i(e):i}function o(e,t,n){let i=t??(e=>e),a=e=>i(r(e,n));return e?a(e):a}const s=e=>({init:!1,prefix:e,className:`___LYCO_NULL___`}),c={"GridBreakpoint::grid-breakpoint":s(`grid-breakpoint`),"Hidden::hidden-container":s(`hidden-container`),"ListGroup::list-group":s(`list-group`),"ScrollBar::scrollbar-container":s(`scrollbar-container`),"SkeletonLoader::skeleton-shimmer":s(`skeleton-shimmer`),"Swiper::swiper":s(`swiper`),"Table::table":s(`table`),"WaterFlow::waterflow":s(`waterflow`),"AutoFitGrid::auto-fit-grid":s(`auto-fit-grid`),"GridCol::grid-col":s(`grid-col`),"GridRow::grid-row":s(`grid-row`)};function l(e){let t=c[e];return t.init||(c[e].init=!0,c[e].className=i(t.prefix)),c[e].className===`___LYCO_NULL___`?i(t.prefix):c[e].className}const u={value:0};var d=class extends e{constructor(){super(),this.shadowRoot=this.attachShadow({mode:`closed`}),u.value++}render(){return t` <slot></slot> `}};customElements.define(`lyco-component`,d);function f(e,r){if(r===void 0){let n=n=>f(e,n??t``);return n.html=(n,...r)=>f(e,t(n,...r)),n}let i=e?.fadeBg??`rgba(0,0,0,0.7)`,a=e?.zIndex??2e3;return t`
1
+ import{html as e}from"lit";
2
+ /**
3
+ * @license
4
+ * Copyright 2017 Google LLC
5
+ * SPDX-License-Identifier: BSD-3-Clause
6
+ */
7
+ const t=globalThis,n=t.trustedTypes,r=n?n.createPolicy(`lit-html`,{createHTML:e=>e}):void 0,i=`$lit$`,a=`lit$${Math.random().toFixed(9).slice(2)}$`,o=`?`+a,s=`<${o}>`,c=document,l=()=>c.createComment(``),u=e=>e===null||typeof e!=`object`&&typeof e!=`function`,d=Array.isArray,f=e=>d(e)||typeof e?.[Symbol.iterator]==`function`,p=`[
8
+ \f\r]`,m=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,h=/-->/g,g=/>/g,_=RegExp(`>|${p}(?:([^\\s"'>=/]+)(${p}*=${p}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),v=/'/g,y=/"/g,b=/^(?:script|style|textarea|title)$/i,x=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),ee=x(1),S=x(2),C=x(3),w=Symbol.for(`lit-noChange`),T=Symbol.for(`lit-nothing`),E=new WeakMap,D=c.createTreeWalker(c,129);function O(e,t){if(!d(e)||!e.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return r===void 0?t:r.createHTML(t)}const k=(e,t)=>{let n=e.length-1,r=[],o,c=t===2?`<svg>`:t===3?`<math>`:``,l=m;for(let t=0;t<n;t++){let n=e[t],u,d,f=-1,p=0;for(;p<n.length&&(l.lastIndex=p,d=l.exec(n),d!==null);)p=l.lastIndex,l===m?d[1]===`!--`?l=h:d[1]===void 0?d[2]===void 0?d[3]!==void 0&&(l=_):(b.test(d[2])&&(o=RegExp(`</`+d[2],`g`)),l=_):l=g:l===_?d[0]===`>`?(l=o??m,f=-1):d[1]===void 0?f=-2:(f=l.lastIndex-d[2].length,u=d[1],l=d[3]===void 0?_:d[3]===`"`?y:v):l===y||l===v?l=_:l===h||l===g?l=m:(l=_,o=void 0);let x=l===_&&e[t+1].startsWith(`/>`)?` `:``;c+=l===m?n+s:f>=0?(r.push(u),n.slice(0,f)+i+n.slice(f)+a+x):n+a+(f===-2?t:x)}return[O(e,c+(e[n]||`<?>`)+(t===2?`</svg>`:t===3?`</math>`:``)),r]};var A=class e{constructor({strings:t,_$litType$:r},s){let c;this.parts=[];let u=0,d=0,f=t.length-1,p=this.parts,[m,h]=k(t,r);if(this.el=e.createElement(m,s),D.currentNode=this.el.content,r===2||r===3){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;(c=D.nextNode())!==null&&p.length<f;){if(c.nodeType===1){if(c.hasAttributes())for(let e of c.getAttributeNames())if(e.endsWith(i)){let t=h[d++],n=c.getAttribute(e).split(a),r=/([.?@])?(.*)/.exec(t);p.push({type:1,index:u,name:r[2],strings:n,ctor:r[1]===`.`?F:r[1]===`?`?I:r[1]===`@`?L:P}),c.removeAttribute(e)}else e.startsWith(a)&&(p.push({type:6,index:u}),c.removeAttribute(e));if(b.test(c.tagName)){let e=c.textContent.split(a),t=e.length-1;if(t>0){c.textContent=n?n.emptyScript:``;for(let n=0;n<t;n++)c.append(e[n],l()),D.nextNode(),p.push({type:2,index:++u});c.append(e[t],l())}}}else if(c.nodeType===8)if(c.data===o)p.push({type:2,index:u});else{let e=-1;for(;(e=c.data.indexOf(a,e+1))!==-1;)p.push({type:7,index:u}),e+=a.length-1}u++}}static createElement(e,t){let n=c.createElement(`template`);return n.innerHTML=e,n}};function j(e,t,n=e,r){var i,a;if(t===w)return t;let o=r===void 0?n._$Cl:(i=n._$Co)?.[r],s=u(t)?void 0:t._$litDirective$;return o?.constructor!==s&&(o==null||(a=o._$AO)==null||a.call(o,!1),s===void 0?o=void 0:(o=new s(e),o._$AT(e,n,r)),r===void 0?n._$Cl=o:(n._$Co??=[])[r]=o),o!==void 0&&(t=j(e,o._$AS(e,t.values),o,r)),t}var M=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,r=(e?.creationScope??c).importNode(t,!0);D.currentNode=r;let i=D.nextNode(),a=0,o=0,s=n[0];for(;s!==void 0;){if(a===s.index){let t;s.type===2?t=new N(i,i.nextSibling,this,e):s.type===1?t=new s.ctor(i,s.name,s.strings,this,e):s.type===6&&(t=new R(i,this,e)),this._$AV.push(t),s=n[++o]}a!==s?.index&&(i=D.nextNode(),a++)}return D.currentNode=c,r}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings===void 0?n._$AI(e[t]):(n._$AI(e,n,t),t+=n.strings.length-2)),t++}},N=class e{get _$AU(){var e;return(e=this._$AM)?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=j(this,e,t),u(e)?e===T||e==null||e===``?(this._$AH!==T&&this._$AR(),this._$AH=T):e!==this._$AH&&e!==w&&this._(e):e._$litType$===void 0?e.nodeType===void 0?f(e)?this.k(e):this._(e):this.T(e):this.$(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==T&&u(this._$AH)?this._$AA.nextSibling.data=e:this.T(c.createTextNode(e)),this._$AH=e}$(e){var t;let{values:n,_$litType$:r}=e,i=typeof r==`number`?this._$AC(e):(r.el===void 0&&(r.el=A.createElement(O(r.h,r.h[0]),this.options)),r);if((t=this._$AH)?._$AD===i)this._$AH.p(n);else{let e=new M(i,this),t=e.u(this.options);e.p(n),this.T(t),this._$AH=e}}_$AC(e){let t=E.get(e.strings);return t===void 0&&E.set(e.strings,t=new A(e)),t}k(t){d(this._$AH)||(this._$AH=[],this._$AR());let n=this._$AH,r,i=0;for(let a of t)i===n.length?n.push(r=new e(this.O(l()),this.O(l()),this,this.options)):r=n[i],r._$AI(a),i++;i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}_$AR(e=this._$AA.nextSibling,t){var n;for((n=this._$AP)?.call(this,!1,!0,t);e&&e!==this._$AB;){let t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)?.call(this,e))}},P=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=T,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||n[0]!==``||n[1]!==``?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=T}_$AI(e,t=this,n,r){let i=this.strings,a=!1;if(i===void 0)e=j(this,e,t,0),a=!u(e)||e!==this._$AH&&e!==w,a&&(this._$AH=e);else{let r=e,o,s;for(e=i[0],o=0;o<i.length-1;o++)s=j(this,r[n+o],t,o),s===w&&(s=this._$AH[o]),a||=!u(s)||s!==this._$AH[o],s===T?e=T:e!==T&&(e+=(s??``)+i[o+1]),this._$AH[o]=s}a&&!r&&this.j(e)}j(e){e===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??``)}},F=class extends P{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===T?void 0:e}},I=class extends P{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==T)}},L=class extends P{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){if((e=j(this,e,t,0)??T)===w)return;let n=this._$AH,r=e===T&&n!==T||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==T&&(n===T||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t;typeof this._$AH==`function`?this._$AH.call((t=this.options)?.host??this.element,e):this._$AH.handleEvent(e)}},R=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){j(this,e)}};const te={M:i,P:a,A:o,C:1,L:k,R:M,D:f,V:j,I:N,H:P,N:I,U:L,B:F,F:R},ne=t.litHtmlPolyfillSupport;ne?.(A,N),(t.litHtmlVersions??=[]).push(`3.3.0`);
9
+ /**
10
+ * @license
11
+ * Copyright 2017 Google LLC
12
+ * SPDX-License-Identifier: BSD-3-Clause
13
+ */
14
+ const{I:re}=te,ie=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ae={HTML:1,SVG:2,MATHML:3},oe=(e,t)=>t===void 0?e?._$litType$!==void 0:e?._$litType$===t,se=e=>{var t;return(e==null||(t=e._$litType$)==null?void 0:t.h)!=null},ce=e=>e?._$litDirective$!==void 0,le=e=>e?._$litDirective$,ue=e=>e.strings===void 0,de=()=>document.createComment(``),fe=(e,t,n)=>{let r=e._$AA.parentNode,i=t===void 0?e._$AB:t._$AA;if(n===void 0){let t=r.insertBefore(de(),i),a=r.insertBefore(de(),i);n=new re(t,a,e,e.options)}else{let t=n._$AB.nextSibling,o=n._$AM,s=o!==e;if(s){var a;let t;(a=n._$AQ)?.call(n,e),n._$AM=e,n._$AP!==void 0&&(t=e._$AU)!==o._$AU&&n._$AP(t)}if(t!==i||s){let e=n._$AA;for(;e!==t;){let t=e.nextSibling;r.insertBefore(e,i),e=t}}}return n},pe=(e,t,n=e)=>(e._$AI(t,n),e),me={},he=(e,t=me)=>e._$AH=t,ge=e=>e._$AH,_e=e=>{var t;(t=e._$AP)?.call(e,!1,!0);let n=e._$AA,r=e._$AB.nextSibling;for(;n!==r;){let e=n.nextSibling;n.remove(),n=e}},ve=e=>{e._$AR()},ye={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},be=e=>(...t)=>({_$litDirective$:e,values:t});var xe=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};
15
+ /**
16
+ * @license
17
+ * Copyright 2017 Google LLC
18
+ * SPDX-License-Identifier: BSD-3-Clause
19
+ */const z=(e,t)=>{var n;let r=e._$AN;if(r===void 0)return!1;for(let e of r)(n=e._$AO)?.call(e,t,!1),z(e,t);return!0},B=e=>{let t,n;do{if((t=e._$AM)===void 0)break;n=t._$AN,n.delete(e),e=t}while(n?.size===0)},Se=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(n===void 0)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),Te(t)}};function Ce(e){this._$AN===void 0?this._$AM=e:(B(this),this._$AM=e,Se(this))}function we(e,t=!1,n=0){let r=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(r))for(let e=n;e<r.length;e++)z(r[e],!1),B(r[e]);else r!=null&&(z(r,!1),B(r));else z(this,e)}const Te=e=>{e.type==ye.CHILD&&(e._$AP??=we,e._$AQ??=Ce)};var Ee=class extends xe{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),Se(this),this.isConnected=e._$AU}_$AO(e,t=!0){var n,r;e!==this.isConnected&&(this.isConnected=e,e?(n=this.reconnected)?.call(this):(r=this.disconnected)?.call(this)),t&&(z(this,e),B(this))}setValue(e){if(ue(this._$Ct))this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};
20
+ /**
21
+ * @license
22
+ * Copyright 2020 Google LLC
23
+ * SPDX-License-Identifier: BSD-3-Clause
24
+ */const De=()=>new Oe;var Oe=class{};const V=new WeakMap,H=be(class extends Ee{render(e){return T}update(e,[t]){var n;let r=t!==this.G;return r&&this.G!==void 0&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.G=t,this.ht=(n=e.options)?.host,this.rt(this.ct=e.element)),T}rt(e){if(this.isConnected||(e=void 0),typeof this.G==`function`){let t=this.ht??globalThis,n=V.get(t);n===void 0&&(n=new WeakMap,V.set(t,n)),n.get(this.G)!==void 0&&this.G.call(this.ht,void 0),n.set(this.G,e),e!==void 0&&this.G.call(this.ht,e)}else this.G.value=e}get lt(){var e,t;return typeof this.G==`function`?(e=V.get(this.ht??globalThis))?.get(this.G):(t=this.G)?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}}),ke=Symbol(`___LYCO_NULL___`);function U(t){return t?typeof t==`function`?t():t:e``}function W(t,n){let r=n??(e=>e);if(t===void 0)return e``;if(Array.isArray(t))return t.map((e,t)=>r(U(e),t,!0,!1));if(typeof t!=`function`)return r(U(t),void 0,!1,!1);let i=t();return Array.isArray(i)?i.map((e,t)=>r(U(e),t,!0,!1)):r(U(i),void 0,!1,!0)}function Ae(e){let t=Math.random().toString(36).substring(2,15);return e?`lyco-${e}-${t}`:`lyco-${t}`}function je(e,t){let n=t??(e=>e),r=e=>n(U(e));return e?r(e):r}function Me(e,t,n){let r=t??(e=>e),i=e=>r(W(e,n));return e?i(e):i}const G=e=>({init:!1,prefix:e,className:ke}),K={"GridBreakpoint::grid-breakpoint":G(`grid-breakpoint`),"Hidden::hidden-container":G(`hidden-container`),"ListGroup::list-group":G(`list-group`),"ScrollBar::scrollbar-container":G(`scrollbar-container`),"SkeletonLoader::skeleton-shimmer":G(`skeleton-shimmer`),"Swiper::swiper":G(`swiper`),"Table::table":G(`table`),"WaterFlow::waterflow":G(`waterflow`),"AutoFitGrid::auto-fit-grid":G(`auto-fit-grid`),"GridCol::grid-col":G(`grid-col`),"GridRow::grid-row":G(`grid-row`),"List::list":G(`list`)};function q(e){let t=K[e];return t.init||(K[e].init=!0,K[e].className=Ae(t.prefix)),K[e].className===ke?Ae(t.prefix):K[e].className}const J={all:{value:0}};function Y(e){var t;return(t=J[e])?.value||(J[e]={value:0}),J[e].value}function X(t,n){return J.all={value:J.all.value+1},J[t]===void 0?J[t]={value:0}:J[t].value=J[t].value+1,e`
25
+ <!-- ${t} - ${J[t].value} -->
26
+ ${n}
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`
2
28
  <div
29
+ ${H(a.auto)}
3
30
  style="
4
- position: fixed;
5
- top: 0; left: 0; right: 0; bottom: 0;
6
- background: ${i};
7
- z-index: ${a};
8
- display: flex;
9
- justify-content: center;
10
- align-items: center;
11
- "
31
+ position: fixed;
32
+ top: 0; left: 0; right: 0; bottom: 0;
33
+ background: ${r};
34
+ z-index: ${i};
35
+ display: flex;
36
+ justify-content: center;
37
+ align-items: center;
38
+ "
12
39
  >
13
- ${n(r)}
40
+ ${U(n)}
14
41
  </div>
15
- `}function p(e,n){return n===void 0?n=>p(e,n??[t``]):t`
42
+ `}function Pe(t,n){let r=Z(t?.on??{});return n===void 0?n=>Pe(t,n??[e``]):e`
16
43
  <div
44
+ ${H(r.auto)}
45
+ .class="${t?.className}"
17
46
  style="
18
47
  display: flex;
19
48
  flex-direction: column;
20
- ${e?.space?`gap: ${e.space};`:``}
49
+ ${t?.space?`gap: ${t.space};`:``}
50
+ ${t?.style??``}
21
51
  "
22
52
  >
23
- ${r(n)}
53
+ ${W(n)}
24
54
  </div>
25
- `}function m(e,r){if(r===void 0){let n=n=>m(e,n??t``);return n.html=(n,...r)=>m(e,t(n,...r)),n}let i=e?.direction??`row`;return t`
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`
26
56
  <div
57
+ ${H(i.auto)}
27
58
  style="
28
- display: flex;
29
- flex-direction: ${i};
30
- ${e?.justify?`justify-content: ${e.justify};`:``}
31
- ${e?.align?`align-items: ${e.align};`:``}
32
- ${e?.gap?`gap: ${e.gap};`:``}
33
- "
59
+ display: flex;
60
+ flex-direction: ${r};
61
+ ${t?.justify?`justify-content: ${t.justify};`:``}
62
+ ${t?.align?`align-items: ${t.align};`:``}
63
+ ${t?.gap?`gap: ${t.gap};`:``}
64
+ "
34
65
  >
35
- ${n(r)}
66
+ ${U(n)}
36
67
  </div>
37
- `}function h(e){return t`
38
- <div style="break-inside: avoid; margin-bottom: 16px;">
39
- ${n(e)}
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;">
70
+ ${U(n)}
40
71
  </div>
41
- `}function g(e,n){if(n===void 0)return n=>g(e,n??[t``]);let i=e?.columns??1;return t`
72
+ `}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`
42
73
  <div
74
+ ${H(i.auto)}
43
75
  style="
44
- display: grid;
45
- grid-template-columns: repeat(${i}, 1fr);
46
- ${e?.gap?`gap: ${e.gap};`:``}
47
- "
76
+ display: grid;
77
+ grid-template-columns: repeat(${r}, 1fr);
78
+ ${t?.gap?`gap: ${t.gap};`:``}
79
+ "
48
80
  >
49
- ${r(n)}
81
+ ${W(n)}
50
82
  </div>
51
- `}function _(e,r){if(r===void 0){let n=n=>_(e,n??t``);return n.html=(n,...r)=>_(e,t(n,...r)),n}let i=u.value,a=l(`GridCol::grid-col`)+ +`-lyco-now-${i}`,o=e?.gap?`column-gap: ${e.gap};`:``,s=`
52
- .${a} {
83
+ `}function Le(t,n){if(n===void 0){let n=n=>Le(t,n??e``);return n.html=(n,...r)=>Le(t,e(n,...r)),n}let r=Y(`GridCol`),i=q(`GridCol::grid-col`)+`-lyco-now-`+r,a=t?.gap?`column-gap: ${t.gap};`:``,o=`
84
+ .${i} {
53
85
  display: grid;
54
86
  grid-auto-flow: column;
55
- ${o}
87
+ ${a}
56
88
  }
57
- `;return t`
58
- <lyco-component name="GridCol">
89
+ `,s=Z(t?.on??{});return X(`GridCol`,e`
59
90
  <style>
60
- ${s}
91
+ ${o}
61
92
  </style>
62
- <div class="${a}">${n(r)}</div>
63
- </lyco-component>
64
- `}function v(e,r){if(r===void 0){let n=n=>v(e,n??t``);return n.html=(n,...r)=>v(e,t(n,...r)),n}return t`
65
- <div style="${e?.span?`grid-column: span ${e.span};`:``}">
66
- ${n(r)}
93
+ <div ${H(s.auto)} class="${i}">${U(n)}</div>
94
+ `)}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
+ <div
96
+ ${H(r.auto)}
97
+ style="${t?.span?`grid-column: span ${t.span};`:``}"
98
+ >
99
+ ${U(n)}
67
100
  </div>
68
- `}function y(e,r){if(r===void 0){let n=n=>y(e,n??t``);return n.html=(n,...r)=>y(e,t(n,...r)),n}let i=u.value,a=l(`GridRow::grid-row`)+`-lyco-now-${i}`,o=e?.gap?`row-gap: ${e.gap};`:``,s=`
69
- .${a} {
101
+ `}function ze(t,n){if(n===void 0){let n=n=>ze(t,n??e``);return n.html=(n,...r)=>ze(t,e(n,...r)),n}let r=Y(`GridRow`),i=q(`GridRow::grid-row`)+`-lyco-now-`+r,a=t?.gap?`row-gap: ${t.gap};`:``,o=`
102
+ .${i} {
70
103
  display: grid;
71
104
  grid-auto-flow: row;
72
- ${o}
105
+ ${a}
73
106
  }
74
- `;return t`
75
- <lyco-component name="GridRow">
107
+ `,s=Z(t?.on??{});return X(`GridRow`,e`
76
108
  <style>
77
- ${s}
109
+ ${o}
78
110
  </style>
79
- <div class="${a}">${n(r)}</div>
80
- </lyco-component>
81
- `}function b(e,n){return n===void 0?n=>b(e,n??[t``]):t`
111
+ <div ${H(s.auto)} class="${i}">${U(n)}</div>
112
+ `)}function Be(t,n){if(n===void 0)return n=>Be(t,n??[e``]);let r=Z(t?.on??{});return e`
82
113
  <div
114
+ ${H(r.auto)}
83
115
  style="
84
- display: flex;
85
- flex-direction: row;
86
- ${e?.space?`gap: ${e.space};`:``}
87
- "
116
+ display: flex;
117
+ flex-direction: row;
118
+ ${t?.space?`gap: ${t.space};`:``}
119
+ "
88
120
  >
89
- ${r(n)}
121
+ ${W(n)}
90
122
  </div>
91
- `}function x(e,r){if(r===void 0){let n=n=>x(e,n??t``);return n.html=(n,...r)=>x(e,t(n,...r)),n}let i=e?.columnCount??3,a=e?.gap??`16px`,o=u.value,s=l(`WaterFlow::waterflow`)+`-lyco-now-${o}`;return t`
92
- <lyco-component name="WaterFlow">
123
+ `}function Ve(t,n){if(n===void 0){let n=n=>Ve(t,n??e``);return n.html=(n,...r)=>Ve(t,e(n,...r)),n}let r=t?.columnCount??3,i=t?.gap??`16px`,a=Y(`WaterFlow`),o=q(`WaterFlow::waterflow`)+`-lyco-now-${a}`,s=`
124
+ /* 使用 CSS 类来控制多列布局 */
125
+ .${o} {
126
+ column-count: ${r};
127
+ column-gap: ${typeof i==`number`?`${i}px`:i};
128
+ }
129
+ /* 子元素如果是块级元素,需要让它们适应多列流式布局 */
130
+ .${o} > * {
131
+ display: inline-block;
132
+ width: 100%;
133
+ }
134
+ `,c=Z(t?.on??{});return X(`WaterFlow`,e`
93
135
  <style>
94
- /* 使用 CSS 类来控制多列布局 */
95
- .${s} {
96
- column-count: ${i};
97
- column-gap: ${typeof a==`number`?`${a}px`:a};
98
- }
99
- /* 子元素如果是块级元素,需要让它们适应多列流式布局 */
100
- .${s} > * {
101
- display: inline-block;
102
- width: 100%;
103
- }
136
+ ${s}
104
137
  </style>
105
138
 
106
- <div class="${s}">${n(r)}</div>
107
- </lyco-component>
108
- `}function S(e,r){if(r===void 0){let n=n=>S(e,n??t``);return n.html=(n,...r)=>S(e,t(n,...r)),n}let i=e?.gap??`0px`,a=e?.firstHeight??`50%`,o=t``,s=t``;if(typeof r==`function`){var c;let e=(c=r.call)?.call(r,null)??[];o=e[0]??t``,s=e[1]??t``}else o=n(r);return t`
139
+ <div ${H(c.auto)} class="${o}">${U(n)}</div>
140
+ `)}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`
109
141
  <div
142
+ ${H(c.auto)}
110
143
  style="
111
- display: flex;
112
- flex-direction: column;
113
- width: 100%;
114
- height: 100%;
115
- gap: ${i};
116
- "
144
+ display: flex;
145
+ flex-direction: column;
146
+ width: 100%;
147
+ height: 100%;
148
+ gap: ${r};
149
+ "
117
150
  >
118
- <div style="flex: 0 0 ${a}; overflow: auto;">${o}</div>
119
- <div style="flex: 1 1 auto; overflow: auto;">${s}</div>
151
+ <div style="flex: 0 0 ${i}; overflow: auto;">${a}</div>
152
+ <div style="flex: 1 1 auto; overflow: auto;">${o}</div>
120
153
  </div>
121
- `}function C(e,r){if(r===void 0){let n=n=>C(e,n??t``);return n.html=(n,...r)=>C(e,t(n,...r)),n}let i=e?.gap??`0px`,a=e?.firstWidth??`50%`,o=t``,s=t``;if(typeof r==`function`){var c;let e=(c=r.call)?.call(r,null)??[];o=e[0]??t``,s=e[1]??t``}else o=n(r);return t`
154
+ `}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`
122
155
  <div
156
+ ${H(c.auto)}
123
157
  style="
124
158
  display: flex;
125
159
  flex-direction: row;
126
160
  width: 100%;
127
161
  height: 100%;
128
- gap: ${i};
162
+ gap: ${r};
129
163
  "
130
164
  >
131
- <div style="flex: 0 0 ${a}; overflow: auto;">${o}</div>
132
- <div style="flex: 1 1 auto; overflow: auto;">${s}</div>
165
+ <div style="flex: 0 0 ${i}; overflow: auto;">${a}</div>
166
+ <div style="flex: 1 1 auto; overflow: auto;">${o}</div>
133
167
  </div>
134
- `}function w(e,r){if(r===void 0){let n=n=>w(e,n??t``);return n.html=(n,...r)=>w(e,t(n,...r)),n}let i=e?.direction??`vertical`,a=e?.height??`100%`,o=e?.width??`100%`,s=e?.customCss??``,c=u.value,d=e?.className??l(`ScrollBar::scrollbar-container`)+`-lyco-now-${c}`,f=i===`horizontal`?`overflow-x: auto; overflow-y: hidden`:`overflow-y: auto; overflow-x: hidden`;return t`
135
- <lyco-component name="ScrollBar">
168
+ `}function We(t,n){if(n===void 0){let n=n=>We(t,n??e``);return n.html=(n,...r)=>We(t,e(n,...r)),n}let r=t?.direction??`vertical`,i=t?.height??`100%`,a=t?.width??`100%`,o=t?.customCss??``,s=Y(`ScrollBar`),c=t?.className??q(`ScrollBar::scrollbar-container`)+`-lyco-now-`+s,l=r===`horizontal`?`overflow-x: auto; overflow-y: hidden`:`overflow-y: auto; overflow-x: hidden`,u=`
169
+ .${c} {
170
+ ${l};
171
+ width: ${a};
172
+ height: ${i};
173
+ }
174
+ .${c}::-webkit-scrollbar {
175
+ width: 8px;
176
+ height: 8px;
177
+ }
178
+ .${c}::-webkit-scrollbar-thumb {
179
+ background-color: rgba(0, 0, 0, 0.2);
180
+ border-radius: 4px;
181
+ }
182
+ .${c}::-webkit-scrollbar-track {
183
+ background: rgba(0, 0, 0, 0.05);
184
+ }
185
+ ${o}
186
+ `,d=Z(t?.on??{});return X(`ScrollBar`,e`
136
187
  <style>
137
- .${d} {
138
- ${f};
139
- width: ${o};
140
- height: ${a};
141
- }
142
- .${d}::-webkit-scrollbar {
143
- width: 8px;
144
- height: 8px;
145
- }
146
- .${d}::-webkit-scrollbar-thumb {
147
- background-color: rgba(0, 0, 0, 0.2);
148
- border-radius: 4px;
149
- }
150
- .${d}::-webkit-scrollbar-track {
151
- background: rgba(0, 0, 0, 0.05);
152
- }
153
- ${s}
188
+ ${u}
154
189
  </style>
155
- <div class="${d}">${n(r)}</div>
156
- </lyco-component>
157
- `}function T(e,n){if(n===void 0)return n=>T(e,n??[t``]);let i=e?.sidebarWidth??`240px`,a=e?.sidebarPosition??`left`,o=e?.gap??`0px`,s=t``,c=t``;if(typeof n==`function`){var l;let e=(l=n.call)?.call(n,null)??[];s=e[0]??t``,c=e[1]??t``}else c=r(n);return t`
190
+ <div ${H(d.auto)} class="${c}">${U(n)}</div>
191
+ `)}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`
158
192
  <div
193
+ ${H(l.auto)}
159
194
  style="
160
195
  display: flex;
161
- flex-direction: ${a===`left`?`row`:`row-reverse`};
196
+ flex-direction: ${i===`left`?`row`:`row-reverse`};
162
197
  width: 100%;
163
198
  height: 100%;
164
- gap: ${o};
199
+ gap: ${a};
165
200
  "
166
201
  >
167
- <div style="flex: 0 0 ${i}; overflow: auto;">${s}</div>
168
- <div style="flex: 1 1 auto; overflow: auto;">${c}</div>
202
+ <div style="flex: 0 0 ${r}; overflow: auto;">${o}</div>
203
+ <div style="flex: 1 1 auto; overflow: auto;">${s}</div>
169
204
  </div>
170
- `}function E(e={},n){if(n===void 0)return n=>E(e,n??[t``]);let r=u.value,{gap:i=`8px`,snapType:a=`mandatory`,height:o=`auto`,width:s=`100%`,className:c=l(`Swiper::swiper`)+`-lyco-now-${r}`,direction:d=`x`,scrollBehavior:f=`smooth`,align:p=`start`,showNavigation:m=!0,navigationPosition:h=`inside`,showPagination:g=!0,paginationType:_=`dots`,autoPlay:v=!1,interval:y=3e3,loop:b=!1,touchEnabled:x=!0,mouseWheel:S=!1,onSlideChange:C}=e,w=c,T=w+`-container`,D=w+`-slide`,O=w+`-navigation`,k=w+`-pagination`,A;A=n?typeof n==`function`?n():n:[];let j=A.length,[M,N]=(()=>{let e={value:0};return[()=>e.value,t=>{let n=Math.max(0,Math.min(t,j-1));e.value!==n&&(e.value=n,C?.(n))}]})(),P=e=>{let t=typeof document<`u`?document.querySelector(`.${T}`):null;if(!t)return;let n=t.querySelectorAll(`.${D}`);if(e<0||e>=n.length)return;let r=n[e],i=r.getBoundingClientRect(),a=t.getBoundingClientRect(),o;d===`x`?(o=r.offsetLeft-t.offsetLeft,p===`center`?o-=(a.width-i.width)/2:p===`end`&&(o-=a.width-i.width),t.scrollTo({left:o,behavior:f})):(o=r.offsetTop-t.offsetTop,p===`center`?o-=(a.height-i.height)/2:p===`end`&&(o-=a.height-i.height),t.scrollTo({top:o,behavior:f})),N(e)},F=()=>{let e=M()+1>=j?b?0:M():M()+1;P(e)},I=()=>{let e=M()-1<0?b?j-1:M():M()-1;P(e)},L=()=>{let e=typeof document<`u`?document.querySelector(`.${T}`):null;if(!e)return;let t=e.querySelectorAll(`.${D}`),n=0,r=1/0;t.forEach((t,i)=>{let a=t.getBoundingClientRect(),o=e.getBoundingClientRect(),s;if(d===`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)}),N(n)},R=e=>{if(!x)return;let t=e.touches[0],n=e.currentTarget;n.dataset.touchStartX=t.clientX.toString(),n.dataset.touchStartY=t.clientY.toString()},z=e=>{if(!x)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)||d===`x`)&&e.preventDefault()},B=e=>{if(!x)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&&(d===`x`?a>0?I():F():o>0?I():F()),delete t.dataset.touchStartX,delete t.dataset.touchStartY},V=e=>{S&&(e.preventDefault(),e.deltaY>0?F():I())},H=e=>{if(!v||!e)return;let t,n=()=>{t=setInterval(F,y)},r=()=>{clearInterval(t)};return e.addEventListener(`mouseenter`,r),e.addEventListener(`mouseleave`,n),n(),()=>{clearInterval(t),e.removeEventListener(`mouseenter`,r),e.removeEventListener(`mouseleave`,n)}},U=()=>{let e=typeof document<`u`?document.querySelector(`.${T}`):null;if(!e)return;let t=[];e.addEventListener(`scroll`,L),t.push(()=>e.removeEventListener(`scroll`,L)),x&&(e.addEventListener(`touchstart`,R),e.addEventListener(`touchmove`,z,{passive:!1}),e.addEventListener(`touchend`,B),t.push(()=>e.removeEventListener(`touchstart`,R)),t.push(()=>e.removeEventListener(`touchmove`,z)),t.push(()=>e.removeEventListener(`touchend`,B))),S&&(e.addEventListener(`wheel`,V,{passive:!1}),t.push(()=>e.removeEventListener(`wheel`,V)));let n=H(e);return n&&t.push(n),P(0),()=>t.forEach(e=>e())};typeof window<`u`&&typeof document<`u`&&setTimeout(U,0);let W=t`
171
- <div class="${k}">
172
- ${Array.from({length:j},(e,n)=>t`
205
+ `}function Ke(t={},n){if(n===void 0)return n=>Ke(t,n??[e``]);let r=Y(`Swiper`),{gap:i=`8px`,snapType:a=`mandatory`,height:o=`auto`,width:s=`100%`,className:c=q(`Swiper::swiper`)+`-lyco-now-${r}`,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,on:ee}=t,S=c,C=S+`-container`,w=S+`-slide`,T=S+`-navigation`,E=S+`-pagination`,D;D=n?typeof n==`function`?n():n:[];let O=D.length,[k,A]=(()=>{let e={value:0};return[()=>e.value,t=>{let n=Math.max(0,Math.min(t,O-1));e.value!==n&&(e.value=n,x?.(n))}]})(),j=e=>{let t=typeof document<`u`?document.querySelector(`.${C}`):null;if(!t)return;let n=t.querySelectorAll(`.${w}`);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})),A(e)},M=()=>{let e=k()+1>=O?v?0:k():k()+1;j(e)},N=()=>{let e=k()-1<0?v?O-1:k():k()-1;j(e)},P=()=>{let e=typeof document<`u`?document.querySelector(`.${C}`):null;if(!e)return;let t=e.querySelectorAll(`.${w}`),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)}),A(n)},F=e=>{if(!y)return;let t=e.touches[0],n=e.currentTarget;n.dataset.touchStartX=t.clientX.toString(),n.dataset.touchStartY=t.clientY.toString()},I=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()},L=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?N():M():o>0?N():M()),delete t.dataset.touchStartX,delete t.dataset.touchStartY},R=e=>{b&&(e.preventDefault(),e.deltaY>0?M():N())},te=e=>{if(!g||!e)return;let t,n=()=>{t=setInterval(M,_)},r=()=>{clearInterval(t)};return e.addEventListener(`mouseenter`,r),e.addEventListener(`mouseleave`,n),n(),()=>{clearInterval(t),e.removeEventListener(`mouseenter`,r),e.removeEventListener(`mouseleave`,n)}},ne=()=>{let e=typeof document<`u`?document.querySelector(`.${C}`):null;if(!e)return;let t=[];e.addEventListener(`scroll`,P),t.push(()=>e.removeEventListener(`scroll`,P)),y&&(e.addEventListener(`touchstart`,F),e.addEventListener(`touchmove`,I,{passive:!1}),e.addEventListener(`touchend`,L),t.push(()=>e.removeEventListener(`touchstart`,F)),t.push(()=>e.removeEventListener(`touchmove`,I)),t.push(()=>e.removeEventListener(`touchend`,L))),b&&(e.addEventListener(`wheel`,R,{passive:!1}),t.push(()=>e.removeEventListener(`wheel`,R)));let n=te(e);return n&&t.push(n),j(0),()=>t.forEach(e=>e())};typeof window<`u`&&typeof document<`u`&&setTimeout(ne,0);let re=e`
206
+ <div class="${E}">
207
+ ${Array.from({length:O},(t,n)=>e`
173
208
  <button
174
- class="${n===M()?`active`:``}"
175
- @click=${()=>P(n)}
209
+ class="${n===k()?`active`:``}"
210
+ @click=${()=>j(n)}
176
211
  ></button>
177
212
  `)}
178
213
  </div>
179
- `,G=t`
180
- <div class="${k} fraction">
181
- <span class="current">${M()+1}</span>
214
+ `,ie=e`
215
+ <div class="${E} fraction">
216
+ <span class="current">${k()+1}</span>
182
217
  <span class="separator">/</span>
183
- <span class="total">${j}</span>
218
+ <span class="total">${O}</span>
184
219
  </div>
185
- `,K=t`
186
- <div class="${k} progressbar">
220
+ `,ae=e`
221
+ <div class="${E} progressbar">
187
222
  <div
188
223
  class="progress"
189
- style="width: ${j>1?M()/(j-1)*100:0}%"
224
+ style="width: ${O>1?k()/(O-1)*100:0}%"
190
225
  ></div>
191
226
  </div>
192
- `,q=t`
193
- <div class="${O}">
194
- <button class="prev" @click=${I}>◀</button>
195
- <button class="next" @click=${F}>▶</button>
227
+ `,oe=e`
228
+ <div class="${T}">
229
+ <button class="prev" @click=${N}>◀</button>
230
+ <button class="next" @click=${M}>▶</button>
196
231
  </div>
197
- `;return t`
198
- <lyco-component name="Swiper">
199
- <style>
200
- .${w} {
201
- position: relative;
202
- overflow: hidden;
203
- width: ${s};
204
- height: ${o};
205
- }
232
+ `,se=`
233
+ .${S} {
234
+ position: relative;
235
+ overflow: hidden;
236
+ width: ${s};
237
+ height: ${o};
238
+ }
206
239
 
207
- .${T} {
208
- width: 100%;
209
- height: 100%;
210
- overflow: auto;
211
- scroll-snap-type: ${d+` `+a};
212
- -webkit-overflow-scrolling: touch;
213
- scroll-behavior: ${f};
214
- gap: ${i};
215
- display: flex;
216
- flex-direction: ${d===`x`?`row`:`column`};
217
- }
240
+ .${C} {
241
+ width: 100%;
242
+ height: 100%;
243
+ overflow: auto;
244
+ scroll-snap-type: ${l+` `+a};
245
+ -webkit-overflow-scrolling: touch;
246
+ scroll-behavior: ${u};
247
+ gap: ${i};
248
+ display: flex;
249
+ flex-direction: ${l===`x`?`row`:`column`};
250
+ }
218
251
 
219
- .${D} {
220
- scroll-snap-align: ${p};
221
- flex-shrink: 0;
222
- }
252
+ .${w} {
253
+ scroll-snap-align: ${d};
254
+ flex-shrink: 0;
255
+ }
223
256
 
224
- .${O} {
225
- position: absolute;
226
- top: 50%;
227
- left: 0;
228
- right: 0;
229
- transform: translateY(-50%);
230
- display: flex;
231
- justify-content: space-between;
232
- pointer-events: none;
233
- padding: ${h===`outside`?`0 1rem`:`0 0.5rem`};
234
- }
257
+ .${T} {
258
+ position: absolute;
259
+ top: 50%;
260
+ left: 0;
261
+ right: 0;
262
+ transform: translateY(-50%);
263
+ display: flex;
264
+ justify-content: space-between;
265
+ pointer-events: none;
266
+ padding: ${p===`outside`?`0 1rem`:`0 0.5rem`};
267
+ }
235
268
 
236
- .${O} button {
237
- width: 2.5rem;
238
- height: 2.5rem;
239
- border-radius: 50%;
240
- background-color: rgba(0, 0, 0, 0.5);
241
- color: white;
242
- border: none;
243
- display: flex;
244
- align-items: center;
245
- justify-content: center;
246
- cursor: pointer;
247
- pointer-events: auto;
248
- transition: background-color 0.3s;
249
- }
269
+ .${T} button {
270
+ width: 2.5rem;
271
+ height: 2.5rem;
272
+ border-radius: 50%;
273
+ background-color: rgba(0, 0, 0, 0.5);
274
+ color: white;
275
+ border: none;
276
+ display: flex;
277
+ align-items: center;
278
+ justify-content: center;
279
+ cursor: pointer;
280
+ pointer-events: auto;
281
+ transition: background-color 0.3s;
282
+ }
250
283
 
251
- .${O} button:hover {
252
- background-color: rgba(0, 0, 0, 0.8);
253
- }
284
+ .${T} button:hover {
285
+ background-color: rgba(0, 0, 0, 0.8);
286
+ }
254
287
 
255
- .${k} {
256
- position: absolute;
257
- bottom: 1rem;
258
- left: 0;
259
- right: 0;
260
- display: flex;
261
- justify-content: center;
262
- gap: 0.5rem;
263
- align-items: center;
264
- }
265
- .${k} button {
266
- width: 0.75rem;
267
- height: 0.75rem;
268
- border-radius: 50%;
269
- background-color: rgba(255, 255, 255, 0.5);
270
- border: none;
271
- cursor: pointer;
272
- transition: background-color 0.3s, transform 0.3s;
273
- }
274
- .${k} button.active {
275
- background-color: white;
276
- transform: scale(1.2);
277
- }
288
+ .${E} {
289
+ position: absolute;
290
+ bottom: 1rem;
291
+ left: 0;
292
+ right: 0;
293
+ display: flex;
294
+ justify-content: center;
295
+ gap: 0.5rem;
296
+ align-items: center;
297
+ }
298
+ .${E} button {
299
+ width: 0.75rem;
300
+ height: 0.75rem;
301
+ border-radius: 50%;
302
+ background-color: rgba(255, 255, 255, 0.5);
303
+ border: none;
304
+ cursor: pointer;
305
+ transition: background-color 0.3s, transform 0.3s;
306
+ }
307
+ .${E} button.active {
308
+ background-color: white;
309
+ transform: scale(1.2);
310
+ }
278
311
 
279
- .${k}.fraction {
280
- position: absolute;
281
- bottom: 1rem;
282
- left: 50%;
283
- transform: translateX(-50%);
284
- color: white;
285
- font-size: 1rem;
286
- display: flex;
287
- align-items: center;
288
- gap: 0.25rem;
289
- }
312
+ .${E}.fraction {
313
+ position: absolute;
314
+ bottom: 1rem;
315
+ left: 50%;
316
+ transform: translateX(-50%);
317
+ color: white;
318
+ font-size: 1rem;
319
+ display: flex;
320
+ align-items: center;
321
+ gap: 0.25rem;
322
+ }
290
323
 
291
- .${k}.progressbar {
292
- position: absolute;
293
- bottom: 0.5rem;
294
- left: 0;
295
- right: 0;
296
- height: 0.25rem;
297
- background-color: rgba(255, 255, 255, 0.2);
298
- }
299
- .${k}.progressbar .progress {
300
- height: 100%;
301
- background-color: white;
302
- transition: width 0.3s;
303
- }
324
+ .${E}.progressbar {
325
+ position: absolute;
326
+ bottom: 0.5rem;
327
+ left: 0;
328
+ right: 0;
329
+ height: 0.25rem;
330
+ background-color: rgba(255, 255, 255, 0.2);
331
+ }
332
+ .${E}.progressbar .progress {
333
+ height: 100%;
334
+ background-color: white;
335
+ transition: width 0.3s;
336
+ }
337
+ `,ce=Z(ee??{});return X(`Swiper`,e`
338
+ <style>
339
+ ${se}
304
340
  </style>
305
341
 
306
- <div class="${w}">
307
- <div class="${T}">
308
- ${A.map((e,n)=>t`
309
- <div class="${D} --slide-${n}" key=${n}>
310
- ${e}
342
+ <div ${H(ce.auto)} class="${S}">
343
+ <div class="${C}">
344
+ ${D.map((t,n)=>e`
345
+ <div class="${w} --slide-${n}" key=${n}>
346
+ ${t}
311
347
  </div>
312
348
  `)}
313
349
  </div>
314
350
 
315
- ${m?q:null}
316
- ${g&&_===`dots`?W:null}
317
- ${g&&_===`fraction`?G:null}
318
- ${g&&_===`progressbar`?K:null}
351
+ ${f?oe:null}
352
+ ${m&&h===`dots`?re:null}
353
+ ${m&&h===`fraction`?ie:null}
354
+ ${m&&h===`progressbar`?ae:null}
319
355
  </div>
320
- </lyco-component>
321
- `}function D(e,r){let i=e?.top?`top: ${e.top};`:``,o=e?.right?`right: ${e.right};`:``,s=e?.bottom?`bottom: ${e.bottom};`:``,c=e?.left?`left: ${e.left};`:``,l=e?.width?`width: ${e.width};`:``,u=e?.height?`height: ${e.height};`:``,d=typeof e?.zIndex==`number`?`z-index: ${e.zIndex};`:``,f=e?.style?e.style:``,p=e?.className?e.className:``,m=e=>t`
356
+ `)}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`
322
357
  <div
323
- class="${p}"
358
+ ${H(f.auto)}
359
+ class="${d}"
324
360
  style="
325
361
  position: absolute;
326
- ${i} ${o} ${s} ${c}
327
- ${l} ${u}
328
- ${d}
329
- ${f}
362
+ ${r} ${i} ${a} ${o}
363
+ ${s} ${c}
364
+ ${l}
365
+ ${u}
330
366
  "
331
367
  >
332
- ${n(e)}
368
+ ${U(t)}
333
369
  </div>
334
- `;return a(r,m)}function O(e,n){let r=e?.width??`300px`,i=e?.height??`auto`,a=e?.top??`20%`,s=e?.bottom??`auto`,c=e?.left??`50%`,l=e?.right??`auto`,u=c===`auto`?``:`transform: translateX(-50%);`,d=e?.background??`rgba(255, 255, 255, 0.3)`,f=e?.blur??`10px`,p=e?.borderRadius??`12px`,m=e?.padding??`16px`,h=e?.zIndex??1e3,g=e=>t`
370
+ `;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`
335
371
  <div
372
+ ${H(h.auto)}
336
373
  style="
337
374
  position: fixed;
338
375
  top: ${a};
339
- bottom: ${s};
340
- left: ${c};
341
- right: ${l};
342
- ${u}
376
+ bottom: ${o};
377
+ left: ${s};
378
+ right: ${c};
379
+ ${l}
343
380
  width: ${r};
344
381
  height: ${i};
345
- background: ${d};
346
- backdrop-filter: blur(${f});
347
- -webkit-backdrop-filter: blur(${f});
348
- border-radius: ${p};
349
- padding: ${m};
382
+ background: ${u};
383
+ backdrop-filter: blur(${d});
384
+ -webkit-backdrop-filter: blur(${d});
385
+ border-radius: ${f};
386
+ padding: ${p};
350
387
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
351
- z-index: ${h};
388
+ z-index: ${m};
352
389
  display: flex;
353
390
  flex-direction: column;
354
391
  "
355
392
  >
356
- ${e}
393
+ ${t}
357
394
  </div>
358
- `;return o(n,void 0,g)}function k(e,n){if(n===void 0)return n=>k(e,n??[t``]);let i=`${100/e.ratio}%`,a=e.maxWidth?`max-width: ${e.maxWidth};`:``,o=e.background?`background: ${e.background};`:``,s=e.overflow??`hidden`;return t`
395
+ `;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`
359
396
  <div
397
+ ${H(s.auto)}
360
398
  style="
361
399
  position: relative;
362
400
  width: 100%;
401
+ ${i}
363
402
  ${a}
364
- ${o}
365
- overflow: ${s};
403
+ overflow: ${o};
366
404
  "
367
405
  >
368
- <div style="width: 100%; padding-top: ${i};"></div>
406
+ <div style="width: 100%; padding-top: ${r};"></div>
369
407
  <div
370
408
  style="
371
409
  position: absolute;
@@ -375,149 +413,156 @@ import{LitElement as e,html as t}from"lit";function n(e){return e?typeof e==`fun
375
413
  height: 100%;
376
414
  "
377
415
  >
378
- ${r(n)}
416
+ ${W(n)}
379
417
  </div>
380
418
  </div>
381
- `}function A(e,r){if(r===void 0){let n=t=>A(e,t);return n.html=(n,...r)=>A(e,t(n,...r)),n}let i=u.value,a=l(`AutoFitGrid::auto-fit-grid`)+`-lyco-now-${i}`,o=e?.gap??`16px`,s=`
382
- .${a} {
419
+ `}function Xe(t,n){if(n===void 0){let n=e=>Xe(t,e);return n.html=(n,...r)=>Xe(t,e(n,...r)),n}let r=Y(`AutoFitGrid`),i=q(`AutoFitGrid::auto-fit-grid`)+`-lyco-now-`+r,a=t?.gap??`16px`,o=`
420
+ .${i} {
383
421
  display: grid;
384
- grid-template-columns: repeat(auto-fit, minmax(${e.minItemWidth}, 1fr));
385
- gap: ${o};
422
+ grid-template-columns: repeat(auto-fit, minmax(${t.minItemWidth}, 1fr));
423
+ gap: ${a};
386
424
  }
387
- `;return t`
388
- <lyco-component name="AutoFitGrid">
425
+ `,s=Z(t.on??{});return X(`AutoFitGrid`,e`
389
426
  <style>
390
- ${s}
427
+ ${o}
391
428
  </style>
392
- <div class="${a}">${n(r)}</div>
393
- </lyco-component>
394
- `}function j(e,n){if(n===void 0)return n=>j(e,n??[t``]);let i=e?.size??`32px`,a=e?.overlap??`-8px`,o=(e,n)=>t`
429
+ <div class="${i}" ${H(s.auto)}>${U(n)}</div>
430
+ `)}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`
395
431
  <div
396
432
  style="
397
- width: ${i};
398
- height: ${i};
433
+ width: ${r};
434
+ height: ${r};
399
435
  border-radius: 50%;
400
436
  overflow: hidden;
401
437
  border: 2px solid #fff;
402
- margin-left: ${n===0?`0`:a};
438
+ margin-left: ${n===0?`0`:i};
403
439
  box-sizing: content-box;
404
440
  "
405
441
  >
406
- ${e}
442
+ ${t}
407
443
  </div>
408
- `;return t`
409
- <div style="display: flex; align-items: center;">
410
- ${r(n,o)}
444
+ `;return e`
445
+ <div ${H(a.auto)} style="display: flex; align-items: center;">
446
+ ${W(n,o)}
411
447
  </div>
412
- `}function M(e,r){if(r===void 0){let n=n=>M(e,n??t``);return n.html=(n,...r)=>M(e,t(n,...r)),n}let i=e?.position??`top-right`,a=e?.size??`16px`,o=e?.background??`red`,s=e?.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 t`
448
+ `}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`
413
449
  <div style="position: relative; display: inline-block;">
414
- ${n(r)}
450
+ ${U(n)}
415
451
  <div
452
+ ${H(d.auto)}
416
453
  style="
417
454
  position: absolute;
418
- top: ${c};
419
- right: ${l};
420
- bottom: ${u};
421
- left: ${d};
422
- width: ${a};
423
- height: ${a};
424
- background: ${o};
425
- color: ${s};
426
- font-size: calc(${a} * 0.6);
455
+ top: ${s};
456
+ right: ${c};
457
+ bottom: ${l};
458
+ left: ${u};
459
+ width: ${i};
460
+ height: ${i};
461
+ background: ${a};
462
+ color: ${o};
463
+ font-size: calc(${i} * 0.6);
427
464
  border-radius: 50%;
428
465
  display: flex;
429
466
  justify-content: center;
430
467
  align-items: center;
431
- transform: translate(${d===`0`?`-50%`:`0`}, ${c===`0`?`-50%`:`0`});
468
+ transform: translate(${u===`0`?`-50%`:`0`}, ${s===`0`?`-50%`:`0`});
432
469
  "
433
470
  >
434
- ${e?.content??``}
471
+ ${t?.content??``}
435
472
  </div>
436
473
  </div>
437
- `}function N(e,n){if(n===void 0)return n=>N(e,n??[t``]);let i=e?.padding??`16px`,a=e?.borderRadius??`8px`,o=e?.shadow??`0 2px 8px rgba(0,0,0,0.1)`,s=e?.background??`#fff`;return t`
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`
475
+ <canvas
476
+ ${H(i)}
477
+ .class=${t?.className}
478
+ style=${t?.style??``}
479
+ ></canvas>
480
+ `}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`
438
481
  <div
482
+ ${H(s.auto)}
439
483
  style="
440
- background: ${s};
441
- border-radius: ${a};
442
- box-shadow: ${o};
443
- padding: ${i};
484
+ background: ${o};
485
+ border-radius: ${i};
486
+ box-shadow: ${a};
487
+ padding: ${r};
444
488
  box-sizing: border-box;
445
489
  "
446
490
  >
447
- ${r(n)}
491
+ ${W(n)}
448
492
  </div>
449
- `}function P(e,r){if(r===void 0){let n=n=>P(e,n??t``);return n.html=(n,...r)=>P(e,t(n,...r)),n}let i=e?.width?`width: ${e.width};`:``,a=e?.height?`height: ${e.height};`:``,o=e?.background?`background: ${e.background};`:``;return t`
493
+ `}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`
450
494
  <div
495
+ ${H(o.auto)}
451
496
  style="
452
497
  display: flex;
453
498
  justify-content: center;
454
499
  align-items: center;
455
- ${i} ${a} ${o}
500
+ ${r} ${i} ${a}
456
501
  "
457
502
  >
458
- ${n(r)}
503
+ ${U(n)}
459
504
  </div>
460
- `}function F(e,n){if(n===void 0)return n=>F(e,n??[t``]);let i=e?.maxWidth??`1024px`,a=e?.padding??`0 16px`,o=e?.background?`background: ${e.background};`:``,s=e?.fullHeight?`height: 100%;`:``;return t`
505
+ `}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`
461
506
  <div
507
+ ${H(s.auto)}
462
508
  style="
463
509
  width: 100%;
464
- max-width: ${i};
510
+ max-width: ${r};
465
511
  margin-left: auto;
466
512
  margin-right: auto;
467
- padding: ${a};
513
+ padding: ${i};
514
+ ${a}
468
515
  ${o}
469
- ${s}
470
516
  box-sizing: border-box;
471
517
  "
472
518
  >
473
- ${r(n)}
519
+ ${W(n)}
474
520
  </div>
475
- `}function I(e){let n=e?.orientation??`horizontal`,r=e?.thickness??`1px`,i=e?.color??`#e0e0e0`,a=e?.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 t`<div style="${o}"></div>`}function L(e,r){if(r===void 0){let n=n=>L(e,n??t``);return n.html=(n,...r)=>L(e,t(n,...r)),n}let i=e?.columns??4,a=e?.gap??`24px`,o=e?.background??`#f8f8f8`,s=e?.padding??`40px 16px`;return t`
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`
476
522
  <div
523
+ ${H(s.auto)}
477
524
  style="
478
525
  width: 100%;
479
- background: ${o};
480
- padding: ${s};
526
+ background: ${a};
527
+ padding: ${o};
481
528
  box-sizing: border-box;
482
529
  "
483
530
  >
484
531
  <div
485
532
  style="
486
533
  display: grid;
487
- grid-template-columns: repeat(${i}, 1fr);
488
- gap: ${a};
534
+ grid-template-columns: repeat(${r}, 1fr);
535
+ gap: ${i};
489
536
  "
490
537
  >
491
- ${n(r)}
538
+ ${U(n)}
492
539
  </div>
493
540
  <div style="text-align: center; margin-top: 24px; color: #666;">
494
541
  © ${new Date().getFullYear()} Your Company. All rights reserved.
495
542
  </div>
496
543
  </div>
497
- `}function R(e,r){if(r===void 0){let n=n=>R(e,n??t``);return n.html=(n,...r)=>R(e,t(n,...r)),n}let i=e.defaultColumns??1,a=e.gap??`16px`,o=u.value,s=e.className??l(`GridBreakpoint::grid-breakpoint`)+`-lyco-now-${o}`,c=Object.entries(e.breakpoints).map(([e,t])=>`
498
- @media ${e} {
499
- .${s} { grid-template-columns: repeat(${t}, 1fr); }
500
- }
501
- `).join(`
502
- `);return t`
503
- <lyco-component name="GridBreakpoint">
544
+ `}function ot(e,t){return t?e.map((e,n)=>t(e,n)):t=>e.map((e,n)=>t(e,n))}function st(t,n){if(n===void 0){let n=n=>st(t,n??e``);return n.html=(n,...r)=>st(t,e(n,...r)),n}let r=t.defaultColumns??1,i=t.gap??`16px`,a=Y(`GridBreakpoint`),o=t.className??q(`GridBreakpoint::grid-breakpoint`)+`-lyco-now-`+a,s=Object.entries(t.breakpoints).map(([e,t])=>`@media`+e+`{
545
+ `+o+`{ grid-template-columns: repeat(`+t+`, 1fr); }
546
+ }`).join(`
547
+ `),c=`
548
+ .${o} {
549
+ display: grid;
550
+ grid-template-columns: repeat(${r}, 1fr);
551
+ gap: ${i};
552
+ }
553
+ ${s}`,l=Z(t?.on??{});return X(`GridBreakpoint`,e`
504
554
  <style>
505
- .${s} {
506
- display: grid;
507
- grid-template-columns: repeat(${i}, 1fr);
508
- gap: ${a};
509
- }
510
555
  ${c}
511
556
  </style>
512
- <div class="${s}">${n(r)}</div>
513
- </lyco-component>
514
- `}function z(e,n){if(n===void 0)return n=>z(e,n??[t``]);let i=e?.backgroundImage?`background-image: url('${e.backgroundImage}');`:``,a=e?.height??`400px`,o=e?.overlayColor??`rgba(0, 0, 0, 0.3)`;return t`
557
+ <div ${H(l.auto)} class="${o}">${U(n)}</div>
558
+ `)}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`
515
559
  <div
560
+ ${H(o.auto)}
516
561
  style="
517
562
  position: relative;
518
563
  width: 100%;
519
- height: ${a};
520
- ${i}
564
+ height: ${i};
565
+ ${r}
521
566
  background-size: cover;
522
567
  background-position: center;
523
568
  "
@@ -526,7 +571,7 @@ import{LitElement as e,html as t}from"lit";function n(e){return e?typeof e==`fun
526
571
  style="
527
572
  position: absolute;
528
573
  top: 0; left: 0; right: 0; bottom: 0;
529
- background: ${o};
574
+ background: ${a};
530
575
  "
531
576
  ></div>
532
577
  <div
@@ -545,149 +590,174 @@ import{LitElement as e,html as t}from"lit";function n(e){return e?typeof e==`fun
545
590
  box-sizing: border-box;
546
591
  "
547
592
  >
548
- ${r(n)}
593
+ ${W(n)}
549
594
  </div>
550
595
  </div>
551
- `}function B(e,r){if(r===void 0){let n=n=>B(e,n??t``);return n.html=(n,...r)=>B(e,t(n,...r)),n}let i=e?.breakpoint??`(max-width: 600px)`,a=e?.mode??`hide`,o=u.value,s=e?.className??l(`Hidden::hidden-container`)+`-lyco-now-${o}`,c=a===`hide`?`@media ${i} { .${s} { display: none !important; } }`:`@media ${i} { .${s} { display: block !important; } }
552
- @media not ${i} { .${s} { display: none !important; } }`;return t`
553
- <lyco-component name="Hidden">
596
+ `}function lt(t,n){if(n===void 0){let n=n=>lt(t,n??e``);return n.html=(n,...r)=>lt(t,e(n,...r)),n}let r=t?.breakpoint??`(max-width: 600px)`,i=t?.mode??`hide`,a=Y(`Hidden`),o=t?.className??q(`Hidden::hidden-container`)+`-lyco-now-`+a,s=i===`hide`?`@media ${r} { .${o} { display: none !important; } }`:`@media ${r} { .${o} { display: block !important; } }
597
+ @media not ${r} { .${o} { display: none !important; } }`,c=`
598
+ .${o} {
599
+ display: block;
600
+ }
601
+ ${s}`,l=Z(t?.on??{});return X(`Hidden`,e`
554
602
  <style>
555
- .${s} {
556
- display: block;
557
- }
558
603
  ${c}
559
604
  </style>
560
- <div class="${s}">${n(r)}</div>
561
- </lyco-component>
562
- `}function V(e,n){let i=e?.bordered?`border: 1px solid #ddd; border-radius: 4px`:``,a=e?.striped?`li:nth-child(even) { background: #f9f9f9; }`:``,s=e?.hover?`li:hover { background: #f1f1f1; cursor: pointer; }`:``,c=u.value,d=e?.className??l(`ListGroup::list-group`)+`-lyco-now-${c}`,f=(e,n,r,i)=>r?t` <li>${e}</li> `:e,p=n=>t`
563
- <lyco-component name="ListGroup">
564
- <style>
565
- ul.${d} {
566
- list-style: none;
567
- margin: 0;
568
- padding: 0;
569
- ${i};
570
- }
571
- ul.${d} li {
572
- padding: 12px 16px;
573
- ${e?.bordered?`border-bottom: 1px solid #ddd`:``};
574
- }
575
- ul.${d} li:last-child {
576
- ${e?.bordered?`border-bottom: none`:``};
577
- }
578
- ${a}
579
- ${s}
580
- </style>
581
- <ul class="${d}">
582
- ${r(n,f)}
583
- </ul>
584
- </lyco-component>
585
- `;return o(n,p)}function H(e,n){if(n===void 0)return n=>H(e,n??[t``]);let i=e?.background??`rgba(0, 0, 0, 0.5)`,a=e?.zIndex??1e3,o=e?.fullScreen!==!1;return t`
605
+ <div ${H(l.auto)} class="${o}">${U(n)}</div>
606
+ `)}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
+ ul.${s} {
608
+ list-style: none;
609
+ margin: 0;
610
+ padding: 0;
611
+ ${r};
612
+ }
613
+ ul.${s} li {
614
+ padding: 12px 16px;
615
+ ${t?.bordered?`border-bottom: 1px solid #ddd`:``};
616
+ }
617
+ ul.${s} li:last-child {
618
+ ${t?.bordered?`border-bottom: none`:``};
619
+ }
620
+ ${i}
621
+ ${a}
622
+ `.toString(),l=t=>X(`List`,e`
623
+ <style>
624
+ ${c}
625
+ </style>
626
+ <ul class="${s}">
627
+ ${W(t)}
628
+ </ul>
629
+ `);return n===void 0?l:l(n)}function ft(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(`ListGroup`),s=t?.className??q(`ListGroup::list-group`)+`-lyco-now-`+o,c=(t,n,r,i)=>r?e` <li>${t}</li> `:t,l=`
630
+ ul.${s} {
631
+ list-style: none;
632
+ margin: 0;
633
+ padding: 0;
634
+ ${r};
635
+ }
636
+ ul.${s} li {
637
+ padding: 12px 16px;
638
+ ${t?.bordered?`border-bottom: 1px solid #ddd`:``};
639
+ }
640
+ ul.${s} li:last-child {
641
+ ${t?.bordered?`border-bottom: none`:``};
642
+ }
643
+ ${i}
644
+ ${a}
645
+ `,u=Z(t?.on??{}),d=t=>X(`ListGroup`,e`
646
+ <style>
647
+ ${l}
648
+ </style>
649
+ <ul ${H(u.auto)} class="${s}">
650
+ ${W(t,c)}
651
+ </ul>
652
+ `);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`
586
653
  <div
654
+ ${H(o.auto)}
587
655
  style="
588
- position: ${o?`fixed`:`absolute`};
589
- top: 0; left: 0; right: 0; bottom: 0;
590
- background: ${i};
591
- z-index: ${a};
592
- display: flex;
593
- justify-content: center;
594
- align-items: center;
595
- "
656
+ position: ${a?`fixed`:`absolute`};
657
+ top: 0; left: 0; right: 0; bottom: 0;
658
+ background: ${r};
659
+ z-index: ${i};
660
+ display: flex;
661
+ justify-content: center;
662
+ align-items: center;
663
+ "
596
664
  >
597
- ${r(n)}
665
+ ${W(n)}
598
666
  </div>
599
- `}function U(e,r){if(r===void 0){let n=n=>U(e,n??t``);return n.html=(n,...r)=>U(e,t(n,...r)),n}let i=e?.width?`width: ${e.width};`:``,a=e?.height?`height: ${e.height};`:``,o=e?.background?`background: ${e.background};`:``;return t`
667
+ `}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`
600
668
  <div
669
+ ${H(o.auto)}
601
670
  style="
602
671
  position: relative;
603
- ${i} ${a} ${o}
672
+ ${r} ${i} ${a}
604
673
  overflow: hidden;
605
674
  "
606
675
  >
607
- ${n(r)}
676
+ ${U(n)}
608
677
  </div>
609
- `}function W(e){let n=e?.width?`width: ${e.width};`:``,r=e?.height?`height: ${e.height};`:``;return t` <div style="${n} ${r}"></div> `}function G(e){let n=e?.type??`rect`,r=e?.width??`100%`,i=e?.height??`16px`,a=e?.borderRadius??`4px`,o=e?.animation!==!1,s=u.value,c=e?.className??l(`SkeletonLoader::skeleton-shimmer`)+`-lyco-now-${s}`,d=n===`circle`?`border-radius: 50%; width: ${r}; height: ${r}`:`border-radius: ${a}; width: ${r}; height: ${i}`;return t`
610
- <lyco-component>
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`
611
679
  <style>
612
680
  ${`
613
- @keyframes ${c+`-shimmer`} {
614
- 0% { background-color: #eee; }
615
- 50% { background-color: #ddd; }
616
- 100% { background-color: #eee; }
617
- }
618
- `}
681
+ @keyframes ${c+`-shimmer`} {
682
+ 0% { background-color: #eee; }
683
+ 50% { background-color: #ddd; }
684
+ 100% { background-color: #eee; }
685
+ }
686
+ `}
619
687
  .${c} {
620
- ${d};
688
+ ${l};
621
689
  background-color: #eee;
622
690
  ${o?`animation: ${c+`-shimmer`} 1.2s infinite ease-in-out`:``};
623
691
  }
624
692
  </style>
625
- <div class="${c}"></div>
626
- </lyco-component>
627
- `}function K(){return t`<div style="flex: 1 1 auto;"></div>`}function q(e,r){if(r===void 0){let n=n=>q(e,n??t``);return n.html=(n,...r)=>q(e,t(n,...r)),n}let i=e?.top?`top: ${e.top};`:``,a=e?.bottom?`bottom: ${e.bottom};`:``,o=typeof e?.zIndex==`number`?`z-index: ${e.zIndex};`:``;return t`
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`
628
695
  <div
696
+ ${H(o.auto)}
629
697
  style="
630
698
  position: sticky;
631
- ${i} ${a}
632
- ${o}
699
+ ${r} ${i}
700
+ ${a}
633
701
  "
634
702
  >
635
- ${n(r)}
703
+ ${U(n)}
636
704
  </div>
637
- `}function J(e,r){if(r===void 0){let n=n=>J(e,n??t``);return n.html=(n,...r)=>J(e,t(n,...r)),n}let i=u.value,a=e?.className??l(`Table::table`)+`-lyco-now-${i}`,o=e?.striped?`
638
- .${a} tr:nth-child(even) { background: #f9f9f9; }
639
- `:``,s=e?.hover?`
640
- .${a} tr:hover { background: #f1f1f1; }
641
- `:``,c=e?.bordered?`
642
- .${a}, .${a} th, .${a} td { border: 1px solid #ddd; }
643
- `:``;return t`
644
- <lyco-component name="Table">
705
+ `}function yt(t,n){if(n===void 0){let n=n=>yt(t,n??e``);return n.html=(n,...r)=>yt(t,e(n,...r)),n}let r=Y(`Table`),i=t?.className??q(`Table::table`)+`-lyco-now-${r}`,a=t?.striped?`
706
+ .${i} tr:nth-child(even) { background: #f9f9f9; }
707
+ `:``,o=t?.hover?`
708
+ .${i} tr:hover { background: #f1f1f1; }
709
+ `:``,s=t?.bordered?`
710
+ .${i}, .${i} th, .${i} td { border: 1px solid #ddd; }
711
+ `:``,c=`
712
+ /* 将表格包裹在带有 _className 的 div 里,使后续 CSS 作用于该 div 下的 table */
713
+ .${i} table {
714
+ width: 100%;
715
+ border-collapse: collapse;
716
+ }
717
+ .${i} th,
718
+ .${i} td {
719
+ padding: 8px 12px;
720
+ text-align: left;
721
+ }
722
+ ${a}
723
+ ${o}
724
+ ${s}
725
+ `,l=Z(t?.on??{});return X(`Table`,e`
645
726
  <style>
646
- /* 将表格包裹在带有 _className 的 div 里,使后续 CSS 作用于该 div 下的 table */
647
- .${a} table {
648
- width: 100%;
649
- border-collapse: collapse;
650
- }
651
- .${a} th,
652
- .${a} td {
653
- padding: 8px 12px;
654
- text-align: left;
655
- }
656
- ${o}
657
- ${s}
658
727
  ${c}
659
728
  </style>
660
729
 
661
- <div class="${a}">
730
+ <div ${H(l.auto)} class="${i}">
662
731
  <table>
663
- ${n(r)}
732
+ ${U(n)}
664
733
  </table>
665
734
  </div>
666
- </lyco-component>
667
- `}function Y(e,n){let i=e?.direction??`row`;return n===void 0?n=>Y(e,n??t``):t`
735
+ `)}function bt(t,n){let r=t?.direction??`row`,i=Z(t?.on??{});return n===void 0?n=>bt(t,n??e``):e`
668
736
  <div
737
+ ${H(i.auto)}
669
738
  style="
670
739
  display: flex;
671
- flex-direction: ${i};
740
+ flex-direction: ${r};
672
741
  flex-wrap: wrap;
673
- ${e?.gap?`gap: ${e.gap};`:``}
674
- ${e?.align?`align-items: ${e.align};`:``}
675
- ${e?.justify?`justify-content: ${e.justify};`:``}
742
+ ${t?.gap?`gap: ${t.gap};`:``}
743
+ ${t?.align?`align-items: ${t.align};`:``}
744
+ ${t?.justify?`justify-content: ${t.justify};`:``}
676
745
  "
677
746
  >
678
- ${r(n)}
747
+ ${W(n)}
679
748
  </div>
680
- `}function X(e,n){let i=e?.width?`width: ${e.width};`:``,a=e?.height?`height: ${e.height};`:``,o=e?.background?`background: ${e.background};`:``;if(n===void 0)return n=>X(e,n??[t``]);let s=`flex-start`,c=`flex-start`;switch(e?.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 t`
749
+ `}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`
681
750
  <div
751
+ ${H(o.auto)}
682
752
  style="
683
753
  position: relative;
684
754
  display: flex;
685
755
  justify-content: ${s};
686
756
  align-items: ${c};
687
- ${i} ${a} ${o}
757
+ ${r} ${i} ${a}
688
758
  "
689
759
  >
690
- ${r(n)}
760
+ ${W(n)}
691
761
  </div>
692
- `}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};
762
+ `}export{qe as AbsoluteBox,Je as AcrylicBar,Ye as AspectRatio,Xe as AutoFitGrid,Ze as AvatarStack,Qe as Badge,et as Canvas,tt as Card,nt as Center,Pe as Column,He as ColumnSplit,rt as Container,it as Divider,$ as Flex,Fe as FlowItem,at as FooterLayout,ot as ForEach,Ie as Grid,st as GridBreakpoint,Le as GridCol,Re as GridItem,ze as GridRow,ct as HeroSection,lt as Hidden,Q as LightboxContainer,dt as List,ft as ListGroup,ut as ListItem,pt as Overlay,mt as PositionContainer,Be as Row,Ue as RowSplit,We as ScrollBar,Ge as SideBarContainer,ht as SizedBox,gt as SkeletonLoader,_t as Spacer,vt as Sticky,Ke as Swiper,yt as Table,Ve as WaterFlow,bt as Wrap,xt as ZStack};
693
763
  //# sourceMappingURL=index.es.js.map