@ynput/ayon-react-components 1.4.3 → 1.4.4

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.
@@ -10978,6 +10978,7 @@ const ks = ct(({
10978
10978
  O(r);
10979
10979
  }, [r]), /* @__PURE__ */ x(fbe, {
10980
10980
  ...v,
10981
+ error: null,
10981
10982
  value: T,
10982
10983
  valueTemplate: (P, L, N) => /* @__PURE__ */ x(mbe, {
10983
10984
  value: (N ? L : P) || [],
@@ -668,7 +668,7 @@ function print() { __p += __j.call(arguments, '') }
668
668
  display: none;
669
669
  }
670
670
  `}
671
- `,Kv=r=>{const{value:a,tags:o={},editor:t=!1}=r;return a!=null&&a.length||a==null||a.push("Add tags"),x(jv,{...r,hasError:void 0,valueStyle:{gap:4,display:"flex"},editor:t,children:a==null?void 0:a.map(e=>{var i;return x(Bv,{style:{color:(i=o[e])==null?void 0:i.color},children:e},e)})})},Vv=W.forwardRef(({value:r=[],onChange:a,widthExpand:o=!0,disabled:t,tags:e,tagsOrder:i,editor:c,align:u,styleDropdown:d,width:_=300,valueProps:f,isMultiple:h,...v},w)=>{const b=W.useMemo(()=>{if(!i)return Object.values(e);const P=[],L=[];for(const A of i)!e[A]||L.includes(A)||(P.push(e[A]),L.push(A));return P},[e,i]),[T,O]=W.useState([]);return W.useEffect(()=>{O(r)},[r]),x(Hv,{...v,value:T,valueTemplate:(P,L,A)=>x(Kv,{value:(A?L:P)||[],...f,tags:e,editor:c,isMultiple:h}),itemTemplate:(P,L,A,R)=>ye(Qc,{className:tn("option-child",{selected:A}),style:{color:P.color,justifyContent:R?"center":void 0},children:[P.icon&&x(Tt,{icon:P.icon}),x("span",{children:P.name||P.label})]}),options:b||[],dataKey:"name",disabled:t,onChange:P=>a&&a(P.map(L=>L.toString()).filter(L=>L&&L!=="Add tags")),widthExpand:o,multiSelect:!0,search:!0,searchFields:["name","fullName"],ref:w,editable:!0,align:u,style:d,width:_,sortBySelected:!0})}),Qv=be.default.div`
671
+ `,Kv=r=>{const{value:a,tags:o={},editor:t=!1}=r;return a!=null&&a.length||a==null||a.push("Add tags"),x(jv,{...r,hasError:void 0,valueStyle:{gap:4,display:"flex"},editor:t,children:a==null?void 0:a.map(e=>{var i;return x(Bv,{style:{color:(i=o[e])==null?void 0:i.color},children:e},e)})})},Vv=W.forwardRef(({value:r=[],onChange:a,widthExpand:o=!0,disabled:t,tags:e,tagsOrder:i,editor:c,align:u,styleDropdown:d,width:_=300,valueProps:f,isMultiple:h,...v},w)=>{const b=W.useMemo(()=>{if(!i)return Object.values(e);const P=[],L=[];for(const A of i)!e[A]||L.includes(A)||(P.push(e[A]),L.push(A));return P},[e,i]),[T,O]=W.useState([]);return W.useEffect(()=>{O(r)},[r]),x(Hv,{...v,error:null,value:T,valueTemplate:(P,L,A)=>x(Kv,{value:(A?L:P)||[],...f,tags:e,editor:c,isMultiple:h}),itemTemplate:(P,L,A,R)=>ye(Qc,{className:tn("option-child",{selected:A}),style:{color:P.color,justifyContent:R?"center":void 0},children:[P.icon&&x(Tt,{icon:P.icon}),x("span",{children:P.name||P.label})]}),options:b||[],dataKey:"name",disabled:t,onChange:P=>a&&a(P.map(L=>L.toString()).filter(L=>L&&L!=="Add tags")),widthExpand:o,multiSelect:!0,search:!0,searchFields:["name","fullName"],ref:w,editable:!0,align:u,style:d,width:_,sortBySelected:!0})}),Qv=be.default.div`
672
672
  display: flex;
673
673
  align-items: center;
674
674
  /* justify-content: center; */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ynput/ayon-react-components",
3
3
  "private": false,
4
- "version": "1.4.3",
4
+ "version": "1.4.4",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",