@primer/components 0.0.0-2021828184455 → 0.0.0-2021828205058
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -2
- package/dist/browser.esm.js +176 -185
- package/dist/browser.esm.js.map +1 -1
- package/dist/browser.umd.js +178 -187
- package/dist/browser.umd.js.map +1 -1
- package/lib/AvatarStack.d.ts +8 -4
- package/lib/AvatarStack.js +7 -6
- package/lib/Button/Button.d.ts +2 -3
- package/lib/Button/Button.js +2 -6
- package/lib/Button/ButtonBase.d.ts +5 -8
- package/lib/Button/ButtonBase.js +1 -5
- package/lib/Button/ButtonClose.d.ts +2 -45
- package/lib/Button/ButtonClose.js +1 -1
- package/lib/Button/ButtonDanger.d.ts +2 -3
- package/lib/Button/ButtonDanger.js +2 -6
- package/lib/Button/ButtonInvisible.d.ts +2 -3
- package/lib/Button/ButtonInvisible.js +2 -6
- package/lib/Button/ButtonOutline.d.ts +2 -3
- package/lib/Button/ButtonOutline.js +2 -6
- package/lib/Button/ButtonPrimary.d.ts +2 -3
- package/lib/Button/ButtonPrimary.js +2 -6
- package/lib/Button/ButtonTableList.d.ts +1 -2
- package/lib/Button/ButtonTableList.js +1 -1
- package/lib/Dropdown.d.ts +2 -90
- package/lib/DropdownMenu/DropdownButton.d.ts +2 -46
- package/lib-esm/AvatarStack.d.ts +8 -4
- package/lib-esm/AvatarStack.js +8 -7
- package/lib-esm/Button/Button.d.ts +2 -3
- package/lib-esm/Button/Button.js +2 -2
- package/lib-esm/Button/ButtonBase.d.ts +5 -8
- package/lib-esm/Button/ButtonBase.js +1 -3
- package/lib-esm/Button/ButtonClose.d.ts +2 -45
- package/lib-esm/Button/ButtonClose.js +2 -2
- package/lib-esm/Button/ButtonDanger.d.ts +2 -3
- package/lib-esm/Button/ButtonDanger.js +2 -2
- package/lib-esm/Button/ButtonInvisible.d.ts +2 -3
- package/lib-esm/Button/ButtonInvisible.js +2 -2
- package/lib-esm/Button/ButtonOutline.d.ts +2 -3
- package/lib-esm/Button/ButtonOutline.js +2 -2
- package/lib-esm/Button/ButtonPrimary.d.ts +2 -3
- package/lib-esm/Button/ButtonPrimary.js +2 -2
- package/lib-esm/Button/ButtonTableList.d.ts +1 -2
- package/lib-esm/Button/ButtonTableList.js +2 -2
- package/lib-esm/Dropdown.d.ts +2 -90
- package/lib-esm/DropdownMenu/DropdownButton.d.ts +2 -46
- package/package.json +1 -1
package/dist/browser.esm.js
CHANGED
@@ -19,10 +19,10 @@ import e,{useState as r,useRef as t,useCallback as o,useEffect as a,useMemo as n
|
|
19
19
|
`,Mr=s.div`
|
20
20
|
${Ar};
|
21
21
|
${Nr};
|
22
|
-
`;function Dr(r){const{children:t,...o}=r;return require("focus-visible"),e.createElement(Mr,Or({},o,{"data-portal-root":!0}),e.createElement(Pr,null),t)}Dr.displayName="BaseStyles",Dr.defaultProps={color:"text.primary",fontFamily:"normal",lineHeight:"default"};var Fr=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var r=Object.prototype.toString.call(e);return"[object RegExp]"===r||"[object Date]"===r||function(e){return e.$$typeof===Wr}(e)}(e)};var Wr="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function jr(e,r){return!1!==r.clone&&r.isMergeableObject(e)?Xr((t=e,Array.isArray(t)?[]:{}),e,r):e;var t}function Ur(e,r,t){return e.concat(r).map((function(e){return jr(e,t)}))}function Gr(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(r){return e.propertyIsEnumerable(r)})):[]}(e))}function _r(e,r){try{return r in e}catch(e){return!1}}function Kr(e,r,t){var o={};return t.isMergeableObject(e)&&Gr(e).forEach((function(r){o[r]=jr(e[r],t)})),Gr(r).forEach((function(a){(function(e,r){return _r(e,r)&&!(Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))})(e,a)||(_r(e,a)&&t.isMergeableObject(r[a])?o[a]=function(e,r){if(!r.customMerge)return Xr;var t=r.customMerge(e);return"function"==typeof t?t:Xr}(a,t)(e[a],r[a],t):o[a]=jr(r[a],t))})),o}function Xr(e,r,t){(t=t||{}).arrayMerge=t.arrayMerge||Ur,t.isMergeableObject=t.isMergeableObject||Fr,t.cloneUnlessOtherwiseSpecified=jr;var o=Array.isArray(r);return o===Array.isArray(e)?o?t.arrayMerge(e,r,t):Kr(e,r,t):jr(r,t)}Xr.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,t){return Xr(e,t,r)}),{})};var Vr=Xr;const Yr=e.createContext({setColorMode:()=>null,setDayScheme:()=>null,setNightScheme:()=>null}),qr=({children:r,...t})=>{var o,a,n,i,d,l,c,s;const{theme:f,colorMode:b,dayScheme:p,nightScheme:u}=Jr(),m=null!==(o=null!==(a=t.theme)&&void 0!==a?a:f)&&void 0!==o?o:x,[h,v]=e.useState(null!==(n=null!==(i=t.colorMode)&&void 0!==i?i:b)&&void 0!==n?n:"day"),[y,w]=e.useState(null!==(d=null!==(l=t.dayScheme)&&void 0!==l?l:p)&&void 0!==d?d:"light"),[B,$]=e.useState(null!==(c=null!==(s=t.nightScheme)&&void 0!==s?s:u)&&void 0!==c?c:"dark"),k=function(e,r){switch(e){case"auto":return r;default:return e}}(h,function(){const[r,t]=e.useState(Qr);return e.useEffect((()=>{var e,r;const o=null===(e=window)||void 0===e||null===(r=e.matchMedia)||void 0===r?void 0:r.call(e,"(prefers-color-scheme: dark)");function a(e){const r=e.matches;t(r?"night":"day")}if(o){if(void 0!==o.addEventListener)return o.addEventListener("change",a),function(){o.removeEventListener("change",a)};if(void 0!==o.addListener)return o.addListener(a),function(){o.removeListener(a)}}}),[]),r}()),S=function(e,r,t){switch(e){case"day":return r;case"night":return t}}(k,y,B),T=e.useMemo((()=>function(e,r){if(!e.colorSchemes)return e;if(!e.colorSchemes[r]){console.error(`\`${r}\` scheme not defined in \`theme.colorSchemes\``);const t=Object.keys(e.colorSchemes)[0];return Vr(e,e.colorSchemes[t])}return Vr(e,e.colorSchemes[r])}(m,S)),[m,S]);return e.useEffect((()=>{var e,r;v(null!==(e=null!==(r=t.colorMode)&&void 0!==r?r:b)&&void 0!==e?e:"day")}),[t.colorMode,b]),e.useEffect((()=>{var e,r;w(null!==(e=null!==(r=t.dayScheme)&&void 0!==r?r:p)&&void 0!==e?e:"light")}),[t.dayScheme,p]),e.useEffect((()=>{var e,r;$(null!==(e=null!==(r=t.nightScheme)&&void 0!==r?r:u)&&void 0!==e?e:"dark")}),[t.nightScheme,u]),e.createElement(Yr.Provider,{value:{theme:T,colorScheme:S,colorMode:h,resolvedColorMode:k,dayScheme:y,nightScheme:B,setColorMode:v,setDayScheme:w,setNightScheme:$}},e.createElement(g,{theme:T},r))};function Jr(){return e.useContext(Yr)}function Zr(e,r){var t;const{colorScheme:o=""}=Jr();return null!==(t=e[o])&&void 0!==t?t:r}function Qr(){var e,r,t;return"undefined"!=typeof window&&null!==(e=(r=window).matchMedia)&&void 0!==e&&null!==(t=e.call(r,"(prefers-color-scheme: dark)"))&&void 0!==t&&t.matches?"night":"day"}qr.displayName="ThemeProvider";var et=qr;var rt=e=>fe(e.sx);var tt=s.div(ee,P,M,H,D,W,_,U,X,re,rt);const ot=s(tt)``;ot.defaultProps={borderWidth:"1px",borderStyle:"solid",borderColor:"border.primary",borderRadius:2};var at=ot;const nt=s(tt)``;nt.defaultProps={display:"flex"};var it=nt;const dt=s(tt)``;dt.defaultProps={display:"grid"};var lt=dt;const ct=s(tt)``;var st=ct;const ft=e.forwardRef(((r,t)=>e.createElement(ct,Or({},r,{position:"absolute",ref:t}))));ft.displayName="Absolute";const gt=e.forwardRef(((r,t)=>e.createElement(ct,Or({},r,{position:"fixed",ref:t}))));gt.displayName="Fixed";const bt=e.forwardRef(((r,t)=>e.createElement(ct,Or({},r,{position:"relative",ref:t}))));bt.displayName="Relative";const pt=e.forwardRef(((r,t)=>e.createElement(ct,Or({},r,{position:"sticky",ref:t}))));function ut({ref:e,closeOnOutsideClick:n,defaultOpen:i,onClickOutside:d}){const[l,c]=r(i),s=t(null),f=null!=e?e:s,g=o((e=>{const{current:r}=f;e.target.closest("details")!==r&&(d&&d(e),e.defaultPrevented||c(!1))}),[f,c,d]);a((()=>{if(l&&n)return document.addEventListener("click",g),()=>{document.removeEventListener("click",g)}}),[l,n,g]);const b=e=>{if(!e.defaultPrevented){const r=e.target;c(r.open)}};return{open:l,setOpen:c,getDetailsProps:()=>({onToggle:b,open:l,ref:f})}}function mt(){const e=t(new Set),r=o(((r,t,...o)=>{const a=window.setTimeout(r,t,...o);return e.current.add(a),a}),[]),n=o((r=>{clearTimeout(r),e.current.delete(r)}),[]);return a((()=>()=>{for(const r of e.current)clearTimeout(r)}),[]),{safeSetTimeout:r,safeClearTimeout:n}}pt.defaultProps={top:0,zIndex:1},pt.displayName="Sticky";function ht(e){if(!e.defaultPrevented)for(const r of Object.values(xt).reverse())if(true===r(e)||e.defaultPrevented)break}const xt={};let vt=0;const yt=({containerRef:e,ignoreClickRefs:r,onClickOutside:t})=>{const i=n((()=>vt++),[]),d=o((o=>{var a;return o instanceof MouseEvent&&o.button>0||(!(null===(a=e.current)||void 0===a||!a.contains(o.target))||(!(!r||!r.some((({current:e})=>null==e?void 0:e.contains(o.target))))||void t(o)))}),[e,r,t]);a((()=>(0===Object.keys(xt).length&&document.addEventListener("mousedown",ht,{capture:!0}),function(e,r){xt[e]=r}(i,d),()=>{!function(e){delete xt[e]}(i),0===Object.keys(xt).length&&document.removeEventListener("mousedown",ht,{capture:!0})})),[i,d])};function*wt(e,r={}){var t,o;const a=null!==(t=r.strict)&&void 0!==t&&t,n=null!==(o=r.onlyTabbable)&&void 0!==o&&o?$t:Bt,i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e instanceof HTMLElement&&n(e,a)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});let d=null;if(!r.reverse&&n(e,a)&&(yield e),r.reverse){let e=i.lastChild();for(;e;)d=e,e=i.lastChild()}else d=i.firstChild();for(;d instanceof HTMLElement;)yield d,d=r.reverse?i.previousNode():i.nextNode();r.reverse&&n(e,a)&&(yield e)}function Bt(e,r=!1){const t=["BUTTON","INPUT","SELECT","TEXTAREA","OPTGROUP","OPTION","FIELDSET"].includes(e.tagName)&&e.disabled,o=e.hidden,a=e instanceof HTMLInputElement&&"hidden"===e.type;if(t||o||a)return!1;if(r){const r=0===e.offsetWidth||0===e.offsetHeight,t=["hidden","collapse"].includes(getComputedStyle(e).visibility),o=0===e.getClientRects().length;if(r||t||o)return!1}return null!=e.getAttribute("tabindex")||!(e instanceof HTMLAnchorElement&&null==e.getAttribute("href"))&&-1!==e.tabIndex}function $t(e,r=!1){return Bt(e,r)&&"-1"!==e.getAttribute("tabindex")}function kt({initialFocusRef:e,returnFocusRef:r,containerRef:t}){a((()=>{const o=r.current;if(e&&e.current)e.current.focus();else if(t.current){const e=wt(t.current).next().value;null==e||e.focus()}return function(){null==o||o.focus()}}),[e,r,t])}const St=[];function Tt(e){if("Escape"===e.key&&!e.defaultPrevented)for(let r=St.length-1;r>=0&&(St[r](e),!e.defaultPrevented);--r);}const Et=(e,r=[e])=>{const t=o(e,r);a((()=>(0===St.length&&document.addEventListener("keydown",Tt),St.push(t),()=>{St.splice(St.findIndex((e=>e===t)),1),0===St.length&&document.removeEventListener("keydown",Tt)})),[t])};function It(r){const t=e.useRef(null);return null!=r?r:t}const Ct=({overlayRef:e,returnFocusRef:r,initialFocusRef:t,onEscape:o,ignoreClickRefs:a,onClickOutside:n})=>{const i=It(e);return kt({containerRef:i,returnFocusRef:r,initialFocusRef:t}),yt({containerRef:i,ignoreClickRefs:a,onClickOutside:n}),Et(o),{ref:i}};let Nt,At=!1;function zt(){}try{const e=Object.create({},{signal:{get(){At=!0}}});window.addEventListener("test",zt,e),window.removeEventListener("test",zt,e)}catch(e){}function Lt(){At||(!function(){if("undefined"==typeof window)return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(r,t,o){return"object"==typeof o&&"signal"in o&&o.signal instanceof AbortSignal&&e.call(o.signal,"abort",(()=>{this.removeEventListener(r,t,o)})),e.call(this,r,t,o)}}(),At=!0)}function Rt(){return void 0===Nt&&(Nt=/^mac/i.test(window.navigator.platform)),Nt}let Ht,Ot=1e4;Lt(),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"}(Ht||(Ht={}));const Pt={ArrowLeft:Ht.ArrowHorizontal,ArrowDown:Ht.ArrowVertical,ArrowUp:Ht.ArrowVertical,ArrowRight:Ht.ArrowHorizontal,h:Ht.HL,j:Ht.JK,k:Ht.JK,l:Ht.HL,a:Ht.AD,s:Ht.WS,w:Ht.WS,d:Ht.AD,Tab:Ht.Tab,Home:Ht.HomeAndEnd,End:Ht.HomeAndEnd,PageUp:Ht.PageUpDown,PageDown:Ht.PageUpDown},Mt={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 Dt(e){const r=Mt[e.key];if("Tab"===e.key&&e.shiftKey)return"previous";const t=Rt();if(t&&e.metaKey||!t&&e.ctrlKey){if("ArrowLeft"===e.key||"ArrowUp"===e.key)return"start";if("ArrowRight"===e.key||"ArrowDown"===e.key)return"end"}return r}function Ft(e,r){var t,o,a,n;const i=[],d=new WeakMap,l=null!==(t=null==r?void 0:r.bindKeys)&&void 0!==t?t:(null!=r&&r.getNextFocusable?Ht.ArrowAll:Ht.ArrowVertical)|Ht.HomeAndEnd,c=null!==(o=null==r?void 0:r.focusOutBehavior)&&void 0!==o?o:"stop",s=null!==(a=null==r?void 0:r.focusInStrategy)&&void 0!==a?a:"previous",f=null==r?void 0:r.activeDescendantControl,g=null==r?void 0:r.onActiveDescendantChanged;let b;function p(){return i[0]}function u(e,r=!1){const t=b;b=e,f?e&&document.activeElement===f?m(t,e,r):h():(t&&t!==e&&d.has(t)&&t.setAttribute("tabindex","-1"),null==e||e.setAttribute("tabindex","0"))}function m(r,t,o=!1){t.id||t.setAttribute("id","__primer_id_"+Ot++),r&&r!==t&&r.removeAttribute("data-is-active-descendant"),f&&(o||f.getAttribute("aria-activedescendant")!==t.id)&&(f.setAttribute("aria-activedescendant",t.id),e.setAttribute("data-has-active-descendant",t.id),t.setAttribute("data-is-active-descendant",o?"activated-directly":"activated-indirectly"),null==g||g(t,r,o))}function h(r=b){"first"===s&&(b=void 0),null==f||f.removeAttribute("aria-activedescendant"),e.removeAttribute("data-has-active-descendant"),null==r||r.removeAttribute("data-is-active-descendant"),null==g||g(void 0,r,!1)}function x(...e){const t=e.filter((e=>{var t,o;return null===(t=null==r||null===(o=r.focusableElementFilter)||void 0===o?void 0:o.call(r,e))||void 0===t||t}));if(0===t.length)return;const o=i.findIndex((e=>(e.compareDocumentPosition(t[0])&Node.DOCUMENT_POSITION_PRECEDING)>0));i.splice(-1===o?i.length:o,0,...t);for(const e of t)d.has(e)||d.set(e,e.getAttribute("tabindex")),e.setAttribute("tabindex","-1");b||u(p())}function v(...e){for(const r of e){const e=i.indexOf(r);e>=0&&i.splice(e,1);const t=d.get(r);if(void 0!==t&&(null===t?r.removeAttribute("tabindex"):r.setAttribute("tabindex",t),d.delete(r)),r===b){u(p())}}}x(...wt(e)),u(p());new MutationObserver((e=>{for(const r of e)for(const e of r.removedNodes)e instanceof HTMLElement&&v(...wt(e));for(const r of e)for(const e of r.addedNodes)e instanceof HTMLElement&&x(...wt(e))})).observe(e,{subtree:!0,childList:!0});const y=new AbortController,w=null!==(n=null==r?void 0:r.abortSignal)&&void 0!==n?n:y.signal;let B;w.addEventListener("abort",(()=>{v(...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(),u(e.target))})),e.addEventListener("mousemove",(({target:e})=>{if(!(e instanceof Node))return;const r=i.find((r=>r.contains(e)));r&&u(r)}),{signal:w,capture:!0}),f.addEventListener("focusin",(()=>{b?m(void 0,b):u(p())})),f.addEventListener("focusout",(()=>{h()}))):e.addEventListener("focusin",(r=>{if(r.target instanceof HTMLElement)if(void 0!==B)B>=0&&i[B]!==b&&u(i[B]),B=void 0;else if("previous"===s)u(r.target);else if("closest"===s||"first"===s){if(r.relatedTarget instanceof Element&&!e.contains(r.relatedTarget)){const e="previous"===k?i.length-1:0,r=i[e];return void(null==r||r.focus())}u(r.target)}else if("function"==typeof s)if(r.relatedTarget instanceof Element&&!e.contains(r.relatedTarget)){const e=s(r.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 u(r.target);k=void 0}),{signal:w});const $=null!=f?f:e;let k;return"closest"===s&&document.addEventListener("keydown",(e=>{"Tab"===e.key&&(k=Dt(e))}),{signal:w,capture:!0}),$.addEventListener("keydown",(t=>{if(t.key in Mt){const a=Pt[t.key];if(!t.defaultPrevented&&(a&l)>0&&!function(e,r){const t=e.key,o=[...t].length,a=r instanceof HTMLInputElement&&"text"===r.type||r instanceof HTMLTextAreaElement;if(a&&(1===o||"Home"===t||"End"===t))return!0;if(r instanceof HTMLSelectElement){if(1===o)return!0;if("ArrowDown"===t&&Rt()&&!e.metaKey)return!0;if("ArrowDown"===t&&!Rt()&&e.altKey)return!0}if(r instanceof HTMLTextAreaElement&&("PageUp"===t||"PageDown"===t))return!0;if(a){const e=r,o=0===e.selectionStart&&0===e.selectionEnd,a=e.selectionStart===e.value.length&&e.selectionEnd===e.value.length;if("ArrowLeft"===t&&!o)return!0;if("ArrowRight"===t&&!a)return!0;if(e instanceof HTMLTextAreaElement){if("ArrowUp"===t&&!o)return!0;if("ArrowDown"===t&&!a)return!0}}return!1}(t,document.activeElement)){const a=Dt(t);let n;var o;if(null!=r&&r.getNextFocusable)n=r.getNextFocusable(a,null!==(o=document.activeElement)&&void 0!==o?o:void 0,t);if(!n){const r=function(){if(!b)return 0;const r=i.indexOf(b);return-1!==r?r:b===e?-1:0}();let o=r;"previous"===a?o-=1:"start"===a?o=0:"next"===a?o+=1:o=i.length-1,o<0&&(o="wrap"===c&&"Tab"!==t.key?i.length-1:0),o>=i.length&&(o="wrap"===c&&"Tab"!==t.key?0:i.length-1),r!==o&&(n=i[o])}f?u(n||b,!0):n&&(k=a,n.focus()),("Tab"!==t.key||n)&&t.preventDefault()}}}),{signal:w}),y}var Wt=b(["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;}"],Cr("fontWeights.bold"),Cr("radii.2"));const jt=R(Ce,Nr,Lr),Ut=ge({variants:{small:{p:"4px 12px",fontSize:0},medium:{fontSize:1},large:{fontSize:2,p:"10px 20px"}}}),Gt=s.button.attrs((({disabled:e,onClick:r})=>({onClick:e?void 0:r})))`
|
22
|
+
`;function Dr(r){const{children:t,...o}=r;return require("focus-visible"),e.createElement(Mr,Or({},o,{"data-portal-root":!0}),e.createElement(Pr,null),t)}Dr.displayName="BaseStyles",Dr.defaultProps={color:"text.primary",fontFamily:"normal",lineHeight:"default"};var Fr=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var r=Object.prototype.toString.call(e);return"[object RegExp]"===r||"[object Date]"===r||function(e){return e.$$typeof===Wr}(e)}(e)};var Wr="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function jr(e,r){return!1!==r.clone&&r.isMergeableObject(e)?Xr((t=e,Array.isArray(t)?[]:{}),e,r):e;var t}function Ur(e,r,t){return e.concat(r).map((function(e){return jr(e,t)}))}function Gr(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(r){return e.propertyIsEnumerable(r)})):[]}(e))}function _r(e,r){try{return r in e}catch(e){return!1}}function Kr(e,r,t){var o={};return t.isMergeableObject(e)&&Gr(e).forEach((function(r){o[r]=jr(e[r],t)})),Gr(r).forEach((function(a){(function(e,r){return _r(e,r)&&!(Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))})(e,a)||(_r(e,a)&&t.isMergeableObject(r[a])?o[a]=function(e,r){if(!r.customMerge)return Xr;var t=r.customMerge(e);return"function"==typeof t?t:Xr}(a,t)(e[a],r[a],t):o[a]=jr(r[a],t))})),o}function Xr(e,r,t){(t=t||{}).arrayMerge=t.arrayMerge||Ur,t.isMergeableObject=t.isMergeableObject||Fr,t.cloneUnlessOtherwiseSpecified=jr;var o=Array.isArray(r);return o===Array.isArray(e)?o?t.arrayMerge(e,r,t):Kr(e,r,t):jr(r,t)}Xr.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,t){return Xr(e,t,r)}),{})};var Vr=Xr;const Yr=e.createContext({setColorMode:()=>null,setDayScheme:()=>null,setNightScheme:()=>null}),qr=({children:r,...t})=>{var o,a,n,i,d,l,c,s;const{theme:f,colorMode:b,dayScheme:p,nightScheme:u}=Jr(),m=null!==(o=null!==(a=t.theme)&&void 0!==a?a:f)&&void 0!==o?o:x,[h,v]=e.useState(null!==(n=null!==(i=t.colorMode)&&void 0!==i?i:b)&&void 0!==n?n:"day"),[y,w]=e.useState(null!==(d=null!==(l=t.dayScheme)&&void 0!==l?l:p)&&void 0!==d?d:"light"),[B,$]=e.useState(null!==(c=null!==(s=t.nightScheme)&&void 0!==s?s:u)&&void 0!==c?c:"dark"),k=function(e,r){switch(e){case"auto":return r;default:return e}}(h,function(){const[r,t]=e.useState(Qr);return e.useEffect((()=>{var e,r;const o=null===(e=window)||void 0===e||null===(r=e.matchMedia)||void 0===r?void 0:r.call(e,"(prefers-color-scheme: dark)");function a(e){const r=e.matches;t(r?"night":"day")}if(o){if(void 0!==o.addEventListener)return o.addEventListener("change",a),function(){o.removeEventListener("change",a)};if(void 0!==o.addListener)return o.addListener(a),function(){o.removeListener(a)}}}),[]),r}()),S=function(e,r,t){switch(e){case"day":return r;case"night":return t}}(k,y,B),T=e.useMemo((()=>function(e,r){if(!e.colorSchemes)return e;if(!e.colorSchemes[r]){console.error(`\`${r}\` scheme not defined in \`theme.colorSchemes\``);const t=Object.keys(e.colorSchemes)[0];return Vr(e,e.colorSchemes[t])}return Vr(e,e.colorSchemes[r])}(m,S)),[m,S]);return e.useEffect((()=>{var e,r;v(null!==(e=null!==(r=t.colorMode)&&void 0!==r?r:b)&&void 0!==e?e:"day")}),[t.colorMode,b]),e.useEffect((()=>{var e,r;w(null!==(e=null!==(r=t.dayScheme)&&void 0!==r?r:p)&&void 0!==e?e:"light")}),[t.dayScheme,p]),e.useEffect((()=>{var e,r;$(null!==(e=null!==(r=t.nightScheme)&&void 0!==r?r:u)&&void 0!==e?e:"dark")}),[t.nightScheme,u]),e.createElement(Yr.Provider,{value:{theme:T,colorScheme:S,colorMode:h,resolvedColorMode:k,dayScheme:y,nightScheme:B,setColorMode:v,setDayScheme:w,setNightScheme:$}},e.createElement(g,{theme:T},r))};function Jr(){return e.useContext(Yr)}function Zr(e,r){var t;const{colorScheme:o=""}=Jr();return null!==(t=e[o])&&void 0!==t?t:r}function Qr(){var e,r,t;return"undefined"!=typeof window&&null!==(e=(r=window).matchMedia)&&void 0!==e&&null!==(t=e.call(r,"(prefers-color-scheme: dark)"))&&void 0!==t&&t.matches?"night":"day"}qr.displayName="ThemeProvider";var et=qr;var rt=e=>fe(e.sx);var tt=s.div(ee,P,M,H,D,W,_,U,X,re,rt);const ot=s(tt)``;ot.defaultProps={borderWidth:"1px",borderStyle:"solid",borderColor:"border.primary",borderRadius:2};var at=ot;const nt=s(tt)``;nt.defaultProps={display:"flex"};var it=nt;const dt=s(tt)``;dt.defaultProps={display:"grid"};var lt=dt;const ct=s(tt)``;var st=ct;const ft=e.forwardRef(((r,t)=>e.createElement(ct,Or({},r,{position:"absolute",ref:t}))));ft.displayName="Absolute";const gt=e.forwardRef(((r,t)=>e.createElement(ct,Or({},r,{position:"fixed",ref:t}))));gt.displayName="Fixed";const bt=e.forwardRef(((r,t)=>e.createElement(ct,Or({},r,{position:"relative",ref:t}))));bt.displayName="Relative";const pt=e.forwardRef(((r,t)=>e.createElement(ct,Or({},r,{position:"sticky",ref:t}))));function ut({ref:e,closeOnOutsideClick:n,defaultOpen:i,onClickOutside:d}){const[l,c]=r(i),s=t(null),f=null!=e?e:s,g=o((e=>{const{current:r}=f;e.target.closest("details")!==r&&(d&&d(e),e.defaultPrevented||c(!1))}),[f,c,d]);a((()=>{if(l&&n)return document.addEventListener("click",g),()=>{document.removeEventListener("click",g)}}),[l,n,g]);const b=e=>{if(!e.defaultPrevented){const r=e.target;c(r.open)}};return{open:l,setOpen:c,getDetailsProps:()=>({onToggle:b,open:l,ref:f})}}function mt(){const e=t(new Set),r=o(((r,t,...o)=>{const a=window.setTimeout(r,t,...o);return e.current.add(a),a}),[]),n=o((r=>{clearTimeout(r),e.current.delete(r)}),[]);return a((()=>()=>{for(const r of e.current)clearTimeout(r)}),[]),{safeSetTimeout:r,safeClearTimeout:n}}pt.defaultProps={top:0,zIndex:1},pt.displayName="Sticky";function ht(e){if(!e.defaultPrevented)for(const r of Object.values(xt).reverse())if(true===r(e)||e.defaultPrevented)break}const xt={};let vt=0;const yt=({containerRef:e,ignoreClickRefs:r,onClickOutside:t})=>{const i=n((()=>vt++),[]),d=o((o=>{var a;return o instanceof MouseEvent&&o.button>0||(!(null===(a=e.current)||void 0===a||!a.contains(o.target))||(!(!r||!r.some((({current:e})=>null==e?void 0:e.contains(o.target))))||void t(o)))}),[e,r,t]);a((()=>(0===Object.keys(xt).length&&document.addEventListener("mousedown",ht,{capture:!0}),function(e,r){xt[e]=r}(i,d),()=>{!function(e){delete xt[e]}(i),0===Object.keys(xt).length&&document.removeEventListener("mousedown",ht,{capture:!0})})),[i,d])};function*wt(e,r={}){var t,o;const a=null!==(t=r.strict)&&void 0!==t&&t,n=null!==(o=r.onlyTabbable)&&void 0!==o&&o?$t:Bt,i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e instanceof HTMLElement&&n(e,a)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});let d=null;if(!r.reverse&&n(e,a)&&(yield e),r.reverse){let e=i.lastChild();for(;e;)d=e,e=i.lastChild()}else d=i.firstChild();for(;d instanceof HTMLElement;)yield d,d=r.reverse?i.previousNode():i.nextNode();r.reverse&&n(e,a)&&(yield e)}function Bt(e,r=!1){const t=["BUTTON","INPUT","SELECT","TEXTAREA","OPTGROUP","OPTION","FIELDSET"].includes(e.tagName)&&e.disabled,o=e.hidden,a=e instanceof HTMLInputElement&&"hidden"===e.type;if(t||o||a)return!1;if(r){const r=0===e.offsetWidth||0===e.offsetHeight,t=["hidden","collapse"].includes(getComputedStyle(e).visibility),o=0===e.getClientRects().length;if(r||t||o)return!1}return null!=e.getAttribute("tabindex")||!(e instanceof HTMLAnchorElement&&null==e.getAttribute("href"))&&-1!==e.tabIndex}function $t(e,r=!1){return Bt(e,r)&&"-1"!==e.getAttribute("tabindex")}function kt({initialFocusRef:e,returnFocusRef:r,containerRef:t}){a((()=>{const o=r.current;if(e&&e.current)e.current.focus();else if(t.current){const e=wt(t.current).next().value;null==e||e.focus()}return function(){null==o||o.focus()}}),[e,r,t])}const St=[];function Tt(e){if("Escape"===e.key&&!e.defaultPrevented)for(let r=St.length-1;r>=0&&(St[r](e),!e.defaultPrevented);--r);}const Et=(e,r=[e])=>{const t=o(e,r);a((()=>(0===St.length&&document.addEventListener("keydown",Tt),St.push(t),()=>{St.splice(St.findIndex((e=>e===t)),1),0===St.length&&document.removeEventListener("keydown",Tt)})),[t])};function It(r){const t=e.useRef(null);return null!=r?r:t}const Ct=({overlayRef:e,returnFocusRef:r,initialFocusRef:t,onEscape:o,ignoreClickRefs:a,onClickOutside:n})=>{const i=It(e);return kt({containerRef:i,returnFocusRef:r,initialFocusRef:t}),yt({containerRef:i,ignoreClickRefs:a,onClickOutside:n}),Et(o),{ref:i}};let Nt,At=!1;function zt(){}try{const e=Object.create({},{signal:{get(){At=!0}}});window.addEventListener("test",zt,e),window.removeEventListener("test",zt,e)}catch(e){}function Lt(){At||(!function(){if("undefined"==typeof window)return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(r,t,o){return"object"==typeof o&&"signal"in o&&o.signal instanceof AbortSignal&&e.call(o.signal,"abort",(()=>{this.removeEventListener(r,t,o)})),e.call(this,r,t,o)}}(),At=!0)}function Rt(){return void 0===Nt&&(Nt=/^mac/i.test(window.navigator.platform)),Nt}let Ht,Ot=1e4;Lt(),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"}(Ht||(Ht={}));const Pt={ArrowLeft:Ht.ArrowHorizontal,ArrowDown:Ht.ArrowVertical,ArrowUp:Ht.ArrowVertical,ArrowRight:Ht.ArrowHorizontal,h:Ht.HL,j:Ht.JK,k:Ht.JK,l:Ht.HL,a:Ht.AD,s:Ht.WS,w:Ht.WS,d:Ht.AD,Tab:Ht.Tab,Home:Ht.HomeAndEnd,End:Ht.HomeAndEnd,PageUp:Ht.PageUpDown,PageDown:Ht.PageUpDown},Mt={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 Dt(e){const r=Mt[e.key];if("Tab"===e.key&&e.shiftKey)return"previous";const t=Rt();if(t&&e.metaKey||!t&&e.ctrlKey){if("ArrowLeft"===e.key||"ArrowUp"===e.key)return"start";if("ArrowRight"===e.key||"ArrowDown"===e.key)return"end"}return r}function Ft(e,r){var t,o,a,n;const i=[],d=new WeakMap,l=null!==(t=null==r?void 0:r.bindKeys)&&void 0!==t?t:(null!=r&&r.getNextFocusable?Ht.ArrowAll:Ht.ArrowVertical)|Ht.HomeAndEnd,c=null!==(o=null==r?void 0:r.focusOutBehavior)&&void 0!==o?o:"stop",s=null!==(a=null==r?void 0:r.focusInStrategy)&&void 0!==a?a:"previous",f=null==r?void 0:r.activeDescendantControl,g=null==r?void 0:r.onActiveDescendantChanged;let b;function p(){return i[0]}function u(e,r=!1){const t=b;b=e,f?e&&document.activeElement===f?m(t,e,r):h():(t&&t!==e&&d.has(t)&&t.setAttribute("tabindex","-1"),null==e||e.setAttribute("tabindex","0"))}function m(r,t,o=!1){t.id||t.setAttribute("id","__primer_id_"+Ot++),r&&r!==t&&r.removeAttribute("data-is-active-descendant"),f&&(o||f.getAttribute("aria-activedescendant")!==t.id)&&(f.setAttribute("aria-activedescendant",t.id),e.setAttribute("data-has-active-descendant",t.id),t.setAttribute("data-is-active-descendant",o?"activated-directly":"activated-indirectly"),null==g||g(t,r,o))}function h(r=b){"first"===s&&(b=void 0),null==f||f.removeAttribute("aria-activedescendant"),e.removeAttribute("data-has-active-descendant"),null==r||r.removeAttribute("data-is-active-descendant"),null==g||g(void 0,r,!1)}function x(...e){const t=e.filter((e=>{var t,o;return null===(t=null==r||null===(o=r.focusableElementFilter)||void 0===o?void 0:o.call(r,e))||void 0===t||t}));if(0===t.length)return;const o=i.findIndex((e=>(e.compareDocumentPosition(t[0])&Node.DOCUMENT_POSITION_PRECEDING)>0));i.splice(-1===o?i.length:o,0,...t);for(const e of t)d.has(e)||d.set(e,e.getAttribute("tabindex")),e.setAttribute("tabindex","-1");b||u(p())}function v(...e){for(const r of e){const e=i.indexOf(r);e>=0&&i.splice(e,1);const t=d.get(r);if(void 0!==t&&(null===t?r.removeAttribute("tabindex"):r.setAttribute("tabindex",t),d.delete(r)),r===b){u(p())}}}x(...wt(e)),u(p());new MutationObserver((e=>{for(const r of e)for(const e of r.removedNodes)e instanceof HTMLElement&&v(...wt(e));for(const r of e)for(const e of r.addedNodes)e instanceof HTMLElement&&x(...wt(e))})).observe(e,{subtree:!0,childList:!0});const y=new AbortController,w=null!==(n=null==r?void 0:r.abortSignal)&&void 0!==n?n:y.signal;let B;w.addEventListener("abort",(()=>{v(...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(),u(e.target))})),e.addEventListener("mousemove",(({target:e})=>{if(!(e instanceof Node))return;const r=i.find((r=>r.contains(e)));r&&u(r)}),{signal:w,capture:!0}),f.addEventListener("focusin",(()=>{b?m(void 0,b):u(p())})),f.addEventListener("focusout",(()=>{h()}))):e.addEventListener("focusin",(r=>{if(r.target instanceof HTMLElement)if(void 0!==B)B>=0&&i[B]!==b&&u(i[B]),B=void 0;else if("previous"===s)u(r.target);else if("closest"===s||"first"===s){if(r.relatedTarget instanceof Element&&!e.contains(r.relatedTarget)){const e="previous"===k?i.length-1:0,r=i[e];return void(null==r||r.focus())}u(r.target)}else if("function"==typeof s)if(r.relatedTarget instanceof Element&&!e.contains(r.relatedTarget)){const e=s(r.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 u(r.target);k=void 0}),{signal:w});const $=null!=f?f:e;let k;return"closest"===s&&document.addEventListener("keydown",(e=>{"Tab"===e.key&&(k=Dt(e))}),{signal:w,capture:!0}),$.addEventListener("keydown",(t=>{if(t.key in Mt){const a=Pt[t.key];if(!t.defaultPrevented&&(a&l)>0&&!function(e,r){const t=e.key,o=[...t].length,a=r instanceof HTMLInputElement&&"text"===r.type||r instanceof HTMLTextAreaElement;if(a&&(1===o||"Home"===t||"End"===t))return!0;if(r instanceof HTMLSelectElement){if(1===o)return!0;if("ArrowDown"===t&&Rt()&&!e.metaKey)return!0;if("ArrowDown"===t&&!Rt()&&e.altKey)return!0}if(r instanceof HTMLTextAreaElement&&("PageUp"===t||"PageDown"===t))return!0;if(a){const e=r,o=0===e.selectionStart&&0===e.selectionEnd,a=e.selectionStart===e.value.length&&e.selectionEnd===e.value.length;if("ArrowLeft"===t&&!o)return!0;if("ArrowRight"===t&&!a)return!0;if(e instanceof HTMLTextAreaElement){if("ArrowUp"===t&&!o)return!0;if("ArrowDown"===t&&!a)return!0}}return!1}(t,document.activeElement)){const a=Dt(t);let n;var o;if(null!=r&&r.getNextFocusable)n=r.getNextFocusable(a,null!==(o=document.activeElement)&&void 0!==o?o:void 0,t);if(!n){const r=function(){if(!b)return 0;const r=i.indexOf(b);return-1!==r?r:b===e?-1:0}();let o=r;"previous"===a?o-=1:"start"===a?o=0:"next"===a?o+=1:o=i.length-1,o<0&&(o="wrap"===c&&"Tab"!==t.key?i.length-1:0),o>=i.length&&(o="wrap"===c&&"Tab"!==t.key?0:i.length-1),r!==o&&(n=i[o])}f?u(n||b,!0):n&&(k=a,n.focus()),("Tab"!==t.key||n)&&t.preventDefault()}}}),{signal:w}),y}var Wt=b(["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;}"],Cr("fontWeights.bold"),Cr("radii.2"));const jt=ge({variants:{small:{p:"4px 12px",fontSize:0},medium:{fontSize:1},large:{fontSize:2,p:"10px 20px"}}}),Ut=s.button.attrs((({disabled:e,onClick:r})=>({onClick:e?void 0:r})))`
|
23
23
|
${Wt}
|
24
|
-
${
|
25
|
-
`;
|
24
|
+
${jt}
|
25
|
+
`;Ut.defaultProps={variant:"medium"};var Gt=Ut;var _t=s(Gt)`
|
26
26
|
color: ${Cr("colors.btn.text")};
|
27
27
|
background-color: ${Cr("colors.btn.bg")};
|
28
28
|
border: 1px solid ${Cr("colors.btn.border")};
|
@@ -50,9 +50,8 @@ import e,{useState as r,useRef as t,useCallback as o,useEffect as a,useMemo as n
|
|
50
50
|
border-color: ${Cr("colors.btn.border")};
|
51
51
|
}
|
52
52
|
|
53
|
-
${jt};
|
54
53
|
${rt};
|
55
|
-
`;var
|
54
|
+
`;var Kt=s(Gt)`
|
56
55
|
color: ${Cr("colors.btn.danger.text")};
|
57
56
|
border: 1px solid ${Cr("colors.btn.border")};
|
58
57
|
background-color: ${Cr("colors.btn.bg")};
|
@@ -83,9 +82,8 @@ import e,{useState as r,useRef as t,useCallback as o,useEffect as a,useMemo as n
|
|
83
82
|
border-color: ${Cr("colors.btn.danger.disabledBorder")};
|
84
83
|
}
|
85
84
|
|
86
|
-
${jt};
|
87
85
|
${rt};
|
88
|
-
`;const
|
86
|
+
`;const Xt=s(tt)`
|
89
87
|
vertical-align: middle;
|
90
88
|
|
91
89
|
&& > * {
|
@@ -126,7 +124,7 @@ import e,{useState as r,useRef as t,useCallback as o,useEffect as a,useMemo as n
|
|
126
124
|
}
|
127
125
|
|
128
126
|
${rt};
|
129
|
-
`;
|
127
|
+
`;Xt.defaultProps={display:"inline-block"};var Vt=Xt;var Yt=s(Gt)`
|
130
128
|
color: ${Cr("colors.btn.outline.text")};
|
131
129
|
border: 1px solid ${Cr("colors.btn.border")};
|
132
130
|
background-color: ${Cr("colors.btn.bg")};
|
@@ -157,9 +155,8 @@ import e,{useState as r,useRef as t,useCallback as o,useEffect as a,useMemo as n
|
|
157
155
|
border-color: ${Cr("colors.btn.border")};
|
158
156
|
}
|
159
157
|
|
160
|
-
${jt};
|
161
158
|
${rt};
|
162
|
-
`;var
|
159
|
+
`;var qt=s(Gt)`
|
163
160
|
color: ${Cr("colors.btn.primary.text")};
|
164
161
|
border: 1px solid ${Cr("colors.btn.primary.border")};
|
165
162
|
background-color: ${Cr("colors.btn.primary.bg")};
|
@@ -188,9 +185,8 @@ import e,{useState as r,useRef as t,useCallback as o,useEffect as a,useMemo as n
|
|
188
185
|
border-color: ${Cr("colors.btn.primary.disabledBorder")};
|
189
186
|
}
|
190
187
|
|
191
|
-
${jt};
|
192
188
|
${rt};
|
193
|
-
`;var
|
189
|
+
`;var Jt=s(Gt)`
|
194
190
|
color: ${Cr("colors.accent.fg")};
|
195
191
|
background-color: transparent;
|
196
192
|
border: 0;
|
@@ -205,9 +201,8 @@ import e,{useState as r,useRef as t,useCallback as o,useEffect as a,useMemo as n
|
|
205
201
|
box-shadow: ${Cr("shadows.btn.focusShadow")};
|
206
202
|
}
|
207
203
|
|
208
|
-
${jt};
|
209
204
|
${rt}
|
210
|
-
`;var
|
205
|
+
`;var Zt=s.summary`
|
211
206
|
display: inline-block;
|
212
207
|
padding: 0;
|
213
208
|
font-size: ${Cr("fontSizes.1")};
|
@@ -242,11 +237,8 @@ import e,{useState as r,useRef as t,useCallback as o,useEffect as a,useMemo as n
|
|
242
237
|
border: 4px solid transparent;
|
243
238
|
border-top-color: currentcolor;
|
244
239
|
}
|
245
|
-
${Nr}
|
246
|
-
${Ar}
|
247
|
-
${Lr}
|
248
240
|
${rt};
|
249
|
-
`,
|
241
|
+
`,Qt={small:16,medium:32,large:64};function eo(e){var r=e["aria-label"],t=e.className,o=e.fill,a=void 0===o?"currentColor":o,n=e.size,i=e.verticalAlign,d=e.svgDataByHeight,l=Qt[n]||n,c=function(e,r){return e.map((function(e){return parseInt(e,10)})).reduce((function(e,t){return t<=r?t:e}),e[0])}(Object.keys(d),l),s=d[c].width;return{"aria-hidden":r?"false":"true","aria-label":r,role:"img",className:t,viewBox:"0 0 "+s+" "+c,width:l*(s/c),height:l,fill:a,style:{display:"inline-block",userSelect:"none",verticalAlign:i},dangerouslySetInnerHTML:{__html:d[c].path}}}var ro=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};function to(r){return e.createElement("svg",eo(ro({},r,{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 oo(r){return e.createElement("svg",eo(ro({},r,{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 ao(r){return e.createElement("svg",eo(ro({},r,{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 no(r){return e.createElement("svg",eo(ro({},r,{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 io(r){return e.createElement("svg",eo(ro({},r,{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 lo(r){return e.createElement("svg",eo(ro({},r,{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 co(r){return e.createElement("svg",eo(ro({},r,{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 so(r){return e.createElement("svg",eo(ro({},r,{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>'}}})))}to.defaultProps={className:"octicon octicon-check",size:16,verticalAlign:"text-bottom"},oo.defaultProps={className:"octicon octicon-git-merge",size:16,verticalAlign:"text-bottom"},ao.defaultProps={className:"octicon octicon-git-pull-request",size:16,verticalAlign:"text-bottom"},no.defaultProps={className:"octicon octicon-issue-closed",size:16,verticalAlign:"text-bottom"},io.defaultProps={className:"octicon octicon-issue-opened",size:16,verticalAlign:"text-bottom"},lo.defaultProps={className:"octicon octicon-question",size:16,verticalAlign:"text-bottom"},co.defaultProps={className:"octicon octicon-triangle-down",size:16,verticalAlign:"text-bottom"},so.defaultProps={className:"octicon octicon-x",size:16,verticalAlign:"text-bottom"};const fo=s.button`
|
250
242
|
border: none;
|
251
243
|
padding: 0;
|
252
244
|
background: transparent;
|
@@ -262,13 +254,11 @@ import e,{useState as r,useRef as t,useCallback as o,useEffect as a,useMemo as n
|
|
262
254
|
&:hover {
|
263
255
|
color: ${Cr("colors.accent.fg")};
|
264
256
|
}
|
265
|
-
${Nr};
|
266
|
-
${Lr};
|
267
257
|
${rt};
|
268
|
-
`;var
|
258
|
+
`;var go=i(((r,t)=>e.createElement(fo,Or({ref:t,"aria-label":"Close"},r),e.createElement(so,null))));const bo={"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 po(e,r,t={}){const o=function(e){let r=e.parentNode;for(;null!==r;){if(r instanceof HTMLElement&&"static"!==getComputedStyle(r).position)return r;r=r.parentNode}return document.body}(e),a=function(e){let r=e;for(;null!==r&&r!==document.body;){if("visible"!==getComputedStyle(r).overflow)break;r=r.parentNode}const t=r!==document.body&&r instanceof HTMLElement?r:document.body,o=t.getBoundingClientRect(),a=getComputedStyle(t),[n,i,d,l]=[a.borderTopWidth,a.borderLeftWidth,a.borderRightWidth,a.borderBottomWidth].map((e=>parseInt(e,10)||0));return{top:o.top+n,left:o.left+i,width:o.width-d-i,height:Math.max(o.height-n-l,t===document.body?window.innerHeight:-1/0)}}(o),n=getComputedStyle(o),i=o.getBoundingClientRect(),[d,l]=[n.borderTopWidth,n.borderLeftWidth].map((e=>parseInt(e,10)||0));return function(e,r,t,o,{side:a,align:n,allowOutOfBounds:i,anchorOffset:d,alignmentOffset:l}){const c={top:e.top-r.top,left:e.left-r.left,width:e.width,height:e.height};let s=yo(t,o,a,n,d,l),f=a;if(s.top-=r.top,s.left-=r.left,!i){const i=bo[a];let g=0;if(i){let e=a;for(;g<i.length&&wo(e,s,c,t);){const a=i[g++];e=a,s=yo(t,o,a,n,d,l),s.top-=r.top,s.left-=r.left,f=a}}s.top<c.top&&(s.top=c.top),s.left<c.left&&(s.left=c.left),s.left+t.width>e.width+c.left&&(s.left=e.width+c.left-t.width),i&&g<i.length&&s.top+t.height>e.height+c.top&&(s.top=e.height+c.top-t.height)}return{...s,anchorSide:f}}(a,{top:i.top+d,left:i.left+l},e.getBoundingClientRect(),r instanceof Element?r.getBoundingClientRect():r,function(e={}){var r,t,o,a,n;const i=null!==(r=e.side)&&void 0!==r?r:uo,d=null!==(t=e.align)&&void 0!==t?t:mo;return{side:i,align:d,anchorOffset:null!==(o=e.anchorOffset)&&void 0!==o?o:"inside-center"===i?0:ho,alignmentOffset:null!==(a=e.alignmentOffset)&&void 0!==a?a:"center"!==d&&i.startsWith("inside")?xo:0,allowOutOfBounds:null!==(n=e.allowOutOfBounds)&&void 0!==n?n:vo}}(t))}const uo="outside-bottom",mo="start",ho=4,xo=4,vo=!1;function yo(e,r,t,o,a,n){const i=r.left+r.width,d=r.top+r.height;let l=-1,c=-1;return"outside-top"===t?l=r.top-a-e.height:"outside-bottom"===t?l=d+a:"outside-left"===t?c=r.left-a-e.width:"outside-right"===t&&(c=i+a),"outside-top"!==t&&"outside-bottom"!==t||(c="start"===o?r.left+n:"center"===o?r.left-(e.width-r.width)/2+n:i-e.width-n),"outside-left"!==t&&"outside-right"!==t||(l="start"===o?r.top+n:"center"===o?r.top-(e.height-r.height)/2+n:d-e.height-n),"inside-top"===t?l=r.top+a:"inside-bottom"===t?l=d-a-e.height:"inside-left"===t?c=r.left+a:"inside-right"===t?c=i-a-e.width:"inside-center"===t&&(c=(i+r.left)/2-e.width/2+a),"inside-top"===t||"inside-bottom"===t?c="start"===o?r.left+n:"center"===o?r.left-(e.width-r.width)/2+n:i-e.width-n:"inside-left"!==t&&"inside-right"!==t&&"inside-center"!==t||(l="start"===o?r.top+n:"center"===o?r.top-(e.height-r.height)/2+n:d-e.height-n),{top:l,left:c}}function wo(e,r,t,o){return"outside-top"===e||"outside-bottom"===e?r.top<t.top||r.top+o.height>t.height+t.top:r.left<t.left||r.left+o.width>t.width+t.left}function Bo(r,t=[]){const o=It(null==r?void 0:r.floatingElementRef),a=It(null==r?void 0:r.anchorElementRef),[n,i]=e.useState(void 0),d=e.useCallback((()=>{o.current instanceof Element&&a.current instanceof Element?i(po(o.current,a.current,r)):i(void 0)}),[o,a,...t]);var l;return e.useLayoutEffect(d,[d]),l=d,e.useLayoutEffect((()=>{const e=new window.ResizeObserver((()=>l()));return e.observe(document.documentElement),()=>{e.disconnect()}}),[l]),{floatingElementRef:o,anchorElementRef:a,position:n}}Lt();const $o=[];let ko;function So(e,r=!1){return wt(e,{reverse:r,strict:!0,onlyTabbable:!0}).next().value}function To(e,r,t){const o=new AbortController,a=null!=t?t:o.signal;let n;function i(t){if(t instanceof HTMLElement&&document.contains(e)){if(e.contains(t))return void(n=t);if(n&&$t(n)&&e.contains(n))return void n.focus();if(r&&e.contains(r))return void r.focus();{const r=null===e.getAttribute("tabindex");return r&&e.setAttribute("tabindex","-1"),e.focus(),void(r&&e.addEventListener("blur",(()=>e.removeAttribute("tabindex")),{once:!0}))}}}e.setAttribute("data-focus-trap","active");const d=function(e){const r=new AbortController;return e.addEventListener("abort",(()=>{r.abort()})),r}(a);if(e.addEventListener("keydown",(r=>{if("Tab"!==r.key||r.defaultPrevented)return;const{target:t}=r,o=So(e),a=So(e,!0);t===o&&r.shiftKey?(r.preventDefault(),null==a||a.focus()):t!==a||r.shiftKey||(r.preventDefault(),null==o||o.focus())}),{signal:d.signal}),ko){const e=ko;ko.container.setAttribute("data-focus-trap","suspended"),ko.controller.abort(),$o.push(e)}d.signal.addEventListener("abort",(()=>{ko=void 0})),a.addEventListener("abort",(()=>{e.removeAttribute("data-focus-trap");const r=$o.findIndex((r=>r.container===e));r>=0&&$o.splice(r,1),function(){const e=$o.pop();e&&To(e.container,e.initialFocus,e.originalSignal)}()})),document.addEventListener("focus",(e=>{i(e.target)}),{signal:d.signal,capture:!0}),i(document.activeElement),ko={container:e,controller:d,initialFocus:r,originalSignal:a};const l=$o.findIndex((r=>r.container===e));if(l>=0&&$o.splice(l,1),!t)return o}function Eo(r,t=[]){const o=It(null==r?void 0:r.containerRef),a=It(null==r?void 0:r.initialFocusRef),n=null==r?void 0:r.disabled,i=e.useRef(),d=e.useRef(null);function l(){var e;null===(e=i.current)||void 0===e||e.abort(),null!=r&&r.restoreFocusOnCleanUp&&d.current instanceof HTMLElement&&(d.current.focus(),d.current=null)}return d.current||null!=r&&r.disabled||(d.current=document.activeElement),e.useEffect((()=>{if(o.current instanceof HTMLElement){var e;if(!n)return i.current=To(o.current,null!==(e=a.current)&&void 0!==e?e:void 0),()=>{l()};l()}}),[o,a,n,...t]),{containerRef:o,initialFocusRef:a}}function Io({icon:r,...t}){return e.createElement(r,t)}Io.displayName="Octicon";const Co=s(Io)`
|
269
259
|
${Nr}
|
270
260
|
${rt}
|
271
|
-
`;
|
261
|
+
`;Co.defaultProps={size:16};var No=Co;function Ao(r={},t=[]){const o=It(r.containerRef),n=!!r.activeDescendantFocus,i=It("boolean"!=typeof r.activeDescendantFocus&&r.activeDescendantFocus?r.activeDescendantFocus:void 0),d=r.disabled,l=e.useRef();return a((()=>{if(o.current instanceof HTMLElement&&(!n||i.current instanceof HTMLElement)){if(!d){var e;const t={...r,activeDescendantControl:null!==(e=i.current)&&void 0!==e?e:void 0};return l.current=Ft(o.current,t),()=>{var e;null===(e=l.current)||void 0===e||e.abort()}}var t;null===(t=l.current)||void 0===t||t.abort()}}),[d,...t]),{containerRef:o,activeDescendantControlRef:i}}const zo={};function Lo(){const e=zo.__default__;if(!e||!document.body.contains(e)){let e=document.getElementById("__primerPortalRoot__");if(!(e instanceof Element)){e=document.createElement("div"),e.setAttribute("id","__primerPortalRoot__"),e.style.position="absolute",e.style.top="0",e.style.left="0";const r=document.querySelector("[data-portal-root]");r?r.appendChild(e):document.body.appendChild(e)}!function(e,r="__default__"){zo[r]=e}(e)}}var Ro=({children:r,onMount:t,containerName:o})=>{const a=document.createElement("div");a.style.position="relative",a.style.zIndex="1";const n=e.useRef(a);return e.useLayoutEffect((()=>{let e=o;void 0===e&&(e="__default__",Lo());const r=zo[e];if(!r)throw new Error(`Portal container '${o}' is not yet registered. Container must be registered with registerPortal before use.`);const a=n.current;return r.appendChild(a),null==t||t(),()=>{r.removeChild(a)}}),[n]),h(r,n.current)};function Ho(...r){const o=t(null);return e.useLayoutEffect((()=>{function e(e=null){for(const t of r){if(!t)return;"function"==typeof t?t(e):t.current=e}}return e(o.current),()=>{e(o.current)}}),[...r,o.current]),o}const Oo={prefix:String(Math.round(1e10*Math.random())),current:0},Po=e.createContext(Oo);function Mo(r){let t=d(Po),o=n((()=>({prefix:t===Oo?"":t.prefix+"-"+ ++t.current,current:0})),[t]);return e.createElement(Po.Provider,{value:o},r.children)}let Do=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function Fo(e){let r=d(Po);return r!==Oo||Do||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),n((()=>e||"react-aria"+r.prefix+"-"+ ++r.current),[e])}const Wo=s("div")`
|
272
262
|
position: fixed;
|
273
263
|
top: 0;
|
274
264
|
left: 0;
|
@@ -288,7 +278,7 @@ import e,{useState as r,useRef as t,useCallback as o,useEffect as a,useMemo as n
|
|
288
278
|
opacity: 1;
|
289
279
|
}
|
290
280
|
}
|
291
|
-
`,
|
281
|
+
`,jo={small:"480px",large:"640px",auto:"auto"},Uo={small:"296px",medium:"320px",large:"480px",xlarge:"640px"},Go=s.div`
|
292
282
|
display: flex;
|
293
283
|
flex-direction: column;
|
294
284
|
background-color: ${Cr("colors.canvas.overlay")};
|
@@ -296,8 +286,8 @@ import e,{useState as r,useRef as t,useCallback as o,useEffect as a,useMemo as n
|
|
296
286
|
min-width: 296px;
|
297
287
|
max-width: calc(100vw - 64px);
|
298
288
|
max-height: calc(100vh - 64px);
|
299
|
-
width: ${e=>{var r;return
|
300
|
-
height: ${e=>{var r;return
|
289
|
+
width: ${e=>{var r;return Uo[null!==(r=e.width)&&void 0!==r?r:"xlarge"]}};
|
290
|
+
height: ${e=>{var r;return jo[null!==(r=e.height)&&void 0!==r?r:"auto"]}};
|
301
291
|
border-radius: 12px;
|
302
292
|
opacity: 1;
|
303
293
|
animation: overlay--dialog-appear ${"200ms"} ${Cr("animation.easeOutCubic")};
|
@@ -316,23 +306,23 @@ import e,{useState as r,useRef as t,useCallback as o,useEffect as a,useMemo as n
|
|
316
306
|
${Nr};
|
317
307
|
${Rr};
|
318
308
|
${rt};
|
319
|
-
`,
|
309
|
+
`,_o=({dialogLabelId:r,title:t,subtitle:a,dialogDescriptionId:n,onClose:i})=>{const d=o((()=>{i("close-button")}),[i]);return e.createElement(oa.Header,null,e.createElement(tt,{display:"flex"},e.createElement(tt,{display:"flex",px:2,py:"6px",flexDirection:"column",flexGrow:1},e.createElement(oa.Title,{id:r},null!=t?t:"Dialog"),a&&e.createElement(oa.Subtitle,{id:n},a)),e.createElement(oa.CloseButton,{onClose:d})))};_o.displayName="DefaultHeader";const Ko=({children:r})=>e.createElement(oa.Body,null,r);Ko.displayName="DefaultBody";const Xo=({footerButtons:r})=>{const{containerRef:t}=Ao({bindKeys:Ht.ArrowHorizontal|Ht.Tab,focusInStrategy:"closest"});return r?e.createElement(oa.Footer,{ref:t},e.createElement(oa.Buttons,{buttons:r})):null},Vo=e.forwardRef(((r,o)=>{const{title:a="Dialog",subtitle:n="",renderHeader:i,renderBody:d,renderFooter:l,onClose:c,role:s="dialog",width:f="xlarge",height:g="auto"}=r,b=Fo(),p=Fo(),u={...r,title:a,subtitle:n,role:s,dialogLabelId:b,dialogDescriptionId:p},m=t(null),h=Ho(m,o),x=t(null);Eo({containerRef:m,restoreFocusOnCleanUp:!0}),Et((e=>{c("escape"),e.preventDefault()}),[c]);const v=(null!=i?i:_o)(u),y=(null!=d?d:Ko)(u),w=(null!=l?l:Xo)(u);return e.createElement(e.Fragment,null,e.createElement(Ro,null,e.createElement(Wo,{ref:x},e.createElement(Go,{width:f,height:g,ref:h,role:s,"aria-labelledby":b,"aria-describedby":p},v,y,w))))}));Vo.displayName="Dialog";const Yo=s(tt).attrs({as:"header"})`
|
320
310
|
box-shadow: 0 1px 0 ${Cr("colors.border.default")};
|
321
311
|
padding: ${Cr("space.2")};
|
322
312
|
z-index: 1;
|
323
313
|
flex-shrink: 0;
|
324
|
-
`,
|
314
|
+
`,qo=s(tt)`
|
325
315
|
font-size: ${Cr("fontSizes.1")};
|
326
316
|
font-weight: ${Cr("fontWeights.bold")};
|
327
|
-
`,
|
317
|
+
`,Jo=s(tt)`
|
328
318
|
font-size: ${Cr("fontSizes.0")};
|
329
319
|
margin-top: ${Cr("space.1")};
|
330
320
|
color: ${Cr("colors.fg.muted")};
|
331
|
-
`,
|
321
|
+
`,Zo=s(tt)`
|
332
322
|
flex-grow: 1;
|
333
323
|
overflow: auto;
|
334
324
|
padding: ${Cr("space.3")};
|
335
|
-
`,
|
325
|
+
`,Qo=s(tt).attrs({as:"footer"})`
|
336
326
|
box-shadow: 0 -1px 0 ${Cr("colors.border.default")};
|
337
327
|
padding: ${Cr("space.3")};
|
338
328
|
display: flex;
|
@@ -347,7 +337,7 @@ import e,{useState as r,useRef as t,useCallback as o,useEffect as a,useMemo as n
|
|
347
337
|
margin-left: 0;
|
348
338
|
}
|
349
339
|
}
|
350
|
-
`,
|
340
|
+
`,ea={normal:_t,primary:qt,danger:Kt},ra=s(_t)`
|
351
341
|
border-radius: 4px;
|
352
342
|
background: transparent;
|
353
343
|
border: 0;
|
@@ -357,21 +347,21 @@ import e,{useState as r,useRef as t,useCallback as o,useEffect as a,useMemo as n
|
|
357
347
|
align-self: flex-start;
|
358
348
|
line-height: normal;
|
359
349
|
box-shadow: none;
|
360
|
-
`,
|
350
|
+
`,ta=({onClose:r})=>e.createElement(ra,{"aria-label":"Close",onClick:r},e.createElement(No,{icon:so}));ta.displayName="CloseButton";const oa=Object.assign(Vo,{Header:Yo,Title:qo,Subtitle:Jo,Body:Zo,Footer:Qo,Buttons:({buttons:o})=>{const n=t(null);let i=0;const[d,l]=r(0);return a((()=>{var e;1===d?null===(e=n.current)||void 0===e||e.focus():l(d+1)}),[d]),e.createElement(e.Fragment,null,o.map(((r,t)=>{const{content:o,buttonType:a="normal",autoFocus:d=!1,...l}=r,c=ea[a];return e.createElement(c,Or({key:t},l,{ref:d&&0===i?(i++,n):null}),o)})))},CloseButton:ta}),aa=s.header`
|
361
351
|
padding: ${Cr("space.2")};
|
362
352
|
display: flex;
|
363
353
|
flex-direction: row;
|
364
|
-
`,
|
354
|
+
`,na=s(tt)`
|
365
355
|
font-size: ${Cr("fontSizes.3")};
|
366
356
|
font-weight: ${Cr("fontWeights.bold")};
|
367
357
|
padding: 6px ${Cr("space.2")};
|
368
358
|
flex-grow: 1;
|
369
|
-
`,
|
359
|
+
`,ia=({title:r,onClose:t,dialogLabelId:a})=>{const n=o((()=>{t("close-button")}),[t]);return e.createElement(aa,null,e.createElement(na,{id:a},r),e.createElement(oa.CloseButton,{onClose:n}))};ia.displayName="ConfirmationHeader";const da=s(tt)`
|
370
360
|
font-size: ${Cr("fontSizes.1")};
|
371
361
|
padding: 0 ${Cr("space.3")} ${Cr("space.3")} ${Cr("space.3")};
|
372
362
|
color: ${Cr("colors.fg.muted")};
|
373
363
|
flex-grow: 1;
|
374
|
-
`,
|
364
|
+
`,la=({children:r})=>e.createElement(da,null,r);la.displayName="ConfirmationBody";const ca=s(tt)`
|
375
365
|
display: grid;
|
376
366
|
grid-auto-flow: column;
|
377
367
|
grid-auto-columns: max-content;
|
@@ -379,7 +369,7 @@ import e,{useState as r,useRef as t,useCallback as o,useEffect as a,useMemo as n
|
|
379
369
|
align-items: end;
|
380
370
|
justify-content: end;
|
381
371
|
padding: ${Cr("space.1")} ${Cr("space.3")} ${Cr("space.3")};
|
382
|
-
`,
|
372
|
+
`,sa=({footerButtons:r})=>{const{containerRef:t}=Ao({bindKeys:Ht.ArrowHorizontal|Ht.Tab,focusInStrategy:"closest"});return e.createElement(ca,{ref:t},e.createElement(oa.Buttons,{buttons:null!=r?r:[]}))};sa.displayName="ConfirmationFooter";const fa=r=>{const{onClose:t,title:a,cancelButtonContent:n="Cancel",confirmButtonContent:i="OK",confirmButtonType:d="normal",children:l}=r,c=[{content:n,onClick:o((()=>{t("cancel")}),[t]),autoFocus:!0},{content:i,buttonType:d,onClick:o((()=>{t("confirm")}),[t])}];return e.createElement(oa,{onClose:t,title:a,footerButtons:c,role:"alertdialog",width:"medium",renderHeader:ia,renderBody:la,renderFooter:sa},l)};function ga(){const{theme:r,colorMode:t,dayScheme:a,nightScheme:n}=Jr();return o((o=>async function(r,t){const{content:o,...a}=t;return new Promise((t=>{const n=document.createElement("div");m.render(e.createElement(qr,r,e.createElement(fa,Or({},a,{onClose:e=>{m.unmountComponentAtNode(n),t("confirm"===e)}}),o)),n)}))}({theme:r,colorMode:t,dayScheme:a,nightScheme:n},o)),[r,t,a,n])}fa.displayName="ConfirmationDialog";const ba=s.div`
|
383
373
|
{
|
384
374
|
/* 6px vertical padding + 20px line height = 32px total height
|
385
375
|
*
|
@@ -395,9 +385,9 @@ import e,{useState as r,useRef as t,useCallback as o,useEffect as a,useMemo as n
|
|
395
385
|
${({variant:e})=>"filled"===e&&b(["background:",";margin:"," 0;border-top:1px solid ",";border-bottom:1px solid ",";&:first-child{margin-top:0;}"],Cr("colors.canvas.subtle"),Cr("space.2"),Cr("colors.neutral.muted"),Cr("colors.neutral.muted"))}
|
396
386
|
|
397
387
|
${rt}
|
398
|
-
`;function
|
388
|
+
`;function pa({variant:r="subtle",title:t,auxiliaryText:o,children:a,...n}){return e.createElement(ba,Or({role:"heading",variant:r},n),t,o&&e.createElement("span",null,"auxiliaryText"))}pa.displayName="Header";const ua=s.div`
|
399
389
|
${rt}
|
400
|
-
`;function
|
390
|
+
`;function ma({header:r,items:t,...o}){return e.createElement(ua,o,r&&e.createElement(pa,r),t)}ma.displayName="Group";const ha=s.div`
|
401
391
|
${Ar}
|
402
392
|
${Nr}
|
403
393
|
display: ${e=>e.inline?"inline-block":"inherit"};
|
@@ -408,25 +398,25 @@ import e,{useState as r,useRef as t,useCallback as o,useEffect as a,useMemo as n
|
|
408
398
|
${ye}
|
409
399
|
${e=>e.expandable?"&:hover { max-width: 10000px; }":""}
|
410
400
|
${rt};
|
411
|
-
`;
|
401
|
+
`;ha.defaultProps={expandable:!1,inline:!1,maxWidth:125};var xa=ha;const va=s.div`
|
412
402
|
height: 1px;
|
413
403
|
background: ${Cr("colors.border.muted")};
|
414
404
|
margin-top: calc(${Cr("space.2")} - 1px);
|
415
405
|
margin-bottom: ${Cr("space.2")};
|
416
|
-
`;function
|
406
|
+
`;function ya(){return e.createElement(va,null)}ya.displayName="Divider",ya.renderItem=ya;const wa={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)"}}},Ba=(e="default",r)=>{if(r)return{color:Cr("colors.fg.muted"),iconColor:Cr("colors.fg.muted"),annotationColor:Cr("colors.fg.muted"),hoverCursor:"default"};switch(e){case"danger":return{color:Cr("colors.danger.fg"),iconColor:Cr("colors.danger.fg"),annotationColor:Cr("colors.fg.muted"),hoverCursor:"pointer"};default:return{color:Cr("colors.fg.default"),iconColor:Cr("colors.fg.muted"),annotationColor:Cr("colors.fg.muted"),hoverCursor:"pointer"}}},$a=s.div`
|
417
407
|
display: flex;
|
418
408
|
min-width: 0;
|
419
409
|
|
420
410
|
/* Required for dividers */
|
421
411
|
position: relative;
|
422
412
|
flex-grow: 1;
|
423
|
-
`,
|
413
|
+
`,ka=s.div`
|
424
414
|
align-items: baseline;
|
425
415
|
display: flex;
|
426
416
|
min-width: 0;
|
427
417
|
flex-direction: var(--main-content-flex-direction);
|
428
418
|
flex-grow: 1;
|
429
|
-
`,
|
419
|
+
`,Sa=s.div`
|
430
420
|
/* 6px vertical padding + 20px line height = 32px total height
|
431
421
|
*
|
432
422
|
* TODO: When rem-based spacing on a 4px scale lands, replace
|
@@ -435,7 +425,7 @@ import e,{useState as r,useRef as t,useCallback as o,useEffect as a,useMemo as n
|
|
435
425
|
padding: 6px ${Cr("space.2")};
|
436
426
|
display: flex;
|
437
427
|
border-radius: ${Cr("radii.2")};
|
438
|
-
color: ${({variant:e,item:r})
|
428
|
+
color: ${({variant:e,item:r})=>Ba(e,null==r?void 0:r.disabled).color};
|
439
429
|
// 2 frames on a 60hz monitor
|
440
430
|
transition: background 33.333ms linear;
|
441
431
|
|
@@ -443,15 +433,15 @@ import e,{useState as r,useRef as t,useCallback as o,useEffect as a,useMemo as n
|
|
443
433
|
:hover {
|
444
434
|
// allow override in case another item in the list is active/focused
|
445
435
|
background: var(--item-hover-bg-override, ${({hoverBackground:e})=>e});
|
446
|
-
cursor: ${({variant:e,item:r})
|
436
|
+
cursor: ${({variant:e,item:r})=>Ba(e,null==r?void 0:r.disabled).hoverCursor};
|
447
437
|
}
|
448
438
|
}
|
449
439
|
|
450
440
|
// Item dividers
|
451
|
-
:not(:first-of-type):not(${
|
441
|
+
:not(:first-of-type):not(${va} + &):not(${ba} + &) {
|
452
442
|
margin-top: ${({showDivider:e})=>e?"1px":"0"};
|
453
443
|
|
454
|
-
${
|
444
|
+
${$a}::before {
|
455
445
|
content: ' ';
|
456
446
|
display: block;
|
457
447
|
position: absolute;
|
@@ -465,23 +455,23 @@ import e,{useState as r,useRef as t,useCallback as o,useEffect as a,useMemo as n
|
|
465
455
|
|
466
456
|
// Item dividers should not be visible:
|
467
457
|
// - above Hovered
|
468
|
-
&:hover ${
|
458
|
+
&:hover ${$a}::before,
|
469
459
|
// - below Hovered
|
470
460
|
// '*' instead of '&' because '&' maps to separate class names depending on 'variant'
|
471
|
-
:hover + * ${
|
461
|
+
:hover + * ${$a}::before {
|
472
462
|
// allow override in case another item in the list is active/focused
|
473
463
|
border-color: var(--item-hover-divider-border-color-override, transparent) !important;
|
474
464
|
}
|
475
465
|
|
476
466
|
// - above Focused
|
477
|
-
&:focus ${
|
467
|
+
&:focus ${$a}::before,
|
478
468
|
// - below Focused
|
479
469
|
// '*' instead of '&' because '&' maps to separate class names depending on 'variant'
|
480
|
-
:focus + * ${
|
470
|
+
:focus + * ${$a}::before,
|
481
471
|
// - above Active Descendent
|
482
|
-
&[${"data-is-active-descendant"}] ${
|
472
|
+
&[${"data-is-active-descendant"}] ${$a}::before,
|
483
473
|
// - below Active Descendent
|
484
|
-
[${"data-is-active-descendant"}] + & ${
|
474
|
+
[${"data-is-active-descendant"}] + & ${$a}::before {
|
485
475
|
// '!important' because all the ':not's above give higher specificity
|
486
476
|
border-color: transparent !important;
|
487
477
|
}
|
@@ -504,32 +494,32 @@ import e,{useState as r,useRef as t,useCallback as o,useEffect as a,useMemo as n
|
|
504
494
|
}
|
505
495
|
|
506
496
|
${rt}
|
507
|
-
`,
|
497
|
+
`,Ta=s.span``,Ea=s.div`
|
508
498
|
// Match visual height to adjacent text line height.
|
509
499
|
// TODO: When rem-based spacing on a 4px scale lands, replace
|
510
500
|
// hardcoded '20px' with '${Cr("space.s20")}'.
|
511
501
|
height: 20px;
|
512
502
|
width: ${Cr("space.3")};
|
513
503
|
margin-right: ${Cr("space.2")};
|
514
|
-
`,
|
504
|
+
`,Ia=s(Ea)`
|
515
505
|
svg {
|
516
|
-
fill: ${({variant:e,disabled:r})
|
506
|
+
fill: ${({variant:e,disabled:r})=>Ba(e,r).iconColor};
|
517
507
|
font-size: ${Cr("fontSizes.0")};
|
518
508
|
}
|
519
|
-
`,
|
509
|
+
`,Ca=s(Ia)`
|
520
510
|
flex-shrink: 0;
|
521
511
|
display: flex;
|
522
512
|
flex-direction: column;
|
523
513
|
justify-content: center;
|
524
|
-
`,
|
525
|
-
color: ${({variant:e,disabled:r})
|
514
|
+
`,Na=s(Ia)`
|
515
|
+
color: ${({variant:e,disabled:r})=>Ba(e,r).annotationColor}};
|
526
516
|
margin-left: ${Cr("space.2")};
|
527
517
|
margin-right: 0;
|
528
518
|
width: auto;
|
529
519
|
div:nth-child(2) {
|
530
520
|
margin-left: ${Cr("space.2")};
|
531
521
|
}
|
532
|
-
`,
|
522
|
+
`,Aa=s.span`
|
533
523
|
color: ${Cr("colors.fg.muted")};
|
534
524
|
font-size: ${Cr("fontSizes.0")};
|
535
525
|
// TODO: When rem-based spacing on a 4px scale lands, replace
|
@@ -539,9 +529,9 @@ import e,{useState as r,useRef as t,useCallback as o,useEffect as a,useMemo as n
|
|
539
529
|
min-width: 0;
|
540
530
|
flex-grow: 1;
|
541
531
|
flex-basis: var(--description-container-flex-basis);
|
542
|
-
`,
|
532
|
+
`,za=s.input`
|
543
533
|
pointer-events: none;
|
544
|
-
`;function
|
534
|
+
`;function La(r){const{text:t,description:a,descriptionVariant:n="inline",selected:i,selectionVariant:d,leadingVisual:l,trailingIcon:c,trailingText:s,variant:f="default",showDivider:g,disabled:b,onAction:p,onKeyPress:u,children:m,onClick:h,id:x,...v}=r,y=Fo(),w=Fo(),B=o((e=>{if(b)return;null==u||u(e);e.target instanceof HTMLInputElement&&"checkbox"===e.target.type&&" "===e.key||!e.defaultPrevented&&[" ","Enter"].includes(e.key)&&(null==p||p(r,e))}),[p,b,r,u]),$=o((e=>{b||(null==h||h(e),e.defaultPrevented||null==p||p(r,e))}),[p,b,r,h]),k=wa[f],S=Zr(k.hover,"inherit"),T=Zr(k.focus,"inherit"),{theme:E}=Jr();return e.createElement(Sa,Or({tabIndex:b?void 0:-1,variant:f,showDivider:g,"aria-selected":i,"aria-labelledby":t?y:void 0,"aria-describedby":a?w:void 0},v,{"data-id":x,onKeyPress:B,onClick:$,hoverBackground:b?"inherit":S,focusBackground:b?"inherit":T}),!!i===i&&e.createElement(Ea,null,"multiple"===d?e.createElement(e.Fragment,null,e.createElement(za,{disabled:b,tabIndex:-1,type:"checkbox",checked:i,"aria-label":t,readOnly:!0,"aria-readonly":"false"})):i&&e.createElement(to,{fill:null==E?void 0:E.colors.text.primary})),l&&e.createElement(Ca,{variant:f,disabled:b},e.createElement(l,null)),e.createElement($a,null,e.createElement(ka,{style:{"--main-content-flex-direction":"inline"===n?"row":"column"}},m,t?e.createElement(Ta,{id:y},t):null,a?e.createElement(Aa,{id:w,style:{"--description-container-margin-left":"inline"===n?Cr("space.2")(E):0,"--description-container-flex-basis":"inline"===n?0:"auto"}},"block"===n?a:e.createElement(xa,{title:a,inline:!0,maxWidth:"100%"},a)):null),c||s?e.createElement(Na,{variant:f,disabled:b},s,c&&e.createElement(c,null)):null))}La.displayName="Item";const Ra=s.div`
|
545
535
|
font-size: ${Cr("fontSizes.1")};
|
546
536
|
/* 14px font-size * 1.428571429 = 20px line height
|
547
537
|
*
|
@@ -554,15 +544,15 @@ import e,{useState as r,useRef as t,useCallback as o,useEffect as a,useMemo as n
|
|
554
544
|
--item-hover-bg-override: none;
|
555
545
|
--item-hover-divider-border-color-override: ${Cr("colors.border.muted")};
|
556
546
|
}
|
557
|
-
`;const
|
547
|
+
`;const Ha=e.forwardRef(((r,t)=>{const{firstGroupStyle:o,lastGroupStyle:a,headerStyle:n,itemStyle:i}=function(e="inset"){switch(e){case"full":return{headerStyle:{paddingX:Cr("space.2")},itemStyle:{borderRadius:0}};default:return{firstGroupStyle:{marginTop:Cr("space.2")},lastGroupStyle:{marginBottom:Cr("space.2")},itemStyle:{marginX:Cr("space.2")}}}}(r.variant),d=(t,o,a)=>{var n,d,l;const c="renderItem"in t&&t.renderItem||r.renderItem||La,s=null!==(n=null!==(d=t.key)&&void 0!==d?d:null===(l=t.id)||void 0===l?void 0:l.toString())&&void 0!==n?n:a.toString();return e.createElement(c,Or({showDivider:r.showItemDividers,selectionVariant:r.selectionVariant},t,{key:s,sx:{...i,...t.sx},item:o}))};let l=[];if(function(e){return"groupMetadata"in e}(r)){const e=r.groupMetadata.reduce(((e,r)=>e.set(r.groupId,r)),new Map);for(const t of r.items){var c,s,f;const r=e.get(t.groupId),o=null!==(c=null==r||null===(s=r.items)||void 0===s?void 0:s.length)&&void 0!==c?c:0;e.set(t.groupId,{...r,items:[...null!==(f=null==r?void 0:r.items)&&void 0!==f?f:[],d({showDivider:null==r?void 0:r.showItemDividers,...r&&"renderItem"in r&&{renderItem:r.renderItem},...t},t,o)]})}l=[...e.values()]}else l=[{items:r.items.map(((e,r)=>d(e,e,r))),groupId:"0"}];return e.createElement(Ra,Or({},r,{ref:t}),l.map((({header:t,...i},d)=>{const c="filled"===(null==t?void 0:t.variant),s=d>0&&!c;return e.createElement(e.Fragment,{key:i.groupId},s?e.createElement(ya,{key:`${i.groupId}-divider`}):null,(t=>{var o;const a=(null!==(o="renderGroup"in t&&t.renderGroup)&&void 0!==o?o:r.renderGroup)||ma;return e.createElement(a,Or({},t,{key:t.groupId}))})({sx:{...0===d&&o,...d===l.length-1&&a,...d>0&&!s&&{mt:2}},...t&&{header:{...t,sx:{...n,...t.sx}}},...i}))})))}));Ha.displayName="ActionList";const Oa=Object.assign(Ha,{Group:ma,Item:La,Divider:ya}),Pa={xsmall:"192px",small:"256px",medium:"320px",large:"432px",xlarge:"600px",auto:"auto",initial:"auto"},Ma={small:"256px",medium:"320px",large:"480px",xlarge:"640px",xxlarge:"960px",auto:"auto"};const Da=s.div`
|
558
548
|
background-color: ${Cr("colors.canvas.overlay")};
|
559
549
|
box-shadow: ${Cr("shadows.overlay.shadow")};
|
560
550
|
position: absolute;
|
561
551
|
min-width: 192px;
|
562
552
|
max-width: 640px;
|
563
|
-
height: ${e=>
|
564
|
-
max-height: ${e=>e.maxHeight&&
|
565
|
-
width: ${e=>
|
553
|
+
height: ${e=>Pa[e.height||"auto"]};
|
554
|
+
max-height: ${e=>e.maxHeight&&Pa[e.maxHeight]};
|
555
|
+
width: ${e=>Ma[e.width||"auto"]};
|
566
556
|
border-radius: 12px;
|
567
557
|
overflow: hidden;
|
568
558
|
animation: overlay-appear ${200}ms ${Cr("animation.easeOutCubic")};
|
@@ -581,7 +571,7 @@ import e,{useState as r,useRef as t,useCallback as o,useEffect as a,useMemo as n
|
|
581
571
|
}
|
582
572
|
${Nr};
|
583
573
|
${rt};
|
584
|
-
`,
|
574
|
+
`,Fa=e.forwardRef((({onClickOutside:r,role:o="none",initialFocusRef:n,returnFocusRef:i,ignoreClickRefs:d,onEscape:c,visibility:s="visible",height:f,top:g,left:b,anchorSide:p,portalContainerName:u,...m},h)=>{const x=t(null),v=Ho(x,h),{theme:y}=Jr(),w=parseInt(Cr("space.2")(y).replace("px","")),B=Cr("animation.easeOutCubic")(y);return Ct({overlayRef:x,returnFocusRef:i,onEscape:c,ignoreClickRefs:d,onClickOutside:r,initialFocusRef:n}),a((()=>{var e;"initial"===f&&null!==(e=v.current)&&void 0!==e&&e.clientHeight&&(v.current.style.height=`${v.current.clientHeight}px`)}),[f,v]),l((()=>{var e;const{x:r,y:t}=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}}(p);(r||t)&&null!==(e=x.current)&&void 0!==e&&e.animate&&"hidden"!==s&&x.current.animate({transform:[`translate(${w*r}px, ${w*t}px)`,"translate(0, 0)"]},{duration:200,easing:B})}),[p,w,B,s]),e.createElement(Ro,{containerName:u},e.createElement(Da,Or({height:f,role:o},m,{ref:v,style:{top:`${g||0}px`,left:`${b||0}px`,...m.style,"--styled-overlay-visibility":s}})))}));Fa.defaultProps={height:"auto",width:"auto"};var Wa=Fa;const ja=({renderAnchor:n,anchorRef:i,children:d,open:l,onOpen:c,onClose:s,height:f,width:g,overlayProps:b,focusTrapSettings:p,focusZoneSettings:u})=>{const m=It(i),[h,x]=function(){const[e,a]=r(null),n=t(null);n.current=e;const i=o((e=>{n.current=e,a(e)}),[n]);return[n,i]}(),v=Fo(),y=o((()=>null==s?void 0:s("click-outside")),[s]),w=o((()=>null==s?void 0:s("escape")),[s]),B=o((e=>{e.defaultPrevented||!l&&["ArrowDown","ArrowUp"," ","Enter"].includes(e.key)&&(null==c||c("anchor-key-press"),e.preventDefault())}),[l,c]),$=o((e=>{e.defaultPrevented||0!==e.button||(l?null==s||s("anchor-click"):null==c||c("anchor-click"))}),[l,c,s]),{position:k}=Bo({anchorElementRef:m,floatingElementRef:h},[h.current]);return a((()=>{!l&&h.current&&x(null)}),[l,h,x]),Ao({containerRef:h,disabled:!l||!k,...u}),Eo({containerRef:h,disabled:!l||!k,...p}),e.createElement(e.Fragment,null,n&&n({ref:m,id:v,"aria-labelledby":v,"aria-haspopup":"true",tabIndex:0,onClick:$,onKeyDown:B}),l?e.createElement(Wa,Or({returnFocusRef:m,onClickOutside:y,ignoreClickRefs:[m],onEscape:w,ref:x,role:"none",visibility:k?"visible":"hidden",height:f,width:g,top:(null==k?void 0:k.top)||0,left:(null==k?void 0:k.left)||0,anchorSide:null==k?void 0:k.anchorSide},b),d):null)};function Ua(e,t,a){const[n,i]=r(a);return[null!=e?e:n,o((e=>{i(e),t&&t(e)}),[t])]}ja.displayName="AnchoredOverlay";const Ga=r=>e.createElement(La,Or({role:"menuitem"},r));Ga.displayName="ActionMenuItem",Ga.displayName="ActionMenu.Item";const _a=({anchorContent:r,renderAnchor:t=(r=>e.createElement(_t,r)),anchorRef:a,onAction:i,open:d,setOpen:l,overlayProps:c,items:s,...f})=>{const[g,b]=Ua(d,l,!1),p=It(a),u=o((()=>b(!0)),[b]),m=o((()=>b(!1)),[b]),h=n((()=>null===t?null:e=>t({"aria-label":"menu",children:r,...e})),[r,t]),x=n((()=>s.map((e=>({...e,role:"menuitem",onAction:(r,t)=>{var o;const a=null!==(o=e.onAction)&&void 0!==o?o:i;null==a||a(r,t),t.defaultPrevented||m()}})))),[s,i,m]);return e.createElement(ja,{renderAnchor:h,anchorRef:p,open:g,onOpen:u,onClose:m,overlayProps:c},e.createElement(Ha,Or({},f,{role:"menu",items:x})))};_a.displayName="ActionMenuBase",_a.displayName="ActionMenu";const Ka=Object.assign(_a,{Divider:ya,Item:Ga});const Xa=s.img.attrs((e=>({height:e.size,width:e.size})))`
|
585
575
|
display: inline-block;
|
586
576
|
overflow: hidden; // Ensure page layout in Firefox should images fail to load
|
587
577
|
line-height: ${Cr("lineHeights.condensedUltra")};
|
@@ -589,18 +579,18 @@ import e,{useState as r,useRef as t,useCallback as o,useEffect as a,useMemo as n
|
|
589
579
|
border-radius: ${e=>function({size:e,square:r}){return r?e&&e<=24?"4px":"6px":"50%"}(e)};
|
590
580
|
${Nr};
|
591
581
|
${rt}
|
592
|
-
`;
|
582
|
+
`;Xa.defaultProps={size:20,alt:"",square:!1};var Va=Xa;const Ya=s(Va)`
|
593
583
|
position: absolute;
|
594
584
|
right: -15%;
|
595
585
|
bottom: -9%;
|
596
586
|
box-shadow: ${Cr("shadows.avatar.childShadow")};
|
597
|
-
`,
|
587
|
+
`,qa=({children:r,...t})=>{const o=e.Children.map(r,((r,t)=>e.isValidElement(r)?0===t?e.cloneElement(r,{size:40}):e.createElement(Ya,Or({bg:"canvas.default"},r.props,{size:20})):r));return e.createElement(tt,Or({position:"relative",display:"inline-flex"},t),o)};qa.displayName="AvatarPair",qa.displayName="AvatarPair";var Ja,Za=qa,Qa={exports:{}};
|
598
588
|
/*!
|
599
589
|
Copyright (c) 2018 Jed Watson.
|
600
590
|
Licensed under the MIT License (MIT), see
|
601
591
|
http://jedwatson.github.io/classnames
|
602
592
|
*/
|
603
|
-
|
593
|
+
Ja=Qa,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<arguments.length;o++){var a=arguments[o];if(a){var n=typeof a;if("string"===n||"number"===n)t.push(a);else if(Array.isArray(a)){if(a.length){var i=r.apply(null,a);i&&t.push(i)}}else if("object"===n)if(a.toString===Object.prototype.toString)for(var d in a)e.call(a,d)&&a[d]&&t.push(d);else t.push(a.toString())}}return t.join(" ")}Ja.exports?(r.default=r,Ja.exports=r):window.classNames=r}();var en=Qa.exports;const rn=s.span`
|
604
594
|
display: flex;
|
605
595
|
position: relative;
|
606
596
|
height: 20px;
|
@@ -714,8 +704,9 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
714
704
|
}
|
715
705
|
}
|
716
706
|
|
707
|
+
${Nr}
|
717
708
|
${rt};
|
718
|
-
`,
|
709
|
+
`,tn=({children:r,alignRight:t,...o})=>{const a=e.Children.count(r),n=en({"pc-AvatarStack--two":2===a,"pc-AvatarStack--three-plus":a>2,"pc-AvatarStack--right":t});return e.createElement(rn,Or({count:a,className:n},o),e.createElement(tt,{position:"absolute",display:"flex",width:"38px",className:"pc-AvatarStackBody"},(r=>e.Children.map(r,((r,t)=>e.isValidElement(r)?e.cloneElement(r,{className:en(r.props.className,"pc-AvatarItem"),sx:{zIndex:10-t,...r.props.sx}}):r)))(r)))};tn.displayName="AvatarStack";var on=tn;var an=s.a`
|
719
710
|
display: inline-block;
|
720
711
|
padding: 2px 6px;
|
721
712
|
font-size: ${Cr("fontSizes.0")};
|
@@ -725,7 +716,7 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
725
716
|
border-radius: ${Cr("radii.2")};
|
726
717
|
${Nr};
|
727
718
|
${rt};
|
728
|
-
`;const
|
719
|
+
`;const nn=s.li`
|
729
720
|
display: inline-block;
|
730
721
|
white-space: nowrap;
|
731
722
|
list-style: none;
|
@@ -744,13 +735,13 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
744
735
|
content: none;
|
745
736
|
}
|
746
737
|
}
|
747
|
-
`,
|
738
|
+
`,dn=s.nav`
|
748
739
|
display: flex;
|
749
740
|
justify-content: space-between;
|
750
741
|
${Nr};
|
751
742
|
${Hr};
|
752
743
|
${rt};
|
753
|
-
`;function
|
744
|
+
`;function ln({className:r,children:t,theme:o,...a}){const n=e.Children.map(t,(r=>e.createElement(nn,{theme:o},r)));return e.createElement(dn,Or({className:r,"aria-label":"Breadcrumbs",theme:o},a),e.createElement(tt,{as:"ol",my:0,pl:0},n))}ln.displayName="Breadcrumbs";const cn=s.a.attrs((e=>({activeClassName:"string"==typeof e.to?"selected":"",className:en(e.selected&&"selected",e.className),"aria-current":e.selected?"page":null})))`
|
754
745
|
color: ${Cr("colors.accent.fg")};
|
755
746
|
display: inline-block;
|
756
747
|
font-size: ${Cr("fontSizes.1")};
|
@@ -764,7 +755,7 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
764
755
|
}
|
765
756
|
${Nr}
|
766
757
|
${rt};
|
767
|
-
`;
|
758
|
+
`;ln.displayName="Breadcrumbs",cn.displayName="Breadcrumbs.Item";var sn=Object.assign(ln,{Item:cn});const fn=Object.assign(ln,{Item:cn}),gn={top:"Bottom",right:"Left",bottom:"Top",left:"Right"},bn={top:"Left",right:"Top",bottom:"Left",left:"Top"};function pn(e,r,t){const o=gn[e].toLowerCase(),a=bn[e].toLowerCase();return{[o]:"100%",[r||a]:r?t:"50%"}}const un=kr({prop:"bg",key:"colors"}),mn=kr({prop:"borderColor",key:"colors"}),hn=kr({prop:"borderWidth",key:"borderWidths",scale:[0,1]});function xn(r){var t;const o=e.useContext(p),a={...r,theme:null!==(t=r.theme)&&void 0!==t?t:o},{bg:n}=un(a),{borderColor:i}=mn(a),{borderWidth:d}=hn(a),{size:l=8,location:c="bottom"}=r,[s,f]=function(e){const[r,t]=e.split("-");return[r,t]}(c),g=bn[s],b=[-l,0],u=[0,l],m=[l,0],h=`M${b}L${u}L${m}L${b}Z`,x=`M${b}L${u}L${m}`,v={top:`translate(${[l,2*l]}) rotate(180)`,right:`translate(${[0,l]}) rotate(-90)`,bottom:`translate(${[l,0]})`,left:`translate(${[2*l,l]}) rotate(90)`}[s];return e.createElement("svg",{width:2*l,height:2*l,style:{pointerEvents:"none",position:"absolute",...pn(s,f,l),[`margin${g}`]:f?null:-l}},e.createElement("g",{transform:v},e.createElement("path",{d:h,fill:n}),e.createElement("path",{d:x,fill:"none",stroke:i,strokeWidth:d})))}xn.displayName="Caret",xn.locations=["top","top-left","top-right","right","right-top","right-bottom","bottom","bottom-left","bottom-right","left","left-top","left-bottom"],xn.defaultProps={bg:"bg.canvas",borderColor:"border.primary",borderWidth:1};const vn={small:56,medium:96,large:128},yn=s.div`
|
768
759
|
display: ${e=>e.inline?"inline-flex":"flex"};
|
769
760
|
align-items: center;
|
770
761
|
justify-content: center;
|
@@ -772,13 +763,13 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
772
763
|
border-radius: 50%;
|
773
764
|
box-shadow: ${Cr("shadows.shadow.medium")};
|
774
765
|
${Nr};
|
775
|
-
${({size:e,variant:r="medium"})=>{const t=(o=e,!isNaN(parseFloat(o))&&isFinite(o)?e:
|
766
|
+
${({size:e,variant:r="medium"})=>{const t=(o=e,!isNaN(parseFloat(o))&&isFinite(o)?e:vn[r]);var o;return{width:t,height:t}}};
|
776
767
|
${rt};
|
777
|
-
`,
|
768
|
+
`,wn=s(No)`
|
778
769
|
height: auto;
|
779
770
|
max-width: 60%;
|
780
771
|
max-height: 55%;
|
781
|
-
`;
|
772
|
+
`;yn.defaultProps={inline:!1},wn.displayName="CircleBadge.Icon";var Bn=Object.assign(yn,{Icon:wn});function $n(r){const{size:t,as:o}=r,{icon:a,bg:n,...i}=r;return e.createElement(tt,{as:o,bg:n,overflow:"hidden",borderWidth:0,size:t,borderRadius:"50%",borderStyle:"solid",borderColor:"border.default"},e.createElement(tt,Or({display:"flex"},i,{alignItems:"center",justifyContent:"center"}),e.createElement(a,{size:t})))}$n.displayName="CircleOcticon",$n.defaultProps={...tt.defaultProps,size:32};var kn=s.span`
|
782
773
|
display: inline-block;
|
783
774
|
padding: 2px 5px;
|
784
775
|
font-size: ${Cr("fontSizes.0")};
|
@@ -794,7 +785,7 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
794
785
|
}
|
795
786
|
|
796
787
|
${rt};
|
797
|
-
`;const
|
788
|
+
`;const Sn=s.details`
|
798
789
|
& > summary {
|
799
790
|
list-style: none;
|
800
791
|
}
|
@@ -804,11 +795,11 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
804
795
|
|
805
796
|
${Nr}
|
806
797
|
${rt};
|
807
|
-
`;
|
798
|
+
`;Sn.displayName="Details";var Tn=Sn;const En=()=>null;function In(e){const r=e;return r.tabIndex>=0&&!r.disabled&&function(e){return!e.hidden&&(!e.type||"hidden"!==e.type)&&(e.offsetWidth>0||e.offsetHeight>0)}(r)}var Cn=s.span`
|
808
799
|
${Ar};
|
809
800
|
${Nr};
|
810
801
|
${rt};
|
811
|
-
`;const
|
802
|
+
`;const Nn=()=>null,An=s.div`
|
812
803
|
box-shadow: ${Cr("shadows.shadow.large")};
|
813
804
|
border-radius: ${Cr("radii.2")};
|
814
805
|
position: fixed;
|
@@ -832,7 +823,7 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
832
823
|
${Lr};
|
833
824
|
${Nr};
|
834
825
|
${rt};
|
835
|
-
`,
|
826
|
+
`,zn=s(tt)`
|
836
827
|
border-radius: ${Cr("radii.2")} ${Cr("radii.2")} 0px 0px;
|
837
828
|
border-bottom: 1px solid ${Cr("colors.border.default")};
|
838
829
|
display: flex;
|
@@ -842,7 +833,7 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
842
833
|
}
|
843
834
|
|
844
835
|
${rt};
|
845
|
-
`;function
|
836
|
+
`;function Ln({theme:r,children:t,backgroundColor:o="gray.1",...a}){return e.Children.toArray(t).every((e=>"string"==typeof e))&&(t=e.createElement(Cn,{theme:r,color:"fg.default",fontSize:1,fontWeight:"bold",fontFamily:"sans-serif"},t)),e.createElement(zn,Or({theme:r,p:3,backgroundColor:o},a),t)}Ln.displayName="DialogHeader";const Rn=s.span`
|
846
837
|
&:before {
|
847
838
|
position: fixed;
|
848
839
|
top: 0;
|
@@ -856,10 +847,10 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
856
847
|
z-index: 99;
|
857
848
|
background: ${Cr("colors.primer.canvas.backdrop")};
|
858
849
|
}
|
859
|
-
`,
|
850
|
+
`,Hn=i((({children:r,onDismiss:n=Nn,isOpen:i,initialFocusRef:d,returnFocusRef:l,...c},s)=>{const f=t(null),g=Ho(s),b=t(null),p=()=>{n(),l&&l.current&&l.current.focus()},{getDialogProps:u}=function({modalRef:e,overlayRef:r,isOpen:t,onDismiss:n=En,initialFocusRef:i,closeButtonRef:d}){const l=o((t=>{e.current&&r.current&&!e.current.contains(t.target)&&r.current.contains(t.target)&&n()}),[n,e,r]);a((()=>{if(t)return document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}}),[t,l]),a((()=>{t&&(i&&i.current?i.current.focus():d&&d.current&&d.current.focus())}),[t,i,d]);const c=o(((r,t)=>{if(e.current){const o=Array.from(e.current.querySelectorAll("*")).filter(In);if(0===o.length)return;r.preventDefault();const a=document.activeElement;if(!a)return;const n=o.indexOf(a)+t,i=1===t?0:o.length-1;return o[n]||o[i]}}),[e]),s=o((e=>{const r=e.shiftKey?-1:1,t=c(e,r);t&&t.focus()}),[c]),f=o((e=>{switch(e.key){case"Tab":s(e);break;case"Escape":n(),e.stopPropagation()}}),[s,n]);return{getDialogProps:()=>({onKeyDown:f})}}({modalRef:g,onDismiss:p,isOpen:i,initialFocusRef:d,closeButtonRef:b,returnFocusRef:l,overlayRef:f});return i?e.createElement(e.Fragment,null,e.createElement(Rn,{ref:f}),e.createElement(An,Or({tabIndex:-1,ref:g,role:"dialog","aria-modal":"true"},c,u()),e.createElement(go,{ref:b,onClick:p,sx:{position:"absolute",top:"16px",right:"16px"}}),r)):null}));Ln.defaultProps={backgroundColor:"bg.tertiary"},Ln.propTypes={...tt.propTypes},Ln.displayName="Dialog.Header",Hn.displayName="Dialog";var On=Object.assign(Hn,{Header:Ln});var Pn=(e,r)=>({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: ${Cr("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: ${Cr("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: ${Cr("colors.border.default")(e)};\n }\n\n &::after {\n top: 11px;\n left: -14px;\n border-color: transparent;\n border-right-color: ${Cr("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 ${Cr("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 ${Cr("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 "}[r]);const Mn=s(Tn)`
|
860
851
|
position: relative;
|
861
852
|
display: inline-block;
|
862
|
-
`,
|
853
|
+
`,Dn=({children:r,className:t,...o})=>{const{getDetailsProps:a}=ut({closeOnOutsideClick:!0});return e.createElement(Mn,Or({className:t},a(),o),r)};Dn.displayName="Dropdown";const Fn=({children:r,...t})=>e.createElement(_t,Or({as:"summary","aria-haspopup":"true"},t),r,e.createElement(Wn,null));Fn.displayName="DropdownButton";const Wn=s.div`
|
863
854
|
border: 4px solid transparent;
|
864
855
|
margin-left: 12px;
|
865
856
|
border-top-color: currentcolor;
|
@@ -871,7 +862,7 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
871
862
|
width: 0;
|
872
863
|
${Nr};
|
873
864
|
${rt};
|
874
|
-
`,
|
865
|
+
`,jn=s.ul`
|
875
866
|
background-clip: padding-box;
|
876
867
|
background-color: ${Cr("colors.canvas.overlay")};
|
877
868
|
border: 1px solid ${Cr("colors.border.default")};
|
@@ -912,10 +903,10 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
912
903
|
> ul {
|
913
904
|
list-style: none;
|
914
905
|
}
|
915
|
-
${e=>e.direction?
|
906
|
+
${e=>e.direction?Pn(e.theme,e.direction):""};
|
916
907
|
${Nr};
|
917
908
|
${rt};
|
918
|
-
`,
|
909
|
+
`,Un=s.li`
|
919
910
|
display: block;
|
920
911
|
padding: ${Cr("space.1")} 10px ${Cr("space.1")} 15px;
|
921
912
|
overflow: hidden;
|
@@ -948,7 +939,7 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
948
939
|
}
|
949
940
|
${Nr};
|
950
941
|
${rt};
|
951
|
-
`;
|
942
|
+
`;jn.defaultProps={direction:"sw"},jn.displayName="Dropdown.Menu",Un.displayName="Dropdown.Item",Fn.defaultProps=_t.defaultProps,Fn.displayName="Dropdown.Button",Wn.displayName="Dropdown.Caret",Dn.defaultProps=Tn.defaultProps;var Gn=Object.assign(Dn,{Caret:Wn,Menu:jn,Item:Un,Button:Fn});const _n=e.forwardRef((({children:r,...t},o)=>e.createElement(_t,Or({ref:o,type:"button"},t),r,e.createElement(No,{icon:co,ml:1}))));function Kn({renderAnchor:r=(r=>e.createElement(_n,r)),anchorRef:t,placeholder:a,selectedItem:i,onChange:d,overlayProps:l,items:c,open:s,onOpenChange:f,...g}){const[b,p]=Ua(s,f,!1),u=o((()=>p(!0)),[p]),m=o((()=>p(!1)),[p]),h=It(t),x=n((()=>null===r?null:e=>{var t;return r({...e,children:null!==(t=null==i?void 0:i.text)&&void 0!==t?t:a})}),[a,r,null==i?void 0:i.text]),v=n((()=>c.map((e=>({...e,role:"option",selected:e===i,onAction:(r,t)=>{var o;null===(o=e.onAction)||void 0===o||o.call(e,r,t),t.defaultPrevented||(m(),null==d||d(e===i?void 0:e))}})))),[c,d,m,i]);return e.createElement(ja,{renderAnchor:x,anchorRef:h,open:b,onOpen:u,onClose:m,overlayProps:l},e.createElement(Ha,Or({},g,{role:"listbox",items:v})))}Kn.displayName="DropdownMenu",Kn.displayName="DropdownMenu";var Xn=s.div`
|
952
943
|
${Nr};
|
953
944
|
display: flex;
|
954
945
|
align-items: stretch;
|
@@ -967,11 +958,11 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
967
958
|
}
|
968
959
|
|
969
960
|
${rt}
|
970
|
-
`;const
|
961
|
+
`;const Vn=s.ul`
|
971
962
|
list-style-type: none;
|
972
963
|
${Nr};
|
973
964
|
${rt};
|
974
|
-
`,
|
965
|
+
`,Yn=({children:r,...t})=>{const o=e.Children.map(r,(r=>e.createElement("li",null,r)));return e.createElement(Vn,t,o)};Yn.displayName="FilterList";const qn=s.a`
|
975
966
|
position: relative;
|
976
967
|
display: block;
|
977
968
|
padding: ${e=>e.small?`${Cr("space.1")(e)} 10px`:`${Cr("space.2")(e)} 11px`};
|
@@ -999,7 +990,7 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
999
990
|
}
|
1000
991
|
${Nr};
|
1001
992
|
${rt};
|
1002
|
-
`;function
|
993
|
+
`;function Jn({children:r,count:t,...o}){return e.createElement(qn,o,t&&e.createElement("span",{title:"results",className:"count"},t),r)}Jn.displayName="FilterListItem",Yn.defaultProps={m:0,p:0},Jn.displayName="FilterList.Item";var Zn=Object.assign(Yn,{Item:Jn});const Qn=ge({variants:{default:{color:"alert.info.text",backgroundColor:"alert.info.bg",borderColor:"alert.info.border",svg:{color:"alert.info.icon"}},success:{color:"alert.success.text",backgroundColor:"alert.success.bg",borderColor:"alert.success.border",svg:{color:"alert.success.icon"}},danger:{color:"alert.error.text",backgroundColor:"alert.error.bg",borderColor:"alert.error.border",svg:{color:"alert.error.icon"}},warning:{color:"alert.warn.text",backgroundColor:"alert.warn.bg",borderColor:"alert.warn.border",svg:{color:"alert.warn.icon"}}}}),ei=s.div`
|
1003
994
|
position: relative;
|
1004
995
|
color: ${Cr("colors.fg.default")};
|
1005
996
|
padding: ${Cr("space.3")};
|
@@ -1017,14 +1008,14 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1017
1008
|
}
|
1018
1009
|
|
1019
1010
|
${Nr};
|
1020
|
-
${
|
1011
|
+
${Qn};
|
1021
1012
|
${rt};
|
1022
|
-
`;
|
1013
|
+
`;ei.defaultProps={variant:"default"};var ri=ei;const ti=s.div`
|
1023
1014
|
margin: ${Cr("space.3")} 0;
|
1024
1015
|
font-weight: ${Cr("fontWeights.normal")};
|
1025
1016
|
${Nr};
|
1026
1017
|
${rt};
|
1027
|
-
`,
|
1018
|
+
`,oi=s.label`
|
1028
1019
|
display: block;
|
1029
1020
|
margin: 0 0 ${Cr("space.2")};
|
1030
1021
|
font-size: ${Cr("fontSizes.1")};
|
@@ -1032,7 +1023,7 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1032
1023
|
${Ar};
|
1033
1024
|
${Nr};
|
1034
1025
|
${rt};
|
1035
|
-
`;
|
1026
|
+
`;oi.displayName="FormGroup.Label";var ai=Object.assign(ti,{Label:oi});const ni=s.div`
|
1036
1027
|
z-index: 32;
|
1037
1028
|
display: flex;
|
1038
1029
|
padding: ${Cr("space.3")};
|
@@ -1046,7 +1037,7 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1046
1037
|
${Nr}
|
1047
1038
|
${zr}
|
1048
1039
|
${rt};
|
1049
|
-
`,
|
1040
|
+
`,ii=s.div`
|
1050
1041
|
display: flex;
|
1051
1042
|
margin-right: ${Cr("space.3")};
|
1052
1043
|
align-self: stretch;
|
@@ -1058,7 +1049,7 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1058
1049
|
${Nr};
|
1059
1050
|
${zr};
|
1060
1051
|
${rt};
|
1061
|
-
`;
|
1052
|
+
`;ii.displayName="Header.Item";const di=s.a.attrs((({to:e})=>"string"==typeof e?{"aria-current":"page"}:{}))`
|
1062
1053
|
font-weight: ${Cr("fontWeights.bold")};
|
1063
1054
|
color: ${Cr("colors.header.logo")};
|
1064
1055
|
white-space: nowrap;
|
@@ -1076,14 +1067,14 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1076
1067
|
${zr};
|
1077
1068
|
${Ar};
|
1078
1069
|
${rt};
|
1079
|
-
`;
|
1070
|
+
`;di.displayName="Header.Link";var li=Object.assign(ni,{Link:di,Item:ii});const ci=s.h2`
|
1080
1071
|
font-weight: ${Cr("fontWeights.bold")};
|
1081
1072
|
font-size: ${Cr("fontSizes.5")};
|
1082
1073
|
margin: 0;
|
1083
1074
|
${Ar};
|
1084
1075
|
${Nr};
|
1085
1076
|
${rt};
|
1086
|
-
`;
|
1077
|
+
`;ci.defaultProps={theme:x};var si=ci;var fi=s.span`
|
1087
1078
|
${Nr}
|
1088
1079
|
& * {
|
1089
1080
|
margin-right: ${Cr("space.1")};
|
@@ -1092,7 +1083,7 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1092
1083
|
margin-right: 0;
|
1093
1084
|
}
|
1094
1085
|
${rt};
|
1095
|
-
`;const
|
1086
|
+
`;const gi=b(["margin-top:-1px;margin-bottom:-1px;color:",";border:"," solid ",";box-shadow:none;",";",";background-color:transparent;"],Cr("colors.fg.muted"),Cr("borderWidths.1"),Cr("colors.border.default"),cr,Nr),bi=ge({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"}}}),pi=s.span`
|
1096
1087
|
display: inline-block;
|
1097
1088
|
font-weight: ${Cr("fontWeights.semibold")};
|
1098
1089
|
color: ${Cr("colors.fg.onEmphasis")};
|
@@ -1102,17 +1093,17 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1102
1093
|
text-decoration: none;
|
1103
1094
|
}
|
1104
1095
|
|
1105
|
-
${
|
1096
|
+
${bi}
|
1106
1097
|
${Nr}
|
1107
1098
|
${e=>e.dropshadow?"box-shadow: inset 0 -1px 0 rgba(27, 31, 35, 0.12)":""}
|
1108
|
-
${e=>e.outline?
|
1099
|
+
${e=>e.outline?gi:""} // must be last to override other values
|
1109
1100
|
${rt}
|
1110
|
-
`;
|
1101
|
+
`;pi.defaultProps={bg:"label.primary.border",variant:"medium"};var ui=pi;const mi=L({hoverColor:{property:"color",scale:"colors"}});var hi=s.a`
|
1111
1102
|
color: ${e=>e.muted?Cr("colors.fg.muted")(e):Cr("colors.accent.fg")(e)};
|
1112
1103
|
text-decoration: ${e=>e.underline?"underline":"none"};
|
1113
1104
|
&:hover {
|
1114
1105
|
text-decoration: ${e=>e.muted?"none":"underline"};
|
1115
|
-
${e=>e.hoverColor?
|
1106
|
+
${e=>e.hoverColor?mi:e.muted?`color: ${Cr("colors.accent.fg")(e)}`:""};
|
1116
1107
|
}
|
1117
1108
|
&:is(button) {
|
1118
1109
|
display: inline-block;
|
@@ -1128,7 +1119,7 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1128
1119
|
${Ar};
|
1129
1120
|
${Nr};
|
1130
1121
|
${rt};
|
1131
|
-
`;var
|
1122
|
+
`;var xi=s.div`
|
1132
1123
|
position: relative;
|
1133
1124
|
padding-top: ${Cr("space.4")};
|
1134
1125
|
padding-bottom: ${Cr("space.4")};
|
@@ -1136,7 +1127,7 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1136
1127
|
border-bottom: 1px solid ${Cr("colors.border.default")};
|
1137
1128
|
${Nr};
|
1138
1129
|
${rt};
|
1139
|
-
`;const
|
1130
|
+
`;const vi=s.a`
|
1140
1131
|
display: inline-block;
|
1141
1132
|
min-width: 32px;
|
1142
1133
|
padding: 5px 10px;
|
@@ -1236,12 +1227,12 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1236
1227
|
}
|
1237
1228
|
|
1238
1229
|
${Nr};
|
1239
|
-
`;function
|
1230
|
+
`;function yi({theme:r,pageCount:t,currentPage:o,onPageChange:a,hrefBuilder:n,marginPageCount:i,showPages:d,surroundingPageCount:l}){const c=e.useCallback((e=>r=>a(r,e)),[a]),s=e.useMemo((()=>function(e,r,t,o,a){const n=[];if(t){const t=[],i=r=>{r>=1&&r<=e&&t.push(r)};let d=r-a,l=r+a;if(d<1&&l>e)d=1,l=e;else if(d<1)for(;d<1;)d++,l++;else if(l>e)for(;l>e;)d--,l--;for(let r=1;r<=o;r++){const t=r,o=e-(r-1);t>=d?l++:i(t),o<=l?d--:i(o)}for(let e=d;e<=l;e++)i(e);const c=t.slice().sort(((e,r)=>e-r)).filter(((e,r,t)=>!r||e!==t[r-1]));for(let e=0;e<c.length;e++){const t=c[e],o=t===r;0===e?(1!==t&&n.push({type:"BREAK",num:1}),n.push({type:"NUM",num:t,selected:o})):(1==t-c[e-1]||n.push({type:"BREAK",num:t-1}),n.push({type:"NUM",num:t,selected:o}))}const s=n[n.length-1];"NUM"===s.type&&s.num!==e&&n.push({type:"BREAK",num:e})}const i={type:"NEXT",num:r+1,disabled:r===e};return[{type:"PREV",num:r-1,disabled:1===r},...n,i]}(t,o,!!d,i,l)),[t,o,d,i,l]);return e.useMemo((()=>s.map((t=>{const{props:o,key:a,content:i}=function(e,r,t){const o={};let a="",n="";switch(e.type){case"PREV":n="page-prev",a="Previous",e.disabled?Object.assign(o,{as:"span","aria-disabled":"true"}):Object.assign(o,{rel:"prev",href:r(e.num),"aria-label":"Previous Page",onClick:t});break;case"NEXT":n="page-next",a="Next",e.disabled?Object.assign(o,{as:"span","aria-disabled":"true"}):Object.assign(o,{rel:"next",href:r(e.num),"aria-label":"Next Page",onClick:t});break;case"NUM":n=`page-${e.num}`,a=String(e.num),e.selected?Object.assign(o,{as:"em","aria-current":"page"}):Object.assign(o,{href:r(e.num),"aria-label":`Page ${e.num}`,onClick:t});break;case"BREAK":n=`page-${e.num}-break`,a="…",Object.assign(o,{as:"span","aria-disabled":!0})}return{props:o,key:n,content:a}}(t,n,c(t.num));return e.createElement(vi,Or({},o,{key:a,theme:r}),i)}))),[s,n,c,r])}const wi=s.nav`
|
1240
1231
|
margin-top: 20px;
|
1241
1232
|
margin-bottom: 15px;
|
1242
1233
|
text-align: center;
|
1243
1234
|
${rt};
|
1244
|
-
`;function
|
1235
|
+
`;function Bi({theme:r,pageCount:t,currentPage:o,onPageChange:a=ki,hrefBuilder:n=$i,marginPageCount:i=1,showPages:d=!0,surroundingPageCount:l=2,...c}){const s=yi({theme:r,pageCount:t,currentPage:o,onPageChange:a,hrefBuilder:n,marginPageCount:i,showPages:d,surroundingPageCount:l});return e.createElement(wi,Or({"aria-label":"Pagination"},c,{theme:r}),e.createElement(tt,{display:"inline-block",theme:r},s))}function $i(e){return`#${e}`}function ki(){}function Si(r){const{bg:t,border:o,borderColor:a,theme:n}=r,{caret:i,children:d,...l}=r,c={bg:t,borderColor:a,borderWidth:o,location:i,theme:n};return e.createElement(at,Or({sx:{position:"relative"}},l),d,e.createElement(xn,c))}Bi.displayName="Pagination",Bi.defaultProps={hrefBuilder:$i,marginPageCount:1,onPageChange:ki,showPages:!0,surroundingPageCount:2},Si.displayName="PointerBox";const Ti=s.div.attrs((({className:e,caret:r})=>({className:en(e,`caret-pos--${r}`)})))`
|
1245
1236
|
position: ${e=>e.relative?"relative":"absolute"};
|
1246
1237
|
z-index: 100;
|
1247
1238
|
display: ${e=>e.open?"block":"none"};
|
@@ -1250,7 +1241,7 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1250
1241
|
${Lr};
|
1251
1242
|
${Rr};
|
1252
1243
|
${rt};
|
1253
|
-
`,
|
1244
|
+
`,Ei=s(tt)`
|
1254
1245
|
border: 1px solid ${Cr("colors.border.default")};
|
1255
1246
|
border-radius: ${Cr("radii.2")};
|
1256
1247
|
position: relative;
|
@@ -1287,9 +1278,9 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1287
1278
|
}
|
1288
1279
|
|
1289
1280
|
// Bottom-oriented carets
|
1290
|
-
${
|
1291
|
-
${
|
1292
|
-
${
|
1281
|
+
${Ti}.caret-pos--bottom & ,
|
1282
|
+
${Ti}.caret-pos--bottom-right & ,
|
1283
|
+
${Ti}.caret-pos--bottom-left & {
|
1293
1284
|
&::before,
|
1294
1285
|
&::after {
|
1295
1286
|
top: auto;
|
@@ -1309,8 +1300,8 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1309
1300
|
}
|
1310
1301
|
|
1311
1302
|
// Top & Bottom: Right-oriented carets
|
1312
|
-
${
|
1313
|
-
${
|
1303
|
+
${Ti}.caret-pos--top-right & ,
|
1304
|
+
${Ti}.caret-pos--bottom-right & {
|
1314
1305
|
right: -9px;
|
1315
1306
|
margin-right: 0;
|
1316
1307
|
|
@@ -1330,8 +1321,8 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1330
1321
|
}
|
1331
1322
|
|
1332
1323
|
// Top & Bottom: Left-oriented carets
|
1333
|
-
${
|
1334
|
-
${
|
1324
|
+
${Ti}.caret-pos--top-left & ,
|
1325
|
+
${Ti}.caret-pos--bottom-left & {
|
1335
1326
|
left: -9px;
|
1336
1327
|
margin-left: 0;
|
1337
1328
|
|
@@ -1347,12 +1338,12 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1347
1338
|
}
|
1348
1339
|
|
1349
1340
|
// Right- & Left-oriented carets
|
1350
|
-
${
|
1351
|
-
${
|
1352
|
-
${
|
1353
|
-
${
|
1354
|
-
${
|
1355
|
-
${
|
1341
|
+
${Ti}.caret-pos--right & ,
|
1342
|
+
${Ti}.caret-pos--right-top & ,
|
1343
|
+
${Ti}.caret-pos--right-bottom & ,
|
1344
|
+
${Ti}.caret-pos--left & ,
|
1345
|
+
${Ti}.caret-pos--left-top & ,
|
1346
|
+
${Ti}.caret-pos--left-bottom & {
|
1356
1347
|
&::before,
|
1357
1348
|
&::after {
|
1358
1349
|
top: 50%;
|
@@ -1372,9 +1363,9 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1372
1363
|
}
|
1373
1364
|
|
1374
1365
|
// Right-oriented carets
|
1375
|
-
${
|
1376
|
-
${
|
1377
|
-
${
|
1366
|
+
${Ti}.caret-pos--right & ,
|
1367
|
+
${Ti}.caret-pos--right-top & ,
|
1368
|
+
${Ti}.caret-pos--right-bottom & {
|
1378
1369
|
&::before {
|
1379
1370
|
right: -${Cr("space.3")};
|
1380
1371
|
border-left-color: ${Cr("colors.border.default")};
|
@@ -1388,9 +1379,9 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1388
1379
|
}
|
1389
1380
|
|
1390
1381
|
// Left-oriented carets
|
1391
|
-
${
|
1392
|
-
${
|
1393
|
-
${
|
1382
|
+
${Ti}.caret-pos--left & ,
|
1383
|
+
${Ti}.caret-pos--left-top & ,
|
1384
|
+
${Ti}.caret-pos--left-bottom & {
|
1394
1385
|
&::before {
|
1395
1386
|
left: -${Cr("space.3")};
|
1396
1387
|
border-right-color: ${Cr("colors.border.default")};
|
@@ -1404,8 +1395,8 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1404
1395
|
}
|
1405
1396
|
|
1406
1397
|
// Right & Left: Top-oriented carets
|
1407
|
-
${
|
1408
|
-
${
|
1398
|
+
${Ti}.caret-pos--right-top & ,
|
1399
|
+
${Ti}.caret-pos--left-top & {
|
1409
1400
|
&::before,
|
1410
1401
|
&::after {
|
1411
1402
|
top: ${Cr("space.4")};
|
@@ -1413,8 +1404,8 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1413
1404
|
}
|
1414
1405
|
|
1415
1406
|
// Right & Left: Bottom-oriented carets
|
1416
|
-
${
|
1417
|
-
${
|
1407
|
+
${Ti}.caret-pos--right-bottom & ,
|
1408
|
+
${Ti}.caret-pos--left-bottom & {
|
1418
1409
|
&::before,
|
1419
1410
|
&::after {
|
1420
1411
|
top: auto;
|
@@ -1430,23 +1421,23 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1430
1421
|
}
|
1431
1422
|
|
1432
1423
|
${rt};
|
1433
|
-
`;
|
1424
|
+
`;Ti.defaultProps={caret:"top"},Ei.displayName="Popover.Content";var Ii=Object.assign(Ti,{Content:Ei});const Ci=s.span`
|
1434
1425
|
width: ${e=>e.progress?`${e.progress}%`:0};
|
1435
1426
|
${Nr}
|
1436
|
-
`,
|
1427
|
+
`,Ni={small:"5px",large:"10px",default:"8px"},Ai=s.span`
|
1437
1428
|
display: ${e=>e.inline?"inline-flex":"flex"};
|
1438
1429
|
overflow: hidden;
|
1439
1430
|
background-color: ${Cr("colors.border.default")};
|
1440
1431
|
border-radius: ${Cr("radii.1")};
|
1441
|
-
height: ${e=>
|
1432
|
+
height: ${e=>Ni[e.barSize||"default"]};
|
1442
1433
|
${Nr}
|
1443
1434
|
${me}
|
1444
1435
|
${rt};
|
1445
|
-
`;function
|
1446
|
-
${
|
1436
|
+
`;function zi({progress:r,bg:t,theme:o,...a}){return e.createElement(Ai,Or({theme:o},a),e.createElement(Ci,{progress:r,bg:t,theme:o}))}function Li(e,r,t){const n=o((o=>{const a=()=>{t(!0)},n=r=>{const t=Array.from(e.current.querySelectorAll('[role^="menuitem"]:not([hidden]):not([disabled]):not([aria-disabled="true"])')),o=document.activeElement,a=t.indexOf(o),n=r?t[a+1]:t[a-1],i=r?t[0]:t[t.length-1];return n||i};if(!(o instanceof KeyboardEvent))return;const i=o.target instanceof Element&&"SUMMARY"===o.target.tagName;switch(o.key){case"Escape":r&&((()=>{t(!1);const r=e.current.querySelector("summary");r&&r.focus()})(),o.preventDefault(),o.stopPropagation());break;case"ArrowDown":{i&&!r&&a();const e=n(!0);e&&e.focus(),o.preventDefault()}break;case"ArrowUp":{i&&!r&&a();const e=n(!1);e&&e.focus(),o.preventDefault()}break;case" ":case"Enter":{const r=document.activeElement;r&&(e=>{const r=e.getAttribute("role");return"menuitem"===r||"menuitemcheckbox"===r||"menuitemradio"===r})(r)&&r.closest("details")===e&&(o.preventDefault(),o.stopPropagation(),r.click())}}}),[e,r,t]);a((()=>{const r=e.current;if(r)return r.addEventListener("keydown",n),()=>{r.removeEventListener("keydown",n)}}),[e,n])}zi.displayName="ProgressBar",zi.defaultProps={bg:"bg.successInverse",barSize:"default"};const Ri=c({}),Hi=b(["padding:"," ",";margin:0;font-size:",";font-weight:",";color:",";background-color:",";border-bottom:"," solid ",";"],Cr("space.1"),Cr("space.3"),Cr("fontSizes.0"),Cr("fontWeights.bold"),Cr("colors.fg.muted"),Cr("colors.canvas.subtle"),Cr("borderWidths.1"),Cr("colors.border.muted")),Oi=s.div`
|
1437
|
+
${Hi}
|
1447
1438
|
${Nr}
|
1448
1439
|
${rt};
|
1449
|
-
`;
|
1440
|
+
`;Oi.displayName="SelectMenu.Divider";var Pi=Oi;const Mi=ge({variants:{small:{minHeight:"28px",px:2,py:"3px",fontSize:0,lineHeight:"20px"},large:{px:2,py:"10px",fontSize:3}}}),Di=s.input`
|
1450
1441
|
border: 0;
|
1451
1442
|
font-size: inherit;
|
1452
1443
|
font-family: inherit;
|
@@ -1457,7 +1448,7 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1457
1448
|
&:focus {
|
1458
1449
|
outline: 0;
|
1459
1450
|
}
|
1460
|
-
`,
|
1451
|
+
`,Fi=s.span`
|
1461
1452
|
display: inline-flex;
|
1462
1453
|
align-items: stretch;
|
1463
1454
|
min-height: 34px;
|
@@ -1499,9 +1490,9 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1499
1490
|
${me}
|
1500
1491
|
${xe}
|
1501
1492
|
${ye}
|
1502
|
-
${
|
1493
|
+
${Mi}
|
1503
1494
|
${rt};
|
1504
|
-
`,
|
1495
|
+
`,Wi=e.forwardRef((({icon:r,block:t,className:o,contrast:a,disabled:n,sx:i,theme:d,width:l,minWidth:c,maxWidth:s,variant:f,...g},b)=>{const p=en(o,"TextInput-wrapper");return e.createElement(Fi,{block:t,className:p,contrast:a,disabled:n,hasIcon:!!r,sx:i,theme:d,width:l,minWidth:c,maxWidth:s,variant:f},r&&e.createElement(r,{className:"TextInput-icon"}),e.createElement(Di,Or({ref:b,disabled:n},g)))}));Wi.defaultProps={type:"text"},Wi.displayName="TextInput";var ji=Wi;const Ui=s.form`
|
1505
1496
|
padding: ${Cr("space.3")};
|
1506
1497
|
margin: 0;
|
1507
1498
|
border-bottom: ${Cr("borderWidths.1")} solid ${Cr("colors.border.muted")};
|
@@ -1513,11 +1504,11 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1513
1504
|
}
|
1514
1505
|
|
1515
1506
|
${rt};
|
1516
|
-
`,
|
1517
|
-
${
|
1507
|
+
`,Gi=i((({theme:r,value:o,sx:n,...i},l)=>{const c=t(null),s=null!=l?l:c,{open:f}=d(Ri);return a((()=>{var e;f&&(null===(e=c.current)||void 0===e||e.focus())}),[f]),e.createElement(Ui,{theme:r,sx:n},e.createElement(ji,Or({theme:r,ref:s,width:"100%",block:!0,value:o,contrast:!0},i)))}));Gi.displayName="SelectMenu.Filter";var _i=Gi;const Ki=b(["margin-top:-1px;padding:"," ",";font-size:",";color:",";text-align:center;border-top:"," solid ",";@media (min-width:","){padding:"," ",";}"],Cr("space.2"),Cr("space.3"),Cr("fontSizes.0"),Cr("colors.fg.muted"),Cr("borderWidths.1"),Cr("colors.border.muted"),Cr("breakpoints.0"),Cr("space.1"),Cr("space.2")),Xi=s.footer`
|
1508
|
+
${Ki}
|
1518
1509
|
${Nr}
|
1519
1510
|
${rt};
|
1520
|
-
`;
|
1511
|
+
`;Xi.displayName="SelectMenu.Footer";var Vi=Xi;const Yi=s.h3`
|
1521
1512
|
color: ${Cr("colors.fg.default")};
|
1522
1513
|
flex: auto;
|
1523
1514
|
font-size: ${Cr("fontSizes.1")};
|
@@ -1527,7 +1518,7 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1527
1518
|
@media (min-width: ${Cr("breakpoints.0")}) {
|
1528
1519
|
font-size: inherit;
|
1529
1520
|
}
|
1530
|
-
`,
|
1521
|
+
`,qi=s.header`
|
1531
1522
|
display: flex;
|
1532
1523
|
flex: none; // fixes header from getting squeezed in Safari iOS
|
1533
1524
|
padding: ${Cr("space.3")};
|
@@ -1541,15 +1532,15 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1541
1532
|
}
|
1542
1533
|
|
1543
1534
|
${rt};
|
1544
|
-
`,
|
1545
|
-
${
|
1535
|
+
`,Ji=({children:r,theme:t,...o})=>e.createElement(qi,Or({theme:t},o),e.createElement(Yi,{theme:t},r));Ji.displayName="SelectMenuHeader",Ji.displayName="SelectMenu.Header";var Zi=Ji;const Qi=b(["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:",";}"],Cr("space.3"),Cr("colors.canvas.overlay"),Cr("borderWidths.1"),Cr("colors.border.muted"),Cr("colors.fg.muted"),Cr("fontSizes.0"),Cr("breakpoints.0"),Cr("space.2"),Cr("space.2"),Cr("space.3"),Cr("space.2"),Cr("colors.fg.default"),Cr("colors.neutral.subtle"),Cr("colors.canvas.subtle"),Cr("colors.selectMenu.tapHighlight")),ed=s.a.attrs((()=>({role:"menuitemcheckbox"})))`
|
1536
|
+
${Qi}
|
1546
1537
|
${Nr}
|
1547
1538
|
${rt};
|
1548
|
-
`,
|
1549
|
-
${
|
1539
|
+
`,rd=i((({children:r,selected:o,theme:a,onClick:n,...i},l)=>{const c=d(Ri),s=t(null),f=null!=l?l:s;return e.createElement(ed,Or({ref:f},i,{theme:a,onClick:e=>{var r;(n&&n(e),e.defaultPrevented)||(null===(r=c.setOpen)||void 0===r||r.call(c,!1))},"aria-checked":o}),e.createElement(No,{theme:a,className:"SelectMenu-icon SelectMenu-selected-icon",icon:to}),r)}));rd.defaultProps={selected:!1},rd.displayName="SelectMenu.Item";var td=rd;const od=b(["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:",";}}"],Cr("colors.canvas.overlay"),Cr("colors.selectMenu.tapFocusBg"),Cr("colors.fg.default"),Cr("colors.canvas.subtle"),Cr("colors.fg.default"),Cr("colors.canvas.subtle")),ad=s.div`
|
1540
|
+
${od}
|
1550
1541
|
${Nr}
|
1551
1542
|
${rt};
|
1552
|
-
`;
|
1543
|
+
`;ad.displayName="SelectMenu.List";var nd=ad;const id={small:"16px",medium:"32px",large:"64px"};function dd({size:r="medium",...t}){const o=id[r];return e.createElement("svg",Or({height:o,width:o,viewBox:"0 0 16 16",fill:"none"},t),e.createElement("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor",strokeOpacity:"0.25",strokeWidth:"2",vectorEffect:"non-scaling-stroke"}),e.createElement("path",{d:"M15 8a7.002 7.002 0 00-7-7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",vectorEffect:"non-scaling-stroke"}))}dd.displayName="Spinner";const ld=s(dd)`
|
1553
1544
|
@keyframes rotate-keyframes {
|
1554
1545
|
100% {
|
1555
1546
|
transform: rotate(360deg);
|
@@ -1560,42 +1551,42 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1560
1551
|
|
1561
1552
|
${Nr}
|
1562
1553
|
${rt}
|
1563
|
-
`;
|
1554
|
+
`;ld.displayName="Spinner";var cd=ld;const sd=s.div`
|
1564
1555
|
padding: ${Cr("space.6")} ${Cr("space.4")};
|
1565
1556
|
text-align: center;
|
1566
1557
|
background-color: ${Cr("colors.canvas.overlay")};
|
1567
1558
|
${Nr}
|
1568
|
-
`,
|
1569
|
-
${
|
1559
|
+
`,fd=r=>e.createElement(sd,r,e.createElement(cd,null));fd.displayName="SelectMenuLoadingAnimation";var gd=fd;const bd=u(["0%{opacity:0;transform:scale(0.9);}"]),pd=b(["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":""),Cr("colors.canvas.overlay"),Cr("radii.2"),Cr("shadows.shadow.small"),bd,Cr("breakpoints.0"),Cr("space.1"),Cr("space.3"),Cr("fontSizes.0"),Cr("borderWidths.1"),Cr("colors.border.default"),Cr("radii.2"),Cr("shadows.shadow.small")),ud=b(["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;}"],Cr("space.3"),Cr("colors.primer.canvas.backdrop"),Cr("breakpoints.0"),Cr("breakpoints.0"),(e=>"right"===e.align?"0":"auto")),md=s.div`
|
1560
|
+
${pd}
|
1570
1561
|
${me}
|
1571
|
-
`,
|
1572
|
-
${
|
1562
|
+
`,hd=s.div`
|
1563
|
+
${ud}
|
1573
1564
|
${Nr}
|
1574
1565
|
${rt};
|
1575
|
-
`,
|
1576
|
-
${
|
1566
|
+
`,xd=e.forwardRef((({children:r,theme:t,width:o,...a},n)=>e.createElement(hd,Or({theme:t},a,{role:"menu",ref:n}),e.createElement(md,{theme:t,width:o},r))));xd.defaultProps={align:"left",width:"300px"},xd.displayName="SelectMenu.Modal";var vd=xd;const yd=b(["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:",";}"],Cr("space.2"),Cr("space.3"),Cr("fontSizes.0"),Cr("colors.fg.muted"),Cr("colors.border.muted"),Cr("breakpoints.0"),Cr("space.1"),Cr("space.3"),Cr("borderWidths.1"),Cr("radii.2"),Cr("radii.2"),Cr("colors.text-primary"),Cr("colors.canvas.overlay"),Cr("colors.border.muted"),Cr("breakpoints.0"),Cr("colors.border.muted"),Cr("colors.neutral.subtle")),wd=s.button`
|
1567
|
+
${yd}
|
1577
1568
|
${Nr}
|
1578
1569
|
${rt};
|
1579
|
-
|
1570
|
+
`,Bd=({tabName:r="",index:t,className:o,onClick:n,...i})=>{const l=d(Ri);a((()=>{var e;l.selectedTab||0!==t||(null===(e=l.setSelectedTab)||void 0===e||e.call(l,r))}),[t,l,r]);const c=l.selectedTab===r;return e.createElement(wd,Or({role:"tab",className:en("SelectMenuTab",o),"aria-selected":c,onClick:e=>{var t;(n&&n(e),e.defaultPrevented)||(null===(t=l.setSelectedTab)||void 0===t||t.call(l,r))}},i),r)};Bd.displayName="SelectMenuTab",Bd.displayName="SelectMenu.Tab";var $d=Bd;const kd=s.div`
|
1580
1571
|
border-top: ${Cr("borderWidths.1")} solid ${Cr("colors.border.muted")};
|
1581
1572
|
${Nr}
|
1582
1573
|
${rt};
|
1583
|
-
`,
|
1584
|
-
${
|
1574
|
+
`,Sd=({tabName:r,className:t,children:o,...a})=>{const n=d(Ri);return e.createElement(kd,Or({role:"tabpanel",className:t,hidden:n.selectedTab!==r},a),e.createElement(nd,null,o))};Sd.displayName="TabPanel",Sd.displayName="SelectMenu.TabPanel";var Td=Sd;const Ed=b(["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:",";}"],Cr("breakpoints.0"),Cr("space.2"),Cr("space.3")),Id=s.div`
|
1575
|
+
${Ed}
|
1585
1576
|
${Nr}
|
1586
1577
|
${rt};
|
1587
|
-
`,
|
1578
|
+
`,Cd=({children:r,...t})=>e.createElement(Id,Or({role:"tablist"},t),r);Cd.displayName="SelectMenuTabs",Cd.displayName="SelectMenu.Tabs";var Nd=Cd;const Ad=s.details`
|
1588
1579
|
${"\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"}
|
1589
1580
|
${Nr}
|
1590
1581
|
${rt};
|
1591
|
-
`,
|
1582
|
+
`,zd=e.forwardRef((({children:n,initialTab:i="",as:d,...l},c)=>{const s=t(null),f=null!=c?c:s,[g,b]=r(i),[p,u]=r(!1),m={selectedTab:g,setSelectedTab:b,setOpen:u,open:p,initialTab:i},h=o((e=>{"current"in f&&f.current&&!f.current.contains(e.target)&&(e.defaultPrevented||u(!1))}),[f,u]);return a((()=>{if(p)return document.addEventListener("click",h),()=>{document.removeEventListener("click",h)}}),[p,h]),Li(f,p,u),e.createElement(Ri.Provider,{value:m},e.createElement(Ad,Or({ref:f},l,{open:p,onToggle:function(e){u(e.target.open)}}),n))}));zd.displayName="SelectMenu";var Ld=Object.assign(zd,{MenuContext:Ri,List:nd,Divider:Pi,Filter:_i,Footer:Vi,Item:td,Modal:vd,Tabs:Nd,Tab:$d,TabPanel:Td,Header:Zi,LoadingAnimation:gd});function Rd({variant:r,className:t,bordered:o,children:a,...n}){const i=en(t,`variant-${"lightweight"===r?"lightweight":"normal"}`);return o||(n={...n,borderWidth:0}),e.createElement(tt,Or({borderWidth:"1px",borderStyle:"solid",borderColor:"border.default",borderRadius:2,as:"nav",className:i},n),a)}Rd.displayName="SideNavBase";const Hd=s(Rd)`
|
1592
1583
|
background-color: ${Cr("colors.canvas.subtle")};
|
1593
1584
|
|
1594
1585
|
${e=>e.bordered&&b(["& > &{border-left:0;border-right:0;border-bottom:0;}"])}
|
1595
1586
|
|
1596
1587
|
${Nr};
|
1597
1588
|
${rt};
|
1598
|
-
`,
|
1589
|
+
`,Od=b(["background-color:",";outline:none;text-decoration:none;"],Cr("colors.neutral.subtle")),Pd=b(["color:",";text-decoration:none;outline:none;"],Cr("colors.fg.default")),Md=s(hi).attrs((e=>"string"==typeof e.to||e.selected?{"aria-current":"page"}:{}))`
|
1599
1590
|
position: relative;
|
1600
1591
|
display: block;
|
1601
1592
|
${e=>"full"===e.variant&&b(["display:flex;align-items:center;justify-content:space-between;"])}
|
@@ -1603,11 +1594,11 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1603
1594
|
text-align: left;
|
1604
1595
|
font-size: ${Cr("fontSizes.1")};
|
1605
1596
|
|
1606
|
-
& > ${
|
1597
|
+
& > ${Hd} {
|
1607
1598
|
border-bottom: none;
|
1608
1599
|
}
|
1609
1600
|
|
1610
|
-
${
|
1601
|
+
${Hd}.variant-normal > & {
|
1611
1602
|
color: ${Cr("colors.fg.default")};
|
1612
1603
|
padding: ${Cr("space.3")};
|
1613
1604
|
border: 0;
|
@@ -1637,11 +1628,11 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1637
1628
|
}
|
1638
1629
|
|
1639
1630
|
&:hover {
|
1640
|
-
${
|
1631
|
+
${Od}
|
1641
1632
|
}
|
1642
1633
|
|
1643
1634
|
&:focus {
|
1644
|
-
${
|
1635
|
+
${Od}
|
1645
1636
|
box-shadow: ${Cr("shadows.primer.shadow.focus")};
|
1646
1637
|
z-index: 1;
|
1647
1638
|
}
|
@@ -1657,16 +1648,16 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1657
1648
|
}
|
1658
1649
|
}
|
1659
1650
|
|
1660
|
-
${
|
1651
|
+
${Hd}.variant-lightweight > & {
|
1661
1652
|
padding: ${Cr("space.1")} 0;
|
1662
1653
|
color: ${Cr("colors.accent.fg")};
|
1663
1654
|
|
1664
1655
|
&:hover {
|
1665
|
-
${
|
1656
|
+
${Pd}
|
1666
1657
|
}
|
1667
1658
|
|
1668
1659
|
&:focus {
|
1669
|
-
${
|
1660
|
+
${Pd}
|
1670
1661
|
box-shadow: ${Cr("shadows.primer.shadow.focus")};
|
1671
1662
|
z-index: 1;
|
1672
1663
|
}
|
@@ -1679,7 +1670,7 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1679
1670
|
}
|
1680
1671
|
|
1681
1672
|
${rt};
|
1682
|
-
`;
|
1673
|
+
`;Hd.defaultProps={variant:"normal"},Md.defaultProps={variant:"normal"},Md.displayName="SideNav.Link";var Dd=Object.assign(Hd,{Link:Md});const Fd={issueOpened:io,pullOpened:ao,issueClosed:no,pullClosed:ao,pullMerged:oo,draft:ao},Wd=ge({prop:"status",variants:{issueClosed:{backgroundColor:"prState.closed.bg",color:"prState.closed.text",borderColor:"prState.closed.border"},pullClosed:{backgroundColor:"prState.closed.bg",color:"prState.closed.text",borderColor:"prState.closed.border"},pullMerged:{backgroundColor:"prState.merged.bg",color:"prState.merged.text",borderColor:"prState.merged.border"},issueOpened:{backgroundColor:"prState.open.bg",color:"prState.open.text",borderColor:"prState.open.border"},pullOpened:{backgroundColor:"prState.open.bg",color:"prState.open.text",borderColor:"prState.open.border"},draft:{backgroundColor:"prState.draft.bg",color:"prState.draft.text",borderColor:"prState.draft.border"}}}),jd=ge({prop:"variant",variants:{small:{paddingX:2,paddingY:1,fontSize:0},normal:{paddingX:"12px",paddingY:2,fontSize:1}}}),Ud=s.span`
|
1683
1674
|
display: inline-flex;
|
1684
1675
|
align-items: center;
|
1685
1676
|
font-weight: ${Cr("fontWeights.bold")};
|
@@ -1689,11 +1680,11 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1689
1680
|
border-radius: ${Cr("radii.3")};
|
1690
1681
|
border-width: 1px;
|
1691
1682
|
border-style: solid;
|
1683
|
+
${Wd};
|
1692
1684
|
${jd};
|
1693
|
-
${Ud};
|
1694
1685
|
${Nr};
|
1695
1686
|
${rt};
|
1696
|
-
`;function
|
1687
|
+
`;function Gd({children:r,status:t,variant:o,...a}){const n="small"===o?{width:"1em"}:{};return e.createElement(Ud,Or({},a,{variant:o,status:t}),t&&e.createElement(No,Or({mr:1},n,{icon:Fd[t]||lo})),r)}Gd.displayName="StateLabel",Gd.defaultProps={variant:"normal"};const _d=s.nav`
|
1697
1688
|
display: flex;
|
1698
1689
|
justify-content: space-between;
|
1699
1690
|
|
@@ -1717,7 +1708,7 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1717
1708
|
${Nr};
|
1718
1709
|
${Hr};
|
1719
1710
|
${rt};
|
1720
|
-
`;function
|
1711
|
+
`;function Kd({actions:r,className:t,children:o,label:a,...n}){const i=en(t,"SubNav");return e.createElement(_d,Or({className:i,"aria-label":a},n),e.createElement("div",{className:"SubNav-body"},o),r&&e.createElement("div",{className:"SubNav-actions"},r))}function Xd(r){return e.createElement(tt,Or({display:"flex"},r))}Kd.displayName="SubNav",Xd.displayName="SubNavLinks";const Vd=s.a.attrs((e=>({activeClassName:"string"==typeof e.to?"selected":"",className:en("SubNav-item",e.selected&&"selected",e.className)})))`
|
1721
1712
|
padding-left: ${Cr("space.3")};
|
1722
1713
|
padding-right: ${Cr("space.3")};
|
1723
1714
|
font-weight: ${Cr("fontWeights.semibold")};
|
@@ -1766,16 +1757,16 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1766
1757
|
|
1767
1758
|
${Nr};
|
1768
1759
|
${rt};
|
1769
|
-
`;
|
1760
|
+
`;Vd.displayName="SubNav.Link",Xd.displayName="SubNav.Links";var Yd=Object.assign(Kd,{Link:Vd,Links:Xd});const qd=s.div`
|
1770
1761
|
margin-top: 0;
|
1771
1762
|
border-bottom: 1px solid ${Cr("colors.border.default")};
|
1772
1763
|
${Nr}
|
1773
1764
|
${rt}
|
1774
|
-
`,
|
1765
|
+
`,Jd=s.nav`
|
1775
1766
|
display: flex;
|
1776
1767
|
margin-bottom: -1px;
|
1777
1768
|
overflow: auto;
|
1778
|
-
`;function
|
1769
|
+
`;function Zd({children:r,"aria-label":t,...o}){return e.createElement(qd,o,e.createElement(Jd,{"aria-label":t},r))}Zd.displayName="TabNav";const Qd=s.a.attrs((e=>({activeClassName:"string"==typeof e.to?"selected":"",className:en("TabNav-item",e.selected&&"selected",e.className)})))`
|
1779
1770
|
padding: 8px 12px;
|
1780
1771
|
font-size: ${Cr("fontSizes.1")};
|
1781
1772
|
line-height: 20px;
|
@@ -1801,13 +1792,13 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1801
1792
|
|
1802
1793
|
${Nr};
|
1803
1794
|
${rt};
|
1804
|
-
`;
|
1795
|
+
`;Qd.displayName="TabNav.Link";var el=Object.assign(Zd,{Link:Qd});const rl=s(tt)`
|
1805
1796
|
display: flex;
|
1806
1797
|
flex-direction: column;
|
1807
1798
|
${e=>e.clipSidebar&&b([".Timeline-Item:first-child{padding-top:0;}.Timeline-Item:last-child{padding-bottom:0;}"])}
|
1808
1799
|
|
1809
1800
|
${rt};
|
1810
|
-
`,
|
1801
|
+
`,tl=s(tt).attrs((e=>({className:en("Timeline-Item",e.className)})))`
|
1811
1802
|
display: flex;
|
1812
1803
|
position: relative;
|
1813
1804
|
padding: ${Cr("space.3")} 0;
|
@@ -1828,7 +1819,7 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1828
1819
|
|
1829
1820
|
${Nr};
|
1830
1821
|
${rt};
|
1831
|
-
`,
|
1822
|
+
`,ol=r=>e.createElement(tt,{position:"relative",zIndex:1},e.createElement(tt,Or({display:"flex",className:en(r.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"},r),r.children));ol.displayName="TimelineBadge";const al=s(tt)`
|
1832
1823
|
min-width: 0;
|
1833
1824
|
max-width: 100%;
|
1834
1825
|
margin-top: ${Cr("space.1")};
|
@@ -1836,7 +1827,7 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1836
1827
|
flex: auto;
|
1837
1828
|
font-size: ${Cr("fontSizes.1")};
|
1838
1829
|
${rt};
|
1839
|
-
`,
|
1830
|
+
`,nl=s(tt)`
|
1840
1831
|
position: relative
|
1841
1832
|
z-index: 1;
|
1842
1833
|
height: 24px;
|
@@ -1847,7 +1838,7 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
1847
1838
|
border: 0;
|
1848
1839
|
border-top: ${Cr("space.1")} solid ${Cr("colors.border.default")};
|
1849
1840
|
${rt};
|
1850
|
-
`;
|
1841
|
+
`;tl.displayName="Timeline.Item",ol.displayName="Timeline.Badge",al.displayName="Timeline.Body",nl.displayName="Timeline.Break";var il=Object.assign(rl,{Item:tl,Badge:ol,Body:al,Break:nl});const dl=s.span`
|
1851
1842
|
position: relative;
|
1852
1843
|
|
1853
1844
|
&::before {
|
@@ -2073,7 +2064,7 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
2073
2064
|
}
|
2074
2065
|
${Nr};
|
2075
2066
|
${rt};
|
2076
|
-
`;function
|
2067
|
+
`;function ll({direction:r="n",children:t,className:o,text:a,noDelay:n,align:i,wrap:d,...l}){const c=en(o,`tooltipped-${r}`,i&&`tooltipped-align-${i}-2`,n&&"tooltipped-no-delay",d&&"tooltipped-multiline");return e.createElement(dl,Or({role:"tooltip","aria-label":a},l,{className:c}),t)}ll.displayName="Tooltip",ll.alignments=["left","right"],ll.directions=["n","ne","e","se","s","sw","w","nw"];const cl=s.nav`
|
2077
2068
|
display: flex;
|
2078
2069
|
justify-content: space-between;
|
2079
2070
|
border-bottom: 1px solid ${Cr("colors.border.muted")};
|
@@ -2104,7 +2095,7 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
2104
2095
|
|
2105
2096
|
${Nr};
|
2106
2097
|
${rt};
|
2107
|
-
`;function
|
2098
|
+
`;function sl({actions:r,className:t,align:o,children:a,full:n,label:i,theme:d,...l}){const c=en(t,"UnderlineNav",o&&`UnderlineNav--${o}`,n&&"UnderlineNav--full");return e.createElement(cl,Or({className:c,"aria-label":i,theme:d},l),e.createElement("div",{className:"UnderlineNav-body"},a),r&&e.createElement("div",{className:"UnderlineNav-actions"},r))}sl.displayName="UnderlineNav";const fl=s.a.attrs((e=>({activeClassName:"string"==typeof e.to?"selected":"",className:en("UnderlineNav-item",e.selected&&"selected",e.className)})))`
|
2108
2099
|
padding: ${Cr("space.3")} ${Cr("space.2")};
|
2109
2100
|
margin-right: ${Cr("space.3")};
|
2110
2101
|
font-size: ${Cr("fontSizes.1")};
|
@@ -2137,5 +2128,5 @@ Za=en,function(){var e={}.hasOwnProperty;function r(){for(var t=[],o=0;o<argumen
|
|
2137
2128
|
|
2138
2129
|
${Nr};
|
2139
2130
|
${rt};
|
2140
|
-
`;
|
2131
|
+
`;fl.displayName="UnderlineNav.Link";var gl=Object.assign(sl,{Link:fl});export{ft as Absolute,Oa as ActionList,Ka as ActionMenu,Va as Avatar,Za as AvatarPair,on as AvatarStack,Dr as BaseStyles,at as BorderBox,tt as Box,an as BranchName,fn as Breadcrumb,sn as Breadcrumbs,_t as Button,go as ButtonClose,Kt as ButtonDanger,Vt as ButtonGroup,Jt as ButtonInvisible,Yt as ButtonOutline,qt as ButtonPrimary,Zt as ButtonTableList,xn as Caret,Bn as CircleBadge,$n as CircleOcticon,fa as ConfirmationDialog,kn as CounterLabel,Tn as Details,On as Dialog,Gn as Dropdown,_n as DropdownButton,Kn as DropdownMenu,Zn as FilterList,Xn as FilteredSearch,gt as Fixed,ri as Flash,it as Flex,ai as FormGroup,lt as Grid,li as Header,si as Heading,ui as Label,fi as LabelGroup,hi as Link,Wa as Overlay,xi as Pagehead,Bi as Pagination,Si as PointerBox,Ii as Popover,st as Position,zi as ProgressBar,bt as Relative,Mo as SSRProvider,Ld as SelectMenu,Dd as SideNav,cd as Spinner,Gd as StateLabel,pt as Sticky,No as StyledOcticon,Yd as SubNav,el as TabNav,Cn as Text,ji as TextInput,et as ThemeProvider,il as Timeline,ll as Tooltip,xa as Truncate,gl as UnderlineNav,x as theme,Cr as themeGet,Zr as useColorSchemeVar,ga as useConfirm,ut as useDetails,Et as useOnEscapePress,yt as useOnOutsideClick,kt as useOpenAndCloseFocus,Ct as useOverlay,Fo as useSSRSafeId,mt as useSafeTimeout,Jr as useTheme};
|
2141
2132
|
//# sourceMappingURL=browser.esm.js.map
|