All Downloads are FREE. Search and download functionalities are using the official Maven repository.

theme.keycloak.v2.admin.resources.assets.KeySelect-jKxsKqdI.js Maven / Gradle / Ivy

There is a newer version: 26.0.7
Show newest version
import{_ as p,m as h,a as f,a$ as v,bu as L,bv as u,b5 as N,U as d,am as b}from"./main-C7ps2lmX.js";import*as g from"react";import{useState as y}from"react";import{jsxs as A,jsx as i}from"react/jsx-runtime";import{u as C}from"./useToggle-K3Kx99tM.js";const r={actionList:"pf-v5-c-action-list",actionListGroup:"pf-v5-c-action-list__group",modifiers:{icons:"pf-m-icons"}},I=s=>{var{children:t,isIconList:a,className:o=""}=s,c=p(s,["children","isIconList","className"]);return g.createElement("div",Object.assign({className:h(r.actionList,a&&r.modifiers.icons,o)},c),t)};I.displayName="ActionList";const _=s=>{var{children:t,className:a=""}=s,o=p(s,["children","className"]);return g.createElement("div",Object.assign({className:h(`${r.actionList}__item`,a)},o),t)};_.displayName="ActionListItem";const S=({selectItems:s,...t})=>{const{t:a}=f(),[o,c]=C(),{field:n}=v(t),[l,m]=y(!s.map(({key:e})=>e).includes(n.value));return A(L,{children:[i(u,{lg:l?2:12,children:i(N,{onToggle:()=>c(),isOpen:o,onSelect:e=>{e&&m(!1),n.onChange(e),c()},selections:l?"":[n.value],children:[i(d,{onClick:()=>m(!0),children:a("customAttribute")},"custom"),...s.map(e=>i(d,{value:e.key,children:e.label},e.key))]})}),l&&i(u,{lg:10,children:i(b,{id:"customValue","data-testid":t.name,placeholder:a("keyPlaceholder"),value:n.value,onChange:n.onChange,autoFocus:!0})})]})};export{I as A,S as K,_ as a};
//# sourceMappingURL=KeySelect-jKxsKqdI.js.map




© 2015 - 2025 Weber Informatics LLC | Privacy Policy