@rededor/cura 2.0.0-alpha.12 → 2.0.0-alpha.14
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/cjs/{cura-accordion_21.cjs.entry.js → cura-accordion_22.cjs.entry.js} +6923 -16
- package/dist/cjs/cura-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/cura-display.cjs.entry.js +1 -1
- package/dist/cjs/cura-dropdown-search-not-found.cjs.entry.js +1 -1
- package/dist/cjs/cura-icons-view.cjs.entry.js +1 -1
- package/dist/cjs/cura-input-date.cjs.entry.js +1 -1
- package/dist/cjs/cura-loader-bar.cjs.entry.js +1 -1
- package/dist/cjs/cura-modal.cjs.entry.js +1 -1
- package/dist/cjs/cura-progress-bar_2.cjs.entry.js +2 -2
- package/dist/cjs/cura-radio.cjs.entry.js +1 -1
- package/dist/cjs/cura-stepper.cjs.entry.js +1 -1
- package/dist/cjs/cura-switch.cjs.entry.js +1 -1
- package/dist/cjs/cura-tabs-button.cjs.entry.js +1 -1
- package/dist/cjs/cura-tabs-transparent.cjs.entry.js +1 -1
- package/dist/cjs/cura-toast.cjs.entry.js +1 -1
- package/dist/cjs/cura-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/cura.cjs.js +1 -1
- package/dist/cjs/index.cjs.js +1140 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/cura-calendar/cura-calendar.css +40 -1
- package/dist/collection/components/cura-calendar/cura-calendar.js +154 -3
- package/dist/collection/components/cura-calendar/cura-calendar.stories.js +39 -1
- package/dist/collection/components/cura-calendar/cura-calendar.type.js +1 -0
- package/dist/collection/components/cura-card/cura-card.js +1 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.js +1 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.js +1 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js +1 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.js +1 -1
- package/dist/collection/components/cura-icon/cura-icon.js +1 -1
- package/dist/collection/components/cura-icons-view/cura-icons-view.js +1 -1
- package/dist/collection/components/cura-modal/cura-modal.js +1 -1
- package/dist/collection/components/cura-page-template/cura-page-template.js +1 -1
- package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.js +1 -1
- package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.js +1 -1
- package/dist/collection/components/cura-stepper/cura-stepper.js +1 -1
- package/dist/collection/components/cura-toast/cura-toast.js +1 -1
- package/dist/collection/components/cura-tooltip/cura-tooltip.js +1 -1
- package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js +1 -1
- package/dist/collection/components/forms/cura-input-date/cura-input-date.js +1 -1
- package/dist/collection/components/forms/cura-label/cura-label.js +1 -1
- package/dist/collection/components/forms/cura-radio/cura-radio.js +1 -1
- package/dist/collection/components/forms/cura-select/cura-select.js +3 -3
- package/dist/collection/components/forms/cura-select-options/cura-select-option.js +1 -1
- package/dist/collection/components/forms/cura-switch/cura-switch.js +1 -1
- package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js +1 -1
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +1 -1
- package/dist/collection/components/tabs/cura-tabs/cura-tabs.js +1 -1
- package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.js +1 -1
- package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.js +1 -1
- package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.js +1 -1
- package/dist/collection/components/text/cura-display/cura-display.js +1 -1
- package/dist/collection/components/text/cura-heading/cura-heading.js +1 -1
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +1 -1
- package/dist/collection/index.js +2 -0
- package/dist/components/cura-accordion-item.js +1 -1
- package/dist/components/cura-alert.js +1 -1
- package/dist/components/cura-badge-counter.js +1 -1
- package/dist/components/cura-badge-distance.js +1 -1
- package/dist/components/cura-badge-pill.js +1 -1
- package/dist/components/cura-button-outline.js +1 -1
- package/dist/components/cura-button-select.js +1 -1
- package/dist/components/cura-button-transparent.js +1 -1
- package/dist/components/cura-button.js +1 -1
- package/dist/components/cura-calendar.js +1 -1
- package/dist/components/cura-card.js +1 -1
- package/dist/components/cura-checkbox.js +1 -1
- package/dist/components/cura-display.js +1 -1
- package/dist/components/cura-dropdown-search-category.js +1 -1
- package/dist/components/cura-dropdown-search-not-found.js +1 -1
- package/dist/components/cura-dropdown-search-option.js +1 -1
- package/dist/components/cura-dropdown-search.js +1 -1
- package/dist/components/cura-heading.js +1 -1
- package/dist/components/cura-icon.js +1 -1
- package/dist/components/cura-icons-view.js +1 -1
- package/dist/components/cura-input-date.js +1 -1
- package/dist/components/cura-input-text.js +1 -1
- package/dist/components/cura-label.js +1 -1
- package/dist/components/cura-loader-bar.js +1 -1
- package/dist/components/cura-loader-circle.js +1 -1
- package/dist/components/cura-modal.js +1 -1
- package/dist/components/cura-page-template.js +1 -1
- package/dist/components/cura-paragraph.js +1 -1
- package/dist/components/cura-progress-bar.js +1 -1
- package/dist/components/cura-radio.js +1 -1
- package/dist/components/cura-select-option.js +1 -1
- package/dist/components/cura-select.js +1 -1
- package/dist/components/cura-stepper-item.js +1 -1
- package/dist/components/cura-stepper.js +1 -1
- package/dist/components/cura-switch.js +1 -1
- package/dist/components/cura-tabs-button.js +1 -1
- package/dist/components/cura-tabs-group.js +1 -1
- package/dist/components/cura-tabs-transparent.js +1 -1
- package/dist/components/cura-tabs.js +1 -1
- package/dist/components/cura-toast.js +1 -1
- package/dist/components/cura-tooltip.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-B2RN7oe_.js → p-BBtCzdwH.js} +1 -1
- package/dist/components/{p-fR02COZb.js → p-BFGkepgq.js} +1 -1
- package/dist/components/{p-CCkEqDZb.js → p-BGBnVlL3.js} +1 -1
- package/dist/components/{p-B8xnU6YS.js → p-BJafC0R3.js} +1 -1
- package/dist/components/{p-BYA8glxD.js → p-BOQ-9WHP.js} +1 -1
- package/dist/components/{p-DXlGQp3a.js → p-BXFxWVl3.js} +1 -1
- package/dist/components/{p-D7WNwjv-.js → p-Bac-rr_f.js} +1 -1
- package/dist/components/{p-C7so9xnO.js → p-BmMvoH-m.js} +1 -1
- package/dist/components/p-CalvBU-U.js +1 -0
- package/dist/components/{p-BSdkRryc.js → p-Cm1Vfoc6.js} +1 -1
- package/dist/components/{p-fn4zJrKE.js → p-DI66_jP6.js} +1 -1
- package/dist/components/{p-D6xuYQiO.js → p-DbZtk_CM.js} +1 -1
- package/dist/components/{p-DxJedO3K.js → p-I4AXUk2V.js} +1 -1
- package/dist/components/{p-CpmZ68rD.js → p-Oyg5hynZ.js} +1 -1
- package/dist/components/p-nqT7t82E.js +1 -0
- package/dist/cura/cura.esm.js +1 -1
- package/dist/cura/index.esm.js +1 -1
- package/dist/cura/{p-b14ae206.entry.js → p-04b5c710.entry.js} +1 -1
- package/dist/cura/{p-bf99e8bf.entry.js → p-18a1cadf.entry.js} +1 -1
- package/dist/cura/{p-2e2e2b4d.entry.js → p-1ecb2249.entry.js} +1 -1
- package/dist/cura/{p-b7369d04.entry.js → p-2572a4f9.entry.js} +1 -1
- package/dist/cura/{p-42e72d12.entry.js → p-604f1c1d.entry.js} +1 -1
- package/dist/cura/{p-ddf4d240.entry.js → p-71fffffa.entry.js} +1 -1
- package/dist/cura/{p-c247c93b.entry.js → p-8b29b763.entry.js} +1 -1
- package/dist/cura/{p-9de85de6.entry.js → p-906c8b66.entry.js} +1 -1
- package/dist/cura/{p-7965fe63.entry.js → p-a5c4849c.entry.js} +1 -1
- package/dist/cura/{p-3a3202f0.entry.js → p-a72db13d.entry.js} +1 -1
- package/dist/cura/{p-f911a6c5.entry.js → p-b447fca2.entry.js} +1 -1
- package/dist/cura/p-c287c69e.entry.js +1 -0
- package/dist/cura/{p-c18d7f16.entry.js → p-c987ddde.entry.js} +1 -1
- package/dist/cura/{p-1dc9c478.entry.js → p-f072b011.entry.js} +1 -1
- package/dist/cura/{p-5357f7bd.entry.js → p-f407bd73.entry.js} +1 -1
- package/dist/cura/p-f638eda8.entry.js +1 -0
- package/dist/esm/{cura-accordion_21.entry.js → cura-accordion_22.entry.js} +6923 -17
- package/dist/esm/cura-checkbox.entry.js +1 -1
- package/dist/esm/cura-display.entry.js +1 -1
- package/dist/esm/cura-dropdown-search-not-found.entry.js +1 -1
- package/dist/esm/cura-icons-view.entry.js +1 -1
- package/dist/esm/cura-input-date.entry.js +1 -1
- package/dist/esm/cura-loader-bar.entry.js +1 -1
- package/dist/esm/cura-modal.entry.js +1 -1
- package/dist/esm/cura-progress-bar_2.entry.js +2 -2
- package/dist/esm/cura-radio.entry.js +1 -1
- package/dist/esm/cura-stepper.entry.js +1 -1
- package/dist/esm/cura-switch.entry.js +1 -1
- package/dist/esm/cura-tabs-button.entry.js +1 -1
- package/dist/esm/cura-tabs-transparent.entry.js +1 -1
- package/dist/esm/cura-toast.entry.js +1 -1
- package/dist/esm/cura-tooltip.entry.js +1 -1
- package/dist/esm/cura.js +1 -1
- package/dist/esm/index.js +1140 -0
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/cura-calendar/cura-calendar.d.ts +32 -0
- package/dist/types/components/cura-calendar/cura-calendar.stories.d.ts +40 -0
- package/dist/types/components/cura-calendar/cura-calendar.type.d.ts +4 -0
- package/dist/types/components.d.ts +35 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +2 -2
- package/dist/cjs/cura-calendar.cjs.entry.js +0 -6840
- package/dist/components/p-Bf21UQXV.js +0 -1
- package/dist/components/p-CG1lz5DR.js +0 -1
- package/dist/cura/p-27ba7ef5.entry.js +0 -1
- package/dist/cura/p-54624944.entry.js +0 -1
- package/dist/cura/p-cbe8c690.entry.js +0 -1
- package/dist/esm/cura-calendar.entry.js +0 -6838
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as i,H as a}from"./p-BxFVLGIR.js";import{i as r}from"./p-sjLA93YY.js";import"./p-BTIDzOyO.js";var c=["360","accessibility","accessibility2","accessibility3","accessibility4","addUser","airdrop","alertCircle","alertTriangle","arrowDown","arrowDownCircle","arrowLeft","arrowLeftCircle","arrowRight","arrowRightCircle","arrowUp","arrowUpCircle","attach","autism","avatarF","avatarM","bike","biometry","biop","bloodGroup","calendar","cam","camOff","cart","central","chatCircle","check","checkBadge","checkCircle","checkDouble","clock","close","closeCircle","coffee","collapse","config","contacts","currency","delete","desktop","doc","down","download","drug","duplicate","edit","elevator","exam","examDoc","expand","facebook","fileBmp","fileJpg","filePdf","filePng","fileUpload","fileXls","filter","fullscreen","gallery","geotag","geotagUnity","geotagUnityGroup","google","graph","healthPlan","heart","height","height2","home","horizontalList","id","image","imageUp","infoCircle","instagram","key","lab","lamp","language","language2","languageEN","languagePT","lattes","left","like","link","linkExternal","linkedin","list","login","logout","mail","maintenance","medDoc","medEspec","medImg","medUser","medical","menuHamburguer","menuKebab","menuMeatballs","mic","micOff","minus","minusCircle","minusSquare","mobile","mobileClick","mobileRotate1","mobileRotate2","mobileRotate3","news","notification","npsDeslike","npsHate","npsLike","npsLove","npsNeutral","order","parking","partner","phone","play","plus","plusCircle","plusSquare","print","profile","profileCircle","questionCircle","questionSquare","range","reload","ribbon","right","schedule","scheduleCancel","scheduleCheck","scheduleHistorico","search","secure","share","siren","sound","soundOff","star","stop","store","subItem","swap","target","team","telegram","twitter","unLink","unSecure","unity","unlike","up","upload","vaccine","verticalList","viewFalse","viewTrue","weight","whatsapp","wifi","wifiOff","xray","youtube","zoomIn","zoomOut"];const l=class{constructor(i){e(this,i),this.sizes=Object.keys(r).filter((e=>"default"!==e)),this.colors=["primary","secondary","accent","info","warning","error","success","neutral"],this.selected=c[0],this.setSelected=e=>{this.selected=e}}connectedCallback(){this.sizes.unshift(this.sizes.pop())}render(){return i(a,{key:"
|
|
1
|
+
import{r as e,h as i,H as a}from"./p-BxFVLGIR.js";import{i as r}from"./p-sjLA93YY.js";import"./p-BTIDzOyO.js";var c=["360","accessibility","accessibility2","accessibility3","accessibility4","addUser","airdrop","alertCircle","alertTriangle","arrowDown","arrowDownCircle","arrowLeft","arrowLeftCircle","arrowRight","arrowRightCircle","arrowUp","arrowUpCircle","attach","autism","avatarF","avatarM","bike","biometry","biop","bloodGroup","calendar","cam","camOff","cart","central","chatCircle","check","checkBadge","checkCircle","checkDouble","clock","close","closeCircle","coffee","collapse","config","contacts","currency","delete","desktop","doc","down","download","drug","duplicate","edit","elevator","exam","examDoc","expand","facebook","fileBmp","fileJpg","filePdf","filePng","fileUpload","fileXls","filter","fullscreen","gallery","geotag","geotagUnity","geotagUnityGroup","google","graph","healthPlan","heart","height","height2","home","horizontalList","id","image","imageUp","infoCircle","instagram","key","lab","lamp","language","language2","languageEN","languagePT","lattes","left","like","link","linkExternal","linkedin","list","login","logout","mail","maintenance","medDoc","medEspec","medImg","medUser","medical","menuHamburguer","menuKebab","menuMeatballs","mic","micOff","minus","minusCircle","minusSquare","mobile","mobileClick","mobileRotate1","mobileRotate2","mobileRotate3","news","notification","npsDeslike","npsHate","npsLike","npsLove","npsNeutral","order","parking","partner","phone","play","plus","plusCircle","plusSquare","print","profile","profileCircle","questionCircle","questionSquare","range","reload","ribbon","right","schedule","scheduleCancel","scheduleCheck","scheduleHistorico","search","secure","share","siren","sound","soundOff","star","stop","store","subItem","swap","target","team","telegram","twitter","unLink","unSecure","unity","unlike","up","upload","vaccine","verticalList","viewFalse","viewTrue","weight","whatsapp","wifi","wifiOff","xray","youtube","zoomIn","zoomOut"];const l=class{constructor(i){e(this,i),this.sizes=Object.keys(r).filter((e=>"default"!==e)),this.colors=["primary","secondary","accent","info","warning","error","success","neutral"],this.selected=c[0],this.setSelected=e=>{this.selected=e}}connectedCallback(){this.sizes.unshift(this.sizes.pop())}render(){return i(a,{key:"f25d10b3f380cc58fd5b4e77b437e09ba0787df4"},i("div",{key:"5162f1c8aff585a60f37ef9af8451dae8b310394",class:"iconDetail"},i("cura-heading",{key:"2e95f88bf98bcb3b5ea8b2ce6b015ef5d3c984e5",size:"small","margin-block":"0 24px"},"Icon: ",i("b",{key:"102d867291ca3af92c370f044a7140571b15c737"},this.selected)),i("div",{key:"e2fd0833644705ea8b406508be51c6d2d5683d24",class:"iconSizes"},this.sizes.map((e=>i("div",{class:"size"},i("cura-icon",{name:this.selected,size:e}),i("span",null,e))))),i("div",{key:"fa842318750f3cdb5e5d7f7333c9221aaf66b585",class:"iconSizes invert"},this.sizes.map((e=>i("div",{class:"size"},i("cura-icon",{name:this.selected,size:e,color:"neutral-white"}),i("span",null,e)))))),i("div",{key:"a25fd5649fe3bda93f80208e634790da44dde89b",class:"icons"},c.map((e=>i("div",{class:{icon:!0,selected:e===this.selected},onClick:()=>this.setSelected(e)},i("cura-icon",{name:e,size:"32",color:e===this.selected?"accent-dark":"neutral-dark"}),i("cura-label",{size:"xsmall",weight:e===this.selected?"bold":"regular",color:e===this.selected?"accent-dark":"neutral-dark"},e))))))}};l.style=':host{display:block;padding:24px;font-family:"Roboto", Arial, Helvetica, sans-serif}.iconDetail{display:block}.iconSizes{display:flex;align-items:center}.iconSizes .size{display:flex;flex-direction:column;text-align:center;align-items:center;margin-right:9px;padding:8px}.iconSizes .size:last-child{margin-right:0}.iconSizes .size span{font-size:10px;margin:8px 0}.iconSizes.invert{margin-top:12px}.iconSizes.invert .size{background-color:#2d2d2d;color:#F6F6F6;border-radius:3px}.icons{margin-top:28px;display:flex;flex-wrap:wrap;position:relative}.icons .icon{position:relative;padding:4px;cursor:pointer;opacity:0.6;transition:opacity 0.2s linear;width:105px;display:flex;flex-direction:column;text-align:center;align-items:center;margin-bottom:16px;box-sizing:border-box;}.icons .icon cura-label{margin-top:8px}.icons .icon cura-paragraph{margin-top:4px}';export{l as cura_icons_view}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,H as a,g as o}from"./p-BxFVLGIR.js";import"./p-BTIDzOyO.js";const s=class{constructor(i){t(this,i),this.toastClosed=e(this,"toastClosed"),this.type="info",this.position="top-right",this.closeButton=!0,this.loader=!0,this.autoCloseDelay=1e4,this.styles={},this.progress=0,this.handleClose=()=>{this.closeContainer()}}async close(){this.closeContainer()}handleChangeType(){this.setStyle()}connectedCallback(){this.setStyle()}render(){return i(a,{key:"
|
|
1
|
+
import{r as t,c as e,h as i,H as a,g as o}from"./p-BxFVLGIR.js";import"./p-BTIDzOyO.js";const s=class{constructor(i){t(this,i),this.toastClosed=e(this,"toastClosed"),this.type="info",this.position="top-right",this.closeButton=!0,this.loader=!0,this.autoCloseDelay=1e4,this.styles={},this.progress=0,this.handleClose=()=>{this.closeContainer()}}async close(){this.closeContainer()}handleChangeType(){this.setStyle()}connectedCallback(){this.setStyle()}render(){return i(a,{key:"3ed410c2082acf963a9bc034ba0698d3d5a8c05e",role:"alert","aria-live":"polite","aria-atomic":"true","aria-label":this.label},i("div",{key:"7da959ad2aa5d8b57e509bfc5c1241cfe2aab078",class:this.getClasses(),style:this.styles},i("cura-icon",{key:"f88bbe2ad57d6d5a2cdd707a753fe6a37d2fb13a",class:"default-icon",name:this.getNameIcon(),size:16,color:`${this.type}-dark`}),i("div",{key:"b6d1cf4f6d5cd42b331f19c7996f3de36c29f09e",class:"content"},i("cura-heading",{key:"ab72f2ffea1f653cd956c5ac1b1c80a053e07673",level:4,size:"xsmall",color:`${this.type}-dark`,weight:"bold","margin-block":"0"},this.label),i("cura-paragraph",{key:"29e40bf6759c4a2c53beed9028d4d4a5472c8d1d",color:`${this.type}-darker`,size:"xsmall",marginBlock:"0",lineHeight:"133.33%"},i("slot",{key:"b76073439ef46c084eb681a1639d3644b862db00"})),i("slot",{key:"a5d6b28128d692d84990654e5b74c13c91f1fcb5",name:"actions"})),this.closeButton&&i("cura-icon",{key:"bd46e61b4280815f9cb8a683838cceda7b3349c1",class:"close-icon",name:"close",size:16,color:"error-dark",onClick:this.handleClose}),this.loader&&!!this.autoCloseDelay&&i("cura-loader-bar",{key:"bffd92fb6e1c162ff5ead3d3fa84168ef80ca240",color:`${this.type}-base`,progress:this.progress})))}componentDidLoad(){this.openContainer(),this.startAnimation()}setStyle(){this.styles=Object.assign(Object.assign({},this.styles),{"--neutral-purewhite":window.CuraAPI.theme.colors.getColor("neutral-purewhite"),"--neutral-base":window.CuraAPI.theme.colors.getColor("neutral-base",.2),"--primary-base":window.CuraAPI.theme.colors.getColor("primary-base"),"--color-base":window.CuraAPI.theme.colors.getColor(`${this.type}-base`)})}getClasses(){const[t,e]=this.position.split("-"),i={container:!0};return i[t]=!0,i[e]=!0,this.loader&&(i.loader=!0),i}getNameIcon(){return this.icon?this.icon:{info:"infoCircle",success:"checkCircle",warning:"alertCircle",error:"alertTriangle"}[this.type]}openContainer(){this.container=this.host.shadowRoot.querySelector(".container"),this.container.classList.add("active")}closeContainer(){this.container.classList.remove("active"),setTimeout((()=>{this.toastClosed.emit(),this.host.remove()}),500)}startAnimation(){if(this.autoCloseDelay)if(this.loader){this.progress=0;let t=setInterval((()=>{this.progress>=100?(clearInterval(t),this.closeContainer()):this.progress++}),this.autoCloseDelay/100)}else{let t=setInterval((()=>{clearInterval(t),this.closeContainer()}),this.autoCloseDelay)}}get host(){return o(this)}static get watchers(){return{type:[{handleChangeType:0}],position:[{handleChangeType:0}]}}};s.style=":host{display:block;box-sizing:border-box}:host .container{position:fixed;z-index:99999;display:flex;box-sizing:border-box;min-width:320px;height:fit-content;padding:16px;border:1px solid var(--color-base);border-radius:12px;background-color:var(--neutral-purewhite);overflow:hidden;box-shadow:0px 8px 16px 0px var(--neutral-black-shadow-4, rgba(38, 38, 38, 0.12))}:host .container.loader{padding:16px 16px 20px}:host .container.top{top:24px}:host .container.top.center{top:-100%;left:50%;transform:translateX(-50%);opacity:0;transition:opacity 0.5s ease-in-out, top 0.5s ease-in-out}:host .container.top.center.active{top:24px;opacity:1}:host .container.bottom{bottom:24px}:host .container.bottom.center{bottom:-100%;left:50%;transform:translateX(-50%);opacity:0;transition:opacity 0.5s ease-in-out, bottom 0.5s ease-in-out}:host .container.bottom.center.active{bottom:24px;opacity:1}:host .container.left{left:-100%;opacity:0;transition:opacity 0.5s ease-in-out, left 0.5s ease-in-out}@media (max-width: 768px){:host .container.left{right:unset;left:50%;transform:translateX(-50%)}}:host .container.left.active{left:24px;opacity:1}:host .container.right{right:-100%;opacity:0;transition:opacity 0.5s ease-in-out, right 0.5s ease-in-out}@media (max-width: 768px){:host .container.right{right:unset;left:50%;transform:translateX(-50%)}}:host .container.right.active{right:24px;opacity:1}:host .container .content{flex:1 1 0;display:flex;flex-direction:column;gap:4px}:host .container .default-icon{margin-right:12px}:host .container .close-icon{margin-left:12px;cursor:pointer}";export{s as cura_toast}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t,H as s,g as r}from"./p-BxFVLGIR.js";import"./p-BTIDzOyO.js";const a=class{constructor(t){e(this,t),this.size=40,this.strokeWidth=3.25}render(){const e=(this.size-this.strokeWidth)/2,r=e*Math.PI*2,a=this.progress*r/100;return t(s,{key:"
|
|
1
|
+
import{r as e,h as t,H as s,g as r}from"./p-BxFVLGIR.js";import"./p-BTIDzOyO.js";const a=class{constructor(t){e(this,t),this.size=40,this.strokeWidth=3.25}render(){const e=(this.size-this.strokeWidth)/2,r=e*Math.PI*2,a=this.progress*r/100;return t(s,{key:"f546339afd578c9916c87e160652d2836d636235"},t("div",{key:"9341ac6716ea963f4a4b7c6b3a06b348846fe22b",class:"progress-bar"},t("svg",{key:"3312489a2d50a45b9fdc63b3ea00c2e10d742f06",width:this.size,height:this.size,viewBox:`0 0 ${this.size} ${this.size}`},t("circle",{key:"14672a7a5f0e62889de26ab8ea434ac802440f06",fill:"none",stroke:"#ccc",cx:this.size/2,cy:this.size/2,r:e,"stroke-width":`${this.strokeWidth}px`}),this.active&&t("circle",{key:"659481dc37b13dc54ebc7df839fcc0b091733d9d",fill:"none",stroke:this.progressColor,cx:this.size/2,cy:this.size/2,r:e,"stroke-width":`${this.strokeWidth}px`,transform:`rotate(-90 ${this.size/2} ${this.size/2})`,"stroke-dasharray":`${a}px ${r-a}px`,"stroke-linecap":"round",style:{transition:"all 0.5s"}})),t("span",{key:"d92f101a4a05eb74b5b601855e8a8eb42ab50d03"},t("slot",{key:"6e89b7922e5579087c6d31bf2733f1b5098867dc"}))))}};a.style=":host{display:block;box-sizing:border-box}.progress-bar{position:relative;display:flex;align-items:center;justify-content:center}.progress-bar span{position:absolute;display:flex}";const i=class{constructor(t){e(this,t),this.displayHeading=!1,this.status="default",this.styles={},this.statusMap={active:{badgeColor:"info",textColor:"info-dark",icon:"",iconOnly:!1},stop:{badgeColor:"error",textColor:"error-darker",icon:"alertCircle",iconOnly:!0},done:{badgeColor:"success",textColor:"success-darker",icon:"checkCircle",iconOnly:!0},default:{badgeColor:"neutral",textColor:"neutral",icon:"",iconOnly:!1}}}connectedCallback(){this.updateStyles()}getStatusProperties(){return this.statusMap[this.status]||this.statusMap.default}updateStyles(){const{fonts:e,colors:t,spacing:s}=window.CuraAPI.theme,r=e.getWeights();this.styles={"--base-spacing":s.getSpacing(),"--neutral-purewhite":t.getColor("neutral-purewhite"),"--neutral-lighter":t.getColor("neutral-lighter"),"--neutral-base":t.getColor("neutral-base"),"--font-size":e.getSize(),"--font-color":e.getColor(),"--font-family":e.getFamily(),"--font-weight-regular":r.regular}}render(){const{badgeColor:e,textColor:r,icon:a,iconOnly:i}=this.getStatusProperties();return t(s,{key:"fa32a8121b1117a2a186f8d8c0b0cabb03a9ea41"},t("div",{key:"33cacd68a3b62ec1832e9625f034a80a94ca9569",class:"item-container",style:this.styles},t("cura-badge-pill",{key:"dd636659edc05de46d51d6f02fb8e00c5adbcb88",type:"solid",color:e,"icon-name":a,"icon-only":i,"border-radius":"50%"},this.label),this.displayHeading&&this.heading&&t("cura-paragraph",{key:"d5d9ab0defb69c5f8835c5e22ff300f30dd13d1d",marginBlock:"0",size:"xsmall",color:r},this.heading)))}get hostElement(){return r(this)}};i.style=":host{display:block;box-sizing:border-box}.item-container{display:flex;gap:4px;align-items:center}";export{a as cura_progress_bar,i as cura_stepper_item}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o,c as a,h as e,H as r}from"./p-BxFVLGIR.js";import"./p-BTIDzOyO.js";const c=class{constructor(e){o(this,e),this.actionclick=a(this,"actionclick"),this.handleClick=o=>{this.actionclick.emit(),o.preventDefault(),o.stopPropagation()}}render(){return e(r,{key:"6b57806eb3a2c3be73c76876bfce0062e36a97fa"},e("div",{key:"5a294ef5d53177d439816d881a8d5c90b60b621e",class:"component-container",onClick:this.handleClick},e("cura-heading",{key:"ff92297c1261d69ef9fa8c2b9cdbfee6365b08f2",size:"xsmall",weight:"bold",color:"error-dark"},e("slot",{key:"b84f981ba0cff218b5bf0c94a014c83daaa184ac"}))))}};c.style=":host{display:block;box-sizing:border-box}:host .component-container{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;min-height:calc(var(--cura-spacing-base) * 10px);padding:0 calc(var(--cura-spacing-base) * 1px);border-bottom:1px solid var(--neutral-light);border-bottom:none;cursor:default}:host .component-container cura-heading{--margin-block:0 !important;flex:1}";export{c as cura_dropdown_search_not_found}
|