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