le-kit 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/le-kit/assets/custom-elements.json +4305 -0
- package/dist/le-kit/index-Da-89pOc.js +4522 -0
- package/dist/le-kit/{index-D21JjI31.js.map → index-Da-89pOc.js.map} +1 -1
- package/dist/le-kit/index.esm.js +116 -2
- package/dist/le-kit/index.esm.js.map +1 -1
- package/dist/{esm → le-kit}/le-box.entry.js +3 -3
- package/dist/le-kit/le-button.entry.esm.js.map +1 -0
- package/dist/le-kit/le-button.entry.js +90 -0
- package/dist/{esm → le-kit}/le-card.entry.js +3 -3
- package/dist/le-kit/le-checkbox.entry.esm.js.map +1 -0
- package/dist/le-kit/le-checkbox.entry.js +59 -0
- package/dist/le-kit/le-component.entry.esm.js.map +1 -0
- package/dist/{collection/components/le-component/le-component.js → le-kit/le-component.entry.js} +19 -134
- package/dist/le-kit/le-kit.css +1010 -1
- package/dist/le-kit/le-kit.esm.js +48 -2
- package/dist/le-kit/le-kit.esm.js.map +1 -1
- package/dist/{esm → le-kit}/le-number-input.entry.js +5 -5
- package/dist/le-kit/le-popover.entry.esm.js.map +1 -0
- package/dist/{components/le-popover2.js → le-kit/le-popover.entry.js} +9 -45
- package/dist/{esm → le-kit}/le-popup.entry.js +6 -6
- package/dist/{esm → le-kit}/le-round-progress.entry.js +2 -2
- package/dist/le-kit/le-slot.entry.esm.js.map +1 -0
- package/dist/{collection/components/le-slot/le-slot.js → le-kit/le-slot.entry.js} +30 -279
- package/dist/{esm → le-kit}/le-stack.entry.js +3 -3
- package/dist/le-kit/le-string-input.entry.esm.js.map +1 -0
- package/dist/le-kit/le-string-input.entry.js +93 -0
- package/dist/{esm → le-kit}/le-text.entry.js +3 -3
- package/dist/{esm → le-kit}/le-turntable.entry.js +2 -2
- package/dist/{esm/utils-CJLZrrdC.js → le-kit/utils-FDOApZ53.js} +3 -3
- package/dist/le-kit/{utils-apol-Xc_.js.map → utils-FDOApZ53.js.map} +1 -1
- package/package.json +1 -1
- package/dist/cjs/index-CO4npcak.js +0 -1796
- package/dist/cjs/index-CO4npcak.js.map +0 -1
- package/dist/cjs/index.cjs.js +0 -117
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/le-box.cjs.entry.js +0 -184
- package/dist/cjs/le-box.entry.cjs.js.map +0 -1
- package/dist/cjs/le-button.le-checkbox.le-component.le-popover.le-slot.le-string-input.entry.cjs.js.map +0 -1
- package/dist/cjs/le-button_6.cjs.entry.js +0 -1199
- package/dist/cjs/le-card.cjs.entry.js +0 -29
- package/dist/cjs/le-card.entry.cjs.js.map +0 -1
- package/dist/cjs/le-kit.cjs.js +0 -25
- package/dist/cjs/le-kit.cjs.js.map +0 -1
- package/dist/cjs/le-number-input.cjs.entry.js +0 -202
- package/dist/cjs/le-number-input.entry.cjs.js.map +0 -1
- package/dist/cjs/le-popup.cjs.entry.js +0 -212
- package/dist/cjs/le-popup.entry.cjs.js.map +0 -1
- package/dist/cjs/le-round-progress.cjs.entry.js +0 -106
- package/dist/cjs/le-round-progress.entry.cjs.js.map +0 -1
- package/dist/cjs/le-stack.cjs.entry.js +0 -135
- package/dist/cjs/le-stack.entry.cjs.js.map +0 -1
- package/dist/cjs/le-text.cjs.entry.js +0 -335
- package/dist/cjs/le-text.entry.cjs.js.map +0 -1
- package/dist/cjs/le-turntable.cjs.entry.js +0 -139
- package/dist/cjs/le-turntable.entry.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js +0 -13
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/utils-BeT0iyCQ.js +0 -152
- package/dist/cjs/utils-BeT0iyCQ.js.map +0 -1
- package/dist/collection/collection-manifest.json +0 -26
- package/dist/collection/components/le-box/le-box.default.css +0 -37
- package/dist/collection/components/le-box/le-box.js +0 -614
- package/dist/collection/components/le-box/le-box.js.map +0 -1
- package/dist/collection/components/le-button/le-button.default.css +0 -263
- package/dist/collection/components/le-button/le-button.js +0 -368
- package/dist/collection/components/le-button/le-button.js.map +0 -1
- package/dist/collection/components/le-card/le-card.default.css +0 -74
- package/dist/collection/components/le-card/le-card.js +0 -102
- package/dist/collection/components/le-card/le-card.js.map +0 -1
- package/dist/collection/components/le-checkbox/le-checkbox.css +0 -93
- package/dist/collection/components/le-checkbox/le-checkbox.js +0 -192
- package/dist/collection/components/le-checkbox/le-checkbox.js.map +0 -1
- package/dist/collection/components/le-component/le-component.css +0 -189
- package/dist/collection/components/le-component/le-component.js.map +0 -1
- package/dist/collection/components/le-number-input/le-number-input.css +0 -135
- package/dist/collection/components/le-number-input/le-number-input.js +0 -515
- package/dist/collection/components/le-number-input/le-number-input.js.map +0 -1
- package/dist/collection/components/le-popover/le-popover.css +0 -143
- package/dist/collection/components/le-popover/le-popover.js +0 -693
- package/dist/collection/components/le-popover/le-popover.js.map +0 -1
- package/dist/collection/components/le-popup/le-popup.api.js +0 -101
- package/dist/collection/components/le-popup/le-popup.api.js.map +0 -1
- package/dist/collection/components/le-popup/le-popup.css +0 -222
- package/dist/collection/components/le-popup/le-popup.js +0 -596
- package/dist/collection/components/le-popup/le-popup.js.map +0 -1
- package/dist/collection/components/le-round-progress/le-round-progress.css +0 -34
- package/dist/collection/components/le-round-progress/le-round-progress.js +0 -184
- package/dist/collection/components/le-round-progress/le-round-progress.js.map +0 -1
- package/dist/collection/components/le-slot/le-slot.default.css +0 -222
- package/dist/collection/components/le-slot/le-slot.js.map +0 -1
- package/dist/collection/components/le-stack/le-stack.default.css +0 -37
- package/dist/collection/components/le-stack/le-stack.js +0 -389
- package/dist/collection/components/le-stack/le-stack.js.map +0 -1
- package/dist/collection/components/le-string-input/le-string-input.css +0 -83
- package/dist/collection/components/le-string-input/le-string-input.js +0 -359
- package/dist/collection/components/le-string-input/le-string-input.js.map +0 -1
- package/dist/collection/components/le-text/le-text.default.css +0 -169
- package/dist/collection/components/le-text/le-text.js +0 -475
- package/dist/collection/components/le-text/le-text.js.map +0 -1
- package/dist/collection/components/le-turntable/le-turntable.css +0 -10
- package/dist/collection/components/le-turntable/le-turntable.js +0 -210
- package/dist/collection/components/le-turntable/le-turntable.js.map +0 -1
- package/dist/collection/global/app.js +0 -130
- package/dist/collection/global/app.js.map +0 -1
- package/dist/collection/index.js +0 -15
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/types/blocks.js +0 -115
- package/dist/collection/types/blocks.js.map +0 -1
- package/dist/collection/types/options.js +0 -2
- package/dist/collection/types/options.js.map +0 -1
- package/dist/collection/utils/utils.js +0 -141
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/components/index.js +0 -127
- package/dist/components/index.js.map +0 -1
- package/dist/components/le-box.js +0 -256
- package/dist/components/le-box.js.map +0 -1
- package/dist/components/le-button.js +0 -9
- package/dist/components/le-button.js.map +0 -1
- package/dist/components/le-button2.js +0 -1408
- package/dist/components/le-button2.js.map +0 -1
- package/dist/components/le-card.js +0 -83
- package/dist/components/le-card.js.map +0 -1
- package/dist/components/le-checkbox.js +0 -9
- package/dist/components/le-checkbox.js.map +0 -1
- package/dist/components/le-component.js +0 -9
- package/dist/components/le-component.js.map +0 -1
- package/dist/components/le-number-input.js +0 -271
- package/dist/components/le-number-input.js.map +0 -1
- package/dist/components/le-popover.js +0 -9
- package/dist/components/le-popover.js.map +0 -1
- package/dist/components/le-popover2.js.map +0 -1
- package/dist/components/le-popup.js +0 -279
- package/dist/components/le-popup.js.map +0 -1
- package/dist/components/le-round-progress.js +0 -135
- package/dist/components/le-round-progress.js.map +0 -1
- package/dist/components/le-slot.js +0 -9
- package/dist/components/le-slot.js.map +0 -1
- package/dist/components/le-stack.js +0 -198
- package/dist/components/le-stack.js.map +0 -1
- package/dist/components/le-string-input.js +0 -9
- package/dist/components/le-string-input.js.map +0 -1
- package/dist/components/le-text.js +0 -398
- package/dist/components/le-text.js.map +0 -1
- package/dist/components/le-turntable.js +0 -164
- package/dist/components/le-turntable.js.map +0 -1
- package/dist/docs.d.ts +0 -443
- package/dist/docs.json +0 -5185
- package/dist/esm/index-D71TXvJa.js +0 -1781
- package/dist/esm/index-D71TXvJa.js.map +0 -1
- package/dist/esm/index.js +0 -106
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/le-box.entry.js.map +0 -1
- package/dist/esm/le-button.le-checkbox.le-component.le-popover.le-slot.le-string-input.entry.js.map +0 -1
- package/dist/esm/le-button_6.entry.js +0 -1192
- package/dist/esm/le-card.entry.js.map +0 -1
- package/dist/esm/le-kit.js +0 -21
- package/dist/esm/le-kit.js.map +0 -1
- package/dist/esm/le-number-input.entry.js.map +0 -1
- package/dist/esm/le-popup.entry.js.map +0 -1
- package/dist/esm/le-round-progress.entry.js.map +0 -1
- package/dist/esm/le-stack.entry.js.map +0 -1
- package/dist/esm/le-text.entry.js.map +0 -1
- package/dist/esm/le-turntable.entry.js.map +0 -1
- package/dist/esm/loader.js +0 -11
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/utils-CJLZrrdC.js.map +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/le-kit/le-button.le-checkbox.le-component.le-popover.le-slot.le-string-input.entry.esm.js.map +0 -1
- package/dist/le-kit/p-024a764e.entry.js +0 -2
- package/dist/le-kit/p-024a764e.entry.js.map +0 -1
- package/dist/le-kit/p-073cf0b9.entry.js +0 -2
- package/dist/le-kit/p-073cf0b9.entry.js.map +0 -1
- package/dist/le-kit/p-0955b105.entry.js +0 -2
- package/dist/le-kit/p-0955b105.entry.js.map +0 -1
- package/dist/le-kit/p-18d79ee2.entry.js +0 -2
- package/dist/le-kit/p-18d79ee2.entry.js.map +0 -1
- package/dist/le-kit/p-4b1d3b6d.entry.js +0 -2
- package/dist/le-kit/p-4b1d3b6d.entry.js.map +0 -1
- package/dist/le-kit/p-79d179bd.entry.js +0 -2
- package/dist/le-kit/p-79d179bd.entry.js.map +0 -1
- package/dist/le-kit/p-D71TXvJa.js +0 -3
- package/dist/le-kit/p-D71TXvJa.js.map +0 -1
- package/dist/le-kit/p-c8a9288e.entry.js +0 -2
- package/dist/le-kit/p-c8a9288e.entry.js.map +0 -1
- package/dist/le-kit/p-cfc35bd3.entry.js +0 -2
- package/dist/le-kit/p-cfc35bd3.entry.js.map +0 -1
- package/dist/le-kit/p-d04da1f5.entry.js +0 -2
- package/dist/le-kit/p-d04da1f5.entry.js.map +0 -1
- package/dist/le-kit/p-qIai5-eB.js +0 -2
- package/dist/le-kit/p-qIai5-eB.js.map +0 -1
- package/dist/themes/base.css +0 -89
- package/dist/themes/dark.css +0 -100
- package/dist/themes/default.css +0 -108
- package/dist/themes/gradient.css +0 -100
- package/dist/themes/index.css +0 -413
- package/dist/themes/minimal.css +0 -100
- package/dist/themes/warm.css +0 -100
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,i as s}from"./p-D71TXvJa.js";import{c as a}from"./p-qIai5-eB.js";const i=":host{display:block}:host([hidden]){display:none}.stack{gap:var(--le-stack-gap, var(--le-space-md))}:host(.full-width){width:100%}:host(.full-height){height:100%}:host(.direction-horizontal) .stack{min-height:0}:host(.direction-vertical) .stack{min-width:0}";const n=class{constructor(e){t(this,e)}get el(){return e(this)}direction="horizontal";gap;align="stretch";justify="start";wrap=false;alignContent="stretch";reverse=false;maxItems;fullWidth=false;fullHeight=false;padding;getFlexDirection(){const t=this.direction==="vertical"?"column":"row";return this.reverse?`${t}-reverse`:t}getAlignItems(){const t={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch",baseline:"baseline"};return t[this.align]||"stretch"}getJustifyContent(){const t={start:"flex-start",center:"center",end:"flex-end","space-between":"space-between","space-around":"space-around","space-evenly":"space-evenly"};return t[this.justify]||"flex-start"}getAlignContent(){const t={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch","space-between":"space-between","space-around":"space-around"};return t[this.alignContent]||"stretch"}render(){const t={display:"flex",flexDirection:this.getFlexDirection(),alignItems:this.getAlignItems(),justifyContent:this.getJustifyContent(),flexWrap:this.wrap?"wrap":"nowrap"};if(this.wrap){t.alignContent=this.getAlignContent()}if(this.gap){t.gap=this.gap}if(this.padding){t.padding=this.padding}const e=a(`direction-${this.direction}`,{wrap:this.wrap,reverse:this.reverse,"full-width":this.fullWidth,"full-height":this.fullHeight});const i=`display: flex; flex-direction: ${this.getFlexDirection()}; gap: ${this.gap||"var(--le-space-md)"}; flex-wrap: ${this.wrap?"wrap":"nowrap"}; justify-content: ${this.getJustifyContent()}; align-items: ${this.getAlignItems()};`;return s("le-component",{key:"e1547512915e47e4c5ddbcbcbd3971579e45a140",component:"le-stack",hostClass:e},s("div",{key:"61a4fd57c61c56a8abac0ae2348e6e48034efc4d",class:"stack",part:"stack",style:t},s("le-slot",{key:"0ef0f996ce0efcb20a47171197d82e5b326c7e8c",name:"",description:`Items arranged ${this.direction}ly${this.maxItems?` (max ${this.maxItems})`:""}`,type:"slot","allowed-components":"le-text,le-box,le-card,le-button,le-stack",slotStyle:i},s("slot",{key:"f41f351d8b6dbdaf20756e9bc317a35a0424fc6c"}))))}};n.style=i;export{n as le_stack};
|
|
2
|
-
//# sourceMappingURL=p-c8a9288e.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["registerInstance","getElement","h","classnames","leStackDefaultCss","LeStack","constructor","hostRef","this","el","direction","gap","align","justify","wrap","alignContent","reverse","maxItems","fullWidth","fullHeight","padding","getFlexDirection","base","getAlignItems","alignMap","start","center","end","stretch","baseline","getJustifyContent","justifyMap","getAlignContent","alignContentMap","render","style","display","flexDirection","alignItems","justifyContent","flexWrap","hostClass","slotStyle","key","component","class","part","name","description","type"],"sources":["0"],"mappings":"YAAcA,OAAuBC,OAAiBC,MAAS,8BACjDC,MAAkB,kBAEhC,MAAMC,EAAoB,oQAE1B,MAAMC,EAAU,MACZ,WAAAC,CAAYC,GACRP,EAAiBQ,KAAMD,EAC3B,CACA,MAAIE,GAAO,OAAOR,EAAWO,KAAO,CAKpCE,UAAY,aAIZC,IAKAC,MAAQ,UAKRC,QAAU,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Ke,mBACvO,OAAQrB,EAAE,eAAgB,CAAEyC,IAAK,2CAA4CC,UAAW,WAAYH,UAAWA,GAAavC,EAAE,MAAO,CAAEyC,IAAK,2CAA4CE,MAAO,QAASC,KAAM,QAASX,MAAOA,GAASjC,EAAE,UAAW,CAAEyC,IAAK,2CAA4CI,KAAM,GAAIC,YAAa,kBAAkBxC,KAAKE,cAAcF,KAAKS,SAAW,SAAST,KAAKS,YAAc,KAAMgC,KAAM,OAAQ,qBAAsB,4CAA6CP,UAAWA,GAAaxC,EAAE,OAAQ,CAAEyC,IAAK,+CACnhB,GAEJtC,EAAQ8B,MAAQ/B,SAEPC","ignoreList":[]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,i,H as s}from"./p-D71TXvJa.js";import{c as n}from"./p-qIai5-eB.js";const r=":host{display:block;box-sizing:border-box}:host([hidden]){display:none}.box{width:100%;height:100%;box-sizing:border-box}.content{width:100%;height:100%;box-sizing:border-box;background:var(--le-box-bg, transparent);border-radius:var(--le-box-border-radius, 0);padding:var(--le-box-padding, 0)}:host(.display-flex) .content{min-height:100%}";const a=class{constructor(e){t(this,e)}get el(){return e(this)}grow=0;shrink=1;basis="auto";width;height;minWidth;maxWidth;minHeight;maxHeight;background;borderRadius;border;alignSelf="auto";alignContent="stretch";justifyContent="start";padding;order;displayFlex=false;innerDirection="vertical";innerGap;getAlignSelf(){const t={auto:"auto",start:"flex-start",center:"center",end:"flex-end",stretch:"stretch",baseline:"baseline"};return t[this.alignSelf]||"auto"}getContentAlign(){const t={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"};return t[this.alignContent]||"stretch"}getContentJustify(){const t={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"};return t[this.justifyContent]||"flex-start"}render(){const t={flexGrow:String(this.grow),flexShrink:String(this.shrink),flexBasis:this.basis,alignSelf:this.getAlignSelf()};if(this.width)t.width=this.width;if(this.height)t.height=this.height;if(this.minWidth)t.minWidth=this.minWidth;if(this.maxWidth)t.maxWidth=this.maxWidth;if(this.minHeight)t.minHeight=this.minHeight;if(this.maxHeight)t.maxHeight=this.maxHeight;if(this.order!==undefined)t.order=String(this.order);const e={};if(this.padding){e.padding=this.padding}if(this.background){e.background=this.background}if(this.borderRadius){e.borderRadius=this.borderRadius}if(this.border){e.border=this.border}if(this.displayFlex){e.display="flex";e.flexDirection=this.innerDirection==="vertical"?"column":"row";e.alignItems=this.getContentAlign();e.justifyContent=this.getContentJustify();if(this.innerGap){e.gap=this.innerGap}}const r=n({"has-grow":this.grow>0,"display-flex":this.displayFlex,[`inner-${this.innerDirection}`]:this.displayFlex});return i(s,{key:"8d71daaa3a1f34cf1b5fa3afe4f788d974d14dde",style:t,class:r},i("le-component",{key:"350393fef2159c40de43792502545ba93e0ec84c",component:"le-box"},i("div",{key:"425be85bce62b600a383e164a847a2f0622496bd",class:"box",part:"box"},i("div",{key:"104275e435d64a76428b5934aa0ece7ae3284cd8",class:"content",part:"content",style:e},i("le-slot",{key:"7655d6bd5140ffcac514b266b4ca2f790a44e8ae",name:"",description:"Content inside this flex item",type:"slot","allowed-components":"le-text,le-card,le-button,le-stack,le-box"},i("slot",{key:"47efcfcc9b9efe5283fa8f558026b3b13ea5b959"}))))))}};a.style=r;export{a as le_box};
|
|
2
|
-
//# sourceMappingURL=p-cfc35bd3.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["registerInstance","getElement","h","Host","classnames","leBoxDefaultCss","LeBox","constructor","hostRef","this","el","grow","shrink","basis","width","height","minWidth","maxWidth","minHeight","maxHeight","background","borderRadius","border","alignSelf","alignContent","justifyContent","padding","order","displayFlex","innerDirection","innerGap","getAlignSelf","alignMap","auto","start","center","end","stretch","baseline","getContentAlign","getContentJustify","justifyMap","render","hostStyle","flexGrow","String","flexShrink","flexBasis","undefined","contentStyle","display","flexDirection","alignItems","gap","hostClass","key","style","class","component","part","name","description","type"],"sources":["0"],"mappings":"YAAcA,OAAuBC,EAAiBC,O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--container{position:relative}.round-progress{position:absolute;top:0;left:0;right:0;bottom:0;display:block}.round-progress--progress{filter:drop-shadow(var(--progress-shadow))}.round-progress--circle{fill:none;stroke:var(--progress-color, #999);stroke-width:var(--progress-width, 4);stroke-linecap:var(--progress-linecap, round);animation:progress--circle 0.5s ease-out forwards;transition:stroke-dasharray 0.5s ease-out}@keyframes progress--circle{0%{stroke-dasharray:0 1000}}.round-progress--path{fill:none;stroke-linecap:round}";const a=class{constructor(r){s(this,r)}get el(){return r(this)}value=0;updateValue(s){this.value=parseFloat(s)}padding=0;updatePadding(s){this.padding=parseFloat(s);this.calcParams()}paths;updateProgressBackgrounds(s){this.progressPaths=JSON.parse(s)}progressPaths;params;componentWillLoad(){if(typeof this.paths==="string"){this.updateProgressBackgrounds(this.paths)}this.calcParams()}calcParams(){const s=this.el.getBoundingClientRect().width;const r=s-this.padding;const t=Math.PI*r;this.params={width:s,diameter:r,circumference:t}}getViewBox(){return"0 0 "+this.params.width+" "+this.params.width}getPath(){return"M"+this.params.width/2+" "+(this.params.width-this.params.diameter)/2+" a "+this.params.diameter/2+" "+this.params.diameter/2+" 0 0 1 0 "+this.params.diameter+" a "+this.params.diameter/2+" "+this.params.diameter/2+" 0 0 1 0 -"+this.params.diameter}getStrokeDashArray(){return this.value/100*this.params.circumference+", "+this.params.circumference}getPaths(){if(!this.progressPaths||!this.progressPaths.length){return null}let s=[];this.progressPaths.forEach((r=>{s.push(t("path",{class:"round-progress--path",d:this.getPath(),stroke:r.color,"stroke-width":r.width,"stroke-dasharray":r.dasharray,"stroke-linecap":r.linecap}))}));return t("svg",{viewBox:this.getViewBox(),class:"round-progress"},s)}render(){return t("div",{key:"1ffc36704bee5d0822623ac4559ad2d4690095a4",class:"round-progress--container"},this.getPaths(),t("svg",{key:"12e4dfe5fe2df0cb672d4c001459b8dcc8253591",viewBox:this.getViewBox(),class:"round-progress round-progress--progress"},t("path",{key:"d8ce69610687fb578ce2104bd3eccba24951dd96",class:"round-progress--circle","stroke-dasharray":this.getStrokeDashArray(),d:this.getPath()})),t("slot",{key:"3976b08a7e838579d6af34a778a8756255d98e57"}))}static get watchers(){return{value:["updateValue"],padding:["updatePadding"],paths:["updateProgressBackgrounds"]}}};a.style=e;export{a as le_round_progress};
|
|
2
|
-
//# sourceMappingURL=p-d04da1f5.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["registerInstance","getElement","h","leRoundProgressCss","LeRoundProgress","constructor","hostRef","this","el","value","updateValue","newValue","parseFloat","padding","updatePadding","calcParams","paths","updateProgressBackgrounds","progressPaths","JSON","parse","params","componentWillLoad","width","getBoundingClientRect","diameter","circumference","Math","PI","getViewBox","getPath","getStrokeDashArray","getPaths","length","forEach","bg","push","class","d","stroke","color","dasharray","linecap","viewBox","render","key","watchers","style"],"sources":["0"],"mappings":"YAAcA,OAAuBC,OAAiBC,MAAS,kBAE/D,MAAMC,EAAqB,qiBAE3B,MAAMC,EAAkB,MACpB,WAAAC,CAAYC,GACRN,EAAiBO,KAAMD,EAC3B,CACA,MAAIE,GAAO,OAAOP,EAAWM,KAAO,CAEpCE,MAAQ,EACR,WAAAC,CAAYC,GACRJ,KAAKE,MAAQG,WAAWD,EAC5B,CAEAE,QAAU,EACV,aAAAC,CAAcH,GACVJ,KAAKM,QAAUD,WAAWD,GAC1BJ,KAAKQ,YACT,CAGAC,MACA,yBAAAC,CAA0BN,GACtBJ,KAAKW,cAAgBC,KAAKC,MAAMT,EACpC,CACAO,cACAG,OAQA,iBAAAC,GACI,UAAWf,KAAKS,QAAU,SAAU,CAChCT,KAAKU,0BAA0BV,KAAKS,MACxC,CACAT,KAAKQ,YACT,CACA,UAAAA,GAEI,MAAMQ,EAAQhB,KAAKC,GAAGgB,wBAAwBD,MAC9C,MAAME,EAAWF,EAAQhB,KAAKM,QAE9B,MAAMa,EAAgBC,KAAKC,GAAKH,EAChClB,KAAKc,OAAS,CAAEE,QAAOE,WAAUC,gBACrC,CAKA,UAAAG,GACI,MAAO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AAC,iBACZG,MAAS,CAAC,6BACX,GAEPZ,EAAgB2C,MAAQ5C,SAEfC","ignoreList":[]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as t}from"./p-D71TXvJa.js";function e(t="le"){return`${t}-${Math.random().toString(36).substring(2,9)}`}function r(t){if(!t)return[];return t.split(",").map((t=>t.trim())).filter(Boolean)}function o(t,e=""){const r=e?`[slot="${e}"]`:":not([slot])";return t.querySelector(r)!==null}function i(e,r){r(t(e));const o=new MutationObserver((()=>{r(t(e))}));o.observe(e,{attributes:true,attributeFilter:["mode"]});o.observe(document.documentElement,{attributes:true,attributeFilter:["mode"]});let i=e;while(i){if(i instanceof Element&&i.parentElement){i=i.parentElement;o.observe(i,{attributes:true,attributeFilter:["mode"]});if(i.hasAttribute("mode")){break}}else{const t=i.getRootNode();if(t instanceof ShadowRoot){i=t.host;o.observe(i,{attributes:true,attributeFilter:["mode"]});if(i.hasAttribute("mode")){break}}else{break}}}return()=>o.disconnect()}function n(...t){const e=[];t.forEach((t=>{if(!t)return;if(typeof t==="string"){e.push(t)}else if(Array.isArray(t)){e.push(n(...t))}else if(typeof t==="object"){Object.entries(t).forEach((([t,r])=>{if(r){e.push(t)}}))}}));return e.join(" ")}export{n as c,e as g,i as o,r as p,o as s};
|
|
2
|
-
//# sourceMappingURL=p-qIai5-eB.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"p-qIai5-eB.js","sources":["src/utils/utils.ts"],"sourcesContent":["/**\n * Utility functions for le-kit components\n */\n\nimport { getMode } from '../global/app';\n\n/**\n * Generates a unique ID for component instances\n */\nexport function generateId(prefix: string = 'le'): string {\n return `${prefix}-${Math.random().toString(36).substring(2, 9)}`;\n}\n\n/**\n * Parses a comma-separated string into an array\n */\nexport function parseCommaSeparated(value: string | undefined): string[] {\n if (!value) return [];\n return value\n .split(',')\n .map(s => s.trim())\n .filter(Boolean);\n}\n\n/**\n * Checks if a slot has content\n */\nexport function slotHasContent(el: HTMLElement, slotName: string = ''): boolean {\n const selector = slotName ? `[slot=\"${slotName}\"]` : ':not([slot])';\n return el.querySelector(selector) !== null;\n}\n\n/**\n * Sets up a MutationObserver to track mode changes on ancestor elements.\n * Returns a cleanup function to disconnect the observer.\n * \n * If the element or any ancestor has an explicit `mode` attribute, that creates\n * a \"mode boundary\" - the mode is determined from that point, not from further up.\n * This allows components like le-popover to force default mode for their children.\n * \n * @param el - The component's host element\n * @param callback - Function to call when mode changes, receives the new mode\n * @returns Cleanup function to disconnect the observer\n * \n * @example\n * ```tsx\n * export class MyComponent {\n * @Element() el: HTMLElement;\n * @State() adminMode: boolean = false;\n * private disconnectModeObserver?: () => void;\n * \n * connectedCallback() {\n * this.disconnectModeObserver = observeModeChanges(this.el, (mode) => {\n * this.adminMode = mode === 'admin';\n * });\n * }\n * \n * disconnectedCallback() {\n * this.disconnectModeObserver?.();\n * }\n * }\n * ```\n */\nexport function observeModeChanges(\n el: HTMLElement,\n callback: (mode: string) => void\n): () => void {\n // Call immediately with current mode\n callback(getMode(el));\n\n // Set up observer for mode attribute changes\n const observer = new MutationObserver(() => {\n callback(getMode(el));\n });\n\n // Observe the element itself (for mode boundary changes)\n observer.observe(el, {\n attributes: true,\n attributeFilter: ['mode'],\n });\n\n // Observe document root\n observer.observe(document.documentElement, {\n attributes: true,\n attributeFilter: ['mode'],\n });\n\n // Traverse up, crossing shadow boundaries, and observe each element\n let current: Node | null = el;\n while (current) {\n if (current instanceof Element && current.parentElement) {\n current = current.parentElement;\n observer.observe(current, {\n attributes: true,\n attributeFilter: ['mode'],\n });\n // If this element has an explicit mode, it's a boundary\n if ((current as Element).hasAttribute('mode')) {\n break;\n }\n } else {\n // Check if we're in a shadow root\n const root = current.getRootNode();\n if (root instanceof ShadowRoot) {\n // Cross the shadow boundary and observe the host\n current = root.host;\n observer.observe(current, {\n attributes: true,\n attributeFilter: ['mode'],\n });\n // If the host has an explicit mode, it's a boundary\n if ((current as Element).hasAttribute('mode')) {\n break;\n }\n } else {\n break;\n }\n }\n }\n\n // Return cleanup function\n return () => observer.disconnect();\n}\n\n/**\n * Combines multiple class names into a single string, filtering out falsy values.\n * \n * @param classes - arguments of class names, undefined, arrays, objects with boolean values and nested combinations of these\n * @returns Combined class names string\n */\nexport function classnames(...classes: any[]): string {\n const result: string[] = [];\n\n classes.forEach(cls => {\n if (!cls) return;\n\n if (typeof cls === 'string') {\n result.push(cls);\n } else if (Array.isArray(cls)) {\n result.push(classnames(...cls));\n } else if (typeof cls === 'object') {\n Object.entries(cls).forEach(([key, value]) => {\n if (value) {\n result.push(key);\n }\n });\n }\n });\n\n return result.join(' ');\n}\n"],"names":[],"mappings":";;AAAA;;AAEG;AAIH;;AAEG;AACa,SAAA,UAAU,CAAC,MAAA,GAAiB,IAAI,EAAA;IAC9C,OAAO,CAAA,EAAG,MAAM,CAAI,CAAA,EAAA,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;AAClE;AAEA;;AAEG;AACG,SAAU,mBAAmB,CAAC,KAAyB,EAAA;AAC3D,IAAA,IAAI,CAAC,KAAK;AAAE,QAAA,OAAO,EAAE;AACrB,IAAA,OAAO;SACJ,KAAK,CAAC,GAAG;SACT,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE;SACjB,MAAM,CAAC,OAAO,CAAC;AACpB;AAEA;;AAEG;SACa,cAAc,CAAC,EAAe,EAAE,WAAmB,EAAE,EAAA;AACnE,IAAA,MAAM,QAAQ,GAAG,QAAQ,GAAG,CAAU,OAAA,EAAA,QAAQ,CAAI,EAAA,CAAA,GAAG,cAAc;IACnE,OAAO,EAAE,CAAC,aAAa,CAAC,QAAQ,CAAC,KAAK,IAAI;AAC5C;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BG;AACa,SAAA,kBAAkB,CAChC,EAAe,EACf,QAAgC,EAAA;;AAGhC,IAAA,QAA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M,QAAQ,CAAC,UAAU,EAAE;AACpC;AAEA;;;;;AAKG;AACa,SAAA,UAAU,CAAC,GAAG,OAAc,EAAA;IAC1C,MAAM,MAAM,GAAa,EAAE;AAE3B,IAAA,OAAO,CAAC,OAAO,CAAC,GAAG,IAAG;AACpB,QAAA,IAAI,CAAC,GAAG;YAAE;AAEV,QAAA,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;AAC3B,YAAA,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;;AACX,aAAA,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;YAC7B,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,GAAG,CAAC,CAAC;;AAC1B,aAAA,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;AAClC,YAAA,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,KAAI;gBAC3C,IAAI,KAAK,EAAE;AACT,oBAAA,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;;AAEpB,aAAC,CAAC;;AAEN,KAAC,CAAC;AAEF,IAAA,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;AACzB;;;;"}
|
package/dist/themes/base.css
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Le-Kit Base Design Tokens
|
|
3
|
-
*
|
|
4
|
-
* Structural tokens that rarely change between themes:
|
|
5
|
-
* - Spacing scale
|
|
6
|
-
* - Typography (font families, sizes, weights, line heights)
|
|
7
|
-
* - Transitions
|
|
8
|
-
* - Z-index layers
|
|
9
|
-
*
|
|
10
|
-
* Import this file along with a theme file (default.css, dark.css, etc.)
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
:root {
|
|
14
|
-
-webkit-font-smoothing: antialiased;
|
|
15
|
-
-moz-osx-font-smoothing: grayscale;
|
|
16
|
-
|
|
17
|
-
/* ============================================
|
|
18
|
-
* SPACING SCALE
|
|
19
|
-
* ============================================ */
|
|
20
|
-
--le-spacing-0: 0;
|
|
21
|
-
--le-spacing-1: 0.25rem; /* 4px */
|
|
22
|
-
--le-spacing-2: 0.5rem; /* 8px */
|
|
23
|
-
--le-spacing-3: 0.75rem; /* 12px */
|
|
24
|
-
--le-spacing-4: 1rem; /* 16px */
|
|
25
|
-
--le-spacing-5: 1.25rem; /* 20px */
|
|
26
|
-
--le-spacing-6: 1.5rem; /* 24px */
|
|
27
|
-
--le-spacing-8: 2rem; /* 32px */
|
|
28
|
-
--le-spacing-10: 2.5rem; /* 40px */
|
|
29
|
-
--le-spacing-12: 3rem; /* 48px */
|
|
30
|
-
--le-spacing-16: 4rem; /* 64px */
|
|
31
|
-
|
|
32
|
-
/* ============================================
|
|
33
|
-
* TYPOGRAPHY
|
|
34
|
-
* ============================================ */
|
|
35
|
-
--le-font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
36
|
-
--le-font-family-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
|
|
37
|
-
|
|
38
|
-
/* Font sizes */
|
|
39
|
-
--le-font-size-xs: 0.75rem; /* 12px */
|
|
40
|
-
--le-font-size-sm: 0.875rem; /* 14px */
|
|
41
|
-
--le-font-size-md: 1rem; /* 16px */
|
|
42
|
-
--le-font-size-lg: 1.125rem; /* 18px */
|
|
43
|
-
--le-font-size-xl: 1.25rem; /* 20px */
|
|
44
|
-
--le-font-size-2xl: 1.5rem; /* 24px */
|
|
45
|
-
--le-font-size-3xl: 1.875rem; /* 30px */
|
|
46
|
-
--le-font-size-4xl: 2.25rem; /* 36px */
|
|
47
|
-
|
|
48
|
-
/* Font weights */
|
|
49
|
-
--le-font-weight-normal: 400;
|
|
50
|
-
--le-font-weight-medium: 500;
|
|
51
|
-
--le-font-weight-semibold: 600;
|
|
52
|
-
--le-font-weight-bold: 700;
|
|
53
|
-
|
|
54
|
-
/* Line heights */
|
|
55
|
-
--le-line-height-tight: 1.25;
|
|
56
|
-
--le-line-height-normal: 1.5;
|
|
57
|
-
--le-line-height-relaxed: 1.75;
|
|
58
|
-
|
|
59
|
-
/* ============================================
|
|
60
|
-
* RADIUSES
|
|
61
|
-
* ============================================ */
|
|
62
|
-
--le-radius-none: 0;
|
|
63
|
-
--le-radius-xs: 0.066rem; /* 1px */
|
|
64
|
-
--le-radius-sm: 0.125rem; /* 2px */
|
|
65
|
-
--le-radius-md: 0.25rem; /* 4px */
|
|
66
|
-
--le-radius-lg: 0.5rem; /* 8px */
|
|
67
|
-
--le-radius-xl: 0.75rem; /* 12px */
|
|
68
|
-
--le-radius-2xl: 1rem; /* 16px */
|
|
69
|
-
--le-radius-full: 9999px;
|
|
70
|
-
|
|
71
|
-
/* ============================================
|
|
72
|
-
* TRANSITIONS
|
|
73
|
-
* ============================================ */
|
|
74
|
-
--le-transition-fast: 100ms;
|
|
75
|
-
--le-transition-normal: 200ms;
|
|
76
|
-
--le-transition-slow: 300ms;
|
|
77
|
-
--le-transition-easing: cubic-bezier(0.4, 0, 0.2, 1);
|
|
78
|
-
|
|
79
|
-
/* ============================================
|
|
80
|
-
* Z-INDEX LAYERS
|
|
81
|
-
* ============================================ */
|
|
82
|
-
--le-z-dropdown: 1000;
|
|
83
|
-
--le-z-sticky: 1020;
|
|
84
|
-
--le-z-fixed: 1030;
|
|
85
|
-
--le-z-modal-backdrop: 1040;
|
|
86
|
-
--le-z-modal: 1050;
|
|
87
|
-
--le-z-popover: 1060;
|
|
88
|
-
--le-z-tooltip: 1070;
|
|
89
|
-
}
|
package/dist/themes/dark.css
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Le-Kit Dark Theme
|
|
3
|
-
*
|
|
4
|
-
* Dark mode with light text on dark backgrounds.
|
|
5
|
-
*
|
|
6
|
-
* Usage: set theme="dark" on any element, or import as your default.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
[theme="dark"] {
|
|
10
|
-
/* Primary brand color - lighter for dark backgrounds */
|
|
11
|
-
--le-color-primary: #4da6ff;
|
|
12
|
-
--le-color-primary-light: #80c1ff;
|
|
13
|
-
--le-color-primary-dark: #0088ff;
|
|
14
|
-
--le-color-primary-contrast: #000000;
|
|
15
|
-
|
|
16
|
-
/* Secondary accent color */
|
|
17
|
-
--le-color-secondary: #868e96;
|
|
18
|
-
--le-color-secondary-light: #adb5bd;
|
|
19
|
-
--le-color-secondary-dark: #6c757d;
|
|
20
|
-
--le-color-secondary-contrast: #000000;
|
|
21
|
-
|
|
22
|
-
/* Semantic colors - adjusted for dark mode */
|
|
23
|
-
--le-color-success: #48c764;
|
|
24
|
-
--le-color-success-light: #6dd587;
|
|
25
|
-
--le-color-success-dark: #28a745;
|
|
26
|
-
--le-color-success-contrast: #000000;
|
|
27
|
-
|
|
28
|
-
--le-color-warning: #ffcd39;
|
|
29
|
-
--le-color-warning-light: #ffda6a;
|
|
30
|
-
--le-color-warning-dark: #ffc107;
|
|
31
|
-
--le-color-warning-contrast: #000000;
|
|
32
|
-
|
|
33
|
-
--le-color-danger: #e4606d;
|
|
34
|
-
--le-color-danger-light: #ea868f;
|
|
35
|
-
--le-color-danger-dark: #dc3545;
|
|
36
|
-
--le-color-danger-contrast: #000000;
|
|
37
|
-
|
|
38
|
-
--le-color-info: #3ab0c3;
|
|
39
|
-
--le-color-info-light: #6dc4d3;
|
|
40
|
-
--le-color-info-dark: #17a2b8;
|
|
41
|
-
--le-color-info-contrast: #000000;
|
|
42
|
-
|
|
43
|
-
/* Neutral colors - inverted */
|
|
44
|
-
--le-color-white: #ffffff;
|
|
45
|
-
--le-color-black: #000000;
|
|
46
|
-
--le-color-gray-50: #212121;
|
|
47
|
-
--le-color-gray-100: #424242;
|
|
48
|
-
--le-color-gray-200: #616161;
|
|
49
|
-
--le-color-gray-300: #757575;
|
|
50
|
-
--le-color-gray-400: #9e9e9e;
|
|
51
|
-
--le-color-gray-500: #bdbdbd;
|
|
52
|
-
--le-color-gray-600: #e0e0e0;
|
|
53
|
-
--le-color-gray-700: #eeeeee;
|
|
54
|
-
--le-color-gray-800: #f5f5f5;
|
|
55
|
-
--le-color-gray-900: #fafafa;
|
|
56
|
-
|
|
57
|
-
/* Background colors */
|
|
58
|
-
--le-color-background: #121212;
|
|
59
|
-
--le-color-background-secondary: #1e1e1e;
|
|
60
|
-
--le-color-background-tertiary: #2d2d2d;
|
|
61
|
-
|
|
62
|
-
/* Surface colors */
|
|
63
|
-
--le-color-surface: #1e1e1e;
|
|
64
|
-
--le-color-surface-elevated: #2d2d2d;
|
|
65
|
-
|
|
66
|
-
/* Text colors */
|
|
67
|
-
--le-color-text-primary: #ffffff;
|
|
68
|
-
--le-color-text-secondary: #b3b3b3;
|
|
69
|
-
--le-color-text-disabled: #666666;
|
|
70
|
-
--le-color-text-inverse: #121212;
|
|
71
|
-
|
|
72
|
-
/* Border colors */
|
|
73
|
-
--le-color-border: #333333;
|
|
74
|
-
--le-color-border-light: #2d2d2d;
|
|
75
|
-
--le-color-border-dark: #444444;
|
|
76
|
-
|
|
77
|
-
/** Input borders */
|
|
78
|
-
--le-border-width: 2px;
|
|
79
|
-
--le-color-border-input: #515c6b;
|
|
80
|
-
|
|
81
|
-
/* Focus ring */
|
|
82
|
-
--le-color-focus: rgba(77, 166, 255, 0.5);
|
|
83
|
-
|
|
84
|
-
/* Border radius - same as default */
|
|
85
|
-
--le-radius-none: 0;
|
|
86
|
-
--le-radius-sm: 0.125rem;
|
|
87
|
-
--le-radius-md: 0.25rem;
|
|
88
|
-
--le-radius-lg: 0.5rem;
|
|
89
|
-
--le-radius-xl: 0.75rem;
|
|
90
|
-
--le-radius-2xl: 1rem;
|
|
91
|
-
--le-radius-full: 9999px;
|
|
92
|
-
|
|
93
|
-
/* Shadows - darker for dark mode */
|
|
94
|
-
--le-shadow-none: none;
|
|
95
|
-
--le-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
96
|
-
--le-shadow-md: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
97
|
-
--le-shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
|
|
98
|
-
--le-shadow-xl: 0 10px 15px rgba(0, 0, 0, 0.4), 0 4px 6px rgba(0, 0, 0, 0.3);
|
|
99
|
-
--le-shadow-2xl: 0 20px 25px rgba(0, 0, 0, 0.4), 0 10px 10px rgba(0, 0, 0, 0.3);
|
|
100
|
-
}
|
package/dist/themes/default.css
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Le-Kit Default Theme
|
|
3
|
-
*
|
|
4
|
-
* Clean, professional light theme with blue primary color.
|
|
5
|
-
*
|
|
6
|
-
* Usage:
|
|
7
|
-
* 1. As default: import alongside base.css
|
|
8
|
-
* 2. For switching: set theme="default" on any element
|
|
9
|
-
*
|
|
10
|
-
* To create a custom theme:
|
|
11
|
-
* 1. Copy this file
|
|
12
|
-
* 2. Change selector to :root or [theme="your-theme"]
|
|
13
|
-
* 3. Modify the variables you need
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
:root,
|
|
17
|
-
[theme="default"] {
|
|
18
|
-
/* Primary brand color */
|
|
19
|
-
--le-color-primary: #0088ff;
|
|
20
|
-
--le-color-primary-light: #4da6ff;
|
|
21
|
-
--le-color-primary-dark: #0066cc;
|
|
22
|
-
--le-color-primary-contrast: #ffffff;
|
|
23
|
-
|
|
24
|
-
/* Secondary accent color */
|
|
25
|
-
--le-color-secondary: #6c757d;
|
|
26
|
-
--le-color-secondary-light: #868e96;
|
|
27
|
-
--le-color-secondary-dark: #545b62;
|
|
28
|
-
--le-color-secondary-contrast: #ffffff;
|
|
29
|
-
|
|
30
|
-
/* Semantic colors */
|
|
31
|
-
--le-color-success: #28a745;
|
|
32
|
-
--le-color-success-light: #48c764;
|
|
33
|
-
--le-color-success-dark: #1e7e34;
|
|
34
|
-
--le-color-success-contrast: #ffffff;
|
|
35
|
-
|
|
36
|
-
--le-color-warning: #ffc107;
|
|
37
|
-
--le-color-warning-light: #ffcd39;
|
|
38
|
-
--le-color-warning-dark: #d39e00;
|
|
39
|
-
--le-color-warning-contrast: #212529;
|
|
40
|
-
|
|
41
|
-
--le-color-danger: #dc3545;
|
|
42
|
-
--le-color-danger-light: #e4606d;
|
|
43
|
-
--le-color-danger-dark: #bd2130;
|
|
44
|
-
--le-color-danger-contrast: #ffffff;
|
|
45
|
-
|
|
46
|
-
--le-color-info: #17a2b8;
|
|
47
|
-
--le-color-info-light: #3ab0c3;
|
|
48
|
-
--le-color-info-dark: #117a8b;
|
|
49
|
-
--le-color-info-contrast: #ffffff;
|
|
50
|
-
|
|
51
|
-
/* Neutral colors */
|
|
52
|
-
--le-color-white: #ffffff;
|
|
53
|
-
--le-color-black: #000000;
|
|
54
|
-
--le-color-gray-50: #fafafa;
|
|
55
|
-
--le-color-gray-100: #f5f5f5;
|
|
56
|
-
--le-color-gray-200: #eeeeee;
|
|
57
|
-
--le-color-gray-300: #e0e0e0;
|
|
58
|
-
--le-color-gray-400: #bdbdbd;
|
|
59
|
-
--le-color-gray-500: #9e9e9e;
|
|
60
|
-
--le-color-gray-600: #757575;
|
|
61
|
-
--le-color-gray-700: #616161;
|
|
62
|
-
--le-color-gray-800: #424242;
|
|
63
|
-
--le-color-gray-900: #212121;
|
|
64
|
-
|
|
65
|
-
/* Background colors */
|
|
66
|
-
--le-color-background: #ffffff;
|
|
67
|
-
--le-color-background-secondary: #f5f5f5;
|
|
68
|
-
--le-color-background-tertiary: #eeeeee;
|
|
69
|
-
|
|
70
|
-
/* Surface colors (cards, modals, etc.) */
|
|
71
|
-
--le-color-surface: #ffffff;
|
|
72
|
-
--le-color-surface-elevated: #ffffff;
|
|
73
|
-
|
|
74
|
-
/* Text colors */
|
|
75
|
-
--le-color-text-primary: #212121;
|
|
76
|
-
--le-color-text-secondary: #757575;
|
|
77
|
-
--le-color-text-disabled: #9e9e9e;
|
|
78
|
-
--le-color-text-inverse: #ffffff;
|
|
79
|
-
|
|
80
|
-
/* Border colors */
|
|
81
|
-
--le-color-border: #e0e0e0;
|
|
82
|
-
--le-color-border-light: #eeeeee;
|
|
83
|
-
--le-color-border-dark: #bdbdbd;
|
|
84
|
-
|
|
85
|
-
/** Input borders */
|
|
86
|
-
--le-border-width: 2px;
|
|
87
|
-
--le-color-border-input: #c4d6e6;
|
|
88
|
-
|
|
89
|
-
/* Focus ring */
|
|
90
|
-
--le-color-focus: rgba(0, 136, 255, 0.5);
|
|
91
|
-
|
|
92
|
-
/* Border radius */
|
|
93
|
-
--le-radius-none: 0;
|
|
94
|
-
--le-radius-sm: 0.125rem; /* 2px */
|
|
95
|
-
--le-radius-md: 0.25rem; /* 4px */
|
|
96
|
-
--le-radius-lg: 0.5rem; /* 8px */
|
|
97
|
-
--le-radius-xl: 0.75rem; /* 12px */
|
|
98
|
-
--le-radius-2xl: 1rem; /* 16px */
|
|
99
|
-
--le-radius-full: 9999px;
|
|
100
|
-
|
|
101
|
-
/* Shadows */
|
|
102
|
-
--le-shadow-none: none;
|
|
103
|
-
--le-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
104
|
-
--le-shadow-md: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
|
|
105
|
-
--le-shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
|
|
106
|
-
--le-shadow-xl: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
|
|
107
|
-
--le-shadow-2xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
|
|
108
|
-
}
|
package/dist/themes/gradient.css
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Le-Kit Gradient Theme
|
|
3
|
-
*
|
|
4
|
-
* Modern gradient style with purple accents and rounded corners.
|
|
5
|
-
*
|
|
6
|
-
* Usage: set theme="gradient" on any element, or import as your default.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
[theme="gradient"] {
|
|
10
|
-
/* Primary brand color - purple */
|
|
11
|
-
--le-color-primary: #8b5cf6;
|
|
12
|
-
--le-color-primary-light: #a78bfa;
|
|
13
|
-
--le-color-primary-dark: #7c3aed;
|
|
14
|
-
--le-color-primary-contrast: #ffffff;
|
|
15
|
-
|
|
16
|
-
/* Secondary accent color - pink */
|
|
17
|
-
--le-color-secondary: #ec4899;
|
|
18
|
-
--le-color-secondary-light: #f472b6;
|
|
19
|
-
--le-color-secondary-dark: #db2777;
|
|
20
|
-
--le-color-secondary-contrast: #ffffff;
|
|
21
|
-
|
|
22
|
-
/* Semantic colors */
|
|
23
|
-
--le-color-success: #10b981;
|
|
24
|
-
--le-color-success-light: #34d399;
|
|
25
|
-
--le-color-success-dark: #059669;
|
|
26
|
-
--le-color-success-contrast: #ffffff;
|
|
27
|
-
|
|
28
|
-
--le-color-warning: #f59e0b;
|
|
29
|
-
--le-color-warning-light: #fbbf24;
|
|
30
|
-
--le-color-warning-dark: #d97706;
|
|
31
|
-
--le-color-warning-contrast: #000000;
|
|
32
|
-
|
|
33
|
-
--le-color-danger: #ef4444;
|
|
34
|
-
--le-color-danger-light: #f87171;
|
|
35
|
-
--le-color-danger-dark: #dc2626;
|
|
36
|
-
--le-color-danger-contrast: #ffffff;
|
|
37
|
-
|
|
38
|
-
--le-color-info: #06b6d4;
|
|
39
|
-
--le-color-info-light: #22d3ee;
|
|
40
|
-
--le-color-info-dark: #0891b2;
|
|
41
|
-
--le-color-info-contrast: #ffffff;
|
|
42
|
-
|
|
43
|
-
/* Neutral colors */
|
|
44
|
-
--le-color-white: #ffffff;
|
|
45
|
-
--le-color-black: #000000;
|
|
46
|
-
--le-color-gray-50: #faf5ff;
|
|
47
|
-
--le-color-gray-100: #f3e8ff;
|
|
48
|
-
--le-color-gray-200: #e9d5ff;
|
|
49
|
-
--le-color-gray-300: #d8b4fe;
|
|
50
|
-
--le-color-gray-400: #c084fc;
|
|
51
|
-
--le-color-gray-500: #a855f7;
|
|
52
|
-
--le-color-gray-600: #9333ea;
|
|
53
|
-
--le-color-gray-700: #7e22ce;
|
|
54
|
-
--le-color-gray-800: #6b21a8;
|
|
55
|
-
--le-color-gray-900: #581c87;
|
|
56
|
-
|
|
57
|
-
/* Background colors */
|
|
58
|
-
--le-color-background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
59
|
-
--le-color-background-secondary: rgba(255, 255, 255, 0.1);
|
|
60
|
-
--le-color-background-tertiary: rgba(255, 255, 255, 0.05);
|
|
61
|
-
|
|
62
|
-
/* Surface colors */
|
|
63
|
-
--le-color-surface: rgba(255, 255, 255, 0.95);
|
|
64
|
-
--le-color-surface-elevated: #ffffff;
|
|
65
|
-
|
|
66
|
-
/* Text colors */
|
|
67
|
-
--le-color-text-primary: #1f2937;
|
|
68
|
-
--le-color-text-secondary: #6b7280;
|
|
69
|
-
--le-color-text-disabled: #9ca3af;
|
|
70
|
-
--le-color-text-inverse: #ffffff;
|
|
71
|
-
|
|
72
|
-
/* Border colors */
|
|
73
|
-
--le-color-border: rgba(139, 92, 246, 0.3);
|
|
74
|
-
--le-color-border-light: rgba(139, 92, 246, 0.1);
|
|
75
|
-
--le-color-border-dark: rgba(139, 92, 246, 0.5);
|
|
76
|
-
|
|
77
|
-
/** Input borders */
|
|
78
|
-
--le-border-width: 2px;
|
|
79
|
-
--le-color-border-input: #eccddd;
|
|
80
|
-
|
|
81
|
-
/* Focus ring */
|
|
82
|
-
--le-color-focus: rgba(139, 92, 246, 0.5);
|
|
83
|
-
|
|
84
|
-
/* Border radius - more rounded */
|
|
85
|
-
--le-radius-none: 0;
|
|
86
|
-
--le-radius-sm: 0.25rem;
|
|
87
|
-
--le-radius-md: 0.5rem;
|
|
88
|
-
--le-radius-lg: 1rem;
|
|
89
|
-
--le-radius-xl: 1.5rem;
|
|
90
|
-
--le-radius-2xl: 2rem;
|
|
91
|
-
--le-radius-full: 9999px;
|
|
92
|
-
|
|
93
|
-
/* Shadows - purple tinted */
|
|
94
|
-
--le-shadow-none: none;
|
|
95
|
-
--le-shadow-sm: 0 1px 2px rgba(139, 92, 246, 0.1);
|
|
96
|
-
--le-shadow-md: 0 4px 6px rgba(139, 92, 246, 0.15), 0 2px 4px rgba(139, 92, 246, 0.1);
|
|
97
|
-
--le-shadow-lg: 0 10px 20px rgba(139, 92, 246, 0.2), 0 4px 8px rgba(139, 92, 246, 0.1);
|
|
98
|
-
--le-shadow-xl: 0 20px 40px rgba(139, 92, 246, 0.25), 0 8px 16px rgba(139, 92, 246, 0.15);
|
|
99
|
-
--le-shadow-2xl: 0 30px 60px rgba(139, 92, 246, 0.3), 0 15px 30px rgba(139, 92, 246, 0.2);
|
|
100
|
-
}
|