lyco 1.2.7 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +185 -208
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +321 -344
- package/dist/index.es.js.map +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/src/components/Virtualizer.labs.d.ts +86 -0
- package/dist/types/{components → src/components}/core.d.ts +0 -1
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/stories/virtualizer-example.d.ts +12 -0
- package/dist/types/stories/virtualizer-example.stories.d.ts +10 -0
- package/package.json +13 -4
- /package/dist/types/{components → src/components}/AbsoluteBox.d.ts +0 -0
- /package/dist/types/{components → src/components}/AcrylicBar.d.ts +0 -0
- /package/dist/types/{components → src/components}/AspectRatio.d.ts +0 -0
- /package/dist/types/{components → src/components}/AutoFitGrid.d.ts +0 -0
- /package/dist/types/{components → src/components}/AvatarStack.d.ts +0 -0
- /package/dist/types/{components → src/components}/Badge.d.ts +0 -0
- /package/dist/types/{components → src/components}/Canvas.d.ts +0 -0
- /package/dist/types/{components → src/components}/Card.d.ts +0 -0
- /package/dist/types/{components → src/components}/Center.d.ts +0 -0
- /package/dist/types/{components → src/components}/Column.d.ts +0 -0
- /package/dist/types/{components → src/components}/ColumnSplit.d.ts +0 -0
- /package/dist/types/{components → src/components}/Container.d.ts +0 -0
- /package/dist/types/{components → src/components}/Divider.d.ts +0 -0
- /package/dist/types/{components → src/components}/Flex.d.ts +0 -0
- /package/dist/types/{components → src/components}/FlowItem.d.ts +0 -0
- /package/dist/types/{components → src/components}/FooterLayout.d.ts +0 -0
- /package/dist/types/{components → src/components}/ForEach.d.ts +0 -0
- /package/dist/types/{components → src/components}/Grid.d.ts +0 -0
- /package/dist/types/{components → src/components}/GridBreakpoint.d.ts +0 -0
- /package/dist/types/{components → src/components}/GridCol.d.ts +0 -0
- /package/dist/types/{components → src/components}/GridItem.d.ts +0 -0
- /package/dist/types/{components → src/components}/GridRow.d.ts +0 -0
- /package/dist/types/{components → src/components}/HeroSection.d.ts +0 -0
- /package/dist/types/{components → src/components}/Hidden.d.ts +0 -0
- /package/dist/types/{components → src/components}/LightboxContainer.d.ts +0 -0
- /package/dist/types/{components → src/components}/List.d.ts +0 -0
- /package/dist/types/{components → src/components}/ListGroup.d.ts +0 -0
- /package/dist/types/{components → src/components}/Overlay.d.ts +0 -0
- /package/dist/types/{components → src/components}/PositionContainer.d.ts +0 -0
- /package/dist/types/{components → src/components}/Row.d.ts +0 -0
- /package/dist/types/{components → src/components}/RowSplit.d.ts +0 -0
- /package/dist/types/{components → src/components}/ScrollBar.d.ts +0 -0
- /package/dist/types/{components → src/components}/SideBarContainer.d.ts +0 -0
- /package/dist/types/{components → src/components}/SizedBox.d.ts +0 -0
- /package/dist/types/{components → src/components}/SkeletonLoader.d.ts +0 -0
- /package/dist/types/{components → src/components}/Spacer.d.ts +0 -0
- /package/dist/types/{components → src/components}/Sticky.d.ts +0 -0
- /package/dist/types/{components → src/components}/Style.d.ts +0 -0
- /package/dist/types/{components → src/components}/Swiper.d.ts +0 -0
- /package/dist/types/{components → src/components}/Table.d.ts +0 -0
- /package/dist/types/{components → src/components}/WaterFlow.d.ts +0 -0
- /package/dist/types/{components → src/components}/Wrap.d.ts +0 -0
- /package/dist/types/{components → src/components}/ZStack.d.ts +0 -0
- /package/dist/types/{components → src/components}/index.d.ts +0 -0
package/dist/index.cjs.js
CHANGED
@@ -1,32 +1,9 @@
|
|
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`,ee=`[
|
8
|
-
\f\r]`,x=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,S=/-->/g,C=/>/g,w=RegExp(`>|${ee}(?:([^\\s"'>=/]+)(${ee}*=${ee}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),T=/'/g,E=/"/g,D=/^(?:script|style|textarea|title)$/i,O=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),k=O(1),te=O(2),A=O(3),j=Symbol.for(`lit-noChange`),M=Symbol.for(`lit-nothing`),N=new WeakMap,P=g.createTreeWalker(g,129);function F(e,t){if(!y(e)||!e.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return d===void 0?t:d.createHTML(t)}const I=(e,t)=>{let n=e.length-1,r=[],i,a=t===2?`<svg>`:t===3?`<math>`:``,o=x;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===x?c[1]===`!--`?o=S:c[1]===void 0?c[2]===void 0?c[3]!==void 0&&(o=w):(D.test(c[2])&&(i=RegExp(`</`+c[2],`g`)),o=w):o=C:o===w?c[0]===`>`?(o=i??x,l=-1):c[1]===void 0?l=-2:(l=o.lastIndex-c[2].length,s=c[1],o=c[3]===void 0?w:c[3]===`"`?E:T):o===E||o===T?o=w:o===S||o===C?o=x:(o=w,i=void 0);let d=o===w&&e[t+1].startsWith(`/>`)?` `:``;a+=o===x?n+h:l>=0?(r.push(s),n.slice(0,l)+f+n.slice(l)+p+d):n+p+(l===-2?t:d)}return[F(e,a+(e[n]||`<?>`)+(t===2?`</svg>`:t===3?`</math>`:``)),r]};var L=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]=I(t,n);if(this.el=e.createElement(l,r),P.currentNode=this.el.content,n===2||n===3){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;(i=P.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]===`.`?re:r[1]===`?`?ie:r[1]===`@`?ae:B}),i.removeAttribute(e)}else e.startsWith(p)&&(c.push({type:6,index:a}),i.removeAttribute(e));if(D.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],_()),P.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 R(e,t,n=e,r){var i,a;if(t===j)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=R(e,o._$AS(e,t.values),o,r)),t}var ne=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);P.currentNode=r;let i=P.nextNode(),a=0,o=0,s=n[0];for(;s!==void 0;){if(a===s.index){let t;s.type===2?t=new z(i,i.nextSibling,this,e):s.type===1?t=new s.ctor(i,s.name,s.strings,this,e):s.type===6&&(t=new V(i,this,e)),this._$AV.push(t),s=n[++o]}a!==s?.index&&(i=P.nextNode(),a++)}return P.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++}},z=class e{get _$AU(){var e;return(e=this._$AM)?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=M,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=R(this,e,t),v(e)?e===M||e==null||e===``?(this._$AH!==M&&this._$AR(),this._$AH=M):e!==this._$AH&&e!==j&&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!==M&&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=L.createElement(F(r.h,r.h[0]),this.options)),r);if((t=this._$AH)?._$AD===i)this._$AH.p(n);else{let e=new ne(i,this),t=e.u(this.options);e.p(n),this.T(t),this._$AH=e}}_$AC(e){let t=N.get(e.strings);return t===void 0&&N.set(e.strings,t=new L(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))}},B=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=M,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=M}_$AI(e,t=this,n,r){let i=this.strings,a=!1;if(i===void 0)e=R(this,e,t,0),a=!v(e)||e!==this._$AH&&e!==j,a&&(this._$AH=e);else{let r=e,o,s;for(e=i[0],o=0;o<i.length-1;o++)s=R(this,r[n+o],t,o),s===j&&(s=this._$AH[o]),a||=!v(s)||s!==this._$AH[o],s===M?e=M:e!==M&&(e+=(s??``)+i[o+1]),this._$AH[o]=s}a&&!r&&this.j(e)}j(e){e===M?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??``)}},re=class extends B{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===M?void 0:e}},ie=class extends B{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==M)}},ae=class extends B{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){if((e=R(this,e,t,0)??M)===j)return;let n=this._$AH,r=e===M&&n!==M||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==M&&(n===M||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)}},V=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){R(this,e)}};const oe={M:f,P:p,A:m,C:1,L:I,R:ne,D:b,V:R,I:z,H:B,N:ie,U:ae,B:re,F:V},se=l.litHtmlPolyfillSupport;se?.(L,z),(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 M}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)),M}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} -->
|
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`)),l=s(require(`lit/directives/ref.js`)),u=Symbol(`___LYCO_NULL___`);function d(e){return e?typeof e==`function`?e():e:c.html``}function f(e,t){let n=t??(e=>e);if(e===void 0)return c.html``;if(Array.isArray(e))return e.map((e,t)=>n(d(e),t,!0,!1));if(typeof e!=`function`)return n(d(e),void 0,!1,!1);let r=e();return Array.isArray(r)?r.map((e,t)=>n(d(e),t,!0,!1)):n(d(r),void 0,!1,!0)}function p(e){let t=Math.random().toString(36).substring(2,15);return e?`lyco-${e}-${t}`:`lyco-${t}`}function m(e,t){let n=t??(e=>e),r=e=>n(d(e));return e?r(e):r}function h(e,t,n){let r=t??(e=>e),i=e=>r(f(e,n));return e?i(e):i}const g=e=>({init:!1,prefix:e,className:u}),_={"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 v(e){let t=_[e];return t.init||(_[e].init=!0,_[e].className=p(t.prefix)),_[e].className===u?p(t.prefix):_[e].className}const y={all:{value:0}};function b(e){var t;return(t=y[e])?.value||(y[e]={value:0}),y[e].value}function x(e,t){return y.all={value:y.all.value+1},y[e]===void 0?y[e]={value:0}:y[e].value=y[e].value+1,c.html`
|
2
|
+
<!-- ${e} - ${y[e].value} -->
|
26
3
|
${t}
|
27
|
-
`}function
|
4
|
+
`}function S(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 C(e){let t=new Map,n=Object.entries(e);return{bind(e){S(e,n,t)},unbindAll(){t.clear()}}}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?.fadeBg??`rgba(0,0,0,0.7)`,r=e?.zIndex??2e3,i=C(e?.on??{});return c.html`
|
28
5
|
<div
|
29
|
-
${
|
6
|
+
${(0,l.ref)(e=>{e?i.bind(e):i.unbindAll()})}
|
30
7
|
style="
|
31
8
|
position: fixed;
|
32
9
|
top: 0; left: 0; right: 0; bottom: 0;
|
@@ -37,11 +14,11 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
|
|
37
14
|
align-items: center;
|
38
15
|
"
|
39
16
|
>
|
40
|
-
${
|
17
|
+
${d(t)}
|
41
18
|
</div>
|
42
|
-
`}function
|
19
|
+
`}function T(e,t){let n=C(e?.on??{});return t===void 0?t=>T(e,t??[c.html``]):c.html`
|
43
20
|
<div
|
44
|
-
${
|
21
|
+
${(0,l.ref)(e=>{e?n.bind(e):n.unbindAll()})}
|
45
22
|
.class="${e?.className}"
|
46
23
|
style="
|
47
24
|
display: flex;
|
@@ -50,11 +27,11 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
|
|
50
27
|
${e?.style??``}
|
51
28
|
"
|
52
29
|
>
|
53
|
-
${
|
30
|
+
${f(t)}
|
54
31
|
</div>
|
55
|
-
`}function
|
32
|
+
`}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=e?.direction??`row`,r=C(e?.on??{});return c.html`
|
56
33
|
<div
|
57
|
-
${
|
34
|
+
${(0,l.ref)(e=>{e?r.bind(e):r.unbindAll()})}
|
58
35
|
style="
|
59
36
|
display: flex;
|
60
37
|
flex-direction: ${n};
|
@@ -63,77 +40,77 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
|
|
63
40
|
${e?.gap?`gap: ${e.gap};`:``}
|
64
41
|
"
|
65
42
|
>
|
66
|
-
${
|
43
|
+
${d(t)}
|
67
44
|
</div>
|
68
|
-
`}function
|
45
|
+
`}function D(e,t){if(t===void 0){let t=t=>D(e,t??c.html``);return t.html=(t,...n)=>D(e,(0,c.html)(t,...n)),t}let n=C(e?.on??{});return c.html`
|
69
46
|
<div
|
70
|
-
${
|
47
|
+
${(0,l.ref)(e=>{e?n.bind(e):n.unbindAll()})}
|
71
48
|
style="break-inside: avoid; margin-bottom: 16px;"
|
72
49
|
>
|
73
|
-
${
|
50
|
+
${d(t)}
|
74
51
|
</div>
|
75
|
-
`}function
|
52
|
+
`}function O(e,t){if(t===void 0)return t=>O(e,t??[c.html``]);let n=e?.columns??1,r=C(e?.on??{});return c.html`
|
76
53
|
<div
|
77
|
-
${
|
54
|
+
${(0,l.ref)(e=>{e?r.bind(e):r.unbindAll()})}
|
78
55
|
style="
|
79
56
|
display: grid;
|
80
57
|
grid-template-columns: repeat(${n}, 1fr);
|
81
58
|
${e?.gap?`gap: ${e.gap};`:``}
|
82
59
|
"
|
83
60
|
>
|
84
|
-
${
|
61
|
+
${f(t)}
|
85
62
|
</div>
|
86
|
-
`}function
|
63
|
+
`}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=b(`GridCol`),r=v(`GridCol::grid-col`)+`-lyco-now-`+n,i=e?.gap?`column-gap: ${e.gap};`:``,a=`
|
87
64
|
.${r} {
|
88
65
|
display: grid;
|
89
66
|
grid-auto-flow: column;
|
90
67
|
${i}
|
91
68
|
}
|
92
|
-
`,o
|
69
|
+
`,o=C(e?.on??{});return x(`GridCol`,c.html`
|
93
70
|
<style>
|
94
71
|
${a}
|
95
72
|
</style>
|
96
73
|
<div
|
97
|
-
${
|
74
|
+
${(0,l.ref)(e=>{e?o.bind(e):o.unbindAll()})}
|
98
75
|
class="${r}"
|
99
76
|
>
|
100
|
-
${
|
77
|
+
${d(t)}
|
101
78
|
</div>
|
102
|
-
`)}function
|
79
|
+
`)}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=C(e?.on??{});return c.html`
|
103
80
|
<div
|
104
|
-
${
|
81
|
+
${(0,l.ref)(e=>{e?n.bind(e):n.unbindAll()})}
|
105
82
|
style="${e?.span?`grid-column: span ${e.span};`:``}"
|
106
83
|
>
|
107
|
-
${
|
84
|
+
${d(t)}
|
108
85
|
</div>
|
109
|
-
`}function
|
86
|
+
`}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=b(`GridRow`),r=v(`GridRow::grid-row`)+`-lyco-now-`+n,i=e?.gap?`row-gap: ${e.gap};`:``,a=`
|
110
87
|
.${r} {
|
111
88
|
display: grid;
|
112
89
|
grid-auto-flow: row;
|
113
90
|
${i}
|
114
91
|
}
|
115
|
-
`,o
|
92
|
+
`,o=C(e?.on??{});return x(`GridRow`,c.html`
|
116
93
|
<style>
|
117
94
|
${a}
|
118
95
|
</style>
|
119
96
|
<div
|
120
|
-
${
|
97
|
+
${(0,l.ref)(e=>{e?o.bind(e):o.unbindAll()})}
|
121
98
|
class="${r}"
|
122
99
|
>
|
123
|
-
${
|
100
|
+
${d(t)}
|
124
101
|
</div>
|
125
|
-
`)}function
|
102
|
+
`)}function M(e,t){if(t===void 0)return t=>M(e,t??[c.html``]);let n=C(e?.on??{});return c.html`
|
126
103
|
<div
|
127
|
-
${
|
104
|
+
${(0,l.ref)(e=>{e?n.bind(e):n.unbindAll()})}
|
128
105
|
style="
|
129
106
|
display: flex;
|
130
107
|
flex-direction: row;
|
131
108
|
${e?.space?`gap: ${e.space};`:``}
|
132
109
|
"
|
133
110
|
>
|
134
|
-
${
|
111
|
+
${f(t)}
|
135
112
|
</div>
|
136
|
-
`}function
|
113
|
+
`}function N(e,t){if(t===void 0){let t=t=>N(e,t??c.html``);return t.html=(t,...n)=>N(e,(0,c.html)(t,...n)),t}let n=e?.columnCount??3,r=e?.gap??`16px`,i=b(`WaterFlow`),a=v(`WaterFlow::waterflow`)+`-lyco-now-${i}`,o=`
|
137
114
|
/* 使用 CSS 类来控制多列布局 */
|
138
115
|
.${a} {
|
139
116
|
column-count: ${n};
|
@@ -144,20 +121,20 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
|
|
144
121
|
display: inline-block;
|
145
122
|
width: 100%;
|
146
123
|
}
|
147
|
-
`,s
|
124
|
+
`,s=C(e?.on??{});return x(`WaterFlow`,c.html`
|
148
125
|
<style>
|
149
126
|
${o}
|
150
127
|
</style>
|
151
128
|
|
152
129
|
<div
|
153
|
-
${
|
130
|
+
${(0,l.ref)(e=>{e?s.bind(e):s.unbindAll()})}
|
154
131
|
class="${a}"
|
155
132
|
>
|
156
|
-
${
|
133
|
+
${d(t)}
|
157
134
|
</div>
|
158
|
-
`)}function
|
135
|
+
`)}function P(e,t){if(t===void 0){let t=t=>P(e,t??c.html``);return t.html=(t,...n)=>P(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=d(t);let s=C(e?.on??{});return c.html`
|
159
136
|
<div
|
160
|
-
${
|
137
|
+
${(0,l.ref)(e=>{e?s.bind(e):s.unbindAll()})}
|
161
138
|
style="
|
162
139
|
display: flex;
|
163
140
|
flex-direction: column;
|
@@ -169,9 +146,9 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
|
|
169
146
|
<div style="flex: 0 0 ${r}; overflow: auto;">${i}</div>
|
170
147
|
<div style="flex: 1 1 auto; overflow: auto;">${a}</div>
|
171
148
|
</div>
|
172
|
-
`}function
|
149
|
+
`}function F(e,t){if(t===void 0){let t=t=>F(e,t??c.html``);return t.html=(t,...n)=>F(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=d(t);let s=C(e?.on??{});return c.html`
|
173
150
|
<div
|
174
|
-
${
|
151
|
+
${(0,l.ref)(e=>{e?s.bind(e):s.unbindAll()})}
|
175
152
|
style="
|
176
153
|
display: flex;
|
177
154
|
flex-direction: row;
|
@@ -183,9 +160,9 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
|
|
183
160
|
<div style="flex: 0 0 ${r}; overflow: auto;">${i}</div>
|
184
161
|
<div style="flex: 1 1 auto; overflow: auto;">${a}</div>
|
185
162
|
</div>
|
186
|
-
`}function
|
163
|
+
`}function I(e,t){if(t===void 0){let t=t=>I(e,t??c.html``);return t.html=(t,...n)=>I(e,(0,c.html)(t,...n)),t}let n=e?.direction??`vertical`,r=e?.height??`100%`,i=e?.width??`100%`,a=e?.customCss??``,o=b(`ScrollBar`),s=e?.className??v(`ScrollBar::scrollbar-container`)+`-lyco-now-`+o,u=n===`horizontal`?`overflow-x: auto; overflow-y: hidden`:`overflow-y: auto; overflow-x: hidden`,f=`
|
187
164
|
.${s} {
|
188
|
-
${
|
165
|
+
${u};
|
189
166
|
width: ${i};
|
190
167
|
height: ${r};
|
191
168
|
}
|
@@ -201,19 +178,19 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
|
|
201
178
|
background: rgba(0, 0, 0, 0.05);
|
202
179
|
}
|
203
180
|
${a}
|
204
|
-
`,
|
181
|
+
`,p=C(e?.on??{});return x(`ScrollBar`,c.html`
|
205
182
|
<style>
|
206
|
-
${
|
183
|
+
${f}
|
207
184
|
</style>
|
208
185
|
<div
|
209
|
-
${
|
186
|
+
${(0,l.ref)(e=>{e?p.bind(e):p.unbindAll()})}
|
210
187
|
class="${s}"
|
211
188
|
>
|
212
|
-
${
|
189
|
+
${d(t)}
|
213
190
|
</div>
|
214
|
-
`)}function
|
191
|
+
`)}function L(e,t){if(t===void 0)return t=>L(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=f(t);let u=C(e?.on??{});return c.html`
|
215
192
|
<div
|
216
|
-
${
|
193
|
+
${(0,l.ref)(e=>{e?u.bind(e):u.unbindAll()})}
|
217
194
|
style="
|
218
195
|
display: flex;
|
219
196
|
flex-direction: ${r===`left`?`row`:`row-reverse`};
|
@@ -225,59 +202,59 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
|
|
225
202
|
<div style="flex: 0 0 ${n}; overflow: auto;">${a}</div>
|
226
203
|
<div style="flex: 1 1 auto; overflow: auto;">${o}</div>
|
227
204
|
</div>
|
228
|
-
`}function
|
229
|
-
<div class="${
|
230
|
-
${Array.from({length:
|
205
|
+
`}function ee(e={},t){if(t===void 0)return t=>ee(e,t??[c.html``]);let n=b(`Swiper`),{gap:r=`8px`,snapType:i=`mandatory`,height:a=`auto`,width:o=`100%`,className:s=v(`Swiper::swiper`)+`-lyco-now-${n}`,direction:u=`x`,scrollBehavior:d=`smooth`,align:f=`start`,showNavigation:p=!0,navigationPosition:m=`inside`,showPagination:h=!0,paginationType:g=`dots`,autoPlay:_=!1,interval:y=3e3,loop:S=!1,touchEnabled:w=!0,mouseWheel:T=!1,onSlideChange:E,on:D}=e,O=s,k=O+`-container`,A=O+`-slide`,j=O+`-navigation`,M=O+`-pagination`,N;N=t?typeof t==`function`?t():t:[];let P=N.length,[F,I]=(()=>{let e={value:0};return[()=>e.value,t=>{let n=Math.max(0,Math.min(t,P-1));e.value!==n&&(e.value=n,E?.(n))}]})(),L=e=>{let t=typeof document<`u`?document.querySelector(`.${k}`):null;if(!t)return;let n=t.querySelectorAll(`.${A}`);if(e<0||e>=n.length)return;let r=n[e],i=r.getBoundingClientRect(),a=t.getBoundingClientRect(),o;u===`x`?(o=r.offsetLeft-t.offsetLeft,f===`center`?o-=(a.width-i.width)/2:f===`end`&&(o-=a.width-i.width),t.scrollTo({left:o,behavior:d})):(o=r.offsetTop-t.offsetTop,f===`center`?o-=(a.height-i.height)/2:f===`end`&&(o-=a.height-i.height),t.scrollTo({top:o,behavior:d})),I(e)},R=()=>{let e=F()+1>=P?S?0:F():F()+1;L(e)},z=()=>{let e=F()-1<0?S?P-1:F():F()-1;L(e)},B=()=>{let e=typeof document<`u`?document.querySelector(`.${k}`):null;if(!e)return;let t=e.querySelectorAll(`.${A}`),n=0,r=1/0;t.forEach((t,i)=>{let a=t.getBoundingClientRect(),o=e.getBoundingClientRect(),s;if(u===`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)}),I(n)},V=e=>{if(!w)return;let t=e.touches[0],n=e.currentTarget;n.dataset.touchStartX=t.clientX.toString(),n.dataset.touchStartY=t.clientY.toString()},H=e=>{if(!w)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)||u===`x`)&&e.preventDefault()},U=e=>{if(!w)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&&(u===`x`?a>0?z():R():o>0?z():R()),delete t.dataset.touchStartX,delete t.dataset.touchStartY},W=e=>{T&&(e.preventDefault(),e.deltaY>0?R():z())},G=e=>{if(!_||!e)return;let t,n=()=>{t=setInterval(R,y)},r=()=>{clearInterval(t)};return e.addEventListener(`mouseenter`,r),e.addEventListener(`mouseleave`,n),n(),()=>{clearInterval(t),e.removeEventListener(`mouseenter`,r),e.removeEventListener(`mouseleave`,n)}},K=()=>{let e=typeof document<`u`?document.querySelector(`.${k}`):null;if(!e)return;let t=[];e.addEventListener(`scroll`,B),t.push(()=>e.removeEventListener(`scroll`,B)),w&&(e.addEventListener(`touchstart`,V),e.addEventListener(`touchmove`,H,{passive:!1}),e.addEventListener(`touchend`,U),t.push(()=>e.removeEventListener(`touchstart`,V)),t.push(()=>e.removeEventListener(`touchmove`,H)),t.push(()=>e.removeEventListener(`touchend`,U))),T&&(e.addEventListener(`wheel`,W,{passive:!1}),t.push(()=>e.removeEventListener(`wheel`,W)));let n=G(e);return n&&t.push(n),L(0),()=>t.forEach(e=>e())};typeof window<`u`&&typeof document<`u`&&setTimeout(K,0);let q=c.html`
|
206
|
+
<div class="${M}">
|
207
|
+
${Array.from({length:P},(e,t)=>c.html`
|
231
208
|
<button
|
232
|
-
class="${t===
|
233
|
-
@click=${()=>
|
209
|
+
class="${t===F()?`active`:``}"
|
210
|
+
@click=${()=>L(t)}
|
234
211
|
></button>
|
235
212
|
`)}
|
236
213
|
</div>
|
237
|
-
`,
|
238
|
-
<div class="${
|
239
|
-
<span class="current">${
|
214
|
+
`,J=c.html`
|
215
|
+
<div class="${M} fraction">
|
216
|
+
<span class="current">${F()+1}</span>
|
240
217
|
<span class="separator">/</span>
|
241
|
-
<span class="total">${
|
218
|
+
<span class="total">${P}</span>
|
242
219
|
</div>
|
243
|
-
`,
|
244
|
-
<div class="${
|
220
|
+
`,te=c.html`
|
221
|
+
<div class="${M} progressbar">
|
245
222
|
<div
|
246
223
|
class="progress"
|
247
|
-
style="width: ${
|
224
|
+
style="width: ${P>1?F()/(P-1)*100:0}%"
|
248
225
|
></div>
|
249
226
|
</div>
|
250
|
-
`,
|
251
|
-
<div class="${
|
252
|
-
<button class="prev" @click=${
|
253
|
-
<button class="next" @click=${
|
227
|
+
`,Y=c.html`
|
228
|
+
<div class="${j}">
|
229
|
+
<button class="prev" @click=${z}>◀</button>
|
230
|
+
<button class="next" @click=${R}>▶</button>
|
254
231
|
</div>
|
255
|
-
`,
|
256
|
-
.${
|
232
|
+
`,ne=`
|
233
|
+
.${O} {
|
257
234
|
position: relative;
|
258
235
|
overflow: hidden;
|
259
236
|
width: ${o};
|
260
237
|
height: ${a};
|
261
238
|
}
|
262
239
|
|
263
|
-
.${
|
240
|
+
.${k} {
|
264
241
|
width: 100%;
|
265
242
|
height: 100%;
|
266
243
|
overflow: auto;
|
267
|
-
scroll-snap-type: ${
|
244
|
+
scroll-snap-type: ${u+` `+i};
|
268
245
|
-webkit-overflow-scrolling: touch;
|
269
|
-
scroll-behavior: ${
|
246
|
+
scroll-behavior: ${d};
|
270
247
|
gap: ${r};
|
271
248
|
display: flex;
|
272
|
-
flex-direction: ${
|
249
|
+
flex-direction: ${u===`x`?`row`:`column`};
|
273
250
|
}
|
274
251
|
|
275
|
-
.${
|
276
|
-
scroll-snap-align: ${
|
252
|
+
.${A} {
|
253
|
+
scroll-snap-align: ${f};
|
277
254
|
flex-shrink: 0;
|
278
255
|
}
|
279
256
|
|
280
|
-
.${
|
257
|
+
.${j} {
|
281
258
|
position: absolute;
|
282
259
|
top: 50%;
|
283
260
|
left: 0;
|
@@ -286,10 +263,10 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
|
|
286
263
|
display: flex;
|
287
264
|
justify-content: space-between;
|
288
265
|
pointer-events: none;
|
289
|
-
padding: ${
|
266
|
+
padding: ${m===`outside`?`0 1rem`:`0 0.5rem`};
|
290
267
|
}
|
291
268
|
|
292
|
-
.${
|
269
|
+
.${j} button {
|
293
270
|
width: 2.5rem;
|
294
271
|
height: 2.5rem;
|
295
272
|
border-radius: 50%;
|
@@ -304,11 +281,11 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
|
|
304
281
|
transition: background-color 0.3s;
|
305
282
|
}
|
306
283
|
|
307
|
-
.${
|
284
|
+
.${j} button:hover {
|
308
285
|
background-color: rgba(0, 0, 0, 0.8);
|
309
286
|
}
|
310
287
|
|
311
|
-
.${
|
288
|
+
.${M} {
|
312
289
|
position: absolute;
|
313
290
|
bottom: 1rem;
|
314
291
|
left: 0;
|
@@ -318,7 +295,7 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
|
|
318
295
|
gap: 0.5rem;
|
319
296
|
align-items: center;
|
320
297
|
}
|
321
|
-
.${
|
298
|
+
.${M} button {
|
322
299
|
width: 0.75rem;
|
323
300
|
height: 0.75rem;
|
324
301
|
border-radius: 50%;
|
@@ -327,12 +304,12 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
|
|
327
304
|
cursor: pointer;
|
328
305
|
transition: background-color 0.3s, transform 0.3s;
|
329
306
|
}
|
330
|
-
.${
|
307
|
+
.${M} button.active {
|
331
308
|
background-color: white;
|
332
309
|
transform: scale(1.2);
|
333
310
|
}
|
334
311
|
|
335
|
-
.${
|
312
|
+
.${M}.fraction {
|
336
313
|
position: absolute;
|
337
314
|
bottom: 1rem;
|
338
315
|
left: 50%;
|
@@ -344,7 +321,7 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
|
|
344
321
|
gap: 0.25rem;
|
345
322
|
}
|
346
323
|
|
347
|
-
.${
|
324
|
+
.${M}.progressbar {
|
348
325
|
position: absolute;
|
349
326
|
bottom: 0.5rem;
|
350
327
|
left: 0;
|
@@ -352,75 +329,75 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
|
|
352
329
|
height: 0.25rem;
|
353
330
|
background-color: rgba(255, 255, 255, 0.2);
|
354
331
|
}
|
355
|
-
.${
|
332
|
+
.${M}.progressbar .progress {
|
356
333
|
height: 100%;
|
357
334
|
background-color: white;
|
358
335
|
transition: width 0.3s;
|
359
336
|
}
|
360
|
-
`,
|
337
|
+
`,X=C(D??{});return x(`Swiper`,c.html`
|
361
338
|
<style>
|
362
|
-
${
|
339
|
+
${ne}
|
363
340
|
</style>
|
364
341
|
|
365
342
|
<div
|
366
|
-
${
|
367
|
-
class="${
|
343
|
+
${(0,l.ref)(e=>{e?X.bind(e):X.unbindAll()})}
|
344
|
+
class="${O}"
|
368
345
|
>
|
369
|
-
<div class="${
|
370
|
-
${
|
371
|
-
<div class="${
|
346
|
+
<div class="${k}">
|
347
|
+
${N.map((e,t)=>c.html`
|
348
|
+
<div class="${A} --slide-${t}" key=${t}>
|
372
349
|
${e}
|
373
350
|
</div>
|
374
351
|
`)}
|
375
352
|
</div>
|
376
353
|
|
377
|
-
${
|
378
|
-
${
|
379
|
-
${
|
380
|
-
${
|
354
|
+
${p?Y:null}
|
355
|
+
${h&&g===`dots`?q:null}
|
356
|
+
${h&&g===`fraction`?J:null}
|
357
|
+
${h&&g===`progressbar`?te:null}
|
381
358
|
</div>
|
382
|
-
`)}function
|
359
|
+
`)}function R(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};`:``,f=e?.style?e.style:``,p=e?.className?e.className:``,h=C(e?.on??{}),g=e=>c.html`
|
383
360
|
<div
|
384
|
-
${
|
385
|
-
class="${
|
361
|
+
${(0,l.ref)(e=>{e?h.bind(e):h.unbindAll()})}
|
362
|
+
class="${p}"
|
386
363
|
style="
|
387
364
|
position: absolute;
|
388
365
|
${n} ${r} ${i} ${a}
|
389
366
|
${o} ${s}
|
390
|
-
${
|
391
|
-
${
|
367
|
+
${u}
|
368
|
+
${f}
|
392
369
|
"
|
393
370
|
>
|
394
|
-
${
|
371
|
+
${d(e)}
|
395
372
|
</div>
|
396
|
-
`;return
|
373
|
+
`;return m(t,g)}function z(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`,u=o===`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`,g=e?.zIndex??1e3,_=C(e?.on??{}),v=e=>c.html`
|
397
374
|
<div
|
398
|
-
${
|
375
|
+
${(0,l.ref)(e=>{e?_.bind(e):_.unbindAll()})}
|
399
376
|
style="
|
400
377
|
position: fixed;
|
401
378
|
top: ${i};
|
402
379
|
bottom: ${a};
|
403
380
|
left: ${o};
|
404
381
|
right: ${s};
|
405
|
-
${
|
382
|
+
${u}
|
406
383
|
width: ${n};
|
407
384
|
height: ${r};
|
408
|
-
background: ${
|
409
|
-
backdrop-filter: blur(${
|
410
|
-
-webkit-backdrop-filter: blur(${
|
411
|
-
border-radius: ${
|
412
|
-
padding: ${
|
385
|
+
background: ${d};
|
386
|
+
backdrop-filter: blur(${f});
|
387
|
+
-webkit-backdrop-filter: blur(${f});
|
388
|
+
border-radius: ${p};
|
389
|
+
padding: ${m};
|
413
390
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
|
414
|
-
z-index: ${
|
391
|
+
z-index: ${g};
|
415
392
|
display: flex;
|
416
393
|
flex-direction: column;
|
417
394
|
"
|
418
395
|
>
|
419
396
|
${e}
|
420
397
|
</div>
|
421
|
-
`;return
|
398
|
+
`;return h(t,void 0,v)}function B(e,t){if(t===void 0)return t=>B(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=C(e.on??{});return c.html`
|
422
399
|
<div
|
423
|
-
${
|
400
|
+
${(0,l.ref)(e=>{e?o.bind(e):o.unbindAll()})}
|
424
401
|
style="
|
425
402
|
position: relative;
|
426
403
|
width: 100%;
|
@@ -439,26 +416,26 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
|
|
439
416
|
height: 100%;
|
440
417
|
"
|
441
418
|
>
|
442
|
-
${
|
419
|
+
${f(t)}
|
443
420
|
</div>
|
444
421
|
</div>
|
445
|
-
`}function
|
422
|
+
`}function V(e,t){if(t===void 0){let t=t=>V(e,t);return t.html=(t,...n)=>V(e,(0,c.html)(t,...n)),t}let n=b(`AutoFitGrid`),r=v(`AutoFitGrid::auto-fit-grid`)+`-lyco-now-`+n,i=e?.gap??`16px`,a=`
|
446
423
|
.${r} {
|
447
424
|
display: grid;
|
448
425
|
grid-template-columns: repeat(auto-fit, minmax(${e.minItemWidth}, 1fr));
|
449
426
|
gap: ${i};
|
450
427
|
}
|
451
|
-
`,o
|
428
|
+
`,o=C(e.on??{});return x(`AutoFitGrid`,c.html`
|
452
429
|
<style>
|
453
430
|
${a}
|
454
431
|
</style>
|
455
432
|
<div
|
456
433
|
class="${r}"
|
457
|
-
${
|
434
|
+
${(0,l.ref)(e=>{e?o.bind(e):o.unbindAll()})}
|
458
435
|
>
|
459
|
-
${
|
436
|
+
${d(t)}
|
460
437
|
</div>
|
461
|
-
`)}function
|
438
|
+
`)}function H(e,t){if(t===void 0)return t=>H(e,t??[c.html``]);let n=e?.size??`32px`,r=e?.overlap??`-8px`,i=C(e?.on??{}),a=(e,t)=>c.html`
|
462
439
|
<div
|
463
440
|
style="
|
464
441
|
width: ${n};
|
@@ -474,22 +451,22 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
|
|
474
451
|
</div>
|
475
452
|
`;return c.html`
|
476
453
|
<div
|
477
|
-
${
|
454
|
+
${(0,l.ref)(e=>{e?i.bind(e):i.unbindAll()})}
|
478
455
|
style="display: flex; align-items: center;"
|
479
456
|
>
|
480
|
-
${
|
457
|
+
${f(t,a)}
|
481
458
|
</div>
|
482
|
-
`}function
|
459
|
+
`}function U(e,t){if(t===void 0){let t=t=>U(e,t??c.html``);return t.html=(t,...n)=>U(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,f]=[n.includes(`top`)?`0`:`auto`,n.includes(`right`)?`0`:`auto`,n.includes(`bottom`)?`0`:`auto`,n.includes(`left`)?`0`:`auto`],p=C(e?.on??{});return c.html`
|
483
460
|
<div style="position: relative; display: inline-block;">
|
484
|
-
${
|
461
|
+
${d(t)}
|
485
462
|
<div
|
486
|
-
${
|
463
|
+
${(0,l.ref)(e=>{e?p.bind(e):p.unbindAll()})}
|
487
464
|
style="
|
488
465
|
position: absolute;
|
489
466
|
top: ${o};
|
490
467
|
right: ${s};
|
491
|
-
bottom: ${
|
492
|
-
left: ${
|
468
|
+
bottom: ${u};
|
469
|
+
left: ${f};
|
493
470
|
width: ${r};
|
494
471
|
height: ${r};
|
495
472
|
background: ${i};
|
@@ -499,21 +476,21 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
|
|
499
476
|
display: flex;
|
500
477
|
justify-content: center;
|
501
478
|
align-items: center;
|
502
|
-
transform: translate(${
|
479
|
+
transform: translate(${f===`0`?`-50%`:`0`}, ${o===`0`?`-50%`:`0`});
|
503
480
|
"
|
504
481
|
>
|
505
482
|
${e?.content??``}
|
506
483
|
</div>
|
507
484
|
</div>
|
508
|
-
`}function
|
485
|
+
`}function W(e,t){return e?n=>{typeof e==`function`?e(n):e.current=n,typeof t==`function`?t(n):t.current=n}:t}function G(e,t){if(!t)return t=>G(e,t??(0,l.createRef)());let n=C(e?.on??{}),r=W(t,e=>{e?n.bind(e):n.unbindAll()});return c.html`
|
509
486
|
<canvas
|
510
|
-
${
|
487
|
+
${(0,l.ref)(r)}
|
511
488
|
.class=${e?.className}
|
512
489
|
style=${e?.style??``}
|
513
490
|
></canvas>
|
514
|
-
`}function
|
491
|
+
`}function K(e,t){if(t===void 0)return t=>K(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=C(e?.on??{});return c.html`
|
515
492
|
<div
|
516
|
-
${
|
493
|
+
${(0,l.ref)(e=>{e?o.bind(e):o.unbindAll()})}
|
517
494
|
style="
|
518
495
|
background: ${a};
|
519
496
|
border-radius: ${r};
|
@@ -522,11 +499,11 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
|
|
522
499
|
box-sizing: border-box;
|
523
500
|
"
|
524
501
|
>
|
525
|
-
${
|
502
|
+
${f(t)}
|
526
503
|
</div>
|
527
|
-
`}function
|
504
|
+
`}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?.width?`width: ${e.width};`:``,r=e?.height?`height: ${e.height};`:``,i=e?.background?`background: ${e.background};`:``,a=C(e?.on??{});return c.html`
|
528
505
|
<div
|
529
|
-
${
|
506
|
+
${(0,l.ref)(e=>{e?a.bind(e):a.unbindAll()})}
|
530
507
|
style="
|
531
508
|
display: flex;
|
532
509
|
justify-content: center;
|
@@ -534,11 +511,11 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
|
|
534
511
|
${n} ${r} ${i}
|
535
512
|
"
|
536
513
|
>
|
537
|
-
${
|
514
|
+
${d(t)}
|
538
515
|
</div>
|
539
|
-
`}function
|
516
|
+
`}function J(e,t){if(t===void 0)return t=>J(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=C(e?.on??{});return c.html`
|
540
517
|
<div
|
541
|
-
${
|
518
|
+
${(0,l.ref)(e=>{e?o.bind(e):o.unbindAll()})}
|
542
519
|
style="
|
543
520
|
width: 100%;
|
544
521
|
max-width: ${n};
|
@@ -550,14 +527,14 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
|
|
550
527
|
box-sizing: border-box;
|
551
528
|
"
|
552
529
|
>
|
553
|
-
${
|
530
|
+
${f(t)}
|
554
531
|
</div>
|
555
|
-
`}function
|
556
|
-
${
|
532
|
+
`}function te(e){let t=e?.orientation??`horizontal`,n=e?.thickness??`1px`,r=e?.color??`#e0e0e0`,i=e?.margin??(t===`horizontal`?`8px 0`:`0 8px`),a=C(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
|
533
|
+
${(0,l.ref)(e=>{e?a.bind(e):a.unbindAll()})}
|
557
534
|
style="${o}"
|
558
|
-
></div>`}function
|
535
|
+
></div>`}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?.columns??4,r=e?.gap??`24px`,i=e?.background??`#f8f8f8`,a=e?.padding??`40px 16px`,o=C(e?.on??{});return c.html`
|
559
536
|
<div
|
560
|
-
${
|
537
|
+
${(0,l.ref)(e=>{e?o.bind(e):o.unbindAll()})}
|
561
538
|
style="
|
562
539
|
width: 100%;
|
563
540
|
background: ${i};
|
@@ -572,13 +549,13 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
|
|
572
549
|
gap: ${r};
|
573
550
|
"
|
574
551
|
>
|
575
|
-
${
|
552
|
+
${d(t)}
|
576
553
|
</div>
|
577
554
|
<div style="text-align: center; margin-top: 24px; color: #666;">
|
578
555
|
© ${new Date().getFullYear()} Your Company. All rights reserved.
|
579
556
|
</div>
|
580
557
|
</div>
|
581
|
-
`}function
|
558
|
+
`}function ne(e,t){return t?e.map((e,n)=>t(e,n)):t=>e.map((e,n)=>t(e,n))}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.defaultColumns??1,r=e.gap??`16px`,i=b(`GridBreakpoint`),a=e.className??v(`GridBreakpoint::grid-breakpoint`)+`-lyco-now-`+i,o=Object.entries(e.breakpoints).map(([e,t])=>`@media`+e+`{
|
582
559
|
`+a+`{ grid-template-columns: repeat(`+t+`, 1fr); }
|
583
560
|
}`).join(`
|
584
561
|
`),s=`
|
@@ -587,19 +564,19 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
|
|
587
564
|
grid-template-columns: repeat(${n}, 1fr);
|
588
565
|
gap: ${r};
|
589
566
|
}
|
590
|
-
${o}`,
|
567
|
+
${o}`,u=C(e?.on??{});return x(`GridBreakpoint`,c.html`
|
591
568
|
<style>
|
592
569
|
${s}
|
593
570
|
</style>
|
594
571
|
<div
|
595
|
-
${
|
572
|
+
${(0,l.ref)(e=>{e?u.bind(e):u.unbindAll()})}
|
596
573
|
class="${a}"
|
597
574
|
>
|
598
|
-
${
|
575
|
+
${d(t)}
|
599
576
|
</div>
|
600
|
-
`)}function
|
577
|
+
`)}function re(e,t){if(t===void 0)return t=>re(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=C(e?.on??{});return c.html`
|
601
578
|
<div
|
602
|
-
${
|
579
|
+
${(0,l.ref)(e=>{e?a.bind(e):a.unbindAll()})}
|
603
580
|
style="
|
604
581
|
position: relative;
|
605
582
|
width: 100%;
|
@@ -632,25 +609,25 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
|
|
632
609
|
box-sizing: border-box;
|
633
610
|
"
|
634
611
|
>
|
635
|
-
${
|
612
|
+
${f(t)}
|
636
613
|
</div>
|
637
614
|
</div>
|
638
|
-
`}function
|
615
|
+
`}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?.breakpoint??`(max-width: 600px)`,r=e?.mode??`hide`,i=b(`Hidden`),a=e?.className??v(`Hidden::hidden-container`)+`-lyco-now-`+i,o=r===`hide`?`@media ${n} { .${a} { display: none !important; } }`:`@media ${n} { .${a} { display: block !important; } }
|
639
616
|
@media not ${n} { .${a} { display: none !important; } }`,s=`
|
640
617
|
.${a} {
|
641
618
|
display: block;
|
642
619
|
}
|
643
|
-
${o}`,
|
620
|
+
${o}`,u=C(e?.on??{});return x(`Hidden`,c.html`
|
644
621
|
<style>
|
645
622
|
${s}
|
646
623
|
</style>
|
647
624
|
<div
|
648
|
-
${
|
625
|
+
${(0,l.ref)(e=>{e?u.bind(e):u.unbindAll()})}
|
649
626
|
class="${a}"
|
650
627
|
>
|
651
|
-
${
|
628
|
+
${d(t)}
|
652
629
|
</div>
|
653
|
-
`)}function
|
630
|
+
`)}function ie(e){return c.html` <li>${f(e)}</li> `}function ae(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=b(`List`),o=e?.className??v(`List::list`)+`-lyco-now-${a}`,s=`
|
654
631
|
ul.${o} {
|
655
632
|
list-style: none;
|
656
633
|
margin: 0;
|
@@ -666,14 +643,14 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
|
|
666
643
|
}
|
667
644
|
${r}
|
668
645
|
${i}
|
669
|
-
`.toString(),l=e=>
|
646
|
+
`.toString(),l=e=>x(`List`,c.html`
|
670
647
|
<style>
|
671
648
|
${s}
|
672
649
|
</style>
|
673
650
|
<ul class="${o}">
|
674
|
-
${
|
651
|
+
${f(e)}
|
675
652
|
</ul>
|
676
|
-
`);return t===void 0?l:l(t)}function
|
653
|
+
`);return t===void 0?l:l(t)}function oe(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=b(`ListGroup`),o=e?.className??v(`ListGroup::list-group`)+`-lyco-now-`+a,s=(e,t,n,r)=>n?c.html` <li>${e}</li> `:e,u=`
|
677
654
|
ul.${o} {
|
678
655
|
list-style: none;
|
679
656
|
margin: 0;
|
@@ -689,19 +666,19 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
|
|
689
666
|
}
|
690
667
|
${r}
|
691
668
|
${i}
|
692
|
-
`,
|
669
|
+
`,d=C(e?.on??{}),p=e=>x(`ListGroup`,c.html`
|
693
670
|
<style>
|
694
|
-
${
|
671
|
+
${u}
|
695
672
|
</style>
|
696
673
|
<ul
|
697
|
-
${
|
674
|
+
${(0,l.ref)(e=>{e?d.bind(e):d.unbindAll()})}
|
698
675
|
class="${o}"
|
699
676
|
>
|
700
|
-
${
|
677
|
+
${f(e,s)}
|
701
678
|
</ul>
|
702
|
-
`);return
|
679
|
+
`);return h(t,p)}function se(e,t){if(t===void 0)return t=>se(e,t??[c.html``]);let n=e?.background??`rgba(0, 0, 0, 0.5)`,r=e?.zIndex??1e3,i=e?.fullScreen!==!1,a=C(e?.on??{});return c.html`
|
703
680
|
<div
|
704
|
-
${
|
681
|
+
${(0,l.ref)(e=>{e?a.bind(e):a.unbindAll()})}
|
705
682
|
style="
|
706
683
|
position: ${i?`fixed`:`absolute`};
|
707
684
|
top: 0; left: 0; right: 0; bottom: 0;
|
@@ -712,23 +689,23 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
|
|
712
689
|
align-items: center;
|
713
690
|
"
|
714
691
|
>
|
715
|
-
${
|
692
|
+
${f(t)}
|
716
693
|
</div>
|
717
|
-
`}function
|
694
|
+
`}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?.width?`width: ${e.width};`:``,r=e?.height?`height: ${e.height};`:``,i=e?.background?`background: ${e.background};`:``,a=C(e?.on??{});return c.html`
|
718
695
|
<div
|
719
|
-
${
|
696
|
+
${(0,l.ref)(e=>{e?a.bind(e):a.unbindAll()})}
|
720
697
|
style="
|
721
698
|
position: relative;
|
722
699
|
${n} ${r} ${i}
|
723
700
|
overflow: hidden;
|
724
701
|
"
|
725
702
|
>
|
726
|
-
${
|
703
|
+
${d(t)}
|
727
704
|
</div>
|
728
|
-
`}function
|
729
|
-
${
|
705
|
+
`}function ce(e){let t=e?.width?`width: ${e.width};`:``,n=e?.height?`height: ${e.height};`:``,r=C(e?.on??{});return c.html`<div
|
706
|
+
${(0,l.ref)(e=>{e?r.bind(e):r.unbindAll()})}
|
730
707
|
style="${t} ${n}"
|
731
|
-
></div>`}function
|
708
|
+
></div>`}function le(e){let t=e?.type??`rect`,n=e?.width??`100%`,r=e?.height??`16px`,i=e?.borderRadius??`4px`,a=e?.animation!==!1,o=b(`SkeletonLoader`),s=e?.className??v(`SkeletonLoader::skeleton-shimmer`)+`-lyco-now-`+o,u=t===`circle`?`border-radius: 50%; width: ${n}; height: ${n}`:`border-radius: ${i}; width: ${n}; height: ${r}`,d=C(e?.on??{});return x(`SkeletonLoader`,c.html`
|
732
709
|
<style>
|
733
710
|
${`
|
734
711
|
@keyframes ${s+`-shimmer`} {
|
@@ -738,30 +715,30 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
|
|
738
715
|
}
|
739
716
|
`}
|
740
717
|
.${s} {
|
741
|
-
${
|
718
|
+
${u};
|
742
719
|
background-color: #eee;
|
743
720
|
${a?`animation: ${s+`-shimmer`} 1.2s infinite ease-in-out`:``};
|
744
721
|
}
|
745
722
|
</style>
|
746
723
|
<div
|
747
|
-
${
|
724
|
+
${(0,l.ref)(e=>{e?d.bind(e):d.unbindAll()})}
|
748
725
|
class="${s}"
|
749
726
|
></div>
|
750
|
-
`)}function
|
751
|
-
${
|
727
|
+
`)}function ue(e){let t=C(e?.on??{});return c.html`<div
|
728
|
+
${(0,l.ref)(e=>{e?t.bind(e):t.unbindAll()})}
|
752
729
|
style="flex: 1 1 auto;"
|
753
|
-
></div>`}function
|
730
|
+
></div>`}function $(e,t){if(t===void 0){let t=t=>$(e,t??c.html``);return t.html=(t,...n)=>$(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=C(e?.on??{});return c.html`
|
754
731
|
<div
|
755
|
-
${
|
732
|
+
${(0,l.ref)(e=>{e?a.bind(e):a.unbindAll()})}
|
756
733
|
style="
|
757
734
|
position: sticky;
|
758
735
|
${n} ${r}
|
759
736
|
${i}
|
760
737
|
"
|
761
738
|
>
|
762
|
-
${
|
739
|
+
${d(t)}
|
763
740
|
</div>
|
764
|
-
`}function
|
741
|
+
`}function de(e,t){if(t===void 0){let t=t=>de(e,t??c.html``);return t.html=(t,...n)=>de(e,(0,c.html)(t,...n)),t}let n=b(`Table`),r=e?.className??v(`Table::table`)+`-lyco-now-${n}`,i=e?.striped?`
|
765
742
|
.${r} tr:nth-child(even) { background: #f9f9f9; }
|
766
743
|
`:``,a=e?.hover?`
|
767
744
|
.${r} tr:hover { background: #f1f1f1; }
|
@@ -781,22 +758,22 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
|
|
781
758
|
${i}
|
782
759
|
${a}
|
783
760
|
${o}
|
784
|
-
`,
|
761
|
+
`,u=C(e?.on??{});return x(`Table`,c.html`
|
785
762
|
<style>
|
786
763
|
${s}
|
787
764
|
</style>
|
788
765
|
|
789
766
|
<div
|
790
|
-
${
|
767
|
+
${(0,l.ref)(e=>{e?u.bind(e):u.unbindAll()})}
|
791
768
|
class="${r}"
|
792
769
|
>
|
793
770
|
<table>
|
794
|
-
${
|
771
|
+
${d(t)}
|
795
772
|
</table>
|
796
773
|
</div>
|
797
|
-
`)}function
|
774
|
+
`)}function fe(e,t){let n=e?.direction??`row`,r=C(e?.on??{});return t===void 0?t=>fe(e,t??c.html``):c.html`
|
798
775
|
<div
|
799
|
-
${
|
776
|
+
${(0,l.ref)(e=>{e?r.bind(e):r.unbindAll()})}
|
800
777
|
style="
|
801
778
|
display: flex;
|
802
779
|
flex-direction: ${n};
|
@@ -806,11 +783,11 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
|
|
806
783
|
${e?.justify?`justify-content: ${e.justify};`:``}
|
807
784
|
"
|
808
785
|
>
|
809
|
-
${
|
786
|
+
${f(t)}
|
810
787
|
</div>
|
811
|
-
`}function
|
788
|
+
`}function pe(e,t){let n=e?.width?`width: ${e.width};`:``,r=e?.height?`height: ${e.height};`:``,i=e?.background?`background: ${e.background};`:``,a=C(e?.on??{});if(t===void 0)return t=>pe(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`
|
812
789
|
<div
|
813
|
-
${
|
790
|
+
${(0,l.ref)(e=>{e?a.bind(e):a.unbindAll()})}
|
814
791
|
style="
|
815
792
|
position: relative;
|
816
793
|
display: flex;
|
@@ -819,7 +796,7 @@ const{I:ce}=oe,le=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ue={HTML
|
|
819
796
|
${n} ${r} ${i}
|
820
797
|
"
|
821
798
|
>
|
822
|
-
${
|
799
|
+
${f(t)}
|
823
800
|
</div>
|
824
|
-
`}exports.AbsoluteBox=
|
801
|
+
`}exports.AbsoluteBox=R,exports.AcrylicBar=z,exports.AspectRatio=B,exports.AutoFitGrid=V,exports.AvatarStack=H,exports.Badge=U,exports.Canvas=G,exports.Card=K,exports.Center=q,exports.Column=T,exports.ColumnSplit=P,exports.Container=J,exports.Divider=te,exports.Flex=E,exports.FlowItem=D,exports.FooterLayout=Y,exports.ForEach=ne,exports.Grid=O,exports.GridBreakpoint=X,exports.GridCol=k,exports.GridItem=A,exports.GridRow=j,exports.HeroSection=re,exports.Hidden=Z,exports.LightboxContainer=w,exports.List=ae,exports.ListGroup=oe,exports.ListItem=ie,exports.Overlay=se,exports.PositionContainer=Q,exports.Row=M,exports.RowSplit=F,exports.ScrollBar=I,exports.SideBarContainer=L,exports.SizedBox=ce,exports.SkeletonLoader=le,exports.Spacer=ue,exports.Sticky=$,exports.Swiper=ee,exports.Table=de,exports.WaterFlow=N,exports.Wrap=fe,exports.ZStack=pe;
|
825
802
|
//# sourceMappingURL=index.cjs.js.map
|