@theroutingcompany/components 0.0.117-alpha.2 → 0.0.117-alpha.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.
|
@@ -1662,7 +1662,7 @@ Valid keys: `+JSON.stringify(Object.keys(N),null," "));var le=_e(ae,se,H,X,Z+".
|
|
|
1662
1662
|
width: 18px;
|
|
1663
1663
|
height: 18px;
|
|
1664
1664
|
margin-left: 8px;
|
|
1665
|
-
`;function R$(e){const t=S.useRef(null),{listBoxRef:n=t,state:r}=e,{listBoxProps:o}=uy({...e,disallowEmptySelection:!0},r,n);return E(bd,{...o,ref:n,children:[...r.collection].map(a=>E(oA,{item:a,state:r},a.key))})}function rA(e){const t=S.useRef(null),{listBoxRef:n=t,state:r}=e,{listBoxProps:o}=uy({...e,disallowEmptySelection:!0},r,n);return E(bd,{...o,ref:n,children:[...r.collection].map(a=>E(aA,{item:a,state:r,isSelectableAll:!0},a.key))})}const $d=S.createContext(null);$d.displayName="OptionContext";function oA({item:e,state:t}){const n=S.useRef(null),{optionProps:r,labelProps:o,descriptionProps:a,isSelected:i,isFocused:l,isDisabled:s}=dy({key:e.key},t,n);return E(Dl,{...r,ref:n,isFocused:l,isSelected:i,isDisabled:s,children:E(vd,{children:Q($d.Provider,{value:{labelProps:o,descriptionProps:a},children:[E(tt,{as:"span",children:e.rendered}),E(yd,{children:i?E(De.Check,{"aria-hidden":"true",style:{width:18,height:18}}):null})]})})})}function aA({item:e,state:t}){var l;const n=S.useRef(null),r=dy({key:e.key},t,n),o=((l=e==null?void 0:e.value)==null?void 0:l.name)||"",a=e["aria-label"],i=a||o||"";return Q(Dl,{...r.optionProps,ref:n,isFocused:r.isFocused,isSelected:r.isSelected,"aria-label":i,children:[E(rd,{isDisabled:r.isDisabled,isSelected:r.isSelected,"aria-label":i}),E(vd,{children:Q($d.Provider,{value:{labelProps:r.labelProps,descriptionProps:r.labelProps},children:[E(tt,{as:"span",children:e.rendered}),E(yd,{children:r.isSelected?E(De.Check,{"aria-hidden":"true",style:{width:18,height:18}}):null})]})})]})}L.default.div`
|
|
1665
|
+
`;function R$(e){const t=S.useRef(null),{listBoxRef:n=t,state:r}=e,{listBoxProps:o}=uy({...e,disallowEmptySelection:!0},r,n);return E(bd,{...o,ref:n,children:[...r.collection].map(a=>E(oA,{item:a,state:r},a.key))})}function rA(e){const t=S.useRef(null),{listBoxRef:n=t,state:r}=e,{listBoxProps:o}=uy({...e,disallowEmptySelection:!0},r,n);return E(bd,{...o,ref:n,children:[...r.collection].map(a=>E(aA,{item:a,state:r,isSelectableAll:!0},a.key))})}const $d=S.createContext(null);$d.displayName="OptionContext";function oA({item:e,state:t}){const n=S.useRef(null),{optionProps:r,labelProps:o,descriptionProps:a,isSelected:i,isFocused:l,isDisabled:s}=dy({key:e.key},t,n);return E(Dl,{...r,ref:n,isFocused:l,isSelected:i,isDisabled:s,children:E(vd,{children:Q($d.Provider,{value:{labelProps:o,descriptionProps:a},children:[E(tt,{as:"span",overflowY:"hidden",children:e.rendered}),E(yd,{children:i?E(De.Check,{"aria-hidden":"true",style:{width:18,height:18}}):null})]})})})}function aA({item:e,state:t}){var l;const n=S.useRef(null),r=dy({key:e.key},t,n),o=((l=e==null?void 0:e.value)==null?void 0:l.name)||"",a=e["aria-label"],i=a||o||"";return Q(Dl,{...r.optionProps,ref:n,isFocused:r.isFocused,isSelected:r.isSelected,"aria-label":i,children:[E(rd,{isDisabled:r.isDisabled,isSelected:r.isSelected,"aria-label":i}),E(vd,{children:Q($d.Provider,{value:{labelProps:r.labelProps,descriptionProps:r.labelProps},children:[E(tt,{as:"span",children:e.rendered}),E(yd,{children:r.isSelected?E(De.Check,{"aria-hidden":"true",style:{width:18,height:18}}):null})]})})]})}L.default.div`
|
|
1666
1666
|
font-weight: normal;
|
|
1667
1667
|
font-size: 12px;
|
|
1668
1668
|
`;const K$=L.default.div`
|
|
@@ -2161,7 +2161,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2161
2161
|
&:focus-within {
|
|
2162
2162
|
border-color: ${p.color_deprecated_fill_inverse_enabled};
|
|
2163
2163
|
}
|
|
2164
|
-
`;function cF({label:e,labelId:t="time-input-label",inputId:n="time-input",hideLabel:r,boldLabel:o=!0,interval:a=5,hourCycle:i="",defaultValue:l,onChange:s,placeholder:u="Enter a time",isInvalid:d,isDisabled:f,earliestScrollOption:g=new Sn(0,0),latestScrollOption:m=new Sn(23,59),...h}){const{locale:b}=at(),v=i===""?rF(b):i,[_,y]=c.useState(h.hideIcon),w=c.useMemo(()=>iF(a,g,m,v!=="24"),[g,v,a,m]),D=zl(l,h.value),T=v==="24"?ya(D):va(D),[P,M]=c.useState(T),$=c.createRef(),A=c.useRef(null),z=c.createRef(),x=ua({}),K=gc(h.value);c.useEffect(()=>{if(
|
|
2164
|
+
`;function cF({label:e,labelId:t="time-input-label",inputId:n="time-input",hideLabel:r,boldLabel:o=!0,interval:a=5,hourCycle:i="",defaultValue:l,onChange:s,placeholder:u="Enter a time",isInvalid:d,isDisabled:f,earliestScrollOption:g=new Sn(0,0),latestScrollOption:m=new Sn(23,59),...h}){const{locale:b}=at(),v=i===""?rF(b):i,[_,y]=c.useState(h.hideIcon),w=c.useMemo(()=>iF(a,g,m,v!=="24"),[g,v,a,m]),D=zl(l,h.value),T=v==="24"?ya(D):va(D),[P,M]=c.useState(T),$=c.createRef(),A=c.useRef(null),z=c.createRef(),x=ua({}),K=gc(h.value);c.useEffect(()=>{if(h.value&&(K==null?void 0:K.compare(h.value))!==0&&!x.isOpen){const B=zl(null,h.value),N=v==="24"?ya(B):va(B);M(N)}},[h.value,K,v,x.isOpen]);const O=c.useCallback(B=>{var J;const N=z.current,V=(J=N==null?void 0:N.getElementsByClassName(`${B}`))==null?void 0:J[0];if(N&&V){const U=N.getBoundingClientRect().top+N.scrollTop,X=V.getBoundingClientRect().top+N.scrollTop-U+N.scrollTop;N.scrollTo({top:X,behavior:"smooth"})}},[z]),I=c.useCallback(B=>{var J;const N=z.current,V=(J=N==null?void 0:N.getElementsByClassName(`${B}`))==null?void 0:J[0];if(N&&V){const U=N.getBoundingClientRect().top+N.scrollTop,X=V.getBoundingClientRect().top+N.scrollTop-U+N.scrollTop;N.scrollTop=X}},[z]),j=gc(x.isOpen);c.useEffect(()=>{if(!j&&x.isOpen){const B=Xx(a,v,h.value,w[0]?Ud(w[0],v):void 0);I(B)}},[P,x.isOpen,j,l,h.value,I,a,v,h,w]);const{overlayProps:C}=id({type:"dialog"},x,$);c.useEffect(()=>{const B=()=>{$.current&&$.current.offsetWidth<100?_||y(!0):_&&y(!1)};return window.addEventListener("resize",B),B(),()=>window.removeEventListener("resize",B)},[$,_]);const q=c.useCallback(B=>{if(B){const N=v=="24"?ya(B):va(B),V=Ud(N,v);s==null||s(V),M(N)}x.close()},[s,v,x]),G=c.useCallback(B=>{M(B.target.value),O(B.target.value),x.isOpen||x.open()},[x,O]);return oi(()=>{document.activeElement===$.current&&x.close()}),Q(Et,{children:[e?Q(Re,{id:t,htmlFor:n,srOnly:r,mb:p.spacing_150,bold:o,children:[e,h.tooltipContent?E(Qe,{icon:h.tooltipIcon,children:h.tooltipContent}):null]}):null,Q(me,{width:"100%",position:"relative",children:[E(Nt,{type:"text",autoComplete:"off",placeholder:u,id:n,value:P,fontSize:p.font_size_175,lineHeight:p.font_size_200,height:p.font_size_400,"data-state":d?"invalid":void 0,disabled:f,ref:$,onFocus:B=>{x.isOpen||x.open()},onBlur:B=>{z.current&&B.relatedTarget&&z.current.contains(B.relatedTarget)||q(P)},onKeyDown:B=>{B.key==="Enter"&&x.isOpen&&B.preventDefault();let N=w.findIndex(V=>V===P);N===-1&&(N=w.findIndex(V=>{if(B.key==="ArrowDown")return V===Xx(a,v,h.value,w[0]?Ud(w[0],v):void 0);if(B.key==="ArrowUp")return V===nF(h,a,v)})),B.key==="ArrowDown"&&w[N+1]&&(x.isOpen||x.open(),M(w[N+1]??P),O(w[N+1]??"")),B.key==="ArrowUp"&&w[N-1]&&(x.isOpen||x.open(),M(w[N-1]??P),O(w[N-1]??""))},onKeyUp:B=>{B.key==="Enter"&&q(P)},onMouseUp:B=>{B.preventDefault()},onChange:G,...gs(h)}),_?null:E(De.AccessTime,{"aria-hidden":"true",style:{position:"absolute",pointerEvents:"none",width:"1.1rem",height:"1.1rem",top:".45rem",right:".5rem"}})]}),h.errorMessage?E(St,{children:h.errorMessage}):null,x.isOpen?E(Gr,{state:x,targetRef:$,isTargetWidth:!0,popoverRef:A,...C,placement:"bottom start",isNonModal:!0,children:E(bd,{ref:z,onMouseDown:B=>B.preventDefault(),children:w.map((B,N)=>E(Dl,{value:B,isFocused:B===P,className:B||"",onClick:()=>{q(B)},children:E(tt,{as:"span",children:B})},N))})}):null]})}const ew=e=>{if(!e)return;let t=e.year,n=e.month;const r=1;return n===1?(n=12,t-=1):n-=1,new Ae(t,n,r)},tw=e=>{if(!e)return;let t=e.year,n=e.month;const r=1;return n===12?(n=1,t+=1):n+=1,new Ae(t,n,r)},Wd=["january","february","march","april","may","june","july","august","september","october","november","december"];function Rl(e){return e&&e.getFullYear()===new Date().getFullYear()?new Intl.DateTimeFormat("en-US",{weekday:"long",month:"long",day:"numeric"}).format(e):new Intl.DateTimeFormat("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"}).format(e)}function uF({label:e,labelId:t="date-input-label",inputId:n="date-input",timeZone:r=Intl.DateTimeFormat().resolvedOptions().timeZone,hideLabel:o,boldLabel:a=!0,onChange:i,isInvalid:l,isDisabled:s,placeholder:u="Enter a date",isDateUnavailable:d,...f}){const[g,m]=c.useState(!!f.hideIcon),h=c.createRef(),b=c.createRef(),v=c.createRef(),_=c.useRef(null),y=ua({}),w=f.defaultValue?Rl(new Date(f.defaultValue.year,f.defaultValue.month-1,f.defaultValue.day)):void 0,D=f.value?Rl(new Date(f.value.year,f.value.month-1,f.value.day)):"",[T,P]=c.useState(w??D),[M,$]=c.useState(f.value??f.defaultValue),[A,z]=c.useState(M),{overlayProps:x}=id({type:"dialog"},y,h),K=gc(f.value);c.useEffect(()=>{f.value&&(K==null?void 0:K.compare(f.value))!==0&&!y.isOpen&&($(f.value),z(f.value),P(Rl(new Date(f.value.year,f.value.month-1,f.value.day))))},[f.value,K,y.isOpen]);const O=c.useCallback(C=>{const q=C??A;q&&($(q),z(q),P(Rl(new Date(q.year,q.month-1,q.day))),i==null||i(q),y.close())},[i,A,y]),I=c.useCallback(C=>{const q=Wd.findIndex(G=>G.startsWith(C.toLowerCase()));if(q>=0)return Wd[q]},[]);c.useEffect(()=>{const C=()=>{!f.hideIcon&&h.current&&h.current.offsetWidth<=155?g||m(!0):f.hideIcon||g&&m(!1)};return window.addEventListener("resize",C),C(),()=>window.removeEventListener("resize",C)},[h,g,f.hideIcon]);const j=c.useCallback(C=>{P(C.target.value),y.isOpen||y.open();const G=C.target.value.replace(",","").split(" ");let B,N,V;for(const U of G){if(U.match(/[a-zA-Z]+/)){const H=I(U);H&&(B=H)}if(U.match(/^[0-9]+$/)){if(U.length===1||U.length===2){const H=parseInt(U,10);H>=1&&H<=31&&(N=H)}if(U.length===4){const H=parseInt(U,10);H>=1e3&&H<=9999&&(V=H)}}}const J=new Ae(V??new Date().getFullYear(),Wd.findIndex(U=>U===B)+1,N??1);$(J),z(J)},[I,y]);return oi(()=>{document.activeElement===v.current&&y.close()}),Q(Et,{ref:h,children:[e?Q(Re,{id:t,htmlFor:n,srOnly:o,mb:p.spacing_150,bold:a,children:[e,f.tooltipContent?E(Qe,{icon:f.tooltipIcon,children:f.tooltipContent}):null]}):null,Q(me,{width:"100%",position:"relative",children:[E(Nt,{type:"text",autoComplete:"off",placeholder:u,id:n,value:T,fontSize:p.font_size_175,lineHeight:p.font_size_200,height:p.font_size_400,"data-state":l?"invalid":void 0,disabled:s,ref:v,onFocus:C=>{C.target.select(),y.isOpen||y.open()},onBlur:C=>{b.current&&C.relatedTarget&&b.current.contains(C.relatedTarget)||O()},onKeyDown:C=>{C.key==="Enter"&&y.isOpen&&C.preventDefault(),y.isOpen||y.open()},onKeyUp:C=>{C.key==="Enter"&&O()},onMouseUp:C=>{C.preventDefault()},onChange:j,...gs(f)}),g?null:E(De.CalendarToday,{"aria-hidden":"true",style:{position:"absolute",pointerEvents:"none",width:".875rem",height:".875rem",top:".5rem",right:"10px"}})]}),f.errorMessage?E(St,{children:f.errorMessage}):null,y.isOpen?E(Gr,{state:y,targetRef:h,popoverRef:_,...x,placement:"bottom start",isNonModal:!0,children:E(Ru,{ref:b,value:M,focusedValue:A,onChange:C=>{const q=new Ae(C.year,C.month,C.day);O(q)},onPrev:()=>{const C=ew(A);C&&z(C)},onNext:()=>{const C=tw(A);C&&z(C)},timeZone:r,isDateUnavailable:d})}):null]})}const dF=L.default(tt)`
|
|
2165
2165
|
font-family: ${p.font_family_pingo};
|
|
2166
2166
|
font-size: 0.875rem;
|
|
2167
2167
|
font-style: normal;
|
|
@@ -2172,8 +2172,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2172
2172
|
margin-top: ${p.spacing_100};
|
|
2173
2173
|
`,fF=({label:e,value:t,truncate:n=!1})=>Q(me,{role:"group",title:e,children:[E(Re,{htmlFor:`labeled-text-${e}`,color:p.color_gray_52,size:"medium",bold:!0,title:e,"aria-label":e,children:e}),E(dF,{id:`labeled-text-${e}`,title:typeof t=="string"?t:e,"aria-label":typeof t=="string"?t:e,truncate:n,children:t})]});function nw(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=nw(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function rw(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=nw(e))&&(r&&(r+=" "),r+=t);return r}function pF(e,t,n){let{keyboardDelegate:r,isDisabled:o}=e,a=Zi({usage:"search",sensitivity:"base"}),i=c.useMemo(()=>r||new $l(t.collection,t.disabledKeys,null,a),[r,t.collection,t.disabledKeys,a]),{menuTriggerProps:l,menuProps:s}=pd({isDisabled:o,type:"listbox"},t,n),u=y=>{switch(y.key){case"ArrowLeft":{y.preventDefault();let w=t.selectedKey!=null?i.getKeyAbove(t.selectedKey):i.getFirstKey();w&&t.setSelectedKey(w);break}case"ArrowRight":{y.preventDefault();let w=t.selectedKey!=null?i.getKeyBelow(t.selectedKey):i.getFirstKey();w&&t.setSelectedKey(w);break}}},{typeSelectProps:d}=cd({keyboardDelegate:i,selectionManager:t.selectionManager,onTypeSelect(y){t.setSelectedKey(y)}}),{labelProps:f,fieldProps:g,descriptionProps:m,errorMessageProps:h}=ol({...e,labelElementType:"span"});d.onKeyDown=d.onKeyDownCapture,delete d.onKeyDownCapture;let b=$n(e,{labelable:!0}),v=fe(d,l,g),_=ct();return{labelProps:{...f,onClick:()=>{e.isDisabled||(n.current.focus(),Kc("keyboard"))}},triggerProps:fe(b,{...v,isDisabled:o,onKeyDown:Ht(v.onKeyDown,u,e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[_,v["aria-labelledby"],v["aria-label"]&&!v["aria-labelledby"]?v.id:null].filter(Boolean).join(" "),onFocus(y){t.isFocused||(e.onFocus&&e.onFocus(y),e.onFocusChange&&e.onFocusChange(!0),t.setFocused(!0))},onBlur(y){t.isOpen||(e.onBlur&&e.onBlur(y),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))}}),valueProps:{id:_},menuProps:{...s,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,onBlur:y=>{y.currentTarget.contains(y.relatedTarget)||(e.onBlur&&e.onBlur(y),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))},"aria-labelledby":[g["aria-labelledby"],v["aria-label"]&&!g["aria-labelledby"]?v.id:null].filter(Boolean).join(" ")},descriptionProps:m,errorMessageProps:h}}function gF(e,t,n){let{autoComplete:r,name:o,isDisabled:a}=e,i=Gm(),{visuallyHiddenProps:l}=Zm();var s;return{containerProps:{...l,"aria-hidden":!0},inputProps:{type:"text",tabIndex:i==null||t.isFocused||t.isOpen?-1:0,style:{fontSize:16},onFocus:()=>n.current.focus(),disabled:a},selectProps:{tabIndex:-1,autoComplete:r,disabled:a,name:o,size:t.collection.size,value:(s=t.selectedKey)!==null&&s!==void 0?s:"",onChange:u=>t.setSelectedKey(u.target.value)}}}function mF(e){let{state:t,triggerRef:n,label:r,name:o,isDisabled:a}=e,{containerProps:i,inputProps:l,selectProps:s}=gF(e,t,n);var u;return t.collection.size<=300?S.default.createElement("div",i,S.default.createElement("input",l),S.default.createElement("label",null,r,S.default.createElement("select",s,S.default.createElement("option",null),[...t.collection.getKeys()].map(d=>{let f=t.collection.getItem(d);if(f.type==="item")return S.default.createElement("option",{key:f.key,value:f.key},f.textValue)})))):o?S.default.createElement("input",{type:"hidden",autoComplete:s.autoComplete,name:o,disabled:a,value:(u=t.selectedKey)!==null&&u!==void 0?u:""}):null}function hF(e){let t=ua(e),[n,r]=c.useState(null),o=A$({...e,onSelectionChange:s=>{e.onSelectionChange!=null&&e.onSelectionChange(s),t.close(),a.commitValidation()}}),a=w0({...e,value:o.selectedKey}),[i,l]=c.useState(!1);return{...a,...o,...t,focusStrategy:n,open(s=null){o.collection.size!==0&&(r(s),t.open())},toggle(s=null){o.collection.size!==0&&(r(s),t.toggle())},isFocused:i,setFocused:l}}const ow=L.default.span`
|
|
2174
2174
|
${({lineHeight:e=p.font_size_200,fontSize:t=p.font_size_175})=>Sl({lineHeight:e,fontSize:t})}
|
|
2175
|
+
text-overflow: ellipsis;
|
|
2175
2176
|
`,Hd=L.default.span`
|
|
2176
2177
|
${({lineHeight:e=p.font_size_200,fontSize:t=p.font_size_175})=>El({lineHeight:e,fontSize:t})}
|
|
2178
|
+
text-overflow: ellipsis;
|
|
2177
2179
|
`,Gd=L.default(ht).attrs({as:"button"})`
|
|
2178
2180
|
display: flex;
|
|
2179
2181
|
background-color: ${p.color_white};
|
|
@@ -2219,6 +2221,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2219
2221
|
`,bF=L.default.span`
|
|
2220
2222
|
display: inline-flex;
|
|
2221
2223
|
align-items: center;
|
|
2224
|
+
overflow: hidden;
|
|
2222
2225
|
`,vF=e=>E(Hr,{textValue:e.name,children:e.name},e.key),aw=e=>{const{boldLabel:t=!0,hideLabel:n,placeholder:r="Select...",showCaret:o=!0,isInvalid:a,children:i=vF,displayValue:l="rendered"}=e,s=hF({...e,children:i}),u=S.useRef(null),{labelProps:d,triggerProps:f,valueProps:g,menuProps:m,errorMessageProps:h}=pF(e,s,u),{buttonProps:b}=Dr(f,u);return Q(Et,{children:[e.label?Q(Re,{...d,srOnly:n,mb:p.spacing_150,onClick:()=>s.open(),bold:t,children:[e.label,e.tooltipContent?E(Qe,{icon:e.tooltipIcon,children:e.tooltipContent}):null]}):null,E(mF,{state:s,triggerRef:u,label:e.label,name:e.name}),Q(Gd,{...b,ref:u,isOpen:s.isOpen,"data-state":a?"invalid":void 0,children:[E(bF,{...g,children:s.selectedItem?l==="textValue"?E(ow,{children:s.selectedItem.textValue}):E(ow,{children:s.selectedItem.rendered}):E(Hd,{children:r})}),o?E(Pl,{style:{width:"18px",height:"18px"},"aria-hidden":"true"}):null]}),e.errorMessage?E(St,{...h,children:e.errorMessage}):null,s.isOpen?E(Gr,{state:s,targetRef:u,isTargetWidth:!0,children:E(R$,{...m,state:s})}):null]})};aw.displayName="SingleSelect";function yF(e,t,n){const{disallowEmptySelection:r,isDisabled:o}=e,a=Zi({usage:"search",sensitivity:"base"}),i=c.useMemo(()=>new $l(t.collection,t.disabledKeys,null,a),[t.collection,t.disabledKeys,a]),{menuTriggerProps:l,menuProps:s}=pd({isDisabled:o,type:"listbox"},t,n),u=_=>{if(t.selectionMode==="single")switch(_.key){case"ArrowLeft":{_.preventDefault();const y=t.selectedKeys.size>0?i.getKeyAbove(t.selectedKeys.values().next().value):i.getFirstKey();y&&t.setSelectedKeys([y]);break}case"ArrowRight":{_.preventDefault();const y=t.selectedKeys.size>0?i.getKeyBelow(t.selectedKeys.values().next().value):i.getFirstKey();y&&t.setSelectedKeys([y]);break}}},{typeSelectProps:d}=cd({keyboardDelegate:i,selectionManager:t.selectionManager,onTypeSelect(_){t.setSelectedKeys([_])}}),{labelProps:f,fieldProps:g,errorMessageProps:m}=ol({...e,labelElementType:"span"});d.onKeyDown=d.onKeyDownCapture,delete d.onKeyDownCapture;const h=$n(e,{labelable:!0}),b=fe(d,l,g),v=ct();return{labelProps:{...f,onClick:()=>{var _;e.isDisabled||((_=n.current)==null||_.focus(),Kc("keyboard"))}},triggerProps:fe(h,{...b,onKeyDown:Ht(b.onKeyDown,u,e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[b["aria-labelledby"],b["aria-label"]&&!b["aria-labelledby"]?b.id:null,v].filter(Boolean).join(" "),onFocus(_){t.isFocused||(e.onFocus&&e.onFocus(_),t.setFocused(!0))},onBlur(_){t.isOpen||(e.onBlur&&e.onBlur(_),t.setFocused(!1))}}),valueProps:{id:v},menuProps:{...s,disallowEmptySelection:r,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,onBlur:_=>{_.currentTarget.contains(_.relatedTarget)||(e.onBlur&&e.onBlur(_),t.setFocused(!1))},"aria-labelledby":[g["aria-labelledby"],b["aria-label"]&&!g["aria-labelledby"]?b.id:null].filter(Boolean).join(" ")},errorMessageProps:m}}function $F(e){const{collection:t,disabledKeys:n,selectionManager:r,selectionManager:{setSelectedKeys:o,selectedKeys:a,selectionMode:i}}=k$(e),l=[],s=a.size!==0?Array.from(a).map(u=>{const d=t.getItem(u);return d||l.push(u),d}).filter(X5):null;return l.length&&console.warn(`Select: Keys "${l.join(", ")}" passed to "selectedKeys" are not present in the collection.`),{collection:t,disabledKeys:n,selectionManager:r,selectionMode:i,selectedKeys:a,setSelectedKeys:o.bind(r),selectedItems:s}}function _F(e){const[t,n]=c.useState(!1),r=I$(e),o=$F({...e,onSelectionChange:a=>{e.onSelectionChange!=null&&(a==="all"?e.onSelectionChange(new Set(o.collection.getKeys())):e.onSelectionChange(a)),e.selectionMode==="single"&&r.close()}});return{...o,...r,close(){r.close()},open(){o.collection.size!==0&&r.open()},toggle(a){o.collection.size!==0&&r.toggle(a)},isFocused:t,setFocused:n}}const xF=L.default.span`
|
|
2223
2226
|
width: ${p.sizing_500};
|
|
2224
2227
|
height: ${p.sizing_600};
|