@dexma/ui-components 8.0.14 → 8.0.15

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.
@@ -66634,7 +66634,7 @@ const Vwe = At.div`
66634
66634
  maxTagPlaceholder: (H) => {
66635
66635
  const F = d && H.length > d ? ` ${i == null ? void 0 : i.overflow}` : "", z = `${H.slice(0, d).map((Z) => {
66636
66636
  var B, ee;
66637
- return ` ${(ee = (B = Z == null ? void 0 : Z.label) == null ? void 0 : B.props) == null ? void 0 : ee.value}`;
66637
+ return ` ${(ee = (B = Z == null ? void 0 : Z.label) == null ? void 0 : B.props) == null ? void 0 : ee.children}`;
66638
66638
  })}${F}`;
66639
66639
  return /* @__PURE__ */ Se(Qg, { title: z, children: `+${H.length}` });
66640
66640
  },
@@ -4926,7 +4926,7 @@ Valid keys: `+JSON.stringify(Object.keys(H),null," "));var K=ee(W,ne,Z,te,q+"."
4926
4926
  }
4927
4927
  `,M4e=Bi`
4928
4928
  ${e=>E4e(e.$theme)};
4929
- `,_4e=e=>new RegExp(e,"ig"),CR=e=>new RegExp(`${e}`,"ig"),L4e=(e,t)=>new RegExp(`${e}.*?${t}`,"ig"),LC=e=>{try{if(e.includes("*")){const t=e.split("*"),n=t[0],r=t[1];if(n!==""&&n!==void 0&&r==="")return CR(n);if(n===""&&r!==""&&r!==void 0)return CR(r);if(n!==""&&r!==""&&n!==void 0&&r!==void 0)return L4e(n,r)}return _4e(e)}catch{return!1}},Ws=(e,t)=>{if([...t].every(n=>n==="*"||n===" "))return e;if(![...t].every(n=>n==="*"||n===" ")){const n=LC(t);return n===!1?[]:e.filter(r=>r.label.match(n))}return t!==""&&!t.includes("*")?e.filter(n=>n.label.toLowerCase().includes(t.toLowerCase())):e},P4e=(e,t)=>{const n=t.exec(e);return n!==null?{start:n.index,end:t.lastIndex-1}:{start:-1,end:-1}},T4e=(e,t)=>{if([...e].every(n=>n==="*"||n===" "))return!0;if(![...e].every(n=>n==="*"||n===" ")){if(t!=null&&t.children&&t.children.props.value){const n=LC(e);return n===!1?!1:t.children.props.value.match(n)}return!1}return e!==""&&!e.includes("*")&&t!=null&&t.children&&t.children.props.value?t.children.props.value.toLowerCase().includes(e.toLowerCase()):!1},R4e=(e,t,n,r,a,i)=>{const o=`${e.select}`,l=n<=i?` ${1+(t-1)*n} - ${n*t>r.length?r.length:n*t}`:` ${e.all}`,s=`${a!==""?` "${a}"`:n<=i?` ${e.connector} ${e.content}`:""} (${i})`;return me.jsxs("span",{"data-testid":"text-pagination-selector",children:[o,me.jsx("strong",{children:l}),s]})},O4e=(e,t,n)=>e===void 0?1:Math.ceil(t!==""?Ws(n,t).length/e:n.length/e),k4e=({handleSelectAll:e,pageSize:t,currentPage:n,options:r,onPageChange:a,text:i,theme:o,searchValue:l})=>{const s=z.useRef(null),[c,d]=z.useState(t!==void 0&&t<r.length),u=O4e(t,l,r),[p,h]=z.useState(r.length>0),[b,m]=z.useState(n===1),[g,C]=z.useState(n===u),y=()=>{const E=n-1;E<=u&&E>=1&&a(E)},x=()=>{const E=n+1;E<=u&&E>=1&&a(E)};z.useEffect(()=>{m(n===1),C(n===u)},[n,u]),z.useEffect(()=>{t!==void 0&&(l!==""&&Ws(r,l).length>t||l===""&&t!==void 0&&t<r.length?d(!0):d(!1))},[t,r,l]),z.useEffect(()=>{l!==""&&Ws(r,l).length>0||l===""&&r.length>0?h(!0):h(!1)},[r,l]),z.useEffect(()=>{m(!0),C(!1)},[l]);const $=l!==""?Ws(r,l).length:r.length,w=l!==""?Ws(r,l):r;return me.jsxs(x4e,{children:[c&&me.jsx(bR,{"data-testid":"button-prev",xs:1,$disabled:b,onClick:y,theme:o,children:me.jsx(yR,{name:"chevron_left_l",color:b?"gray300":"gray900",size:12,ariaLabel:"Previous page"})}),p&&me.jsx(Cd,{children:me.jsx(w4e,{variant:"outline","data-testid":"button-select-all",onClick:()=>{e(),s!==null&&s.current!==null&&s.current.blur()},theme:o,ref:E=>{s.current=E},text:"",children:R4e(i,n,t,w,l,$)})}),c&&me.jsx(bR,{"data-testid":"button-next",xs:1,$disabled:g,onClick:x,theme:o,children:me.jsx(yR,{name:"chevron_right_l",color:g?"gray300":"gray900",size:12,ariaLabel:"Next page"})})]})},PC="*",N4e="Enter",xR=(e,t,n,r,a)=>{const{value:i,closable:o,onClose:l}=e,s=u=>{u.preventDefault(),u.stopPropagation()},c=t.filter(u=>u.value===i)[0],d=c.label.length>n-3?`${c.label.slice(0,n-3)}...`:c.label;return me.jsx(j1,{title:c.label,children:me.jsxs(_C,{className:"tag-select-option-selected",color:t.filter(u=>u.value===i)[0].color,onMouseDown:s,style:{marginRight:4},"data-testid":`tag-option-selected-${i}`,theme:r,children:[d,o&&me.jsx(Pn,{className:"icon-close",name:"close",size:"small",onClick:l,color:Mn.white,ariaLabel:a})]})})},wR=(e,t,n,r,a,i,o,l,s,c)=>me.jsxs(S4e,{"data-testid":"select-dropdown",children:[e,c!==void 0&&["multiple","tags"].includes(l)&&me.jsx(k4e,{pageSize:c,currentPage:t,handleSelectAll:a,onPageChange:r,options:n,text:i,theme:s,searchValue:o})]}),SR=(e,t,n)=>{if(t!==""&&(![...t].every(r=>r==="*"||r===" ")||!t.includes(PC))){const r=LC(t);if(r===!1)return me.jsx(W0,{"data-testid":`option-span-${e.value}`,"data-id":`${n}.option-span-${e.value}`,value:e,children:e});const a=P4e(e,r);if(a.start!==-1&&a.end!==-1)return me.jsx(W0,{"data-testid":`option-span-${e}-bold`,"data-id":`${n}.option-span-${e.value}-bold`,value:e,children:[...e].map((i,o)=>(t.includes(PC)?o===a.start||o===a.end:o>=a.start&&o<=a.end)?me.jsx("b",{children:i},i):i)})}return me.jsx(W0,{"data-testid":`option-span-${e}`,value:e,children:e})},I4e=(e,t,n)=>n!==void 0?t.length>=n&&!t.includes(e.value):e.disabled,$R=(e,t,n,r)=>me.jsx(me.Fragment,{children:e.map(a=>me.jsx(Ia.Option,{id:a.value,className:"option-select",disabled:a.disabled,value:a.value,theme:n,selected:t===a.value,"data-testid":`select-option-${a.value}`,"data-id":`${r}.select-option-${a.value}`,"aria-label":a.label,children:t===a.value?me.jsx(_C,{theme:n,$isSingleSelect:!0,children:a.label}):me.jsx(W0,{"data-testid":`option-span-${a.value}`,"data-id":`${r}.option-span-${a.value}`,value:a.label,children:a.label})},a.value))}),ER=(e,t,n,r,a,i,o)=>{const l=(i-1)*(o??e.length),s=l+(o??e.length);let c=n===""?e:Ws(e,n);return c=c.slice(l,s),me.jsx(me.Fragment,{children:c.map(d=>{const u=t.includes(d.value)?d.color?Sc.get(r.color,d.color):Mn.gray400:Mn.white;return me.jsx(Ia.Option,{id:d.value,className:"option-select",disabled:I4e(d,t,o),value:d.value,theme:r,color:d.color,style:{backgroundColor:u},selected:t.includes(d.value),"data-testid":`select-option-${d.value}`,"data-id":`${a}.select-option-${d.value}`,"aria-label":d.label,children:t.includes(d.value)?me.jsx(_C,{theme:r,color:d.color,children:d.label}):SR(d.label,n,a)},d.value)})})},TC=aa(({dataId:e="select",defaultValues:t=[],mode:n,options:r=[],pageSize:a,text:i={select:"Select",all:"all",connector:"of",content:'"All items"',overflow:"and more..."},placeholder:o="Select",isLoading:l,onChange:s,maxTagLength:c=20,overflowLength:d=5,handleButtonSelectAll:u,handleClearAll:p,allowClear:h,disabled:b,showOptionsAriaLabel:m,hideOptionsAriaLabel:g,clearAllOptionsAriaLabel:C,deleteOptionSelectedAriaLabel:y,...x})=>{const[$,w]=z.useState(!1),[E,M]=z.useState([]),[_,L]=z.useState(1),[O,I]=z.useState(""),R=z.useRef(null),N=z.useRef(""),P=z.useContext(pn)||Cn,D=r||[];z.useEffect(()=>{L(1)},[O]),z.useEffect(()=>{t&&M(t)},[t]);const A=H=>L(H),k=()=>{const H=_,F=O!==""?Ws(D,O):D,B=(H-1)*(a??1),Y=B+(a??1),te=F.slice(B,Y).map(q=>q.value);M(()=>te),u&&u(te)},T=()=>{L(1),N.current="",I(""),R!==null&&R.current!==null&&R.current.blur(),w(!1)},j=()=>{p&&p(),L(1),N.current="",I(""),M([]),R!==null&&R.current!==null&&R.current.blur(),w(!1)};return me.jsxs(me.Fragment,{children:[me.jsx(M4e,{$theme:P}),n===void 0||n==="single"?me.jsx(Ia,{className:x.className,"data-testid":"select",autoClearSearchValue:!0,"data-id":e,defaultValue:t,filterOption:(H,F)=>{const B=D.find(Y=>Y.value===F.value);return B&&(B!=null&&B.label)?B.label.toLowerCase().includes(H.toLowerCase()):!1},loading:l,placeholder:o,open:$,ref:H=>{R.current=H},searchValue:N.current,showSearch:!0,style:{width:"100%"},suffixIcon:me.jsxs(me.Fragment,{children:[h&&(O!==""||E.length>0)&&me.jsx(Pn,{className:"selectable-icon",color:"gray",name:"close",size:"small",onClick:()=>{j()},ariaLabel:C||""}),me.jsx(Pn,{className:"selectable-icon",color:"gray",name:$?"chevron_up":"chevron_down",size:"small",onClick:H=>{$?(T(),H.stopPropagation()):w(!0)},ariaLabel:$?g:m})]}),value:E,onSelect:(H,F)=>{s!==void 0&&s(H,F),M([H]),T()},onDropdownVisibleChange:H=>{H!==$&&w(H)},onFocus:()=>{w(!0)},onSearch:H=>(I(H),N.current=H,H),disabled:b,"aria-disabled":b,"aria-expanded":$,...x,children:$R(D,E.length>0?E[0]:void 0,P,e)}):me.jsx(Ia,{autoClearSearchValue:!1,"data-id":e,"data-testid":"select",defaultValue:t,dropdownRender:i?H=>wR(H,_,D,A,k,i,O,n,P,a):void 0,optionFilterProp:"children",filterOption:T4e,maxTagCount:"responsive",maxTagPlaceholder:H=>{const F=d&&H.length>d?` ${i==null?void 0:i.overflow}`:"",B=`${H.slice(0,d).map(Y=>{var Z,te;return` ${(te=(Z=Y==null?void 0:Y.label)==null?void 0:Z.props)==null?void 0:te.value}`})}${F}`;return me.jsx(j1,{title:B,children:`+${H.length}`})},menuItemSelectedIcon:me.jsx(Pn,{color:"white",name:"close",size:"small",ariaLabel:y||""}),mode:n,open:$,placeholder:o,searchValue:N.current,style:{width:"100%"},showSearch:!0,suffixIcon:me.jsxs(me.Fragment,{children:[h&&(O!==""||E.length>0)&&me.jsx(Pn,{className:"selectable-icon",color:"gray",name:"close",size:"small",onClick:()=>{j()},ariaLabel:C||""}),me.jsx(Pn,{className:"selectable-icon",color:"gray",name:$?"chevron_up":"chevron_down",size:"small",onClick:H=>{$?(T(),H.stopPropagation()):w(!0)},ariaLabel:$?g:m})]}),ref:H=>{R!==null&&H!==null&&(R.current=H)},onDropdownVisibleChange:H=>{H!==$&&(w(H),H||(L(1),I(""),N.current=""))},tagRender:c?H=>xR(H,D,c,P,y||""):void 0,value:E,dropdownAlign:{offset:[0,3]},onChange:(H,F)=>{s!==void 0&&s(H,F),M(H)},onFocus:()=>{w(!0)},onSearch:H=>(I(H),N.current=H,H),onInputKeyDown:H=>{["multiple","tags"].includes(n)&&H.key===N4e&&N.current.includes(PC)&&(k(),H.stopPropagation())},disabled:b,"aria-disabled":b,"aria-expanded":$,...x,children:ER(D,E,O,P,e,_,a)})]})},"select");TC.defaultProps={defaultValues:[]};const{RangePicker:H4e}=Ns,MR=e=>{var t,n;return Dt`
4929
+ `,_4e=e=>new RegExp(e,"ig"),CR=e=>new RegExp(`${e}`,"ig"),L4e=(e,t)=>new RegExp(`${e}.*?${t}`,"ig"),LC=e=>{try{if(e.includes("*")){const t=e.split("*"),n=t[0],r=t[1];if(n!==""&&n!==void 0&&r==="")return CR(n);if(n===""&&r!==""&&r!==void 0)return CR(r);if(n!==""&&r!==""&&n!==void 0&&r!==void 0)return L4e(n,r)}return _4e(e)}catch{return!1}},Ws=(e,t)=>{if([...t].every(n=>n==="*"||n===" "))return e;if(![...t].every(n=>n==="*"||n===" ")){const n=LC(t);return n===!1?[]:e.filter(r=>r.label.match(n))}return t!==""&&!t.includes("*")?e.filter(n=>n.label.toLowerCase().includes(t.toLowerCase())):e},P4e=(e,t)=>{const n=t.exec(e);return n!==null?{start:n.index,end:t.lastIndex-1}:{start:-1,end:-1}},T4e=(e,t)=>{if([...e].every(n=>n==="*"||n===" "))return!0;if(![...e].every(n=>n==="*"||n===" ")){if(t!=null&&t.children&&t.children.props.value){const n=LC(e);return n===!1?!1:t.children.props.value.match(n)}return!1}return e!==""&&!e.includes("*")&&t!=null&&t.children&&t.children.props.value?t.children.props.value.toLowerCase().includes(e.toLowerCase()):!1},R4e=(e,t,n,r,a,i)=>{const o=`${e.select}`,l=n<=i?` ${1+(t-1)*n} - ${n*t>r.length?r.length:n*t}`:` ${e.all}`,s=`${a!==""?` "${a}"`:n<=i?` ${e.connector} ${e.content}`:""} (${i})`;return me.jsxs("span",{"data-testid":"text-pagination-selector",children:[o,me.jsx("strong",{children:l}),s]})},O4e=(e,t,n)=>e===void 0?1:Math.ceil(t!==""?Ws(n,t).length/e:n.length/e),k4e=({handleSelectAll:e,pageSize:t,currentPage:n,options:r,onPageChange:a,text:i,theme:o,searchValue:l})=>{const s=z.useRef(null),[c,d]=z.useState(t!==void 0&&t<r.length),u=O4e(t,l,r),[p,h]=z.useState(r.length>0),[b,m]=z.useState(n===1),[g,C]=z.useState(n===u),y=()=>{const E=n-1;E<=u&&E>=1&&a(E)},x=()=>{const E=n+1;E<=u&&E>=1&&a(E)};z.useEffect(()=>{m(n===1),C(n===u)},[n,u]),z.useEffect(()=>{t!==void 0&&(l!==""&&Ws(r,l).length>t||l===""&&t!==void 0&&t<r.length?d(!0):d(!1))},[t,r,l]),z.useEffect(()=>{l!==""&&Ws(r,l).length>0||l===""&&r.length>0?h(!0):h(!1)},[r,l]),z.useEffect(()=>{m(!0),C(!1)},[l]);const $=l!==""?Ws(r,l).length:r.length,w=l!==""?Ws(r,l):r;return me.jsxs(x4e,{children:[c&&me.jsx(bR,{"data-testid":"button-prev",xs:1,$disabled:b,onClick:y,theme:o,children:me.jsx(yR,{name:"chevron_left_l",color:b?"gray300":"gray900",size:12,ariaLabel:"Previous page"})}),p&&me.jsx(Cd,{children:me.jsx(w4e,{variant:"outline","data-testid":"button-select-all",onClick:()=>{e(),s!==null&&s.current!==null&&s.current.blur()},theme:o,ref:E=>{s.current=E},text:"",children:R4e(i,n,t,w,l,$)})}),c&&me.jsx(bR,{"data-testid":"button-next",xs:1,$disabled:g,onClick:x,theme:o,children:me.jsx(yR,{name:"chevron_right_l",color:g?"gray300":"gray900",size:12,ariaLabel:"Next page"})})]})},PC="*",N4e="Enter",xR=(e,t,n,r,a)=>{const{value:i,closable:o,onClose:l}=e,s=u=>{u.preventDefault(),u.stopPropagation()},c=t.filter(u=>u.value===i)[0],d=c.label.length>n-3?`${c.label.slice(0,n-3)}...`:c.label;return me.jsx(j1,{title:c.label,children:me.jsxs(_C,{className:"tag-select-option-selected",color:t.filter(u=>u.value===i)[0].color,onMouseDown:s,style:{marginRight:4},"data-testid":`tag-option-selected-${i}`,theme:r,children:[d,o&&me.jsx(Pn,{className:"icon-close",name:"close",size:"small",onClick:l,color:Mn.white,ariaLabel:a})]})})},wR=(e,t,n,r,a,i,o,l,s,c)=>me.jsxs(S4e,{"data-testid":"select-dropdown",children:[e,c!==void 0&&["multiple","tags"].includes(l)&&me.jsx(k4e,{pageSize:c,currentPage:t,handleSelectAll:a,onPageChange:r,options:n,text:i,theme:s,searchValue:o})]}),SR=(e,t,n)=>{if(t!==""&&(![...t].every(r=>r==="*"||r===" ")||!t.includes(PC))){const r=LC(t);if(r===!1)return me.jsx(W0,{"data-testid":`option-span-${e.value}`,"data-id":`${n}.option-span-${e.value}`,value:e,children:e});const a=P4e(e,r);if(a.start!==-1&&a.end!==-1)return me.jsx(W0,{"data-testid":`option-span-${e}-bold`,"data-id":`${n}.option-span-${e.value}-bold`,value:e,children:[...e].map((i,o)=>(t.includes(PC)?o===a.start||o===a.end:o>=a.start&&o<=a.end)?me.jsx("b",{children:i},i):i)})}return me.jsx(W0,{"data-testid":`option-span-${e}`,value:e,children:e})},I4e=(e,t,n)=>n!==void 0?t.length>=n&&!t.includes(e.value):e.disabled,$R=(e,t,n,r)=>me.jsx(me.Fragment,{children:e.map(a=>me.jsx(Ia.Option,{id:a.value,className:"option-select",disabled:a.disabled,value:a.value,theme:n,selected:t===a.value,"data-testid":`select-option-${a.value}`,"data-id":`${r}.select-option-${a.value}`,"aria-label":a.label,children:t===a.value?me.jsx(_C,{theme:n,$isSingleSelect:!0,children:a.label}):me.jsx(W0,{"data-testid":`option-span-${a.value}`,"data-id":`${r}.option-span-${a.value}`,value:a.label,children:a.label})},a.value))}),ER=(e,t,n,r,a,i,o)=>{const l=(i-1)*(o??e.length),s=l+(o??e.length);let c=n===""?e:Ws(e,n);return c=c.slice(l,s),me.jsx(me.Fragment,{children:c.map(d=>{const u=t.includes(d.value)?d.color?Sc.get(r.color,d.color):Mn.gray400:Mn.white;return me.jsx(Ia.Option,{id:d.value,className:"option-select",disabled:I4e(d,t,o),value:d.value,theme:r,color:d.color,style:{backgroundColor:u},selected:t.includes(d.value),"data-testid":`select-option-${d.value}`,"data-id":`${a}.select-option-${d.value}`,"aria-label":d.label,children:t.includes(d.value)?me.jsx(_C,{theme:r,color:d.color,children:d.label}):SR(d.label,n,a)},d.value)})})},TC=aa(({dataId:e="select",defaultValues:t=[],mode:n,options:r=[],pageSize:a,text:i={select:"Select",all:"all",connector:"of",content:'"All items"',overflow:"and more..."},placeholder:o="Select",isLoading:l,onChange:s,maxTagLength:c=20,overflowLength:d=5,handleButtonSelectAll:u,handleClearAll:p,allowClear:h,disabled:b,showOptionsAriaLabel:m,hideOptionsAriaLabel:g,clearAllOptionsAriaLabel:C,deleteOptionSelectedAriaLabel:y,...x})=>{const[$,w]=z.useState(!1),[E,M]=z.useState([]),[_,L]=z.useState(1),[O,I]=z.useState(""),R=z.useRef(null),N=z.useRef(""),P=z.useContext(pn)||Cn,D=r||[];z.useEffect(()=>{L(1)},[O]),z.useEffect(()=>{t&&M(t)},[t]);const A=H=>L(H),k=()=>{const H=_,F=O!==""?Ws(D,O):D,B=(H-1)*(a??1),Y=B+(a??1),te=F.slice(B,Y).map(q=>q.value);M(()=>te),u&&u(te)},T=()=>{L(1),N.current="",I(""),R!==null&&R.current!==null&&R.current.blur(),w(!1)},j=()=>{p&&p(),L(1),N.current="",I(""),M([]),R!==null&&R.current!==null&&R.current.blur(),w(!1)};return me.jsxs(me.Fragment,{children:[me.jsx(M4e,{$theme:P}),n===void 0||n==="single"?me.jsx(Ia,{className:x.className,"data-testid":"select",autoClearSearchValue:!0,"data-id":e,defaultValue:t,filterOption:(H,F)=>{const B=D.find(Y=>Y.value===F.value);return B&&(B!=null&&B.label)?B.label.toLowerCase().includes(H.toLowerCase()):!1},loading:l,placeholder:o,open:$,ref:H=>{R.current=H},searchValue:N.current,showSearch:!0,style:{width:"100%"},suffixIcon:me.jsxs(me.Fragment,{children:[h&&(O!==""||E.length>0)&&me.jsx(Pn,{className:"selectable-icon",color:"gray",name:"close",size:"small",onClick:()=>{j()},ariaLabel:C||""}),me.jsx(Pn,{className:"selectable-icon",color:"gray",name:$?"chevron_up":"chevron_down",size:"small",onClick:H=>{$?(T(),H.stopPropagation()):w(!0)},ariaLabel:$?g:m})]}),value:E,onSelect:(H,F)=>{s!==void 0&&s(H,F),M([H]),T()},onDropdownVisibleChange:H=>{H!==$&&w(H)},onFocus:()=>{w(!0)},onSearch:H=>(I(H),N.current=H,H),disabled:b,"aria-disabled":b,"aria-expanded":$,...x,children:$R(D,E.length>0?E[0]:void 0,P,e)}):me.jsx(Ia,{autoClearSearchValue:!1,"data-id":e,"data-testid":"select",defaultValue:t,dropdownRender:i?H=>wR(H,_,D,A,k,i,O,n,P,a):void 0,optionFilterProp:"children",filterOption:T4e,maxTagCount:"responsive",maxTagPlaceholder:H=>{const F=d&&H.length>d?` ${i==null?void 0:i.overflow}`:"",B=`${H.slice(0,d).map(Y=>{var Z,te;return` ${(te=(Z=Y==null?void 0:Y.label)==null?void 0:Z.props)==null?void 0:te.children}`})}${F}`;return me.jsx(j1,{title:B,children:`+${H.length}`})},menuItemSelectedIcon:me.jsx(Pn,{color:"white",name:"close",size:"small",ariaLabel:y||""}),mode:n,open:$,placeholder:o,searchValue:N.current,style:{width:"100%"},showSearch:!0,suffixIcon:me.jsxs(me.Fragment,{children:[h&&(O!==""||E.length>0)&&me.jsx(Pn,{className:"selectable-icon",color:"gray",name:"close",size:"small",onClick:()=>{j()},ariaLabel:C||""}),me.jsx(Pn,{className:"selectable-icon",color:"gray",name:$?"chevron_up":"chevron_down",size:"small",onClick:H=>{$?(T(),H.stopPropagation()):w(!0)},ariaLabel:$?g:m})]}),ref:H=>{R!==null&&H!==null&&(R.current=H)},onDropdownVisibleChange:H=>{H!==$&&(w(H),H||(L(1),I(""),N.current=""))},tagRender:c?H=>xR(H,D,c,P,y||""):void 0,value:E,dropdownAlign:{offset:[0,3]},onChange:(H,F)=>{s!==void 0&&s(H,F),M(H)},onFocus:()=>{w(!0)},onSearch:H=>(I(H),N.current=H,H),onInputKeyDown:H=>{["multiple","tags"].includes(n)&&H.key===N4e&&N.current.includes(PC)&&(k(),H.stopPropagation())},disabled:b,"aria-disabled":b,"aria-expanded":$,...x,children:ER(D,E,O,P,e,_,a)})]})},"select");TC.defaultProps={defaultValues:[]};const{RangePicker:H4e}=Ns,MR=e=>{var t,n;return Dt`
4930
4930
  &:hover,
4931
4931
  &:focus {
4932
4932
  border-color: ${jt(e.theme)};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dexma/ui-components",
3
- "version": "8.0.14",
3
+ "version": "8.0.15",
4
4
  "description": "DEXMA UI Components (React)",
5
5
  "main": "./dist/ui-components.umd.js",
6
6
  "module": "./dist/ui-components.es.js",