limbo-component 2.5.0 → 2.5.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/dist/limbo.cjs.js +1 -1
- package/dist/limbo.cjs.map +1 -1
- package/dist/limbo.css +1 -1
- package/dist/limbo.es.js +2 -2
- package/dist/limbo.es.map +1 -1
- package/dist/limbo.min.js +1 -1
- package/dist/limbo.min.js.map +1 -1
- package/dist/limbo.umd.js +1 -1
- package/dist/limbo.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/limbo.es.js
CHANGED
|
@@ -126,7 +126,7 @@ return s("div",{className:"lb:flex lb:flex-col lb:items-center lb:gap-6","aria-l
|
|
|
126
126
|
/* @__PURE__ */s("div",{className:"lb:flex lb:flex-wrap lb:items-center lb:gap-3 lb:mb-2",children:[
|
|
127
127
|
/* @__PURE__ */o("h3",{className:"lb:text-2xl lb:font-semibold lb:text-brand-blue-1000",children:a.services.find(e=>e.slug===b)?.label||"Generación IA"}),a.services.find(e=>e.slug===b)?.costInfo&&/* @__PURE__ */s("div",{title:"Coste estimado por imagen que le cuesta a la empresa, este coste depende de la calidad de la imagen generada y puede variar según el proveedor IA, ten en cuenta este coste para hacer un uso más responsable del servicio IA",className:"lb:flex lb:items-center lb:gap-1","aria-description":"Coste estimado por imagen que le cuesta a la empresa, este coste depende de la calidad de la imagen generada y puede variar según el proveedor IA, ten en cuenta este coste para hacer un uso más responsable del servicio IA",children:[
|
|
128
128
|
/* @__PURE__ */s("span",{className:"lb:inline-flex lb:items-center lb:gap-1 lb:px-2 lb:py-0.5 lb:text-xs lb:font-medium lb:text-warning-1000 lb:bg-yellow-200/60 lb:rounded-full lb:border lb:border-warning-1000 lb:select-none",children:[
|
|
129
|
-
/* @__PURE__ */o("span",{className:"icon icon-euro-blue icon--2sm icon--warning",style:{filter:"var(--icon-warning-dark)"}}),"Coste:"," ",a.services.find(e=>e.slug===b)?.costInfo]}),
|
|
129
|
+
/* @__PURE__ */o("span",{className:"icon icon-euro-blue icon--2sm icon--warning",style:{filter:"var(--limbo-icon-warning-dark)"}}),"Coste:"," ",a.services.find(e=>e.slug===b)?.costInfo]}),
|
|
130
130
|
/* @__PURE__ */o("span",{className:"icon icon-info lb:cursor-help"})]})]}),i.loading&&/* @__PURE__ */o("div",{children:"Cargando parámetros..."}),i.error&&/* @__PURE__ */o("div",{className:"alert alert-danger",children:i.error}),b&&(()=>{const e=i.params?.[b]?.parameters;if(!e)return null;const t=Object.entries(e).filter(([e,t])=>!t.hidden),n=t.filter(([e])=>e.toLowerCase().includes("prompt")||e.toLowerCase().includes("query")),l=t.filter(([e])=>!e.toLowerCase().includes("prompt")&&!e.toLowerCase().includes("query")),c=(e,t)=>{let n=t.placeholder||"";n||(n="integer"===t.type?t.minValue&&t.maxValue?`Entre ${t.minValue} y ${t.maxValue}`:t.minValue?`Mínimo ${t.minValue}`:t.maxValue?`Máximo ${t.maxValue}`:"Introduce un número":e.toLowerCase().includes("prompt")?"Describe la imagen que deseas generar...":e.toLowerCase().includes("negative")?"Elementos a evitar en la imagen...":`Introduce ${(t.label||e).toLowerCase()}`);const l=e.toLowerCase().includes("prompt")||e.toLowerCase().includes("query");/* @__PURE__ */
|
|
131
131
|
return s("div",{className:"lb:flex lb:flex-col lb:gap-1",children:[
|
|
132
132
|
/* @__PURE__ */s("label",{htmlFor:`ai-${e}`,className:"lb:text-xs lb:font-medium lb:text-brand-blue-1000",children:[t.label||e,t.required&&/* @__PURE__ */o("span",{className:"lb:text-red-1000 lb:ml-1",children:"*"})]}),t.options?/* @__PURE__ */o("select",{id:`ai-${e}`,name:e,value:h[e]??"",onChange:_,className:"limbo-input",disabled:r,title:t.label||e,children:t.options.map(e=>/* @__PURE__ */o("option",{value:e,children:e},e))}):l?/* @__PURE__ */o("textarea",{id:`ai-${e}`,name:e,value:h[e]??"",onChange:_,className:"limbo-input lb:resize-none lb:overflow-y-auto",disabled:r,required:t.required,placeholder:n,title:t.label||e,rows:3,style:{maxHeight:"9rem",minHeight:"3rem"},onInput:e=>{e.target.style.height="auto";const t=Math.min(e.target.scrollHeight,144);e.target.style.height=`${t}px`}}):/* @__PURE__ */o("input",{id:`ai-${e}`,type:"integer"===t.type?"number":"text",name:e,value:h[e]??"",onChange:_,className:"limbo-input",disabled:r,required:t.required,min:t.minValue,max:t.maxValue,placeholder:n,title:t.label||e})]},e)};/* @__PURE__ */
|
|
@@ -245,7 +245,7 @@ return o("button",{type:"button","data-upload-tab-id":e.id,className:y(t),"aria-
|
|
|
245
245
|
/* @__PURE__ */s("div",{className:"lb:bg-white lb:border-b lb:border-gray-200 lb:py-2 lb:mx-2 lb:shrink-0 lb:sticky lb:top-0 lb:z-10 lb:mb-1",children:[
|
|
246
246
|
/* @__PURE__ */s("div",{className:"lb:flex lb:items-center lb:justify-between lb:mb-2",children:[
|
|
247
247
|
/* @__PURE__ */s("h3",{className:"lb:text-sm lb:font-semibold lb:text-gray-700",children:["Recortes ",Z.length>1&&`(${Z.length})`]}),J.allowCustomCrops&&/* @__PURE__ */s("button",{onClick:Qe,disabled:pe,className:"lb:text-xs lb:cursor-pointer lb:px-2 lb:py-1 lb:bg-brand-blue-50 lb:hover:bg-brand-blue-200 lb:text-brand-blue-1000 lb:rounded lb:border lb:border-brand-blue-200 lb:transition-colors lb:flex lb:items-center lb:gap-1",title:"Añadir recorte personalizado",children:[
|
|
248
|
-
/* @__PURE__ */o("span",{className:"icon icon-add icon--sm",style:{filter:"var(--icon-blue)"}}),"Añadir recorte"]})]}),
|
|
248
|
+
/* @__PURE__ */o("span",{className:"icon icon-add icon--sm",style:{filter:"var(--limbo-icon-blue)"}}),"Añadir recorte"]})]}),
|
|
249
249
|
/* @__PURE__ */o("div",{className:"lb:grid lb:grid-cols-2 lb:md:grid-cols-3 lb:lg:grid-cols-4 lb:xl:grid-cols-5 lb:gap-1.5 lb:max-h-48 lb:overflow-y-auto",children:Z.map((e,t)=>{const n=e.savedState||t===te;/* @__PURE__ */
|
|
250
250
|
return s("label",{className:"lb:h-fit lb:flex lb:flex-col lb:p-1.5 lb:rounded lb:border lb:cursor-pointer lb:transition-colors lb:min-h-17.5 lb:w-full "+(te===t?"lb:bg-blue-50 lb:border-blue-300":n?"lb:bg-gray-50 lb:border-gray-200 lb:hover:bg-gray-100":"lb:bg-orange-50 lb:border-orange-300 lb:hover:bg-orange-100"),children:[
|
|
251
251
|
/* @__PURE__ */o("input",{type:"radio",name:"active-crop",checked:te===t,onChange:()=>Ge(t),disabled:pe,className:"lb:hidden"}),
|