@ynput/ayon-react-components 1.1.0 → 1.1.2
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.
|
@@ -21797,7 +21797,7 @@ const yxe = be(gxe)`
|
|
|
21797
21797
|
assignees: F,
|
|
21798
21798
|
...V
|
|
21799
21799
|
}, se) => {
|
|
21800
|
-
const ee = d && $xe[d], Q = T === "basic" || T === "thumbnail", W = T === "basic" || T === "thumbnail", te = T === "thumbnail", [z, he] = It(!
|
|
21800
|
+
const ee = d && $xe[d], Q = T === "basic" || T === "thumbnail", W = T === "basic" || T === "thumbnail", te = T === "thumbnail", [z, he] = It(!1), [J, re] = It(!!e), ke = () => {
|
|
21801
21801
|
he(!0), re(!1);
|
|
21802
21802
|
}, Re = () => {
|
|
21803
21803
|
re(!1);
|
|
@@ -21836,12 +21836,12 @@ const yxe = be(gxe)`
|
|
|
21836
21836
|
className: ar("no-image", {
|
|
21837
21837
|
loading: J
|
|
21838
21838
|
})
|
|
21839
|
-
}), !h &&
|
|
21839
|
+
}), !h && /* @__PURE__ */ x(Nxe, {
|
|
21840
21840
|
src: e,
|
|
21841
21841
|
onError: ke,
|
|
21842
21842
|
onLoad: Re,
|
|
21843
21843
|
className: ar({
|
|
21844
|
-
loading: J
|
|
21844
|
+
loading: J || !e || z
|
|
21845
21845
|
})
|
|
21846
21846
|
}), /* @__PURE__ */ ye(Q_, {
|
|
21847
21847
|
className: "row",
|
|
@@ -2266,4 +2266,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2266
2266
|
&.loading {
|
|
2267
2267
|
opacity: 0;
|
|
2268
2268
|
}
|
|
2269
|
-
`,s0={comment:{color:"var(--md-sys-color-primary)",icon:"mark_unread_chat_alt"},due:{color:"var(--md-custom-color-warning)",icon:"schedule"},overdue:{color:"var(--md-sys-color-error-container)",icon:"alarm"}},i0=H.forwardRef(({title:r="",titleIcon:a,subTitle:o,description:t,imageUrl:e,imageAlt:i,icon:c,iconColor:u,notification:d,isActive:_=!1,isSecondary:f=!1,isLoading:h=!1,isError:v=!1,isHover:w=!1,disabled:b=!1,variant:T="full",isDragging:O=!1,isDraggable:I=!1,isFullHighlight:R=!1,isActiveAnimate:A=!1,onThumbnailKeyDown:N,onActivate:Y,assignees:$,...Q},ie)=>{const te=d&&s0[d],G=T==="basic"||T==="thumbnail",W=T==="basic"||T==="thumbnail",ne=T==="thumbnail",[B,ge]=H.useState(!
|
|
2269
|
+
`,s0={comment:{color:"var(--md-sys-color-primary)",icon:"mark_unread_chat_alt"},due:{color:"var(--md-custom-color-warning)",icon:"schedule"},overdue:{color:"var(--md-sys-color-error-container)",icon:"alarm"}},i0=H.forwardRef(({title:r="",titleIcon:a,subTitle:o,description:t,imageUrl:e,imageAlt:i,icon:c,iconColor:u,notification:d,isActive:_=!1,isSecondary:f=!1,isLoading:h=!1,isError:v=!1,isHover:w=!1,disabled:b=!1,variant:T="full",isDragging:O=!1,isDraggable:I=!1,isFullHighlight:R=!1,isActiveAnimate:A=!1,onThumbnailKeyDown:N,onActivate:Y,assignees:$,...Q},ie)=>{const te=d&&s0[d],G=T==="basic"||T==="thumbnail",W=T==="basic"||T==="thumbnail",ne=T==="thumbnail",[B,ge]=H.useState(!1),[ee,oe]=H.useState(!!e),De=()=>{ge(!0),oe(!1)},Le=()=>{oe(!1)};return ke(t0,{...Q,ref:ie,className:Qn({isActive:_,isSecondary:f,isLoading:h,isError:v,disabled:b,isHover:w,isDragging:O,isDraggable:I,isFullHighlight:R,isActiveAnimate:A},"entity-card",Q.className),$variant:T,tabIndex:0,onClick:Te=>{Y&&Y(),Q.onClick&&Q.onClick(Te)},onKeyDown:Te=>{Q.onKeyDown&&Q.onKeyDown(Te),!I&&(Te.code==="Enter"||Te.code==="Space")&&Y&&Y()},children:[ke(n0,{className:"thumbnail",tabIndex:I?0:void 0,onKeyDown:Te=>{!I||(Te.stopPropagation(),N&&N(Te),(Te.code==="Enter"||Te.code==="Space")&&Y&&Y())},children:[!h&&x(a0,{icon:a||"image",className:Qn("no-image",{loading:ee})}),!h&&x(r0,{src:e,onError:De,onLoad:Le,className:Qn({loading:ee||!e||B})}),ke(vf,{className:"row",children:[!ne&&ke(ss,{className:"inner-card title",children:[a&&x(Et,{icon:a}),r&&x("span",{className:"title",children:r})]}),!G&&x(ss,{className:"inner-card status",children:c&&x(Et,{icon:c,style:{color:u}})})]}),ke(vf,{className:"row",children:[!ne&&x(ss,{className:"inner-card subTitle",children:x("span",{children:o})}),te&&!G&&!($!=null&&$.length)&&x(ss,{className:"notification",children:x(Et,{icon:te==null?void 0:te.icon,style:{color:te==null?void 0:te.color}})}),!!($!=null&&$.length)&&x(ss,{className:"inner-card assignees",children:x(pc,{users:$,size:26,gap:-.5})})]})]}),t&&!W&&x(o0,{className:"description",children:x("span",{children:t})})]})});Ue.AssigneeField=fc,Ue.AssigneeSelect=Uv,Ue.Button=Gn,Ue.DefaultValueTemplate=Ua,Ue.Dialog=M_,Ue.Divider=L9,Ue.Dropdown=ra,Ue.EntityCard=i0,Ue.FileCard=b_,Ue.FileUpload=v1,Ue.FormLayout=F9,Ue.FormRow=W9,Ue.Icon=Et,Ue.IconSelect=Gv,Ue.InputColor=F1,Ue.InputDate=A9,Ue.InputNumber=Ks,Ue.InputPassword=P_,Ue.InputSwitch=E_,Ue.InputText=qa,Ue.InputTextarea=w_,Ue.LockedInput=q1,Ue.OverflowField=hf,Ue.Panel=X9,Ue.SaveButton=g_,Ue.ScrollPanel=J9,Ue.Section=B9,Ue.SortingDropdown=r1,Ue.Spacer=Gc,Ue.TablePanel=e0,Ue.TableRow=V9,Ue.TagsSelect=Vv,Ue.Toolbar=G9,Ue.UserImage=_c,Ue.UserImagesStacked=pc,Ue.VersionSelect=Zv,Ue.getShimmerStyles=js,Ue.theme=og,Object.defineProperties(Ue,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|