lowcoder-comp-template-demos 0.0.1

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/favicon.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="48" height="46" fill="none" viewBox="0 0 48 46"><path fill="#863bff" d="M25.946 44.938c-.664.845-2.021.375-2.021-.698V33.937a2.26 2.26 0 0 0-2.262-2.262H10.287c-.92 0-1.456-1.04-.92-1.788l7.48-10.471c1.07-1.497 0-3.578-1.842-3.578H1.237c-.92 0-1.456-1.04-.92-1.788L10.013.474c.214-.297.556-.474.92-.474h28.894c.92 0 1.456 1.04.92 1.788l-7.48 10.471c-1.07 1.498 0 3.579 1.842 3.579h11.377c.943 0 1.473 1.088.89 1.83L25.947 44.94z" style="fill:#863bff;fill:color(display-p3 .5252 .23 1);fill-opacity:1"/><mask id="a" width="48" height="46" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="#000" d="M25.842 44.938c-.664.844-2.021.375-2.021-.698V33.937a2.26 2.26 0 0 0-2.262-2.262H10.183c-.92 0-1.456-1.04-.92-1.788l7.48-10.471c1.07-1.498 0-3.579-1.842-3.579H1.133c-.92 0-1.456-1.04-.92-1.787L9.91.473c.214-.297.556-.474.92-.474h28.894c.92 0 1.456 1.04.92 1.788l-7.48 10.471c-1.07 1.498 0 3.578 1.842 3.578h11.377c.943 0 1.473 1.088.89 1.832L25.843 44.94z" style="fill:#000;fill-opacity:1"/></mask><g mask="url(#a)"><g filter="url(#b)"><ellipse cx="5.508" cy="14.704" fill="#ede6ff" rx="5.508" ry="14.704" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -4.47 31.516)"/></g><g filter="url(#c)"><ellipse cx="10.399" cy="29.851" fill="#ede6ff" rx="10.399" ry="29.851" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -39.328 7.883)"/></g><g filter="url(#d)"><ellipse cx="5.508" cy="30.487" fill="#7e14ff" rx="5.508" ry="30.487" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.814 -25.913 -14.639)scale(1 -1)"/></g><g filter="url(#e)"><ellipse cx="5.508" cy="30.599" fill="#7e14ff" rx="5.508" ry="30.599" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.814 -32.644 -3.334)scale(1 -1)"/></g><g filter="url(#f)"><ellipse cx="5.508" cy="30.599" fill="#7e14ff" rx="5.508" ry="30.599" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -34.34 30.47)"/></g><g filter="url(#g)"><ellipse cx="14.072" cy="22.078" fill="#ede6ff" rx="14.072" ry="22.078" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="rotate(93.35 24.506 48.493)scale(-1 1)"/></g><g filter="url(#h)"><ellipse cx="3.47" cy="21.501" fill="#7e14ff" rx="3.47" ry="21.501" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.009 28.708 47.59)scale(-1 1)"/></g><g filter="url(#i)"><ellipse cx="3.47" cy="21.501" fill="#7e14ff" rx="3.47" ry="21.501" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.009 28.708 47.59)scale(-1 1)"/></g><g filter="url(#j)"><ellipse cx=".387" cy="8.972" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(39.51 .387 8.972)"/></g><g filter="url(#k)"><ellipse cx="47.523" cy="-6.092" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 47.523 -6.092)"/></g><g filter="url(#l)"><ellipse cx="41.412" cy="6.333" fill="#47bfff" rx="5.971" ry="9.665" style="fill:#47bfff;fill:color(display-p3 .2799 .748 1);fill-opacity:1" transform="rotate(37.892 41.412 6.333)"/></g><g filter="url(#m)"><ellipse cx="-1.879" cy="38.332" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 -1.88 38.332)"/></g><g filter="url(#n)"><ellipse cx="-1.879" cy="38.332" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 -1.88 38.332)"/></g><g filter="url(#o)"><ellipse cx="35.651" cy="29.907" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 35.651 29.907)"/></g><g filter="url(#p)"><ellipse cx="38.418" cy="32.4" fill="#47bfff" rx="5.971" ry="15.297" style="fill:#47bfff;fill:color(display-p3 .2799 .748 1);fill-opacity:1" transform="rotate(37.892 38.418 32.4)"/></g></g><defs><filter id="b" width="60.045" height="41.654" x="-19.77" y="16.149" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="7.659"/></filter><filter id="c" width="90.34" height="51.437" x="-54.613" y="-7.533" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="7.659"/></filter><filter id="d" width="79.355" height="29.4" x="-49.64" y="2.03" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="e" width="79.579" height="29.4" x="-45.045" y="20.029" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="f" width="79.579" height="29.4" x="-43.513" y="21.178" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="g" width="74.749" height="58.852" x="15.756" y="-17.901" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="7.659"/></filter><filter id="h" width="61.377" height="25.362" x="23.548" y="2.284" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="i" width="61.377" height="25.362" x="23.548" y="2.284" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="j" width="56.045" height="63.649" x="-27.636" y="-22.853" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="k" width="54.814" height="64.646" x="20.116" y="-38.415" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="l" width="33.541" height="35.313" x="24.641" y="-11.323" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="m" width="54.814" height="64.646" x="-29.286" y="6.009" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="n" width="54.814" height="64.646" x="-29.286" y="6.009" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="o" width="54.814" height="64.646" x="8.244" y="-2.416" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="p" width="39.409" height="43.623" x="18.713" y="10.588" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter></defs></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2"/><line x1="3" y1="8" x2="21" y2="8"/><line x1="9" y1="8" x2="9" y2="21"/><circle cx="6" cy="5.5" r="1"/><line x1="5" y1="13" x2="7" y2="13"/><line x1="5" y1="16" x2="7" y2="16"/><line x1="5" y1="19" x2="7" y2="19"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="7" height="7" rx="1"/><rect x="14" y="3" width="7" height="7" rx="1"/><rect x="3" y="14" width="7" height="7" rx="1"/><rect x="14" y="14" width="7" height="7" rx="1"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2"/><line x1="3" y1="9" x2="21" y2="9"/><rect x="5" y="11" width="6" height="4" rx="1"/><rect x="13" y="11" width="6" height="4" rx="1"/><rect x="5" y="17" width="14" height="2" rx="1"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2"/><rect x="5" y="5" width="14" height="6" rx="1"/><line x1="5" y1="14" x2="19" y2="14"/><line x1="5" y1="17" x2="19" y2="17"/><line x1="5" y1="20" x2="12" y2="20"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2"/><line x1="9" y1="3" x2="9" y2="21"/><line x1="5" y1="8" x2="7" y2="8"/><line x1="5" y1="12" x2="7" y2="12"/><line x1="5" y1="16" x2="7" y2="16"/></svg>
package/icons.svg ADDED
@@ -0,0 +1,24 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg">
2
+ <symbol id="bluesky-icon" viewBox="0 0 16 17">
3
+ <g clip-path="url(#bluesky-clip)"><path fill="#08060d" d="M7.75 7.735c-.693-1.348-2.58-3.86-4.334-5.097-1.68-1.187-2.32-.981-2.74-.79C.188 2.065.1 2.812.1 3.251s.241 3.602.398 4.13c.52 1.744 2.367 2.333 4.07 2.145-2.495.37-4.71 1.278-1.805 4.512 3.196 3.309 4.38-.71 4.987-2.746.608 2.036 1.307 5.91 4.93 2.746 2.72-2.746.747-4.143-1.747-4.512 1.702.189 3.55-.4 4.07-2.145.156-.528.397-3.691.397-4.13s-.088-1.186-.575-1.406c-.42-.19-1.06-.395-2.741.79-1.755 1.24-3.64 3.752-4.334 5.099"/></g>
4
+ <defs><clipPath id="bluesky-clip"><path fill="#fff" d="M.1.85h15.3v15.3H.1z"/></clipPath></defs>
5
+ </symbol>
6
+ <symbol id="discord-icon" viewBox="0 0 20 19">
7
+ <path fill="#08060d" d="M16.224 3.768a14.5 14.5 0 0 0-3.67-1.153c-.158.286-.343.67-.47.976a13.5 13.5 0 0 0-4.067 0c-.128-.306-.317-.69-.476-.976A14.4 14.4 0 0 0 3.868 3.77C1.546 7.28.916 10.703 1.231 14.077a14.7 14.7 0 0 0 4.5 2.306q.545-.748.965-1.587a9.5 9.5 0 0 1-1.518-.74q.191-.14.372-.293c2.927 1.369 6.107 1.369 8.999 0q.183.152.372.294-.723.437-1.52.74.418.838.963 1.588a14.6 14.6 0 0 0 4.504-2.308c.37-3.911-.63-7.302-2.644-10.309m-9.13 8.234c-.878 0-1.599-.82-1.599-1.82 0-.998.705-1.82 1.6-1.82.894 0 1.614.82 1.599 1.82.001 1-.705 1.82-1.6 1.82m5.91 0c-.878 0-1.599-.82-1.599-1.82 0-.998.705-1.82 1.6-1.82.893 0 1.614.82 1.599 1.82 0 1-.706 1.82-1.6 1.82"/>
8
+ </symbol>
9
+ <symbol id="documentation-icon" viewBox="0 0 21 20">
10
+ <path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="m15.5 13.333 1.533 1.322c.645.555.967.833.967 1.178s-.322.623-.967 1.179L15.5 18.333m-3.333-5-1.534 1.322c-.644.555-.966.833-.966 1.178s.322.623.966 1.179l1.534 1.321"/>
11
+ <path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M17.167 10.836v-4.32c0-1.41 0-2.117-.224-2.68-.359-.906-1.118-1.621-2.08-1.96-.599-.21-1.349-.21-2.848-.21-2.623 0-3.935 0-4.983.369-1.684.591-3.013 1.842-3.641 3.428C3 6.449 3 7.684 3 10.154v2.122c0 2.558 0 3.838.706 4.726q.306.383.713.671c.76.536 1.79.64 3.581.66"/>
12
+ <path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M3 10a2.78 2.78 0 0 1 2.778-2.778c.555 0 1.209.097 1.748-.047.48-.129.854-.503.982-.982.145-.54.048-1.194.048-1.749a2.78 2.78 0 0 1 2.777-2.777"/>
13
+ </symbol>
14
+ <symbol id="github-icon" viewBox="0 0 19 19">
15
+ <path fill="#08060d" fill-rule="evenodd" d="M9.356 1.85C5.05 1.85 1.57 5.356 1.57 9.694a7.84 7.84 0 0 0 5.324 7.44c.387.079.528-.168.528-.376 0-.182-.013-.805-.013-1.454-2.165.467-2.616-.935-2.616-.935-.349-.91-.864-1.143-.864-1.143-.71-.48.051-.48.051-.48.787.051 1.2.805 1.2.805.695 1.194 1.817.857 2.268.649.064-.507.27-.857.49-1.052-1.728-.182-3.545-.857-3.545-3.87 0-.857.31-1.558.8-2.104-.078-.195-.349-1 .077-2.078 0 0 .657-.208 2.14.805a7.5 7.5 0 0 1 1.946-.26c.657 0 1.328.092 1.946.26 1.483-1.013 2.14-.805 2.14-.805.426 1.078.155 1.883.078 2.078.502.546.799 1.247.799 2.104 0 3.013-1.818 3.675-3.558 3.87.284.247.528.714.528 1.454 0 1.052-.012 1.896-.012 2.156 0 .208.142.455.528.377a7.84 7.84 0 0 0 5.324-7.441c.013-4.338-3.48-7.844-7.773-7.844" clip-rule="evenodd"/>
16
+ </symbol>
17
+ <symbol id="social-icon" viewBox="0 0 20 20">
18
+ <path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M12.5 6.667a4.167 4.167 0 1 0-8.334 0 4.167 4.167 0 0 0 8.334 0"/>
19
+ <path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M2.5 16.667a5.833 5.833 0 0 1 8.75-5.053m3.837.474.513 1.035c.07.144.257.282.414.309l.93.155c.596.1.736.536.307.965l-.723.73a.64.64 0 0 0-.152.531l.207.903c.164.715-.213.991-.84.618l-.872-.52a.63.63 0 0 0-.577 0l-.872.52c-.624.373-1.003.094-.84-.618l.207-.903a.64.64 0 0 0-.152-.532l-.723-.729c-.426-.43-.289-.864.306-.964l.93-.156a.64.64 0 0 0 .412-.31l.513-1.034c.28-.562.735-.562 1.012 0"/>
20
+ </symbol>
21
+ <symbol id="x-icon" viewBox="0 0 19 19">
22
+ <path fill="#08060d" fill-rule="evenodd" d="M1.893 1.98c.052.072 1.245 1.769 2.653 3.77l2.892 4.114c.183.261.333.48.333.486s-.068.089-.152.183l-.522.593-.765.867-3.597 4.087c-.375.426-.734.834-.798.905a1 1 0 0 0-.118.148c0 .01.236.017.664.017h.663l.729-.83c.4-.457.796-.906.879-.999a692 692 0 0 0 1.794-2.038c.034-.037.301-.34.594-.675l.551-.624.345-.392a7 7 0 0 1 .34-.374c.006 0 .93 1.306 2.052 2.903l2.084 2.965.045.063h2.275c1.87 0 2.273-.003 2.266-.021-.008-.02-1.098-1.572-3.894-5.547-2.013-2.862-2.28-3.246-2.273-3.266.008-.019.282-.332 2.085-2.38l2-2.274 1.567-1.782c.022-.028-.016-.03-.65-.03h-.674l-.3.342a871 871 0 0 1-1.782 2.025c-.067.075-.405.458-.75.852a100 100 0 0 1-.803.91c-.148.172-.299.344-.99 1.127-.304.343-.32.358-.345.327-.015-.019-.904-1.282-1.976-2.808L6.365 1.85H1.8zm1.782.91 8.078 11.294c.772 1.08 1.413 1.973 1.425 1.984.016.017.241.02 1.05.017l1.03-.004-2.694-3.766L7.796 5.75 5.722 2.852l-1.039-.004-1.039-.004z" clip-rule="evenodd"/>
23
+ </symbol>
24
+ </svg>
package/index.js ADDED
@@ -0,0 +1,953 @@
1
+ (function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.id="lowcoder-comp-template-demos-0.0.1",e.appendChild(document.createTextNode("")),document.head.appendChild(e)}}catch(d){console.error("vite-plugin-css-injected-by-js",d)}})();
2
+ var B = Object.defineProperty, S = Object.defineProperties;
3
+ var T = Object.getOwnPropertyDescriptors;
4
+ var w = Object.getOwnPropertySymbols;
5
+ var P = Object.prototype.hasOwnProperty, H = Object.prototype.propertyIsEnumerable;
6
+ var u = (e, r, n) => r in e ? B(e, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[r] = n, s = (e, r) => {
7
+ for (var n in r || (r = {}))
8
+ P.call(r, n) && u(e, n, r[n]);
9
+ if (w)
10
+ for (var n of w(r))
11
+ H.call(r, n) && u(e, n, r[n]);
12
+ return e;
13
+ }, p = (e, r) => S(e, T(r));
14
+ var k = { exports: {} }, b = {};
15
+ const V = $react;
16
+ /**
17
+ * @license React
18
+ * react-jsx-runtime.production.min.js
19
+ *
20
+ * Copyright (c) Facebook, Inc. and its affiliates.
21
+ *
22
+ * This source code is licensed under the MIT license found in the
23
+ * LICENSE file in the root directory of this source tree.
24
+ */
25
+ var N = V, I = Symbol.for("react.element"), z = Symbol.for("react.fragment"), A = Object.prototype.hasOwnProperty, F = N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, M = { key: !0, ref: !0, __self: !0, __source: !0 };
26
+ function v(e, r, n) {
27
+ var i, d = {}, l = null, c = null;
28
+ n !== void 0 && (l = "" + n), r.key !== void 0 && (l = "" + r.key), r.ref !== void 0 && (c = r.ref);
29
+ for (i in r)
30
+ A.call(r, i) && !M.hasOwnProperty(i) && (d[i] = r[i]);
31
+ if (e && e.defaultProps)
32
+ for (i in r = e.defaultProps, r)
33
+ d[i] === void 0 && (d[i] = r[i]);
34
+ return { $$typeof: I, type: e, key: l, ref: c, props: d, _owner: F.current };
35
+ }
36
+ b.Fragment = z;
37
+ b.jsx = v;
38
+ b.jsxs = v;
39
+ k.exports = b;
40
+ var C = k.exports;
41
+ const g = C.Fragment, o = C.jsx, t = C.jsxs, R = $styled_components.div`
42
+ display: flex;
43
+ flex-direction: column;
44
+ height: 100%;
45
+ background: ${(e) => e.$bgColor || "#f0f2f5"};
46
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
47
+ `, G = $styled_components.div`
48
+ display: flex;
49
+ align-items: center;
50
+ justify-content: space-between;
51
+ padding: 0 24px;
52
+ height: 56px;
53
+ background: ${(e) => e.$navBg || "#1a1a2e"};
54
+ color: ${(e) => e.$navText || "#ffffff"};
55
+ flex-shrink: 0;
56
+ `, j = $styled_components.div`
57
+ font-size: 18px;
58
+ font-weight: 700;
59
+ letter-spacing: -0.5px;
60
+ `, L = $styled_components.div`
61
+ display: flex;
62
+ gap: 24px;
63
+ font-size: 14px;
64
+ opacity: 0.85;
65
+ `, f = $styled_components.span`
66
+ cursor: pointer;
67
+ &:hover { opacity: 1; }
68
+ `, E = $styled_components.div`
69
+ display: grid;
70
+ grid-template-columns: repeat(4, 1fr);
71
+ gap: 16px;
72
+ padding: 20px 24px;
73
+ flex-shrink: 0;
74
+ `, h = $styled_components.div`
75
+ background: #fff;
76
+ border-radius: 10px;
77
+ padding: 18px 20px;
78
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
79
+ border-left: 4px solid ${(e) => e.$accent};
80
+ `, m = $styled_components.div`
81
+ font-size: 12px;
82
+ color: #8c8c8c;
83
+ text-transform: uppercase;
84
+ letter-spacing: 0.5px;
85
+ margin-bottom: 6px;
86
+ `, x = $styled_components.div`
87
+ font-size: 26px;
88
+ font-weight: 700;
89
+ color: #1a1a2e;
90
+ `, U = $styled_components.div`
91
+ flex: 1;
92
+ padding: 0 24px 24px;
93
+ min-height: 200px;
94
+ `, D = $styled_components.div`
95
+ background: #fff;
96
+ border-radius: 10px;
97
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
98
+ height: 100%;
99
+ overflow: hidden;
100
+ `, O = {
101
+ appName: $lowcoder_sdk.StringControl,
102
+ navBgColor: $lowcoder_sdk.ColorControl,
103
+ navTextColor: $lowcoder_sdk.ColorControl,
104
+ bgColor: $lowcoder_sdk.ColorControl,
105
+ accentColor: $lowcoder_sdk.ColorControl
106
+ }, W = new $lowcoder_sdk.ContainerCompBuilder(O, (e, r) => /* @__PURE__ */ t(R, {
107
+ $bgColor: e.bgColor,
108
+ children: [/* @__PURE__ */ t(G, {
109
+ $navBg: e.navBgColor,
110
+ $navText: e.navTextColor,
111
+ children: [/* @__PURE__ */ o(j, {
112
+ children: e.appName || "My Dashboard"
113
+ }), /* @__PURE__ */ t(L, {
114
+ children: [/* @__PURE__ */ o(f, {
115
+ children: "Overview"
116
+ }), /* @__PURE__ */ o(f, {
117
+ children: "Analytics"
118
+ }), /* @__PURE__ */ o(f, {
119
+ children: "Reports"
120
+ }), /* @__PURE__ */ o(f, {
121
+ children: "Settings"
122
+ })]
123
+ })]
124
+ }), /* @__PURE__ */ t(E, {
125
+ children: [/* @__PURE__ */ t(h, {
126
+ $accent: e.accentColor || "#4361ee",
127
+ children: [/* @__PURE__ */ o(m, {
128
+ children: "Total Users"
129
+ }), /* @__PURE__ */ o(x, {
130
+ children: "12,847"
131
+ })]
132
+ }), /* @__PURE__ */ t(h, {
133
+ $accent: "#2ec4b6",
134
+ children: [/* @__PURE__ */ o(m, {
135
+ children: "Revenue"
136
+ }), /* @__PURE__ */ o(x, {
137
+ children: "$48.2K"
138
+ })]
139
+ }), /* @__PURE__ */ t(h, {
140
+ $accent: "#ff6b6b",
141
+ children: [/* @__PURE__ */ o(m, {
142
+ children: "Orders"
143
+ }), /* @__PURE__ */ o(x, {
144
+ children: "1,024"
145
+ })]
146
+ }), /* @__PURE__ */ t(h, {
147
+ $accent: "#ffd166",
148
+ children: [/* @__PURE__ */ o(m, {
149
+ children: "Conversion"
150
+ }), /* @__PURE__ */ o(x, {
151
+ children: "3.24%"
152
+ })]
153
+ })]
154
+ }), /* @__PURE__ */ o(U, {
155
+ children: /* @__PURE__ */ o(D, {
156
+ children: /* @__PURE__ */ o($lowcoder_sdk.InnerGrid, p(s({}, e.container), {
157
+ items: $lowcoder_sdk.gridItemCompToGridItems(e.container.items),
158
+ autoHeight: !0,
159
+ emptyRows: 20,
160
+ minHeight: "300px",
161
+ containerPadding: [16, 16],
162
+ hintPlaceholder: $lowcoder_sdk.HintPlaceHolder
163
+ }))
164
+ })
165
+ })]
166
+ })).setPropertyViewFn((e) => /* @__PURE__ */ t(g, {
167
+ children: [/* @__PURE__ */ t($lowcoder_sdk.Section, {
168
+ name: "Template Settings",
169
+ children: [e.appName.propertyView({
170
+ label: "App Name"
171
+ }), e.navBgColor.propertyView({
172
+ label: "Navbar Background"
173
+ }), e.navTextColor.propertyView({
174
+ label: "Navbar Text Color"
175
+ }), e.bgColor.propertyView({
176
+ label: "Background Color"
177
+ }), e.accentColor.propertyView({
178
+ label: "Accent Color"
179
+ })]
180
+ }), /* @__PURE__ */ o($lowcoder_sdk.Section, {
181
+ name: "Content",
182
+ children: e.container.getPropertyView()
183
+ })]
184
+ })).build(), q = $lowcoder_sdk.withExposingConfigs(W, [$lowcoder_sdk.NameConfigHidden]), Y = $styled_components.div`
185
+ display: flex;
186
+ flex-direction: column;
187
+ height: 100%;
188
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
189
+ background: #ffffff;
190
+ `, J = $styled_components.div`
191
+ background: ${(e) => e.$heroBg || "linear-gradient(135deg, #667eea 0%, #764ba2 100%)"};
192
+ color: ${(e) => e.$heroText || "#ffffff"};
193
+ padding: 60px 48px;
194
+ text-align: center;
195
+ flex-shrink: 0;
196
+ `, K = $styled_components.h1`
197
+ font-size: 42px;
198
+ font-weight: 800;
199
+ margin: 0 0 16px;
200
+ letter-spacing: -1px;
201
+ line-height: 1.1;
202
+ `, Q = $styled_components.p`
203
+ font-size: 18px;
204
+ opacity: 0.9;
205
+ margin: 0 0 32px;
206
+ max-width: 600px;
207
+ margin-left: auto;
208
+ margin-right: auto;
209
+ line-height: 1.6;
210
+ `, X = $styled_components.div`
211
+ display: inline-block;
212
+ background: ${(e) => e.$accent || "#ffffff"};
213
+ color: ${(e) => e.$accent ? "#ffffff" : "#667eea"};
214
+ padding: 14px 36px;
215
+ border-radius: 8px;
216
+ font-weight: 600;
217
+ font-size: 16px;
218
+ cursor: pointer;
219
+ `, Z = $styled_components.div`
220
+ flex: 1;
221
+ min-height: 250px;
222
+ `, ee = $styled_components.div`
223
+ background: ${(e) => e.$footerBg || "#1a1a2e"};
224
+ color: #ffffff;
225
+ padding: 32px 48px;
226
+ flex-shrink: 0;
227
+ `, oe = $styled_components.div`
228
+ display: grid;
229
+ grid-template-columns: 2fr 1fr 1fr 1fr;
230
+ gap: 32px;
231
+ `, te = $styled_components.div`
232
+ font-size: 20px;
233
+ font-weight: 700;
234
+ margin-bottom: 8px;
235
+ `, ne = $styled_components.p`
236
+ font-size: 13px;
237
+ opacity: 0.6;
238
+ line-height: 1.6;
239
+ margin: 0;
240
+ `, $ = $styled_components.div``, y = $styled_components.div`
241
+ font-size: 13px;
242
+ font-weight: 600;
243
+ text-transform: uppercase;
244
+ letter-spacing: 0.5px;
245
+ margin-bottom: 12px;
246
+ opacity: 0.8;
247
+ `, a = $styled_components.div`
248
+ font-size: 13px;
249
+ opacity: 0.5;
250
+ margin-bottom: 8px;
251
+ cursor: pointer;
252
+ &:hover { opacity: 0.8; }
253
+ `, re = {
254
+ heroTitle: $lowcoder_sdk.StringControl,
255
+ heroSubtitle: $lowcoder_sdk.StringControl,
256
+ ctaText: $lowcoder_sdk.StringControl,
257
+ heroBgColor: $lowcoder_sdk.ColorControl,
258
+ heroTextColor: $lowcoder_sdk.ColorControl,
259
+ footerBgColor: $lowcoder_sdk.ColorControl,
260
+ brandName: $lowcoder_sdk.StringControl
261
+ }, ie = new $lowcoder_sdk.ContainerCompBuilder(re, (e, r) => /* @__PURE__ */ t(Y, {
262
+ children: [/* @__PURE__ */ t(J, {
263
+ $heroBg: e.heroBgColor,
264
+ $heroText: e.heroTextColor,
265
+ children: [/* @__PURE__ */ o(K, {
266
+ children: e.heroTitle || "Build Something Amazing"
267
+ }), /* @__PURE__ */ o(Q, {
268
+ children: e.heroSubtitle || "A powerful platform to create, deploy, and scale your applications with ease. Get started in minutes."
269
+ }), /* @__PURE__ */ o(X, {
270
+ $accent: "",
271
+ children: e.ctaText || "Get Started Free"
272
+ })]
273
+ }), /* @__PURE__ */ o(Z, {
274
+ children: /* @__PURE__ */ o($lowcoder_sdk.InnerGrid, p(s({}, e.container), {
275
+ items: $lowcoder_sdk.gridItemCompToGridItems(e.container.items),
276
+ autoHeight: !0,
277
+ emptyRows: 18,
278
+ minHeight: "250px",
279
+ containerPadding: [32, 32],
280
+ hintPlaceholder: $lowcoder_sdk.HintPlaceHolder
281
+ }))
282
+ }), /* @__PURE__ */ o(ee, {
283
+ $footerBg: e.footerBgColor,
284
+ children: /* @__PURE__ */ t(oe, {
285
+ children: [/* @__PURE__ */ t($, {
286
+ children: [/* @__PURE__ */ o(te, {
287
+ children: e.brandName || "YourBrand"
288
+ }), /* @__PURE__ */ o(ne, {
289
+ children: "Making the world a better place through quality software and design."
290
+ })]
291
+ }), /* @__PURE__ */ t($, {
292
+ children: [/* @__PURE__ */ o(y, {
293
+ children: "Product"
294
+ }), /* @__PURE__ */ o(a, {
295
+ children: "Features"
296
+ }), /* @__PURE__ */ o(a, {
297
+ children: "Pricing"
298
+ }), /* @__PURE__ */ o(a, {
299
+ children: "Documentation"
300
+ })]
301
+ }), /* @__PURE__ */ t($, {
302
+ children: [/* @__PURE__ */ o(y, {
303
+ children: "Company"
304
+ }), /* @__PURE__ */ o(a, {
305
+ children: "About"
306
+ }), /* @__PURE__ */ o(a, {
307
+ children: "Blog"
308
+ }), /* @__PURE__ */ o(a, {
309
+ children: "Careers"
310
+ })]
311
+ }), /* @__PURE__ */ t($, {
312
+ children: [/* @__PURE__ */ o(y, {
313
+ children: "Support"
314
+ }), /* @__PURE__ */ o(a, {
315
+ children: "Help Center"
316
+ }), /* @__PURE__ */ o(a, {
317
+ children: "Contact"
318
+ }), /* @__PURE__ */ o(a, {
319
+ children: "Status"
320
+ })]
321
+ })]
322
+ })
323
+ })]
324
+ })).setPropertyViewFn((e) => /* @__PURE__ */ t(g, {
325
+ children: [/* @__PURE__ */ t($lowcoder_sdk.Section, {
326
+ name: "Hero Section",
327
+ children: [e.heroTitle.propertyView({
328
+ label: "Title"
329
+ }), e.heroSubtitle.propertyView({
330
+ label: "Subtitle"
331
+ }), e.ctaText.propertyView({
332
+ label: "CTA Button Text"
333
+ }), e.heroBgColor.propertyView({
334
+ label: "Hero Background"
335
+ }), e.heroTextColor.propertyView({
336
+ label: "Hero Text Color"
337
+ })]
338
+ }), /* @__PURE__ */ t($lowcoder_sdk.Section, {
339
+ name: "Footer",
340
+ children: [e.brandName.propertyView({
341
+ label: "Brand Name"
342
+ }), e.footerBgColor.propertyView({
343
+ label: "Footer Background"
344
+ })]
345
+ }), /* @__PURE__ */ o($lowcoder_sdk.Section, {
346
+ name: "Content",
347
+ children: e.container.getPropertyView()
348
+ })]
349
+ })).build(), le = $lowcoder_sdk.withExposingConfigs(ie, [$lowcoder_sdk.NameConfigHidden]), de = $styled_components.div`
350
+ display: flex;
351
+ height: 100%;
352
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
353
+ `, ae = $styled_components.div`
354
+ width: ${(e) => e.$collapsed ? "60px" : "240px"};
355
+ background: ${(e) => e.$sidebarBg || "#1a1a2e"};
356
+ color: #ffffff;
357
+ display: flex;
358
+ flex-direction: column;
359
+ flex-shrink: 0;
360
+ transition: width 0.2s ease;
361
+ overflow: hidden;
362
+ `, ce = $styled_components.div`
363
+ padding: ${(e) => e.$collapsed ? "20px 12px" : "20px 20px"};
364
+ border-bottom: 1px solid rgba(255, 255, 255, 0.08);
365
+ display: flex;
366
+ align-items: center;
367
+ gap: 12px;
368
+ `, se = $styled_components.div`
369
+ width: 32px;
370
+ height: 32px;
371
+ border-radius: 8px;
372
+ background: ${(e) => e.$accent || "#4361ee"};
373
+ display: flex;
374
+ align-items: center;
375
+ justify-content: center;
376
+ font-weight: 800;
377
+ font-size: 14px;
378
+ flex-shrink: 0;
379
+ `, pe = $styled_components.div`
380
+ font-size: 16px;
381
+ font-weight: 700;
382
+ white-space: nowrap;
383
+ `, ge = $styled_components.div`
384
+ padding: 16px 0;
385
+ flex: 1;
386
+ `, fe = $styled_components.div`
387
+ font-size: 10px;
388
+ text-transform: uppercase;
389
+ letter-spacing: 1px;
390
+ color: rgba(255, 255, 255, 0.35);
391
+ padding: ${(e) => e.$collapsed ? "0 12px" : "0 20px"};
392
+ margin-bottom: 8px;
393
+ white-space: nowrap;
394
+ overflow: hidden;
395
+ `, he = $styled_components.div`
396
+ display: flex;
397
+ align-items: center;
398
+ gap: 12px;
399
+ padding: ${(e) => e.$collapsed ? "10px 18px" : "10px 20px"};
400
+ margin: 2px 8px;
401
+ border-radius: 8px;
402
+ cursor: pointer;
403
+ font-size: 14px;
404
+ white-space: nowrap;
405
+ background: ${(e) => e.$active ? e.$accent || "#4361ee" : "transparent"};
406
+ opacity: ${(e) => e.$active ? 1 : 0.65};
407
+ &:hover {
408
+ background: ${(e) => e.$active ? e.$accent || "#4361ee" : "rgba(255,255,255,0.06)"};
409
+ opacity: 1;
410
+ }
411
+ `, me = $styled_components.span`
412
+ font-size: 16px;
413
+ flex-shrink: 0;
414
+ width: 20px;
415
+ text-align: center;
416
+ `, xe = $styled_components.div`
417
+ padding: 16px 20px;
418
+ border-top: 1px solid rgba(255, 255, 255, 0.08);
419
+ font-size: 13px;
420
+ opacity: 0.5;
421
+ cursor: pointer;
422
+ &:hover { opacity: 0.8; }
423
+ `, $e = $styled_components.div`
424
+ flex: 1;
425
+ background: ${(e) => e.$bgColor || "#f5f6fa"};
426
+ overflow: auto;
427
+ min-height: 0;
428
+ `, be = $styled_components.div`
429
+ padding: 20px 28px;
430
+ border-bottom: 1px solid #e8e8e8;
431
+ background: #ffffff;
432
+ `, ye = $styled_components.h2`
433
+ margin: 0;
434
+ font-size: 22px;
435
+ font-weight: 700;
436
+ color: #1a1a2e;
437
+ `, Ce = $styled_components.div`
438
+ min-height: 300px;
439
+ `, we = {
440
+ brandName: $lowcoder_sdk.StringControl,
441
+ pageTitle: $lowcoder_sdk.StringControl,
442
+ sidebarBgColor: $lowcoder_sdk.ColorControl,
443
+ bgColor: $lowcoder_sdk.ColorControl,
444
+ accentColor: $lowcoder_sdk.ColorControl
445
+ }, ue = new $lowcoder_sdk.ContainerCompBuilder(we, (e, r) => {
446
+ const [n, i] = $react.useState(!1), d = [{
447
+ icon: "📊",
448
+ label: "Dashboard",
449
+ active: !0
450
+ }, {
451
+ icon: "👥",
452
+ label: "Users"
453
+ }, {
454
+ icon: "📦",
455
+ label: "Products"
456
+ }, {
457
+ icon: "📈",
458
+ label: "Analytics"
459
+ }, {
460
+ icon: "💬",
461
+ label: "Messages"
462
+ }, {
463
+ icon: "⚙️",
464
+ label: "Settings"
465
+ }];
466
+ return /* @__PURE__ */ t(de, {
467
+ children: [/* @__PURE__ */ t(ae, {
468
+ $sidebarBg: e.sidebarBgColor,
469
+ $collapsed: n,
470
+ children: [/* @__PURE__ */ t(ce, {
471
+ $collapsed: n,
472
+ children: [/* @__PURE__ */ o(se, {
473
+ $accent: e.accentColor,
474
+ children: (e.brandName || "App").charAt(0).toUpperCase()
475
+ }), !n && /* @__PURE__ */ o(pe, {
476
+ children: e.brandName || "My App"
477
+ })]
478
+ }), /* @__PURE__ */ t(ge, {
479
+ children: [/* @__PURE__ */ o(fe, {
480
+ $collapsed: n,
481
+ children: n ? "•" : "Navigation"
482
+ }), d.map((l) => /* @__PURE__ */ t(he, {
483
+ $active: l.active,
484
+ $accent: e.accentColor,
485
+ $collapsed: n,
486
+ children: [/* @__PURE__ */ o(me, {
487
+ children: l.icon
488
+ }), !n && l.label]
489
+ }, l.label))]
490
+ }), /* @__PURE__ */ o(xe, {
491
+ onClick: () => i(!n),
492
+ children: n ? "→" : "← Collapse"
493
+ })]
494
+ }), /* @__PURE__ */ t($e, {
495
+ $bgColor: e.bgColor,
496
+ children: [/* @__PURE__ */ o(be, {
497
+ children: /* @__PURE__ */ o(ye, {
498
+ children: e.pageTitle || "Dashboard"
499
+ })
500
+ }), /* @__PURE__ */ o(Ce, {
501
+ children: /* @__PURE__ */ o($lowcoder_sdk.InnerGrid, p(s({}, e.container), {
502
+ items: $lowcoder_sdk.gridItemCompToGridItems(e.container.items),
503
+ autoHeight: !0,
504
+ emptyRows: 20,
505
+ minHeight: "300px",
506
+ containerPadding: [20, 20],
507
+ hintPlaceholder: $lowcoder_sdk.HintPlaceHolder
508
+ }))
509
+ })]
510
+ })]
511
+ });
512
+ }).setPropertyViewFn((e) => /* @__PURE__ */ t(g, {
513
+ children: [/* @__PURE__ */ t($lowcoder_sdk.Section, {
514
+ name: "Template Settings",
515
+ children: [e.brandName.propertyView({
516
+ label: "Brand Name"
517
+ }), e.pageTitle.propertyView({
518
+ label: "Page Title"
519
+ }), e.sidebarBgColor.propertyView({
520
+ label: "Sidebar Background"
521
+ }), e.bgColor.propertyView({
522
+ label: "Content Background"
523
+ }), e.accentColor.propertyView({
524
+ label: "Accent Color"
525
+ })]
526
+ }), /* @__PURE__ */ o($lowcoder_sdk.Section, {
527
+ name: "Content",
528
+ children: e.container.getPropertyView()
529
+ })]
530
+ })).build(), _e = $lowcoder_sdk.withExposingConfigs(ue, [$lowcoder_sdk.NameConfigHidden]), ke = $styled_components.div`
531
+ display: flex;
532
+ flex-direction: column;
533
+ height: 100%;
534
+ background: ${(e) => e.$bgColor || "#f8f9fc"};
535
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
536
+ `, ve = $styled_components.div`
537
+ background: ${(e) => e.$headerBg || "#ffffff"};
538
+ color: ${(e) => e.$headerText || "#1a1a2e"};
539
+ padding: 28px 32px;
540
+ border-bottom: 1px solid #e8e8e8;
541
+ flex-shrink: 0;
542
+ `, Be = $styled_components.div`
543
+ display: flex;
544
+ align-items: center;
545
+ justify-content: space-between;
546
+ margin-bottom: 8px;
547
+ `, Se = $styled_components.h1`
548
+ font-size: 26px;
549
+ font-weight: 800;
550
+ margin: 0;
551
+ letter-spacing: -0.5px;
552
+ `, Te = $styled_components.span`
553
+ background: ${(e) => e.$accent || "#4361ee"};
554
+ color: #fff;
555
+ padding: 4px 14px;
556
+ border-radius: 20px;
557
+ font-size: 12px;
558
+ font-weight: 600;
559
+ `, Pe = $styled_components.p`
560
+ font-size: 14px;
561
+ color: #8c8c8c;
562
+ margin: 0;
563
+ line-height: 1.5;
564
+ `, He = $styled_components.div`
565
+ display: flex;
566
+ gap: 0;
567
+ padding: 0 32px;
568
+ background: #ffffff;
569
+ border-bottom: 1px solid #e8e8e8;
570
+ flex-shrink: 0;
571
+ `, Ve = $styled_components.div`
572
+ padding: 12px 20px;
573
+ font-size: 14px;
574
+ font-weight: ${(e) => e.$active ? 600 : 400};
575
+ color: ${(e) => e.$active ? e.$accent || "#4361ee" : "#8c8c8c"};
576
+ border-bottom: 2px solid ${(e) => e.$active ? e.$accent || "#4361ee" : "transparent"};
577
+ cursor: pointer;
578
+ &:hover { color: ${(e) => e.$accent || "#4361ee"}; }
579
+ `, Ne = $styled_components.div`
580
+ flex: 1;
581
+ padding: 24px 32px;
582
+ min-height: 250px;
583
+ `, Ie = $styled_components.div`
584
+ background: #ffffff;
585
+ border-radius: 12px;
586
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
587
+ height: 100%;
588
+ overflow: hidden;
589
+ `, ze = {
590
+ title: $lowcoder_sdk.StringControl,
591
+ subtitle: $lowcoder_sdk.StringControl,
592
+ badgeText: $lowcoder_sdk.StringControl,
593
+ headerBgColor: $lowcoder_sdk.ColorControl,
594
+ headerTextColor: $lowcoder_sdk.ColorControl,
595
+ bgColor: $lowcoder_sdk.ColorControl,
596
+ accentColor: $lowcoder_sdk.ColorControl
597
+ }, Ae = new $lowcoder_sdk.ContainerCompBuilder(ze, (e, r) => {
598
+ const n = ["All Items", "Recent", "Favorites", "Archived"];
599
+ return /* @__PURE__ */ t(ke, {
600
+ $bgColor: e.bgColor,
601
+ children: [/* @__PURE__ */ t(ve, {
602
+ $headerBg: e.headerBgColor,
603
+ $headerText: e.headerTextColor,
604
+ children: [/* @__PURE__ */ t(Be, {
605
+ children: [/* @__PURE__ */ o(Se, {
606
+ children: e.title || "Item Collection"
607
+ }), (e.badgeText || "12 Items") && /* @__PURE__ */ o(Te, {
608
+ $accent: e.accentColor,
609
+ children: e.badgeText || "12 Items"
610
+ })]
611
+ }), /* @__PURE__ */ o(Pe, {
612
+ children: e.subtitle || "Browse, search, and manage your collection of items in one place."
613
+ })]
614
+ }), /* @__PURE__ */ o(He, {
615
+ $accent: e.accentColor,
616
+ children: n.map((i, d) => /* @__PURE__ */ o(Ve, {
617
+ $active: d === 0,
618
+ $accent: e.accentColor,
619
+ children: i
620
+ }, i))
621
+ }), /* @__PURE__ */ o(Ne, {
622
+ children: /* @__PURE__ */ o(Ie, {
623
+ children: /* @__PURE__ */ o($lowcoder_sdk.InnerGrid, p(s({}, e.container), {
624
+ items: $lowcoder_sdk.gridItemCompToGridItems(e.container.items),
625
+ autoHeight: !0,
626
+ emptyRows: 18,
627
+ minHeight: "250px",
628
+ containerPadding: [16, 16],
629
+ hintPlaceholder: $lowcoder_sdk.HintPlaceHolder
630
+ }))
631
+ })
632
+ })]
633
+ });
634
+ }).setPropertyViewFn((e) => /* @__PURE__ */ t(g, {
635
+ children: [/* @__PURE__ */ t($lowcoder_sdk.Section, {
636
+ name: "Header",
637
+ children: [e.title.propertyView({
638
+ label: "Title"
639
+ }), e.subtitle.propertyView({
640
+ label: "Subtitle"
641
+ }), e.badgeText.propertyView({
642
+ label: "Badge Text"
643
+ })]
644
+ }), /* @__PURE__ */ t($lowcoder_sdk.Section, {
645
+ name: "Colors",
646
+ children: [e.headerBgColor.propertyView({
647
+ label: "Header Background"
648
+ }), e.headerTextColor.propertyView({
649
+ label: "Header Text Color"
650
+ }), e.bgColor.propertyView({
651
+ label: "Content Background"
652
+ }), e.accentColor.propertyView({
653
+ label: "Accent Color"
654
+ })]
655
+ }), /* @__PURE__ */ o($lowcoder_sdk.Section, {
656
+ name: "Content",
657
+ children: e.container.getPropertyView()
658
+ })]
659
+ })).build(), Fe = $lowcoder_sdk.withExposingConfigs(Ae, [$lowcoder_sdk.NameConfigHidden]), Me = $styled_components.div`
660
+ display: flex;
661
+ flex-direction: column;
662
+ height: 100%;
663
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
664
+ `, Re = $styled_components.div`
665
+ display: flex;
666
+ align-items: center;
667
+ justify-content: space-between;
668
+ height: 52px;
669
+ padding: 0 20px;
670
+ background: ${(e) => e.$topBarBg || "#ffffff"};
671
+ border-bottom: 1px solid #e8e8e8;
672
+ flex-shrink: 0;
673
+ `, Ge = $styled_components.div`
674
+ display: flex;
675
+ align-items: center;
676
+ gap: 16px;
677
+ `, je = $styled_components.div`
678
+ width: 32px;
679
+ height: 32px;
680
+ border-radius: 6px;
681
+ display: flex;
682
+ align-items: center;
683
+ justify-content: center;
684
+ cursor: pointer;
685
+ font-size: 18px;
686
+ &:hover { background: #f0f0f0; }
687
+ `, Le = $styled_components.div`
688
+ display: flex;
689
+ align-items: center;
690
+ background: #f5f6fa;
691
+ border-radius: 8px;
692
+ padding: 6px 14px;
693
+ gap: 8px;
694
+ min-width: 280px;
695
+ `, Ee = $styled_components.span`
696
+ font-size: 14px;
697
+ opacity: 0.4;
698
+ `, Ue = $styled_components.div`
699
+ font-size: 13px;
700
+ color: #bbb;
701
+ `, De = $styled_components.div`
702
+ display: flex;
703
+ align-items: center;
704
+ gap: 12px;
705
+ `, _ = $styled_components.div`
706
+ width: 34px;
707
+ height: 34px;
708
+ border-radius: 8px;
709
+ display: flex;
710
+ align-items: center;
711
+ justify-content: center;
712
+ cursor: pointer;
713
+ font-size: 16px;
714
+ position: relative;
715
+ &:hover { background: #f5f6fa; }
716
+ `, Oe = $styled_components.span`
717
+ position: absolute;
718
+ top: 6px;
719
+ right: 6px;
720
+ width: 7px;
721
+ height: 7px;
722
+ background: ${(e) => e.$accent || "#ff4757"};
723
+ border-radius: 50%;
724
+ `, We = $styled_components.div`
725
+ width: 32px;
726
+ height: 32px;
727
+ border-radius: 50%;
728
+ background: ${(e) => e.$accent || "#4361ee"};
729
+ color: #fff;
730
+ display: flex;
731
+ align-items: center;
732
+ justify-content: center;
733
+ font-size: 13px;
734
+ font-weight: 700;
735
+ cursor: pointer;
736
+ `, qe = $styled_components.div`
737
+ display: flex;
738
+ flex: 1;
739
+ min-height: 0;
740
+ `, Ye = $styled_components.div`
741
+ width: ${(e) => e.$collapsed ? "60px" : "220px"};
742
+ background: ${(e) => e.$sidebarBg || "#fafbfc"};
743
+ border-right: 1px solid #e8e8e8;
744
+ display: flex;
745
+ flex-direction: column;
746
+ flex-shrink: 0;
747
+ transition: width 0.2s ease;
748
+ overflow: hidden;
749
+ padding-top: 8px;
750
+ `, Je = $styled_components.div`
751
+ margin-bottom: 16px;
752
+ `, Ke = $styled_components.div`
753
+ font-size: 10px;
754
+ text-transform: uppercase;
755
+ letter-spacing: 1px;
756
+ color: #aaa;
757
+ padding: ${(e) => e.$collapsed ? "8px 12px" : "8px 16px"};
758
+ white-space: nowrap;
759
+ overflow: hidden;
760
+ `, Qe = $styled_components.div`
761
+ display: flex;
762
+ align-items: center;
763
+ gap: 10px;
764
+ padding: ${(e) => e.$collapsed ? "9px 19px" : "9px 16px"};
765
+ margin: 1px 6px;
766
+ border-radius: 6px;
767
+ cursor: pointer;
768
+ font-size: 13px;
769
+ white-space: nowrap;
770
+ color: ${(e) => e.$active ? e.$accent || "#4361ee" : "#555"};
771
+ background: ${(e) => e.$active ? (e.$accent || "#4361ee") + "12" : "transparent"};
772
+ font-weight: ${(e) => e.$active ? 600 : 400};
773
+ &:hover {
774
+ background: ${(e) => e.$active ? (e.$accent || "#4361ee") + "18" : "#f0f1f3"};
775
+ }
776
+ `, Xe = $styled_components.span`
777
+ font-size: 15px;
778
+ width: 20px;
779
+ text-align: center;
780
+ flex-shrink: 0;
781
+ `, Ze = $styled_components.div`
782
+ flex: 1;
783
+ background: ${(e) => e.$bgColor || "#f0f2f5"};
784
+ display: flex;
785
+ flex-direction: column;
786
+ min-height: 0;
787
+ `, eo = $styled_components.div`
788
+ display: flex;
789
+ align-items: center;
790
+ justify-content: space-between;
791
+ padding: 18px 24px;
792
+ flex-shrink: 0;
793
+ `, oo = $styled_components.div`
794
+ font-size: 13px;
795
+ color: #999;
796
+ display: flex;
797
+ gap: 6px;
798
+ align-items: center;
799
+ `, to = $styled_components.span`
800
+ color: #333;
801
+ font-weight: 600;
802
+ `, no = $styled_components.div`
803
+ flex: 1;
804
+ padding: 0 24px 24px;
805
+ min-height: 250px;
806
+ `, ro = $styled_components.div`
807
+ background: #ffffff;
808
+ border-radius: 10px;
809
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
810
+ height: 100%;
811
+ overflow: hidden;
812
+ `, io = {
813
+ appName: $lowcoder_sdk.StringControl,
814
+ pageTitle: $lowcoder_sdk.StringControl,
815
+ topBarBgColor: $lowcoder_sdk.ColorControl,
816
+ sidebarBgColor: $lowcoder_sdk.ColorControl,
817
+ bgColor: $lowcoder_sdk.ColorControl,
818
+ accentColor: $lowcoder_sdk.ColorControl
819
+ }, lo = new $lowcoder_sdk.ContainerCompBuilder(io, (e, r) => {
820
+ const [n, i] = $react.useState(!1), d = [{
821
+ label: "Main",
822
+ items: [{
823
+ icon: "🏠",
824
+ label: "Dashboard",
825
+ active: !0
826
+ }, {
827
+ icon: "📊",
828
+ label: "Analytics"
829
+ }, {
830
+ icon: "👥",
831
+ label: "Users"
832
+ }]
833
+ }, {
834
+ label: "Management",
835
+ items: [{
836
+ icon: "📦",
837
+ label: "Products"
838
+ }, {
839
+ icon: "🧾",
840
+ label: "Orders"
841
+ }, {
842
+ icon: "💳",
843
+ label: "Billing"
844
+ }]
845
+ }, {
846
+ label: "System",
847
+ items: [{
848
+ icon: "⚙️",
849
+ label: "Settings"
850
+ }, {
851
+ icon: "🔐",
852
+ label: "Security"
853
+ }]
854
+ }];
855
+ return /* @__PURE__ */ t(Me, {
856
+ children: [/* @__PURE__ */ t(Re, {
857
+ $topBarBg: e.topBarBgColor,
858
+ children: [/* @__PURE__ */ t(Ge, {
859
+ children: [/* @__PURE__ */ o(je, {
860
+ onClick: () => i(!n),
861
+ children: "☰"
862
+ }), /* @__PURE__ */ t(Le, {
863
+ children: [/* @__PURE__ */ o(Ee, {
864
+ children: "🔍"
865
+ }), /* @__PURE__ */ o(Ue, {
866
+ children: "Search anything..."
867
+ })]
868
+ })]
869
+ }), /* @__PURE__ */ t(De, {
870
+ children: [/* @__PURE__ */ t(_, {
871
+ children: ["🔔", /* @__PURE__ */ o(Oe, {
872
+ $accent: e.accentColor
873
+ })]
874
+ }), /* @__PURE__ */ o(_, {
875
+ children: "💬"
876
+ }), /* @__PURE__ */ o(We, {
877
+ $accent: e.accentColor,
878
+ children: (e.appName || "Admin").charAt(0).toUpperCase()
879
+ })]
880
+ })]
881
+ }), /* @__PURE__ */ t(qe, {
882
+ children: [/* @__PURE__ */ o(Ye, {
883
+ $sidebarBg: e.sidebarBgColor,
884
+ $collapsed: n,
885
+ children: d.map((l) => /* @__PURE__ */ t(Je, {
886
+ children: [/* @__PURE__ */ o(Ke, {
887
+ $collapsed: n,
888
+ children: n ? "•" : l.label
889
+ }), l.items.map((c) => /* @__PURE__ */ t(Qe, {
890
+ $active: c.active,
891
+ $accent: e.accentColor,
892
+ $collapsed: n,
893
+ children: [/* @__PURE__ */ o(Xe, {
894
+ children: c.icon
895
+ }), !n && c.label]
896
+ }, c.label))]
897
+ }, l.label))
898
+ }), /* @__PURE__ */ t(Ze, {
899
+ $bgColor: e.bgColor,
900
+ children: [/* @__PURE__ */ o(eo, {
901
+ children: /* @__PURE__ */ t(oo, {
902
+ children: [e.appName || "Admin", " / ", /* @__PURE__ */ o(to, {
903
+ children: e.pageTitle || "Dashboard"
904
+ })]
905
+ })
906
+ }), /* @__PURE__ */ o(no, {
907
+ children: /* @__PURE__ */ o(ro, {
908
+ children: /* @__PURE__ */ o($lowcoder_sdk.InnerGrid, p(s({}, e.container), {
909
+ items: $lowcoder_sdk.gridItemCompToGridItems(e.container.items),
910
+ autoHeight: !0,
911
+ emptyRows: 20,
912
+ minHeight: "300px",
913
+ containerPadding: [16, 16],
914
+ hintPlaceholder: $lowcoder_sdk.HintPlaceHolder
915
+ }))
916
+ })
917
+ })]
918
+ })]
919
+ })]
920
+ });
921
+ }).setPropertyViewFn((e) => /* @__PURE__ */ t(g, {
922
+ children: [/* @__PURE__ */ t($lowcoder_sdk.Section, {
923
+ name: "Template Settings",
924
+ children: [e.appName.propertyView({
925
+ label: "App Name"
926
+ }), e.pageTitle.propertyView({
927
+ label: "Page Title"
928
+ })]
929
+ }), /* @__PURE__ */ t($lowcoder_sdk.Section, {
930
+ name: "Colors",
931
+ children: [e.topBarBgColor.propertyView({
932
+ label: "Top Bar Background"
933
+ }), e.sidebarBgColor.propertyView({
934
+ label: "Sidebar Background"
935
+ }), e.bgColor.propertyView({
936
+ label: "Content Background"
937
+ }), e.accentColor.propertyView({
938
+ label: "Accent Color"
939
+ })]
940
+ }), /* @__PURE__ */ o($lowcoder_sdk.Section, {
941
+ name: "Content",
942
+ children: e.container.getPropertyView()
943
+ })]
944
+ })).build(), ao = $lowcoder_sdk.withExposingConfigs(lo, [$lowcoder_sdk.NameConfigHidden]), so = {
945
+ dashboardTemplate: q,
946
+ landingPageTemplate: le,
947
+ sidebarTemplate: _e,
948
+ cardGridTemplate: Fe,
949
+ adminPanelTemplate: ao
950
+ };
951
+ export {
952
+ so as default
953
+ };
package/package.json ADDED
@@ -0,0 +1,82 @@
1
+ {
2
+ "name": "lowcoder-comp-template-demos",
3
+ "version": "0.0.1",
4
+ "type": "module",
5
+ "description": "Lowcoder Template Plugin - 5 pre-built layout templates with drop zones for Lowcoder components",
6
+ "scripts": {
7
+ "start": "NODE_OPTIONS=--max_old_space_size=6144 vite",
8
+ "build": "lowcoder-cli build",
9
+ "build_publish": "lowcoder-cli build --publish"
10
+ },
11
+ "lowcoder": {
12
+ "description": "Pre-built layout templates with drop zones for Lowcoder components",
13
+ "comps": {
14
+ "dashboardTemplate": {
15
+ "name": "Dashboard Template",
16
+ "icon": "./icons/dashboard.svg",
17
+ "description": "Dashboard layout with navbar, stat cards, and a main content drop zone",
18
+ "layoutInfo": {
19
+ "w": 24,
20
+ "h": 80
21
+ }
22
+ },
23
+ "landingPageTemplate": {
24
+ "name": "Landing Page Template",
25
+ "icon": "./icons/landing-page.svg",
26
+ "description": "Landing page with hero section, content drop zone, and footer",
27
+ "layoutInfo": {
28
+ "w": 24,
29
+ "h": 80
30
+ }
31
+ },
32
+ "sidebarTemplate": {
33
+ "name": "Sidebar Layout Template",
34
+ "icon": "./icons/sidebar.svg",
35
+ "description": "Sidebar navigation layout with a main content drop zone",
36
+ "layoutInfo": {
37
+ "w": 24,
38
+ "h": 70
39
+ }
40
+ },
41
+ "cardGridTemplate": {
42
+ "name": "Card Grid Template",
43
+ "icon": "./icons/card-grid.svg",
44
+ "description": "Card-based grid layout with header and content drop zone",
45
+ "layoutInfo": {
46
+ "w": 24,
47
+ "h": 70
48
+ }
49
+ },
50
+ "adminPanelTemplate": {
51
+ "name": "Admin Panel Template",
52
+ "icon": "./icons/admin-panel.svg",
53
+ "description": "Admin panel with top bar, sidebar menu, and main content drop zone",
54
+ "layoutInfo": {
55
+ "w": 24,
56
+ "h": 80
57
+ }
58
+ }
59
+ },
60
+ "entry": "index.js"
61
+ },
62
+ "dependencies": {
63
+ "@types/react": "^18.2.45",
64
+ "@types/react-dom": "^18.2.18",
65
+ "lowcoder-cli": "^0.0.30",
66
+ "lowcoder-sdk": "^2.4.6",
67
+ "react": "18.3.0",
68
+ "react-dom": "18.3.0",
69
+ "styled-components": "^6.4.3",
70
+ "typescript": "^4.8.4",
71
+ "vite": "^4.5.5"
72
+ },
73
+ "keywords": [
74
+ "lowcoder",
75
+ "component",
76
+ "template",
77
+ "plugin",
78
+ "dashboard",
79
+ "layout"
80
+ ],
81
+ "license": "MIT"
82
+ }