@ynput/ayon-react-components 1.17.0 → 1.17.1
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.
|
@@ -12026,6 +12026,7 @@ const Qwe = (t) => {
|
|
|
12026
12026
|
});
|
|
12027
12027
|
}), d7e = te(Go)`
|
|
12028
12028
|
&.settings-dropdown {
|
|
12029
|
+
margin-bottom: var(--padding-m);
|
|
12029
12030
|
width: 100%;
|
|
12030
12031
|
button {
|
|
12031
12032
|
background-color: unset;
|
|
@@ -12035,7 +12036,7 @@ const Qwe = (t) => {
|
|
|
12035
12036
|
}
|
|
12036
12037
|
.template-value {
|
|
12037
12038
|
border: none;
|
|
12038
|
-
padding: 0 4px;
|
|
12039
|
+
padding: 0 4px 0px 8px;
|
|
12039
12040
|
/* dropdown icon color */
|
|
12040
12041
|
.control {
|
|
12041
12042
|
color: var(--md-sys-color-outline);
|
|
@@ -12097,6 +12098,7 @@ const Qwe = (t) => {
|
|
|
12097
12098
|
}
|
|
12098
12099
|
})), _7e = te(u7e)`
|
|
12099
12100
|
&.settings-sorting-dropdown {
|
|
12101
|
+
margin-bottom: var(--padding-m);
|
|
12100
12102
|
width: 100%;
|
|
12101
12103
|
button {
|
|
12102
12104
|
background-color: unset;
|
|
@@ -12106,7 +12108,7 @@ const Qwe = (t) => {
|
|
|
12106
12108
|
}
|
|
12107
12109
|
.template-value {
|
|
12108
12110
|
border: none;
|
|
12109
|
-
padding: 0 4px;
|
|
12111
|
+
padding: 0 4px 0px 8px;
|
|
12110
12112
|
/* dropdown icon color */
|
|
12111
12113
|
.control {
|
|
12112
12114
|
color: var(--md-sys-color-outline);
|
|
@@ -1027,6 +1027,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1027
1027
|
}
|
|
1028
1028
|
`,Wp=$.forwardRef(({value:t=[],options:o=[],onChange:r,title:n="Sort by",multiSelect:e=!0,renderValueContent:i,sortCardProps:c,pt:l,...d},_)=>{const p=v=>{const x=v==null?void 0:v.map(S=>{var L;const E=t.findIndex(N=>N.id===S);if(E===-1){const N=o.find(P=>P.id===S);if(!N)throw new Error(`SortingDropdown: option with id ${S} not found`);return{id:N.id,label:(L=N==null?void 0:N.label)!=null?L:"",sortOrder:!0}}else return t[E]});r(x!=null?x:[])},h=v=>{const x=t.find(N=>N.id===v),S=t.findIndex(N=>N.id===v);if(!x)throw new Error(`SortingDropdown: value with id ${v} not found`);const E={...x,sortOrder:!x.sortOrder},L=[...t];L.splice(S,1,E),r(L)},g=v=>{const x=t.filter(S=>S.id!==v);r(x)},w=(v,x)=>{var L,N;const S=v.toString(),E=t.find(P=>P.id===S)||o.find(P=>P.id===S);return E?b($p,{...E,...l==null?void 0:l.chip,...c,className:Ae((L=l==null?void 0:l.chip)==null?void 0:L.className),id:E.id,label:E.label,sortOrder:(N=E==null?void 0:E.sortOrder)!=null?N:!0,disabled:x,onSortBy:()=>!x&&!(c!=null&&c.disableSort)&&h(S),onRemove:()=>!x&&g(S),onKeyDown:P=>{if(!x&&(P.stopPropagation(),P.key==="Enter")){if(P.target.id==="remove"){g(S);return}!(c!=null&&c.disableSort)&&!(c!=null&&c.hideSort)&&h(S)}}},S):null};return b(Jy,{...d,ref:_,value:t.map(({id:v})=>v),options:o,onChange:p,dataKey:"id",multiSelect:e,widthExpand:!0,valueTemplate:(v,x,S)=>{const E=x.map(L=>w(L.toString(),S));return b(Mo,{value:[],placeholder:"",isOpen:S,childrenCustom:i?i({isOpen:S,title:n,selected:x,cards:E}):de(Hn,{children:[b("span",{children:n}),E]})})}})}),eb=ee.default(lo)`
|
|
1029
1029
|
&.settings-dropdown {
|
|
1030
|
+
margin-bottom: var(--padding-m);
|
|
1030
1031
|
width: 100%;
|
|
1031
1032
|
button {
|
|
1032
1033
|
background-color: unset;
|
|
@@ -1036,7 +1037,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1036
1037
|
}
|
|
1037
1038
|
.template-value {
|
|
1038
1039
|
border: none;
|
|
1039
|
-
padding: 0 4px;
|
|
1040
|
+
padding: 0 4px 0px 8px;
|
|
1040
1041
|
/* dropdown icon color */
|
|
1041
1042
|
.control {
|
|
1042
1043
|
color: var(--md-sys-color-outline);
|
|
@@ -1066,6 +1067,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1066
1067
|
user-select: none;
|
|
1067
1068
|
`,rb=$.forwardRef(({settings:t=!0,title:o,icon:r,...n},e)=>b(eb,{...n,ref:e,valueClassName:"value",className:Ae("settings-dropdown",{settings:t}),valueTemplate:(i,c,l)=>{var d;return b(Mo,{value:i,isOpen:l,selected:c,className:"test",childrenCustom:de(tb,{children:[r&&b(Xe,{icon:r,className:"dropdown-icon"}),b("span",{className:"dropdown-title",children:o}),b(nb,{children:(d=n.options.find(_=>_.value===i[0]))==null?void 0:d.label})]})})}})),ob=ee.default(Wp)`
|
|
1068
1069
|
&.settings-sorting-dropdown {
|
|
1070
|
+
margin-bottom: var(--padding-m);
|
|
1069
1071
|
width: 100%;
|
|
1070
1072
|
button {
|
|
1071
1073
|
background-color: unset;
|
|
@@ -1075,7 +1077,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1075
1077
|
}
|
|
1076
1078
|
.template-value {
|
|
1077
1079
|
border: none;
|
|
1078
|
-
padding: 0 4px;
|
|
1080
|
+
padding: 0 4px 0px 8px;
|
|
1079
1081
|
/* dropdown icon color */
|
|
1080
1082
|
.control {
|
|
1081
1083
|
color: var(--md-sys-color-outline);
|