@primer/components 31.2.0-rc.6afeaa37 → 31.2.0-rc.a3a30125
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/.github/workflows/release.yml +1 -0
- package/.github/workflows/release_canary.yml +1 -0
- package/CHANGELOG.md +2 -0
- package/dist/browser.esm.js +179 -179
- package/dist/browser.esm.js.map +1 -1
- package/dist/browser.umd.js +180 -180
- package/dist/browser.umd.js.map +1 -1
- package/docs/content/StateLabel.md +5 -4
- package/lib/StateLabel.d.ts +1 -1
- package/lib/StateLabel.js +6 -1
- package/lib-esm/StateLabel.d.ts +1 -1
- package/lib-esm/StateLabel.js +7 -2
- package/package-lock.json +7 -7
- package/package.json +2 -2
- package/src/StateLabel.tsx +14 -2
- package/src/__tests__/__snapshots__/Autocomplete.test.tsx.snap +1 -0
- package/src/__tests__/__snapshots__/CircleBadge.test.tsx.snap +1 -0
- package/src/__tests__/__snapshots__/CircleOcticon.test.tsx.snap +1 -0
- package/src/__tests__/__snapshots__/Dialog.test.tsx.snap +1 -0
- package/src/__tests__/__snapshots__/DropdownMenu.test.tsx.snap +1 -0
- package/src/__tests__/__snapshots__/SelectMenu.test.tsx.snap +4 -0
- package/src/__tests__/__snapshots__/SelectPanel.test.tsx.snap +1 -0
- package/src/__tests__/__snapshots__/StateLabel.test.tsx.snap +13 -6
- package/src/__tests__/__snapshots__/StyledOcticon.test.tsx.snap +1 -0
- package/src/__tests__/__snapshots__/TextInputWithTokens.test.tsx.snap +66 -0
- package/src/__tests__/__snapshots__/Token.test.tsx.snap +17 -0
- package/stats.html +1 -1
package/dist/browser.umd.js
CHANGED
@@ -19,7 +19,7 @@
|
|
19
19
|
`,Ct=i.default.div`
|
20
20
|
${wt};
|
21
21
|
${yt};
|
22
|
-
`;function zt(e){const{children:t,...r}=e;return require("focus-visible"),n.default.createElement(Ct,St({},r,{"data-portal-root":!0}),n.default.createElement(Et,null),t)}zt.displayName="BaseStyles",zt.defaultProps={color:"fg.default",fontFamily:"normal",lineHeight:"default"};var Rt=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===It}(e)}(e)};var It="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Nt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Pt((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function At(e,t,r){return e.concat(t).map((function(e){return Nt(e,r)}))}function Lt(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function Ot(e,t){try{return t in e}catch(e){return!1}}function Mt(e,t,r){var a={};return r.isMergeableObject(e)&&Lt(e).forEach((function(t){a[t]=Nt(e[t],r)})),Lt(t).forEach((function(o){(function(e,t){return Ot(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(Ot(e,o)&&r.isMergeableObject(t[o])?a[o]=function(e,t){if(!t.customMerge)return Pt;var r=t.customMerge(e);return"function"==typeof r?r:Pt}(o,r)(e[o],t[o],r):a[o]=Nt(t[o],r))})),a}function Pt(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||At,r.isMergeableObject=r.isMergeableObject||Rt,r.cloneUnlessOtherwiseSpecified=Nt;var a=Array.isArray(t);return a===Array.isArray(e)?a?r.arrayMerge(e,t,r):Mt(e,t,r):Nt(t,r)}Pt.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return Pt(e,r,t)}),{})};var Dt=Pt;const Ht="light",Ft="dark",Wt=n.default.createContext({setColorMode:()=>null,setDayScheme:()=>null,setNightScheme:()=>null}),_t=({children:e,...t})=>{var a,o,i,l,s,c,f,u;const{theme:g,colorMode:p,dayScheme:b,nightScheme:m}=jt(),h=null!==(a=null!==(o=t.theme)&&void 0!==o?o:g)&&void 0!==a?a:d,[v,x]=n.default.useState(null!==(i=null!==(l=t.colorMode)&&void 0!==l?l:p)&&void 0!==i?i:"day"),[y,w]=n.default.useState(null!==(s=null!==(c=t.dayScheme)&&void 0!==c?c:b)&&void 0!==s?s:Ht),[B,k]=n.default.useState(null!==(f=null!==(u=t.nightScheme)&&void 0!==u?u:m)&&void 0!==f?f:Ft),$=function(e,t){switch(e){case"auto":return t;default:return e}}(v,function(){const[e,t]=n.default.useState(Gt);return n.default.useEffect((()=>{var e,r;const a=null===(e=window)||void 0===e||null===(r=e.matchMedia)||void 0===r?void 0:r.call(e,"(prefers-color-scheme: dark)");function o(e){const r=e.matches;t(r?"night":"day")}if(a){if(void 0!==a.addEventListener)return a.addEventListener("change",o),function(){a.removeEventListener("change",o)};if(void 0!==a.addListener)return a.addListener(o),function(){a.removeListener(o)}}}),[]),e}()),T=function(e,t,r){switch(e){case"day":return t;case"night":return r}}($,y,B),S=n.default.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 Dt(e,e.colorSchemes[r])}return Dt(e,e.colorSchemes[t])}(h,T)),[h,T]);return n.default.useEffect((()=>{var e,r;x(null!==(e=null!==(r=t.colorMode)&&void 0!==r?r:p)&&void 0!==e?e:"day")}),[t.colorMode,p]),n.default.useEffect((()=>{var e,r;w(null!==(e=null!==(r=t.dayScheme)&&void 0!==r?r:b)&&void 0!==e?e:Ht)}),[t.dayScheme,b]),n.default.useEffect((()=>{var e,r;k(null!==(e=null!==(r=t.nightScheme)&&void 0!==r?r:m)&&void 0!==e?e:Ft)}),[t.nightScheme,m]),n.default.createElement(Wt.Provider,{value:{theme:S,colorScheme:T,colorMode:v,resolvedColorMode:$,dayScheme:y,nightScheme:B,setColorMode:x,setDayScheme:w,setNightScheme:k}},n.default.createElement(r.ThemeProvider,{theme:S},e))};function jt(){return n.default.useContext(Wt)}function Ut(e,t){var r;const{colorScheme:a=""}=jt();return null!==(r=e[a])&&void 0!==r?r:t}function Gt(){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"}_t.displayName="ThemeProvider";var Vt=_t;var Kt=e=>te(e.sx);var qt=i.default.div(U,E,C,T,z,I,O,A,P,G,Kt);const Xt=i.default(qt)``;Xt.defaultProps={borderWidth:"1px",borderStyle:"solid",borderColor:"border.default",borderRadius:2};var Yt=Xt;const Jt=i.default(qt)``;Jt.defaultProps={display:"flex"};var Zt=Jt;const Qt=i.default(qt)``;Qt.defaultProps={display:"grid"};var er=Qt;const tr=i.default(qt)``;var rr=tr;const ar=n.default.forwardRef(((e,t)=>n.default.createElement(tr,St({},e,{position:"absolute",ref:t}))));ar.displayName="Absolute";const or=n.default.forwardRef(((e,t)=>n.default.createElement(tr,St({},e,{position:"fixed",ref:t}))));or.displayName="Fixed";const nr=n.default.forwardRef(((e,t)=>n.default.createElement(tr,St({},e,{position:"relative",ref:t}))));nr.displayName="Relative";const ir=n.default.forwardRef(((e,t)=>n.default.createElement(tr,St({},e,{position:"sticky",ref:t}))));function lr({ref:e,closeOnOutsideClick:r,defaultOpen:a,onClickOutside:o}){const[n,i]=t.useState(a),l=t.useRef(null),d=null!=e?e:l,s=t.useCallback((e=>{const{current:t}=d;e.target.closest("details")!==t&&(o&&o(e),e.defaultPrevented||i(!1))}),[d,i,o]);t.useEffect((()=>{if(n&&r)return document.addEventListener("click",s),()=>{document.removeEventListener("click",s)}}),[n,r,s]);const c=e=>{if(!e.defaultPrevented){const t=e.target;i(t.open)}};return{open:n,setOpen:i,getDetailsProps:()=>({onToggle:c,open:n,ref:d})}}ir.defaultProps={top:0,zIndex:1},ir.displayName="Sticky";const dr=!0;function sr(e){if(!e.defaultPrevented)for(const t of Object.values(cr).reverse())if(t(e)===dr||e.defaultPrevented)break}const cr={};let fr=0;const ur=({containerRef:e,ignoreClickRefs:r,onClickOutside:a})=>{const o=t.useMemo((()=>fr++),[]),n=t.useCallback((t=>{var o;return t instanceof MouseEvent&&t.button>0||null!==(o=e.current)&&void 0!==o&&o.contains(t.target)||r&&r.some((({current:e})=>null==e?void 0:e.contains(t.target)))?dr:void a(t)}),[e,r,a]);t.useEffect((()=>(0===Object.keys(cr).length&&document.addEventListener("mousedown",sr,{capture:!0}),function(e,t){cr[e]=t}(o,n),()=>{!function(e){delete cr[e]}(o),0===Object.keys(cr).length&&document.removeEventListener("mousedown",sr,{capture:!0})})),[o,n])};function*gr(e,t={}){var r,a;const o=null!==(r=t.strict)&&void 0!==r&&r,n=null!==(a=t.onlyTabbable)&&void 0!==a&&a?br:pr,i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e instanceof HTMLElement&&n(e,o)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});let l=null;if(!t.reverse&&n(e,o)&&(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,o)&&(yield e)}function pr(e,t=!1){const r=["BUTTON","INPUT","SELECT","TEXTAREA","OPTGROUP","OPTION","FIELDSET"].includes(e.tagName)&&e.disabled,a=e.hidden,o=e instanceof HTMLInputElement&&"hidden"===e.type;if(r||a||o)return!1;if(t){const t=0===e.offsetWidth||0===e.offsetHeight,r=["hidden","collapse"].includes(getComputedStyle(e).visibility),a=0===e.getClientRects().length;if(t||r||a)return!1}return null!=e.getAttribute("tabindex")||!(e instanceof HTMLAnchorElement&&null==e.getAttribute("href"))&&-1!==e.tabIndex}function br(e,t=!1){return pr(e,t)&&"-1"!==e.getAttribute("tabindex")}function mr({initialFocusRef:e,returnFocusRef:r,containerRef:a,preventFocusOnOpen:o}){t.useEffect((()=>{if(o)return;const t=r.current;if(e&&e.current)e.current.focus();else if(a.current){const e=gr(a.current).next().value;null==e||e.focus()}return function(){null==t||t.focus()}}),[e,r,a,o])}const hr=[];function vr(e){if("Escape"===e.key&&!e.defaultPrevented)for(let t=hr.length-1;t>=0&&(hr[t](e),!e.defaultPrevented);--t);}const xr=(e,r=[e])=>{const a=t.useCallback(e,r);t.useEffect((()=>(0===hr.length&&document.addEventListener("keydown",vr),hr.push(a),()=>{hr.splice(hr.findIndex((e=>e===a)),1),0===hr.length&&document.removeEventListener("keydown",vr)})),[a])};function yr(e){const t=n.default.useRef(null);return null!=e?e:t}const wr=({overlayRef:e,returnFocusRef:t,initialFocusRef:r,onEscape:a,ignoreClickRefs:o,onClickOutside:n,preventFocusOnOpen:i})=>{const l=yr(e);return mr({containerRef:l,returnFocusRef:t,initialFocusRef:r,preventFocusOnOpen:i}),ur({containerRef:l,ignoreClickRefs:o,onClickOutside:n}),xr(a),{ref:l}};let Br,kr=!1;function $r(){}try{const e=Object.create({},{signal:{get(){kr=!0}}});window.addEventListener("test",$r,e),window.removeEventListener("test",$r,e)}catch(_d){}function Tr(){kr||(!function(){if("undefined"==typeof window)return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,r,a){return"object"==typeof a&&"signal"in a&&a.signal instanceof AbortSignal&&e.call(a.signal,"abort",(()=>{this.removeEventListener(t,r,a)})),e.call(this,t,r,a)}}(),kr=!0)}function Sr(){return void 0===Br&&(Br=/^mac/i.test(window.navigator.platform)),Br}let Er,Cr=1e4;function zr(){return"__primer_id_"+Cr++}Tr(),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"}(Er||(Er={}));const Rr={ArrowLeft:Er.ArrowHorizontal,ArrowDown:Er.ArrowVertical,ArrowUp:Er.ArrowVertical,ArrowRight:Er.ArrowHorizontal,h:Er.HL,j:Er.JK,k:Er.JK,l:Er.HL,a:Er.AD,s:Er.WS,w:Er.WS,d:Er.AD,Tab:Er.Tab,Home:Er.HomeAndEnd,End:Er.HomeAndEnd,PageUp:Er.PageUpDown,PageDown:Er.PageUpDown},Ir={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 Nr(e){const t=Ir[e.key];if("Tab"===e.key&&e.shiftKey)return"previous";const r=Sr();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}const Ar="data-is-active-descendant",Lr="activated-directly",Or="activated-indirectly",Mr="data-has-active-descendant";function Pr(e,t){var r,a,o,n;const i=[],l=new WeakMap,d=null!==(r=null==t?void 0:t.bindKeys)&&void 0!==r?r:(null!=t&&t.getNextFocusable?Er.ArrowAll:Er.ArrowVertical)|Er.HomeAndEnd,s=null!==(a=null==t?void 0:t.focusOutBehavior)&&void 0!==a?a:"stop",c=null!==(o=null==t?void 0:t.focusInStrategy)&&void 0!==o?o:"previous",f=null==t?void 0:t.activeDescendantControl,u=null==t?void 0:t.onActiveDescendantChanged;let g;function p(){return i[0]}function b(e,t=!1){const r=g;g=e,f?e&&document.activeElement===f?m(r,e,t):h():(r&&r!==e&&l.has(r)&&r.setAttribute("tabindex","-1"),null==e||e.setAttribute("tabindex","0"))}function m(t,r,a=!1){r.id||r.setAttribute("id",zr()),t&&t!==r&&t.removeAttribute(Ar),f&&(a||f.getAttribute("aria-activedescendant")!==r.id)&&(f.setAttribute("aria-activedescendant",r.id),e.setAttribute(Mr,r.id),r.setAttribute(Ar,a?Lr:Or),null==u||u(r,t,a))}function h(t=g){"first"===c&&(g=void 0),null==f||f.removeAttribute("aria-activedescendant"),e.removeAttribute(Mr),null==t||t.removeAttribute(Ar),null==u||u(void 0,t,!1)}function v(...e){const r=e.filter((e=>{var r,a;return null===(r=null==t||null===(a=t.focusableElementFilter)||void 0===a?void 0:a.call(t,e))||void 0===r||r}));if(0===r.length)return;const a=i.findIndex((e=>(e.compareDocumentPosition(r[0])&Node.DOCUMENT_POSITION_PRECEDING)>0));i.splice(-1===a?i.length:a,0,...r);for(const e of r)l.has(e)||l.set(e,e.getAttribute("tabindex")),e.setAttribute("tabindex","-1");g||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===g){b(p())}}}v(...gr(e)),b(p());new MutationObserver((e=>{for(const t of e)for(const e of t.removedNodes)e instanceof HTMLElement&&x(...gr(e));for(const t of e)for(const e of t.addedNodes)e instanceof HTMLElement&&v(...gr(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",(()=>{g?m(void 0,g):b(p())})),f.addEventListener("focusout",(()=>{h()}))):e.addEventListener("focusin",(t=>{if(t.target instanceof HTMLElement)if(void 0!==B)B>=0&&i[B]!==g&&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"===$?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);$=void 0}),{signal:w});const k=null!=f?f:e;let $;return"closest"===c&&document.addEventListener("keydown",(e=>{"Tab"===e.key&&($=Nr(e))}),{signal:w,capture:!0}),k.addEventListener("keydown",(r=>{if(r.key in Ir){const o=Rr[r.key];if(!r.defaultPrevented&&(o&d)>0&&!function(e,t){const r=e.key,a=[...r].length,o=t instanceof HTMLInputElement&&"text"===t.type||t instanceof HTMLTextAreaElement;if(o&&(1===a||"Home"===r||"End"===r))return!0;if(t instanceof HTMLSelectElement){if(1===a)return!0;if("ArrowDown"===r&&Sr()&&!e.metaKey)return!0;if("ArrowDown"===r&&!Sr()&&e.altKey)return!0}if(t instanceof HTMLTextAreaElement&&("PageUp"===r||"PageDown"===r))return!0;if(o){const e=t,a=0===e.selectionStart&&0===e.selectionEnd,o=e.selectionStart===e.value.length&&e.selectionEnd===e.value.length;if("ArrowLeft"===r&&!a)return!0;if("ArrowRight"===r&&!o)return!0;if(e instanceof HTMLTextAreaElement){if("ArrowUp"===r&&!a)return!0;if("ArrowDown"===r&&!o)return!0}}return!1}(r,document.activeElement)){const o=Nr(r);let n;var a;if(null!=t&&t.getNextFocusable)n=t.getNextFocusable(o,null!==(a=document.activeElement)&&void 0!==a?a:void 0,r);if(!n){const t=function(){if(!g)return 0;const t=i.indexOf(g);return-1!==t?t:g===e?-1:0}();let a=t;"previous"===o?a-=1:"start"===o?a=0:"next"===o?a+=1:a=i.length-1,a<0&&(a="wrap"===s&&"Tab"!==r.key?i.length-1:0),a>=i.length&&(a="wrap"===s&&"Tab"!==r.key?0:i.length-1),t!==a&&(n=i[a])}f?b(n||g,!0):n&&($=o,n.focus()),("Tab"!==r.key||n)&&r.preventDefault()}}}),{signal:w}),y}var Dr=r.css(["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;}"],xt("fontWeights.bold"),xt("radii.2"));const Hr=$(xe,yt,kt),Fr=re({variants:{small:{p:"4px 12px",fontSize:0},medium:{fontSize:1},large:{fontSize:2,p:"10px 20px"}}}),Wr=i.default.button.attrs((({disabled:e,onClick:t})=>({onClick:e?void 0:t})))`
|
22
|
+
`;function zt(e){const{children:t,...r}=e;return require("focus-visible"),n.default.createElement(Ct,St({},r,{"data-portal-root":!0}),n.default.createElement(Et,null),t)}zt.displayName="BaseStyles",zt.defaultProps={color:"fg.default",fontFamily:"normal",lineHeight:"default"};var Rt=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===It}(e)}(e)};var It="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Nt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Pt((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function At(e,t,r){return e.concat(t).map((function(e){return Nt(e,r)}))}function Lt(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function Ot(e,t){try{return t in e}catch(e){return!1}}function Mt(e,t,r){var a={};return r.isMergeableObject(e)&&Lt(e).forEach((function(t){a[t]=Nt(e[t],r)})),Lt(t).forEach((function(o){(function(e,t){return Ot(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(Ot(e,o)&&r.isMergeableObject(t[o])?a[o]=function(e,t){if(!t.customMerge)return Pt;var r=t.customMerge(e);return"function"==typeof r?r:Pt}(o,r)(e[o],t[o],r):a[o]=Nt(t[o],r))})),a}function Pt(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||At,r.isMergeableObject=r.isMergeableObject||Rt,r.cloneUnlessOtherwiseSpecified=Nt;var a=Array.isArray(t);return a===Array.isArray(e)?a?r.arrayMerge(e,t,r):Mt(e,t,r):Nt(t,r)}Pt.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return Pt(e,r,t)}),{})};var Dt=Pt;const Ht="light",Ft="dark",Wt=n.default.createContext({setColorMode:()=>null,setDayScheme:()=>null,setNightScheme:()=>null}),_t=({children:e,...t})=>{var a,o,i,l,s,c,f,u;const{theme:g,colorMode:p,dayScheme:b,nightScheme:m}=jt(),h=null!==(a=null!==(o=t.theme)&&void 0!==o?o:g)&&void 0!==a?a:d,[v,x]=n.default.useState(null!==(i=null!==(l=t.colorMode)&&void 0!==l?l:p)&&void 0!==i?i:"day"),[y,w]=n.default.useState(null!==(s=null!==(c=t.dayScheme)&&void 0!==c?c:b)&&void 0!==s?s:Ht),[B,k]=n.default.useState(null!==(f=null!==(u=t.nightScheme)&&void 0!==u?u:m)&&void 0!==f?f:Ft),$=function(e,t){switch(e){case"auto":return t;default:return e}}(v,function(){const[e,t]=n.default.useState(Gt);return n.default.useEffect((()=>{var e,r;const a=null===(e=window)||void 0===e||null===(r=e.matchMedia)||void 0===r?void 0:r.call(e,"(prefers-color-scheme: dark)");function o(e){const r=e.matches;t(r?"night":"day")}if(a){if(void 0!==a.addEventListener)return a.addEventListener("change",o),function(){a.removeEventListener("change",o)};if(void 0!==a.addListener)return a.addListener(o),function(){a.removeListener(o)}}}),[]),e}()),T=function(e,t,r){switch(e){case"day":return t;case"night":return r}}($,y,B),S=n.default.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 Dt(e,e.colorSchemes[r])}return Dt(e,e.colorSchemes[t])}(h,T)),[h,T]);return n.default.useEffect((()=>{var e,r;x(null!==(e=null!==(r=t.colorMode)&&void 0!==r?r:p)&&void 0!==e?e:"day")}),[t.colorMode,p]),n.default.useEffect((()=>{var e,r;w(null!==(e=null!==(r=t.dayScheme)&&void 0!==r?r:b)&&void 0!==e?e:Ht)}),[t.dayScheme,b]),n.default.useEffect((()=>{var e,r;k(null!==(e=null!==(r=t.nightScheme)&&void 0!==r?r:m)&&void 0!==e?e:Ft)}),[t.nightScheme,m]),n.default.createElement(Wt.Provider,{value:{theme:S,colorScheme:T,colorMode:v,resolvedColorMode:$,dayScheme:y,nightScheme:B,setColorMode:x,setDayScheme:w,setNightScheme:k}},n.default.createElement(r.ThemeProvider,{theme:S},e))};function jt(){return n.default.useContext(Wt)}function Ut(e,t){var r;const{colorScheme:a=""}=jt();return null!==(r=e[a])&&void 0!==r?r:t}function Gt(){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"}_t.displayName="ThemeProvider";var Vt=_t;var Kt=e=>te(e.sx);var qt=i.default.div(U,E,C,T,z,I,O,A,P,G,Kt);const Xt=i.default(qt)``;Xt.defaultProps={borderWidth:"1px",borderStyle:"solid",borderColor:"border.default",borderRadius:2};var Yt=Xt;const Jt=i.default(qt)``;Jt.defaultProps={display:"flex"};var Zt=Jt;const Qt=i.default(qt)``;Qt.defaultProps={display:"grid"};var er=Qt;const tr=i.default(qt)``;var rr=tr;const ar=n.default.forwardRef(((e,t)=>n.default.createElement(tr,St({},e,{position:"absolute",ref:t}))));ar.displayName="Absolute";const or=n.default.forwardRef(((e,t)=>n.default.createElement(tr,St({},e,{position:"fixed",ref:t}))));or.displayName="Fixed";const nr=n.default.forwardRef(((e,t)=>n.default.createElement(tr,St({},e,{position:"relative",ref:t}))));nr.displayName="Relative";const ir=n.default.forwardRef(((e,t)=>n.default.createElement(tr,St({},e,{position:"sticky",ref:t}))));function lr({ref:e,closeOnOutsideClick:r,defaultOpen:a,onClickOutside:o}){const[n,i]=t.useState(a),l=t.useRef(null),d=null!=e?e:l,s=t.useCallback((e=>{const{current:t}=d;e.target.closest("details")!==t&&(o&&o(e),e.defaultPrevented||i(!1))}),[d,i,o]);t.useEffect((()=>{if(n&&r)return document.addEventListener("click",s),()=>{document.removeEventListener("click",s)}}),[n,r,s]);const c=e=>{if(!e.defaultPrevented){const t=e.target;i(t.open)}};return{open:n,setOpen:i,getDetailsProps:()=>({onToggle:c,open:n,ref:d})}}ir.defaultProps={top:0,zIndex:1},ir.displayName="Sticky";const dr=!0;function sr(e){if(!e.defaultPrevented)for(const t of Object.values(cr).reverse())if(t(e)===dr||e.defaultPrevented)break}const cr={};let fr=0;const ur=({containerRef:e,ignoreClickRefs:r,onClickOutside:a})=>{const o=t.useMemo((()=>fr++),[]),n=t.useCallback((t=>{var o;return t instanceof MouseEvent&&t.button>0||null!==(o=e.current)&&void 0!==o&&o.contains(t.target)||r&&r.some((({current:e})=>null==e?void 0:e.contains(t.target)))?dr:void a(t)}),[e,r,a]);t.useEffect((()=>(0===Object.keys(cr).length&&document.addEventListener("mousedown",sr,{capture:!0}),function(e,t){cr[e]=t}(o,n),()=>{!function(e){delete cr[e]}(o),0===Object.keys(cr).length&&document.removeEventListener("mousedown",sr,{capture:!0})})),[o,n])};function*gr(e,t={}){var r,a;const o=null!==(r=t.strict)&&void 0!==r&&r,n=null!==(a=t.onlyTabbable)&&void 0!==a&&a?br:pr,i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e instanceof HTMLElement&&n(e,o)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});let l=null;if(!t.reverse&&n(e,o)&&(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,o)&&(yield e)}function pr(e,t=!1){const r=["BUTTON","INPUT","SELECT","TEXTAREA","OPTGROUP","OPTION","FIELDSET"].includes(e.tagName)&&e.disabled,a=e.hidden,o=e instanceof HTMLInputElement&&"hidden"===e.type;if(r||a||o)return!1;if(t){const t=0===e.offsetWidth||0===e.offsetHeight,r=["hidden","collapse"].includes(getComputedStyle(e).visibility),a=0===e.getClientRects().length;if(t||r||a)return!1}return null!=e.getAttribute("tabindex")||!(e instanceof HTMLAnchorElement&&null==e.getAttribute("href"))&&-1!==e.tabIndex}function br(e,t=!1){return pr(e,t)&&"-1"!==e.getAttribute("tabindex")}function mr({initialFocusRef:e,returnFocusRef:r,containerRef:a,preventFocusOnOpen:o}){t.useEffect((()=>{if(o)return;const t=r.current;if(e&&e.current)e.current.focus();else if(a.current){const e=gr(a.current).next().value;null==e||e.focus()}return function(){null==t||t.focus()}}),[e,r,a,o])}const hr=[];function vr(e){if("Escape"===e.key&&!e.defaultPrevented)for(let t=hr.length-1;t>=0&&(hr[t](e),!e.defaultPrevented);--t);}const xr=(e,r=[e])=>{const a=t.useCallback(e,r);t.useEffect((()=>(0===hr.length&&document.addEventListener("keydown",vr),hr.push(a),()=>{hr.splice(hr.findIndex((e=>e===a)),1),0===hr.length&&document.removeEventListener("keydown",vr)})),[a])};function yr(e){const t=n.default.useRef(null);return null!=e?e:t}const wr=({overlayRef:e,returnFocusRef:t,initialFocusRef:r,onEscape:a,ignoreClickRefs:o,onClickOutside:n,preventFocusOnOpen:i})=>{const l=yr(e);return mr({containerRef:l,returnFocusRef:t,initialFocusRef:r,preventFocusOnOpen:i}),ur({containerRef:l,ignoreClickRefs:o,onClickOutside:n}),xr(a),{ref:l}};let Br,kr=!1;function $r(){}try{const e=Object.create({},{signal:{get(){kr=!0}}});window.addEventListener("test",$r,e),window.removeEventListener("test",$r,e)}catch(jd){}function Tr(){kr||(!function(){if("undefined"==typeof window)return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,r,a){return"object"==typeof a&&"signal"in a&&a.signal instanceof AbortSignal&&e.call(a.signal,"abort",(()=>{this.removeEventListener(t,r,a)})),e.call(this,t,r,a)}}(),kr=!0)}function Sr(){return void 0===Br&&(Br=/^mac/i.test(window.navigator.platform)),Br}let Er,Cr=1e4;function zr(){return"__primer_id_"+Cr++}Tr(),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"}(Er||(Er={}));const Rr={ArrowLeft:Er.ArrowHorizontal,ArrowDown:Er.ArrowVertical,ArrowUp:Er.ArrowVertical,ArrowRight:Er.ArrowHorizontal,h:Er.HL,j:Er.JK,k:Er.JK,l:Er.HL,a:Er.AD,s:Er.WS,w:Er.WS,d:Er.AD,Tab:Er.Tab,Home:Er.HomeAndEnd,End:Er.HomeAndEnd,PageUp:Er.PageUpDown,PageDown:Er.PageUpDown},Ir={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 Nr(e){const t=Ir[e.key];if("Tab"===e.key&&e.shiftKey)return"previous";const r=Sr();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}const Ar="data-is-active-descendant",Lr="activated-directly",Or="activated-indirectly",Mr="data-has-active-descendant";function Pr(e,t){var r,a,o,n;const i=[],l=new WeakMap,d=null!==(r=null==t?void 0:t.bindKeys)&&void 0!==r?r:(null!=t&&t.getNextFocusable?Er.ArrowAll:Er.ArrowVertical)|Er.HomeAndEnd,s=null!==(a=null==t?void 0:t.focusOutBehavior)&&void 0!==a?a:"stop",c=null!==(o=null==t?void 0:t.focusInStrategy)&&void 0!==o?o:"previous",f=null==t?void 0:t.activeDescendantControl,u=null==t?void 0:t.onActiveDescendantChanged;let g;function p(){return i[0]}function b(e,t=!1){const r=g;g=e,f?e&&document.activeElement===f?m(r,e,t):h():(r&&r!==e&&l.has(r)&&r.setAttribute("tabindex","-1"),null==e||e.setAttribute("tabindex","0"))}function m(t,r,a=!1){r.id||r.setAttribute("id",zr()),t&&t!==r&&t.removeAttribute(Ar),f&&(a||f.getAttribute("aria-activedescendant")!==r.id)&&(f.setAttribute("aria-activedescendant",r.id),e.setAttribute(Mr,r.id),r.setAttribute(Ar,a?Lr:Or),null==u||u(r,t,a))}function h(t=g){"first"===c&&(g=void 0),null==f||f.removeAttribute("aria-activedescendant"),e.removeAttribute(Mr),null==t||t.removeAttribute(Ar),null==u||u(void 0,t,!1)}function v(...e){const r=e.filter((e=>{var r,a;return null===(r=null==t||null===(a=t.focusableElementFilter)||void 0===a?void 0:a.call(t,e))||void 0===r||r}));if(0===r.length)return;const a=i.findIndex((e=>(e.compareDocumentPosition(r[0])&Node.DOCUMENT_POSITION_PRECEDING)>0));i.splice(-1===a?i.length:a,0,...r);for(const e of r)l.has(e)||l.set(e,e.getAttribute("tabindex")),e.setAttribute("tabindex","-1");g||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===g){b(p())}}}v(...gr(e)),b(p());new MutationObserver((e=>{for(const t of e)for(const e of t.removedNodes)e instanceof HTMLElement&&x(...gr(e));for(const t of e)for(const e of t.addedNodes)e instanceof HTMLElement&&v(...gr(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",(()=>{g?m(void 0,g):b(p())})),f.addEventListener("focusout",(()=>{h()}))):e.addEventListener("focusin",(t=>{if(t.target instanceof HTMLElement)if(void 0!==B)B>=0&&i[B]!==g&&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"===$?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);$=void 0}),{signal:w});const k=null!=f?f:e;let $;return"closest"===c&&document.addEventListener("keydown",(e=>{"Tab"===e.key&&($=Nr(e))}),{signal:w,capture:!0}),k.addEventListener("keydown",(r=>{if(r.key in Ir){const o=Rr[r.key];if(!r.defaultPrevented&&(o&d)>0&&!function(e,t){const r=e.key,a=[...r].length,o=t instanceof HTMLInputElement&&"text"===t.type||t instanceof HTMLTextAreaElement;if(o&&(1===a||"Home"===r||"End"===r))return!0;if(t instanceof HTMLSelectElement){if(1===a)return!0;if("ArrowDown"===r&&Sr()&&!e.metaKey)return!0;if("ArrowDown"===r&&!Sr()&&e.altKey)return!0}if(t instanceof HTMLTextAreaElement&&("PageUp"===r||"PageDown"===r))return!0;if(o){const e=t,a=0===e.selectionStart&&0===e.selectionEnd,o=e.selectionStart===e.value.length&&e.selectionEnd===e.value.length;if("ArrowLeft"===r&&!a)return!0;if("ArrowRight"===r&&!o)return!0;if(e instanceof HTMLTextAreaElement){if("ArrowUp"===r&&!a)return!0;if("ArrowDown"===r&&!o)return!0}}return!1}(r,document.activeElement)){const o=Nr(r);let n;var a;if(null!=t&&t.getNextFocusable)n=t.getNextFocusable(o,null!==(a=document.activeElement)&&void 0!==a?a:void 0,r);if(!n){const t=function(){if(!g)return 0;const t=i.indexOf(g);return-1!==t?t:g===e?-1:0}();let a=t;"previous"===o?a-=1:"start"===o?a=0:"next"===o?a+=1:a=i.length-1,a<0&&(a="wrap"===s&&"Tab"!==r.key?i.length-1:0),a>=i.length&&(a="wrap"===s&&"Tab"!==r.key?0:i.length-1),t!==a&&(n=i[a])}f?b(n||g,!0):n&&($=o,n.focus()),("Tab"!==r.key||n)&&r.preventDefault()}}}),{signal:w}),y}var Dr=r.css(["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;}"],xt("fontWeights.bold"),xt("radii.2"));const Hr=$(xe,yt,kt),Fr=re({variants:{small:{p:"4px 12px",fontSize:0},medium:{fontSize:1},large:{fontSize:2,p:"10px 20px"}}}),Wr=i.default.button.attrs((({disabled:e,onClick:t})=>({onClick:e?void 0:t})))`
|
23
23
|
${Dr}
|
24
24
|
${Fr}
|
25
25
|
`;Wr.defaultProps={variant:"medium"};var _r=Wr;var jr=i.default(_r)`
|
@@ -251,7 +251,7 @@
|
|
251
251
|
${wt}
|
252
252
|
${kt}
|
253
253
|
${Kt};
|
254
|
-
`,Jr={small:16,medium:32,large:64};function Zr(e){var t=e["aria-label"],r=e.className,a=e.fill,o=void 0===a?"currentColor":a,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:o,style:{display:"inline-block",userSelect:"none",verticalAlign:i},dangerouslySetInnerHTML:{__html:l[s].path}}}var Qr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e};function ea(e){return n.default.createElement("svg",Zr(Qr({},e,{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 ta(e){return n.default.createElement("svg",Zr(Qr({},e,{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 ra(e){return n.default.createElement("svg",Zr(Qr({},e,{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 aa(e){return n.default.createElement("svg",Zr(Qr({},e,{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 oa(e){return n.default.createElement("svg",Zr(Qr({},e,{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 na(e){return n.default.createElement("svg",Zr(Qr({},e,{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 ia(e){return n.default.createElement("svg",Zr(Qr({},e,{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 la(e){return n.default.createElement("svg",Zr(Qr({},e,{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 da(e){return n.default.createElement("svg",Zr(Qr({},e,{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>'}}})))}ea.defaultProps={className:"octicon octicon-check",size:16,verticalAlign:"text-bottom"},ta.defaultProps={className:"octicon octicon-git-merge",size:16,verticalAlign:"text-bottom"},ra.defaultProps={className:"octicon octicon-git-pull-request",size:16,verticalAlign:"text-bottom"},aa.defaultProps={className:"octicon octicon-issue-closed",size:16,verticalAlign:"text-bottom"},oa.defaultProps={className:"octicon octicon-issue-opened",size:16,verticalAlign:"text-bottom"},na.defaultProps={className:"octicon octicon-plus",size:16,verticalAlign:"text-bottom"},ia.defaultProps={className:"octicon octicon-question",size:16,verticalAlign:"text-bottom"},la.defaultProps={className:"octicon octicon-triangle-down",size:16,verticalAlign:"text-bottom"},da.defaultProps={className:"octicon octicon-x",size:16,verticalAlign:"text-bottom"};const sa=i.default.button`
|
254
|
+
`,Jr={small:16,medium:32,large:64};function Zr(e){var t=e["aria-label"],r=e.className,a=e.fill,o=void 0===a?"currentColor":a,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:o,style:{display:"inline-block",userSelect:"none",verticalAlign:i,overflow:"visible"},dangerouslySetInnerHTML:{__html:l[s].path}}}var Qr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e};function ea(e){return n.default.createElement("svg",Zr(Qr({},e,{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 ta(e){return n.default.createElement("svg",Zr(Qr({},e,{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 ra(e){return n.default.createElement("svg",Zr(Qr({},e,{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 aa(e){return n.default.createElement("svg",Zr(Qr({},e,{svgDataByHeight:{16:{width:16,path:'<path d="M11.28 6.78a.75.75 0 00-1.06-1.06L7.25 8.69 5.78 7.22a.75.75 0 00-1.06 1.06l2 2a.75.75 0 001.06 0l3.5-3.5z"></path><path fill-rule="evenodd" d="M16 8A8 8 0 110 8a8 8 0 0116 0zm-1.5 0a6.5 6.5 0 11-13 0 6.5 6.5 0 0113 0z"></path>'},24:{width:24,path:'<path d="M17.28 9.28a.75.75 0 00-1.06-1.06l-5.97 5.97-2.47-2.47a.75.75 0 00-1.06 1.06l3 3a.75.75 0 001.06 0l6.5-6.5z"></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 oa(e){return n.default.createElement("svg",Zr(Qr({},e,{svgDataByHeight:{16:{width:16,path:'<path fill-rule="evenodd" d="M6.749.097a8.054 8.054 0 012.502 0 .75.75 0 11-.233 1.482 6.554 6.554 0 00-2.036 0A.75.75 0 016.749.097zM4.345 1.693A.75.75 0 014.18 2.74a6.542 6.542 0 00-1.44 1.44.75.75 0 01-1.212-.883 8.042 8.042 0 011.769-1.77.75.75 0 011.048.166zm7.31 0a.75.75 0 011.048-.165 8.04 8.04 0 011.77 1.769.75.75 0 11-1.214.883 6.542 6.542 0 00-1.439-1.44.75.75 0 01-.165-1.047zM.955 6.125a.75.75 0 01.624.857 6.554 6.554 0 000 2.036.75.75 0 01-1.482.233 8.054 8.054 0 010-2.502.75.75 0 01.858-.624zm14.09 0a.75.75 0 01.858.624 8.057 8.057 0 010 2.502.75.75 0 01-1.482-.233 6.55 6.55 0 000-2.036.75.75 0 01.624-.857zm-13.352 5.53a.75.75 0 011.048.165 6.542 6.542 0 001.439 1.44.75.75 0 01-.883 1.212 8.04 8.04 0 01-1.77-1.769.75.75 0 01.166-1.048zm12.614 0a.75.75 0 01.165 1.048 8.038 8.038 0 01-1.769 1.77.75.75 0 11-.883-1.214 6.543 6.543 0 001.44-1.439.75.75 0 011.047-.165zm-8.182 3.39a.75.75 0 01.857-.624 6.55 6.55 0 002.036 0 .75.75 0 01.233 1.482 8.057 8.057 0 01-2.502 0 .75.75 0 01-.624-.858z"></path>'},24:{width:24,path:'<path fill-rule="evenodd" d="M10.157 1.154a11.07 11.07 0 013.686 0 .75.75 0 01-.25 1.479 9.568 9.568 0 00-3.186 0 .75.75 0 01-.25-1.48zM6.68 3.205a.75.75 0 01-.177 1.046A9.558 9.558 0 004.25 6.503a.75.75 0 01-1.223-.87 11.058 11.058 0 012.606-2.605.75.75 0 011.046.177zm10.64 0a.75.75 0 011.046-.177 11.058 11.058 0 012.605 2.606.75.75 0 11-1.222.869 9.558 9.558 0 00-2.252-2.252.75.75 0 01-.177-1.046zM2.018 9.543a.75.75 0 01.615.864 9.568 9.568 0 000 3.186.75.75 0 01-1.48.25 11.07 11.07 0 010-3.686.75.75 0 01.865-.614zm19.964 0a.75.75 0 01.864.614 11.066 11.066 0 010 3.686.75.75 0 01-1.479-.25 9.56 9.56 0 000-3.186.75.75 0 01.615-.864zM3.205 17.32a.75.75 0 011.046.177 9.558 9.558 0 002.252 2.252.75.75 0 11-.87 1.223 11.058 11.058 0 01-2.605-2.606.75.75 0 01.177-1.046zm17.59 0a.75.75 0 01.176 1.046 11.057 11.057 0 01-2.605 2.605.75.75 0 11-.869-1.222 9.558 9.558 0 002.252-2.252.75.75 0 011.046-.177zM9.543 21.982a.75.75 0 01.864-.615 9.56 9.56 0 003.186 0 .75.75 0 01.25 1.48 11.066 11.066 0 01-3.686 0 .75.75 0 01-.614-.865z"></path>'}}})))}function na(e){return n.default.createElement("svg",Zr(Qr({},e,{svgDataByHeight:{16:{width:16,path:'<path d="M8 9.5a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"></path><path fill-rule="evenodd" d="M8 0a8 8 0 100 16A8 8 0 008 0zM1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0z"></path>'},24:{width:24,path:'<path fill-rule="evenodd" d="M2.5 12a9.5 9.5 0 1119 0 9.5 9.5 0 01-19 0zM12 1C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1zm0 13a2 2 0 100-4 2 2 0 000 4z"></path>'}}})))}function ia(e){return n.default.createElement("svg",Zr(Qr({},e,{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 la(e){return n.default.createElement("svg",Zr(Qr({},e,{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 da(e){return n.default.createElement("svg",Zr(Qr({},e,{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 sa(e){return n.default.createElement("svg",Zr(Qr({},e,{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>'}}})))}ea.defaultProps={className:"octicon octicon-check",size:16,verticalAlign:"text-bottom"},ta.defaultProps={className:"octicon octicon-git-merge",size:16,verticalAlign:"text-bottom"},ra.defaultProps={className:"octicon octicon-git-pull-request",size:16,verticalAlign:"text-bottom"},aa.defaultProps={className:"octicon octicon-issue-closed",size:16,verticalAlign:"text-bottom"},oa.defaultProps={className:"octicon octicon-issue-draft",size:16,verticalAlign:"text-bottom"},na.defaultProps={className:"octicon octicon-issue-opened",size:16,verticalAlign:"text-bottom"},ia.defaultProps={className:"octicon octicon-plus",size:16,verticalAlign:"text-bottom"},la.defaultProps={className:"octicon octicon-question",size:16,verticalAlign:"text-bottom"},da.defaultProps={className:"octicon octicon-triangle-down",size:16,verticalAlign:"text-bottom"},sa.defaultProps={className:"octicon octicon-x",size:16,verticalAlign:"text-bottom"};const ca=i.default.button`
|
255
255
|
border: none;
|
256
256
|
padding: 0;
|
257
257
|
background: transparent;
|
@@ -270,10 +270,10 @@
|
|
270
270
|
${yt};
|
271
271
|
${kt};
|
272
272
|
${Kt};
|
273
|
-
`;var
|
273
|
+
`;var fa=t.forwardRef(((e,t)=>n.default.createElement(ca,St({ref:t,"aria-label":"Close"},e),n.default.createElement(sa,null))));const ua={"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 ga(e,t,r={}){const a=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),o=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,a=r.getBoundingClientRect(),o=getComputedStyle(r),[n,i,l,d]=[o.borderTopWidth,o.borderLeftWidth,o.borderRightWidth,o.borderBottomWidth].map((e=>parseInt(e,10)||0));return{top:a.top+n,left:a.left+i,width:a.width-l-i,height:Math.max(a.height-n-d,r===document.body?window.innerHeight:-1/0)}}(a),n=getComputedStyle(a),i=a.getBoundingClientRect(),[l,d]=[n.borderTopWidth,n.borderLeftWidth].map((e=>parseInt(e,10)||0));return function(e,t,r,a,{side:o,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=xa(r,a,o,n,l,d),f=o;if(c.top-=t.top,c.left-=t.left,!i){const i=ua[o];let u=0;if(i){let e=o;for(;u<i.length&&ya(e,c,s,r);){const o=i[u++];e=o,c=xa(r,a,o,n,l,d),c.top-=t.top,c.left-=t.left,f=o}}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&&u<i.length&&c.top+r.height>e.height+s.top&&(c.top=e.height+s.top-r.height)}return{...c,anchorSide:f}}(o,{top:i.top+l,left:i.left+d},e.getBoundingClientRect(),t instanceof Element?t.getBoundingClientRect():t,function(e={}){var t,r,a,o,n;const i=null!==(t=e.side)&&void 0!==t?t:pa,l=null!==(r=e.align)&&void 0!==r?r:ba;return{side:i,align:l,anchorOffset:null!==(a=e.anchorOffset)&&void 0!==a?a:"inside-center"===i?0:ma,alignmentOffset:null!==(o=e.alignmentOffset)&&void 0!==o?o:"center"!==l&&i.startsWith("inside")?ha:0,allowOutOfBounds:null!==(n=e.allowOutOfBounds)&&void 0!==n?n:va}}(r))}const pa="outside-bottom",ba="start",ma=4,ha=4,va=!1;function xa(e,t,r,a,o,n){const i=t.left+t.width,l=t.top+t.height;let d=-1,s=-1;return"outside-top"===r?d=t.top-o-e.height:"outside-bottom"===r?d=l+o:"outside-left"===r?s=t.left-o-e.width:"outside-right"===r&&(s=i+o),"outside-top"!==r&&"outside-bottom"!==r||(s="start"===a?t.left+n:"center"===a?t.left-(e.width-t.width)/2+n:i-e.width-n),"outside-left"!==r&&"outside-right"!==r||(d="start"===a?t.top+n:"center"===a?t.top-(e.height-t.height)/2+n:l-e.height-n),"inside-top"===r?d=t.top+o:"inside-bottom"===r?d=l-o-e.height:"inside-left"===r?s=t.left+o:"inside-right"===r?s=i-o-e.width:"inside-center"===r&&(s=(i+t.left)/2-e.width/2+o),"inside-top"===r||"inside-bottom"===r?s="start"===a?t.left+n:"center"===a?t.left-(e.width-t.width)/2+n:i-e.width-n:"inside-left"!==r&&"inside-right"!==r&&"inside-center"!==r||(d="start"===a?t.top+n:"center"===a?t.top-(e.height-t.height)/2+n:l-e.height-n),{top:d,left:s}}function ya(e,t,r,a){return"outside-top"===e||"outside-bottom"===e?t.top<r.top||t.top+a.height>r.height+r.top:t.left<r.left||t.left+a.width>r.width+r.left}var wa="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect;function Ba(e,t=[]){const r=yr(null==e?void 0:e.floatingElementRef),a=yr(null==e?void 0:e.anchorElementRef),[o,i]=n.default.useState(void 0),l=n.default.useCallback((()=>{r.current instanceof Element&&a.current instanceof Element?i(ga(r.current,a.current,e)):i(void 0)}),[r,a,...t]);var d;return wa(l,[l]),wa((()=>{const e=new window.ResizeObserver((()=>d()));return e.observe(document.documentElement),()=>{e.disconnect()}}),[d=l]),{floatingElementRef:r,anchorElementRef:a,position:o}}Tr();const ka=[];let $a;function Ta(e,t=!1){return gr(e,{reverse:t,strict:!0,onlyTabbable:!0}).next().value}function Sa(e,t,r){const a=new AbortController,o=null!=r?r:a.signal;let n;function i(r){if(r instanceof HTMLElement&&document.contains(e)){if(e.contains(r))return void(n=r);if(n&&br(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}(o);if(e.addEventListener("keydown",(t=>{if("Tab"!==t.key||t.defaultPrevented)return;const{target:r}=t,a=Ta(e),o=Ta(e,!0);r===a&&t.shiftKey?(t.preventDefault(),null==o||o.focus()):r!==o||t.shiftKey||(t.preventDefault(),null==a||a.focus())}),{signal:l.signal}),$a){const e=$a;$a.container.setAttribute("data-focus-trap","suspended"),$a.controller.abort(),ka.push(e)}l.signal.addEventListener("abort",(()=>{$a=void 0})),o.addEventListener("abort",(()=>{e.removeAttribute("data-focus-trap");const t=ka.findIndex((t=>t.container===e));t>=0&&ka.splice(t,1),function(){const e=ka.pop();e&&Sa(e.container,e.initialFocus,e.originalSignal)}()})),document.addEventListener("focus",(e=>{i(e.target)}),{signal:l.signal,capture:!0}),i(document.activeElement),$a={container:e,controller:l,initialFocus:t,originalSignal:o};const d=ka.findIndex((t=>t.container===e));if(d>=0&&ka.splice(d,1),!r)return a}function Ea(e,t=[]){const r=yr(null==e?void 0:e.containerRef),a=yr(null==e?void 0:e.initialFocusRef),o=null==e?void 0:e.disabled,i=n.default.useRef(),l=n.default.useRef(null);function d(){var t;null===(t=i.current)||void 0===t||t.abort(),null!=e&&e.restoreFocusOnCleanUp&&l.current instanceof HTMLElement&&(l.current.focus(),l.current=null)}return l.current||null!=e&&e.disabled||(l.current=document.activeElement),n.default.useEffect((()=>{if(r.current instanceof HTMLElement){var e;if(!o)return i.current=Sa(r.current,null!==(e=a.current)&&void 0!==e?e:void 0),()=>{d()};d()}}),[r,a,o,...t]),{containerRef:r,initialFocusRef:a}}function Ca({icon:e,...t}){return n.default.createElement(e,t)}Ca.displayName="Octicon";const za=i.default(Ca)`
|
274
274
|
${yt}
|
275
275
|
${Kt}
|
276
|
-
`;
|
276
|
+
`;za.defaultProps={size:16};var Ra=za;function Ia(e={},r=[]){const a=yr(e.containerRef),o=!!e.activeDescendantFocus,i=yr("boolean"!=typeof e.activeDescendantFocus&&e.activeDescendantFocus?e.activeDescendantFocus:void 0),l=e.disabled,d=n.default.useRef();return t.useEffect((()=>{if(a.current instanceof HTMLElement&&(!o||i.current instanceof HTMLElement)){if(!l){var t;const r={...e,activeDescendantControl:null!==(t=i.current)&&void 0!==t?t:void 0};return d.current=Pr(a.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:a,activeDescendantControlRef:i}}const Na="__primerPortalRoot__",Aa="__default__",La={};function Oa(){const e=La.__default__;if(!e||!document.body.contains(e)){let e=document.getElementById(Na);if(!(e instanceof Element)){e=document.createElement("div"),e.setAttribute("id",Na),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__"){La[t]=e}(e)}}var Ma=({children:e,onMount:t,containerName:r})=>{const o=document.createElement("div");o.style.position="relative",o.style.zIndex="1";const i=n.default.useRef(o);return wa((()=>{let e=r;void 0===e&&(e=Aa,Oa());const a=La[e];if(!a)throw new Error(`Portal container '${r}' is not yet registered. Container must be registered with registerPortal before use.`);const o=i.current;return a.appendChild(o),null==t||t(),()=>{a.removeChild(o)}}),[i]),a.createPortal(e,i.current)};function Pa(...e){const r=t.useRef(null);return wa((()=>{function t(t=null){for(const r of e){if(!r)return;"function"==typeof r?r(t):r.current=t}}return t(r.current),()=>{t(r.current)}}),[...e,r.current]),r}const Da={prefix:String(Math.round(1e10*Math.random())),current:0},Ha=n.default.createContext(Da);let Fa=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function Wa(e){let r=t.useContext(Ha);return r!==Da||Fa||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),t.useMemo((()=>e||"react-aria"+r.prefix+"-"+ ++r.current),[e])}const _a="200ms",ja=i.default("div")`
|
277
277
|
position: fixed;
|
278
278
|
top: 0;
|
279
279
|
left: 0;
|
@@ -283,7 +283,7 @@
|
|
283
283
|
align-items: center;
|
284
284
|
justify-content: center;
|
285
285
|
background-color: rgba(0, 0, 0, 0.4);
|
286
|
-
animation: dialog-backdrop-appear ${
|
286
|
+
animation: dialog-backdrop-appear ${_a} ${xt("animation.easeOutCubic")};
|
287
287
|
|
288
288
|
@keyframes dialog-backdrop-appear {
|
289
289
|
0% {
|
@@ -293,7 +293,7 @@
|
|
293
293
|
opacity: 1;
|
294
294
|
}
|
295
295
|
}
|
296
|
-
`,
|
296
|
+
`,Ua={small:"480px",large:"640px",auto:"auto"},Ga={small:"296px",medium:"320px",large:"480px",xlarge:"640px"},Va=i.default.div`
|
297
297
|
display: flex;
|
298
298
|
flex-direction: column;
|
299
299
|
background-color: ${xt("colors.canvas.overlay")};
|
@@ -301,11 +301,11 @@
|
|
301
301
|
min-width: 296px;
|
302
302
|
max-width: calc(100vw - 64px);
|
303
303
|
max-height: calc(100vh - 64px);
|
304
|
-
width: ${e=>{var t;return
|
305
|
-
height: ${e=>{var t;return
|
304
|
+
width: ${e=>{var t;return Ga[null!==(t=e.width)&&void 0!==t?t:"xlarge"]}};
|
305
|
+
height: ${e=>{var t;return Ua[null!==(t=e.height)&&void 0!==t?t:"auto"]}};
|
306
306
|
border-radius: 12px;
|
307
307
|
opacity: 1;
|
308
|
-
animation: overlay--dialog-appear ${
|
308
|
+
animation: overlay--dialog-appear ${_a} ${xt("animation.easeOutCubic")};
|
309
309
|
|
310
310
|
@keyframes overlay--dialog-appear {
|
311
311
|
0% {
|
@@ -321,23 +321,23 @@
|
|
321
321
|
${yt};
|
322
322
|
${$t};
|
323
323
|
${Kt};
|
324
|
-
`,
|
324
|
+
`,Ka=({dialogLabelId:e,title:r,subtitle:a,dialogDescriptionId:o,onClose:i})=>{const l=t.useCallback((()=>{i("close-button")}),[i]);return n.default.createElement(no.Header,null,n.default.createElement(qt,{display:"flex"},n.default.createElement(qt,{display:"flex",px:2,py:"6px",flexDirection:"column",flexGrow:1},n.default.createElement(no.Title,{id:e},null!=r?r:"Dialog"),a&&n.default.createElement(no.Subtitle,{id:o},a)),n.default.createElement(no.CloseButton,{onClose:l})))};Ka.displayName="DefaultHeader";const qa=({children:e})=>n.default.createElement(no.Body,null,e);qa.displayName="DefaultBody";const Xa=({footerButtons:e})=>{const{containerRef:t}=Ia({bindKeys:Er.ArrowHorizontal|Er.Tab,focusInStrategy:"closest"});return e?n.default.createElement(no.Footer,{ref:t},n.default.createElement(no.Buttons,{buttons:e})):null},Ya=n.default.forwardRef(((e,r)=>{const{title:a="Dialog",subtitle:o="",renderHeader:i,renderBody:l,renderFooter:d,onClose:s,role:c="dialog",width:f="xlarge",height:u="auto",footerButtons:g=[]}=e,p=Wa(),b=Wa(),m=t.useRef(null);for(const e of g)e.autoFocus&&(e.ref=m);const h={...e,title:a,subtitle:o,role:c,dialogLabelId:p,dialogDescriptionId:b},v=t.useRef(null),x=Pa(v,r),y=t.useRef(null);Ea({containerRef:v,restoreFocusOnCleanUp:!0,initialFocusRef:m}),xr((e=>{s("escape"),e.preventDefault()}),[s]);const w=(null!=i?i:Ka)(h),B=(null!=l?l:qa)(h),k=(null!=d?d:Xa)(h);return n.default.createElement(n.default.Fragment,null,n.default.createElement(Ma,null,n.default.createElement(ja,{ref:y},n.default.createElement(Va,{width:f,height:u,ref:x,role:c,"aria-labelledby":p,"aria-describedby":b},w,B,k))))}));Ya.displayName="Dialog";const Ja=i.default(qt).attrs({as:"header"})`
|
325
325
|
box-shadow: 0 1px 0 ${xt("colors.border.default")};
|
326
326
|
padding: ${xt("space.2")};
|
327
327
|
z-index: 1;
|
328
328
|
flex-shrink: 0;
|
329
|
-
`,
|
329
|
+
`,Za=i.default(qt)`
|
330
330
|
font-size: ${xt("fontSizes.1")};
|
331
331
|
font-weight: ${xt("fontWeights.bold")};
|
332
|
-
`,
|
332
|
+
`,Qa=i.default(qt)`
|
333
333
|
font-size: ${xt("fontSizes.0")};
|
334
334
|
margin-top: ${xt("space.1")};
|
335
335
|
color: ${xt("colors.fg.muted")};
|
336
|
-
`,
|
336
|
+
`,eo=i.default(qt)`
|
337
337
|
flex-grow: 1;
|
338
338
|
overflow: auto;
|
339
339
|
padding: ${xt("space.3")};
|
340
|
-
`,
|
340
|
+
`,to=i.default(qt).attrs({as:"footer"})`
|
341
341
|
box-shadow: 0 -1px 0 ${xt("colors.border.default")};
|
342
342
|
padding: ${xt("space.3")};
|
343
343
|
display: flex;
|
@@ -352,7 +352,7 @@
|
|
352
352
|
margin-left: 0;
|
353
353
|
}
|
354
354
|
}
|
355
|
-
`,
|
355
|
+
`,ro={normal:jr,primary:qr,danger:Ur},ao=i.default(jr)`
|
356
356
|
border-radius: 4px;
|
357
357
|
background: transparent;
|
358
358
|
border: 0;
|
@@ -362,21 +362,21 @@
|
|
362
362
|
align-self: flex-start;
|
363
363
|
line-height: normal;
|
364
364
|
box-shadow: none;
|
365
|
-
`,
|
365
|
+
`,oo=({onClose:e})=>n.default.createElement(ao,{"aria-label":"Close",onClick:e},n.default.createElement(Ra,{icon:sa}));oo.displayName="CloseButton";const no=Object.assign(Ya,{Header:Ja,Title:Za,Subtitle:Qa,Body:eo,Footer:to,Buttons:({buttons:e})=>{var r;const a=yr(null===(r=e.find((e=>e.autoFocus)))||void 0===r?void 0:r.ref);let o=0;const[i,l]=t.useState(0);return t.useEffect((()=>{var e;1===i?null===(e=a.current)||void 0===e||e.focus():l(i+1)}),[a,i]),n.default.createElement(n.default.Fragment,null,e.map(((e,t)=>{const{content:r,buttonType:i="normal",autoFocus:l=!1,...d}=e,s=ro[i];return n.default.createElement(s,St({key:t},d,{ref:l&&0===o?(o++,a):null}),r)})))},CloseButton:oo}),io=i.default.header`
|
366
366
|
padding: ${xt("space.2")};
|
367
367
|
display: flex;
|
368
368
|
flex-direction: row;
|
369
|
-
`,
|
369
|
+
`,lo=i.default(qt)`
|
370
370
|
font-size: ${xt("fontSizes.3")};
|
371
371
|
font-weight: ${xt("fontWeights.bold")};
|
372
372
|
padding: 6px ${xt("space.2")};
|
373
373
|
flex-grow: 1;
|
374
|
-
`,
|
374
|
+
`,so=({title:e,onClose:r,dialogLabelId:a})=>{const o=t.useCallback((()=>{r("close-button")}),[r]);return n.default.createElement(io,null,n.default.createElement(lo,{id:a},e),n.default.createElement(no.CloseButton,{onClose:o}))};so.displayName="ConfirmationHeader";const co=i.default(qt)`
|
375
375
|
font-size: ${xt("fontSizes.1")};
|
376
376
|
padding: 0 ${xt("space.3")} ${xt("space.3")} ${xt("space.3")};
|
377
377
|
color: ${xt("colors.fg.muted")};
|
378
378
|
flex-grow: 1;
|
379
|
-
`,
|
379
|
+
`,fo=({children:e})=>n.default.createElement(co,null,e);fo.displayName="ConfirmationBody";const uo=i.default(qt)`
|
380
380
|
display: grid;
|
381
381
|
grid-auto-flow: column;
|
382
382
|
grid-auto-columns: max-content;
|
@@ -384,7 +384,7 @@
|
|
384
384
|
align-items: end;
|
385
385
|
justify-content: end;
|
386
386
|
padding: ${xt("space.1")} ${xt("space.3")} ${xt("space.3")};
|
387
|
-
`,
|
387
|
+
`,go=({footerButtons:e})=>{const{containerRef:t}=Ia({bindKeys:Er.ArrowHorizontal|Er.Tab,focusInStrategy:"closest"});return n.default.createElement(uo,{ref:t},n.default.createElement(no.Buttons,{buttons:null!=e?e:[]}))};go.displayName="ConfirmationFooter";const po=e=>{const{onClose:r,title:a,cancelButtonContent:o="Cancel",confirmButtonContent:i="OK",confirmButtonType:l="normal",children:d}=e,s=[{content:o,onClick:t.useCallback((()=>{r("cancel")}),[r])},{content:i,buttonType:l,onClick:t.useCallback((()=>{r("confirm")}),[r]),autoFocus:!0}];return n.default.createElement(no,{onClose:r,title:a,footerButtons:s,role:"alertdialog",width:"medium",renderHeader:so,renderBody:fo,renderFooter:go},d)};po.displayName="ConfirmationDialog";const bo=i.default.div`
|
388
388
|
{
|
389
389
|
/* 6px vertical padding + 20px line height = 32px total height
|
390
390
|
*
|
@@ -400,9 +400,9 @@
|
|
400
400
|
${({variant:e})=>"filled"===e&&r.css(["background:",";margin:"," 0;border-top:1px solid ",";border-bottom:1px solid ",";&:first-child{margin-top:0;}"],xt("colors.canvas.subtle"),xt("space.2"),xt("colors.neutral.muted"),xt("colors.neutral.muted"))}
|
401
401
|
|
402
402
|
${Kt}
|
403
|
-
`;function
|
403
|
+
`;function mo({variant:e="subtle",title:t,auxiliaryText:r,children:a,...o}){return n.default.createElement(bo,St({role:"heading",variant:e},o),t,r&&n.default.createElement("span",null,r))}mo.displayName="Header";const ho=i.default.div`
|
404
404
|
${Kt}
|
405
|
-
`;function
|
405
|
+
`;function vo({header:e,items:t,...r}){return n.default.createElement(ho,r,e&&n.default.createElement(mo,e),t)}vo.displayName="Group";const xo=i.default.div`
|
406
406
|
${wt}
|
407
407
|
${yt}
|
408
408
|
display: ${e=>e.inline?"inline-block":"inherit"};
|
@@ -413,25 +413,25 @@
|
|
413
413
|
${ce}
|
414
414
|
${e=>e.expandable?"&:hover { max-width: 10000px; }":""}
|
415
415
|
${Kt};
|
416
|
-
`;
|
416
|
+
`;xo.defaultProps={expandable:!1,inline:!1,maxWidth:125};var yo=xo;const wo=i.default.div`
|
417
417
|
height: 1px;
|
418
418
|
background: ${xt("colors.border.muted")};
|
419
419
|
margin-top: calc(${xt("space.2")} - 1px);
|
420
420
|
margin-bottom: ${xt("space.2")};
|
421
|
-
`;function
|
421
|
+
`;function Bo(){return n.default.createElement(wo,null)}Bo.displayName="Divider",Bo.renderItem=Bo;const ko={default:{hover:{light:"rgba(46, 77, 108, 0.06)",dark:"rgba(201, 206, 212, 0.12)",dark_dimmed:"rgba(201, 206, 212, 0.12)"},focus:{light:"rgba(54, 77, 100, 0.16)",dark:"rgba(201, 206, 212, 0.24)",dark_dimmed:"rgba(201, 206, 212, 0.24)"}},danger:{hover:{light:"rgba(234, 74, 90, 0.08)",dark:"rgba(248, 81, 73, 0.16)",dark_dimmed:"rgba(248, 81, 73, 0.16)"},focus:{light:"rgba(234, 74, 90, 0.14)",dark:"rgba(248, 81, 73, 0.24)",dark_dimmed:"rgba(248, 81, 73, 0.24)"}}},$o=(e="default",t)=>{if(t)return{color:xt("colors.primer.fg.disabled"),iconColor:xt("colors.primer.fg.disabled"),annotationColor:xt("colors.primer.fg.disabled"),hoverCursor:"default"};switch(e){case"danger":return{color:xt("colors.danger.fg"),iconColor:xt("colors.danger.fg"),annotationColor:xt("colors.fg.muted"),hoverCursor:"pointer"};default:return{color:xt("colors.fg.default"),iconColor:xt("colors.fg.muted"),annotationColor:xt("colors.fg.muted"),hoverCursor:"pointer"}}},To=i.default.div`
|
422
422
|
display: flex;
|
423
423
|
min-width: 0;
|
424
424
|
|
425
425
|
/* Required for dividers */
|
426
426
|
position: relative;
|
427
427
|
flex-grow: 1;
|
428
|
-
`,
|
428
|
+
`,So=i.default.div`
|
429
429
|
align-items: baseline;
|
430
430
|
display: flex;
|
431
431
|
min-width: 0;
|
432
432
|
flex-direction: var(--main-content-flex-direction);
|
433
433
|
flex-grow: 1;
|
434
|
-
`,
|
434
|
+
`,Eo=i.default.div`
|
435
435
|
/* 6px vertical padding + 20px line height = 32px total height
|
436
436
|
*
|
437
437
|
* TODO: When rem-based spacing on a 4px scale lands, replace
|
@@ -440,7 +440,7 @@
|
|
440
440
|
padding: 6px ${xt("space.2")};
|
441
441
|
display: flex;
|
442
442
|
border-radius: ${xt("radii.2")};
|
443
|
-
color: ${({variant:e,item:t})
|
443
|
+
color: ${({variant:e,item:t})=>$o(e,null==t?void 0:t.disabled).color};
|
444
444
|
// 2 frames on a 60hz monitor
|
445
445
|
transition: background 33.333ms linear;
|
446
446
|
text-decoration: none;
|
@@ -449,15 +449,15 @@
|
|
449
449
|
:hover {
|
450
450
|
// allow override in case another item in the list is active/focused
|
451
451
|
background: var(--item-hover-bg-override, ${({hoverBackground:e})=>e});
|
452
|
-
cursor: ${({variant:e,item:t})
|
452
|
+
cursor: ${({variant:e,item:t})=>$o(e,null==t?void 0:t.disabled).hoverCursor};
|
453
453
|
}
|
454
454
|
}
|
455
455
|
|
456
456
|
// Item dividers
|
457
|
-
:not(:first-of-type):not(${
|
457
|
+
:not(:first-of-type):not(${wo} + &):not(${bo} + &) {
|
458
458
|
margin-top: ${({showDivider:e})=>e?"1px":"0"};
|
459
459
|
|
460
|
-
${
|
460
|
+
${To}::before {
|
461
461
|
content: ' ';
|
462
462
|
display: block;
|
463
463
|
position: absolute;
|
@@ -471,23 +471,23 @@
|
|
471
471
|
|
472
472
|
// Item dividers should not be visible:
|
473
473
|
// - above Hovered
|
474
|
-
&:hover ${
|
474
|
+
&:hover ${To}::before,
|
475
475
|
// - below Hovered
|
476
476
|
// '*' instead of '&' because '&' maps to separate class names depending on 'variant'
|
477
|
-
:hover + * ${
|
477
|
+
:hover + * ${To}::before {
|
478
478
|
// allow override in case another item in the list is active/focused
|
479
479
|
border-color: var(--item-hover-divider-border-color-override, transparent) !important;
|
480
480
|
}
|
481
481
|
|
482
482
|
// - above Focused
|
483
|
-
&:focus ${
|
483
|
+
&:focus ${To}::before,
|
484
484
|
// - below Focused
|
485
485
|
// '*' instead of '&' because '&' maps to separate class names depending on 'variant'
|
486
|
-
:focus + * ${
|
486
|
+
:focus + * ${To}::before,
|
487
487
|
// - above Active Descendent
|
488
|
-
&[${Ar}] ${
|
488
|
+
&[${Ar}] ${To}::before,
|
489
489
|
// - below Active Descendent
|
490
|
-
[${Ar}] + & ${
|
490
|
+
[${Ar}] + & ${To}::before {
|
491
491
|
// '!important' because all the ':not's above give higher specificity
|
492
492
|
border-color: transparent !important;
|
493
493
|
}
|
@@ -510,32 +510,32 @@
|
|
510
510
|
}
|
511
511
|
|
512
512
|
${Kt}
|
513
|
-
`,
|
513
|
+
`,Co=i.default.span``,zo=i.default.div`
|
514
514
|
// Match visual height to adjacent text line height.
|
515
515
|
// TODO: When rem-based spacing on a 4px scale lands, replace
|
516
516
|
// hardcoded '20px' with '${xt("space.s20")}'.
|
517
517
|
height: 20px;
|
518
518
|
width: ${xt("space.3")};
|
519
519
|
margin-right: ${xt("space.2")};
|
520
|
-
`,
|
520
|
+
`,Ro=i.default(zo)`
|
521
521
|
svg {
|
522
|
-
fill: ${({variant:e,disabled:t})
|
522
|
+
fill: ${({variant:e,disabled:t})=>$o(e,t).iconColor};
|
523
523
|
font-size: ${xt("fontSizes.0")};
|
524
524
|
}
|
525
|
-
`,
|
525
|
+
`,Io=i.default(Ro)`
|
526
526
|
flex-shrink: 0;
|
527
527
|
display: flex;
|
528
528
|
flex-direction: column;
|
529
529
|
justify-content: center;
|
530
|
-
`,
|
531
|
-
color: ${({variant:e,disabled:t})
|
530
|
+
`,No=i.default(Ro)`
|
531
|
+
color: ${({variant:e,disabled:t})=>$o(e,t).annotationColor}};
|
532
532
|
margin-left: ${xt("space.2")};
|
533
533
|
margin-right: 0;
|
534
534
|
width: auto;
|
535
535
|
div:nth-child(2) {
|
536
536
|
margin-left: ${xt("space.2")};
|
537
537
|
}
|
538
|
-
`,
|
538
|
+
`,Ao=i.default.span`
|
539
539
|
color: ${xt("colors.fg.muted")};
|
540
540
|
font-size: ${xt("fontSizes.0")};
|
541
541
|
// TODO: When rem-based spacing on a 4px scale lands, replace
|
@@ -545,9 +545,9 @@
|
|
545
545
|
min-width: 0;
|
546
546
|
flex-grow: 1;
|
547
547
|
flex-basis: var(--description-container-flex-basis);
|
548
|
-
`,
|
548
|
+
`,Lo=i.default.input`
|
549
549
|
pointer-events: none;
|
550
|
-
`,
|
550
|
+
`,Oo=n.default.forwardRef(((e,r)=>{const{as:a,text:o,description:i,descriptionVariant:l="inline",selected:d,selectionVariant:s,leadingVisual:c,trailingIcon:f,trailingVisual:u,trailingText:g,variant:p="default",showDivider:b,disabled:m,onAction:h,onKeyPress:v,children:x,onClick:y,id:w,...B}=e,k=Wa(),$=Wa(),T=t.useCallback((t=>{if(m)return;null==v||v(t);t.target instanceof HTMLInputElement&&"checkbox"===t.target.type&&" "===t.key||!t.defaultPrevented&&[" ","Enter"].includes(t.key)&&(null==h||h(e,t))}),[h,m,e,v]),S=t.useCallback((t=>{m||(null==y||y(t),t.defaultPrevented||null==h||h(e,t))}),[h,m,e,y]),E=ko[p],C=Ut(E.hover,"inherit"),z=Ut(E.focus,"inherit"),{theme:R}=jt();return n.default.createElement(Eo,St({ref:r,as:a,tabIndex:m?void 0:-1,variant:p,showDivider:b,"aria-selected":d,"aria-labelledby":o?k:void 0,"aria-describedby":i?$:void 0},B,{"data-id":w,onKeyPress:T,onClick:S,hoverBackground:m?"inherit":C,focusBackground:m?"inherit":z}),!!d===d&&n.default.createElement(zo,null,"multiple"===s?n.default.createElement(n.default.Fragment,null,n.default.createElement(Lo,{disabled:m,tabIndex:-1,type:"checkbox",checked:d,"aria-label":o,readOnly:!0,"aria-readonly":"false"})):d&&n.default.createElement(ea,{fill:null==R?void 0:R.colors.fg.default})),c&&n.default.createElement(Io,{variant:p,disabled:m},n.default.createElement(c,null)),n.default.createElement(To,null,n.default.createElement(So,{style:{"--main-content-flex-direction":"inline"===l?"row":"column"}},x,o?n.default.createElement(Co,{id:k},o):null,i?n.default.createElement(Ao,{id:$,style:{"--description-container-margin-left":"inline"===l?xt("space.2")(R):0,"--description-container-flex-basis":"inline"===l?0:"auto"}},"block"===l?i:n.default.createElement(yo,{title:i,inline:!0,maxWidth:"100%"},i)):null),u?n.default.createElement(No,{variant:p,disabled:m},"function"==typeof u?n.default.createElement(u,null):u):f||g?n.default.createElement(No,{variant:p,disabled:m},g,f&&n.default.createElement(f,null)):null))}));Oo.displayName="ActionList.Item";const Mo=i.default.div`
|
551
551
|
font-size: ${xt("fontSizes.1")};
|
552
552
|
/* 14px font-size * 1.428571429 = 20px line height
|
553
553
|
*
|
@@ -560,15 +560,15 @@
|
|
560
560
|
--item-hover-bg-override: none;
|
561
561
|
--item-hover-divider-border-color-override: ${xt("colors.border.muted")};
|
562
562
|
}
|
563
|
-
`;const
|
563
|
+
`;const Po=n.default.forwardRef(((e,t)=>{const{firstGroupStyle:r,lastGroupStyle:a,headerStyle:o,itemStyle:i}=function(e="inset"){switch(e){case"full":return{headerStyle:{paddingX:xt("space.2")},itemStyle:{borderRadius:0}};default:return{firstGroupStyle:{marginTop:xt("space.2")},lastGroupStyle:{marginBottom:xt("space.2")},itemStyle:{marginX:xt("space.2")}}}}(e.variant),l=(t,r,a)=>{var o,l,d;const s="renderItem"in t&&t.renderItem||e.renderItem||Oo,c=null!==(o=null!==(l="key"in t?t.key:void 0)&&void 0!==l?l:null===(d=t.id)||void 0===d?void 0:d.toString())&&void 0!==o?o:a.toString();return n.default.createElement(s,St({showDivider:e.showItemDividers,selectionVariant:e.selectionVariant},t,{key:c,sx:{...i,...t.sx},item:r}))};let d=[];if(function(e){return"groupMetadata"in e}(e)){const t=e.groupMetadata.reduce(((e,t)=>e.set(t.groupId,t)),new Map);for(const r of e.items){var s,c,f;const e=t.get(r.groupId),a=null!==(s=null==e||null===(c=e.items)||void 0===c?void 0:c.length)&&void 0!==s?s:0;t.set(r.groupId,{...e,items:[...null!==(f=null==e?void 0:e.items)&&void 0!==f?f:[],l({showDivider:null==e?void 0:e.showItemDividers,...e&&"renderItem"in e&&{renderItem:e.renderItem},...r},r,a)]})}d=[...t.values()]}else d=[{items:e.items.map(((e,t)=>l(e,e,t))),groupId:"0"}];return n.default.createElement(Mo,St({},e,{ref:t}),d.map((({header:t,...i},l)=>{const s="filled"===(null==t?void 0:t.variant),c=l>0&&!s;return n.default.createElement(n.default.Fragment,{key:i.groupId},c?n.default.createElement(Bo,{key:`${i.groupId}-divider`}):null,(t=>{var r;const a=(null!==(r="renderGroup"in t&&t.renderGroup)&&void 0!==r?r:e.renderGroup)||vo;return n.default.createElement(a,St({},t,{key:t.groupId}))})({sx:{...0===l&&r,...l===d.length-1&&a,...l>0&&!c&&{mt:2}},...t&&{header:{...t,sx:{...o,...t.sx}}},...i}))})))}));Po.displayName="ActionList";const Do=Object.assign(Po,{Group:vo,Item:Oo,Divider:Bo}),Ho={xsmall:"192px",small:"256px",medium:"320px",large:"432px",xlarge:"600px",auto:"auto",initial:"auto"},Fo={small:"256px",medium:"320px",large:"480px",xlarge:"640px",xxlarge:"960px",auto:"auto"};const Wo=i.default.div`
|
564
564
|
background-color: ${xt("colors.canvas.overlay")};
|
565
565
|
box-shadow: ${xt("shadows.overlay.shadow")};
|
566
566
|
position: absolute;
|
567
567
|
min-width: 192px;
|
568
568
|
max-width: 640px;
|
569
|
-
height: ${e=>
|
570
|
-
max-height: ${e=>e.maxHeight&&
|
571
|
-
width: ${e=>
|
569
|
+
height: ${e=>Ho[e.height||"auto"]};
|
570
|
+
max-height: ${e=>e.maxHeight&&Ho[e.maxHeight]};
|
571
|
+
width: ${e=>Fo[e.width||"auto"]};
|
572
572
|
border-radius: 12px;
|
573
573
|
overflow: hidden;
|
574
574
|
animation: overlay-appear ${200}ms ${xt("animation.easeOutCubic")};
|
@@ -587,12 +587,12 @@
|
|
587
587
|
}
|
588
588
|
${yt};
|
589
589
|
${Kt};
|
590
|
-
`,
|
590
|
+
`,_o=n.default.forwardRef((({onClickOutside:e,role:r="none",initialFocusRef:a,returnFocusRef:o,ignoreClickRefs:i,onEscape:l,visibility:d="visible",height:s,top:c,left:f,anchorSide:u,portalContainerName:g,preventFocusOnOpen:p,...b},m)=>{const h=t.useRef(null),v=Pa(h,m),{theme:x}=jt(),y=parseInt(xt("space.2")(x).replace("px","")),w=xt("animation.easeOutCubic")(x);return wr({overlayRef:h,returnFocusRef:o,onEscape:l,ignoreClickRefs:i,onClickOutside:e,initialFocusRef:a,preventFocusOnOpen:p}),t.useEffect((()=>{var e;"initial"===s&&null!==(e=v.current)&&void 0!==e&&e.clientHeight&&(v.current.style.height=`${v.current.clientHeight}px`)}),[s,v]),wa((()=>{var e;const{x:t,y:r}=function(e){return null!=e&&e.endsWith("bottom")?{x:0,y:-1}:null!=e&&e.endsWith("top")?{x:0,y:1}:null!=e&&e.endsWith("right")?{x:-1,y:0}:null!=e&&e.endsWith("left")?{x:1,y:0}:{x:0,y:0}}(u);(t||r)&&null!==(e=h.current)&&void 0!==e&&e.animate&&"hidden"!==d&&h.current.animate({transform:[`translate(${y*t}px, ${y*r}px)`,"translate(0, 0)"]},{duration:200,easing:w})}),[u,y,w,d]),n.default.createElement(Ma,{containerName:g},n.default.createElement(Wo,St({height:s,role:r},b,{ref:v,style:{top:`${c||0}px`,left:`${f||0}px`,...b.style,"--styled-overlay-visibility":d}})))}));_o.defaultProps={height:"auto",width:"auto"};var jo=_o;const Uo=({renderAnchor:e,anchorRef:r,children:a,open:o,onOpen:i,onClose:l,height:d,width:s,overlayProps:c,focusTrapSettings:f,focusZoneSettings:u,side:g,align:p})=>{const b=yr(r),[m,h]=function(){const[e,r]=t.useState(null),a=t.useRef(null);a.current=e;const o=t.useCallback((e=>{a.current=e,r(e)}),[a]);return[a,o]}(),v=Wa(),x=t.useCallback((()=>null==l?void 0:l("click-outside")),[l]),y=t.useCallback((()=>null==l?void 0:l("escape")),[l]),w=t.useCallback((e=>{e.defaultPrevented||!o&&["ArrowDown","ArrowUp"," ","Enter"].includes(e.key)&&(null==i||i("anchor-key-press"),e.preventDefault())}),[o,i]),B=t.useCallback((e=>{e.defaultPrevented||0!==e.button||(o?null==l||l("anchor-click"):null==i||i("anchor-click"))}),[o,i,l]),{position:k}=Ba({anchorElementRef:b,floatingElementRef:m,side:g,align:p},[m.current]);return t.useEffect((()=>{!o&&m.current&&h(null)}),[o,m,h]),Ia({containerRef:m,disabled:!o||!k,...u}),Ea({containerRef:m,disabled:!o||!k,...f}),n.default.createElement(n.default.Fragment,null,e&&e({ref:b,id:v,"aria-labelledby":v,"aria-haspopup":"true",tabIndex:0,onClick:B,onKeyDown:w}),o?n.default.createElement(jo,St({returnFocusRef:b,onClickOutside:x,ignoreClickRefs:[b],onEscape:y,ref:h,role:"none",visibility:k?"visible":"hidden",height:d,width:s,top:(null==k?void 0:k.top)||0,left:(null==k?void 0:k.left)||0,anchorSide:null==k?void 0:k.anchorSide},c),a):null)};function Go(e,r,a){const[o,n]=t.useState(a);return[null!=e?e:o,t.useCallback((e=>{n(e),r&&r(e)}),[r])]}Uo.displayName="AnchoredOverlay",Uo.defaultProps={side:"outside-bottom",align:"start"};const Vo=e=>n.default.createElement(Oo,St({role:"menuitem"},e));Vo.displayName="ActionMenuItem",Vo.displayName="ActionMenu.Item";const Ko=({anchorContent:e,renderAnchor:r=(e=>n.default.createElement(jr,e)),anchorRef:a,onAction:o,open:i,setOpen:l,overlayProps:d,items:s,...c})=>{const[f,u]=Go(i,l,!1),g=yr(a),p=t.useCallback((()=>u(!0)),[u]),b=t.useCallback((()=>u(!1)),[u]),m=t.useMemo((()=>null===r?null:t=>r({"aria-label":"menu",children:e,...t})),[e,r]),h=t.useMemo((()=>s.map((e=>({...e,role:"menuitem",onAction:(t,r)=>{var a;const n=null!==(a=e.onAction)&&void 0!==a?a:o;null==n||n(t,r),r.defaultPrevented||b()}})))),[s,o,b]);return n.default.createElement(Uo,{renderAnchor:m,anchorRef:g,open:f,onOpen:p,onClose:b,overlayProps:d},n.default.createElement(Po,St({},c,{role:"menu",items:h})))};Ko.displayName="ActionMenuBase",Ko.displayName="ActionMenu";const qo=Object.assign(Ko,{Divider:Bo,Item:Vo}),Xo=t.createContext(null);var Yo={exports:{}};
|
591
591
|
/*!
|
592
592
|
Copyright (c) 2018 Jed Watson.
|
593
593
|
Licensed under the MIT License (MIT), see
|
594
594
|
http://jedwatson.github.io/classnames
|
595
|
-
*/!function(e){!function(){var t={}.hasOwnProperty;function r(){for(var e=[],a=0;a<arguments.length;a++){var o=arguments[a];if(o){var n=typeof o;if("string"===n||"number"===n)e.push(o);else if(Array.isArray(o)){if(o.length){var i=r.apply(null,o);i&&e.push(i)}}else if("object"===n)if(o.toString===Object.prototype.toString)for(var l in o)t.call(o,l)&&o[l]&&e.push(l);else e.push(o.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r}()}(
|
595
|
+
*/!function(e){!function(){var t={}.hasOwnProperty;function r(){for(var e=[],a=0;a<arguments.length;a++){var o=arguments[a];if(o){var n=typeof o;if("string"===n||"number"===n)e.push(o);else if(Array.isArray(o)){if(o.length){var i=r.apply(null,o);i&&e.push(i)}}else if("object"===n)if(o.toString===Object.prototype.toString)for(var l in o)t.call(o,l)&&o[l]&&e.push(l);else e.push(o.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r}()}(Yo);var Jo=Yo.exports;var Zo=i.default.input`
|
596
596
|
border: 0;
|
597
597
|
font-size: inherit;
|
598
598
|
font-family: inherit;
|
@@ -605,7 +605,7 @@
|
|
605
605
|
}
|
606
606
|
|
607
607
|
${Kt};
|
608
|
-
`;const
|
608
|
+
`;const Qo=re({variants:{small:{minHeight:"28px",px:2,py:"3px",fontSize:0,lineHeight:"20px"},large:{px:2,py:"10px",fontSize:3}}});var en=i.default.span`
|
609
609
|
display: inline-flex;
|
610
610
|
align-items: stretch;
|
611
611
|
min-height: 34px;
|
@@ -650,9 +650,9 @@
|
|
650
650
|
${ie}
|
651
651
|
${de}
|
652
652
|
${ce}
|
653
|
-
${
|
653
|
+
${Qo}
|
654
654
|
${Kt};
|
655
|
-
`;const
|
655
|
+
`;const tn=n.default.forwardRef((({icon:e,block:t,className:r,contrast:a,disabled:o,sx:i,theme:l,width:d,minWidth:s,maxWidth:c,variant:f,...u},g)=>{const p=Jo(r,"TextInput-wrapper");return n.default.createElement(en,{block:t,className:p,contrast:a,disabled:o,hasIcon:!!e,sx:i,theme:l,width:d,minWidth:s,maxWidth:c,variant:f},e&&n.default.createElement(e,{className:"TextInput-icon"}),n.default.createElement(Zo,St({ref:g,disabled:o},u)))}));tn.defaultProps={type:"text"},tn.displayName="TextInput";var rn=tn;const an=n.default.forwardRef((({as:e=rn,onFocus:r,onBlur:a,onChange:o,onKeyDown:i,onKeyUp:l,onKeyPress:d,value:s,...c},f)=>{const u=t.useContext(Xo);if(null===u)throw new Error("AutocompleteContext returned null values");const{activeDescendantRef:g,autocompleteSuggestion:p="",id:b,inputRef:m,inputValue:h="",isMenuDirectlyActivated:v,setInputValue:x,setShowMenu:y,showMenu:w}=u,B=Pa(m,f),[k,$]=t.useState(!0),T=t.useCallback((e=>{r&&r(e),y(!0)}),[r,y]),S=t.useCallback((e=>{a&&a(e),setTimeout((()=>{document.activeElement!==B.current&&y(!1)}),0)}),[a,y,B]),E=t.useCallback((e=>{o&&o(e),x(e.currentTarget.value),w||y(!0)}),[o,x,y,w]),C=t.useCallback((e=>{var t;i&&i(e),"Backspace"===e.key&&$(!1),"Escape"===e.key&&null!==(t=m.current)&&void 0!==t&&t.value&&(x(""),m.current.value="")}),[m,x,$,i]),z=t.useCallback((e=>{l&&l(e),"Backspace"===e.key&&$(!0)}),[$,l]),R=t.useCallback((e=>{if(d&&d(e),w&&"Enter"===e.key&&g.current){e.preventDefault(),e.nativeEvent.stopImmediatePropagation();const t=new KeyboardEvent(e.type,e.nativeEvent);g.current.dispatchEvent(t)}}),[g,w,d]);return t.useEffect((()=>{m.current&&(p||(m.current.value=h),k&&p&&(h||v)&&(m.current.value=p,0===p.toLowerCase().indexOf(h.toLowerCase())&&m.current.setSelectionRange(h.length,p.length)))}),[p,h,m,v]),t.useEffect((()=>{s&&x(s.toString())}),[s,x]),n.default.createElement(e,St({onFocus:T,onBlur:S,onChange:E,onKeyDown:C,onKeyPress:R,onKeyUp:z,ref:B,"aria-controls":`${b}-listbox`,"aria-autocomplete":"both",role:"combobox","aria-expanded":w,"aria-haspopup":"listbox","aria-owns":`${b}-listbox`,autocomplete:"off"},c))}));an.displayName="AutocompleteInput";var on=an;const nn=(e,t,r="vertical",a=8,o=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]:u}=t.getBoundingClientRect(),g=c>u-a;if(s<f+o){const e=s-f+t[d];t.scrollTo({behavior:n,[i]:e-o})}else if(g){const e=c-u+t[d];t.scrollTo({behavior:n,[i]:e+a})}};function ln(e){const r=t.useContext(Xo);if(null===r)throw new Error("AutocompleteContext returned null values");const{activeDescendantRef:a,id:o,inputRef:i,inputValue:l="",scrollContainerRef:d,setAutocompleteSuggestion:s,setShowMenu:c,setInputValue:f,setIsMenuDirectlyActivated:u,setSelectedItemLength:g,showMenu:p}=r,{items:b,selectedItemIds:m,sortOnCloseFn:h,emptyStateText:v,addNewItem:x,loading:y,selectionVariant:w,filterFn:B,"aria-labelledby":k,onOpenChange:$,onSelectedChange:T,customScrollContainerRef:S}=e,E=t.useRef(null),[C,z]=t.useState(),[R,I]=t.useState(b.map((({id:e})=>e))),N=t.useMemo((()=>b.map((e=>({...e,role:"option",id:e.id,selected:"multiple"===w?m.includes(e.id):void 0,onAction:e=>{const t=m.filter((t=>t!==e.id)),r=m.includes(e.id)?t:[...t,e.id];var a,o;((T||(a=f,function(e){const{text:t=""}=Array.isArray(e)?e.slice(-1)[0]:e;a(t)}))(r.map((e=>function(e,t){return t.find((t=>t.id===e))}(e,b)))),"multiple"===w)?(f(""),s("")):(c(!1),null===(o=i.current)||void 0===o||o.setSelectionRange(i.current.value.length,i.current.value.length))}})))),[b,m,i,T,w,s,f,c]),A=t.useMemo((()=>R.reduce(((e,t,r)=>(e[t]=r,e)),{})),[R]),L=t.useMemo((()=>{return N.filter(B||(e=l,function(t,r){var a;return Boolean(null===(a=t.text)||void 0===a?void 0:a.toLowerCase().startsWith(e.toLowerCase()))})).sort(((e,t)=>A[e.id]-A[t.id]));var e}),[N,A,B,l]),O=t.useMemo((()=>[...L,...x?[{...x,leadingVisual:()=>n.default.createElement(ia,null),onAction:e=>{x.handleAddItem({...e,id:e.id||zr(),leadingVisual:void 0}),"multiple"===w&&(f(""),s(""))}}]:[]]),[L,x,s,w,f]);return Ia({containerRef:E,focusOutBehavior:"wrap",focusableElementFilter:e=>!(e instanceof HTMLInputElement),activeDescendantFocus:i,onActiveDescendantChanged:(e,t,r)=>{if(a.current=e||null,e){const t=N.find((t=>t.id.toString()===e.getAttribute("data-id")));z(t),u(r)}e&&S&&S.current&&r?nn(e,S.current):e&&d.current&&r&&nn(e,d.current)}},[y]),t.useEffect((()=>{var e;null!=C&&null!==(e=C.text)&&void 0!==e&&e.startsWith(l)&&!m.includes(C.id)?s(C.text):s("")}),[C,l,m,s]),t.useEffect((()=>{const e=[...R].sort(h||(t=e=>((e,t)=>t.includes(e))(e,m),(e,r)=>t(e)===t(r)?0:t(e)?-1:1));var t;const r=e.length===R.length&&e.every(((e,t)=>e===R[t]));!1!==p||r||I(e),$&&$(Boolean(p))}),[p,$,m,h,R]),t.useEffect((()=>{m.length&&g(m.length)}),[m,g]),n.default.createElement(qt,{sx:p?{}:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},y?n.default.createElement(qt,{p:3,display:"flex",justifyContent:"center"},n.default.createElement(yl,null)):n.default.createElement("div",{ref:E},O.length?n.default.createElement(Do,{selectionVariant:"multiple",items:O,role:"listbox",id:`${o}-listbox`,"aria-labelledby":k}):n.default.createElement(qt,{p:3},v)))}function dn({menuAnchorRef:e,overlayProps:r,children:a}){const o=t.useContext(Xo);if(null===o)throw new Error("AutocompleteContext returned null values");const{inputRef:i,scrollContainerRef:l,selectedItemLength:d,setShowMenu:s,showMenu:c=!1}=o,{floatingElementRef:f,position:u}=Ba({side:"outside-bottom",align:"start",anchorElementRef:e||i},[c,d]),g=Pa(l,f),p=t.useCallback((()=>{s(!1)}),[s]);return"undefined"==typeof window?null:n.default.createElement(jo,St({returnFocusRef:i,preventFocusOnOpen:!0,onClickOutside:p,onEscape:p,ref:g,top:null==u?void 0:u.top,left:null==u?void 0:u.left,visibility:c?"visible":"hidden",sx:{overflow:"auto"}},r),a)}ln.displayName="AutocompleteMenu",ln.defaultProps={emptyStateText:"No selectable options",selectionVariant:"single"},ln.displayName="AutocompleteMenu",dn.displayName="AutocompleteOverlay",dn.displayName="AutocompleteOverlay";const sn={inputValue:"",showMenu:!1,isMenuDirectlyActivated:!1,autocompleteSuggestion:"",selectedItemLength:0},cn=(e,t)=>{const{type:r,payload:a}=t;switch(r){case"inputValue":return{...e,inputValue:a};case"showMenu":return{...e,showMenu:a};case"isMenuDirectlyActivated":return{...e,isMenuDirectlyActivated:a};case"autocompleteSuggestion":return{...e,autocompleteSuggestion:a};case"selectedItemLength":return{...e,selectedItemLength:a};default:return e}},fn=({children:e,id:r})=>{const a=t.useRef(null),o=t.useRef(null),i=t.useRef(null),[l,d]=t.useReducer(cn,sn),{inputValue:s,showMenu:c,autocompleteSuggestion:f,isMenuDirectlyActivated:u,selectedItemLength:g}=l,p=t.useCallback((e=>{d({type:"inputValue",payload:e})}),[]),b=t.useCallback((e=>{d({type:"showMenu",payload:e})}),[]),m=t.useCallback((e=>{d({type:"autocompleteSuggestion",payload:e})}),[]),h=t.useCallback((e=>{d({type:"isMenuDirectlyActivated",payload:e})}),[]),v=t.useCallback((e=>{d({type:"selectedItemLength",payload:e})}),[]),x=Wa(r);return n.default.createElement(Xo.Provider,{value:{activeDescendantRef:a,autocompleteSuggestion:f,id:x,inputRef:i,inputValue:s,isMenuDirectlyActivated:u,scrollContainerRef:o,selectedItemLength:g,setAutocompleteSuggestion:m,setInputValue:p,setIsMenuDirectlyActivated:h,setShowMenu:b,setSelectedItemLength:v,showMenu:c}},e)};fn.displayName="Autocomplete";var un=Object.assign(fn,{Input:on,Menu:ln,Overlay:dn});const gn=i.default.img.attrs((e=>({height:e.size,width:e.size})))`
|
656
656
|
display: inline-block;
|
657
657
|
overflow: hidden; // Ensure page layout in Firefox should images fail to load
|
658
658
|
line-height: ${xt("lineHeights.condensedUltra")};
|
@@ -660,12 +660,12 @@
|
|
660
660
|
border-radius: ${e=>function({size:e,square:t}){return t?e&&e<=24?"4px":"6px":"50%"}(e)};
|
661
661
|
${yt};
|
662
662
|
${Kt}
|
663
|
-
`;
|
663
|
+
`;gn.defaultProps={size:20,alt:"",square:!1};var pn=gn;const bn=i.default(pn)`
|
664
664
|
position: absolute;
|
665
665
|
right: -15%;
|
666
666
|
bottom: -9%;
|
667
667
|
box-shadow: ${xt("shadows.avatar.childShadow")};
|
668
|
-
`,
|
668
|
+
`,mn=({children:e,...t})=>{const r=n.default.Children.map(e,((e,t)=>n.default.isValidElement(e)?0===t?n.default.cloneElement(e,{size:40}):n.default.createElement(bn,St({bg:"canvas.default"},e.props,{size:20})):e));return n.default.createElement(qt,St({position:"relative",display:"inline-flex"},t),r)};mn.displayName="AvatarPair",mn.displayName="AvatarPair";var hn=mn;const vn=i.default.span`
|
669
669
|
display: flex;
|
670
670
|
position: relative;
|
671
671
|
height: 20px;
|
@@ -780,7 +780,7 @@
|
|
780
780
|
}
|
781
781
|
|
782
782
|
${Kt};
|
783
|
-
`,
|
783
|
+
`,xn=({children:e,alignRight:t,sx:r})=>{const a=n.default.Children.count(e),o=Jo({"pc-AvatarStack--two":2===a,"pc-AvatarStack--three-plus":a>2,"pc-AvatarStack--right":t});return n.default.createElement(vn,{count:a,className:o,sx:r},n.default.createElement(qt,{position:"absolute",display:"flex",width:"38px",className:"pc-AvatarStackBody"},(e=>n.default.Children.map(e,((e,t)=>n.default.isValidElement(e)?n.default.cloneElement(e,{className:Jo(e.props.className,"pc-AvatarItem"),sx:{zIndex:10-t,...e.props.sx}}):e)))(e)))};xn.displayName="AvatarStack";var yn=xn;var wn=i.default.a`
|
784
784
|
display: inline-block;
|
785
785
|
padding: 2px 6px;
|
786
786
|
font-size: ${xt("fontSizes.0")};
|
@@ -790,7 +790,7 @@
|
|
790
790
|
border-radius: ${xt("radii.2")};
|
791
791
|
${yt};
|
792
792
|
${Kt};
|
793
|
-
`;const
|
793
|
+
`;const Bn=i.default.li`
|
794
794
|
display: inline-block;
|
795
795
|
white-space: nowrap;
|
796
796
|
list-style: none;
|
@@ -809,13 +809,13 @@
|
|
809
809
|
content: none;
|
810
810
|
}
|
811
811
|
}
|
812
|
-
`,
|
812
|
+
`,kn=i.default.nav`
|
813
813
|
display: flex;
|
814
814
|
justify-content: space-between;
|
815
815
|
${yt};
|
816
816
|
${Tt};
|
817
817
|
${Kt};
|
818
|
-
`;function
|
818
|
+
`;function $n({className:e,children:t,theme:r,...a}){const o=n.default.Children.map(t,(e=>n.default.createElement(Bn,{theme:r},e)));return n.default.createElement(kn,St({className:e,"aria-label":"Breadcrumbs",theme:r},a),n.default.createElement(qt,{as:"ol",my:0,pl:0},o))}$n.displayName="Breadcrumbs";const Tn=i.default.a.attrs((e=>({activeClassName:"string"==typeof e.to?"selected":"",className:Jo(e.selected&&"selected",e.className),"aria-current":e.selected?"page":null})))`
|
819
819
|
color: ${xt("colors.accent.fg")};
|
820
820
|
display: inline-block;
|
821
821
|
font-size: ${xt("fontSizes.1")};
|
@@ -829,7 +829,7 @@
|
|
829
829
|
}
|
830
830
|
${yt}
|
831
831
|
${Kt};
|
832
|
-
|
832
|
+
`;$n.displayName="Breadcrumbs",Tn.displayName="Breadcrumbs.Item";var Sn=Object.assign($n,{Item:Tn});const En=Object.assign($n,{Item:Tn}),Cn={top:"Bottom",right:"Left",bottom:"Top",left:"Right"},zn={top:"Left",right:"Top",bottom:"Left",left:"Top"};function Rn(e,t,r){const a=Cn[e].toLowerCase(),o=zn[e].toLowerCase();return{[a]:"100%",[t||o]:t?r:"50%"}}const In=pt({prop:"bg",key:"colors"}),Nn=pt({prop:"borderColor",key:"colors"}),An=pt({prop:"borderWidth",key:"borderWidths",scale:[0,1]});function Ln(e){var t;const a=n.default.useContext(r.ThemeContext),o={...e,theme:null!==(t=e.theme)&&void 0!==t?t:a},{bg:i}=In(o),{borderColor:l}=Nn(o),{borderWidth:d}=An(o),{size:s=8,location:c="bottom"}=e,[f,u]=function(e){const[t,r]=e.split("-");return[t,r]}(c),g=zn[f],p=[-s,0],b=[0,s],m=[s,0],h=`M${p}L${b}L${m}L${p}Z`,v=`M${p}L${b}L${m}`,x={top:`translate(${[s,2*s]}) rotate(180)`,right:`translate(${[0,s]}) rotate(-90)`,bottom:`translate(${[s,0]})`,left:`translate(${[2*s,s]}) rotate(90)`}[f];return n.default.createElement("svg",{width:2*s,height:2*s,style:{pointerEvents:"none",position:"absolute",...Rn(f,u,s),[`margin${g}`]:u?null:-s}},n.default.createElement("g",{transform:x},n.default.createElement("path",{d:h,fill:i}),n.default.createElement("path",{d:v,fill:"none",stroke:l,strokeWidth:d})))}Ln.displayName="Caret",Ln.locations=["top","top-left","top-right","right","right-top","right-bottom","bottom","bottom-left","bottom-right","left","left-top","left-bottom"],Ln.defaultProps={bg:"canvas.default",borderColor:"border.default",borderWidth:1};const On={small:56,medium:96,large:128},Mn=i.default.div`
|
833
833
|
display: ${e=>e.inline?"inline-flex":"flex"};
|
834
834
|
align-items: center;
|
835
835
|
justify-content: center;
|
@@ -837,13 +837,13 @@
|
|
837
837
|
border-radius: 50%;
|
838
838
|
box-shadow: ${xt("shadows.shadow.medium")};
|
839
839
|
${yt};
|
840
|
-
${({size:e,variant:t="medium"})=>{const r=function(e){return!isNaN(parseFloat(e))&&isFinite(e)}(e)?e:
|
840
|
+
${({size:e,variant:t="medium"})=>{const r=function(e){return!isNaN(parseFloat(e))&&isFinite(e)}(e)?e:On[t];return{width:r,height:r}}};
|
841
841
|
${Kt};
|
842
|
-
`,
|
842
|
+
`,Pn=i.default(Ra)`
|
843
843
|
height: auto;
|
844
844
|
max-width: 60%;
|
845
845
|
max-height: 55%;
|
846
|
-
`;
|
846
|
+
`;Mn.defaultProps={inline:!1},Pn.displayName="CircleBadge.Icon";var Dn=Object.assign(Mn,{Icon:Pn});function Hn(e){const{size:t,as:r}=e,{icon:a,bg:o,...i}=e;return n.default.createElement(qt,{as:r,bg:o,overflow:"hidden",borderWidth:0,size:t,borderRadius:"50%",borderStyle:"solid",borderColor:"border.default"},n.default.createElement(qt,St({display:"flex"},i,{alignItems:"center",justifyContent:"center"}),n.default.createElement(a,{size:t})))}Hn.displayName="CircleOcticon",Hn.defaultProps={...qt.defaultProps,size:32};var Fn=i.default.span`
|
847
847
|
display: inline-block;
|
848
848
|
padding: 2px 5px;
|
849
849
|
font-size: ${xt("fontSizes.0")};
|
@@ -859,7 +859,7 @@
|
|
859
859
|
}
|
860
860
|
|
861
861
|
${Kt};
|
862
|
-
`;const
|
862
|
+
`;const Wn=i.default.details`
|
863
863
|
& > summary {
|
864
864
|
list-style: none;
|
865
865
|
}
|
@@ -869,11 +869,11 @@
|
|
869
869
|
|
870
870
|
${yt}
|
871
871
|
${Kt};
|
872
|
-
`;
|
872
|
+
`;Wn.displayName="Details";var _n=Wn;const jn=()=>null;function Un(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 Gn=i.default.span`
|
873
873
|
${wt};
|
874
874
|
${yt};
|
875
875
|
${Kt};
|
876
|
-
`;const
|
876
|
+
`;const Vn=()=>null,Kn=i.default.div`
|
877
877
|
box-shadow: ${xt("shadows.shadow.large")};
|
878
878
|
border-radius: ${xt("radii.2")};
|
879
879
|
position: fixed;
|
@@ -897,7 +897,7 @@
|
|
897
897
|
${kt};
|
898
898
|
${yt};
|
899
899
|
${Kt};
|
900
|
-
`,
|
900
|
+
`,qn=i.default(qt)`
|
901
901
|
border-radius: ${xt("radii.2")} ${xt("radii.2")} 0px 0px;
|
902
902
|
border-bottom: 1px solid ${xt("colors.border.default")};
|
903
903
|
display: flex;
|
@@ -907,7 +907,7 @@
|
|
907
907
|
}
|
908
908
|
|
909
909
|
${Kt};
|
910
|
-
`;function
|
910
|
+
`;function Xn({theme:e,children:t,backgroundColor:r="gray.1",...a}){return n.default.Children.toArray(t).every((e=>"string"==typeof e))&&(t=n.default.createElement(Gn,{theme:e,color:"fg.default",fontSize:1,fontWeight:"bold",fontFamily:"sans-serif"},t)),n.default.createElement(qn,St({theme:e,p:3,backgroundColor:r},a),t)}Xn.displayName="DialogHeader";const Yn=i.default.span`
|
911
911
|
&:before {
|
912
912
|
position: fixed;
|
913
913
|
top: 0;
|
@@ -921,10 +921,10 @@
|
|
921
921
|
z-index: 99;
|
922
922
|
background: ${xt("colors.primer.canvas.backdrop")};
|
923
923
|
}
|
924
|
-
`,
|
924
|
+
`,Jn=t.forwardRef((({children:e,onDismiss:r=Vn,isOpen:a,initialFocusRef:o,returnFocusRef:i,...l},d)=>{const s=t.useRef(null),c=Pa(d),f=t.useRef(null),u=()=>{r(),i&&i.current&&i.current.focus()},{getDialogProps:g}=function({modalRef:e,overlayRef:r,isOpen:a,onDismiss:o=jn,initialFocusRef:n,closeButtonRef:i}){const l=t.useCallback((t=>{e.current&&r.current&&!e.current.contains(t.target)&&r.current.contains(t.target)&&o()}),[o,e,r]);t.useEffect((()=>{if(a)return document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}}),[a,l]),t.useEffect((()=>{a&&(n&&n.current?n.current.focus():i&&i.current&&i.current.focus())}),[a,n,i]);const d=t.useCallback(((t,r)=>{if(e.current){const a=Array.from(e.current.querySelectorAll("*")).filter(Un);if(0===a.length)return;t.preventDefault();const o=document.activeElement;if(!o)return;const n=a.indexOf(o)+r,i=1===r?0:a.length-1;return a[n]||a[i]}}),[e]),s=t.useCallback((e=>{const t=e.shiftKey?-1:1,r=d(e,t);r&&r.focus()}),[d]),c=t.useCallback((e=>{switch(e.key){case"Tab":s(e);break;case"Escape":o(),e.stopPropagation()}}),[s,o]);return{getDialogProps:()=>({onKeyDown:c})}}({modalRef:c,onDismiss:u,isOpen:a,initialFocusRef:o,closeButtonRef:f,returnFocusRef:i,overlayRef:s});return a?n.default.createElement(n.default.Fragment,null,n.default.createElement(Yn,{ref:s}),n.default.createElement(Kn,St({tabIndex:-1,ref:c,role:"dialog","aria-modal":"true"},l,g()),n.default.createElement(fa,{ref:f,onClick:u,sx:{position:"absolute",top:"16px",right:"16px"}}),e)):null}));Xn.defaultProps={backgroundColor:"canvas.subtle"},Xn.propTypes={...qt.propTypes},Xn.displayName="Dialog.Header",Jn.displayName="Dialog";var Zn=Object.assign(Jn,{Header:Xn});var Qn=(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: ${xt("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: ${xt("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: ${xt("colors.border.default")(e)};\n }\n\n &::after {\n top: 11px;\n left: -14px;\n border-color: transparent;\n border-right-color: ${xt("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 ${xt("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 ${xt("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 ei=i.default(_n)`
|
925
925
|
position: relative;
|
926
926
|
display: inline-block;
|
927
|
-
`,
|
927
|
+
`,ti=({children:e,className:t,...r})=>{const{getDetailsProps:a}=lr({closeOnOutsideClick:!0});return n.default.createElement(ei,St({className:t},a(),r),e)};ti.displayName="Dropdown";const ri=({children:e,...t})=>n.default.createElement(jr,St({as:"summary","aria-haspopup":"true"},t),e,n.default.createElement(ai,null));ri.displayName="DropdownButton";const ai=i.default.div`
|
928
928
|
border: 4px solid transparent;
|
929
929
|
margin-left: 12px;
|
930
930
|
border-top-color: currentcolor;
|
@@ -936,7 +936,7 @@
|
|
936
936
|
width: 0;
|
937
937
|
${yt};
|
938
938
|
${Kt};
|
939
|
-
`,
|
939
|
+
`,oi=i.default.ul`
|
940
940
|
background-clip: padding-box;
|
941
941
|
background-color: ${xt("colors.canvas.overlay")};
|
942
942
|
border: 1px solid ${xt("colors.border.default")};
|
@@ -977,10 +977,10 @@
|
|
977
977
|
> ul {
|
978
978
|
list-style: none;
|
979
979
|
}
|
980
|
-
${e=>e.direction?
|
980
|
+
${e=>e.direction?Qn(e.theme,e.direction):""};
|
981
981
|
${yt};
|
982
982
|
${Kt};
|
983
|
-
`,
|
983
|
+
`,ni=i.default.li`
|
984
984
|
display: block;
|
985
985
|
padding: ${xt("space.1")} 10px ${xt("space.1")} 15px;
|
986
986
|
overflow: hidden;
|
@@ -1013,7 +1013,7 @@
|
|
1013
1013
|
}
|
1014
1014
|
${yt};
|
1015
1015
|
${Kt};
|
1016
|
-
`;
|
1016
|
+
`;oi.defaultProps={direction:"sw"},oi.displayName="Dropdown.Menu",ni.displayName="Dropdown.Item",ri.defaultProps=jr.defaultProps,ri.displayName="Dropdown.Button",ai.displayName="Dropdown.Caret",ti.defaultProps=_n.defaultProps;var ii=Object.assign(ti,{Caret:ai,Menu:oi,Item:ni,Button:ri});const li=n.default.forwardRef((({children:e,...t},r)=>n.default.createElement(jr,St({ref:r,type:"button"},t),e,n.default.createElement(Ra,{icon:da,ml:1}))));function di({renderAnchor:e=(e=>n.default.createElement(li,e)),anchorRef:r,placeholder:a,selectedItem:o,onChange:i,overlayProps:l,items:d,open:s,onOpenChange:c,...f}){const[u,g]=Go(s,c,!1),p=t.useCallback((()=>g(!0)),[g]),b=t.useCallback((()=>g(!1)),[g]),m=yr(r),h=t.useMemo((()=>null===e?null:t=>{var r;return e({...t,children:null!==(r=null==o?void 0:o.text)&&void 0!==r?r:a})}),[a,e,null==o?void 0:o.text]),v=t.useMemo((()=>d.map((e=>({...e,role:"option",selected:e===o,onAction:(t,r)=>{var a;null===(a=e.onAction)||void 0===a||a.call(e,t,r),r.defaultPrevented||(b(),null==i||i(e===o?void 0:e))}})))),[d,i,b,o]);return n.default.createElement(Uo,{renderAnchor:h,anchorRef:m,open:u,onOpen:p,onClose:b,overlayProps:l},n.default.createElement(Po,St({},f,{role:"listbox",items:v})))}di.displayName="DropdownMenu",di.displayName="DropdownMenu";var si=i.default.div`
|
1017
1017
|
${yt};
|
1018
1018
|
display: flex;
|
1019
1019
|
align-items: stretch;
|
@@ -1032,11 +1032,11 @@
|
|
1032
1032
|
}
|
1033
1033
|
|
1034
1034
|
${Kt}
|
1035
|
-
`;const
|
1035
|
+
`;const ci=i.default.ul`
|
1036
1036
|
list-style-type: none;
|
1037
1037
|
${yt};
|
1038
1038
|
${Kt};
|
1039
|
-
`,
|
1039
|
+
`,fi=({children:e,...t})=>{const r=n.default.Children.map(e,(e=>n.default.createElement("li",null,e)));return n.default.createElement(ci,t,r)};fi.displayName="FilterList";const ui=i.default.a`
|
1040
1040
|
position: relative;
|
1041
1041
|
display: block;
|
1042
1042
|
padding: ${e=>e.small?`${xt("space.1")(e)} 10px`:`${xt("space.2")(e)} 11px`};
|
@@ -1064,7 +1064,7 @@
|
|
1064
1064
|
}
|
1065
1065
|
${yt};
|
1066
1066
|
${Kt};
|
1067
|
-
`;function
|
1067
|
+
`;function gi({children:e,count:t,...r}){return n.default.createElement(ui,r,t&&n.default.createElement("span",{title:"results",className:"count"},t),e)}gi.displayName="FilterListItem",fi.defaultProps={m:0,p:0},gi.displayName="FilterList.Item";var pi=Object.assign(fi,{Item:gi});const bi=re({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"}}}}),mi=i.default.div`
|
1068
1068
|
position: relative;
|
1069
1069
|
color: ${xt("colors.fg.default")};
|
1070
1070
|
padding: ${xt("space.3")};
|
@@ -1082,14 +1082,14 @@
|
|
1082
1082
|
}
|
1083
1083
|
|
1084
1084
|
${yt};
|
1085
|
-
${
|
1085
|
+
${bi};
|
1086
1086
|
${Kt};
|
1087
|
-
`;
|
1087
|
+
`;mi.defaultProps={variant:"default"};var hi=mi;const vi=i.default.div`
|
1088
1088
|
margin: ${xt("space.3")} 0;
|
1089
1089
|
font-weight: ${xt("fontWeights.normal")};
|
1090
1090
|
${yt};
|
1091
1091
|
${Kt};
|
1092
|
-
`,
|
1092
|
+
`,xi=i.default.label`
|
1093
1093
|
display: block;
|
1094
1094
|
margin: 0 0 ${xt("space.2")};
|
1095
1095
|
font-size: ${xt("fontSizes.1")};
|
@@ -1097,7 +1097,7 @@
|
|
1097
1097
|
${wt};
|
1098
1098
|
${yt};
|
1099
1099
|
${Kt};
|
1100
|
-
`;
|
1100
|
+
`;xi.displayName="FormGroup.Label";var yi=Object.assign(vi,{Label:xi});const wi=i.default.div`
|
1101
1101
|
z-index: 32;
|
1102
1102
|
display: flex;
|
1103
1103
|
padding: ${xt("space.3")};
|
@@ -1111,7 +1111,7 @@
|
|
1111
1111
|
${yt}
|
1112
1112
|
${Bt}
|
1113
1113
|
${Kt};
|
1114
|
-
`,
|
1114
|
+
`,Bi=i.default.div`
|
1115
1115
|
display: flex;
|
1116
1116
|
margin-right: ${xt("space.3")};
|
1117
1117
|
align-self: stretch;
|
@@ -1123,7 +1123,7 @@
|
|
1123
1123
|
${yt};
|
1124
1124
|
${Bt};
|
1125
1125
|
${Kt};
|
1126
|
-
`;
|
1126
|
+
`;Bi.displayName="Header.Item";const ki=i.default.a.attrs((({to:e})=>"string"==typeof e?{"aria-current":"page"}:{}))`
|
1127
1127
|
font-weight: ${xt("fontWeights.bold")};
|
1128
1128
|
color: ${xt("colors.header.logo")};
|
1129
1129
|
white-space: nowrap;
|
@@ -1141,14 +1141,14 @@
|
|
1141
1141
|
${Bt};
|
1142
1142
|
${wt};
|
1143
1143
|
${Kt};
|
1144
|
-
`;
|
1144
|
+
`;ki.displayName="Header.Link";var $i=Object.assign(wi,{Link:ki,Item:Bi});const Ti=i.default.h2`
|
1145
1145
|
font-weight: ${xt("fontWeights.bold")};
|
1146
1146
|
font-size: ${xt("fontSizes.5")};
|
1147
1147
|
margin: 0;
|
1148
1148
|
${wt};
|
1149
1149
|
${yt};
|
1150
1150
|
${Kt};
|
1151
|
-
|
1151
|
+
`;Ti.defaultProps={theme:d};var Si=Ti;var Ei=i.default.span`
|
1152
1152
|
${yt}
|
1153
1153
|
& * {
|
1154
1154
|
margin-right: ${xt("space.1")};
|
@@ -1157,7 +1157,7 @@
|
|
1157
1157
|
margin-right: 0;
|
1158
1158
|
}
|
1159
1159
|
${Kt};
|
1160
|
-
`;const
|
1160
|
+
`;const Ci=r.css(["margin-top:-1px;margin-bottom:-1px;color:",";border:"," solid ",";box-shadow:none;",";",";background-color:transparent;"],xt("colors.fg.muted"),xt("borderWidths.1"),xt("colors.border.default"),Qe,yt),zi=re({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"}}}),Ri=i.default.span`
|
1161
1161
|
display: inline-block;
|
1162
1162
|
font-weight: ${xt("fontWeights.semibold")};
|
1163
1163
|
color: ${xt("colors.fg.onEmphasis")};
|
@@ -1167,17 +1167,17 @@
|
|
1167
1167
|
text-decoration: none;
|
1168
1168
|
}
|
1169
1169
|
|
1170
|
-
${
|
1170
|
+
${zi}
|
1171
1171
|
${yt}
|
1172
1172
|
${e=>e.dropshadow?"box-shadow: inset 0 -1px 0 rgba(27, 31, 35, 0.12)":""}
|
1173
|
-
${e=>e.outline?
|
1173
|
+
${e=>e.outline?Ci:""} // must be last to override other values
|
1174
1174
|
${Kt}
|
1175
|
-
`;
|
1175
|
+
`;Ri.defaultProps={bg:"neutral.emphasis",variant:"medium"};var Ii=Ri;const Ni=k({hoverColor:{property:"color",scale:"colors"}});var Ai=i.default.a`
|
1176
1176
|
color: ${e=>e.muted?xt("colors.fg.muted")(e):xt("colors.accent.fg")(e)};
|
1177
1177
|
text-decoration: ${e=>e.underline?"underline":"none"};
|
1178
1178
|
&:hover {
|
1179
1179
|
text-decoration: ${e=>e.muted?"none":"underline"};
|
1180
|
-
${e=>e.hoverColor?
|
1180
|
+
${e=>e.hoverColor?Ni:e.muted?`color: ${xt("colors.accent.fg")(e)}`:""};
|
1181
1181
|
}
|
1182
1182
|
&:is(button) {
|
1183
1183
|
display: inline-block;
|
@@ -1193,7 +1193,7 @@
|
|
1193
1193
|
${wt};
|
1194
1194
|
${yt};
|
1195
1195
|
${Kt};
|
1196
|
-
`;var
|
1196
|
+
`;var Li=i.default.div`
|
1197
1197
|
position: relative;
|
1198
1198
|
padding-top: ${xt("space.4")};
|
1199
1199
|
padding-bottom: ${xt("space.4")};
|
@@ -1201,7 +1201,7 @@
|
|
1201
1201
|
border-bottom: 1px solid ${xt("colors.border.default")};
|
1202
1202
|
${yt};
|
1203
1203
|
${Kt};
|
1204
|
-
`;const
|
1204
|
+
`;const Oi=i.default.a`
|
1205
1205
|
display: inline-block;
|
1206
1206
|
min-width: 32px;
|
1207
1207
|
padding: 5px 10px;
|
@@ -1301,12 +1301,12 @@
|
|
1301
1301
|
}
|
1302
1302
|
|
1303
1303
|
${yt};
|
1304
|
-
`;function
|
1304
|
+
`;function Mi({theme:e,pageCount:t,currentPage:r,onPageChange:a,hrefBuilder:o,marginPageCount:i,showPages:l,surroundingPageCount:d}){const s=n.default.useCallback((e=>t=>a(t,e)),[a]),c=n.default.useMemo((()=>function(e,t,r,a,o){const n=[];if(r){const r=[],i=t=>{t>=1&&t<=e&&r.push(t)};let l=t-o,d=t+o;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<=a;t++){const r=t,a=e-(t-1);r>=l?d++:i(r),a<=d?l--:i(a)}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],a=r===t;0===e?(1!==r&&n.push({type:"BREAK",num:1}),n.push({type:"NUM",num:r,selected:a})):(1==r-s[e-1]||n.push({type:"BREAK",num:r-1}),n.push({type:"NUM",num:r,selected:a}))}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]}(t,r,!!l,i,d)),[t,r,l,i,d]);return n.default.useMemo((()=>c.map((t=>{const{props:r,key:a,content:i}=function(e,t,r){const a={};let o="",n="";switch(e.type){case"PREV":n="page-prev",o="Previous",e.disabled?Object.assign(a,{as:"span","aria-disabled":"true"}):Object.assign(a,{rel:"prev",href:t(e.num),"aria-label":"Previous Page",onClick:r});break;case"NEXT":n="page-next",o="Next",e.disabled?Object.assign(a,{as:"span","aria-disabled":"true"}):Object.assign(a,{rel:"next",href:t(e.num),"aria-label":"Next Page",onClick:r});break;case"NUM":n=`page-${e.num}`,o=String(e.num),e.selected?Object.assign(a,{as:"em","aria-current":"page"}):Object.assign(a,{href:t(e.num),"aria-label":`Page ${e.num}`,onClick:r});break;case"BREAK":n=`page-${e.num}-break`,o="…",Object.assign(a,{as:"span","aria-disabled":!0})}return{props:a,key:n,content:o}}(t,o,s(t.num));return n.default.createElement(Oi,St({},r,{key:a,theme:e}),i)}))),[c,o,s,e])}const Pi=i.default.nav`
|
1305
1305
|
margin-top: 20px;
|
1306
1306
|
margin-bottom: 15px;
|
1307
1307
|
text-align: center;
|
1308
1308
|
${Kt};
|
1309
|
-
`;function
|
1309
|
+
`;function Di({theme:e,pageCount:t,currentPage:r,onPageChange:a=Fi,hrefBuilder:o=Hi,marginPageCount:i=1,showPages:l=!0,surroundingPageCount:d=2,...s}){const c=Mi({theme:e,pageCount:t,currentPage:r,onPageChange:a,hrefBuilder:o,marginPageCount:i,showPages:l,surroundingPageCount:d});return n.default.createElement(Pi,St({"aria-label":"Pagination"},s,{theme:e}),n.default.createElement(qt,{display:"inline-block",theme:e},c))}function Hi(e){return`#${e}`}function Fi(){}function Wi(e){const{bg:t,border:r,borderColor:a,theme:o}=e,{caret:i,children:l,...d}=e,s={bg:t,borderColor:a,borderWidth:r,location:i,theme:o};return n.default.createElement(Yt,St({sx:{position:"relative"}},d),l,n.default.createElement(Ln,s))}Di.displayName="Pagination",Di.defaultProps={hrefBuilder:Hi,marginPageCount:1,onPageChange:Fi,showPages:!0,surroundingPageCount:2},Wi.displayName="PointerBox";const _i=i.default.div.attrs((({className:e,caret:t})=>({className:Jo(e,`caret-pos--${t}`)})))`
|
1310
1310
|
position: ${e=>e.relative?"relative":"absolute"};
|
1311
1311
|
z-index: 100;
|
1312
1312
|
display: ${e=>e.open?"block":"none"};
|
@@ -1315,7 +1315,7 @@
|
|
1315
1315
|
${kt};
|
1316
1316
|
${$t};
|
1317
1317
|
${Kt};
|
1318
|
-
`,
|
1318
|
+
`,ji=i.default(qt)`
|
1319
1319
|
border: 1px solid ${xt("colors.border.default")};
|
1320
1320
|
border-radius: ${xt("radii.2")};
|
1321
1321
|
position: relative;
|
@@ -1352,9 +1352,9 @@
|
|
1352
1352
|
}
|
1353
1353
|
|
1354
1354
|
// Bottom-oriented carets
|
1355
|
-
${
|
1356
|
-
${
|
1357
|
-
${
|
1355
|
+
${_i}.caret-pos--bottom & ,
|
1356
|
+
${_i}.caret-pos--bottom-right & ,
|
1357
|
+
${_i}.caret-pos--bottom-left & {
|
1358
1358
|
&::before,
|
1359
1359
|
&::after {
|
1360
1360
|
top: auto;
|
@@ -1374,8 +1374,8 @@
|
|
1374
1374
|
}
|
1375
1375
|
|
1376
1376
|
// Top & Bottom: Right-oriented carets
|
1377
|
-
${
|
1378
|
-
${
|
1377
|
+
${_i}.caret-pos--top-right & ,
|
1378
|
+
${_i}.caret-pos--bottom-right & {
|
1379
1379
|
right: -9px;
|
1380
1380
|
margin-right: 0;
|
1381
1381
|
|
@@ -1395,8 +1395,8 @@
|
|
1395
1395
|
}
|
1396
1396
|
|
1397
1397
|
// Top & Bottom: Left-oriented carets
|
1398
|
-
${
|
1399
|
-
${
|
1398
|
+
${_i}.caret-pos--top-left & ,
|
1399
|
+
${_i}.caret-pos--bottom-left & {
|
1400
1400
|
left: -9px;
|
1401
1401
|
margin-left: 0;
|
1402
1402
|
|
@@ -1412,12 +1412,12 @@
|
|
1412
1412
|
}
|
1413
1413
|
|
1414
1414
|
// Right- & Left-oriented carets
|
1415
|
-
${
|
1416
|
-
${
|
1417
|
-
${
|
1418
|
-
${
|
1419
|
-
${
|
1420
|
-
${
|
1415
|
+
${_i}.caret-pos--right & ,
|
1416
|
+
${_i}.caret-pos--right-top & ,
|
1417
|
+
${_i}.caret-pos--right-bottom & ,
|
1418
|
+
${_i}.caret-pos--left & ,
|
1419
|
+
${_i}.caret-pos--left-top & ,
|
1420
|
+
${_i}.caret-pos--left-bottom & {
|
1421
1421
|
&::before,
|
1422
1422
|
&::after {
|
1423
1423
|
top: 50%;
|
@@ -1437,9 +1437,9 @@
|
|
1437
1437
|
}
|
1438
1438
|
|
1439
1439
|
// Right-oriented carets
|
1440
|
-
${
|
1441
|
-
${
|
1442
|
-
${
|
1440
|
+
${_i}.caret-pos--right & ,
|
1441
|
+
${_i}.caret-pos--right-top & ,
|
1442
|
+
${_i}.caret-pos--right-bottom & {
|
1443
1443
|
&::before {
|
1444
1444
|
right: -${xt("space.3")};
|
1445
1445
|
border-left-color: ${xt("colors.border.default")};
|
@@ -1453,9 +1453,9 @@
|
|
1453
1453
|
}
|
1454
1454
|
|
1455
1455
|
// Left-oriented carets
|
1456
|
-
${
|
1457
|
-
${
|
1458
|
-
${
|
1456
|
+
${_i}.caret-pos--left & ,
|
1457
|
+
${_i}.caret-pos--left-top & ,
|
1458
|
+
${_i}.caret-pos--left-bottom & {
|
1459
1459
|
&::before {
|
1460
1460
|
left: -${xt("space.3")};
|
1461
1461
|
border-right-color: ${xt("colors.border.default")};
|
@@ -1469,8 +1469,8 @@
|
|
1469
1469
|
}
|
1470
1470
|
|
1471
1471
|
// Right & Left: Top-oriented carets
|
1472
|
-
${
|
1473
|
-
${
|
1472
|
+
${_i}.caret-pos--right-top & ,
|
1473
|
+
${_i}.caret-pos--left-top & {
|
1474
1474
|
&::before,
|
1475
1475
|
&::after {
|
1476
1476
|
top: ${xt("space.4")};
|
@@ -1478,8 +1478,8 @@
|
|
1478
1478
|
}
|
1479
1479
|
|
1480
1480
|
// Right & Left: Bottom-oriented carets
|
1481
|
-
${
|
1482
|
-
${
|
1481
|
+
${_i}.caret-pos--right-bottom & ,
|
1482
|
+
${_i}.caret-pos--left-bottom & {
|
1483
1483
|
&::before,
|
1484
1484
|
&::after {
|
1485
1485
|
top: auto;
|
@@ -1495,23 +1495,23 @@
|
|
1495
1495
|
}
|
1496
1496
|
|
1497
1497
|
${Kt};
|
1498
|
-
`;
|
1498
|
+
`;_i.defaultProps={caret:"top"},ji.displayName="Popover.Content";var Ui=Object.assign(_i,{Content:ji});const Gi=i.default.span`
|
1499
1499
|
width: ${e=>e.progress?`${e.progress}%`:0};
|
1500
1500
|
${yt}
|
1501
|
-
`,
|
1501
|
+
`,Vi={small:"5px",large:"10px",default:"8px"},Ki=i.default.span`
|
1502
1502
|
display: ${e=>e.inline?"inline-flex":"flex"};
|
1503
1503
|
overflow: hidden;
|
1504
1504
|
background-color: ${xt("colors.border.default")};
|
1505
1505
|
border-radius: ${xt("radii.1")};
|
1506
|
-
height: ${e=>
|
1506
|
+
height: ${e=>Vi[e.barSize||"default"]};
|
1507
1507
|
${yt}
|
1508
1508
|
${ie}
|
1509
1509
|
${Kt};
|
1510
|
-
`;function
|
1511
|
-
${
|
1510
|
+
`;function qi({progress:e,bg:t,theme:r,...a}){return n.default.createElement(Ki,St({theme:r},a),n.default.createElement(Gi,{progress:e,bg:t,theme:r}))}function Xi(e,r,a){const o=t.useCallback((t=>{const o=()=>{a(!0)},n=t=>{const r=Array.from(e.current.querySelectorAll('[role^="menuitem"]:not([hidden]):not([disabled]):not([aria-disabled="true"])')),a=document.activeElement,o=r.indexOf(a),n=t?r[o+1]:r[o-1],i=t?r[0]:r[r.length-1];return n||i};if(!(t instanceof KeyboardEvent))return;const i=t.target instanceof Element&&"SUMMARY"===t.target.tagName;switch(t.key){case"Escape":r&&((()=>{a(!1);const t=e.current.querySelector("summary");t&&t.focus()})(),t.preventDefault(),t.stopPropagation());break;case"ArrowDown":{i&&!r&&o();const e=n(!0);e&&e.focus(),t.preventDefault()}break;case"ArrowUp":{i&&!r&&o();const e=n(!1);e&&e.focus(),t.preventDefault()}break;case" ":case"Enter":{const r=document.activeElement;r&&(e=>{const t=e.getAttribute("role");return"menuitem"===t||"menuitemcheckbox"===t||"menuitemradio"===t})(r)&&r.closest("details")===e&&(t.preventDefault(),t.stopPropagation(),r.click())}}}),[e,r,a]);t.useEffect((()=>{const t=e.current;if(t)return t.addEventListener("keydown",o),()=>{t.removeEventListener("keydown",o)}}),[e,o])}qi.displayName="ProgressBar",qi.defaultProps={bg:"success.emphasis",barSize:"default"};const Yi=t.createContext({}),Ji=r.css(["padding:"," ",";margin:0;font-size:",";font-weight:",";color:",";background-color:",";border-bottom:"," solid ",";"],xt("space.1"),xt("space.3"),xt("fontSizes.0"),xt("fontWeights.bold"),xt("colors.fg.muted"),xt("colors.canvas.subtle"),xt("borderWidths.1"),xt("colors.border.muted")),Zi=i.default.div`
|
1511
|
+
${Ji}
|
1512
1512
|
${yt}
|
1513
1513
|
${Kt};
|
1514
|
-
`;
|
1514
|
+
`;Zi.displayName="SelectMenu.Divider";var Qi=Zi;const el=i.default.form`
|
1515
1515
|
padding: ${xt("space.3")};
|
1516
1516
|
margin: 0;
|
1517
1517
|
border-bottom: ${xt("borderWidths.1")} solid ${xt("colors.border.muted")};
|
@@ -1523,11 +1523,11 @@
|
|
1523
1523
|
}
|
1524
1524
|
|
1525
1525
|
${Kt};
|
1526
|
-
`,
|
1527
|
-
${
|
1526
|
+
`,tl=t.forwardRef((({theme:e,value:r,sx:a,...o},i)=>{const l=t.useRef(null),d=null!=i?i:l,{open:s}=t.useContext(Yi);return t.useEffect((()=>{var e;s&&(null===(e=l.current)||void 0===e||e.focus())}),[s]),n.default.createElement(el,{theme:e,sx:a},n.default.createElement(rn,St({theme:e,ref:d,width:"100%",block:!0,value:r,contrast:!0},o)))}));tl.displayName="SelectMenu.Filter";var rl=tl;const al=r.css(["margin-top:-1px;padding:"," ",";font-size:",";color:",";text-align:center;border-top:"," solid ",";@media (min-width:","){padding:"," ",";}"],xt("space.2"),xt("space.3"),xt("fontSizes.0"),xt("colors.fg.muted"),xt("borderWidths.1"),xt("colors.border.muted"),xt("breakpoints.0"),xt("space.1"),xt("space.2")),ol=i.default.footer`
|
1527
|
+
${al}
|
1528
1528
|
${yt}
|
1529
1529
|
${Kt};
|
1530
|
-
`;
|
1530
|
+
`;ol.displayName="SelectMenu.Footer";var nl=ol;const il=i.default.h3`
|
1531
1531
|
color: ${xt("colors.fg.default")};
|
1532
1532
|
flex: auto;
|
1533
1533
|
font-size: ${xt("fontSizes.1")};
|
@@ -1537,7 +1537,7 @@
|
|
1537
1537
|
@media (min-width: ${xt("breakpoints.0")}) {
|
1538
1538
|
font-size: inherit;
|
1539
1539
|
}
|
1540
|
-
`,
|
1540
|
+
`,ll=i.default.header`
|
1541
1541
|
display: flex;
|
1542
1542
|
flex: none; // fixes header from getting squeezed in Safari iOS
|
1543
1543
|
padding: ${xt("space.3")};
|
@@ -1551,15 +1551,15 @@
|
|
1551
1551
|
}
|
1552
1552
|
|
1553
1553
|
${Kt};
|
1554
|
-
`,
|
1555
|
-
${
|
1554
|
+
`,dl=({children:e,theme:t,...r})=>n.default.createElement(ll,St({theme:t},r),n.default.createElement(il,{theme:t},e));dl.displayName="SelectMenuHeader",dl.displayName="SelectMenu.Header";var sl=dl;const cl=r.css(["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:",";}"],xt("space.3"),xt("colors.canvas.overlay"),xt("borderWidths.1"),xt("colors.border.muted"),xt("colors.fg.muted"),xt("fontSizes.0"),xt("breakpoints.0"),xt("space.2"),xt("space.2"),xt("space.3"),xt("space.2"),xt("colors.fg.default"),xt("colors.neutral.subtle"),xt("colors.canvas.subtle"),xt("colors.selectMenu.tapHighlight")),fl=i.default.a.attrs((()=>({role:"menuitemcheckbox"})))`
|
1555
|
+
${cl}
|
1556
1556
|
${yt}
|
1557
1557
|
${Kt};
|
1558
|
-
`,
|
1559
|
-
${
|
1558
|
+
`,ul=t.forwardRef((({children:e,selected:r,theme:a,onClick:o,...i},l)=>{const d=t.useContext(Yi),s=t.useRef(null),c=null!=l?l:s;return n.default.createElement(fl,St({ref:c},i,{theme:a,onClick:e=>{var t;(o&&o(e),e.defaultPrevented)||(null===(t=d.setOpen)||void 0===t||t.call(d,!1))},"aria-checked":r}),n.default.createElement(Ra,{theme:a,className:"SelectMenu-icon SelectMenu-selected-icon",icon:ea}),e)}));ul.defaultProps={selected:!1},ul.displayName="SelectMenu.Item";var gl=ul;const pl=r.css(["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:",";}}"],xt("colors.canvas.overlay"),xt("colors.selectMenu.tapFocusBg"),xt("colors.fg.default"),xt("colors.canvas.subtle"),xt("colors.fg.default"),xt("colors.canvas.subtle")),bl=i.default.div`
|
1559
|
+
${pl}
|
1560
1560
|
${yt}
|
1561
1561
|
${Kt};
|
1562
|
-
`;
|
1562
|
+
`;bl.displayName="SelectMenu.List";var ml=bl;const hl={small:"16px",medium:"32px",large:"64px"};function vl({size:e="medium",...t}){const r=hl[e];return n.default.createElement("svg",St({height:r,width:r,viewBox:"0 0 16 16",fill:"none"},t),n.default.createElement("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor",strokeOpacity:"0.25",strokeWidth:"2",vectorEffect:"non-scaling-stroke"}),n.default.createElement("path",{d:"M15 8a7.002 7.002 0 00-7-7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",vectorEffect:"non-scaling-stroke"}))}vl.displayName="Spinner";const xl=i.default(vl)`
|
1563
1563
|
@keyframes rotate-keyframes {
|
1564
1564
|
100% {
|
1565
1565
|
transform: rotate(360deg);
|
@@ -1570,42 +1570,42 @@
|
|
1570
1570
|
|
1571
1571
|
${yt}
|
1572
1572
|
${Kt}
|
1573
|
-
`;
|
1573
|
+
`;xl.displayName="Spinner";var yl=xl;const wl=i.default.div`
|
1574
1574
|
padding: ${xt("space.6")} ${xt("space.4")};
|
1575
1575
|
text-align: center;
|
1576
1576
|
background-color: ${xt("colors.canvas.overlay")};
|
1577
1577
|
${yt}
|
1578
|
-
`,
|
1579
|
-
${$l}
|
1580
|
-
${ie}
|
1581
|
-
`,El=i.default.div`
|
1578
|
+
`,Bl=e=>n.default.createElement(wl,e,n.default.createElement(yl,null));Bl.displayName="SelectMenuLoadingAnimation";var kl=Bl;const $l=r.keyframes(["0%{opacity:0;transform:scale(0.9);}"]),Tl=r.css(["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":""),xt("colors.canvas.overlay"),xt("radii.2"),xt("shadows.shadow.small"),$l,xt("breakpoints.0"),xt("space.1"),xt("space.3"),xt("fontSizes.0"),xt("borderWidths.1"),xt("colors.border.default"),xt("radii.2"),xt("shadows.shadow.small")),Sl=r.css(["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;}"],xt("space.3"),xt("colors.primer.canvas.backdrop"),xt("breakpoints.0"),xt("breakpoints.0"),(e=>"right"===e.align?"0":"auto")),El=i.default.div`
|
1582
1579
|
${Tl}
|
1580
|
+
${ie}
|
1581
|
+
`,Cl=i.default.div`
|
1582
|
+
${Sl}
|
1583
1583
|
${yt}
|
1584
1584
|
${Kt};
|
1585
|
-
`,
|
1586
|
-
${
|
1585
|
+
`,zl=n.default.forwardRef((({children:e,theme:t,width:r,...a},o)=>n.default.createElement(Cl,St({theme:t},a,{role:"menu",ref:o}),n.default.createElement(El,{theme:t,width:r},e))));zl.defaultProps={align:"left",width:"300px"},zl.displayName="SelectMenu.Modal";var Rl=zl;const Il=r.css(["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:",";}"],xt("space.2"),xt("space.3"),xt("fontSizes.0"),xt("colors.fg.muted"),xt("colors.border.muted"),xt("breakpoints.0"),xt("space.1"),xt("space.3"),xt("borderWidths.1"),xt("radii.2"),xt("radii.2"),xt("colors.text-primary"),xt("colors.canvas.overlay"),xt("colors.border.muted"),xt("breakpoints.0"),xt("colors.border.muted"),xt("colors.neutral.subtle")),Nl=i.default.button`
|
1586
|
+
${Il}
|
1587
1587
|
${yt}
|
1588
1588
|
${Kt};
|
1589
|
-
`,
|
1589
|
+
`,Al=({tabName:e="",index:r,className:a,onClick:o,...i})=>{const l=t.useContext(Yi);t.useEffect((()=>{var t;l.selectedTab||0!==r||(null===(t=l.setSelectedTab)||void 0===t||t.call(l,e))}),[r,l,e]);const d=l.selectedTab===e;return n.default.createElement(Nl,St({role:"tab",className:Jo("SelectMenuTab",a),"aria-selected":d,onClick:t=>{var r;(o&&o(t),t.defaultPrevented)||(null===(r=l.setSelectedTab)||void 0===r||r.call(l,e))}},i),e)};Al.displayName="SelectMenuTab",Al.displayName="SelectMenu.Tab";var Ll=Al;const Ol=i.default.div`
|
1590
1590
|
border-top: ${xt("borderWidths.1")} solid ${xt("colors.border.muted")};
|
1591
1591
|
${yt}
|
1592
1592
|
${Kt};
|
1593
|
-
`,
|
1594
|
-
${
|
1593
|
+
`,Ml=({tabName:e,className:r,children:a,...o})=>{const i=t.useContext(Yi);return n.default.createElement(Ol,St({role:"tabpanel",className:r,hidden:i.selectedTab!==e},o),n.default.createElement(ml,null,a))};Ml.displayName="TabPanel",Ml.displayName="SelectMenu.TabPanel";var Pl=Ml;const Dl=r.css(["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:",";}"],xt("breakpoints.0"),xt("space.2"),xt("space.3")),Hl=i.default.div`
|
1594
|
+
${Dl}
|
1595
1595
|
${yt}
|
1596
1596
|
${Kt};
|
1597
|
-
`,
|
1597
|
+
`,Fl=({children:e,...t})=>n.default.createElement(Hl,St({role:"tablist"},t),e);Fl.displayName="SelectMenuTabs",Fl.displayName="SelectMenu.Tabs";var Wl=Fl;const _l=i.default.details`
|
1598
1598
|
${"\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"}
|
1599
1599
|
${yt}
|
1600
1600
|
${Kt};
|
1601
|
-
`,
|
1601
|
+
`,jl=n.default.forwardRef((({children:e,initialTab:r="",as:a,...o},i)=>{const l=t.useRef(null),d=null!=i?i:l,[s,c]=t.useState(r),[f,u]=t.useState(!1),g={selectedTab:s,setSelectedTab:c,setOpen:u,open:f,initialTab:r},p=t.useCallback((e=>{"current"in d&&d.current&&!d.current.contains(e.target)&&(e.defaultPrevented||u(!1))}),[d,u]);return t.useEffect((()=>{if(f)return document.addEventListener("click",p),()=>{document.removeEventListener("click",p)}}),[f,p]),Xi(d,f,u),n.default.createElement(Yi.Provider,{value:g},n.default.createElement(_l,St({ref:d},o,{open:f,onToggle:function(e){u(e.target.open)}}),e))}));jl.displayName="SelectMenu";var Ul=Object.assign(jl,{MenuContext:Yi,List:ml,Divider:Qi,Filter:rl,Footer:nl,Item:gl,Modal:Rl,Tabs:Wl,Tab:Ll,TabPanel:Pl,Header:sl,LoadingAnimation:kl});function Gl({variant:e,className:t,bordered:r,children:a,...o}){const i=Jo(t,`variant-${"lightweight"===e?"lightweight":"normal"}`);return r||(o={...o,borderWidth:0}),n.default.createElement(qt,St({borderWidth:"1px",borderStyle:"solid",borderColor:"border.default",borderRadius:2,as:"nav",className:i},o),a)}Gl.displayName="SideNavBase";const Vl=i.default(Gl)`
|
1602
1602
|
background-color: ${xt("colors.canvas.subtle")};
|
1603
1603
|
|
1604
1604
|
${e=>e.bordered&&r.css(["& > &{border-left:0;border-right:0;border-bottom:0;}"])}
|
1605
1605
|
|
1606
1606
|
${yt};
|
1607
1607
|
${Kt};
|
1608
|
-
`,
|
1608
|
+
`,Kl=r.css(["background-color:",";outline:none;text-decoration:none;"],xt("colors.neutral.subtle")),ql=r.css(["color:",";text-decoration:none;outline:none;"],xt("colors.fg.default")),Xl=i.default(Ai).attrs((e=>"string"==typeof e.to||e.selected?{"aria-current":"page"}:{}))`
|
1609
1609
|
position: relative;
|
1610
1610
|
display: block;
|
1611
1611
|
${e=>"full"===e.variant&&r.css(["display:flex;align-items:center;justify-content:space-between;"])}
|
@@ -1613,11 +1613,11 @@
|
|
1613
1613
|
text-align: left;
|
1614
1614
|
font-size: ${xt("fontSizes.1")};
|
1615
1615
|
|
1616
|
-
& > ${
|
1616
|
+
& > ${Vl} {
|
1617
1617
|
border-bottom: none;
|
1618
1618
|
}
|
1619
1619
|
|
1620
|
-
${
|
1620
|
+
${Vl}.variant-normal > & {
|
1621
1621
|
color: ${xt("colors.fg.default")};
|
1622
1622
|
padding: ${xt("space.3")};
|
1623
1623
|
border: 0;
|
@@ -1647,11 +1647,11 @@
|
|
1647
1647
|
}
|
1648
1648
|
|
1649
1649
|
&:hover {
|
1650
|
-
${
|
1650
|
+
${Kl}
|
1651
1651
|
}
|
1652
1652
|
|
1653
1653
|
&:focus {
|
1654
|
-
${
|
1654
|
+
${Kl}
|
1655
1655
|
box-shadow: ${xt("shadows.primer.shadow.focus")};
|
1656
1656
|
z-index: 1;
|
1657
1657
|
}
|
@@ -1667,16 +1667,16 @@
|
|
1667
1667
|
}
|
1668
1668
|
}
|
1669
1669
|
|
1670
|
-
${
|
1670
|
+
${Vl}.variant-lightweight > & {
|
1671
1671
|
padding: ${xt("space.1")} 0;
|
1672
1672
|
color: ${xt("colors.accent.fg")};
|
1673
1673
|
|
1674
1674
|
&:hover {
|
1675
|
-
${
|
1675
|
+
${ql}
|
1676
1676
|
}
|
1677
1677
|
|
1678
1678
|
&:focus {
|
1679
|
-
${
|
1679
|
+
${ql}
|
1680
1680
|
box-shadow: ${xt("shadows.primer.shadow.focus")};
|
1681
1681
|
z-index: 1;
|
1682
1682
|
}
|
@@ -1689,7 +1689,7 @@
|
|
1689
1689
|
}
|
1690
1690
|
|
1691
1691
|
${Kt};
|
1692
|
-
`;
|
1692
|
+
`;Vl.defaultProps={variant:"normal"},Xl.defaultProps={variant:"normal"},Xl.displayName="SideNav.Link";var Yl=Object.assign(Vl,{Link:Xl});const Jl={issueOpened:na,pullOpened:ra,issueClosed:aa,pullClosed:ra,pullMerged:ta,draft:ra,issueDraft:oa},Zl=re({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"},issueDraft:{backgroundColor:"neutral.emphasis",color:"fg.onEmphasis"}}}),Ql=re({prop:"variant",variants:{small:{paddingX:2,paddingY:1,fontSize:0},normal:{paddingX:"12px",paddingY:2,fontSize:1}}}),ed=i.default.span`
|
1693
1693
|
display: inline-flex;
|
1694
1694
|
align-items: center;
|
1695
1695
|
font-weight: ${xt("fontWeights.bold")};
|
@@ -1697,11 +1697,11 @@
|
|
1697
1697
|
color: ${xt("colors.canvas.default")};
|
1698
1698
|
text-align: center;
|
1699
1699
|
border-radius: ${xt("radii.3")};
|
1700
|
-
${Jl};
|
1701
1700
|
${Zl};
|
1701
|
+
${Ql};
|
1702
1702
|
${yt};
|
1703
1703
|
${Kt};
|
1704
|
-
`;function
|
1704
|
+
`;function td({children:e,status:t,variant:r,...a}){const o="small"===r?{width:"1em"}:{};return n.default.createElement(ed,St({},a,{variant:r,status:t}),t&&n.default.createElement(Ra,St({mr:1},o,{icon:Jl[t]||la})),e)}td.displayName="StateLabel",td.defaultProps={variant:"normal"};const rd=i.default.nav`
|
1705
1705
|
display: flex;
|
1706
1706
|
justify-content: space-between;
|
1707
1707
|
|
@@ -1725,7 +1725,7 @@
|
|
1725
1725
|
${yt};
|
1726
1726
|
${Tt};
|
1727
1727
|
${Kt};
|
1728
|
-
`;function
|
1728
|
+
`;function ad({actions:e,className:t,children:r,label:a,...o}){const i=Jo(t,"SubNav");return n.default.createElement(rd,St({className:i,"aria-label":a},o),n.default.createElement("div",{className:"SubNav-body"},r),e&&n.default.createElement("div",{className:"SubNav-actions"},e))}function od(e){return n.default.createElement(qt,St({display:"flex"},e))}ad.displayName="SubNav",od.displayName="SubNavLinks";const nd=i.default.a.attrs((e=>({activeClassName:"string"==typeof e.to?"selected":"",className:Jo("SubNav-item",e.selected&&"selected",e.className)})))`
|
1729
1729
|
padding-left: ${xt("space.3")};
|
1730
1730
|
padding-right: ${xt("space.3")};
|
1731
1731
|
font-weight: ${xt("fontWeights.semibold")};
|
@@ -1774,16 +1774,16 @@
|
|
1774
1774
|
|
1775
1775
|
${yt};
|
1776
1776
|
${Kt};
|
1777
|
-
`;
|
1777
|
+
`;nd.displayName="SubNav.Link",od.displayName="SubNav.Links";var id=Object.assign(ad,{Link:nd,Links:od});const ld=i.default.div`
|
1778
1778
|
margin-top: 0;
|
1779
1779
|
border-bottom: 1px solid ${xt("colors.border.default")};
|
1780
1780
|
${yt}
|
1781
1781
|
${Kt}
|
1782
|
-
`,
|
1782
|
+
`,dd=i.default.nav`
|
1783
1783
|
display: flex;
|
1784
1784
|
margin-bottom: -1px;
|
1785
1785
|
overflow: auto;
|
1786
|
-
`;function
|
1786
|
+
`;function sd({children:e,"aria-label":t,...r}){return n.default.createElement(ld,r,n.default.createElement(dd,{"aria-label":t},e))}sd.displayName="TabNav";const cd=i.default.a.attrs((e=>({activeClassName:"string"==typeof e.to?"selected":"",className:Jo("TabNav-item",e.selected&&"selected",e.className)})))`
|
1787
1787
|
padding: 8px 12px;
|
1788
1788
|
font-size: ${xt("fontSizes.1")};
|
1789
1789
|
line-height: 20px;
|
@@ -1809,18 +1809,18 @@
|
|
1809
1809
|
|
1810
1810
|
${yt};
|
1811
1811
|
${Kt};
|
1812
|
-
`;
|
1812
|
+
`;cd.displayName="TabNav.Link";var fd=Object.assign(sd,{Link:cd}),ud=$(U,C,E,T,z,A,O,P,I,G,ae,oe,ne),gd=new RegExp("^("+ud.propNames.join("|")+")$");const pd={small:"16px",medium:"20px",large:"24px",extralarge:"32px"},bd="medium",md=({as:e="span",onClick:t,onFocus:r,tabIndex:a=-1})=>Boolean(r||t||a>-1||["a","button"].includes(e)),hd=re({prop:"size",variants:{small:{fontSize:0,height:pd.small,lineHeight:pd.small,paddingLeft:1,paddingRight:1,paddingTop:0,paddingBottom:0},medium:{fontSize:0,height:pd.medium,lineHeight:pd.medium,paddingLeft:2,paddingRight:2,paddingTop:0,paddingBottom:0},large:{fontSize:0,height:pd.large,lineHeight:pd.large,paddingLeft:2,paddingRight:2,paddingTop:0,paddingBottom:0},extralarge:{fontSize:1,height:pd.extralarge,lineHeight:pd.extralarge,paddingLeft:3,paddingRight:3,paddingTop:0,paddingBottom:0}}}),vd=i.default.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})))`
|
1813
1813
|
align-items: center;
|
1814
1814
|
border-radius: 999px;
|
1815
|
-
cursor: ${e=>
|
1815
|
+
cursor: ${e=>md(e)?"pointer":"auto"};
|
1816
1816
|
display: inline-flex;
|
1817
1817
|
font-weight: ${xt("fontWeights.bold")};
|
1818
1818
|
font-family: inherit;
|
1819
1819
|
text-decoration: none;
|
1820
1820
|
white-space: nowrap;
|
1821
|
-
${
|
1821
|
+
${hd}
|
1822
1822
|
${Kt}
|
1823
|
-
`;
|
1823
|
+
`;vd.defaultProps={as:"span",size:bd};var xd=vd;const yd=re({prop:"size",variants:{small:{height:pd.small,width:pd.small},medium:{height:pd.medium,width:pd.medium},large:{height:pd.large,width:pd.large},extralarge:{height:pd.extralarge,width:pd.extralarge}}}),wd=e=>.75*parseInt(pd[e||bd],10),Bd=i.default.span`
|
1824
1824
|
background-color: transparent;
|
1825
1825
|
font-family: inherit;
|
1826
1826
|
color: currentColor;
|
@@ -1850,9 +1850,9 @@
|
|
1850
1850
|
background-color: ${xt("colors.neutral.subtle")};
|
1851
1851
|
}
|
1852
1852
|
|
1853
|
-
${
|
1853
|
+
${yd}
|
1854
1854
|
${Kt}
|
1855
|
-
`,
|
1855
|
+
`,kd=({"aria-label":e,isParentInteractive:t,size:r,...a})=>(delete a.children,n.default.createElement(Bd,St({as:t?"span":"button",tabIndex:t?-1:void 0,"aria-label":t?e:"Remove token",size:r},a),n.default.createElement(sa,{size:wd(r)})));kd.displayName="RemoveTokenButton",kd.defaultProps={size:bd};var $d=kd;var Td=i.default("span")`
|
1856
1856
|
flex-grow: 1;
|
1857
1857
|
min-width: 0;
|
1858
1858
|
overflow: hidden;
|
@@ -1893,7 +1893,7 @@
|
|
1893
1893
|
bottom: 0;
|
1894
1894
|
}
|
1895
1895
|
}
|
1896
|
-
`;const
|
1896
|
+
`;const Sd=i.default(xd)`
|
1897
1897
|
background-color: ${xt("colors.neutral.subtle")};
|
1898
1898
|
border-color: ${e=>e.isSelected?xt("colors.fg.default"):xt("colors.border.subtle")};
|
1899
1899
|
border-style: solid;
|
@@ -1905,18 +1905,18 @@
|
|
1905
1905
|
${Kt}
|
1906
1906
|
|
1907
1907
|
${e=>{if(e.isTokenInteractive)return r.css(["&:hover{background-color:",";box-shadow:",";color:",";}"],xt("colors.neutral.muted"),xt("colors.shadow.medium"),xt("colors.fg.default"))}}
|
1908
|
-
`,
|
1908
|
+
`,Ed=i.default("span")`
|
1909
1909
|
flex-shrink: 0;
|
1910
1910
|
line-height: 0;
|
1911
1911
|
|
1912
1912
|
${e=>{switch(e.size){case"large":case"extralarge":return r.css(["margin-right:",";"],xt("space.2"));default:return r.css(["margin-right:",";"],xt("space.1"))}}}
|
1913
|
-
`,
|
1913
|
+
`,Cd=t.forwardRef(((e,t)=>{const{as:r,onRemove:a,id:o,leadingVisual:i,text:l,size:d,hideRemoveButton:s,href:c,onClick:f,...u}=e,g=md(e)&&Boolean(a)&&!s,p={as:r,href:c,onClick:f};return n.default.createElement(Sd,St({onRemove:a,hideRemoveButton:s||!a,id:null==o?void 0:o.toString(),text:l,size:d,isTokenInteractive:md(e)},g?{}:p,u,{ref:t}),i?n.default.createElement(Ed,{size:d},n.default.createElement(i,null)):null,n.default.createElement(Td,g?p:{},l),!s&&a?n.default.createElement($d,{borderOffset:1,onClick:e=>{e.stopPropagation(),a&&a()},size:d,isParentInteractive:md(e),"aria-hidden":g?"true":"false",sx:g?{position:"relative",zIndex:"1"}:{}}):null)}));Cd.displayName="Token",Cd.defaultProps={size:bd};var zd=Cd;const Rd={small:0,medium:1,large:1,extralarge:2};function Id({icon:e,contrast:r,className:a,block:o,disabled:i,theme:l,sx:d,tokens:s,onTokenRemove:c,tokenComponent:f,preventTokenWrapping:u,size:g,hideTokenRemoveButtons:p,maxHeight:b,width:m,minWidth:h,maxWidth:v,variant:x,visibleTokenCount:y,...w},B){const{onBlur:k,onFocus:$,onKeyDown:T,...S}=function(e){var t={};for(var r in e)gd.test(r)||(t[r]=e[r]);return t}(w),E=yr(B),C=Pa(t.useRef(null),E),[z,R]=t.useState(),[I,N]=t.useState(Boolean(y)),{containerRef:A}=Ia({focusOutBehavior:"wrap",bindKeys:Er.ArrowHorizontal|Er.HomeAndEnd,focusableElementFilter:e=>!e.getAttributeNames().includes("aria-hidden"),getNextFocusable:e=>{var t;if(!z&&0!==z)return;let r=z+1;return"next"===e&&(r+=1),"previous"===e&&(r-=1),r>s.length||r<1?C.current||void 0:null===(t=A.current)||void 0===t?void 0:t.children[r]}},[z]),L=e=>{c(e),setTimeout((()=>{var e,t;const r=null===(e=A.current)||void 0===e?void 0:e.children[z||0],a=r&&pr(r)?r:Array.from((null===(t=A.current)||void 0===t?void 0:t.children)||[]).find((e=>pr(e)));var o;a?a.focus():null===(o=E.current)||void 0===o||o.focus()}),0)},O=()=>{R(void 0),setTimeout((()=>{var e;null!==(e=A.current)&&void 0!==e&&e.contains(document.activeElement)||!y||N(!0)}),0)},M=e=>{var t;"Escape"===e.key&&(null===(t=E.current)||void 0===t||t.focus())},P=e=>{e.stopPropagation()},D=I?s.slice(0,y):s;return n.default.createElement(en,{block:o,className:a,contrast:r,disabled:i,hasIcon:!!e,theme:l,width:m,minWidth:h,maxWidth:v,variant:x,onClick:()=>{var e;null===(e=C.current)||void 0===e||e.focus()},sx:{...o?{display:"flex",width:"100%"}:{},...b?{maxHeight:b,overflow:"auto"}:{},...u?{overflow:"auto"}:{},...d}},n.default.createElement(qt,{ref:A,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"}}},n.default.createElement(qt,{sx:{order:1,flexGrow:1}},e&&n.default.createElement(e,{className:"TextInput-icon"}),n.default.createElement(Zo,St({ref:C,disabled:i,onFocus:e=>{$&&$(e),R(void 0),y&&N(!1)},onBlur:e=>{k&&k(e),setTimeout((()=>{var e;null!==(e=A.current)&&void 0!==e&&e.contains(document.activeElement)||!y||N(!0)}),0)},onKeyDown:e=>{var t;if(T&&T(e),null!==(t=E.current)&&void 0!==t&&t.value)return;const r=s[s.length-1];"Backspace"===e.key&&r&&(L(r.id),E.current&&(E.current.value=`${r.text} `),setTimeout((()=>{var e;null===(e=E.current)||void 0===e||e.select()}),0))},type:"text",sx:{height:"100%"}},S))),f?D.map((({id:e,...t},r)=>{return n.default.createElement(f,St({key:e,onFocus:(a=r,()=>{R(a)}),onBlur:O,onKeyUp:M,onClick:P,isSelected:z===r,onRemove:()=>{L(e)},hideRemoveButton:p,size:g,tabIndex:0},t));var a})):null,I?n.default.createElement(Gn,{color:"fg.muted",fontSize:g&&Rd[g]},"+",s.length-D.length):null))}Id.displayName="TextInputWithTokensInnerComponent";const Nd=n.default.forwardRef(Id);Nd.defaultProps={tokenComponent:zd,size:"extralarge",hideTokenRemoveButtons:!1,preventTokenWrapping:!1},Nd.displayName="TextInputWithTokens";var Ad=Nd;const Ld=i.default(qt)`
|
1914
1914
|
display: flex;
|
1915
1915
|
flex-direction: column;
|
1916
1916
|
${e=>e.clipSidebar&&r.css([".Timeline-Item:first-child{padding-top:0;}.Timeline-Item:last-child{padding-bottom:0;}"])}
|
1917
1917
|
|
1918
1918
|
${Kt};
|
1919
|
-
`,
|
1919
|
+
`,Od=i.default(qt).attrs((e=>({className:Jo("Timeline-Item",e.className)})))`
|
1920
1920
|
display: flex;
|
1921
1921
|
position: relative;
|
1922
1922
|
padding: ${xt("space.3")} 0;
|
@@ -1937,7 +1937,7 @@
|
|
1937
1937
|
|
1938
1938
|
${yt};
|
1939
1939
|
${Kt};
|
1940
|
-
`,
|
1940
|
+
`,Md=e=>n.default.createElement(qt,{position:"relative",zIndex:1},n.default.createElement(qt,St({display:"flex",className:Jo(e.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"},e),e.children));Md.displayName="TimelineBadge";const Pd=i.default(qt)`
|
1941
1941
|
min-width: 0;
|
1942
1942
|
max-width: 100%;
|
1943
1943
|
margin-top: ${xt("space.1")};
|
@@ -1945,7 +1945,7 @@
|
|
1945
1945
|
flex: auto;
|
1946
1946
|
font-size: ${xt("fontSizes.1")};
|
1947
1947
|
${Kt};
|
1948
|
-
`,
|
1948
|
+
`,Dd=i.default(qt)`
|
1949
1949
|
position: relative
|
1950
1950
|
z-index: 1;
|
1951
1951
|
height: 24px;
|
@@ -1956,15 +1956,15 @@
|
|
1956
1956
|
border: 0;
|
1957
1957
|
border-top: ${xt("space.1")} solid ${xt("colors.border.default")};
|
1958
1958
|
${Kt};
|
1959
|
-
`;
|
1959
|
+
`;Od.displayName="Timeline.Item",Md.displayName="Timeline.Badge",Pd.displayName="Timeline.Body",Dd.displayName="Timeline.Break";var Hd=Object.assign(Ld,{Item:Od,Badge:Md,Body:Pd,Break:Dd});function Fd(e,t,r){return Math.min(Math.max(e,r),t)}class Wd extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}function _d(e){if("string"!=typeof e)throw new Wd(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=Yd.test(e)?function(e){const t=e.toLowerCase().trim(),r=Ud[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 Wd(e);return`#${r}`}(e):e;const r=Vd.exec(t);if(r){const e=Array.from(r).slice(1);return[...e.slice(0,3).map((e=>parseInt(Gd(e,2),16))),parseInt(Gd(e[3]||"f",2),16)/255]}const a=Kd.exec(t);if(a){const e=Array.from(a).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,16))),parseInt(e[3]||"ff",16)/255]}const o=qd.exec(t);if(o){const e=Array.from(o).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,10))),parseFloat(e[3]||"1")]}const n=Xd.exec(t);if(n){const[t,r,a,o]=Array.from(n).slice(1).map(parseFloat);if(Fd(0,100,r)!==r)throw new Wd(e);if(Fd(0,100,a)!==a)throw new Wd(e);return[...Zd(t,r,a),o||1]}throw new Wd(e)}const jd=e=>parseInt(e.replace(/_/g,""),36),Ud="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)),a=jd(t.substring(3)).toString(16);let o="";for(let e=0;e<6-a.length;e++)o+="0";return e[r]=`${o}${a}`,e}),{}),Gd=(e,t)=>Array.from(Array(t)).map((()=>e)).join(""),Vd=new RegExp(`^#${Gd("([a-f0-9])",3)}([a-f0-9])?$`,"i"),Kd=new RegExp(`^#${Gd("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),qd=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Gd(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),Xd=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,Yd=/^[a-z]+$/i,Jd=e=>Math.round(255*e),Zd=(e,t,r)=>{let a=r/100;if(0===t)return[a,a,a].map(Jd);const o=(e%360+360)%360/60,n=(1-Math.abs(2*a-1))*(t/100),i=n*(1-Math.abs(o%2-1));let l=0,d=0,s=0;o>=0&&o<1?(l=n,d=i):o>=1&&o<2?(l=i,d=n):o>=2&&o<3?(d=n,s=i):o>=3&&o<4?(d=i,s=n):o>=4&&o<5?(l=i,s=n):o>=5&&o<6&&(l=n,s=i);const c=a-n/2;return[l+c,d+c,s+c].map(Jd)};const Qd={"--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))"},es={"--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))"},ts=t.forwardRef(((e,r)=>{const{as:a,fillColor:o="#999",onRemove:i,id:l,isSelected:d,text:s,size:c,hideRemoveButton:f,href:u,onClick:g,...p}=e,b={as:a,href:u,onClick:g},{colorScheme:m}=jt(),h=md(e)&&Boolean(i)&&!f,v=t.useMemo((()=>{const[e,t,r]=_d(o),[a,n,l]=function(e){const[t,r,a,o]=_d(e).map(((e,t)=>3===t?e:e/255)),n=Math.max(t,r,a),i=Math.min(t,r,a),l=(n+i)/2;if(n===i)return[0,0,l,o];const d=n-i;return[60*(t===n?(r-a)/d+(r<a?6:0):r===n?(a-t)/d+2:(t-r)/d+4),l>.5?d/(2-n-i):d/(n+i),l,o]}(o);return{"--label-r":String(e),"--label-g":String(t),"--label-b":String(r),"--label-h":String(Math.round(a)),"--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"===m?Qd:es,...d?{background:"light"===m?"hsl(var(--label-h), calc(var(--label-s) * 1%), calc((var(--label-l) - 5) * 1%))":es.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"===m?"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"}}:{}}}),[m,o,d,f,i]);return n.default.createElement(xd,St({onRemove:i,id:null==l?void 0:l.toString(),isSelected:d,text:s,size:c,sx:v},h?{}:b,p,{ref:r}),n.default.createElement(Td,h?b:{},s),!f&&i?n.default.createElement($d,{borderOffset:1,onClick:e=>{e.stopPropagation(),i&&i()},size:c,"aria-hidden":h?"true":"false",isParentInteractive:md(e),sx:h?{position:"relative",zIndex:"1"}:{}}):null)}));ts.defaultProps={fillColor:"#999",size:bd},ts.displayName="IssueLabelToken";var rs=ts;const as=i.default.span`
|
1960
1960
|
// 'space.1' is used because to match space from the left of the token to the left of the avatar
|
1961
1961
|
// '* 2' is done to account for the top and bottom
|
1962
1962
|
--spacing: calc(${xt("space.1")} * 2);
|
1963
1963
|
|
1964
1964
|
display: block;
|
1965
|
-
height: ${e=>`calc(${
|
1966
|
-
width: ${e=>`calc(${
|
1967
|
-
`,
|
1965
|
+
height: ${e=>`calc(${pd[e.avatarSize]} - var(--spacing))`};
|
1966
|
+
width: ${e=>`calc(${pd[e.avatarSize]} - var(--spacing))`};
|
1967
|
+
`,os=t.forwardRef((({avatarSrc:e,id:t,size:r,...a},o)=>n.default.createElement(zd,St({leadingVisual:()=>n.default.createElement(as,{avatarSize:r||bd},n.default.createElement(pn,{src:e,size:parseInt(pd[r||bd],10),sx:{width:"100%",height:"100%"}})),size:r,id:null==t?void 0:t.toString(),sx:{paddingLeft:xt("space.1")}},a,{ref:o}))));os.defaultProps={size:bd},os.displayName="AvatarToken";var ns=os;const is=i.default.span`
|
1968
1968
|
position: relative;
|
1969
1969
|
|
1970
1970
|
&::before {
|
@@ -2190,7 +2190,7 @@
|
|
2190
2190
|
}
|
2191
2191
|
${yt};
|
2192
2192
|
${Kt};
|
2193
|
-
`;function
|
2193
|
+
`;function ls({direction:e="n",children:t,className:r,text:a,noDelay:o,align:i,wrap:l,...d}){const s=Jo(r,`tooltipped-${e}`,i&&`tooltipped-align-${i}-2`,o&&"tooltipped-no-delay",l&&"tooltipped-multiline");return n.default.createElement(is,St({role:"tooltip","aria-label":a},d,{className:s}),t)}ls.displayName="Tooltip",ls.alignments=["left","right"],ls.directions=["n","ne","e","se","s","sw","w","nw"];const ds=i.default.nav`
|
2194
2194
|
display: flex;
|
2195
2195
|
justify-content: space-between;
|
2196
2196
|
border-bottom: 1px solid ${xt("colors.border.muted")};
|
@@ -2221,7 +2221,7 @@
|
|
2221
2221
|
|
2222
2222
|
${yt};
|
2223
2223
|
${Kt};
|
2224
|
-
`;function
|
2224
|
+
`;function ss({actions:e,className:t,align:r,children:a,full:o,label:i,theme:l,...d}){const s=Jo(t,"UnderlineNav",r&&`UnderlineNav--${r}`,o&&"UnderlineNav--full");return n.default.createElement(ds,St({className:s,"aria-label":i,theme:l},d),n.default.createElement("div",{className:"UnderlineNav-body"},a),e&&n.default.createElement("div",{className:"UnderlineNav-actions"},e))}ss.displayName="UnderlineNav";const cs=i.default.a.attrs((e=>({activeClassName:"string"==typeof e.to?"selected":"",className:Jo("UnderlineNav-item",e.selected&&"selected",e.className)})))`
|
2225
2225
|
padding: ${xt("space.3")} ${xt("space.2")};
|
2226
2226
|
margin-right: ${xt("space.3")};
|
2227
2227
|
font-size: ${xt("fontSizes.1")};
|
@@ -2254,5 +2254,5 @@
|
|
2254
2254
|
|
2255
2255
|
${yt};
|
2256
2256
|
${Kt};
|
2257
|
-
`;
|
2257
|
+
`;cs.displayName="UnderlineNav.Link";var fs=Object.assign(ss,{Link:cs});e.Absolute=ar,e.ActionList=Do,e.ActionMenu=qo,e.Autocomplete=un,e.Avatar=pn,e.AvatarPair=hn,e.AvatarStack=yn,e.AvatarToken=ns,e.BaseStyles=zt,e.BorderBox=Yt,e.Box=qt,e.BranchName=wn,e.Breadcrumb=En,e.Breadcrumbs=Sn,e.Button=jr,e.ButtonClose=fa,e.ButtonDanger=Ur,e.ButtonGroup=Vr,e.ButtonInvisible=Xr,e.ButtonOutline=Kr,e.ButtonPrimary=qr,e.ButtonTableList=Yr,e.Caret=Ln,e.CircleBadge=Dn,e.CircleOcticon=Hn,e.ConfirmationDialog=po,e.CounterLabel=Fn,e.Details=_n,e.Dialog=Zn,e.Dropdown=ii,e.DropdownButton=li,e.DropdownMenu=di,e.FilterList=pi,e.FilteredSearch=si,e.Fixed=or,e.Flash=hi,e.Flex=Zt,e.FormGroup=yi,e.Grid=er,e.Header=$i,e.Heading=Si,e.IssueLabelToken=rs,e.Label=Ii,e.LabelGroup=Ei,e.Link=Ai,e.Overlay=jo,e.Pagehead=Li,e.Pagination=Di,e.PointerBox=Wi,e.Popover=Ui,e.Position=rr,e.ProgressBar=qi,e.Relative=nr,e.SSRProvider=function(e){let r=t.useContext(Ha),a=t.useMemo((()=>({prefix:r===Da?"":r.prefix+"-"+ ++r.current,current:0})),[r]);return n.default.createElement(Ha.Provider,{value:a},e.children)},e.SelectMenu=Ul,e.SideNav=Yl,e.Spinner=yl,e.StateLabel=td,e.Sticky=ir,e.StyledOcticon=Ra,e.SubNav=id,e.TabNav=fd,e.Text=Gn,e.TextInput=rn,e.TextInputWithTokens=Ad,e.ThemeProvider=Vt,e.Timeline=Hd,e.Token=zd,e.Tooltip=ls,e.Truncate=yo,e.UnderlineNav=fs,e.theme=d,e.themeGet=xt,e.useColorSchemeVar=Ut,e.useConfirm=function(){const{theme:e,colorMode:r,dayScheme:a,nightScheme:o}=jt();return t.useCallback((t=>async function(e,t){const{content:r,...a}=t;return new Promise((t=>{const o=document.createElement("div");l.default.render(n.default.createElement(_t,e,n.default.createElement(po,St({},a,{onClose:e=>{l.default.unmountComponentAtNode(o),t("confirm"===e)}}),r)),o)}))}({theme:e,colorMode:r,dayScheme:a,nightScheme:o},t)),[e,r,a,o])},e.useDetails=lr,e.useOnEscapePress=xr,e.useOnOutsideClick=ur,e.useOpenAndCloseFocus=mr,e.useOverlay=wr,e.useSSRSafeId=Wa,e.useSafeTimeout=function(){const e=t.useRef(new Set),r=t.useCallback(((t,r,...a)=>{const o=window.setTimeout(t,r,...a);return e.current.add(o),o}),[]),a=t.useCallback((t=>{clearTimeout(t),e.current.delete(t)}),[]);return t.useEffect((()=>()=>{for(const t of e.current)clearTimeout(t)}),[]),{safeSetTimeout:r,safeClearTimeout:a}},e.useTheme=jt,Object.defineProperty(e,"__esModule",{value:!0})}));
|
2258
2258
|
//# sourceMappingURL=browser.umd.js.map
|