theme.keycloak.v2.admin.resources.assets.ClickableCard-ByX6UyJ7.js Maven / Gradle / Ivy
import{_ as g,m as b,X as v,br as h}from"./main-C7ps2lmX.js";import*as C from"react";import{useId as G}from"react";import{jsx as p}from"react/jsx-runtime";const y={gallery:"pf-v5-l-gallery",modifiers:{gutter:"pf-m-gutter"}},x={name:"--pf-v5-l-gallery--GridTemplateColumns--min",value:"250px",var:"var(--pf-v5-l-gallery--GridTemplateColumns--min)"},j={name:"--pf-v5-l-gallery--GridTemplateColumns--max",value:"1fr",var:"var(--pf-v5-l-gallery--GridTemplateColumns--max)"},_=a=>{var{children:s=null,className:r="",component:l="div",hasGutter:i=!1,minWidths:e,maxWidths:n}=a,o=g(a,["children","className","component","hasGutter","minWidths","maxWidths"]);const c={},u=l;e&&Object.entries(e||{}).map(([t,m])=>c[`${x.name}${t!=="default"?`-on-${t}`:""}`]=m);const d={};n&&Object.entries(n||{}).map(([t,m])=>d[`${j.name}${t!=="default"?`-on-${t}`:""}`]=m);const f=Object.assign(Object.assign({},c),d);return C.createElement(u,Object.assign({className:b(y.gallery,i&&y.modifiers.gutter,r)},o,(e||n)&&{style:Object.assign(Object.assign({},f),o.style)}),s)};_.displayName="Gallery";const W=({onClick:a,children:s,...r})=>{const l=G();return p(v,{id:l,isClickable:!0,onKeyDown:e=>{(e.key===" "||e.key==="Enter"||e.key==="Spacebar")&&a()},onClick:a,...r,children:p(h,{selectableActions:{onClickAction:a,selectableActionId:`input-${l}`,selectableActionAriaLabelledby:l},children:s})})};export{W as C,_ as G};
//# sourceMappingURL=ClickableCard-ByX6UyJ7.js.map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy