@primer/components 0.0.0-20219283497 → 0.0.0-202192953933
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.
- package/CHANGELOG.md +17 -1
- package/dist/browser.esm.js +147 -143
- package/dist/browser.esm.js.map +1 -1
- package/dist/browser.umd.js +147 -143
- package/dist/browser.umd.js.map +1 -1
- package/lib/Autocomplete/Autocomplete.d.ts +28 -28
- package/lib/Autocomplete/AutocompleteInput.d.ts +28 -28
- package/lib/Button/Button.d.ts +26 -26
- package/lib/Button/ButtonBase.d.ts +1 -1
- package/lib/Button/ButtonClose.d.ts +27 -27
- package/lib/Button/ButtonDanger.d.ts +26 -26
- package/lib/Button/ButtonInvisible.d.ts +26 -26
- package/lib/Button/ButtonOutline.d.ts +26 -26
- package/lib/Button/ButtonPrimary.d.ts +26 -26
- package/lib/Button/ButtonStyles.js +1 -1
- package/lib/CircleBadge.d.ts +2 -2
- package/lib/CircleOcticon.d.ts +30 -30
- package/lib/Dialog.d.ts +33 -33
- package/lib/Dropdown.d.ts +114 -114
- package/lib/DropdownMenu/DropdownButton.d.ts +28 -28
- package/lib/FilterList.d.ts +25 -25
- package/lib/Flash.d.ts +1 -1
- package/lib/Label.d.ts +1 -1
- package/lib/NewButton/button.d.ts +65 -65
- package/lib/NewButton/button.js +62 -27
- package/lib/NewButton/buttonStyles.d.ts +2 -0
- package/lib/NewButton/buttonStyles.js +14 -0
- package/lib/Position.d.ts +4 -4
- package/lib/SelectMenu/SelectMenu.d.ts +159 -159
- package/lib/SelectMenu/SelectMenuItem.d.ts +1 -1
- package/lib/SelectMenu/SelectMenuModal.d.ts +1 -1
- package/lib/TextInputWithTokens.d.ts +32 -28
- package/lib/TextInputWithTokens.js +102 -29
- package/lib/Timeline.d.ts +31 -31
- package/lib/Token/AvatarToken.d.ts +1 -1
- package/lib/Token/IssueLabelToken.d.ts +1 -1
- package/lib/Token/Token.d.ts +1 -1
- package/lib/Token/Token.js +13 -2
- package/lib/Token/TokenBase.js +0 -4
- package/lib/Token/_RemoveTokenButton.js +15 -2
- package/lib/_TextInputWrapper.js +1 -1
- package/lib/sx.d.ts +8 -2
- package/lib/theme.d.ts +78 -0
- package/lib/theme.js +3 -1
- package/lib/utils/testing.d.ts +1 -1
- package/lib/utils/types/KeyPaths.d.ts +3 -0
- package/lib/utils/types/KeyPaths.js +1 -0
- package/lib-esm/Autocomplete/Autocomplete.d.ts +28 -28
- package/lib-esm/Autocomplete/AutocompleteInput.d.ts +28 -28
- package/lib-esm/Button/Button.d.ts +26 -26
- package/lib-esm/Button/ButtonBase.d.ts +1 -1
- package/lib-esm/Button/ButtonClose.d.ts +27 -27
- package/lib-esm/Button/ButtonDanger.d.ts +26 -26
- package/lib-esm/Button/ButtonInvisible.d.ts +26 -26
- package/lib-esm/Button/ButtonOutline.d.ts +26 -26
- package/lib-esm/Button/ButtonPrimary.d.ts +26 -26
- package/lib-esm/Button/ButtonStyles.js +1 -1
- package/lib-esm/CircleBadge.d.ts +2 -2
- package/lib-esm/CircleOcticon.d.ts +30 -30
- package/lib-esm/Dialog.d.ts +33 -33
- package/lib-esm/Dropdown.d.ts +114 -114
- package/lib-esm/DropdownMenu/DropdownButton.d.ts +28 -28
- package/lib-esm/FilterList.d.ts +25 -25
- package/lib-esm/Flash.d.ts +1 -1
- package/lib-esm/Label.d.ts +1 -1
- package/lib-esm/NewButton/button.d.ts +65 -65
- package/lib-esm/NewButton/button.js +62 -27
- package/lib-esm/NewButton/buttonStyles.d.ts +2 -0
- package/lib-esm/NewButton/buttonStyles.js +3 -0
- package/lib-esm/Position.d.ts +4 -4
- package/lib-esm/SelectMenu/SelectMenu.d.ts +159 -159
- package/lib-esm/SelectMenu/SelectMenuItem.d.ts +1 -1
- package/lib-esm/SelectMenu/SelectMenuModal.d.ts +1 -1
- package/lib-esm/TextInputWithTokens.d.ts +32 -28
- package/lib-esm/TextInputWithTokens.js +101 -30
- package/lib-esm/Timeline.d.ts +31 -31
- package/lib-esm/Token/AvatarToken.d.ts +1 -1
- package/lib-esm/Token/IssueLabelToken.d.ts +1 -1
- package/lib-esm/Token/Token.d.ts +1 -1
- package/lib-esm/Token/Token.js +13 -2
- package/lib-esm/Token/TokenBase.js +0 -4
- package/lib-esm/Token/_RemoveTokenButton.js +11 -2
- package/lib-esm/_TextInputWrapper.js +1 -1
- package/lib-esm/sx.d.ts +8 -2
- package/lib-esm/theme.d.ts +78 -0
- package/lib-esm/theme.js +2 -1
- package/lib-esm/utils/testing.d.ts +1 -1
- package/lib-esm/utils/types/KeyPaths.d.ts +3 -0
- package/lib-esm/utils/types/KeyPaths.js +1 -0
- package/package.json +2 -1
package/dist/browser.esm.js
CHANGED
@@ -19,14 +19,14 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
19
19
|
`,Dt=f.div`
|
20
20
|
${At};
|
21
21
|
${It};
|
22
|
-
`;function Wt(t){const{children:r,...o}=t;return require("focus-visible"),e.createElement(Dt,Pt({},o,{"data-portal-root":!0}),e.createElement(Ht,null),r)}Wt.displayName="BaseStyles",Wt.defaultProps={color:"fg.default",fontFamily:"normal",lineHeight:"default"};var Ft=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===_t}(e)}(e)};var _t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function jt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?qt((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function Ut(e,t,r){return e.concat(t).map((function(e){return jt(e,r)}))}function Gt(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function Vt(e,t){try{return t in e}catch(e){return!1}}function Kt(e,t,r){var o={};return r.isMergeableObject(e)&&Gt(e).forEach((function(t){o[t]=jt(e[t],r)})),Gt(t).forEach((function(a){(function(e,t){return Vt(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,a)||(Vt(e,a)&&r.isMergeableObject(t[a])?o[a]=function(e,t){if(!t.customMerge)return qt;var r=t.customMerge(e);return"function"==typeof r?r:qt}(a,r)(e[a],t[a],r):o[a]=jt(t[a],r))})),o}function qt(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||Ut,r.isMergeableObject=r.isMergeableObject||Ft,r.cloneUnlessOtherwiseSpecified=jt;var o=Array.isArray(t);return o===Array.isArray(e)?o?r.arrayMerge(e,t,r):Kt(e,t,r):jt(t,r)}qt.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return qt(e,r,t)}),{})};var Xt=qt;const Yt=e.createContext({setColorMode:()=>null,setDayScheme:()=>null,setNightScheme:()=>null}),Jt=({children:t,...r})=>{var o,a,n,i,l,d,s,c;const{theme:f,colorMode:g,dayScheme:p,nightScheme:b}=Zt(),h=null!==(o=null!==(a=r.theme)&&void 0!==a?a:f)&&void 0!==o?o:x,[m,v]=e.useState(null!==(n=null!==(i=r.colorMode)&&void 0!==i?i:g)&&void 0!==n?n:"day"),[y,w]=e.useState(null!==(l=null!==(d=r.dayScheme)&&void 0!==d?d:p)&&void 0!==l?l:"light"),[B,$]=e.useState(null!==(s=null!==(c=r.nightScheme)&&void 0!==c?c:b)&&void 0!==s?s:"dark"),k=function(e,t){switch(e){case"auto":return t;default:return e}}(m,function(){const[t,r]=e.useState(er);return e.useEffect((()=>{var e,t;const o=null===(e=window)||void 0===e||null===(t=e.matchMedia)||void 0===t?void 0:t.call(e,"(prefers-color-scheme: dark)");function a(e){const t=e.matches;r(t?"night":"day")}if(o){if(void 0!==o.addEventListener)return o.addEventListener("change",a),function(){o.removeEventListener("change",a)};if(void 0!==o.addListener)return o.addListener(a),function(){o.removeListener(a)}}}),[]),t}()),T=function(e,t,r){switch(e){case"day":return t;case"night":return r}}(k,y,B),S=e.useMemo((()=>function(e,t){if(!e.colorSchemes)return e;if(!e.colorSchemes[t]){console.error(`\`${t}\` scheme not defined in \`theme.colorSchemes\``);const r=Object.keys(e.colorSchemes)[0];return Xt(e,e.colorSchemes[r])}return Xt(e,e.colorSchemes[t])}(h,T)),[h,T]);return e.useEffect((()=>{var e,t;v(null!==(e=null!==(t=r.colorMode)&&void 0!==t?t:g)&&void 0!==e?e:"day")}),[r.colorMode,g]),e.useEffect((()=>{var e,t;w(null!==(e=null!==(t=r.dayScheme)&&void 0!==t?t:p)&&void 0!==e?e:"light")}),[r.dayScheme,p]),e.useEffect((()=>{var e,t;$(null!==(e=null!==(t=r.nightScheme)&&void 0!==t?t:b)&&void 0!==e?e:"dark")}),[r.nightScheme,b]),e.createElement(Yt.Provider,{value:{theme:S,colorScheme:T,colorMode:m,resolvedColorMode:k,dayScheme:y,nightScheme:B,setColorMode:v,setDayScheme:w,setNightScheme:$}},e.createElement(u,{theme:S},t))};function Zt(){return e.useContext(Yt)}function Qt(e,t){var r;const{colorScheme:o=""}=Zt();return null!==(r=e[o])&&void 0!==r?r:t}function er(){var e,t,r;return"undefined"!=typeof window&&null!==(e=(t=window).matchMedia)&&void 0!==e&&null!==(r=e.call(t,"(prefers-color-scheme: dark)"))&&void 0!==r&&r.matches?"night":"day"}Jt.displayName="ThemeProvider";var tr=Jt;var rr=e=>ge(e.sx);var or=f.div(te,H,D,M,W,_,V,U,q,re,rr);const ar=f(or)``;ar.defaultProps={borderWidth:"1px",borderStyle:"solid",borderColor:"border.default",borderRadius:2};var nr=ar;const ir=f(or)``;ir.defaultProps={display:"flex"};var lr=ir;const dr=f(or)``;dr.defaultProps={display:"grid"};var sr=dr;const cr=f(or)``;var fr=cr;const gr=e.forwardRef(((t,r)=>e.createElement(cr,Pt({},t,{position:"absolute",ref:r}))));gr.displayName="Absolute";const ur=e.forwardRef(((t,r)=>e.createElement(cr,Pt({},t,{position:"fixed",ref:r}))));ur.displayName="Fixed";const pr=e.forwardRef(((t,r)=>e.createElement(cr,Pt({},t,{position:"relative",ref:r}))));pr.displayName="Relative";const br=e.forwardRef(((t,r)=>e.createElement(cr,Pt({},t,{position:"sticky",ref:r}))));function hr({ref:e,closeOnOutsideClick:n,defaultOpen:i,onClickOutside:l}){const[d,s]=t(i),c=r(null),f=null!=e?e:c,g=o((e=>{const{current:t}=f;e.target.closest("details")!==t&&(l&&l(e),e.defaultPrevented||s(!1))}),[f,s,l]);a((()=>{if(d&&n)return document.addEventListener("click",g),()=>{document.removeEventListener("click",g)}}),[d,n,g]);const u=e=>{if(!e.defaultPrevented){const t=e.target;s(t.open)}};return{open:d,setOpen:s,getDetailsProps:()=>({onToggle:u,open:d,ref:f})}}function mr(){const e=r(new Set),t=o(((t,r,...o)=>{const a=window.setTimeout(t,r,...o);return e.current.add(a),a}),[]),n=o((t=>{clearTimeout(t),e.current.delete(t)}),[]);return a((()=>()=>{for(const t of e.current)clearTimeout(t)}),[]),{safeSetTimeout:t,safeClearTimeout:n}}br.defaultProps={top:0,zIndex:1},br.displayName="Sticky";function vr(e){if(!e.defaultPrevented)for(const t of Object.values(xr).reverse())if(true===t(e)||e.defaultPrevented)break}const xr={};let yr=0;const wr=({containerRef:e,ignoreClickRefs:t,onClickOutside:r})=>{const i=n((()=>yr++),[]),l=o((o=>{var a;return o instanceof MouseEvent&&o.button>0||(!(null===(a=e.current)||void 0===a||!a.contains(o.target))||(!(!t||!t.some((({current:e})=>null==e?void 0:e.contains(o.target))))||void r(o)))}),[e,t,r]);a((()=>(0===Object.keys(xr).length&&document.addEventListener("mousedown",vr,{capture:!0}),function(e,t){xr[e]=t}(i,l),()=>{!function(e){delete xr[e]}(i),0===Object.keys(xr).length&&document.removeEventListener("mousedown",vr,{capture:!0})})),[i,l])};function*Br(e,t={}){var r,o;const a=null!==(r=t.strict)&&void 0!==r&&r,n=null!==(o=t.onlyTabbable)&&void 0!==o&&o?kr:$r,i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e instanceof HTMLElement&&n(e,a)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});let l=null;if(!t.reverse&&n(e,a)&&(yield e),t.reverse){let e=i.lastChild();for(;e;)l=e,e=i.lastChild()}else l=i.firstChild();for(;l instanceof HTMLElement;)yield l,l=t.reverse?i.previousNode():i.nextNode();t.reverse&&n(e,a)&&(yield e)}function $r(e,t=!1){const r=["BUTTON","INPUT","SELECT","TEXTAREA","OPTGROUP","OPTION","FIELDSET"].includes(e.tagName)&&e.disabled,o=e.hidden,a=e instanceof HTMLInputElement&&"hidden"===e.type;if(r||o||a)return!1;if(t){const t=0===e.offsetWidth||0===e.offsetHeight,r=["hidden","collapse"].includes(getComputedStyle(e).visibility),o=0===e.getClientRects().length;if(t||r||o)return!1}return null!=e.getAttribute("tabindex")||!(e instanceof HTMLAnchorElement&&null==e.getAttribute("href"))&&-1!==e.tabIndex}function kr(e,t=!1){return $r(e,t)&&"-1"!==e.getAttribute("tabindex")}function Tr({initialFocusRef:e,returnFocusRef:t,containerRef:r,preventFocusOnOpen:o}){a((()=>{if(o)return;const a=t.current;if(e&&e.current)e.current.focus();else if(r.current){const e=Br(r.current).next().value;null==e||e.focus()}return function(){null==a||a.focus()}}),[e,t,r,o])}const Sr=[];function Er(e){if("Escape"===e.key&&!e.defaultPrevented)for(let t=Sr.length-1;t>=0&&(Sr[t](e),!e.defaultPrevented);--t);}const Cr=(e,t=[e])=>{const r=o(e,t);a((()=>(0===Sr.length&&document.addEventListener("keydown",Er),Sr.push(r),()=>{Sr.splice(Sr.findIndex((e=>e===r)),1),0===Sr.length&&document.removeEventListener("keydown",Er)})),[r])};function zr(t){const r=e.useRef(null);return null!=t?t:r}const Nr=({overlayRef:e,returnFocusRef:t,initialFocusRef:r,onEscape:o,ignoreClickRefs:a,onClickOutside:n,preventFocusOnOpen:i})=>{const l=zr(e);return Tr({containerRef:l,returnFocusRef:t,initialFocusRef:r,preventFocusOnOpen:i}),wr({containerRef:l,ignoreClickRefs:a,onClickOutside:n}),Cr(o),{ref:l}};let Ir,Ar=!1;function Rr(){}try{const e=Object.create({},{signal:{get(){Ar=!0}}});window.addEventListener("test",Rr,e),window.removeEventListener("test",Rr,e)}catch(Xd){}function Lr(){Ar||(!function(){if("undefined"==typeof window)return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,r,o){return"object"==typeof o&&"signal"in o&&o.signal instanceof AbortSignal&&e.call(o.signal,"abort",(()=>{this.removeEventListener(t,r,o)})),e.call(this,t,r,o)}}(),Ar=!0)}function Or(){return void 0===Ir&&(Ir=/^mac/i.test(window.navigator.platform)),Ir}let Mr,Pr=1e4;function Hr(){return"__primer_id_"+Pr++}Lr(),function(e){e[e.ArrowHorizontal=1]="ArrowHorizontal",e[e.ArrowVertical=2]="ArrowVertical",e[e.JK=4]="JK",e[e.HL=8]="HL",e[e.HomeAndEnd=16]="HomeAndEnd",e[e.PageUpDown=256]="PageUpDown",e[e.WS=32]="WS",e[e.AD=64]="AD",e[e.Tab=128]="Tab",e[e.ArrowAll=e.ArrowHorizontal|e.ArrowVertical]="ArrowAll",e[e.HJKL=e.HL|e.JK]="HJKL",e[e.WASD=e.WS|e.AD]="WASD",e[e.All=e.ArrowAll|e.HJKL|e.HomeAndEnd|e.PageUpDown|e.WASD|e.Tab]="All"}(Mr||(Mr={}));const Dr={ArrowLeft:Mr.ArrowHorizontal,ArrowDown:Mr.ArrowVertical,ArrowUp:Mr.ArrowVertical,ArrowRight:Mr.ArrowHorizontal,h:Mr.HL,j:Mr.JK,k:Mr.JK,l:Mr.HL,a:Mr.AD,s:Mr.WS,w:Mr.WS,d:Mr.AD,Tab:Mr.Tab,Home:Mr.HomeAndEnd,End:Mr.HomeAndEnd,PageUp:Mr.PageUpDown,PageDown:Mr.PageUpDown},Wr={ArrowLeft:"previous",ArrowDown:"next",ArrowUp:"previous",ArrowRight:"next",h:"previous",j:"next",k:"previous",l:"next",a:"previous",s:"next",w:"previous",d:"next",Tab:"next",Home:"start",End:"end",PageUp:"start",PageDown:"end"};function Fr(e){const t=Wr[e.key];if("Tab"===e.key&&e.shiftKey)return"previous";const r=Or();if(r&&e.metaKey||!r&&e.ctrlKey){if("ArrowLeft"===e.key||"ArrowUp"===e.key)return"start";if("ArrowRight"===e.key||"ArrowDown"===e.key)return"end"}return t}function _r(e,t){var r,o,a,n;const i=[],l=new WeakMap,d=null!==(r=null==t?void 0:t.bindKeys)&&void 0!==r?r:(null!=t&&t.getNextFocusable?Mr.ArrowAll:Mr.ArrowVertical)|Mr.HomeAndEnd,s=null!==(o=null==t?void 0:t.focusOutBehavior)&&void 0!==o?o:"stop",c=null!==(a=null==t?void 0:t.focusInStrategy)&&void 0!==a?a:"previous",f=null==t?void 0:t.activeDescendantControl,g=null==t?void 0:t.onActiveDescendantChanged;let u;function p(){return i[0]}function b(e,t=!1){const r=u;u=e,f?e&&document.activeElement===f?h(r,e,t):m():(r&&r!==e&&l.has(r)&&r.setAttribute("tabindex","-1"),null==e||e.setAttribute("tabindex","0"))}function h(t,r,o=!1){r.id||r.setAttribute("id",Hr()),t&&t!==r&&t.removeAttribute("data-is-active-descendant"),f&&(o||f.getAttribute("aria-activedescendant")!==r.id)&&(f.setAttribute("aria-activedescendant",r.id),e.setAttribute("data-has-active-descendant",r.id),r.setAttribute("data-is-active-descendant",o?"activated-directly":"activated-indirectly"),null==g||g(r,t,o))}function m(t=u){"first"===c&&(u=void 0),null==f||f.removeAttribute("aria-activedescendant"),e.removeAttribute("data-has-active-descendant"),null==t||t.removeAttribute("data-is-active-descendant"),null==g||g(void 0,t,!1)}function v(...e){const r=e.filter((e=>{var r,o;return null===(r=null==t||null===(o=t.focusableElementFilter)||void 0===o?void 0:o.call(t,e))||void 0===r||r}));if(0===r.length)return;const o=i.findIndex((e=>(e.compareDocumentPosition(r[0])&Node.DOCUMENT_POSITION_PRECEDING)>0));i.splice(-1===o?i.length:o,0,...r);for(const e of r)l.has(e)||l.set(e,e.getAttribute("tabindex")),e.setAttribute("tabindex","-1");u||b(p())}function x(...e){for(const t of e){const e=i.indexOf(t);e>=0&&i.splice(e,1);const r=l.get(t);if(void 0!==r&&(null===r?t.removeAttribute("tabindex"):t.setAttribute("tabindex",r),l.delete(t)),t===u){b(p())}}}v(...Br(e)),b(p());new MutationObserver((e=>{for(const t of e)for(const e of t.removedNodes)e instanceof HTMLElement&&x(...Br(e));for(const t of e)for(const e of t.addedNodes)e instanceof HTMLElement&&v(...Br(e))})).observe(e,{subtree:!0,childList:!0});const y=new AbortController,w=null!==(n=null==t?void 0:t.abortSignal)&&void 0!==n?n:y.signal;let B;w.addEventListener("abort",(()=>{x(...i)})),e.addEventListener("mousedown",(e=>{e.target instanceof HTMLElement&&e.target!==document.activeElement&&(B=i.indexOf(e.target))}),{signal:w}),f?(e.addEventListener("focusin",(e=>{e.target instanceof HTMLElement&&i.includes(e.target)&&(f.focus(),b(e.target))})),e.addEventListener("mousemove",(({target:e})=>{if(!(e instanceof Node))return;const t=i.find((t=>t.contains(e)));t&&b(t)}),{signal:w,capture:!0}),f.addEventListener("focusin",(()=>{u?h(void 0,u):b(p())})),f.addEventListener("focusout",(()=>{m()}))):e.addEventListener("focusin",(t=>{if(t.target instanceof HTMLElement)if(void 0!==B)B>=0&&i[B]!==u&&b(i[B]),B=void 0;else if("previous"===c)b(t.target);else if("closest"===c||"first"===c){if(t.relatedTarget instanceof Element&&!e.contains(t.relatedTarget)){const e="previous"===k?i.length-1:0,t=i[e];return void(null==t||t.focus())}b(t.target)}else if("function"==typeof c)if(t.relatedTarget instanceof Element&&!e.contains(t.relatedTarget)){const e=c(t.relatedTarget);if((e?i.indexOf(e):-1)>=0&&e instanceof HTMLElement)return void e.focus();console.warn("Element requested is not a known focusable element.")}else b(t.target);k=void 0}),{signal:w});const $=null!=f?f:e;let k;return"closest"===c&&document.addEventListener("keydown",(e=>{"Tab"===e.key&&(k=Fr(e))}),{signal:w,capture:!0}),$.addEventListener("keydown",(r=>{if(r.key in Wr){const a=Dr[r.key];if(!r.defaultPrevented&&(a&d)>0&&!function(e,t){const r=e.key,o=[...r].length,a=t instanceof HTMLInputElement&&"text"===t.type||t instanceof HTMLTextAreaElement;if(a&&(1===o||"Home"===r||"End"===r))return!0;if(t instanceof HTMLSelectElement){if(1===o)return!0;if("ArrowDown"===r&&Or()&&!e.metaKey)return!0;if("ArrowDown"===r&&!Or()&&e.altKey)return!0}if(t instanceof HTMLTextAreaElement&&("PageUp"===r||"PageDown"===r))return!0;if(a){const e=t,o=0===e.selectionStart&&0===e.selectionEnd,a=e.selectionStart===e.value.length&&e.selectionEnd===e.value.length;if("ArrowLeft"===r&&!o)return!0;if("ArrowRight"===r&&!a)return!0;if(e instanceof HTMLTextAreaElement){if("ArrowUp"===r&&!o)return!0;if("ArrowDown"===r&&!a)return!0}}return!1}(r,document.activeElement)){const a=Fr(r);let n;var o;if(null!=t&&t.getNextFocusable)n=t.getNextFocusable(a,null!==(o=document.activeElement)&&void 0!==o?o:void 0,r);if(!n){const t=function(){if(!u)return 0;const t=i.indexOf(u);return-1!==t?t:u===e?-1:0}();let o=t;"previous"===a?o-=1:"start"===a?o=0:"next"===a?o+=1:o=i.length-1,o<0&&(o="wrap"===s&&"Tab"!==r.key?i.length-1:0),o>=i.length&&(o="wrap"===s&&"Tab"!==r.key?0:i.length-1),t!==o&&(n=i[o])}f?b(n||u,!0):n&&(k=a,n.focus()),("Tab"!==r.key||n)&&r.preventDefault()}}}),{signal:w}),y}var jr={small:16,medium:32,large:64};function Ur(e){var t=e["aria-label"],r=e.className,o=e.fill,a=void 0===o?"currentColor":o,n=e.size,i=e.verticalAlign,l=e.svgDataByHeight,d=jr[n]||n,s=function(e,t){return e.map((function(e){return parseInt(e,10)})).reduce((function(e,r){return r<=t?r:e}),e[0])}(Object.keys(l),d),c=l[s].width;return{"aria-hidden":t?"false":"true","aria-label":t,role:"img",className:r,viewBox:"0 0 "+c+" "+s,width:d*(c/s),height:d,fill:a,style:{display:"inline-block",userSelect:"none",verticalAlign:i},dangerouslySetInnerHTML:{__html:l[s].path}}}var Gr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e};function Vr(t){return e.createElement("svg",Ur(Gr({},t,{svgDataByHeight:{16:{width:16,path:'<path fill-rule="evenodd" d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"></path>'},24:{width:24,path:'<path fill-rule="evenodd" d="M21.03 5.72a.75.75 0 010 1.06l-11.5 11.5a.75.75 0 01-1.072-.012l-5.5-5.75a.75.75 0 111.084-1.036l4.97 5.195L19.97 5.72a.75.75 0 011.06 0z"></path>'}}})))}function Kr(t){return e.createElement("svg",Ur(Gr({},t,{svgDataByHeight:{16:{width:16,path:'<path fill-rule="evenodd" d="M5 3.254V3.25v.005a.75.75 0 110-.005v.004zm.45 1.9a2.25 2.25 0 10-1.95.218v5.256a2.25 2.25 0 101.5 0V7.123A5.735 5.735 0 009.25 9h1.378a2.251 2.251 0 100-1.5H9.25a4.25 4.25 0 01-3.8-2.346zM12.75 9a.75.75 0 100-1.5.75.75 0 000 1.5zm-8.5 4.5a.75.75 0 100-1.5.75.75 0 000 1.5z"></path>'},24:{width:24,path:'<path fill-rule="evenodd" d="M5.75 21a1.75 1.75 0 110-3.5 1.75 1.75 0 010 3.5zM2.5 19.25a3.25 3.25 0 106.5 0 3.25 3.25 0 00-6.5 0zM5.75 6.5a1.75 1.75 0 110-3.5 1.75 1.75 0 010 3.5zM2.5 4.75a3.25 3.25 0 106.5 0 3.25 3.25 0 00-6.5 0zM18.25 15a1.75 1.75 0 110-3.5 1.75 1.75 0 010 3.5zM15 13.25a3.25 3.25 0 106.5 0 3.25 3.25 0 00-6.5 0z"></path><path fill-rule="evenodd" d="M6.5 7.25c0 2.9 2.35 5.25 5.25 5.25h4.5V14h-4.5A6.75 6.75 0 015 7.25h1.5z"></path><path fill-rule="evenodd" d="M5.75 16.75A.75.75 0 006.5 16V8A.75.75 0 005 8v8c0 .414.336.75.75.75z"></path>'}}})))}function qr(t){return e.createElement("svg",Ur(Gr({},t,{svgDataByHeight:{16:{width:16,path:'<path fill-rule="evenodd" d="M7.177 3.073L9.573.677A.25.25 0 0110 .854v4.792a.25.25 0 01-.427.177L7.177 3.427a.25.25 0 010-.354zM3.75 2.5a.75.75 0 100 1.5.75.75 0 000-1.5zm-2.25.75a2.25 2.25 0 113 2.122v5.256a2.251 2.251 0 11-1.5 0V5.372A2.25 2.25 0 011.5 3.25zM11 2.5h-1V4h1a1 1 0 011 1v5.628a2.251 2.251 0 101.5 0V5A2.5 2.5 0 0011 2.5zm1 10.25a.75.75 0 111.5 0 .75.75 0 01-1.5 0zM3.75 12a.75.75 0 100 1.5.75.75 0 000-1.5z"></path>'},24:{width:24,path:'<path fill-rule="evenodd" d="M4.75 3a1.75 1.75 0 100 3.5 1.75 1.75 0 000-3.5zM1.5 4.75a3.25 3.25 0 116.5 0 3.25 3.25 0 01-6.5 0zM4.75 17.5a1.75 1.75 0 100 3.5 1.75 1.75 0 000-3.5zM1.5 19.25a3.25 3.25 0 116.5 0 3.25 3.25 0 01-6.5 0zm17.75-1.75a1.75 1.75 0 100 3.5 1.75 1.75 0 000-3.5zM16 19.25a3.25 3.25 0 116.5 0 3.25 3.25 0 01-6.5 0z"></path><path fill-rule="evenodd" d="M4.75 7.25A.75.75 0 015.5 8v8A.75.75 0 014 16V8a.75.75 0 01.75-.75zm8.655-5.53a.75.75 0 010 1.06L12.185 4h4.065A3.75 3.75 0 0120 7.75v8.75a.75.75 0 01-1.5 0V7.75a2.25 2.25 0 00-2.25-2.25h-4.064l1.22 1.22a.75.75 0 01-1.061 1.06l-2.5-2.5a.75.75 0 010-1.06l2.5-2.5a.75.75 0 011.06 0z"></path>'}}})))}function Xr(t){return e.createElement("svg",Ur(Gr({},t,{svgDataByHeight:{16:{width:16,path:'<path fill-rule="evenodd" d="M1.5 8a6.5 6.5 0 0110.65-5.003.75.75 0 00.959-1.153 8 8 0 102.592 8.33.75.75 0 10-1.444-.407A6.5 6.5 0 011.5 8zM8 12a1 1 0 100-2 1 1 0 000 2zm0-8a.75.75 0 01.75.75v3.5a.75.75 0 11-1.5 0v-3.5A.75.75 0 018 4zm4.78 4.28l3-3a.75.75 0 00-1.06-1.06l-2.47 2.47-.97-.97a.749.749 0 10-1.06 1.06l1.5 1.5a.75.75 0 001.06 0z"></path>'},24:{width:24,path:'<path d="M2.5 12c0-5.24 4.288-9.5 9.593-9.5a9.608 9.608 0 017.197 3.219.75.75 0 001.12-.998A11.108 11.108 0 0012.093 1C5.973 1 1 5.919 1 12s4.973 11 11.093 11c5.403 0 9.91-3.832 10.893-8.915a.75.75 0 10-1.472-.285c-.848 4.381-4.74 7.7-9.421 7.7C6.788 21.5 2.5 17.24 2.5 12z"></path><path d="M12 17a1 1 0 100-2 1 1 0 000 2zm0-10a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0112 7zm11.28.78a.75.75 0 00-1.06-1.06l-3.47 3.47-1.47-1.47a.75.75 0 10-1.06 1.06l2 2a.75.75 0 001.06 0l4-4z"></path>'}}})))}function Yr(t){return e.createElement("svg",Ur(Gr({},t,{svgDataByHeight:{16:{width:16,path:'<path fill-rule="evenodd" d="M8 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM0 8a8 8 0 1116 0A8 8 0 010 8zm9 3a1 1 0 11-2 0 1 1 0 012 0zm-.25-6.25a.75.75 0 00-1.5 0v3.5a.75.75 0 001.5 0v-3.5z"></path>'},24:{width:24,path:'<path d="M12 7a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0112 7zm1 9a1 1 0 11-2 0 1 1 0 012 0z"></path><path fill-rule="evenodd" d="M12 1C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1zM2.5 12a9.5 9.5 0 1119 0 9.5 9.5 0 01-19 0z"></path>'}}})))}function Jr(t){return e.createElement("svg",Ur(Gr({},t,{svgDataByHeight:{16:{width:16,path:'<path fill-rule="evenodd" d="M7.75 2a.75.75 0 01.75.75V7h4.25a.75.75 0 110 1.5H8.5v4.25a.75.75 0 11-1.5 0V8.5H2.75a.75.75 0 010-1.5H7V2.75A.75.75 0 017.75 2z"></path>'},24:{width:24,path:'<path fill-rule="evenodd" d="M11.75 4.5a.75.75 0 01.75.75V11h5.75a.75.75 0 010 1.5H12.5v5.75a.75.75 0 01-1.5 0V12.5H5.25a.75.75 0 010-1.5H11V5.25a.75.75 0 01.75-.75z"></path>'}}})))}function Zr(t){return e.createElement("svg",Ur(Gr({},t,{svgDataByHeight:{16:{width:16,path:'<path fill-rule="evenodd" d="M8 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM0 8a8 8 0 1116 0A8 8 0 010 8zm9 3a1 1 0 11-2 0 1 1 0 012 0zM6.92 6.085c.081-.16.19-.299.34-.398.145-.097.371-.187.74-.187.28 0 .553.087.738.225A.613.613 0 019 6.25c0 .177-.04.264-.077.318a.956.956 0 01-.277.245c-.076.051-.158.1-.258.161l-.007.004a7.728 7.728 0 00-.313.195 2.416 2.416 0 00-.692.661.75.75 0 001.248.832.956.956 0 01.276-.245 6.3 6.3 0 01.26-.16l.006-.004c.093-.057.204-.123.313-.195.222-.149.487-.355.692-.662.214-.32.329-.702.329-1.15 0-.76-.36-1.348-.863-1.725A2.76 2.76 0 008 4c-.631 0-1.155.16-1.572.438-.413.276-.68.638-.849.977a.75.75 0 101.342.67z"></path>'},24:{width:24,path:'<path d="M10.97 8.265a1.45 1.45 0 00-.487.57.75.75 0 01-1.341-.67c.2-.402.513-.826.997-1.148C10.627 6.69 11.244 6.5 12 6.5c.658 0 1.369.195 1.934.619a2.45 2.45 0 011.004 2.006c0 1.033-.513 1.72-1.027 2.215-.19.183-.399.358-.579.508l-.147.123a4.329 4.329 0 00-.435.409v1.37a.75.75 0 11-1.5 0v-1.473c0-.237.067-.504.247-.736.22-.28.486-.517.718-.714l.183-.153.001-.001c.172-.143.324-.27.47-.412.368-.355.569-.676.569-1.136a.953.953 0 00-.404-.806C12.766 8.118 12.384 8 12 8c-.494 0-.814.121-1.03.265zM13 17a1 1 0 11-2 0 1 1 0 012 0z"></path><path fill-rule="evenodd" d="M12 1C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1zM2.5 12a9.5 9.5 0 1119 0 9.5 9.5 0 01-19 0z"></path>'}}})))}function Qr(t){return e.createElement("svg",Ur(Gr({},t,{svgDataByHeight:{16:{width:16,path:'<path d="M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"></path>'},24:{width:24,path:'<path d="M11.646 15.146L5.854 9.354a.5.5 0 01.353-.854h11.586a.5.5 0 01.353.854l-5.793 5.792a.5.5 0 01-.707 0z"></path>'}}})))}function eo(t){return e.createElement("svg",Ur(Gr({},t,{svgDataByHeight:{16:{width:16,path:'<path fill-rule="evenodd" d="M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"></path>'},24:{width:24,path:'<path fill-rule="evenodd" d="M5.72 5.72a.75.75 0 011.06 0L12 10.94l5.22-5.22a.75.75 0 111.06 1.06L13.06 12l5.22 5.22a.75.75 0 11-1.06 1.06L12 13.06l-5.22 5.22a.75.75 0 01-1.06-1.06L10.94 12 5.72 6.78a.75.75 0 010-1.06z"></path>'}}})))}Vr.defaultProps={className:"octicon octicon-check",size:16,verticalAlign:"text-bottom"},Kr.defaultProps={className:"octicon octicon-git-merge",size:16,verticalAlign:"text-bottom"},qr.defaultProps={className:"octicon octicon-git-pull-request",size:16,verticalAlign:"text-bottom"},Xr.defaultProps={className:"octicon octicon-issue-closed",size:16,verticalAlign:"text-bottom"},Yr.defaultProps={className:"octicon octicon-issue-opened",size:16,verticalAlign:"text-bottom"},Jr.defaultProps={className:"octicon octicon-plus",size:16,verticalAlign:"text-bottom"},Zr.defaultProps={className:"octicon octicon-question",size:16,verticalAlign:"text-bottom"},Qr.defaultProps={className:"octicon octicon-triangle-down",size:16,verticalAlign:"text-bottom"},eo.defaultProps={className:"octicon octicon-x",size:16,verticalAlign:"text-bottom"};var to=p(["position:relative;display:inline-block;font-family:inherit;font-weight:",";line-height:20px;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;border-radius:",";appearance:none;text-decoration:none;text-align:center;&:hover{text-decoration:none;}&:focus{outline:none;}&:disabled{cursor:default;}&:disabled svg{opacity:0.6;}"],Nt("fontWeights.bold"),Nt("radii.2"));const ro={display:"inline-block",padding:"0px 6px",backgroundColor:"neutral.muted",borderRadius:"50%",marginLeft:"8px"},oo=({count:t})=>e.createElement(or,{sx:ro},t);oo.displayName="Counter";var ao=oo;const no=ue({prop:"size",variants:{small:{p:"4px 12px",fontSize:0},medium:{fontSize:1},large:{fontSize:2,p:"10px 20px"}}}),io=f.button`
|
22
|
+
`;function Wt(t){const{children:r,...o}=t;return require("focus-visible"),e.createElement(Dt,Pt({},o,{"data-portal-root":!0}),e.createElement(Ht,null),r)}Wt.displayName="BaseStyles",Wt.defaultProps={color:"fg.default",fontFamily:"normal",lineHeight:"default"};var Ft=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===_t}(e)}(e)};var _t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function jt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?qt((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function Ut(e,t,r){return e.concat(t).map((function(e){return jt(e,r)}))}function Gt(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function Vt(e,t){try{return t in e}catch(e){return!1}}function Kt(e,t,r){var o={};return r.isMergeableObject(e)&&Gt(e).forEach((function(t){o[t]=jt(e[t],r)})),Gt(t).forEach((function(a){(function(e,t){return Vt(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,a)||(Vt(e,a)&&r.isMergeableObject(t[a])?o[a]=function(e,t){if(!t.customMerge)return qt;var r=t.customMerge(e);return"function"==typeof r?r:qt}(a,r)(e[a],t[a],r):o[a]=jt(t[a],r))})),o}function qt(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||Ut,r.isMergeableObject=r.isMergeableObject||Ft,r.cloneUnlessOtherwiseSpecified=jt;var o=Array.isArray(t);return o===Array.isArray(e)?o?r.arrayMerge(e,t,r):Kt(e,t,r):jt(t,r)}qt.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return qt(e,r,t)}),{})};var Xt=qt;const Yt=e.createContext({setColorMode:()=>null,setDayScheme:()=>null,setNightScheme:()=>null}),Jt=({children:t,...r})=>{var o,a,n,i,l,d,s,c;const{theme:f,colorMode:g,dayScheme:p,nightScheme:b}=Zt(),h=null!==(o=null!==(a=r.theme)&&void 0!==a?a:f)&&void 0!==o?o:x,[m,v]=e.useState(null!==(n=null!==(i=r.colorMode)&&void 0!==i?i:g)&&void 0!==n?n:"day"),[y,w]=e.useState(null!==(l=null!==(d=r.dayScheme)&&void 0!==d?d:p)&&void 0!==l?l:"light"),[B,$]=e.useState(null!==(s=null!==(c=r.nightScheme)&&void 0!==c?c:b)&&void 0!==s?s:"dark"),k=function(e,t){switch(e){case"auto":return t;default:return e}}(m,function(){const[t,r]=e.useState(er);return e.useEffect((()=>{var e,t;const o=null===(e=window)||void 0===e||null===(t=e.matchMedia)||void 0===t?void 0:t.call(e,"(prefers-color-scheme: dark)");function a(e){const t=e.matches;r(t?"night":"day")}if(o){if(void 0!==o.addEventListener)return o.addEventListener("change",a),function(){o.removeEventListener("change",a)};if(void 0!==o.addListener)return o.addListener(a),function(){o.removeListener(a)}}}),[]),t}()),T=function(e,t,r){switch(e){case"day":return t;case"night":return r}}(k,y,B),S=e.useMemo((()=>function(e,t){if(!e.colorSchemes)return e;if(!e.colorSchemes[t]){console.error(`\`${t}\` scheme not defined in \`theme.colorSchemes\``);const r=Object.keys(e.colorSchemes)[0];return Xt(e,e.colorSchemes[r])}return Xt(e,e.colorSchemes[t])}(h,T)),[h,T]);return e.useEffect((()=>{var e,t;v(null!==(e=null!==(t=r.colorMode)&&void 0!==t?t:g)&&void 0!==e?e:"day")}),[r.colorMode,g]),e.useEffect((()=>{var e,t;w(null!==(e=null!==(t=r.dayScheme)&&void 0!==t?t:p)&&void 0!==e?e:"light")}),[r.dayScheme,p]),e.useEffect((()=>{var e,t;$(null!==(e=null!==(t=r.nightScheme)&&void 0!==t?t:b)&&void 0!==e?e:"dark")}),[r.nightScheme,b]),e.createElement(Yt.Provider,{value:{theme:S,colorScheme:T,colorMode:m,resolvedColorMode:k,dayScheme:y,nightScheme:B,setColorMode:v,setDayScheme:w,setNightScheme:$}},e.createElement(u,{theme:S},t))};function Zt(){return e.useContext(Yt)}function Qt(e,t){var r;const{colorScheme:o=""}=Zt();return null!==(r=e[o])&&void 0!==r?r:t}function er(){var e,t,r;return"undefined"!=typeof window&&null!==(e=(t=window).matchMedia)&&void 0!==e&&null!==(r=e.call(t,"(prefers-color-scheme: dark)"))&&void 0!==r&&r.matches?"night":"day"}Jt.displayName="ThemeProvider";var tr=Jt;var rr=e=>ge(e.sx);var or=f.div(te,H,D,M,W,_,V,U,q,re,rr);const ar=f(or)``;ar.defaultProps={borderWidth:"1px",borderStyle:"solid",borderColor:"border.default",borderRadius:2};var nr=ar;const ir=f(or)``;ir.defaultProps={display:"flex"};var lr=ir;const dr=f(or)``;dr.defaultProps={display:"grid"};var sr=dr;const cr=f(or)``;var fr=cr;const gr=e.forwardRef(((t,r)=>e.createElement(cr,Pt({},t,{position:"absolute",ref:r}))));gr.displayName="Absolute";const ur=e.forwardRef(((t,r)=>e.createElement(cr,Pt({},t,{position:"fixed",ref:r}))));ur.displayName="Fixed";const pr=e.forwardRef(((t,r)=>e.createElement(cr,Pt({},t,{position:"relative",ref:r}))));pr.displayName="Relative";const br=e.forwardRef(((t,r)=>e.createElement(cr,Pt({},t,{position:"sticky",ref:r}))));function hr({ref:e,closeOnOutsideClick:n,defaultOpen:i,onClickOutside:l}){const[d,s]=t(i),c=r(null),f=null!=e?e:c,g=o((e=>{const{current:t}=f;e.target.closest("details")!==t&&(l&&l(e),e.defaultPrevented||s(!1))}),[f,s,l]);a((()=>{if(d&&n)return document.addEventListener("click",g),()=>{document.removeEventListener("click",g)}}),[d,n,g]);const u=e=>{if(!e.defaultPrevented){const t=e.target;s(t.open)}};return{open:d,setOpen:s,getDetailsProps:()=>({onToggle:u,open:d,ref:f})}}function mr(){const e=r(new Set),t=o(((t,r,...o)=>{const a=window.setTimeout(t,r,...o);return e.current.add(a),a}),[]),n=o((t=>{clearTimeout(t),e.current.delete(t)}),[]);return a((()=>()=>{for(const t of e.current)clearTimeout(t)}),[]),{safeSetTimeout:t,safeClearTimeout:n}}br.defaultProps={top:0,zIndex:1},br.displayName="Sticky";function vr(e){if(!e.defaultPrevented)for(const t of Object.values(xr).reverse())if(true===t(e)||e.defaultPrevented)break}const xr={};let yr=0;const wr=({containerRef:e,ignoreClickRefs:t,onClickOutside:r})=>{const i=n((()=>yr++),[]),l=o((o=>{var a;return o instanceof MouseEvent&&o.button>0||(!(null===(a=e.current)||void 0===a||!a.contains(o.target))||(!(!t||!t.some((({current:e})=>null==e?void 0:e.contains(o.target))))||void r(o)))}),[e,t,r]);a((()=>(0===Object.keys(xr).length&&document.addEventListener("mousedown",vr,{capture:!0}),function(e,t){xr[e]=t}(i,l),()=>{!function(e){delete xr[e]}(i),0===Object.keys(xr).length&&document.removeEventListener("mousedown",vr,{capture:!0})})),[i,l])};function*Br(e,t={}){var r,o;const a=null!==(r=t.strict)&&void 0!==r&&r,n=null!==(o=t.onlyTabbable)&&void 0!==o&&o?kr:$r,i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e instanceof HTMLElement&&n(e,a)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});let l=null;if(!t.reverse&&n(e,a)&&(yield e),t.reverse){let e=i.lastChild();for(;e;)l=e,e=i.lastChild()}else l=i.firstChild();for(;l instanceof HTMLElement;)yield l,l=t.reverse?i.previousNode():i.nextNode();t.reverse&&n(e,a)&&(yield e)}function $r(e,t=!1){const r=["BUTTON","INPUT","SELECT","TEXTAREA","OPTGROUP","OPTION","FIELDSET"].includes(e.tagName)&&e.disabled,o=e.hidden,a=e instanceof HTMLInputElement&&"hidden"===e.type;if(r||o||a)return!1;if(t){const t=0===e.offsetWidth||0===e.offsetHeight,r=["hidden","collapse"].includes(getComputedStyle(e).visibility),o=0===e.getClientRects().length;if(t||r||o)return!1}return null!=e.getAttribute("tabindex")||!(e instanceof HTMLAnchorElement&&null==e.getAttribute("href"))&&-1!==e.tabIndex}function kr(e,t=!1){return $r(e,t)&&"-1"!==e.getAttribute("tabindex")}function Tr({initialFocusRef:e,returnFocusRef:t,containerRef:r,preventFocusOnOpen:o}){a((()=>{if(o)return;const a=t.current;if(e&&e.current)e.current.focus();else if(r.current){const e=Br(r.current).next().value;null==e||e.focus()}return function(){null==a||a.focus()}}),[e,t,r,o])}const Sr=[];function Er(e){if("Escape"===e.key&&!e.defaultPrevented)for(let t=Sr.length-1;t>=0&&(Sr[t](e),!e.defaultPrevented);--t);}const Cr=(e,t=[e])=>{const r=o(e,t);a((()=>(0===Sr.length&&document.addEventListener("keydown",Er),Sr.push(r),()=>{Sr.splice(Sr.findIndex((e=>e===r)),1),0===Sr.length&&document.removeEventListener("keydown",Er)})),[r])};function zr(t){const r=e.useRef(null);return null!=t?t:r}const Nr=({overlayRef:e,returnFocusRef:t,initialFocusRef:r,onEscape:o,ignoreClickRefs:a,onClickOutside:n,preventFocusOnOpen:i})=>{const l=zr(e);return Tr({containerRef:l,returnFocusRef:t,initialFocusRef:r,preventFocusOnOpen:i}),wr({containerRef:l,ignoreClickRefs:a,onClickOutside:n}),Cr(o),{ref:l}};let Ir,Ar=!1;function Rr(){}try{const e=Object.create({},{signal:{get(){Ar=!0}}});window.addEventListener("test",Rr,e),window.removeEventListener("test",Rr,e)}catch(Jd){}function Lr(){Ar||(!function(){if("undefined"==typeof window)return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,r,o){return"object"==typeof o&&"signal"in o&&o.signal instanceof AbortSignal&&e.call(o.signal,"abort",(()=>{this.removeEventListener(t,r,o)})),e.call(this,t,r,o)}}(),Ar=!0)}function Or(){return void 0===Ir&&(Ir=/^mac/i.test(window.navigator.platform)),Ir}let Mr,Pr=1e4;function Hr(){return"__primer_id_"+Pr++}Lr(),function(e){e[e.ArrowHorizontal=1]="ArrowHorizontal",e[e.ArrowVertical=2]="ArrowVertical",e[e.JK=4]="JK",e[e.HL=8]="HL",e[e.HomeAndEnd=16]="HomeAndEnd",e[e.PageUpDown=256]="PageUpDown",e[e.WS=32]="WS",e[e.AD=64]="AD",e[e.Tab=128]="Tab",e[e.ArrowAll=e.ArrowHorizontal|e.ArrowVertical]="ArrowAll",e[e.HJKL=e.HL|e.JK]="HJKL",e[e.WASD=e.WS|e.AD]="WASD",e[e.All=e.ArrowAll|e.HJKL|e.HomeAndEnd|e.PageUpDown|e.WASD|e.Tab]="All"}(Mr||(Mr={}));const Dr={ArrowLeft:Mr.ArrowHorizontal,ArrowDown:Mr.ArrowVertical,ArrowUp:Mr.ArrowVertical,ArrowRight:Mr.ArrowHorizontal,h:Mr.HL,j:Mr.JK,k:Mr.JK,l:Mr.HL,a:Mr.AD,s:Mr.WS,w:Mr.WS,d:Mr.AD,Tab:Mr.Tab,Home:Mr.HomeAndEnd,End:Mr.HomeAndEnd,PageUp:Mr.PageUpDown,PageDown:Mr.PageUpDown},Wr={ArrowLeft:"previous",ArrowDown:"next",ArrowUp:"previous",ArrowRight:"next",h:"previous",j:"next",k:"previous",l:"next",a:"previous",s:"next",w:"previous",d:"next",Tab:"next",Home:"start",End:"end",PageUp:"start",PageDown:"end"};function Fr(e){const t=Wr[e.key];if("Tab"===e.key&&e.shiftKey)return"previous";const r=Or();if(r&&e.metaKey||!r&&e.ctrlKey){if("ArrowLeft"===e.key||"ArrowUp"===e.key)return"start";if("ArrowRight"===e.key||"ArrowDown"===e.key)return"end"}return t}function _r(e,t){var r,o,a,n;const i=[],l=new WeakMap,d=null!==(r=null==t?void 0:t.bindKeys)&&void 0!==r?r:(null!=t&&t.getNextFocusable?Mr.ArrowAll:Mr.ArrowVertical)|Mr.HomeAndEnd,s=null!==(o=null==t?void 0:t.focusOutBehavior)&&void 0!==o?o:"stop",c=null!==(a=null==t?void 0:t.focusInStrategy)&&void 0!==a?a:"previous",f=null==t?void 0:t.activeDescendantControl,g=null==t?void 0:t.onActiveDescendantChanged;let u;function p(){return i[0]}function b(e,t=!1){const r=u;u=e,f?e&&document.activeElement===f?h(r,e,t):m():(r&&r!==e&&l.has(r)&&r.setAttribute("tabindex","-1"),null==e||e.setAttribute("tabindex","0"))}function h(t,r,o=!1){r.id||r.setAttribute("id",Hr()),t&&t!==r&&t.removeAttribute("data-is-active-descendant"),f&&(o||f.getAttribute("aria-activedescendant")!==r.id)&&(f.setAttribute("aria-activedescendant",r.id),e.setAttribute("data-has-active-descendant",r.id),r.setAttribute("data-is-active-descendant",o?"activated-directly":"activated-indirectly"),null==g||g(r,t,o))}function m(t=u){"first"===c&&(u=void 0),null==f||f.removeAttribute("aria-activedescendant"),e.removeAttribute("data-has-active-descendant"),null==t||t.removeAttribute("data-is-active-descendant"),null==g||g(void 0,t,!1)}function v(...e){const r=e.filter((e=>{var r,o;return null===(r=null==t||null===(o=t.focusableElementFilter)||void 0===o?void 0:o.call(t,e))||void 0===r||r}));if(0===r.length)return;const o=i.findIndex((e=>(e.compareDocumentPosition(r[0])&Node.DOCUMENT_POSITION_PRECEDING)>0));i.splice(-1===o?i.length:o,0,...r);for(const e of r)l.has(e)||l.set(e,e.getAttribute("tabindex")),e.setAttribute("tabindex","-1");u||b(p())}function x(...e){for(const t of e){const e=i.indexOf(t);e>=0&&i.splice(e,1);const r=l.get(t);if(void 0!==r&&(null===r?t.removeAttribute("tabindex"):t.setAttribute("tabindex",r),l.delete(t)),t===u){b(p())}}}v(...Br(e)),b(p());new MutationObserver((e=>{for(const t of e)for(const e of t.removedNodes)e instanceof HTMLElement&&x(...Br(e));for(const t of e)for(const e of t.addedNodes)e instanceof HTMLElement&&v(...Br(e))})).observe(e,{subtree:!0,childList:!0});const y=new AbortController,w=null!==(n=null==t?void 0:t.abortSignal)&&void 0!==n?n:y.signal;let B;w.addEventListener("abort",(()=>{x(...i)})),e.addEventListener("mousedown",(e=>{e.target instanceof HTMLElement&&e.target!==document.activeElement&&(B=i.indexOf(e.target))}),{signal:w}),f?(e.addEventListener("focusin",(e=>{e.target instanceof HTMLElement&&i.includes(e.target)&&(f.focus(),b(e.target))})),e.addEventListener("mousemove",(({target:e})=>{if(!(e instanceof Node))return;const t=i.find((t=>t.contains(e)));t&&b(t)}),{signal:w,capture:!0}),f.addEventListener("focusin",(()=>{u?h(void 0,u):b(p())})),f.addEventListener("focusout",(()=>{m()}))):e.addEventListener("focusin",(t=>{if(t.target instanceof HTMLElement)if(void 0!==B)B>=0&&i[B]!==u&&b(i[B]),B=void 0;else if("previous"===c)b(t.target);else if("closest"===c||"first"===c){if(t.relatedTarget instanceof Element&&!e.contains(t.relatedTarget)){const e="previous"===k?i.length-1:0,t=i[e];return void(null==t||t.focus())}b(t.target)}else if("function"==typeof c)if(t.relatedTarget instanceof Element&&!e.contains(t.relatedTarget)){const e=c(t.relatedTarget);if((e?i.indexOf(e):-1)>=0&&e instanceof HTMLElement)return void e.focus();console.warn("Element requested is not a known focusable element.")}else b(t.target);k=void 0}),{signal:w});const $=null!=f?f:e;let k;return"closest"===c&&document.addEventListener("keydown",(e=>{"Tab"===e.key&&(k=Fr(e))}),{signal:w,capture:!0}),$.addEventListener("keydown",(r=>{if(r.key in Wr){const a=Dr[r.key];if(!r.defaultPrevented&&(a&d)>0&&!function(e,t){const r=e.key,o=[...r].length,a=t instanceof HTMLInputElement&&"text"===t.type||t instanceof HTMLTextAreaElement;if(a&&(1===o||"Home"===r||"End"===r))return!0;if(t instanceof HTMLSelectElement){if(1===o)return!0;if("ArrowDown"===r&&Or()&&!e.metaKey)return!0;if("ArrowDown"===r&&!Or()&&e.altKey)return!0}if(t instanceof HTMLTextAreaElement&&("PageUp"===r||"PageDown"===r))return!0;if(a){const e=t,o=0===e.selectionStart&&0===e.selectionEnd,a=e.selectionStart===e.value.length&&e.selectionEnd===e.value.length;if("ArrowLeft"===r&&!o)return!0;if("ArrowRight"===r&&!a)return!0;if(e instanceof HTMLTextAreaElement){if("ArrowUp"===r&&!o)return!0;if("ArrowDown"===r&&!a)return!0}}return!1}(r,document.activeElement)){const a=Fr(r);let n;var o;if(null!=t&&t.getNextFocusable)n=t.getNextFocusable(a,null!==(o=document.activeElement)&&void 0!==o?o:void 0,r);if(!n){const t=function(){if(!u)return 0;const t=i.indexOf(u);return-1!==t?t:u===e?-1:0}();let o=t;"previous"===a?o-=1:"start"===a?o=0:"next"===a?o+=1:o=i.length-1,o<0&&(o="wrap"===s&&"Tab"!==r.key?i.length-1:0),o>=i.length&&(o="wrap"===s&&"Tab"!==r.key?0:i.length-1),t!==o&&(n=i[o])}f?b(n||u,!0):n&&(k=a,n.focus()),("Tab"!==r.key||n)&&r.preventDefault()}}}),{signal:w}),y}var jr={small:16,medium:32,large:64};function Ur(e){var t=e["aria-label"],r=e.className,o=e.fill,a=void 0===o?"currentColor":o,n=e.size,i=e.verticalAlign,l=e.svgDataByHeight,d=jr[n]||n,s=function(e,t){return e.map((function(e){return parseInt(e,10)})).reduce((function(e,r){return r<=t?r:e}),e[0])}(Object.keys(l),d),c=l[s].width;return{"aria-hidden":t?"false":"true","aria-label":t,role:"img",className:r,viewBox:"0 0 "+c+" "+s,width:d*(c/s),height:d,fill:a,style:{display:"inline-block",userSelect:"none",verticalAlign:i},dangerouslySetInnerHTML:{__html:l[s].path}}}var Gr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e};function Vr(t){return e.createElement("svg",Ur(Gr({},t,{svgDataByHeight:{16:{width:16,path:'<path fill-rule="evenodd" d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"></path>'},24:{width:24,path:'<path fill-rule="evenodd" d="M21.03 5.72a.75.75 0 010 1.06l-11.5 11.5a.75.75 0 01-1.072-.012l-5.5-5.75a.75.75 0 111.084-1.036l4.97 5.195L19.97 5.72a.75.75 0 011.06 0z"></path>'}}})))}function Kr(t){return e.createElement("svg",Ur(Gr({},t,{svgDataByHeight:{16:{width:16,path:'<path fill-rule="evenodd" d="M5 3.254V3.25v.005a.75.75 0 110-.005v.004zm.45 1.9a2.25 2.25 0 10-1.95.218v5.256a2.25 2.25 0 101.5 0V7.123A5.735 5.735 0 009.25 9h1.378a2.251 2.251 0 100-1.5H9.25a4.25 4.25 0 01-3.8-2.346zM12.75 9a.75.75 0 100-1.5.75.75 0 000 1.5zm-8.5 4.5a.75.75 0 100-1.5.75.75 0 000 1.5z"></path>'},24:{width:24,path:'<path fill-rule="evenodd" d="M5.75 21a1.75 1.75 0 110-3.5 1.75 1.75 0 010 3.5zM2.5 19.25a3.25 3.25 0 106.5 0 3.25 3.25 0 00-6.5 0zM5.75 6.5a1.75 1.75 0 110-3.5 1.75 1.75 0 010 3.5zM2.5 4.75a3.25 3.25 0 106.5 0 3.25 3.25 0 00-6.5 0zM18.25 15a1.75 1.75 0 110-3.5 1.75 1.75 0 010 3.5zM15 13.25a3.25 3.25 0 106.5 0 3.25 3.25 0 00-6.5 0z"></path><path fill-rule="evenodd" d="M6.5 7.25c0 2.9 2.35 5.25 5.25 5.25h4.5V14h-4.5A6.75 6.75 0 015 7.25h1.5z"></path><path fill-rule="evenodd" d="M5.75 16.75A.75.75 0 006.5 16V8A.75.75 0 005 8v8c0 .414.336.75.75.75z"></path>'}}})))}function qr(t){return e.createElement("svg",Ur(Gr({},t,{svgDataByHeight:{16:{width:16,path:'<path fill-rule="evenodd" d="M7.177 3.073L9.573.677A.25.25 0 0110 .854v4.792a.25.25 0 01-.427.177L7.177 3.427a.25.25 0 010-.354zM3.75 2.5a.75.75 0 100 1.5.75.75 0 000-1.5zm-2.25.75a2.25 2.25 0 113 2.122v5.256a2.251 2.251 0 11-1.5 0V5.372A2.25 2.25 0 011.5 3.25zM11 2.5h-1V4h1a1 1 0 011 1v5.628a2.251 2.251 0 101.5 0V5A2.5 2.5 0 0011 2.5zm1 10.25a.75.75 0 111.5 0 .75.75 0 01-1.5 0zM3.75 12a.75.75 0 100 1.5.75.75 0 000-1.5z"></path>'},24:{width:24,path:'<path fill-rule="evenodd" d="M4.75 3a1.75 1.75 0 100 3.5 1.75 1.75 0 000-3.5zM1.5 4.75a3.25 3.25 0 116.5 0 3.25 3.25 0 01-6.5 0zM4.75 17.5a1.75 1.75 0 100 3.5 1.75 1.75 0 000-3.5zM1.5 19.25a3.25 3.25 0 116.5 0 3.25 3.25 0 01-6.5 0zm17.75-1.75a1.75 1.75 0 100 3.5 1.75 1.75 0 000-3.5zM16 19.25a3.25 3.25 0 116.5 0 3.25 3.25 0 01-6.5 0z"></path><path fill-rule="evenodd" d="M4.75 7.25A.75.75 0 015.5 8v8A.75.75 0 014 16V8a.75.75 0 01.75-.75zm8.655-5.53a.75.75 0 010 1.06L12.185 4h4.065A3.75 3.75 0 0120 7.75v8.75a.75.75 0 01-1.5 0V7.75a2.25 2.25 0 00-2.25-2.25h-4.064l1.22 1.22a.75.75 0 01-1.061 1.06l-2.5-2.5a.75.75 0 010-1.06l2.5-2.5a.75.75 0 011.06 0z"></path>'}}})))}function Xr(t){return e.createElement("svg",Ur(Gr({},t,{svgDataByHeight:{16:{width:16,path:'<path fill-rule="evenodd" d="M1.5 8a6.5 6.5 0 0110.65-5.003.75.75 0 00.959-1.153 8 8 0 102.592 8.33.75.75 0 10-1.444-.407A6.5 6.5 0 011.5 8zM8 12a1 1 0 100-2 1 1 0 000 2zm0-8a.75.75 0 01.75.75v3.5a.75.75 0 11-1.5 0v-3.5A.75.75 0 018 4zm4.78 4.28l3-3a.75.75 0 00-1.06-1.06l-2.47 2.47-.97-.97a.749.749 0 10-1.06 1.06l1.5 1.5a.75.75 0 001.06 0z"></path>'},24:{width:24,path:'<path d="M2.5 12c0-5.24 4.288-9.5 9.593-9.5a9.608 9.608 0 017.197 3.219.75.75 0 001.12-.998A11.108 11.108 0 0012.093 1C5.973 1 1 5.919 1 12s4.973 11 11.093 11c5.403 0 9.91-3.832 10.893-8.915a.75.75 0 10-1.472-.285c-.848 4.381-4.74 7.7-9.421 7.7C6.788 21.5 2.5 17.24 2.5 12z"></path><path d="M12 17a1 1 0 100-2 1 1 0 000 2zm0-10a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0112 7zm11.28.78a.75.75 0 00-1.06-1.06l-3.47 3.47-1.47-1.47a.75.75 0 10-1.06 1.06l2 2a.75.75 0 001.06 0l4-4z"></path>'}}})))}function Yr(t){return e.createElement("svg",Ur(Gr({},t,{svgDataByHeight:{16:{width:16,path:'<path fill-rule="evenodd" d="M8 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM0 8a8 8 0 1116 0A8 8 0 010 8zm9 3a1 1 0 11-2 0 1 1 0 012 0zm-.25-6.25a.75.75 0 00-1.5 0v3.5a.75.75 0 001.5 0v-3.5z"></path>'},24:{width:24,path:'<path d="M12 7a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0112 7zm1 9a1 1 0 11-2 0 1 1 0 012 0z"></path><path fill-rule="evenodd" d="M12 1C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1zM2.5 12a9.5 9.5 0 1119 0 9.5 9.5 0 01-19 0z"></path>'}}})))}function Jr(t){return e.createElement("svg",Ur(Gr({},t,{svgDataByHeight:{16:{width:16,path:'<path fill-rule="evenodd" d="M7.75 2a.75.75 0 01.75.75V7h4.25a.75.75 0 110 1.5H8.5v4.25a.75.75 0 11-1.5 0V8.5H2.75a.75.75 0 010-1.5H7V2.75A.75.75 0 017.75 2z"></path>'},24:{width:24,path:'<path fill-rule="evenodd" d="M11.75 4.5a.75.75 0 01.75.75V11h5.75a.75.75 0 010 1.5H12.5v5.75a.75.75 0 01-1.5 0V12.5H5.25a.75.75 0 010-1.5H11V5.25a.75.75 0 01.75-.75z"></path>'}}})))}function Zr(t){return e.createElement("svg",Ur(Gr({},t,{svgDataByHeight:{16:{width:16,path:'<path fill-rule="evenodd" d="M8 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM0 8a8 8 0 1116 0A8 8 0 010 8zm9 3a1 1 0 11-2 0 1 1 0 012 0zM6.92 6.085c.081-.16.19-.299.34-.398.145-.097.371-.187.74-.187.28 0 .553.087.738.225A.613.613 0 019 6.25c0 .177-.04.264-.077.318a.956.956 0 01-.277.245c-.076.051-.158.1-.258.161l-.007.004a7.728 7.728 0 00-.313.195 2.416 2.416 0 00-.692.661.75.75 0 001.248.832.956.956 0 01.276-.245 6.3 6.3 0 01.26-.16l.006-.004c.093-.057.204-.123.313-.195.222-.149.487-.355.692-.662.214-.32.329-.702.329-1.15 0-.76-.36-1.348-.863-1.725A2.76 2.76 0 008 4c-.631 0-1.155.16-1.572.438-.413.276-.68.638-.849.977a.75.75 0 101.342.67z"></path>'},24:{width:24,path:'<path d="M10.97 8.265a1.45 1.45 0 00-.487.57.75.75 0 01-1.341-.67c.2-.402.513-.826.997-1.148C10.627 6.69 11.244 6.5 12 6.5c.658 0 1.369.195 1.934.619a2.45 2.45 0 011.004 2.006c0 1.033-.513 1.72-1.027 2.215-.19.183-.399.358-.579.508l-.147.123a4.329 4.329 0 00-.435.409v1.37a.75.75 0 11-1.5 0v-1.473c0-.237.067-.504.247-.736.22-.28.486-.517.718-.714l.183-.153.001-.001c.172-.143.324-.27.47-.412.368-.355.569-.676.569-1.136a.953.953 0 00-.404-.806C12.766 8.118 12.384 8 12 8c-.494 0-.814.121-1.03.265zM13 17a1 1 0 11-2 0 1 1 0 012 0z"></path><path fill-rule="evenodd" d="M12 1C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1zM2.5 12a9.5 9.5 0 1119 0 9.5 9.5 0 01-19 0z"></path>'}}})))}function Qr(t){return e.createElement("svg",Ur(Gr({},t,{svgDataByHeight:{16:{width:16,path:'<path d="M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"></path>'},24:{width:24,path:'<path d="M11.646 15.146L5.854 9.354a.5.5 0 01.353-.854h11.586a.5.5 0 01.353.854l-5.793 5.792a.5.5 0 01-.707 0z"></path>'}}})))}function eo(t){return e.createElement("svg",Ur(Gr({},t,{svgDataByHeight:{16:{width:16,path:'<path fill-rule="evenodd" d="M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"></path>'},24:{width:24,path:'<path fill-rule="evenodd" d="M5.72 5.72a.75.75 0 011.06 0L12 10.94l5.22-5.22a.75.75 0 111.06 1.06L13.06 12l5.22 5.22a.75.75 0 11-1.06 1.06L12 13.06l-5.22 5.22a.75.75 0 01-1.06-1.06L10.94 12 5.72 6.78a.75.75 0 010-1.06z"></path>'}}})))}Vr.defaultProps={className:"octicon octicon-check",size:16,verticalAlign:"text-bottom"},Kr.defaultProps={className:"octicon octicon-git-merge",size:16,verticalAlign:"text-bottom"},qr.defaultProps={className:"octicon octicon-git-pull-request",size:16,verticalAlign:"text-bottom"},Xr.defaultProps={className:"octicon octicon-issue-closed",size:16,verticalAlign:"text-bottom"},Yr.defaultProps={className:"octicon octicon-issue-opened",size:16,verticalAlign:"text-bottom"},Jr.defaultProps={className:"octicon octicon-plus",size:16,verticalAlign:"text-bottom"},Zr.defaultProps={className:"octicon octicon-question",size:16,verticalAlign:"text-bottom"},Qr.defaultProps={className:"octicon octicon-triangle-down",size:16,verticalAlign:"text-bottom"},eo.defaultProps={className:"octicon octicon-x",size:16,verticalAlign:"text-bottom"};var to=p(["position:relative;display:inline-block;font-family:inherit;font-weight:",";line-height:20px;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;border-radius:",";appearance:none;text-decoration:none;text-align:center;&:hover{text-decoration:none;}&:focus{outline:none;}&:disabled{cursor:default;}&:disabled svg{opacity:0.6;}"],Nt("fontWeights.bold"),Nt("radii.2"));const ro={display:"inline-block",padding:"0px 6px",backgroundColor:"neutral.muted",borderRadius:"50%",marginLeft:"8px"},oo=({count:t})=>e.createElement(or,{sx:ro},t);oo.displayName="Counter";var ao=oo;const no=ue({prop:"size",variants:{small:{fontSize:0},medium:{fontSize:1},large:{fontSize:2}}}),io=f.button`
|
23
23
|
${to}
|
24
|
-
${e=>((e,t="default")=>({default:`\n
|
24
|
+
${e=>((e,t="default")=>({default:`\n color: ${Nt("colors.btn.text")({theme:e})};\n background-color: ${Nt("colors.btn.bg")({theme:e})};\n border-width: 1px;\n border-style: solid;\n border-color: ${Nt("colors.btn.border")({theme:e})};\n box-shadow: ${Nt("shadows.btn.shadow")({theme:e}),Nt("shadows.btn.insetShadow")({theme:e})};\n &:hover:not([disabled]) {\n background-color: ${Nt("colors.btn.hoverBg")({theme:e})};\n }\n // focus must come before :active so that the active box shadow overrides\n &:focus:not([disabled]) {\n box-shadow: ${Nt("shadows.btn.focusShadow")({theme:e})};\n }\n &:active:not([disabled]) {\n background-color: ${Nt("colors.btn.selectedBg")({theme:e})};\n box-shadow: ${Nt("shadows.btn.shadowActive")({theme:e})};\n }\n &:disabled {\n color: ${Nt("colors.primer.fg.disabled")({theme:e})};\n background-color: ${Nt("colors.btn.disabledBg")({theme:e})};\n }\n `,primary:`\n color: ${Nt("colors.btn.primary.text")({theme:e})};\n background-color: ${Nt("colors.btn.primary.bg")({theme:e})};\n border-width: 1px;\n border-style: solid;\n border-color: ${Nt("colors.border.subtle")({theme:e})};\n box-shadow: ${Nt("shadows.btn.primary.shadow")({theme:e})};\n\n &:hover:not([disabled]) {\n color: ${Nt("colors.btn.primary.hoverText")({theme:e})};\n background-color: ${Nt("colors.btn.primary.hoverBg")({theme:e})};\n }\n // focus must come before :active so that the active box shadow overrides\n &:focus:not([disabled]) {\n box-shadow: ${Nt("shadows.btn.primary.focusShadow")({theme:e})};\n }\n\n &:active:not([disabled]) {\n background-color: ${Nt("colors.btn.primary.selectedBg")({theme:e})};\n box-shadow: ${Nt("shadows.btn.primary.selectedShadow")({theme:e})};\n }\n\n &:disabled {\n color: ${Nt("colors.btn.primary.disabledText")({theme:e})};\n background-color: ${Nt("colors.btn.primary.disabledBg")({theme:e})};\n }`,danger:`\n color: ${Nt("colors.btn.danger.text")({theme:e})};\n border: 1px solid ${Nt("colors.btn.border")({theme:e})};\n background-color: ${Nt("colors.btn.bg")({theme:e})};\n box-shadow: ${Nt("shadows.btn.shadow")({theme:e})};\n\n &:hover:not([disabled]) {\n color: ${Nt("colors.btn.danger.hoverText")({theme:e})};\n background-color: ${Nt("colors.btn.danger.hoverBg")({theme:e})};\n border-color: ${Nt("colors.btn.danger.hoverBorder")({theme:e})};\n box-shadow: ${Nt("shadows.btn.danger.hoverShadow")({theme:e})};\n }\n // focus must come before :active so that the active box shadow overrides\n &:focus:not([disabled]) {\n border-color: ${Nt("colors.btn.danger.focusBorder")({theme:e})};\n box-shadow: ${Nt("shadows.btn.danger.focusShadow")({theme:e})};\n }\n\n &:active:not([disabled]) {\n color: ${Nt("colors.btn.danger.selectedText")({theme:e})};\n background-color: ${Nt("colors.btn.danger.selectedBg")({theme:e})};\n box-shadow: ${Nt("shadows.btn.danger.selectedShadow")({theme:e})};\n border-color: ${Nt("colors.btn.danger.selectedBorder")({theme:e})};\n }\n\n &:disabled {\n color: ${Nt("colors.btn.danger.disabledText")({theme:e})};\n background-color: ${Nt("colors.btn.danger.disabledBg")({theme:e})};\n border-color: ${Nt("colors.btn.danger.disabledBorder")({theme:e})};\n }\n `,invisible:`\n color: ${Nt("colors.accent.fg")({theme:e})};\n background-color: transparent;\n border: 0;\n border-radius: ${Nt("radii.2")({theme:e})};\n box-shadow: none;\n \n &:disabled {\n color: ${Nt("colors.primer.fg.disabled")({theme:e})};\n }\n &:focus:not([disabled]) {\n box-shadow: ${Nt("shadows.btn.focusShadow")({theme:e})};\n }\n &:hover:not([disabled]) {\n background-color: ${Nt("colors.btn.hoverBg")({theme:e})};\n }\n &:active:not([disabled]) {\n background-color: ${Nt("colors.btn.selectedBg")({theme:e})};\n }\n `}[t]))(e.theme,e.variant)}
|
25
|
+
${e=>((e="medium",t="default",r)=>{let o,a;switch(e){case"small":o=3,a=12;break;case"large":o=9,a=20;break;case"medium":default:o=5,a=16}return r&&(a=o+2),"invisible"===t&&(o+=1),`\n padding:${o}px ${a}px;\n `})(e.size,e.variant,e.iconOnly)}
|
25
26
|
${no}
|
26
|
-
${e=>e.iconOnly?"padding: 4px 6px;":""}
|
27
27
|
${rr}
|
28
28
|
${Ne}
|
29
|
-
`,lo=i((({children:t,...r},o)=>{const{icon:a,caret:n}=r;let
|
29
|
+
`,lo=i((({children:t,...r},o)=>{const{icon:a,caret:n,size:i}=r;let l=!1;a&&!t&&(l=!0);const d={display:"inline-block",...l?{}:{pr:3}};return e.createElement(io,Pt({ref:o},r,{iconOnly:l}),a&&e.createElement(or,{sx:d,"aria-hidden":!l},e.createElement(a,{size:i})),t,n&&e.createElement(or,{sx:{display:"inline-block",pl:3},"aria-hidden":!0},e.createElement(Qr,{size:i})))}));lo.displayName="Button",lo.defaultProps={size:"medium",variant:"default"};var so=Object.assign(lo,{Counter:ao});const co={"outside-top":["outside-bottom","outside-right","outside-left","outside-bottom"],"outside-bottom":["outside-top","outside-right","outside-left","outside-bottom"],"outside-left":["outside-right","outside-bottom","outside-top","outside-bottom"],"outside-right":["outside-left","outside-bottom","outside-top","outside-bottom"]};function fo(e,t,r={}){const o=function(e){let t=e.parentNode;for(;null!==t;){if(t instanceof HTMLElement&&"static"!==getComputedStyle(t).position)return t;t=t.parentNode}return document.body}(e),a=function(e){let t=e;for(;null!==t&&t!==document.body;){if("visible"!==getComputedStyle(t).overflow)break;t=t.parentNode}const r=t!==document.body&&t instanceof HTMLElement?t:document.body,o=r.getBoundingClientRect(),a=getComputedStyle(r),[n,i,l,d]=[a.borderTopWidth,a.borderLeftWidth,a.borderRightWidth,a.borderBottomWidth].map((e=>parseInt(e,10)||0));return{top:o.top+n,left:o.left+i,width:o.width-l-i,height:Math.max(o.height-n-d,r===document.body?window.innerHeight:-1/0)}}(o),n=getComputedStyle(o),i=o.getBoundingClientRect(),[l,d]=[n.borderTopWidth,n.borderLeftWidth].map((e=>parseInt(e,10)||0));return function(e,t,r,o,{side:a,align:n,allowOutOfBounds:i,anchorOffset:l,alignmentOffset:d}){const s={top:e.top-t.top,left:e.left-t.left,width:e.width,height:e.height};let c=mo(r,o,a,n,l,d),f=a;if(c.top-=t.top,c.left-=t.left,!i){const i=co[a];let g=0;if(i){let e=a;for(;g<i.length&&vo(e,c,s,r);){const a=i[g++];e=a,c=mo(r,o,a,n,l,d),c.top-=t.top,c.left-=t.left,f=a}}c.top<s.top&&(c.top=s.top),c.left<s.left&&(c.left=s.left),c.left+r.width>e.width+s.left&&(c.left=e.width+s.left-r.width),i&&g<i.length&&c.top+r.height>e.height+s.top&&(c.top=e.height+s.top-r.height)}return{...c,anchorSide:f}}(a,{top:i.top+l,left:i.left+d},e.getBoundingClientRect(),t instanceof Element?t.getBoundingClientRect():t,function(e={}){var t,r,o,a,n;const i=null!==(t=e.side)&&void 0!==t?t:go,l=null!==(r=e.align)&&void 0!==r?r:uo;return{side:i,align:l,anchorOffset:null!==(o=e.anchorOffset)&&void 0!==o?o:"inside-center"===i?0:po,alignmentOffset:null!==(a=e.alignmentOffset)&&void 0!==a?a:"center"!==l&&i.startsWith("inside")?bo:0,allowOutOfBounds:null!==(n=e.allowOutOfBounds)&&void 0!==n?n:ho}}(r))}const go="outside-bottom",uo="start",po=4,bo=4,ho=!1;function mo(e,t,r,o,a,n){const i=t.left+t.width,l=t.top+t.height;let d=-1,s=-1;return"outside-top"===r?d=t.top-a-e.height:"outside-bottom"===r?d=l+a:"outside-left"===r?s=t.left-a-e.width:"outside-right"===r&&(s=i+a),"outside-top"!==r&&"outside-bottom"!==r||(s="start"===o?t.left+n:"center"===o?t.left-(e.width-t.width)/2+n:i-e.width-n),"outside-left"!==r&&"outside-right"!==r||(d="start"===o?t.top+n:"center"===o?t.top-(e.height-t.height)/2+n:l-e.height-n),"inside-top"===r?d=t.top+a:"inside-bottom"===r?d=l-a-e.height:"inside-left"===r?s=t.left+a:"inside-right"===r?s=i-a-e.width:"inside-center"===r&&(s=(i+t.left)/2-e.width/2+a),"inside-top"===r||"inside-bottom"===r?s="start"===o?t.left+n:"center"===o?t.left-(e.width-t.width)/2+n:i-e.width-n:"inside-left"!==r&&"inside-right"!==r&&"inside-center"!==r||(d="start"===o?t.top+n:"center"===o?t.top-(e.height-t.height)/2+n:l-e.height-n),{top:d,left:s}}function vo(e,t,r,o){return"outside-top"===e||"outside-bottom"===e?t.top<r.top||t.top+o.height>r.height+r.top:t.left<r.left||t.left+o.width>r.width+r.left}function xo(t,r=[]){const o=zr(null==t?void 0:t.floatingElementRef),a=zr(null==t?void 0:t.anchorElementRef),[n,i]=e.useState(void 0),l=e.useCallback((()=>{o.current instanceof Element&&a.current instanceof Element?i(fo(o.current,a.current,t)):i(void 0)}),[o,a,...r]);var d;return e.useLayoutEffect(l,[l]),d=l,e.useLayoutEffect((()=>{const e=new window.ResizeObserver((()=>d()));return e.observe(document.documentElement),()=>{e.disconnect()}}),[d]),{floatingElementRef:o,anchorElementRef:a,position:n}}Lr();const yo=[];let wo;function Bo(e,t=!1){return Br(e,{reverse:t,strict:!0,onlyTabbable:!0}).next().value}function $o(e,t,r){const o=new AbortController,a=null!=r?r:o.signal;let n;function i(r){if(r instanceof HTMLElement&&document.contains(e)){if(e.contains(r))return void(n=r);if(n&&kr(n)&&e.contains(n))return void n.focus();if(t&&e.contains(t))return void t.focus();{const t=null===e.getAttribute("tabindex");return t&&e.setAttribute("tabindex","-1"),e.focus(),void(t&&e.addEventListener("blur",(()=>e.removeAttribute("tabindex")),{once:!0}))}}}e.setAttribute("data-focus-trap","active");const l=function(e){const t=new AbortController;return e.addEventListener("abort",(()=>{t.abort()})),t}(a);if(e.addEventListener("keydown",(t=>{if("Tab"!==t.key||t.defaultPrevented)return;const{target:r}=t,o=Bo(e),a=Bo(e,!0);r===o&&t.shiftKey?(t.preventDefault(),null==a||a.focus()):r!==a||t.shiftKey||(t.preventDefault(),null==o||o.focus())}),{signal:l.signal}),wo){const e=wo;wo.container.setAttribute("data-focus-trap","suspended"),wo.controller.abort(),yo.push(e)}l.signal.addEventListener("abort",(()=>{wo=void 0})),a.addEventListener("abort",(()=>{e.removeAttribute("data-focus-trap");const t=yo.findIndex((t=>t.container===e));t>=0&&yo.splice(t,1),function(){const e=yo.pop();e&&$o(e.container,e.initialFocus,e.originalSignal)}()})),document.addEventListener("focus",(e=>{i(e.target)}),{signal:l.signal,capture:!0}),i(document.activeElement),wo={container:e,controller:l,initialFocus:t,originalSignal:a};const d=yo.findIndex((t=>t.container===e));if(d>=0&&yo.splice(d,1),!r)return o}function ko(t,r=[]){const o=zr(null==t?void 0:t.containerRef),a=zr(null==t?void 0:t.initialFocusRef),n=null==t?void 0:t.disabled,i=e.useRef(),l=e.useRef(null);function d(){var e;null===(e=i.current)||void 0===e||e.abort(),null!=t&&t.restoreFocusOnCleanUp&&l.current instanceof HTMLElement&&(l.current.focus(),l.current=null)}return l.current||null!=t&&t.disabled||(l.current=document.activeElement),e.useEffect((()=>{if(o.current instanceof HTMLElement){var e;if(!n)return i.current=$o(o.current,null!==(e=a.current)&&void 0!==e?e:void 0),()=>{d()};d()}}),[o,a,n,...r]),{containerRef:o,initialFocusRef:a}}function To(t={},r=[]){const o=zr(t.containerRef),n=!!t.activeDescendantFocus,i=zr("boolean"!=typeof t.activeDescendantFocus&&t.activeDescendantFocus?t.activeDescendantFocus:void 0),l=t.disabled,d=e.useRef();return a((()=>{if(o.current instanceof HTMLElement&&(!n||i.current instanceof HTMLElement)){if(!l){var e;const r={...t,activeDescendantControl:null!==(e=i.current)&&void 0!==e?e:void 0};return d.current=_r(o.current,r),()=>{var e;null===(e=d.current)||void 0===e||e.abort()}}var r;null===(r=d.current)||void 0===r||r.abort()}}),[l,...r]),{containerRef:o,activeDescendantControlRef:i}}const So={};function Eo(){const e=So.__default__;if(!e||!document.body.contains(e)){let e=document.getElementById("__primerPortalRoot__");if(!(e instanceof Element)){e=document.createElement("div"),e.setAttribute("id","__primerPortalRoot__"),e.style.position="absolute",e.style.top="0",e.style.left="0";const t=document.querySelector("[data-portal-root]");t?t.appendChild(e):document.body.appendChild(e)}!function(e,t="__default__"){So[t]=e}(e)}}var Co=({children:t,onMount:r,containerName:o})=>{const a=document.createElement("div");a.style.position="relative",a.style.zIndex="1";const n=e.useRef(a);return e.useLayoutEffect((()=>{let e=o;void 0===e&&(e="__default__",Eo());const t=So[e];if(!t)throw new Error(`Portal container '${o}' is not yet registered. Container must be registered with registerPortal before use.`);const a=n.current;return t.appendChild(a),null==r||r(),()=>{t.removeChild(a)}}),[n]),v(t,n.current)};function zo(...t){const o=r(null);return e.useLayoutEffect((()=>{function e(e=null){for(const r of t){if(!r)return;"function"==typeof r?r(e):r.current=e}}return e(o.current),()=>{e(o.current)}}),[...t,o.current]),o}const No={prefix:String(Math.round(1e10*Math.random())),current:0},Io=e.createContext(No);function Ao(t){let r=l(Io),o=n((()=>({prefix:r===No?"":r.prefix+"-"+ ++r.current,current:0})),[r]);return e.createElement(Io.Provider,{value:o},t.children)}let Ro=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function Lo(e){let t=l(Io);return t!==No||Ro||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),n((()=>e||"react-aria"+t.prefix+"-"+ ++t.current),[e])}const Oo=f("div")`
|
30
30
|
position: fixed;
|
31
31
|
top: 0;
|
32
32
|
left: 0;
|
@@ -362,6 +362,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
362
362
|
border-radius: ${Nt("radii.2")};
|
363
363
|
outline: none;
|
364
364
|
box-shadow: ${Nt("shadows.primer.shadow.inset")};
|
365
|
+
cursor: text;
|
365
366
|
|
366
367
|
${e=>e.hasIcon?p(["padding:0;"]):p(["padding:6px 12px;"])}
|
367
368
|
|
@@ -392,7 +393,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
392
393
|
${we}
|
393
394
|
${Ua}
|
394
395
|
${rr};
|
395
|
-
`;const Va=e.forwardRef((({icon:t,block:r,className:o,contrast:a,disabled:n,sx:i,theme:l,width:d,minWidth:s,maxWidth:c,variant:f,...g},u)=>{const p=_a(o,"TextInput-wrapper");return e.createElement(Ga,{block:r,className:p,contrast:a,disabled:n,hasIcon:!!t,sx:i,theme:l,width:d,minWidth:s,maxWidth:c,variant:f},t&&e.createElement(t,{className:"TextInput-icon"}),e.createElement(ja,Pt({ref:u,disabled:n},g)))}));Va.defaultProps={type:"text"},Va.displayName="TextInput";var Ka=Va;const qa=e.forwardRef((({as:r=Ka,onFocus:n,onBlur:i,onChange:d,onKeyDown:s,onKeyUp:c,onKeyPress:f,value:g,...u},p)=>{const b=l(Da);if(null===b)throw new Error("AutocompleteContext returned null values");const{activeDescendantRef:h,autocompleteSuggestion:m="",id:v,inputRef:x,inputValue:y="",isMenuDirectlyActivated:w,setInputValue:B,setShowMenu:$,showMenu:k}=b,T=zo(x,p),[S,E]=t(!0),C=o((e=>{n&&n(e),$(!0)}),[n,$]),z=o((e=>{i&&i(e),setTimeout((()=>{document.activeElement!==T.current&&$(!1)}),0)}),[i,$,T]),N=o((e=>{d&&d(e),B(e.currentTarget.value),k||$(!0)}),[d,B,$,k]),I=o((e=>{var t;s&&s(e),"Backspace"===e.key&&E(!1),"Escape"===e.key&&null!==(t=x.current)&&void 0!==t&&t.value&&(B(""),x.current.value="")}),[x,B,E,s]),A=o((e=>{c&&c(e),"Backspace"===e.key&&E(!0)}),[E,c]),R=o((e=>{if(f&&f(e),k&&"Enter"===e.key&&h.current){e.preventDefault(),e.nativeEvent.stopImmediatePropagation();const t=new KeyboardEvent(e.type,e.nativeEvent);h.current.dispatchEvent(t)}}),[h,k,f]);return a((()=>{x.current&&(m||(x.current.value=y),S&&m&&(y||w)&&(x.current.value=m,0===m.toLowerCase().indexOf(y.toLowerCase())&&x.current.setSelectionRange(y.length,m.length)))}),[m,y,x,w]),a((()=>{g&&B(g.toString())}),[g,B]),e.createElement(r,Pt({onFocus:C,onBlur:z,onChange:N,onKeyDown:I,onKeyPress:R,onKeyUp:A,ref:T,"aria-controls":`${v}-listbox`,"aria-autocomplete":"both",role:"combobox","aria-expanded":k,"aria-haspopup":"listbox","aria-owns":`${v}-listbox`,autocomplete:"off"},u))}));qa.displayName="AutocompleteInput";var Xa=qa;const Ya=(e,t,r="vertical",o=8,a=0,n="smooth")=>{const i="vertical"===r?"top":"left",l="vertical"===r?"bottom":"right",d="vertical"===r?"scrollTop":"scrollLeft",{[i]:s,[l]:c}=e.getBoundingClientRect(),{[i]:f,[l]:g}=t.getBoundingClientRect(),u=c>g-o;if(s<f+a){const e=s-f+t[d];t.scrollTo({behavior:n,[i]:e-a})}else if(u){const e=c-g+t[d];t.scrollTo({behavior:n,[i]:e+o})}};function Ja(o){const i=l(Da);if(null===i)throw new Error("AutocompleteContext returned null values");const{activeDescendantRef:d,id:s,inputRef:c,inputValue:f="",scrollContainerRef:g,setAutocompleteSuggestion:u,setShowMenu:p,setInputValue:b,setIsMenuDirectlyActivated:h,setSelectedItemLength:m,showMenu:v}=i,{items:x,selectedItemIds:y,sortOnCloseFn:w,emptyStateText:B,addNewItem:$,loading:k,selectionVariant:T,filterFn:S,"aria-labelledby":E,onOpenChange:C,onSelectedChange:z,customScrollContainerRef:N}=o,I=r(null),[A,R]=t(),[L,O]=t(x.map((({id:e})=>e))),M=n((()=>x.map((e=>({...e,role:"option",id:e.id,selected:"multiple"===T?y.includes(e.id):void 0,onAction:e=>{const t=y.filter((t=>t!==e.id)),r=y.includes(e.id)?t:[...t,e.id];var o,a;((z||(o=b,function(e){const{text:t=""}=Array.isArray(e)?e.slice(-1)[0]:e;o(t)}))(r.map((e=>function(e,t){return t.find((t=>t.id===e))}(e,x)))),"multiple"===T)?(b(""),u("")):(p(!1),null===(a=c.current)||void 0===a||a.setSelectionRange(c.current.value.length,c.current.value.length))}})))),[x,y,c,z,T,u,b,p]),P=n((()=>L.reduce(((e,t,r)=>(e[t]=r,e)),{})),[L]),H=n((()=>{return M.filter(S||(e=f,function(t,r){var o;return Boolean(null===(o=t.text)||void 0===o?void 0:o.toLowerCase().startsWith(e.toLowerCase()))})).sort(((e,t)=>P[e.id]-P[t.id]));var e}),[M,P,S,f]),D=n((()=>[...H,...$?[{...$,leadingVisual:()=>e.createElement(Jr,null),onAction:e=>{$.handleAddItem({...e,id:e.id||Hr(),leadingVisual:void 0}),"multiple"===T&&(b(""),u(""))}}]:[]]),[H,$,u,T,b]);return To({containerRef:I,focusOutBehavior:"wrap",focusableElementFilter:e=>!(e instanceof HTMLInputElement),activeDescendantFocus:c,onActiveDescendantChanged:(e,t,r)=>{if(d.current=e||null,e){const t=M.find((t=>t.id.toString()===e.getAttribute("data-id")));R(t),h(r)}e&&N&&N.current&&r?Ya(e,N.current):e&&g.current&&r&&Ya(e,g.current)}},[k]),a((()=>{var e;null!=A&&null!==(e=A.text)&&void 0!==e&&e.startsWith(f)&&!y.includes(A.id)?u(A.text):u("")}),[A,f,y,u]),a((()=>{const e=[...L].sort(w||(t=e=>((e,t)=>t.includes(e))(e,y),(e,r)=>t(e)===t(r)?0:t(e)?-1:1));var t;const r=e.length===L.length&&e.every(((e,t)=>e===L[t]));!1!==v||r||O(e),C&&C(Boolean(v))}),[v,C,y,w,L]),a((()=>{y.length&&m(y.length)}),[y,m]),e.createElement(or,{sx:v?{}:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},k?e.createElement(or,{p:3,display:"flex",justifyContent:"center"},e.createElement(
|
396
|
+
`;const Va=e.forwardRef((({icon:t,block:r,className:o,contrast:a,disabled:n,sx:i,theme:l,width:d,minWidth:s,maxWidth:c,variant:f,...g},u)=>{const p=_a(o,"TextInput-wrapper");return e.createElement(Ga,{block:r,className:p,contrast:a,disabled:n,hasIcon:!!t,sx:i,theme:l,width:d,minWidth:s,maxWidth:c,variant:f},t&&e.createElement(t,{className:"TextInput-icon"}),e.createElement(ja,Pt({ref:u,disabled:n},g)))}));Va.defaultProps={type:"text"},Va.displayName="TextInput";var Ka=Va;const qa=e.forwardRef((({as:r=Ka,onFocus:n,onBlur:i,onChange:d,onKeyDown:s,onKeyUp:c,onKeyPress:f,value:g,...u},p)=>{const b=l(Da);if(null===b)throw new Error("AutocompleteContext returned null values");const{activeDescendantRef:h,autocompleteSuggestion:m="",id:v,inputRef:x,inputValue:y="",isMenuDirectlyActivated:w,setInputValue:B,setShowMenu:$,showMenu:k}=b,T=zo(x,p),[S,E]=t(!0),C=o((e=>{n&&n(e),$(!0)}),[n,$]),z=o((e=>{i&&i(e),setTimeout((()=>{document.activeElement!==T.current&&$(!1)}),0)}),[i,$,T]),N=o((e=>{d&&d(e),B(e.currentTarget.value),k||$(!0)}),[d,B,$,k]),I=o((e=>{var t;s&&s(e),"Backspace"===e.key&&E(!1),"Escape"===e.key&&null!==(t=x.current)&&void 0!==t&&t.value&&(B(""),x.current.value="")}),[x,B,E,s]),A=o((e=>{c&&c(e),"Backspace"===e.key&&E(!0)}),[E,c]),R=o((e=>{if(f&&f(e),k&&"Enter"===e.key&&h.current){e.preventDefault(),e.nativeEvent.stopImmediatePropagation();const t=new KeyboardEvent(e.type,e.nativeEvent);h.current.dispatchEvent(t)}}),[h,k,f]);return a((()=>{x.current&&(m||(x.current.value=y),S&&m&&(y||w)&&(x.current.value=m,0===m.toLowerCase().indexOf(y.toLowerCase())&&x.current.setSelectionRange(y.length,m.length)))}),[m,y,x,w]),a((()=>{g&&B(g.toString())}),[g,B]),e.createElement(r,Pt({onFocus:C,onBlur:z,onChange:N,onKeyDown:I,onKeyPress:R,onKeyUp:A,ref:T,"aria-controls":`${v}-listbox`,"aria-autocomplete":"both",role:"combobox","aria-expanded":k,"aria-haspopup":"listbox","aria-owns":`${v}-listbox`,autocomplete:"off"},u))}));qa.displayName="AutocompleteInput";var Xa=qa;const Ya=(e,t,r="vertical",o=8,a=0,n="smooth")=>{const i="vertical"===r?"top":"left",l="vertical"===r?"bottom":"right",d="vertical"===r?"scrollTop":"scrollLeft",{[i]:s,[l]:c}=e.getBoundingClientRect(),{[i]:f,[l]:g}=t.getBoundingClientRect(),u=c>g-o;if(s<f+a){const e=s-f+t[d];t.scrollTo({behavior:n,[i]:e-a})}else if(u){const e=c-g+t[d];t.scrollTo({behavior:n,[i]:e+o})}};function Ja(o){const i=l(Da);if(null===i)throw new Error("AutocompleteContext returned null values");const{activeDescendantRef:d,id:s,inputRef:c,inputValue:f="",scrollContainerRef:g,setAutocompleteSuggestion:u,setShowMenu:p,setInputValue:b,setIsMenuDirectlyActivated:h,setSelectedItemLength:m,showMenu:v}=i,{items:x,selectedItemIds:y,sortOnCloseFn:w,emptyStateText:B,addNewItem:$,loading:k,selectionVariant:T,filterFn:S,"aria-labelledby":E,onOpenChange:C,onSelectedChange:z,customScrollContainerRef:N}=o,I=r(null),[A,R]=t(),[L,O]=t(x.map((({id:e})=>e))),M=n((()=>x.map((e=>({...e,role:"option",id:e.id,selected:"multiple"===T?y.includes(e.id):void 0,onAction:e=>{const t=y.filter((t=>t!==e.id)),r=y.includes(e.id)?t:[...t,e.id];var o,a;((z||(o=b,function(e){const{text:t=""}=Array.isArray(e)?e.slice(-1)[0]:e;o(t)}))(r.map((e=>function(e,t){return t.find((t=>t.id===e))}(e,x)))),"multiple"===T)?(b(""),u("")):(p(!1),null===(a=c.current)||void 0===a||a.setSelectionRange(c.current.value.length,c.current.value.length))}})))),[x,y,c,z,T,u,b,p]),P=n((()=>L.reduce(((e,t,r)=>(e[t]=r,e)),{})),[L]),H=n((()=>{return M.filter(S||(e=f,function(t,r){var o;return Boolean(null===(o=t.text)||void 0===o?void 0:o.toLowerCase().startsWith(e.toLowerCase()))})).sort(((e,t)=>P[e.id]-P[t.id]));var e}),[M,P,S,f]),D=n((()=>[...H,...$?[{...$,leadingVisual:()=>e.createElement(Jr,null),onAction:e=>{$.handleAddItem({...e,id:e.id||Hr(),leadingVisual:void 0}),"multiple"===T&&(b(""),u(""))}}]:[]]),[H,$,u,T,b]);return To({containerRef:I,focusOutBehavior:"wrap",focusableElementFilter:e=>!(e instanceof HTMLInputElement),activeDescendantFocus:c,onActiveDescendantChanged:(e,t,r)=>{if(d.current=e||null,e){const t=M.find((t=>t.id.toString()===e.getAttribute("data-id")));R(t),h(r)}e&&N&&N.current&&r?Ya(e,N.current):e&&g.current&&r&&Ya(e,g.current)}},[k]),a((()=>{var e;null!=A&&null!==(e=A.text)&&void 0!==e&&e.startsWith(f)&&!y.includes(A.id)?u(A.text):u("")}),[A,f,y,u]),a((()=>{const e=[...L].sort(w||(t=e=>((e,t)=>t.includes(e))(e,y),(e,r)=>t(e)===t(r)?0:t(e)?-1:1));var t;const r=e.length===L.length&&e.every(((e,t)=>e===L[t]));!1!==v||r||O(e),C&&C(Boolean(v))}),[v,C,y,w,L]),a((()=>{y.length&&m(y.length)}),[y,m]),e.createElement(or,{sx:v?{}:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},k?e.createElement(or,{p:3,display:"flex",justifyContent:"center"},e.createElement(zl,null)):e.createElement("div",{ref:I},D.length?e.createElement(Ca,{selectionVariant:"multiple",items:D,role:"listbox",id:`${s}-listbox`,"aria-labelledby":E}):e.createElement(or,{p:3},B)))}function Za({menuAnchorRef:t,overlayProps:r,children:a}){const n=l(Da);if(null===n)throw new Error("AutocompleteContext returned null values");const{inputRef:i,scrollContainerRef:d,selectedItemLength:s,setShowMenu:c,showMenu:f=!1}=n,{floatingElementRef:g,position:u}=xo({side:"outside-bottom",align:"start",anchorElementRef:t||i},[f,s]),p=zo(d,g),b=o((()=>{c(!1)}),[c]);return"undefined"==typeof window?null:e.createElement(Ra,Pt({returnFocusRef:i,preventFocusOnOpen:!0,onClickOutside:b,onEscape:b,ref:p,top:null==u?void 0:u.top,left:null==u?void 0:u.left,visibility:f?"visible":"hidden",sx:{overflow:"auto"}},r),a)}Ja.displayName="AutocompleteMenu",Ja.defaultProps={emptyStateText:"No selectable options",selectionVariant:"single"},Ja.displayName="AutocompleteMenu",Za.displayName="AutocompleteOverlay",Za.displayName="AutocompleteOverlay";const Qa={inputValue:"",showMenu:!1,isMenuDirectlyActivated:!1,autocompleteSuggestion:"",selectedItemLength:0},en=(e,t)=>{const{type:r,payload:o}=t;switch(r){case"inputValue":return{...e,inputValue:o};case"showMenu":return{...e,showMenu:o};case"isMenuDirectlyActivated":return{...e,isMenuDirectlyActivated:o};case"autocompleteSuggestion":return{...e,autocompleteSuggestion:o};case"selectedItemLength":return{...e,selectedItemLength:o};default:return e}},tn=({children:t,id:a})=>{const n=r(null),i=r(null),l=r(null),[d,s]=c(en,Qa),{inputValue:f,showMenu:g,autocompleteSuggestion:u,isMenuDirectlyActivated:p,selectedItemLength:b}=d,h=o((e=>{s({type:"inputValue",payload:e})}),[]),m=o((e=>{s({type:"showMenu",payload:e})}),[]),v=o((e=>{s({type:"autocompleteSuggestion",payload:e})}),[]),x=o((e=>{s({type:"isMenuDirectlyActivated",payload:e})}),[]),y=o((e=>{s({type:"selectedItemLength",payload:e})}),[]),w=Lo(a);return e.createElement(Da.Provider,{value:{activeDescendantRef:n,autocompleteSuggestion:u,id:w,inputRef:l,inputValue:f,isMenuDirectlyActivated:p,scrollContainerRef:i,selectedItemLength:b,setAutocompleteSuggestion:v,setInputValue:h,setIsMenuDirectlyActivated:x,setShowMenu:m,setSelectedItemLength:y,showMenu:g}},t)};tn.displayName="Autocomplete";var rn=Object.assign(tn,{Input:Xa,Menu:Ja,Overlay:Za});const on=f.img.attrs((e=>({height:e.size,width:e.size})))`
|
396
397
|
display: inline-block;
|
397
398
|
overflow: hidden; // Ensure page layout in Firefox should images fail to load
|
398
399
|
line-height: ${Nt("lineHeights.condensedUltra")};
|
@@ -569,10 +570,10 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
569
570
|
}
|
570
571
|
${It}
|
571
572
|
${rr};
|
572
|
-
`;bn.displayName="Breadcrumbs",hn.displayName="Breadcrumbs.Item";var mn=Object.assign(bn,{Item:hn});const vn=Object.assign(bn,{Item:hn})
|
573
|
-
${
|
574
|
-
${
|
575
|
-
`;
|
573
|
+
`;bn.displayName="Breadcrumbs",hn.displayName="Breadcrumbs.Item";var mn=Object.assign(bn,{Item:hn});const vn=Object.assign(bn,{Item:hn});var xn=p(["position:relative;display:inline-block;padding:6px 16px;font-family:inherit;font-weight:",";line-height:20px;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;border-radius:",";appearance:none;text-decoration:none;text-align:center;&:hover{text-decoration:none;}&:focus{outline:none;}&:disabled{cursor:default;}&:disabled svg{opacity:0.6;}"],Nt("fontWeights.bold"),Nt("radii.2"));const yn=O(Ne,It,Lt),wn=ue({variants:{small:{p:"4px 12px",fontSize:0},medium:{fontSize:1},large:{fontSize:2,p:"10px 20px"}}}),Bn=f.button.attrs((({disabled:e,onClick:t})=>({onClick:e?void 0:t})))`
|
574
|
+
${xn}
|
575
|
+
${wn}
|
576
|
+
`;Bn.defaultProps={variant:"medium"};var $n=Bn;var kn=f($n)`
|
576
577
|
color: ${Nt("colors.btn.text")};
|
577
578
|
background-color: ${Nt("colors.btn.bg")};
|
578
579
|
border: 1px solid ${Nt("colors.btn.border")};
|
@@ -600,9 +601,9 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
600
601
|
border-color: ${Nt("colors.btn.border")};
|
601
602
|
}
|
602
603
|
|
603
|
-
${
|
604
|
+
${yn};
|
604
605
|
${rr};
|
605
|
-
`;var
|
606
|
+
`;var Tn=f($n)`
|
606
607
|
color: ${Nt("colors.btn.danger.text")};
|
607
608
|
border: 1px solid ${Nt("colors.btn.border")};
|
608
609
|
background-color: ${Nt("colors.btn.bg")};
|
@@ -633,9 +634,9 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
633
634
|
border-color: ${Nt("colors.btn.danger.disabledBorder")};
|
634
635
|
}
|
635
636
|
|
636
|
-
${
|
637
|
+
${yn};
|
637
638
|
${rr};
|
638
|
-
`;const
|
639
|
+
`;const Sn=f(or)`
|
639
640
|
vertical-align: middle;
|
640
641
|
|
641
642
|
&& > * {
|
@@ -676,7 +677,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
676
677
|
}
|
677
678
|
|
678
679
|
${rr};
|
679
|
-
`;
|
680
|
+
`;Sn.defaultProps={display:"inline-block"};var En=Sn;var Cn=f($n)`
|
680
681
|
color: ${Nt("colors.btn.outline.text")};
|
681
682
|
border: 1px solid ${Nt("colors.btn.border")};
|
682
683
|
background-color: ${Nt("colors.btn.bg")};
|
@@ -707,9 +708,9 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
707
708
|
border-color: ${Nt("colors.btn.border")};
|
708
709
|
}
|
709
710
|
|
710
|
-
${
|
711
|
+
${yn};
|
711
712
|
${rr};
|
712
|
-
`;var
|
713
|
+
`;var zn=f($n)`
|
713
714
|
color: ${Nt("colors.btn.primary.text")};
|
714
715
|
border: 1px solid ${Nt("colors.btn.primary.border")};
|
715
716
|
background-color: ${Nt("colors.btn.primary.bg")};
|
@@ -738,9 +739,9 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
738
739
|
border-color: ${Nt("colors.btn.primary.disabledBorder")};
|
739
740
|
}
|
740
741
|
|
741
|
-
${
|
742
|
+
${yn};
|
742
743
|
${rr};
|
743
|
-
`;var
|
744
|
+
`;var Nn=f($n)`
|
744
745
|
color: ${Nt("colors.accent.fg")};
|
745
746
|
background-color: transparent;
|
746
747
|
border: 0;
|
@@ -760,9 +761,9 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
760
761
|
background-color: ${Nt("colors.btn.selectedBg")};
|
761
762
|
}
|
762
763
|
|
763
|
-
${
|
764
|
+
${yn};
|
764
765
|
${rr}
|
765
|
-
`;var
|
766
|
+
`;var In=f.summary`
|
766
767
|
display: inline-block;
|
767
768
|
padding: 0;
|
768
769
|
font-size: ${Nt("fontSizes.1")};
|
@@ -801,7 +802,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
801
802
|
${At}
|
802
803
|
${Lt}
|
803
804
|
${rr};
|
804
|
-
`;const
|
805
|
+
`;const An=f.button`
|
805
806
|
border: none;
|
806
807
|
padding: 0;
|
807
808
|
background: transparent;
|
@@ -820,10 +821,10 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
820
821
|
${It};
|
821
822
|
${Lt};
|
822
823
|
${rr};
|
823
|
-
`;var
|
824
|
+
`;var Rn=i(((t,r)=>e.createElement(An,Pt({ref:r,"aria-label":"Close"},t),e.createElement(eo,null))));const Ln={top:"Bottom",right:"Left",bottom:"Top",left:"Right"},On={top:"Left",right:"Top",bottom:"Left",left:"Top"};function Mn(e,t,r){const o=Ln[e].toLowerCase(),a=On[e].toLowerCase();return{[o]:"100%",[t||a]:t?r:"50%"}}const Pn=Tt({prop:"bg",key:"colors"}),Hn=Tt({prop:"borderColor",key:"colors"}),Dn=Tt({prop:"borderWidth",key:"borderWidths",scale:[0,1]});function Wn(t){var r;const o=e.useContext(b),a={...t,theme:null!==(r=t.theme)&&void 0!==r?r:o},{bg:n}=Pn(a),{borderColor:i}=Hn(a),{borderWidth:l}=Dn(a),{size:d=8,location:s="bottom"}=t,[c,f]=function(e){const[t,r]=e.split("-");return[t,r]}(s),g=On[c],u=[-d,0],p=[0,d],h=[d,0],m=`M${u}L${p}L${h}L${u}Z`,v=`M${u}L${p}L${h}`,x={top:`translate(${[d,2*d]}) rotate(180)`,right:`translate(${[0,d]}) rotate(-90)`,bottom:`translate(${[d,0]})`,left:`translate(${[2*d,d]}) rotate(90)`}[c];return e.createElement("svg",{width:2*d,height:2*d,style:{pointerEvents:"none",position:"absolute",...Mn(c,f,d),[`margin${g}`]:f?null:-d}},e.createElement("g",{transform:x},e.createElement("path",{d:m,fill:n}),e.createElement("path",{d:v,fill:"none",stroke:i,strokeWidth:l})))}function Fn({icon:t,...r}){return e.createElement(t,r)}Wn.displayName="Caret",Wn.locations=["top","top-left","top-right","right","right-top","right-bottom","bottom","bottom-left","bottom-right","left","left-top","left-bottom"],Wn.defaultProps={bg:"canvas.default",borderColor:"border.default",borderWidth:1},Fn.displayName="Octicon";const _n=f(Fn)`
|
824
825
|
${It}
|
825
826
|
${rr}
|
826
|
-
`;
|
827
|
+
`;_n.defaultProps={size:16};var jn=_n;const Un={small:56,medium:96,large:128},Gn=f.div`
|
827
828
|
display: ${e=>e.inline?"inline-flex":"flex"};
|
828
829
|
align-items: center;
|
829
830
|
justify-content: center;
|
@@ -831,13 +832,13 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
831
832
|
border-radius: 50%;
|
832
833
|
box-shadow: ${Nt("shadows.shadow.medium")};
|
833
834
|
${It};
|
834
|
-
${({size:e,variant:t="medium"})=>{const r=function(e){return!isNaN(parseFloat(e))&&isFinite(e)}(e)?e:
|
835
|
+
${({size:e,variant:t="medium"})=>{const r=function(e){return!isNaN(parseFloat(e))&&isFinite(e)}(e)?e:Un[t];return{width:r,height:r}}};
|
835
836
|
${rr};
|
836
|
-
`,
|
837
|
+
`,Vn=f(jn)`
|
837
838
|
height: auto;
|
838
839
|
max-width: 60%;
|
839
840
|
max-height: 55%;
|
840
|
-
`;
|
841
|
+
`;Gn.defaultProps={inline:!1},Vn.displayName="CircleBadge.Icon";var Kn=Object.assign(Gn,{Icon:Vn});function qn(t){const{size:r,as:o}=t,{icon:a,bg:n,...i}=t;return e.createElement(or,{as:o,bg:n,overflow:"hidden",borderWidth:0,size:r,borderRadius:"50%",borderStyle:"solid",borderColor:"border.default"},e.createElement(or,Pt({display:"flex"},i,{alignItems:"center",justifyContent:"center"}),e.createElement(a,{size:r})))}qn.displayName="CircleOcticon",qn.defaultProps={...or.defaultProps,size:32};var Xn=f.span`
|
841
842
|
display: inline-block;
|
842
843
|
padding: 2px 5px;
|
843
844
|
font-size: ${Nt("fontSizes.0")};
|
@@ -853,7 +854,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
853
854
|
}
|
854
855
|
|
855
856
|
${rr};
|
856
|
-
`;const
|
857
|
+
`;const Yn=f.details`
|
857
858
|
& > summary {
|
858
859
|
list-style: none;
|
859
860
|
}
|
@@ -863,11 +864,11 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
863
864
|
|
864
865
|
${It}
|
865
866
|
${rr};
|
866
|
-
`;
|
867
|
+
`;Yn.displayName="Details";var Jn=Yn;const Zn=()=>null;function Qn(e){const t=e;return t.tabIndex>=0&&!t.disabled&&function(e){return!e.hidden&&(!e.type||"hidden"!==e.type)&&(e.offsetWidth>0||e.offsetHeight>0)}(t)}var ei=f.span`
|
867
868
|
${At};
|
868
869
|
${It};
|
869
870
|
${rr};
|
870
|
-
`;const
|
871
|
+
`;const ti=()=>null,ri=f.div`
|
871
872
|
box-shadow: ${Nt("shadows.shadow.large")};
|
872
873
|
border-radius: ${Nt("radii.2")};
|
873
874
|
position: fixed;
|
@@ -891,7 +892,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
891
892
|
${Lt};
|
892
893
|
${It};
|
893
894
|
${rr};
|
894
|
-
`,
|
895
|
+
`,oi=f(or)`
|
895
896
|
border-radius: ${Nt("radii.2")} ${Nt("radii.2")} 0px 0px;
|
896
897
|
border-bottom: 1px solid ${Nt("colors.border.default")};
|
897
898
|
display: flex;
|
@@ -901,7 +902,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
901
902
|
}
|
902
903
|
|
903
904
|
${rr};
|
904
|
-
`;function
|
905
|
+
`;function ai({theme:t,children:r,backgroundColor:o="gray.1",...a}){return e.Children.toArray(r).every((e=>"string"==typeof e))&&(r=e.createElement(ei,{theme:t,color:"fg.default",fontSize:1,fontWeight:"bold",fontFamily:"sans-serif"},r)),e.createElement(oi,Pt({theme:t,p:3,backgroundColor:o},a),r)}ai.displayName="DialogHeader";const ni=f.span`
|
905
906
|
&:before {
|
906
907
|
position: fixed;
|
907
908
|
top: 0;
|
@@ -915,10 +916,10 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
915
916
|
z-index: 99;
|
916
917
|
background: ${Nt("colors.primer.canvas.backdrop")};
|
917
918
|
}
|
918
|
-
`,
|
919
|
+
`,ii=i((({children:t,onDismiss:n=ti,isOpen:i,initialFocusRef:l,returnFocusRef:d,...s},c)=>{const f=r(null),g=zo(c),u=r(null),p=()=>{n(),d&&d.current&&d.current.focus()},{getDialogProps:b}=function({modalRef:e,overlayRef:t,isOpen:r,onDismiss:n=Zn,initialFocusRef:i,closeButtonRef:l}){const d=o((r=>{e.current&&t.current&&!e.current.contains(r.target)&&t.current.contains(r.target)&&n()}),[n,e,t]);a((()=>{if(r)return document.addEventListener("click",d),()=>{document.removeEventListener("click",d)}}),[r,d]),a((()=>{r&&(i&&i.current?i.current.focus():l&&l.current&&l.current.focus())}),[r,i,l]);const s=o(((t,r)=>{if(e.current){const o=Array.from(e.current.querySelectorAll("*")).filter(Qn);if(0===o.length)return;t.preventDefault();const a=document.activeElement;if(!a)return;const n=o.indexOf(a)+r,i=1===r?0:o.length-1;return o[n]||o[i]}}),[e]),c=o((e=>{const t=e.shiftKey?-1:1,r=s(e,t);r&&r.focus()}),[s]),f=o((e=>{switch(e.key){case"Tab":c(e);break;case"Escape":n(),e.stopPropagation()}}),[c,n]);return{getDialogProps:()=>({onKeyDown:f})}}({modalRef:g,onDismiss:p,isOpen:i,initialFocusRef:l,closeButtonRef:u,returnFocusRef:d,overlayRef:f});return i?e.createElement(e.Fragment,null,e.createElement(ni,{ref:f}),e.createElement(ri,Pt({tabIndex:-1,ref:g,role:"dialog","aria-modal":"true"},s,b()),e.createElement(Rn,{ref:u,onClick:p,sx:{position:"absolute",top:"16px",right:"16px"}}),t)):null}));ai.defaultProps={backgroundColor:"canvas.subtle"},ai.propTypes={...or.propTypes},ai.displayName="Dialog.Header",ii.displayName="Dialog";var li=Object.assign(ii,{Header:ai});var di=(e,t)=>({w:`\n top: 0;\n right: 100%;\n left: auto;\n width: auto;\n margin-top: 0;\n margin-right: 10px;\n\n &::before {\n top: 10px;\n right: -16px;\n left: auto;\n border-color: transparent;\n border-left-color: ${Nt("colors.border.default")(e)};\n }\n\n &::after {\n top: 11px;\n right: -14px;\n left: auto;\n border-color: transparent;\n border-left-color: ${Nt("colors.border.default")(e)};\n }\n `,e:`\n top: 0;\n left: 100%;\n width: auto;\n margin-top: 0;\n margin-left: 10px;\n\n &::before {\n top: 10px;\n left: -16px;\n border-color: transparent;\n border-right-color: ${Nt("colors.border.default")(e)};\n }\n\n &::after {\n top: 11px;\n left: -14px;\n border-color: transparent;\n border-right-color: ${Nt("colors.border.default")(e)};\n }\n `,ne:`\n top: auto;\n bottom: 100%;\n left: 0;\n margin-bottom: 3px;\n\n &::before,\n &::after {\n top: auto;\n right: auto;\n }\n\n &::before {\n bottom: -8px;\n left: 9px;\n border-top: 8px solid ${Nt("colors.border.default")(e)};\n border-bottom: 0;\n border-left: 8px solid transparent;\n }\n\n &::after {\n bottom: -7px;\n left: 10px;\n border-top: 7px solid ${Nt("colors.border.default")(e)};\n border-right: 7px solid transparent;\n border-bottom: 0;\n border-left: 7px solid transparent;\n }\n `,s:"\n right: 50%;\n left: auto;\n transform: translateX(50%);\n\n &::before {\n top: -16px;\n right: 50%;\n transform: translateX(50%);\n }\n\n &::after {\n top: -14px;\n right: 50%;\n transform: translateX(50%);\n }\n ",sw:"\n right: 0;\n left: auto;\n\n &::before {\n top: -16px;\n right: 9px;\n left: auto;\n }\n\n &::after {\n top: -14px;\n right: 10px;\n left: auto;\n }\n ",se:"\n &::before {\n top: -16px;\n left: 9px;\n }\n\n &::after {\n top: -14px;\n left: 10px;\n }\n "}[t]);const si=f(Jn)`
|
919
920
|
position: relative;
|
920
921
|
display: inline-block;
|
921
|
-
`,
|
922
|
+
`,ci=({children:t,className:r,...o})=>{const{getDetailsProps:a}=hr({closeOnOutsideClick:!0});return e.createElement(si,Pt({className:r},a(),o),t)};ci.displayName="Dropdown";const fi=({children:t,...r})=>e.createElement(so,Pt({as:"summary","aria-haspopup":"true",caret:!0},r),t);fi.displayName="DropdownButton";const gi=f.div`
|
922
923
|
border: 4px solid transparent;
|
923
924
|
margin-left: 12px;
|
924
925
|
border-top-color: currentcolor;
|
@@ -930,7 +931,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
930
931
|
width: 0;
|
931
932
|
${It};
|
932
933
|
${rr};
|
933
|
-
`,
|
934
|
+
`,ui=f.ul`
|
934
935
|
background-clip: padding-box;
|
935
936
|
background-color: ${Nt("colors.canvas.overlay")};
|
936
937
|
border: 1px solid ${Nt("colors.border.default")};
|
@@ -971,10 +972,10 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
971
972
|
> ul {
|
972
973
|
list-style: none;
|
973
974
|
}
|
974
|
-
${e=>e.direction?
|
975
|
+
${e=>e.direction?di(e.theme,e.direction):""};
|
975
976
|
${It};
|
976
977
|
${rr};
|
977
|
-
`,
|
978
|
+
`,pi=f.li`
|
978
979
|
display: block;
|
979
980
|
padding: ${Nt("space.1")} 10px ${Nt("space.1")} 15px;
|
980
981
|
overflow: hidden;
|
@@ -1007,7 +1008,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1007
1008
|
}
|
1008
1009
|
${It};
|
1009
1010
|
${rr};
|
1010
|
-
`;
|
1011
|
+
`;ui.defaultProps={direction:"sw"},ui.displayName="Dropdown.Menu",pi.displayName="Dropdown.Item",fi.defaultProps=so.defaultProps,fi.displayName="Dropdown.Button",gi.displayName="Dropdown.Caret",ci.defaultProps=Jn.defaultProps;var bi=Object.assign(ci,{Caret:gi,Menu:ui,Item:pi,Button:fi});const hi=e.forwardRef((({children:t,...r},o)=>e.createElement(kn,Pt({ref:o,type:"button"},r),t,e.createElement(jn,{icon:Qr,ml:1}))));function mi({renderAnchor:t=(t=>e.createElement(hi,t)),anchorRef:r,placeholder:a,selectedItem:i,onChange:l,overlayProps:d,items:s,open:c,onOpenChange:f,...g}){const[u,p]=Oa(c,f,!1),b=o((()=>p(!0)),[p]),h=o((()=>p(!1)),[p]),m=zr(r),v=n((()=>null===t?null:e=>{var r;return t({...e,children:null!==(r=null==i?void 0:i.text)&&void 0!==r?r:a})}),[a,t,null==i?void 0:i.text]),x=n((()=>s.map((e=>({...e,role:"option",selected:e===i,onAction:(t,r)=>{var o;null===(o=e.onAction)||void 0===o||o.call(e,t,r),r.defaultPrevented||(h(),null==l||l(e===i?void 0:e))}})))),[s,l,h,i]);return e.createElement(La,{renderAnchor:v,anchorRef:m,open:u,onOpen:b,onClose:h,overlayProps:d},e.createElement(Ea,Pt({},g,{role:"listbox",items:x})))}mi.displayName="DropdownMenu",mi.displayName="DropdownMenu";var vi=f.div`
|
1011
1012
|
${It};
|
1012
1013
|
display: flex;
|
1013
1014
|
align-items: stretch;
|
@@ -1026,11 +1027,11 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1026
1027
|
}
|
1027
1028
|
|
1028
1029
|
${rr}
|
1029
|
-
`;const
|
1030
|
+
`;const xi=f.ul`
|
1030
1031
|
list-style-type: none;
|
1031
1032
|
${It};
|
1032
1033
|
${rr};
|
1033
|
-
`,
|
1034
|
+
`,yi=({children:t,...r})=>{const o=e.Children.map(t,(t=>e.createElement("li",null,t)));return e.createElement(xi,r,o)};yi.displayName="FilterList";const wi=f.a`
|
1034
1035
|
position: relative;
|
1035
1036
|
display: block;
|
1036
1037
|
padding: ${e=>e.small?`${Nt("space.1")(e)} 10px`:`${Nt("space.2")(e)} 11px`};
|
@@ -1058,7 +1059,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1058
1059
|
}
|
1059
1060
|
${It};
|
1060
1061
|
${rr};
|
1061
|
-
`;function
|
1062
|
+
`;function Bi({children:t,count:r,...o}){return e.createElement(wi,o,r&&e.createElement("span",{title:"results",className:"count"},r),t)}Bi.displayName="FilterListItem",yi.defaultProps={m:0,p:0},Bi.displayName="FilterList.Item";var $i=Object.assign(yi,{Item:Bi});const ki=ue({variants:{default:{color:"fg.default",backgroundColor:"accent.subtle",borderColor:"accent.muted",svg:{color:"accent.fg"}},success:{color:"fg.default",backgroundColor:"success.subtle",borderColor:"success.muted",svg:{color:"success.fg"}},danger:{color:"fg.default",backgroundColor:"danger.subtle",borderColor:"danger.muted",svg:{color:"danger.fg"}},warning:{color:"fg.default",backgroundColor:"attention.subtle",borderColor:"attention.muted",svg:{color:"attention.fg"}}}}),Ti=f.div`
|
1062
1063
|
position: relative;
|
1063
1064
|
color: ${Nt("colors.fg.default")};
|
1064
1065
|
padding: ${Nt("space.3")};
|
@@ -1076,14 +1077,14 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1076
1077
|
}
|
1077
1078
|
|
1078
1079
|
${It};
|
1079
|
-
${
|
1080
|
+
${ki};
|
1080
1081
|
${rr};
|
1081
|
-
`;
|
1082
|
+
`;Ti.defaultProps={variant:"default"};var Si=Ti;const Ei=f.div`
|
1082
1083
|
margin: ${Nt("space.3")} 0;
|
1083
1084
|
font-weight: ${Nt("fontWeights.normal")};
|
1084
1085
|
${It};
|
1085
1086
|
${rr};
|
1086
|
-
`,
|
1087
|
+
`,Ci=f.label`
|
1087
1088
|
display: block;
|
1088
1089
|
margin: 0 0 ${Nt("space.2")};
|
1089
1090
|
font-size: ${Nt("fontSizes.1")};
|
@@ -1091,7 +1092,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1091
1092
|
${At};
|
1092
1093
|
${It};
|
1093
1094
|
${rr};
|
1094
|
-
`;
|
1095
|
+
`;Ci.displayName="FormGroup.Label";var zi=Object.assign(Ei,{Label:Ci});const Ni=f.div`
|
1095
1096
|
z-index: 32;
|
1096
1097
|
display: flex;
|
1097
1098
|
padding: ${Nt("space.3")};
|
@@ -1105,7 +1106,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1105
1106
|
${It}
|
1106
1107
|
${Rt}
|
1107
1108
|
${rr};
|
1108
|
-
`,
|
1109
|
+
`,Ii=f.div`
|
1109
1110
|
display: flex;
|
1110
1111
|
margin-right: ${Nt("space.3")};
|
1111
1112
|
align-self: stretch;
|
@@ -1117,7 +1118,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1117
1118
|
${It};
|
1118
1119
|
${Rt};
|
1119
1120
|
${rr};
|
1120
|
-
`;
|
1121
|
+
`;Ii.displayName="Header.Item";const Ai=f.a.attrs((({to:e})=>"string"==typeof e?{"aria-current":"page"}:{}))`
|
1121
1122
|
font-weight: ${Nt("fontWeights.bold")};
|
1122
1123
|
color: ${Nt("colors.header.logo")};
|
1123
1124
|
white-space: nowrap;
|
@@ -1135,14 +1136,14 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1135
1136
|
${Rt};
|
1136
1137
|
${At};
|
1137
1138
|
${rr};
|
1138
|
-
`;
|
1139
|
+
`;Ai.displayName="Header.Link";var Ri=Object.assign(Ni,{Link:Ai,Item:Ii});const Li=f.h2`
|
1139
1140
|
font-weight: ${Nt("fontWeights.bold")};
|
1140
1141
|
font-size: ${Nt("fontSizes.5")};
|
1141
1142
|
margin: 0;
|
1142
1143
|
${At};
|
1143
1144
|
${It};
|
1144
1145
|
${rr};
|
1145
|
-
`;
|
1146
|
+
`;Li.defaultProps={theme:x};var Oi=Li;var Mi=f.span`
|
1146
1147
|
${It}
|
1147
1148
|
& * {
|
1148
1149
|
margin-right: ${Nt("space.1")};
|
@@ -1151,7 +1152,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1151
1152
|
margin-right: 0;
|
1152
1153
|
}
|
1153
1154
|
${rr};
|
1154
|
-
`;const
|
1155
|
+
`;const Pi=p(["margin-top:-1px;margin-bottom:-1px;color:",";border:"," solid ",";box-shadow:none;",";",";background-color:transparent;"],Nt("colors.fg.muted"),Nt("borderWidths.1"),Nt("colors.border.default"),ct,It),Hi=ue({variants:{small:{fontSize:0,lineHeight:"16px",padding:"0px 8px"},medium:{fontSize:0,lineHeight:"20px",padding:"0 8px"},large:{fontSize:0,lineHeight:"24px",padding:"0 12px"},xl:{fontSize:1,lineHeight:"16px",padding:"8px 12px"}}}),Di=f.span`
|
1155
1156
|
display: inline-block;
|
1156
1157
|
font-weight: ${Nt("fontWeights.semibold")};
|
1157
1158
|
color: ${Nt("colors.fg.onEmphasis")};
|
@@ -1161,17 +1162,17 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1161
1162
|
text-decoration: none;
|
1162
1163
|
}
|
1163
1164
|
|
1164
|
-
${
|
1165
|
+
${Hi}
|
1165
1166
|
${It}
|
1166
1167
|
${e=>e.dropshadow?"box-shadow: inset 0 -1px 0 rgba(27, 31, 35, 0.12)":""}
|
1167
|
-
${e=>e.outline?
|
1168
|
+
${e=>e.outline?Pi:""} // must be last to override other values
|
1168
1169
|
${rr}
|
1169
|
-
`;
|
1170
|
+
`;Di.defaultProps={bg:"neutral.emphasis",variant:"medium"};var Wi=Di;const Fi=L({hoverColor:{property:"color",scale:"colors"}});var _i=f.a`
|
1170
1171
|
color: ${e=>e.muted?Nt("colors.fg.muted")(e):Nt("colors.accent.fg")(e)};
|
1171
1172
|
text-decoration: ${e=>e.underline?"underline":"none"};
|
1172
1173
|
&:hover {
|
1173
1174
|
text-decoration: ${e=>e.muted?"none":"underline"};
|
1174
|
-
${e=>e.hoverColor?
|
1175
|
+
${e=>e.hoverColor?Fi:e.muted?`color: ${Nt("colors.accent.fg")(e)}`:""};
|
1175
1176
|
}
|
1176
1177
|
&:is(button) {
|
1177
1178
|
display: inline-block;
|
@@ -1187,7 +1188,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1187
1188
|
${At};
|
1188
1189
|
${It};
|
1189
1190
|
${rr};
|
1190
|
-
`;var
|
1191
|
+
`;var ji=f.div`
|
1191
1192
|
position: relative;
|
1192
1193
|
padding-top: ${Nt("space.4")};
|
1193
1194
|
padding-bottom: ${Nt("space.4")};
|
@@ -1195,7 +1196,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1195
1196
|
border-bottom: 1px solid ${Nt("colors.border.default")};
|
1196
1197
|
${It};
|
1197
1198
|
${rr};
|
1198
|
-
`;const
|
1199
|
+
`;const Ui=f.a`
|
1199
1200
|
display: inline-block;
|
1200
1201
|
min-width: 32px;
|
1201
1202
|
padding: 5px 10px;
|
@@ -1295,12 +1296,12 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1295
1296
|
}
|
1296
1297
|
|
1297
1298
|
${It};
|
1298
|
-
`;function
|
1299
|
+
`;function Gi({theme:t,pageCount:r,currentPage:o,onPageChange:a,hrefBuilder:n,marginPageCount:i,showPages:l,surroundingPageCount:d}){const s=e.useCallback((e=>t=>a(t,e)),[a]),c=e.useMemo((()=>function(e,t,r,o,a){const n=[];if(r){const r=[],i=t=>{t>=1&&t<=e&&r.push(t)};let l=t-a,d=t+a;if(l<1&&d>e)l=1,d=e;else if(l<1)for(;l<1;)l++,d++;else if(d>e)for(;d>e;)l--,d--;for(let t=1;t<=o;t++){const r=t,o=e-(t-1);r>=l?d++:i(r),o<=d?l--:i(o)}for(let e=l;e<=d;e++)i(e);const s=r.slice().sort(((e,t)=>e-t)).filter(((e,t,r)=>!t||e!==r[t-1]));for(let e=0;e<s.length;e++){const r=s[e],o=r===t;0===e?(1!==r&&n.push({type:"BREAK",num:1}),n.push({type:"NUM",num:r,selected:o})):(1==r-s[e-1]||n.push({type:"BREAK",num:r-1}),n.push({type:"NUM",num:r,selected:o}))}const c=n[n.length-1];"NUM"===c.type&&c.num!==e&&n.push({type:"BREAK",num:e})}const i={type:"NEXT",num:t+1,disabled:t===e};return[{type:"PREV",num:t-1,disabled:1===t},...n,i]}(r,o,!!l,i,d)),[r,o,l,i,d]);return e.useMemo((()=>c.map((r=>{const{props:o,key:a,content:i}=function(e,t,r){const o={};let a="",n="";switch(e.type){case"PREV":n="page-prev",a="Previous",e.disabled?Object.assign(o,{as:"span","aria-disabled":"true"}):Object.assign(o,{rel:"prev",href:t(e.num),"aria-label":"Previous Page",onClick:r});break;case"NEXT":n="page-next",a="Next",e.disabled?Object.assign(o,{as:"span","aria-disabled":"true"}):Object.assign(o,{rel:"next",href:t(e.num),"aria-label":"Next Page",onClick:r});break;case"NUM":n=`page-${e.num}`,a=String(e.num),e.selected?Object.assign(o,{as:"em","aria-current":"page"}):Object.assign(o,{href:t(e.num),"aria-label":`Page ${e.num}`,onClick:r});break;case"BREAK":n=`page-${e.num}-break`,a="…",Object.assign(o,{as:"span","aria-disabled":!0})}return{props:o,key:n,content:a}}(r,n,s(r.num));return e.createElement(Ui,Pt({},o,{key:a,theme:t}),i)}))),[c,n,s,t])}const Vi=f.nav`
|
1299
1300
|
margin-top: 20px;
|
1300
1301
|
margin-bottom: 15px;
|
1301
1302
|
text-align: center;
|
1302
1303
|
${rr};
|
1303
|
-
`;function
|
1304
|
+
`;function Ki({theme:t,pageCount:r,currentPage:o,onPageChange:a=Xi,hrefBuilder:n=qi,marginPageCount:i=1,showPages:l=!0,surroundingPageCount:d=2,...s}){const c=Gi({theme:t,pageCount:r,currentPage:o,onPageChange:a,hrefBuilder:n,marginPageCount:i,showPages:l,surroundingPageCount:d});return e.createElement(Vi,Pt({"aria-label":"Pagination"},s,{theme:t}),e.createElement(or,{display:"inline-block",theme:t},c))}function qi(e){return`#${e}`}function Xi(){}function Yi(t){const{bg:r,border:o,borderColor:a,theme:n}=t,{caret:i,children:l,...d}=t,s={bg:r,borderColor:a,borderWidth:o,location:i,theme:n};return e.createElement(nr,Pt({sx:{position:"relative"}},d),l,e.createElement(Wn,s))}Ki.displayName="Pagination",Ki.defaultProps={hrefBuilder:qi,marginPageCount:1,onPageChange:Xi,showPages:!0,surroundingPageCount:2},Yi.displayName="PointerBox";const Ji=f.div.attrs((({className:e,caret:t})=>({className:_a(e,`caret-pos--${t}`)})))`
|
1304
1305
|
position: ${e=>e.relative?"relative":"absolute"};
|
1305
1306
|
z-index: 100;
|
1306
1307
|
display: ${e=>e.open?"block":"none"};
|
@@ -1309,7 +1310,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1309
1310
|
${Lt};
|
1310
1311
|
${Ot};
|
1311
1312
|
${rr};
|
1312
|
-
`,
|
1313
|
+
`,Zi=f(or)`
|
1313
1314
|
border: 1px solid ${Nt("colors.border.default")};
|
1314
1315
|
border-radius: ${Nt("radii.2")};
|
1315
1316
|
position: relative;
|
@@ -1346,9 +1347,9 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1346
1347
|
}
|
1347
1348
|
|
1348
1349
|
// Bottom-oriented carets
|
1349
|
-
${
|
1350
|
-
${
|
1351
|
-
${
|
1350
|
+
${Ji}.caret-pos--bottom & ,
|
1351
|
+
${Ji}.caret-pos--bottom-right & ,
|
1352
|
+
${Ji}.caret-pos--bottom-left & {
|
1352
1353
|
&::before,
|
1353
1354
|
&::after {
|
1354
1355
|
top: auto;
|
@@ -1368,8 +1369,8 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1368
1369
|
}
|
1369
1370
|
|
1370
1371
|
// Top & Bottom: Right-oriented carets
|
1371
|
-
${
|
1372
|
-
${
|
1372
|
+
${Ji}.caret-pos--top-right & ,
|
1373
|
+
${Ji}.caret-pos--bottom-right & {
|
1373
1374
|
right: -9px;
|
1374
1375
|
margin-right: 0;
|
1375
1376
|
|
@@ -1389,8 +1390,8 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1389
1390
|
}
|
1390
1391
|
|
1391
1392
|
// Top & Bottom: Left-oriented carets
|
1392
|
-
${
|
1393
|
-
${
|
1393
|
+
${Ji}.caret-pos--top-left & ,
|
1394
|
+
${Ji}.caret-pos--bottom-left & {
|
1394
1395
|
left: -9px;
|
1395
1396
|
margin-left: 0;
|
1396
1397
|
|
@@ -1406,12 +1407,12 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1406
1407
|
}
|
1407
1408
|
|
1408
1409
|
// Right- & Left-oriented carets
|
1409
|
-
${
|
1410
|
-
${
|
1411
|
-
${
|
1412
|
-
${
|
1413
|
-
${
|
1414
|
-
${
|
1410
|
+
${Ji}.caret-pos--right & ,
|
1411
|
+
${Ji}.caret-pos--right-top & ,
|
1412
|
+
${Ji}.caret-pos--right-bottom & ,
|
1413
|
+
${Ji}.caret-pos--left & ,
|
1414
|
+
${Ji}.caret-pos--left-top & ,
|
1415
|
+
${Ji}.caret-pos--left-bottom & {
|
1415
1416
|
&::before,
|
1416
1417
|
&::after {
|
1417
1418
|
top: 50%;
|
@@ -1431,9 +1432,9 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1431
1432
|
}
|
1432
1433
|
|
1433
1434
|
// Right-oriented carets
|
1434
|
-
${
|
1435
|
-
${
|
1436
|
-
${
|
1435
|
+
${Ji}.caret-pos--right & ,
|
1436
|
+
${Ji}.caret-pos--right-top & ,
|
1437
|
+
${Ji}.caret-pos--right-bottom & {
|
1437
1438
|
&::before {
|
1438
1439
|
right: -${Nt("space.3")};
|
1439
1440
|
border-left-color: ${Nt("colors.border.default")};
|
@@ -1447,9 +1448,9 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1447
1448
|
}
|
1448
1449
|
|
1449
1450
|
// Left-oriented carets
|
1450
|
-
${
|
1451
|
-
${
|
1452
|
-
${
|
1451
|
+
${Ji}.caret-pos--left & ,
|
1452
|
+
${Ji}.caret-pos--left-top & ,
|
1453
|
+
${Ji}.caret-pos--left-bottom & {
|
1453
1454
|
&::before {
|
1454
1455
|
left: -${Nt("space.3")};
|
1455
1456
|
border-right-color: ${Nt("colors.border.default")};
|
@@ -1463,8 +1464,8 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1463
1464
|
}
|
1464
1465
|
|
1465
1466
|
// Right & Left: Top-oriented carets
|
1466
|
-
${
|
1467
|
-
${
|
1467
|
+
${Ji}.caret-pos--right-top & ,
|
1468
|
+
${Ji}.caret-pos--left-top & {
|
1468
1469
|
&::before,
|
1469
1470
|
&::after {
|
1470
1471
|
top: ${Nt("space.4")};
|
@@ -1472,8 +1473,8 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1472
1473
|
}
|
1473
1474
|
|
1474
1475
|
// Right & Left: Bottom-oriented carets
|
1475
|
-
${
|
1476
|
-
${
|
1476
|
+
${Ji}.caret-pos--right-bottom & ,
|
1477
|
+
${Ji}.caret-pos--left-bottom & {
|
1477
1478
|
&::before,
|
1478
1479
|
&::after {
|
1479
1480
|
top: auto;
|
@@ -1489,23 +1490,23 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1489
1490
|
}
|
1490
1491
|
|
1491
1492
|
${rr};
|
1492
|
-
`;
|
1493
|
+
`;Ji.defaultProps={caret:"top"},Zi.displayName="Popover.Content";var Qi=Object.assign(Ji,{Content:Zi});const el=f.span`
|
1493
1494
|
width: ${e=>e.progress?`${e.progress}%`:0};
|
1494
1495
|
${It}
|
1495
|
-
`,
|
1496
|
+
`,tl={small:"5px",large:"10px",default:"8px"},rl=f.span`
|
1496
1497
|
display: ${e=>e.inline?"inline-flex":"flex"};
|
1497
1498
|
overflow: hidden;
|
1498
1499
|
background-color: ${Nt("colors.border.default")};
|
1499
1500
|
border-radius: ${Nt("radii.1")};
|
1500
|
-
height: ${e=>
|
1501
|
+
height: ${e=>tl[e.barSize||"default"]};
|
1501
1502
|
${It}
|
1502
1503
|
${me}
|
1503
1504
|
${rr};
|
1504
|
-
`;function
|
1505
|
-
${
|
1505
|
+
`;function ol({progress:t,bg:r,theme:o,...a}){return e.createElement(rl,Pt({theme:o},a),e.createElement(el,{progress:t,bg:r,theme:o}))}function al(e,t,r){const n=o((o=>{const a=()=>{r(!0)},n=t=>{const r=Array.from(e.current.querySelectorAll('[role^="menuitem"]:not([hidden]):not([disabled]):not([aria-disabled="true"])')),o=document.activeElement,a=r.indexOf(o),n=t?r[a+1]:r[a-1],i=t?r[0]:r[r.length-1];return n||i};if(!(o instanceof KeyboardEvent))return;const i=o.target instanceof Element&&"SUMMARY"===o.target.tagName;switch(o.key){case"Escape":t&&((()=>{r(!1);const t=e.current.querySelector("summary");t&&t.focus()})(),o.preventDefault(),o.stopPropagation());break;case"ArrowDown":{i&&!t&&a();const e=n(!0);e&&e.focus(),o.preventDefault()}break;case"ArrowUp":{i&&!t&&a();const e=n(!1);e&&e.focus(),o.preventDefault()}break;case" ":case"Enter":{const t=document.activeElement;t&&(e=>{const t=e.getAttribute("role");return"menuitem"===t||"menuitemcheckbox"===t||"menuitemradio"===t})(t)&&t.closest("details")===e&&(o.preventDefault(),o.stopPropagation(),t.click())}}}),[e,t,r]);a((()=>{const t=e.current;if(t)return t.addEventListener("keydown",n),()=>{t.removeEventListener("keydown",n)}}),[e,n])}ol.displayName="ProgressBar",ol.defaultProps={bg:"success.emphasis",barSize:"default"};const nl=s({}),il=p(["padding:"," ",";margin:0;font-size:",";font-weight:",";color:",";background-color:",";border-bottom:"," solid ",";"],Nt("space.1"),Nt("space.3"),Nt("fontSizes.0"),Nt("fontWeights.bold"),Nt("colors.fg.muted"),Nt("colors.canvas.subtle"),Nt("borderWidths.1"),Nt("colors.border.muted")),ll=f.div`
|
1506
|
+
${il}
|
1506
1507
|
${It}
|
1507
1508
|
${rr};
|
1508
|
-
`;
|
1509
|
+
`;ll.displayName="SelectMenu.Divider";var dl=ll;const sl=f.form`
|
1509
1510
|
padding: ${Nt("space.3")};
|
1510
1511
|
margin: 0;
|
1511
1512
|
border-bottom: ${Nt("borderWidths.1")} solid ${Nt("colors.border.muted")};
|
@@ -1517,11 +1518,11 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1517
1518
|
}
|
1518
1519
|
|
1519
1520
|
${rr};
|
1520
|
-
`,
|
1521
|
-
${
|
1521
|
+
`,cl=i((({theme:t,value:o,sx:n,...i},d)=>{const s=r(null),c=null!=d?d:s,{open:f}=l(nl);return a((()=>{var e;f&&(null===(e=s.current)||void 0===e||e.focus())}),[f]),e.createElement(sl,{theme:t,sx:n},e.createElement(Ka,Pt({theme:t,ref:c,width:"100%",block:!0,value:o,contrast:!0},i)))}));cl.displayName="SelectMenu.Filter";var fl=cl;const gl=p(["margin-top:-1px;padding:"," ",";font-size:",";color:",";text-align:center;border-top:"," solid ",";@media (min-width:","){padding:"," ",";}"],Nt("space.2"),Nt("space.3"),Nt("fontSizes.0"),Nt("colors.fg.muted"),Nt("borderWidths.1"),Nt("colors.border.muted"),Nt("breakpoints.0"),Nt("space.1"),Nt("space.2")),ul=f.footer`
|
1522
|
+
${gl}
|
1522
1523
|
${It}
|
1523
1524
|
${rr};
|
1524
|
-
`;
|
1525
|
+
`;ul.displayName="SelectMenu.Footer";var pl=ul;const bl=f.h3`
|
1525
1526
|
color: ${Nt("colors.fg.default")};
|
1526
1527
|
flex: auto;
|
1527
1528
|
font-size: ${Nt("fontSizes.1")};
|
@@ -1531,7 +1532,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1531
1532
|
@media (min-width: ${Nt("breakpoints.0")}) {
|
1532
1533
|
font-size: inherit;
|
1533
1534
|
}
|
1534
|
-
`,
|
1535
|
+
`,hl=f.header`
|
1535
1536
|
display: flex;
|
1536
1537
|
flex: none; // fixes header from getting squeezed in Safari iOS
|
1537
1538
|
padding: ${Nt("space.3")};
|
@@ -1545,15 +1546,15 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1545
1546
|
}
|
1546
1547
|
|
1547
1548
|
${rr};
|
1548
|
-
`,
|
1549
|
-
${
|
1549
|
+
`,ml=({children:t,theme:r,...o})=>e.createElement(hl,Pt({theme:r},o),e.createElement(bl,{theme:r},t));ml.displayName="SelectMenuHeader",ml.displayName="SelectMenu.Header";var vl=ml;const xl=p(["display:flex;align-items:center;padding:",";overflow:hidden;text-align:left;cursor:pointer;background-color:",";border:0;border-bottom:"," solid ",";color:",";text-decoration:none;font-size:",";font-family:inherit;width:100%;&:hover{text-decoration:none;}&:focus{outline:none;}&[hidden]{display:none !important;}@media (min-width:","){padding-top:",";padding-bottom:",";}.SelectMenu-icon{width:",";margin-right:",";flex-shrink:0;}.SelectMenu-selected-icon{visibility:hidden;transition:transform 0.12s cubic-bezier(0.5,0.1,1,0.5),visibility 0s 0.12s linear;transform:scale(0);}&[aria-checked='true']{font-weight:500;color:",";.SelectMenu-selected-icon{visibility:visible;transition:transform 0.12s cubic-bezier(0,0,0.2,1),visibility 0s linear;transform:scale(1);}}@media (hover:hover){&:hover,&:active,&:focus{background-color:",";}}@media (hover:none){&:focus,&:active{background-color:",";}-webkit-tap-highlight-color:",";}"],Nt("space.3"),Nt("colors.canvas.overlay"),Nt("borderWidths.1"),Nt("colors.border.muted"),Nt("colors.fg.muted"),Nt("fontSizes.0"),Nt("breakpoints.0"),Nt("space.2"),Nt("space.2"),Nt("space.3"),Nt("space.2"),Nt("colors.fg.default"),Nt("colors.neutral.subtle"),Nt("colors.canvas.subtle"),Nt("colors.selectMenu.tapHighlight")),yl=f.a.attrs((()=>({role:"menuitemcheckbox"})))`
|
1550
|
+
${xl}
|
1550
1551
|
${It}
|
1551
1552
|
${rr};
|
1552
|
-
`,
|
1553
|
-
${
|
1553
|
+
`,wl=i((({children:t,selected:o,theme:a,onClick:n,...i},d)=>{const s=l(nl),c=r(null),f=null!=d?d:c;return e.createElement(yl,Pt({ref:f},i,{theme:a,onClick:e=>{var t;(n&&n(e),e.defaultPrevented)||(null===(t=s.setOpen)||void 0===t||t.call(s,!1))},"aria-checked":o}),e.createElement(jn,{theme:a,className:"SelectMenu-icon SelectMenu-selected-icon",icon:Vr}),t)}));wl.defaultProps={selected:!1},wl.displayName="SelectMenu.Item";var Bl=wl;const $l=p(["position:relative;padding:0;margin:0;flex:auto;overflow-x:hidden;overflow-y:auto;background-color:",";-webkit-overflow-scrolling:touch;@media (hover:hover){.SelectMenuTab:focus{background-color:",";}.SelectMenuTab:not([aria-checked='true']):hover{color:",";background-color:",";}.SelectMenuTab:not([aria-checked='true']):active{color:",";background-color:",";}}"],Nt("colors.canvas.overlay"),Nt("colors.selectMenu.tapFocusBg"),Nt("colors.fg.default"),Nt("colors.canvas.subtle"),Nt("colors.fg.default"),Nt("colors.canvas.subtle")),kl=f.div`
|
1554
|
+
${$l}
|
1554
1555
|
${It}
|
1555
1556
|
${rr};
|
1556
|
-
|
1557
|
+
`;kl.displayName="SelectMenu.List";var Tl=kl;const Sl={small:"16px",medium:"32px",large:"64px"};function El({size:t="medium",...r}){const o=Sl[t];return e.createElement("svg",Pt({height:o,width:o,viewBox:"0 0 16 16",fill:"none"},r),e.createElement("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor",strokeOpacity:"0.25",strokeWidth:"2",vectorEffect:"non-scaling-stroke"}),e.createElement("path",{d:"M15 8a7.002 7.002 0 00-7-7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",vectorEffect:"non-scaling-stroke"}))}El.displayName="Spinner";const Cl=f(El)`
|
1557
1558
|
@keyframes rotate-keyframes {
|
1558
1559
|
100% {
|
1559
1560
|
transform: rotate(360deg);
|
@@ -1564,42 +1565,42 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1564
1565
|
|
1565
1566
|
${It}
|
1566
1567
|
${rr}
|
1567
|
-
`;
|
1568
|
+
`;Cl.displayName="Spinner";var zl=Cl;const Nl=f.div`
|
1568
1569
|
padding: ${Nt("space.6")} ${Nt("space.4")};
|
1569
1570
|
text-align: center;
|
1570
1571
|
background-color: ${Nt("colors.canvas.overlay")};
|
1571
1572
|
${It}
|
1572
|
-
`,
|
1573
|
-
${Rl}
|
1574
|
-
${me}
|
1575
|
-
`,Ml=f.div`
|
1573
|
+
`,Il=t=>e.createElement(Nl,t,e.createElement(zl,null));Il.displayName="SelectMenuLoadingAnimation";var Al=Il;const Rl=h(["0%{opacity:0;transform:scale(0.9);}"]),Ll=p(["position:relative;z-index:99;display:flex;",";max-height:",";margin:auto 0;",";overflow:hidden;pointer-events:auto;flex-direction:column;background-color:",";border-radius:",";box-shadow:",";animation:"," 0.12s cubic-bezier(0,0.1,0.1,1) backwards;@media (min-width:","){height:auto;max-height:350px;margin:"," 0 "," 0;font-size:",";border:"," solid ",";border-radius:",";box-shadow:",";}"],(e=>e.filter?"height: 80%":""),(e=>e.filter?"none":"66%"),(e=>e.filter?"margin-top: 0":""),Nt("colors.canvas.overlay"),Nt("radii.2"),Nt("shadows.shadow.small"),Rl,Nt("breakpoints.0"),Nt("space.1"),Nt("space.3"),Nt("fontSizes.0"),Nt("borderWidths.1"),Nt("colors.border.default"),Nt("radii.2"),Nt("shadows.shadow.small")),Ol=p(["position:fixed;top:0;right:0;bottom:0;left:0;z-index:99;display:flex;padding:",";pointer-events:none;flex-direction:column;&::before{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;content:'';background-color:",";@media (min-width:","){display:none;}}@media (min-width:","){position:absolute;top:auto;right:",";bottom:auto;left:auto;padding:0;}"],Nt("space.3"),Nt("colors.primer.canvas.backdrop"),Nt("breakpoints.0"),Nt("breakpoints.0"),(e=>"right"===e.align?"0":"auto")),Ml=f.div`
|
1576
1574
|
${Ll}
|
1575
|
+
${me}
|
1576
|
+
`,Pl=f.div`
|
1577
|
+
${Ol}
|
1577
1578
|
${It}
|
1578
1579
|
${rr};
|
1579
|
-
`,
|
1580
|
-
${
|
1580
|
+
`,Hl=e.forwardRef((({children:t,theme:r,width:o,...a},n)=>e.createElement(Pl,Pt({theme:r},a,{role:"menu",ref:n}),e.createElement(Ml,{theme:r,width:o},t))));Hl.defaultProps={align:"left",width:"300px"},Hl.displayName="SelectMenu.Modal";var Dl=Hl;const Wl=p(["flex:1;padding:"," ",";font-size:",";font-weight:500;color:",";text-align:center;background-color:transparent;border:0;box-shadow:inset 0 -1px 0 ",";@media (min-width:","){flex:none;padding:"," ",";border:"," solid transparent;border-bottom-width:0;border-top-left-radius:",";border-top-right-radius:",";}&[aria-selected='true']{z-index:1;color:",";background-color:",";box-shadow:0 0 0 1px ",";@media (min-width:","){border-color:",";box-shadow:none;}}&:focus{background-color:",";}"],Nt("space.2"),Nt("space.3"),Nt("fontSizes.0"),Nt("colors.fg.muted"),Nt("colors.border.muted"),Nt("breakpoints.0"),Nt("space.1"),Nt("space.3"),Nt("borderWidths.1"),Nt("radii.2"),Nt("radii.2"),Nt("colors.text-primary"),Nt("colors.canvas.overlay"),Nt("colors.border.muted"),Nt("breakpoints.0"),Nt("colors.border.muted"),Nt("colors.neutral.subtle")),Fl=f.button`
|
1581
|
+
${Wl}
|
1581
1582
|
${It}
|
1582
1583
|
${rr};
|
1583
|
-
`,
|
1584
|
+
`,_l=({tabName:t="",index:r,className:o,onClick:n,...i})=>{const d=l(nl);a((()=>{var e;d.selectedTab||0!==r||(null===(e=d.setSelectedTab)||void 0===e||e.call(d,t))}),[r,d,t]);const s=d.selectedTab===t;return e.createElement(Fl,Pt({role:"tab",className:_a("SelectMenuTab",o),"aria-selected":s,onClick:e=>{var r;(n&&n(e),e.defaultPrevented)||(null===(r=d.setSelectedTab)||void 0===r||r.call(d,t))}},i),t)};_l.displayName="SelectMenuTab",_l.displayName="SelectMenu.Tab";var jl=_l;const Ul=f.div`
|
1584
1585
|
border-top: ${Nt("borderWidths.1")} solid ${Nt("colors.border.muted")};
|
1585
1586
|
${It}
|
1586
1587
|
${rr};
|
1587
|
-
`,
|
1588
|
-
${
|
1588
|
+
`,Gl=({tabName:t,className:r,children:o,...a})=>{const n=l(nl);return e.createElement(Ul,Pt({role:"tabpanel",className:r,hidden:n.selectedTab!==t},a),e.createElement(Tl,null,o))};Gl.displayName="TabPanel",Gl.displayName="SelectMenu.TabPanel";var Vl=Gl;const Kl=p(["display:flex;flex-shrink:0;margin-bottom:-1px;-webkit-overflow-scrolling:touch;overflow-x:auto;overflow-y:hidden;&::-webkit-scrollbar{display:none;}@media (min-width:","){padding:0 ",";margin-top:",";}"],Nt("breakpoints.0"),Nt("space.2"),Nt("space.3")),ql=f.div`
|
1589
|
+
${Kl}
|
1589
1590
|
${It}
|
1590
1591
|
${rr};
|
1591
|
-
`,
|
1592
|
+
`,Xl=({children:t,...r})=>e.createElement(ql,Pt({role:"tablist"},r),t);Xl.displayName="SelectMenuTabs",Xl.displayName="SelectMenu.Tabs";var Yl=Xl;const Jl=f.details`
|
1592
1593
|
${"\n // Remove marker added by the display: list-item browser default\n > summary {\n list-style: none;\n }\n // Remove marker added by details polyfill\n > summary::before {\n display: none;\n }\n // Remove marker added by Chrome\n > summary::-webkit-details-marker {\n display: none;\n }\n"}
|
1593
1594
|
${It}
|
1594
1595
|
${rr};
|
1595
|
-
`,
|
1596
|
+
`,Zl=e.forwardRef((({children:n,initialTab:i="",as:l,...d},s)=>{const c=r(null),f=null!=s?s:c,[g,u]=t(i),[p,b]=t(!1),h={selectedTab:g,setSelectedTab:u,setOpen:b,open:p,initialTab:i},m=o((e=>{"current"in f&&f.current&&!f.current.contains(e.target)&&(e.defaultPrevented||b(!1))}),[f,b]);return a((()=>{if(p)return document.addEventListener("click",m),()=>{document.removeEventListener("click",m)}}),[p,m]),al(f,p,b),e.createElement(nl.Provider,{value:h},e.createElement(Jl,Pt({ref:f},d,{open:p,onToggle:function(e){b(e.target.open)}}),n))}));Zl.displayName="SelectMenu";var Ql=Object.assign(Zl,{MenuContext:nl,List:Tl,Divider:dl,Filter:fl,Footer:pl,Item:Bl,Modal:Dl,Tabs:Yl,Tab:jl,TabPanel:Vl,Header:vl,LoadingAnimation:Al});function ed({variant:t,className:r,bordered:o,children:a,...n}){const i=_a(r,`variant-${"lightweight"===t?"lightweight":"normal"}`);return o||(n={...n,borderWidth:0}),e.createElement(or,Pt({borderWidth:"1px",borderStyle:"solid",borderColor:"border.default",borderRadius:2,as:"nav",className:i},n),a)}ed.displayName="SideNavBase";const td=f(ed)`
|
1596
1597
|
background-color: ${Nt("colors.canvas.subtle")};
|
1597
1598
|
|
1598
1599
|
${e=>e.bordered&&p(["& > &{border-left:0;border-right:0;border-bottom:0;}"])}
|
1599
1600
|
|
1600
1601
|
${It};
|
1601
1602
|
${rr};
|
1602
|
-
`,
|
1603
|
+
`,rd=p(["background-color:",";outline:none;text-decoration:none;"],Nt("colors.neutral.subtle")),od=p(["color:",";text-decoration:none;outline:none;"],Nt("colors.fg.default")),ad=f(_i).attrs((e=>"string"==typeof e.to||e.selected?{"aria-current":"page"}:{}))`
|
1603
1604
|
position: relative;
|
1604
1605
|
display: block;
|
1605
1606
|
${e=>"full"===e.variant&&p(["display:flex;align-items:center;justify-content:space-between;"])}
|
@@ -1607,11 +1608,11 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1607
1608
|
text-align: left;
|
1608
1609
|
font-size: ${Nt("fontSizes.1")};
|
1609
1610
|
|
1610
|
-
& > ${
|
1611
|
+
& > ${td} {
|
1611
1612
|
border-bottom: none;
|
1612
1613
|
}
|
1613
1614
|
|
1614
|
-
${
|
1615
|
+
${td}.variant-normal > & {
|
1615
1616
|
color: ${Nt("colors.fg.default")};
|
1616
1617
|
padding: ${Nt("space.3")};
|
1617
1618
|
border: 0;
|
@@ -1641,11 +1642,11 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1641
1642
|
}
|
1642
1643
|
|
1643
1644
|
&:hover {
|
1644
|
-
${
|
1645
|
+
${rd}
|
1645
1646
|
}
|
1646
1647
|
|
1647
1648
|
&:focus {
|
1648
|
-
${
|
1649
|
+
${rd}
|
1649
1650
|
box-shadow: ${Nt("shadows.primer.shadow.focus")};
|
1650
1651
|
z-index: 1;
|
1651
1652
|
}
|
@@ -1661,16 +1662,16 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1661
1662
|
}
|
1662
1663
|
}
|
1663
1664
|
|
1664
|
-
${
|
1665
|
+
${td}.variant-lightweight > & {
|
1665
1666
|
padding: ${Nt("space.1")} 0;
|
1666
1667
|
color: ${Nt("colors.accent.fg")};
|
1667
1668
|
|
1668
1669
|
&:hover {
|
1669
|
-
${
|
1670
|
+
${od}
|
1670
1671
|
}
|
1671
1672
|
|
1672
1673
|
&:focus {
|
1673
|
-
${
|
1674
|
+
${od}
|
1674
1675
|
box-shadow: ${Nt("shadows.primer.shadow.focus")};
|
1675
1676
|
z-index: 1;
|
1676
1677
|
}
|
@@ -1683,7 +1684,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1683
1684
|
}
|
1684
1685
|
|
1685
1686
|
${rr};
|
1686
|
-
`;
|
1687
|
+
`;td.defaultProps={variant:"normal"},ad.defaultProps={variant:"normal"},ad.displayName="SideNav.Link";var nd=Object.assign(td,{Link:ad});const id={issueOpened:Yr,pullOpened:qr,issueClosed:Xr,pullClosed:qr,pullMerged:Kr,draft:qr},ld=ue({prop:"status",variants:{issueClosed:{backgroundColor:"danger.emphasis",color:"fg.onEmphasis"},pullClosed:{backgroundColor:"danger.emphasis",color:"fg.onEmphasis"},pullMerged:{backgroundColor:"done.emphasis",color:"fg.onEmphasis"},issueOpened:{backgroundColor:"success.emphasis",color:"fg.onEmphasis"},pullOpened:{backgroundColor:"success.emphasis",color:"fg.onEmphasis"},draft:{backgroundColor:"neutral.emphasis",color:"fg.onEmphasis"}}}),dd=ue({prop:"variant",variants:{small:{paddingX:2,paddingY:1,fontSize:0},normal:{paddingX:"12px",paddingY:2,fontSize:1}}}),sd=f.span`
|
1687
1688
|
display: inline-flex;
|
1688
1689
|
align-items: center;
|
1689
1690
|
font-weight: ${Nt("fontWeights.bold")};
|
@@ -1691,11 +1692,11 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1691
1692
|
color: ${Nt("colors.canvas.default")};
|
1692
1693
|
text-align: center;
|
1693
1694
|
border-radius: ${Nt("radii.3")};
|
1694
|
-
${id};
|
1695
1695
|
${ld};
|
1696
|
+
${dd};
|
1696
1697
|
${It};
|
1697
1698
|
${rr};
|
1698
|
-
`;function
|
1699
|
+
`;function cd({children:t,status:r,variant:o,...a}){const n="small"===o?{width:"1em"}:{};return e.createElement(sd,Pt({},a,{variant:o,status:r}),r&&e.createElement(jn,Pt({mr:1},n,{icon:id[r]||Zr})),t)}cd.displayName="StateLabel",cd.defaultProps={variant:"normal"};const fd=f.nav`
|
1699
1700
|
display: flex;
|
1700
1701
|
justify-content: space-between;
|
1701
1702
|
|
@@ -1719,7 +1720,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1719
1720
|
${It};
|
1720
1721
|
${Mt};
|
1721
1722
|
${rr};
|
1722
|
-
`;function
|
1723
|
+
`;function gd({actions:t,className:r,children:o,label:a,...n}){const i=_a(r,"SubNav");return e.createElement(fd,Pt({className:i,"aria-label":a},n),e.createElement("div",{className:"SubNav-body"},o),t&&e.createElement("div",{className:"SubNav-actions"},t))}function ud(t){return e.createElement(or,Pt({display:"flex"},t))}gd.displayName="SubNav",ud.displayName="SubNavLinks";const pd=f.a.attrs((e=>({activeClassName:"string"==typeof e.to?"selected":"",className:_a("SubNav-item",e.selected&&"selected",e.className)})))`
|
1723
1724
|
padding-left: ${Nt("space.3")};
|
1724
1725
|
padding-right: ${Nt("space.3")};
|
1725
1726
|
font-weight: ${Nt("fontWeights.semibold")};
|
@@ -1768,16 +1769,16 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1768
1769
|
|
1769
1770
|
${It};
|
1770
1771
|
${rr};
|
1771
|
-
`;
|
1772
|
+
`;pd.displayName="SubNav.Link",ud.displayName="SubNav.Links";var bd=Object.assign(gd,{Link:pd,Links:ud});const hd=f.div`
|
1772
1773
|
margin-top: 0;
|
1773
1774
|
border-bottom: 1px solid ${Nt("colors.border.default")};
|
1774
1775
|
${It}
|
1775
1776
|
${rr}
|
1776
|
-
`,
|
1777
|
+
`,md=f.nav`
|
1777
1778
|
display: flex;
|
1778
1779
|
margin-bottom: -1px;
|
1779
1780
|
overflow: auto;
|
1780
|
-
`;function
|
1781
|
+
`;function vd({children:t,"aria-label":r,...o}){return e.createElement(hd,o,e.createElement(md,{"aria-label":r},t))}vd.displayName="TabNav";const xd=f.a.attrs((e=>({activeClassName:"string"==typeof e.to?"selected":"",className:_a("TabNav-item",e.selected&&"selected",e.className)})))`
|
1781
1782
|
padding: 8px 12px;
|
1782
1783
|
font-size: ${Nt("fontSizes.1")};
|
1783
1784
|
line-height: 20px;
|
@@ -1803,18 +1804,18 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1803
1804
|
|
1804
1805
|
${It};
|
1805
1806
|
${rr};
|
1806
|
-
`;
|
1807
|
+
`;xd.displayName="TabNav.Link";var yd=Object.assign(vd,{Link:xd}),wd=O(te,D,H,M,W,U,V,q,_,re,pe,be,he),Bd=new RegExp("^("+wd.propNames.join("|")+")$");const $d={small:"16px",medium:"20px",large:"24px",extralarge:"32px"},kd=({as:e="span",onClick:t,onFocus:r,tabIndex:o=-1})=>Boolean(r||t||o>-1||["a","button"].includes(e)),Td=ue({prop:"size",variants:{small:{fontSize:0,height:$d.small,lineHeight:$d.small,paddingLeft:1,paddingRight:1,paddingTop:0,paddingBottom:0},medium:{fontSize:0,height:$d.medium,lineHeight:$d.medium,paddingLeft:2,paddingRight:2,paddingTop:0,paddingBottom:0},large:{fontSize:0,height:$d.large,lineHeight:$d.large,paddingLeft:2,paddingRight:2,paddingTop:0,paddingBottom:0},extralarge:{fontSize:1,height:$d.extralarge,lineHeight:$d.extralarge,paddingLeft:3,paddingRight:3,paddingTop:0,paddingBottom:0}}}),Sd=f.span.attrs((({text:e,onRemove:t,onKeyDown:r})=>({onKeyDown:e=>{r&&r(e),"Backspace"!==e.key&&"Delete"!==e.key||!t||t()},"aria-label":t?`${e}, press backspace or delete to remove`:void 0})))`
|
1807
1808
|
align-items: center;
|
1808
1809
|
border-radius: 999px;
|
1809
|
-
cursor: ${e
|
1810
|
+
cursor: ${e=>kd(e)?"pointer":"auto"};
|
1810
1811
|
display: inline-flex;
|
1811
1812
|
font-weight: ${Nt("fontWeights.bold")};
|
1812
1813
|
font-family: inherit;
|
1813
1814
|
text-decoration: none;
|
1814
1815
|
white-space: nowrap;
|
1815
|
-
${
|
1816
|
+
${Td}
|
1816
1817
|
${rr}
|
1817
|
-
`;
|
1818
|
+
`;Sd.defaultProps={as:"span",size:"medium"};var Ed=Sd;const Cd=ue({prop:"size",variants:{small:{height:$d.small,width:$d.small},medium:{height:$d.medium,width:$d.medium},large:{height:$d.large,width:$d.large},extralarge:{height:$d.extralarge,width:$d.extralarge}}}),zd=e=>.75*parseInt($d[e||"medium"],10),Nd=f.span`
|
1818
1819
|
background-color: transparent;
|
1819
1820
|
font-family: inherit;
|
1820
1821
|
color: currentColor;
|
@@ -1827,11 +1828,12 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1827
1828
|
text-decoration: none;
|
1828
1829
|
padding: 0;
|
1829
1830
|
transform: ${e=>`translate(${e.borderOffset}px, -${e.borderOffset}px)`};
|
1830
|
-
|
1831
1831
|
align-self: baseline;
|
1832
1832
|
border: 0;
|
1833
1833
|
border-radius: 999px;
|
1834
1834
|
|
1835
|
+
${e=>{switch(e.size){case"large":case"extralarge":return p(["margin-left:",";"],Nt("space.2"));default:return p(["margin-left:",";"],Nt("space.1"))}}}
|
1836
|
+
|
1835
1837
|
&:hover,
|
1836
1838
|
&:focus {
|
1837
1839
|
// TODO: choose a better functional color variable for this
|
@@ -1843,9 +1845,9 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1843
1845
|
background-color: ${Nt("colors.neutral.subtle")};
|
1844
1846
|
}
|
1845
1847
|
|
1846
|
-
${
|
1848
|
+
${Cd}
|
1847
1849
|
${rr}
|
1848
|
-
`,
|
1850
|
+
`,Id=({"aria-label":t,isParentInteractive:r,size:o,...a})=>(delete a.children,e.createElement(Nd,Pt({as:r?"span":"button",tabIndex:r?-1:void 0,"aria-label":r?t:"Remove token",size:o},a),e.createElement(eo,{size:zd(o)})));Id.displayName="RemoveTokenButton",Id.defaultProps={size:"medium"};var Ad=Id;var Rd=f("span")`
|
1849
1851
|
flex-grow: 1;
|
1850
1852
|
min-width: 0;
|
1851
1853
|
overflow: hidden;
|
@@ -1886,7 +1888,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1886
1888
|
bottom: 0;
|
1887
1889
|
}
|
1888
1890
|
}
|
1889
|
-
`;const
|
1891
|
+
`;const Ld=f(Ed)`
|
1890
1892
|
background-color: ${Nt("colors.neutral.subtle")};
|
1891
1893
|
border-color: ${e=>e.isSelected?Nt("colors.fg.default"):Nt("colors.border.subtle")};
|
1892
1894
|
border-style: solid;
|
@@ -1898,16 +1900,18 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1898
1900
|
${rr}
|
1899
1901
|
|
1900
1902
|
${e=>{if(e.isTokenInteractive)return p(["&:hover{background-color:",";box-shadow:",";color:",";}"],Nt("colors.neutral.muted"),Nt("colors.shadow.medium"),Nt("colors.fg.default"))}}
|
1901
|
-
`,
|
1903
|
+
`,Od=f("span")`
|
1902
1904
|
flex-shrink: 0;
|
1903
1905
|
line-height: 0;
|
1904
|
-
|
1906
|
+
|
1907
|
+
${e=>{switch(e.size){case"large":case"extralarge":return p(["margin-right:",";"],Nt("space.2"));default:return p(["margin-right:",";"],Nt("space.1"))}}}
|
1908
|
+
`,Md=i(((t,r)=>{const{as:o,onRemove:a,id:n,leadingVisual:i,text:l,size:d,hideRemoveButton:s,href:c,onClick:f,...g}=t,u=kd(t)&&Boolean(a)&&!s,p={as:o,href:c,onClick:f};return e.createElement(Ld,Pt({onRemove:a,hideRemoveButton:s||!a,id:null==n?void 0:n.toString(),text:l,size:d,isTokenInteractive:kd(t)},u?{}:p,g,{ref:r}),i?e.createElement(Od,{size:d},e.createElement(i,null)):null,e.createElement(Rd,u?p:{},l),!s&&a?e.createElement(Ad,{borderOffset:1,onClick:e=>{e.stopPropagation(),a&&a()},size:d,isParentInteractive:kd(t),"aria-hidden":u?"true":"false",sx:u?{position:"relative",zIndex:"1"}:{}}):null)}));Md.displayName="Token",Md.defaultProps={size:"medium"};var Pd=Md;const Hd={small:0,medium:1,large:1,extralarge:2};function Dd({icon:o,contrast:a,className:n,block:i,disabled:l,theme:d,sx:s,tokens:c,onTokenRemove:f,tokenComponent:g,preventTokenWrapping:u,size:p,hideTokenRemoveButtons:b,maxHeight:h,width:m,minWidth:v,maxWidth:x,variant:y,visibleTokenCount:w,...B},$){const{onBlur:k,onFocus:T,onKeyDown:S,...E}=function(e){var t={};for(var r in e)Bd.test(r)||(t[r]=e[r]);return t}(B),C=zr($),z=zo(r(null),C),[N,I]=t(),[A,R]=t(Boolean(w)),{containerRef:L}=To({focusOutBehavior:"wrap",bindKeys:Mr.ArrowHorizontal|Mr.HomeAndEnd,focusableElementFilter:e=>!e.getAttributeNames().includes("aria-hidden"),getNextFocusable:e=>{var t;if(!N&&0!==N)return;let r=N+1;return"next"===e&&(r+=1),"previous"===e&&(r-=1),r>c.length||r<1?z.current||void 0:null===(t=L.current)||void 0===t?void 0:t.children[r]}},[N]),O=e=>{f(e),setTimeout((()=>{var e,t;const r=null===(e=L.current)||void 0===e?void 0:e.children[N||0],o=r&&$r(r)?r:Array.from((null===(t=L.current)||void 0===t?void 0:t.children)||[]).find((e=>$r(e)));var a;o?o.focus():null===(a=C.current)||void 0===a||a.focus()}),0)},M=()=>{I(void 0),setTimeout((()=>{var e;null!==(e=L.current)&&void 0!==e&&e.contains(document.activeElement)||!w||R(!0)}),0)},P=e=>{var t;"Escape"===e.key&&(null===(t=C.current)||void 0===t||t.focus())},H=e=>{e.stopPropagation()},D=A?c.slice(0,w):c;return e.createElement(Ga,{block:i,className:n,contrast:a,disabled:l,hasIcon:!!o,theme:d,width:m,minWidth:v,maxWidth:x,variant:y,onClick:()=>{var e;null===(e=z.current)||void 0===e||e.focus()},sx:{...i?{display:"flex",width:"100%"}:{},...h?{maxHeight:h,overflow:"auto"}:{},...u?{overflow:"auto"}:{},...s}},e.createElement(or,{ref:L,display:"flex",sx:{alignItems:"center",flexWrap:u?"nowrap":"wrap",marginLeft:"-0.25rem",marginBottom:"-0.25rem",flexGrow:1,"> *":{flexShrink:0,marginLeft:"0.25rem",marginBottom:"0.25rem"}}},e.createElement(or,{sx:{order:1,flexGrow:1}},o&&e.createElement(o,{className:"TextInput-icon"}),e.createElement(ja,Pt({ref:z,disabled:l,onFocus:e=>{T&&T(e),I(void 0),w&&R(!1)},onBlur:e=>{k&&k(e),setTimeout((()=>{var e;null!==(e=L.current)&&void 0!==e&&e.contains(document.activeElement)||!w||R(!0)}),0)},onKeyDown:e=>{var t;if(S&&S(e),null!==(t=C.current)&&void 0!==t&&t.value)return;const r=c[c.length-1];"Backspace"===e.key&&r&&(O(r.id),C.current&&(C.current.value=`${r.text} `),setTimeout((()=>{var e;null===(e=C.current)||void 0===e||e.select()}),0))},type:"text",sx:{height:"100%"}},E))),g?D.map((({id:t,...r},o)=>{return e.createElement(g,Pt({key:t,onFocus:(a=o,()=>{I(a)}),onBlur:M,onKeyUp:P,onClick:H,isSelected:N===o,onRemove:()=>{O(t)},hideRemoveButton:b,size:p,tabIndex:0},r));var a})):null,A?e.createElement(ei,{color:"fg.muted",fontSize:p&&Hd[p]},"+",c.length-D.length):null))}Dd.displayName="TextInputWithTokensInnerComponent";const Wd=e.forwardRef(Dd);Wd.defaultProps={tokenComponent:Pd,size:"extralarge",hideTokenRemoveButtons:!1,preventTokenWrapping:!1},Wd.displayName="TextInputWithTokens";var Fd=Wd;const _d=f(or)`
|
1905
1909
|
display: flex;
|
1906
1910
|
flex-direction: column;
|
1907
1911
|
${e=>e.clipSidebar&&p([".Timeline-Item:first-child{padding-top:0;}.Timeline-Item:last-child{padding-bottom:0;}"])}
|
1908
1912
|
|
1909
1913
|
${rr};
|
1910
|
-
`,
|
1914
|
+
`,jd=f(or).attrs((e=>({className:_a("Timeline-Item",e.className)})))`
|
1911
1915
|
display: flex;
|
1912
1916
|
position: relative;
|
1913
1917
|
padding: ${Nt("space.3")} 0;
|
@@ -1928,7 +1932,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1928
1932
|
|
1929
1933
|
${It};
|
1930
1934
|
${rr};
|
1931
|
-
`,
|
1935
|
+
`,Ud=t=>e.createElement(or,{position:"relative",zIndex:1},e.createElement(or,Pt({display:"flex",className:_a(t.className,"TimelineItem-Badge"),flexShrink:0,borderRadius:"50%",borderWidth:"2px",borderStyle:"solid",borderColor:"canvas.default",overflow:"hidden",color:"fg.muted",bg:"timeline.badgeBg",width:"32px",height:"32px",mr:2,ml:"-15px",alignItems:"center",justifyContent:"center"},t),t.children));Ud.displayName="TimelineBadge";const Gd=f(or)`
|
1932
1936
|
min-width: 0;
|
1933
1937
|
max-width: 100%;
|
1934
1938
|
margin-top: ${Nt("space.1")};
|
@@ -1936,7 +1940,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1936
1940
|
flex: auto;
|
1937
1941
|
font-size: ${Nt("fontSizes.1")};
|
1938
1942
|
${rr};
|
1939
|
-
`,
|
1943
|
+
`,Vd=f(or)`
|
1940
1944
|
position: relative
|
1941
1945
|
z-index: 1;
|
1942
1946
|
height: 24px;
|
@@ -1947,15 +1951,15 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1947
1951
|
border: 0;
|
1948
1952
|
border-top: ${Nt("space.1")} solid ${Nt("colors.border.default")};
|
1949
1953
|
${rr};
|
1950
|
-
`;
|
1954
|
+
`;jd.displayName="Timeline.Item",Ud.displayName="Timeline.Badge",Gd.displayName="Timeline.Body",Vd.displayName="Timeline.Break";var Kd=Object.assign(_d,{Item:jd,Badge:Ud,Body:Gd,Break:Vd});function qd(e,t,r){return Math.min(Math.max(e,r),t)}class Xd extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}function Yd(e){if("string"!=typeof e)throw new Xd(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=as.test(e)?function(e){const t=e.toLowerCase().trim(),r=Zd[function(e){let t=5381,r=e.length;for(;r;)t=33*t^e.charCodeAt(--r);return(t>>>0)%2341}(t)];if(!r)throw new Xd(e);return`#${r}`}(e):e;const r=es.exec(t);if(r){const e=Array.from(r).slice(1);return[...e.slice(0,3).map((e=>parseInt(Qd(e,2),16))),parseInt(Qd(e[3]||"f",2),16)/255]}const o=ts.exec(t);if(o){const e=Array.from(o).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,16))),parseInt(e[3]||"ff",16)/255]}const a=rs.exec(t);if(a){const e=Array.from(a).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,10))),parseFloat(e[3]||"1")]}const n=os.exec(t);if(n){const[t,r,o,a]=Array.from(n).slice(1).map(parseFloat);if(qd(0,100,r)!==r)throw new Xd(e);if(qd(0,100,o)!==o)throw new Xd(e);return[...is(t,r,o),a||1]}throw new Xd(e)}const Jd=e=>parseInt(e.replace(/_/g,""),36),Zd="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce(((e,t)=>{const r=Jd(t.substring(0,3)),o=Jd(t.substring(3)).toString(16);let a="";for(let e=0;e<6-o.length;e++)a+="0";return e[r]=`${a}${o}`,e}),{}),Qd=(e,t)=>Array.from(Array(t)).map((()=>e)).join(""),es=new RegExp(`^#${Qd("([a-f0-9])",3)}([a-f0-9])?$`,"i"),ts=new RegExp(`^#${Qd("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),rs=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Qd(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),os=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,as=/^[a-z]+$/i,ns=e=>Math.round(255*e),is=(e,t,r)=>{let o=r/100;if(0===t)return[o,o,o].map(ns);const a=(e%360+360)%360/60,n=(1-Math.abs(2*o-1))*(t/100),i=n*(1-Math.abs(a%2-1));let l=0,d=0,s=0;a>=0&&a<1?(l=n,d=i):a>=1&&a<2?(l=i,d=n):a>=2&&a<3?(d=n,s=i):a>=3&&a<4?(d=i,s=n):a>=4&&a<5?(l=i,s=n):a>=5&&a<6&&(l=n,s=i);const c=o-n/2;return[l+c,d+c,s+c].map(ns)};const ls={"--lightness-threshold":"0.453","--border-threshold":"0.96","--border-alpha":"max(0, min(calc((var(--perceived-lightness) - var(--border-threshold)) * 100), 1))",background:"rgb(var(--label-r), var(--label-g), var(--label-b))",color:"hsl(0, 0%, calc(var(--lightness-switch) * 100%))",borderWidth:1,borderStyle:"solid",borderColor:"hsla(var(--label-h),calc(var(--label-s) * 1%),calc((var(--label-l) - 25) * 1%),var(--border-alpha))"},ds={"--lightness-threshold":"0.6","--background-alpha":"0.18","--border-alpha":"0.3","--lighten-by":"calc(((var(--lightness-threshold) - var(--perceived-lightness)) * 100) * var(--lightness-switch))",borderWidth:1,borderStyle:"solid",background:"rgba(var(--label-r), var(--label-g), var(--label-b), var(--background-alpha))",color:"hsl(var(--label-h), calc(var(--label-s) * 1%), calc((var(--label-l) + var(--lighten-by)) * 1%))",borderColor:"hsla(var(--label-h), calc(var(--label-s) * 1%),calc((var(--label-l) + var(--lighten-by)) * 1%),var(--border-alpha))"},ss=i(((t,r)=>{const{as:o,fillColor:a="#999",onRemove:i,id:l,isSelected:d,text:s,size:c,hideRemoveButton:f,href:g,onClick:u,...p}=t,b={as:o,href:g,onClick:u},{colorScheme:h}=Zt(),m=kd(t)&&Boolean(i)&&!f,v=n((()=>{const[e,t,r]=Yd(a),[o,n,l]=function(e){const[t,r,o,a]=Yd(e).map(((e,t)=>3===t?e:e/255)),n=Math.max(t,r,o),i=Math.min(t,r,o),l=(n+i)/2;if(n===i)return[0,0,l,a];const d=n-i;return[60*(t===n?(r-o)/d+(r<o?6:0):r===n?(o-t)/d+2:(t-r)/d+4),l>.5?d/(2-n-i):d/(n+i),l,a]}(a);return{"--label-r":String(e),"--label-g":String(t),"--label-b":String(r),"--label-h":String(Math.round(o)),"--label-s":String(Math.round(100*n)),"--label-l":String(Math.round(100*l)),"--perceived-lightness":"calc(((var(--label-r) * 0.2126) + (var(--label-g) * 0.7152) + (var(--label-b) * 0.0722)) / 255)","--lightness-switch":"max(0, min(calc((var(--perceived-lightness) - var(--lightness-threshold)) * -1000), 1))",paddingRight:f||!i?void 0:0,position:"relative",..."light"===h?ls:ds,...d?{background:"light"===h?"hsl(var(--label-h), calc(var(--label-s) * 1%), calc((var(--label-l) - 5) * 1%))":ds.background,":focus":{outline:"none"},":after":{content:'""',position:"absolute",zIndex:1,top:"-2px",right:"-2px",bottom:"-2px",left:"-2px",display:"block",pointerEvents:"none",boxShadow:"0 0 0 2px "+("light"===h?"rgb(var(--label-r), var(--label-g), var(--label-b))":"hsl(var(--label-h), calc(var(--label-s) * 1%), calc((var(--label-l) + var(--lighten-by)) * 1%))"),borderRadius:"999px"}}:{}}}),[h,a,d,f,i]);return e.createElement(Ed,Pt({onRemove:i,id:null==l?void 0:l.toString(),isSelected:d,text:s,size:c,sx:v},m?{}:b,p,{ref:r}),e.createElement(Rd,m?b:{},s),!f&&i?e.createElement(Ad,{borderOffset:1,onClick:e=>{e.stopPropagation(),i&&i()},size:c,"aria-hidden":m?"true":"false",isParentInteractive:kd(t),sx:m?{position:"relative",zIndex:"1"}:{}}):null)}));ss.defaultProps={fillColor:"#999",size:"medium"},ss.displayName="IssueLabelToken";var cs=ss;const fs=f.span`
|
1951
1955
|
// 'space.1' is used because to match space from the left of the token to the left of the avatar
|
1952
1956
|
// '* 2' is done to account for the top and bottom
|
1953
1957
|
--spacing: calc(${Nt("space.1")} * 2);
|
1954
1958
|
|
1955
1959
|
display: block;
|
1956
|
-
height: ${e=>`calc(${
|
1957
|
-
width: ${e=>`calc(${
|
1958
|
-
`,
|
1960
|
+
height: ${e=>`calc(${$d[e.avatarSize]} - var(--spacing))`};
|
1961
|
+
width: ${e=>`calc(${$d[e.avatarSize]} - var(--spacing))`};
|
1962
|
+
`,gs=i((({avatarSrc:t,id:r,size:o,...a},n)=>e.createElement(Pd,Pt({leadingVisual:()=>e.createElement(fs,{avatarSize:o||"medium"},e.createElement(an,{src:t,size:parseInt($d[o||"medium"],10),sx:{width:"100%",height:"100%"}})),size:o,id:null==r?void 0:r.toString(),sx:{paddingLeft:Nt("space.1")}},a,{ref:n}))));gs.defaultProps={size:"medium"},gs.displayName="AvatarToken";var us=gs;const ps=f.span`
|
1959
1963
|
position: relative;
|
1960
1964
|
|
1961
1965
|
&::before {
|
@@ -2181,7 +2185,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
2181
2185
|
}
|
2182
2186
|
${It};
|
2183
2187
|
${rr};
|
2184
|
-
`;function
|
2188
|
+
`;function bs({direction:t="n",children:r,className:o,text:a,noDelay:n,align:i,wrap:l,...d}){const s=_a(o,`tooltipped-${t}`,i&&`tooltipped-align-${i}-2`,n&&"tooltipped-no-delay",l&&"tooltipped-multiline");return e.createElement(ps,Pt({role:"tooltip","aria-label":a},d,{className:s}),r)}bs.displayName="Tooltip",bs.alignments=["left","right"],bs.directions=["n","ne","e","se","s","sw","w","nw"];const hs=f.nav`
|
2185
2189
|
display: flex;
|
2186
2190
|
justify-content: space-between;
|
2187
2191
|
border-bottom: 1px solid ${Nt("colors.border.muted")};
|
@@ -2212,7 +2216,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
2212
2216
|
|
2213
2217
|
${It};
|
2214
2218
|
${rr};
|
2215
|
-
`;function
|
2219
|
+
`;function ms({actions:t,className:r,align:o,children:a,full:n,label:i,theme:l,...d}){const s=_a(r,"UnderlineNav",o&&`UnderlineNav--${o}`,n&&"UnderlineNav--full");return e.createElement(hs,Pt({className:s,"aria-label":i,theme:l},d),e.createElement("div",{className:"UnderlineNav-body"},a),t&&e.createElement("div",{className:"UnderlineNav-actions"},t))}ms.displayName="UnderlineNav";const vs=f.a.attrs((e=>({activeClassName:"string"==typeof e.to?"selected":"",className:_a("UnderlineNav-item",e.selected&&"selected",e.className)})))`
|
2216
2220
|
padding: ${Nt("space.3")} ${Nt("space.2")};
|
2217
2221
|
margin-right: ${Nt("space.3")};
|
2218
2222
|
font-size: ${Nt("fontSizes.1")};
|
@@ -2245,5 +2249,5 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
2245
2249
|
|
2246
2250
|
${It};
|
2247
2251
|
${rr};
|
2248
|
-
`;
|
2252
|
+
`;vs.displayName="UnderlineNav.Link";var xs=Object.assign(ms,{Link:vs});export{gr as Absolute,Ca as ActionList,Ha as ActionMenu,rn as Autocomplete,an as Avatar,dn as AvatarPair,fn as AvatarStack,us as AvatarToken,Wt as BaseStyles,nr as BorderBox,or as Box,gn as BranchName,vn as Breadcrumb,mn as Breadcrumbs,kn as Button,Rn as ButtonClose,Tn as ButtonDanger,En as ButtonGroup,Nn as ButtonInvisible,Cn as ButtonOutline,zn as ButtonPrimary,In as ButtonTableList,Wn as Caret,Kn as CircleBadge,qn as CircleOcticon,oa as ConfirmationDialog,Xn as CounterLabel,Jn as Details,li as Dialog,bi as Dropdown,hi as DropdownButton,mi as DropdownMenu,$i as FilterList,vi as FilteredSearch,ur as Fixed,Si as Flash,lr as Flex,zi as FormGroup,sr as Grid,Ri as Header,Oi as Heading,cs as IssueLabelToken,Wi as Label,Mi as LabelGroup,_i as Link,so as NewButton,Ra as Overlay,ji as Pagehead,Ki as Pagination,Yi as PointerBox,Qi as Popover,fr as Position,ol as ProgressBar,pr as Relative,Ao as SSRProvider,Ql as SelectMenu,nd as SideNav,zl as Spinner,cd as StateLabel,br as Sticky,jn as StyledOcticon,bd as SubNav,yd as TabNav,ei as Text,Ka as TextInput,Fd as TextInputWithTokens,tr as ThemeProvider,Kd as Timeline,Pd as Token,bs as Tooltip,ca as Truncate,xs as UnderlineNav,x as theme,Nt as themeGet,Qt as useColorSchemeVar,aa as useConfirm,hr as useDetails,Cr as useOnEscapePress,wr as useOnOutsideClick,Tr as useOpenAndCloseFocus,Nr as useOverlay,Lo as useSSRSafeId,mr as useSafeTimeout,Zt as useTheme};
|
2249
2253
|
//# sourceMappingURL=browser.esm.js.map
|