@primer/components 0.0.0-2021103224249 → 0.0.0-2021103225712
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 +187 -197
- package/dist/browser.esm.js.map +1 -1
- package/dist/browser.umd.js +189 -199
- package/dist/browser.umd.js.map +1 -1
- 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/Tooltip.d.ts +2 -1
- package/lib/Tooltip.js +1 -1
- 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/lib-esm/Tooltip.d.ts +2 -1
- package/lib-esm/Tooltip.js +2 -2
- package/package.json +1 -1
package/dist/browser.umd.js
CHANGED
@@ -19,10 +19,10 @@
|
|
19
19
|
`,Ct=i.default.div`
|
20
20
|
${wt};
|
21
21
|
${yt};
|
22
|
-
`;function zt(e){const{children:t,...r}=e;return require("focus-visible"),n.default.createElement(Ct,Tt({},r,{"data-portal-root":!0}),n.default.createElement(Et,null),t)}zt.displayName="BaseStyles",zt.defaultProps={color:"fg.default",fontFamily:"normal",lineHeight:"default"};var Rt=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Nt}(e)}(e)};var Nt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function At(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Pt((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function It(e,t,r){return e.concat(t).map((function(e){return At(e,r)}))}function Lt(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function Ot(e,t){try{return t in e}catch(e){return!1}}function Mt(e,t,r){var a={};return r.isMergeableObject(e)&&Lt(e).forEach((function(t){a[t]=At(e[t],r)})),Lt(t).forEach((function(o){(function(e,t){return Ot(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(Ot(e,o)&&r.isMergeableObject(t[o])?a[o]=function(e,t){if(!t.customMerge)return Pt;var r=t.customMerge(e);return"function"==typeof r?r:Pt}(o,r)(e[o],t[o],r):a[o]=At(t[o],r))})),a}function Pt(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||It,r.isMergeableObject=r.isMergeableObject||Rt,r.cloneUnlessOtherwiseSpecified=At;var a=Array.isArray(t);return a===Array.isArray(e)?a?r.arrayMerge(e,t,r):Mt(e,t,r):At(t,r)}Pt.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return Pt(e,r,t)}),{})};var Ht=Pt;const Dt="light",Wt="dark",Ft=n.default.createContext({setColorMode:()=>null,setDayScheme:()=>null,setNightScheme:()=>null}),_t=({children:e,...t})=>{var a,o,i,l,s,c,f,u;const{theme:g,colorMode:p,dayScheme:b,nightScheme:m}=jt(),h=null!==(a=null!==(o=t.theme)&&void 0!==o?o:g)&&void 0!==a?a:d,[v,x]=n.default.useState(null!==(i=null!==(l=t.colorMode)&&void 0!==l?l:p)&&void 0!==i?i:"day"),[y,w]=n.default.useState(null!==(s=null!==(c=t.dayScheme)&&void 0!==c?c:b)&&void 0!==s?s:Dt),[B,k]=n.default.useState(null!==(f=null!==(u=t.nightScheme)&&void 0!==u?u:m)&&void 0!==f?f:Wt),$=function(e,t){switch(e){case"auto":return t;default:return e}}(v,function(){const[e,t]=n.default.useState(Gt);return n.default.useEffect((()=>{var e,r;const a=null===(e=window)||void 0===e||null===(r=e.matchMedia)||void 0===r?void 0:r.call(e,"(prefers-color-scheme: dark)");function o(e){const r=e.matches;t(r?"night":"day")}if(a){if(void 0!==a.addEventListener)return a.addEventListener("change",o),function(){a.removeEventListener("change",o)};if(void 0!==a.addListener)return a.addListener(o),function(){a.removeListener(o)}}}),[]),e}()),S=function(e,t,r){switch(e){case"day":return t;case"night":return r}}($,y,B),T=n.default.useMemo((()=>function(e,t){if(!e.colorSchemes)return e;if(!e.colorSchemes[t]){console.error(`\`${t}\` scheme not defined in \`theme.colorSchemes\``);const r=Object.keys(e.colorSchemes)[0];return Ht(e,e.colorSchemes[r])}return Ht(e,e.colorSchemes[t])}(h,S)),[h,S]);return n.default.useEffect((()=>{var e,r;x(null!==(e=null!==(r=t.colorMode)&&void 0!==r?r:p)&&void 0!==e?e:"day")}),[t.colorMode,p]),n.default.useEffect((()=>{var e,r;w(null!==(e=null!==(r=t.dayScheme)&&void 0!==r?r:b)&&void 0!==e?e:Dt)}),[t.dayScheme,b]),n.default.useEffect((()=>{var e,r;k(null!==(e=null!==(r=t.nightScheme)&&void 0!==r?r:m)&&void 0!==e?e:Wt)}),[t.nightScheme,m]),n.default.createElement(Ft.Provider,{value:{theme:T,colorScheme:S,colorMode:v,resolvedColorMode:$,dayScheme:y,nightScheme:B,setColorMode:x,setDayScheme:w,setNightScheme:k}},n.default.createElement(r.ThemeProvider,{theme:T},e))};function jt(){return n.default.useContext(Ft)}function Ut(e,t){var r;const{colorScheme:a=""}=jt();return null!==(r=e[a])&&void 0!==r?r:t}function Gt(){var e,t,r;return"undefined"!=typeof window&&null!==(e=(t=window).matchMedia)&&void 0!==e&&null!==(r=e.call(t,"(prefers-color-scheme: dark)"))&&void 0!==r&&r.matches?"night":"day"}_t.displayName="ThemeProvider";var Vt=_t;var Kt=e=>te(e.sx);var qt=i.default.div(U,E,C,S,z,N,O,I,P,G,Kt);const Xt=i.default(qt)``;Xt.defaultProps={borderWidth:"1px",borderStyle:"solid",borderColor:"border.default",borderRadius:2};var Yt=Xt;const Jt=i.default(qt)``;Jt.defaultProps={display:"flex"};var Zt=Jt;const Qt=i.default(qt)``;Qt.defaultProps={display:"grid"};var er=Qt;const tr=i.default(qt)``;var rr=tr;const ar=n.default.forwardRef(((e,t)=>n.default.createElement(tr,Tt({},e,{position:"absolute",ref:t}))));ar.displayName="Absolute";const or=n.default.forwardRef(((e,t)=>n.default.createElement(tr,Tt({},e,{position:"fixed",ref:t}))));or.displayName="Fixed";const nr=n.default.forwardRef(((e,t)=>n.default.createElement(tr,Tt({},e,{position:"relative",ref:t}))));nr.displayName="Relative";const ir=n.default.forwardRef(((e,t)=>n.default.createElement(tr,Tt({},e,{position:"sticky",ref:t}))));function lr({ref:e,closeOnOutsideClick:r,defaultOpen:a,onClickOutside:o}){const[n,i]=t.useState(a),l=t.useRef(null),d=null!=e?e:l,s=t.useCallback((e=>{const{current:t}=d;e.target.closest("details")!==t&&(o&&o(e),e.defaultPrevented||i(!1))}),[d,i,o]);t.useEffect((()=>{if(n&&r)return document.addEventListener("click",s),()=>{document.removeEventListener("click",s)}}),[n,r,s]);const c=e=>{if(!e.defaultPrevented){const t=e.target;i(t.open)}};return{open:n,setOpen:i,getDetailsProps:()=>({onToggle:c,open:n,ref:d})}}ir.defaultProps={top:0,zIndex:1},ir.displayName="Sticky";const dr=!0;function sr(e){if(!e.defaultPrevented)for(const t of Object.values(cr).reverse())if(t(e)===dr||e.defaultPrevented)break}const cr={};let fr=0;const ur=({containerRef:e,ignoreClickRefs:r,onClickOutside:a})=>{const o=t.useMemo((()=>fr++),[]),n=t.useCallback((t=>{var o;return t instanceof MouseEvent&&t.button>0||null!==(o=e.current)&&void 0!==o&&o.contains(t.target)||r&&r.some((({current:e})=>null==e?void 0:e.contains(t.target)))?dr:void a(t)}),[e,r,a]);t.useEffect((()=>(0===Object.keys(cr).length&&document.addEventListener("mousedown",sr,{capture:!0}),function(e,t){cr[e]=t}(o,n),()=>{!function(e){delete cr[e]}(o),0===Object.keys(cr).length&&document.removeEventListener("mousedown",sr,{capture:!0})})),[o,n])};function*gr(e,t={}){var r,a;const o=null!==(r=t.strict)&&void 0!==r&&r,n=null!==(a=t.onlyTabbable)&&void 0!==a&&a?br:pr,i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e instanceof HTMLElement&&n(e,o)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});let l=null;if(!t.reverse&&n(e,o)&&(yield e),t.reverse){let e=i.lastChild();for(;e;)l=e,e=i.lastChild()}else l=i.firstChild();for(;l instanceof HTMLElement;)yield l,l=t.reverse?i.previousNode():i.nextNode();t.reverse&&n(e,o)&&(yield e)}function pr(e,t=!1){const r=["BUTTON","INPUT","SELECT","TEXTAREA","OPTGROUP","OPTION","FIELDSET"].includes(e.tagName)&&e.disabled,a=e.hidden,o=e instanceof HTMLInputElement&&"hidden"===e.type;if(r||a||o)return!1;if(t){const t=0===e.offsetWidth||0===e.offsetHeight,r=["hidden","collapse"].includes(getComputedStyle(e).visibility),a=0===e.getClientRects().length;if(t||r||a)return!1}return null!=e.getAttribute("tabindex")||!(e instanceof HTMLAnchorElement&&null==e.getAttribute("href"))&&-1!==e.tabIndex}function br(e,t=!1){return pr(e,t)&&"-1"!==e.getAttribute("tabindex")}function mr({initialFocusRef:e,returnFocusRef:r,containerRef:a,preventFocusOnOpen:o}){t.useEffect((()=>{if(o)return;const t=r.current;if(e&&e.current)e.current.focus();else if(a.current){const e=gr(a.current).next().value;null==e||e.focus()}return function(){null==t||t.focus()}}),[e,r,a,o])}const hr=[];function vr(e){if("Escape"===e.key&&!e.defaultPrevented)for(let t=hr.length-1;t>=0&&(hr[t](e),!e.defaultPrevented);--t);}const xr=(e,r=[e])=>{const a=t.useCallback(e,r);t.useEffect((()=>(0===hr.length&&document.addEventListener("keydown",vr),hr.push(a),()=>{hr.splice(hr.findIndex((e=>e===a)),1),0===hr.length&&document.removeEventListener("keydown",vr)})),[a])};function yr(e){const t=n.default.useRef(null);return null!=e?e:t}const wr=({overlayRef:e,returnFocusRef:t,initialFocusRef:r,onEscape:a,ignoreClickRefs:o,onClickOutside:n,preventFocusOnOpen:i})=>{const l=yr(e);return mr({containerRef:l,returnFocusRef:t,initialFocusRef:r,preventFocusOnOpen:i}),ur({containerRef:l,ignoreClickRefs:o,onClickOutside:n}),xr(a),{ref:l}};let Br,kr=!1;function $r(){}try{const e=Object.create({},{signal:{get(){kr=!0}}});window.addEventListener("test",$r,e),window.removeEventListener("test",$r,e)}catch(Fd){}function Sr(){kr||(!function(){if("undefined"==typeof window)return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,r,a){return"object"==typeof a&&"signal"in a&&a.signal instanceof AbortSignal&&e.call(a.signal,"abort",(()=>{this.removeEventListener(t,r,a)})),e.call(this,t,r,a)}}(),kr=!0)}function Tr(){return void 0===Br&&(Br=/^mac/i.test(window.navigator.platform)),Br}let Er,Cr=1e4;function zr(){return"__primer_id_"+Cr++}Sr(),function(e){e[e.ArrowHorizontal=1]="ArrowHorizontal",e[e.ArrowVertical=2]="ArrowVertical",e[e.JK=4]="JK",e[e.HL=8]="HL",e[e.HomeAndEnd=16]="HomeAndEnd",e[e.PageUpDown=256]="PageUpDown",e[e.WS=32]="WS",e[e.AD=64]="AD",e[e.Tab=128]="Tab",e[e.ArrowAll=e.ArrowHorizontal|e.ArrowVertical]="ArrowAll",e[e.HJKL=e.HL|e.JK]="HJKL",e[e.WASD=e.WS|e.AD]="WASD",e[e.All=e.ArrowAll|e.HJKL|e.HomeAndEnd|e.PageUpDown|e.WASD|e.Tab]="All"}(Er||(Er={}));const Rr={ArrowLeft:Er.ArrowHorizontal,ArrowDown:Er.ArrowVertical,ArrowUp:Er.ArrowVertical,ArrowRight:Er.ArrowHorizontal,h:Er.HL,j:Er.JK,k:Er.JK,l:Er.HL,a:Er.AD,s:Er.WS,w:Er.WS,d:Er.AD,Tab:Er.Tab,Home:Er.HomeAndEnd,End:Er.HomeAndEnd,PageUp:Er.PageUpDown,PageDown:Er.PageUpDown},Nr={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 Ar(e){const t=Nr[e.key];if("Tab"===e.key&&e.shiftKey)return"previous";const r=Tr();if(r&&e.metaKey||!r&&e.ctrlKey){if("ArrowLeft"===e.key||"ArrowUp"===e.key)return"start";if("ArrowRight"===e.key||"ArrowDown"===e.key)return"end"}return t}const Ir="data-is-active-descendant",Lr="activated-directly",Or="activated-indirectly",Mr="data-has-active-descendant";function Pr(e,t){var r,a,o,n;const i=[],l=new WeakMap,d=null!==(r=null==t?void 0:t.bindKeys)&&void 0!==r?r:(null!=t&&t.getNextFocusable?Er.ArrowAll:Er.ArrowVertical)|Er.HomeAndEnd,s=null!==(a=null==t?void 0:t.focusOutBehavior)&&void 0!==a?a:"stop",c=null!==(o=null==t?void 0:t.focusInStrategy)&&void 0!==o?o:"previous",f=null==t?void 0:t.activeDescendantControl,u=null==t?void 0:t.onActiveDescendantChanged;let g;function p(){return i[0]}function b(e,t=!1){const r=g;g=e,f?e&&document.activeElement===f?m(r,e,t):h():(r&&r!==e&&l.has(r)&&r.setAttribute("tabindex","-1"),null==e||e.setAttribute("tabindex","0"))}function m(t,r,a=!1){r.id||r.setAttribute("id",zr()),t&&t!==r&&t.removeAttribute(Ir),f&&(a||f.getAttribute("aria-activedescendant")!==r.id)&&(f.setAttribute("aria-activedescendant",r.id),e.setAttribute(Mr,r.id),r.setAttribute(Ir,a?Lr:Or),null==u||u(r,t,a))}function h(t=g){"first"===c&&(g=void 0),null==f||f.removeAttribute("aria-activedescendant"),e.removeAttribute(Mr),null==t||t.removeAttribute(Ir),null==u||u(void 0,t,!1)}function v(...e){const r=e.filter((e=>{var r,a;return null===(r=null==t||null===(a=t.focusableElementFilter)||void 0===a?void 0:a.call(t,e))||void 0===r||r}));if(0===r.length)return;const a=i.findIndex((e=>(e.compareDocumentPosition(r[0])&Node.DOCUMENT_POSITION_PRECEDING)>0));i.splice(-1===a?i.length:a,0,...r);for(const e of r)l.has(e)||l.set(e,e.getAttribute("tabindex")),e.setAttribute("tabindex","-1");g||b(p())}function x(...e){for(const t of e){const e=i.indexOf(t);e>=0&&i.splice(e,1);const r=l.get(t);if(void 0!==r&&(null===r?t.removeAttribute("tabindex"):t.setAttribute("tabindex",r),l.delete(t)),t===g){b(p())}}}v(...gr(e)),b(p());new MutationObserver((e=>{for(const t of e)for(const e of t.removedNodes)e instanceof HTMLElement&&x(...gr(e));for(const t of e)for(const e of t.addedNodes)e instanceof HTMLElement&&v(...gr(e))})).observe(e,{subtree:!0,childList:!0});const y=new AbortController,w=null!==(n=null==t?void 0:t.abortSignal)&&void 0!==n?n:y.signal;let B;w.addEventListener("abort",(()=>{x(...i)})),e.addEventListener("mousedown",(e=>{e.target instanceof HTMLElement&&e.target!==document.activeElement&&(B=i.indexOf(e.target))}),{signal:w}),f?(e.addEventListener("focusin",(e=>{e.target instanceof HTMLElement&&i.includes(e.target)&&(f.focus(),b(e.target))})),e.addEventListener("mousemove",(({target:e})=>{if(!(e instanceof Node))return;const t=i.find((t=>t.contains(e)));t&&b(t)}),{signal:w,capture:!0}),f.addEventListener("focusin",(()=>{g?m(void 0,g):b(p())})),f.addEventListener("focusout",(()=>{h()}))):e.addEventListener("focusin",(t=>{if(t.target instanceof HTMLElement)if(void 0!==B)B>=0&&i[B]!==g&&b(i[B]),B=void 0;else if("previous"===c)b(t.target);else if("closest"===c||"first"===c){if(t.relatedTarget instanceof Element&&!e.contains(t.relatedTarget)){const e="previous"===$?i.length-1:0,t=i[e];return void(null==t||t.focus())}b(t.target)}else if("function"==typeof c)if(t.relatedTarget instanceof Element&&!e.contains(t.relatedTarget)){const e=c(t.relatedTarget);if((e?i.indexOf(e):-1)>=0&&e instanceof HTMLElement)return void e.focus();console.warn("Element requested is not a known focusable element.")}else b(t.target);$=void 0}),{signal:w});const k=null!=f?f:e;let $;return"closest"===c&&document.addEventListener("keydown",(e=>{"Tab"===e.key&&($=Ar(e))}),{signal:w,capture:!0}),k.addEventListener("keydown",(r=>{if(r.key in Nr){const o=Rr[r.key];if(!r.defaultPrevented&&(o&d)>0&&!function(e,t){const r=e.key,a=[...r].length,o=t instanceof HTMLInputElement&&"text"===t.type||t instanceof HTMLTextAreaElement;if(o&&(1===a||"Home"===r||"End"===r))return!0;if(t instanceof HTMLSelectElement){if(1===a)return!0;if("ArrowDown"===r&&Tr()&&!e.metaKey)return!0;if("ArrowDown"===r&&!Tr()&&e.altKey)return!0}if(t instanceof HTMLTextAreaElement&&("PageUp"===r||"PageDown"===r))return!0;if(o){const e=t,a=0===e.selectionStart&&0===e.selectionEnd,o=e.selectionStart===e.value.length&&e.selectionEnd===e.value.length;if("ArrowLeft"===r&&!a)return!0;if("ArrowRight"===r&&!o)return!0;if(e instanceof HTMLTextAreaElement){if("ArrowUp"===r&&!a)return!0;if("ArrowDown"===r&&!o)return!0}}return!1}(r,document.activeElement)){const o=Ar(r);let n;var a;if(null!=t&&t.getNextFocusable)n=t.getNextFocusable(o,null!==(a=document.activeElement)&&void 0!==a?a:void 0,r);if(!n){const t=function(){if(!g)return 0;const t=i.indexOf(g);return-1!==t?t:g===e?-1:0}();let a=t;"previous"===o?a-=1:"start"===o?a=0:"next"===o?a+=1:a=i.length-1,a<0&&(a="wrap"===s&&"Tab"!==r.key?i.length-1:0),a>=i.length&&(a="wrap"===s&&"Tab"!==r.key?0:i.length-1),t!==a&&(n=i[a])}f?b(n||g,!0):n&&($=o,n.focus()),("Tab"!==r.key||n)&&r.preventDefault()}}}),{signal:w}),y}var Hr=r.css(["position:relative;display:inline-block;padding:6px 16px;font-family:inherit;font-weight:",";line-height:20px;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;border-radius:",";appearance:none;text-decoration:none;text-align:center;&:hover{text-decoration:none;}&:focus{outline:none;}&:disabled{cursor:default;}&:disabled svg{opacity:0.6;}"],xt("fontWeights.bold"),xt("radii.2"));const Dr=$(xe,yt,kt),Wr=re({variants:{small:{p:"4px 12px",fontSize:0},medium:{fontSize:1},large:{fontSize:2,p:"10px 20px"}}}),Fr=i.default.button.attrs((({disabled:e,onClick:t})=>({onClick:e?void 0:t})))`
|
22
|
+
`;function zt(e){const{children:t,...r}=e;return require("focus-visible"),n.default.createElement(Ct,Tt({},r,{"data-portal-root":!0}),n.default.createElement(Et,null),t)}zt.displayName="BaseStyles",zt.defaultProps={color:"fg.default",fontFamily:"normal",lineHeight:"default"};var Rt=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Nt}(e)}(e)};var Nt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function At(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Pt((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function It(e,t,r){return e.concat(t).map((function(e){return At(e,r)}))}function Lt(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function Ot(e,t){try{return t in e}catch(e){return!1}}function Mt(e,t,r){var a={};return r.isMergeableObject(e)&&Lt(e).forEach((function(t){a[t]=At(e[t],r)})),Lt(t).forEach((function(o){(function(e,t){return Ot(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(Ot(e,o)&&r.isMergeableObject(t[o])?a[o]=function(e,t){if(!t.customMerge)return Pt;var r=t.customMerge(e);return"function"==typeof r?r:Pt}(o,r)(e[o],t[o],r):a[o]=At(t[o],r))})),a}function Pt(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||It,r.isMergeableObject=r.isMergeableObject||Rt,r.cloneUnlessOtherwiseSpecified=At;var a=Array.isArray(t);return a===Array.isArray(e)?a?r.arrayMerge(e,t,r):Mt(e,t,r):At(t,r)}Pt.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return Pt(e,r,t)}),{})};var Ht=Pt;const Dt="light",Wt="dark",Ft=n.default.createContext({setColorMode:()=>null,setDayScheme:()=>null,setNightScheme:()=>null}),_t=({children:e,...t})=>{var a,o,i,l,s,c,f,u;const{theme:g,colorMode:p,dayScheme:b,nightScheme:m}=jt(),h=null!==(a=null!==(o=t.theme)&&void 0!==o?o:g)&&void 0!==a?a:d,[v,x]=n.default.useState(null!==(i=null!==(l=t.colorMode)&&void 0!==l?l:p)&&void 0!==i?i:"day"),[y,w]=n.default.useState(null!==(s=null!==(c=t.dayScheme)&&void 0!==c?c:b)&&void 0!==s?s:Dt),[B,k]=n.default.useState(null!==(f=null!==(u=t.nightScheme)&&void 0!==u?u:m)&&void 0!==f?f:Wt),$=function(e,t){switch(e){case"auto":return t;default:return e}}(v,function(){const[e,t]=n.default.useState(Gt);return n.default.useEffect((()=>{var e,r;const a=null===(e=window)||void 0===e||null===(r=e.matchMedia)||void 0===r?void 0:r.call(e,"(prefers-color-scheme: dark)");function o(e){const r=e.matches;t(r?"night":"day")}if(a){if(void 0!==a.addEventListener)return a.addEventListener("change",o),function(){a.removeEventListener("change",o)};if(void 0!==a.addListener)return a.addListener(o),function(){a.removeListener(o)}}}),[]),e}()),S=function(e,t,r){switch(e){case"day":return t;case"night":return r}}($,y,B),T=n.default.useMemo((()=>function(e,t){if(!e.colorSchemes)return e;if(!e.colorSchemes[t]){console.error(`\`${t}\` scheme not defined in \`theme.colorSchemes\``);const r=Object.keys(e.colorSchemes)[0];return Ht(e,e.colorSchemes[r])}return Ht(e,e.colorSchemes[t])}(h,S)),[h,S]);return n.default.useEffect((()=>{var e,r;x(null!==(e=null!==(r=t.colorMode)&&void 0!==r?r:p)&&void 0!==e?e:"day")}),[t.colorMode,p]),n.default.useEffect((()=>{var e,r;w(null!==(e=null!==(r=t.dayScheme)&&void 0!==r?r:b)&&void 0!==e?e:Dt)}),[t.dayScheme,b]),n.default.useEffect((()=>{var e,r;k(null!==(e=null!==(r=t.nightScheme)&&void 0!==r?r:m)&&void 0!==e?e:Wt)}),[t.nightScheme,m]),n.default.createElement(Ft.Provider,{value:{theme:T,colorScheme:S,colorMode:v,resolvedColorMode:$,dayScheme:y,nightScheme:B,setColorMode:x,setDayScheme:w,setNightScheme:k}},n.default.createElement(r.ThemeProvider,{theme:T},e))};function jt(){return n.default.useContext(Ft)}function Ut(e,t){var r;const{colorScheme:a=""}=jt();return null!==(r=e[a])&&void 0!==r?r:t}function Gt(){var e,t,r;return"undefined"!=typeof window&&null!==(e=(t=window).matchMedia)&&void 0!==e&&null!==(r=e.call(t,"(prefers-color-scheme: dark)"))&&void 0!==r&&r.matches?"night":"day"}_t.displayName="ThemeProvider";var Vt=_t;var Kt=e=>te(e.sx);var qt=i.default.div(U,E,C,S,z,N,O,I,P,G,Kt);const Xt=i.default(qt)``;Xt.defaultProps={borderWidth:"1px",borderStyle:"solid",borderColor:"border.default",borderRadius:2};var Yt=Xt;const Jt=i.default(qt)``;Jt.defaultProps={display:"flex"};var Zt=Jt;const Qt=i.default(qt)``;Qt.defaultProps={display:"grid"};var er=Qt;const tr=i.default(qt)``;var rr=tr;const ar=n.default.forwardRef(((e,t)=>n.default.createElement(tr,Tt({},e,{position:"absolute",ref:t}))));ar.displayName="Absolute";const or=n.default.forwardRef(((e,t)=>n.default.createElement(tr,Tt({},e,{position:"fixed",ref:t}))));or.displayName="Fixed";const nr=n.default.forwardRef(((e,t)=>n.default.createElement(tr,Tt({},e,{position:"relative",ref:t}))));nr.displayName="Relative";const ir=n.default.forwardRef(((e,t)=>n.default.createElement(tr,Tt({},e,{position:"sticky",ref:t}))));function lr({ref:e,closeOnOutsideClick:r,defaultOpen:a,onClickOutside:o}){const[n,i]=t.useState(a),l=t.useRef(null),d=null!=e?e:l,s=t.useCallback((e=>{const{current:t}=d;e.target.closest("details")!==t&&(o&&o(e),e.defaultPrevented||i(!1))}),[d,i,o]);t.useEffect((()=>{if(n&&r)return document.addEventListener("click",s),()=>{document.removeEventListener("click",s)}}),[n,r,s]);const c=e=>{if(!e.defaultPrevented){const t=e.target;i(t.open)}};return{open:n,setOpen:i,getDetailsProps:()=>({onToggle:c,open:n,ref:d})}}ir.defaultProps={top:0,zIndex:1},ir.displayName="Sticky";const dr=!0;function sr(e){if(!e.defaultPrevented)for(const t of Object.values(cr).reverse())if(t(e)===dr||e.defaultPrevented)break}const cr={};let fr=0;const ur=({containerRef:e,ignoreClickRefs:r,onClickOutside:a})=>{const o=t.useMemo((()=>fr++),[]),n=t.useCallback((t=>{var o;return t instanceof MouseEvent&&t.button>0||null!==(o=e.current)&&void 0!==o&&o.contains(t.target)||r&&r.some((({current:e})=>null==e?void 0:e.contains(t.target)))?dr:void a(t)}),[e,r,a]);t.useEffect((()=>(0===Object.keys(cr).length&&document.addEventListener("mousedown",sr,{capture:!0}),function(e,t){cr[e]=t}(o,n),()=>{!function(e){delete cr[e]}(o),0===Object.keys(cr).length&&document.removeEventListener("mousedown",sr,{capture:!0})})),[o,n])};function*gr(e,t={}){var r,a;const o=null!==(r=t.strict)&&void 0!==r&&r,n=null!==(a=t.onlyTabbable)&&void 0!==a&&a?br:pr,i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e instanceof HTMLElement&&n(e,o)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});let l=null;if(!t.reverse&&n(e,o)&&(yield e),t.reverse){let e=i.lastChild();for(;e;)l=e,e=i.lastChild()}else l=i.firstChild();for(;l instanceof HTMLElement;)yield l,l=t.reverse?i.previousNode():i.nextNode();t.reverse&&n(e,o)&&(yield e)}function pr(e,t=!1){const r=["BUTTON","INPUT","SELECT","TEXTAREA","OPTGROUP","OPTION","FIELDSET"].includes(e.tagName)&&e.disabled,a=e.hidden,o=e instanceof HTMLInputElement&&"hidden"===e.type;if(r||a||o)return!1;if(t){const t=0===e.offsetWidth||0===e.offsetHeight,r=["hidden","collapse"].includes(getComputedStyle(e).visibility),a=0===e.getClientRects().length;if(t||r||a)return!1}return null!=e.getAttribute("tabindex")||!(e instanceof HTMLAnchorElement&&null==e.getAttribute("href"))&&-1!==e.tabIndex}function br(e,t=!1){return pr(e,t)&&"-1"!==e.getAttribute("tabindex")}function mr({initialFocusRef:e,returnFocusRef:r,containerRef:a,preventFocusOnOpen:o}){t.useEffect((()=>{if(o)return;const t=r.current;if(e&&e.current)e.current.focus();else if(a.current){const e=gr(a.current).next().value;null==e||e.focus()}return function(){null==t||t.focus()}}),[e,r,a,o])}const hr=[];function vr(e){if("Escape"===e.key&&!e.defaultPrevented)for(let t=hr.length-1;t>=0&&(hr[t](e),!e.defaultPrevented);--t);}const xr=(e,r=[e])=>{const a=t.useCallback(e,r);t.useEffect((()=>(0===hr.length&&document.addEventListener("keydown",vr),hr.push(a),()=>{hr.splice(hr.findIndex((e=>e===a)),1),0===hr.length&&document.removeEventListener("keydown",vr)})),[a])};function yr(e){const t=n.default.useRef(null);return null!=e?e:t}const wr=({overlayRef:e,returnFocusRef:t,initialFocusRef:r,onEscape:a,ignoreClickRefs:o,onClickOutside:n,preventFocusOnOpen:i})=>{const l=yr(e);return mr({containerRef:l,returnFocusRef:t,initialFocusRef:r,preventFocusOnOpen:i}),ur({containerRef:l,ignoreClickRefs:o,onClickOutside:n}),xr(a),{ref:l}};let Br,kr=!1;function $r(){}try{const e=Object.create({},{signal:{get(){kr=!0}}});window.addEventListener("test",$r,e),window.removeEventListener("test",$r,e)}catch(Wd){}function Sr(){kr||(!function(){if("undefined"==typeof window)return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,r,a){return"object"==typeof a&&"signal"in a&&a.signal instanceof AbortSignal&&e.call(a.signal,"abort",(()=>{this.removeEventListener(t,r,a)})),e.call(this,t,r,a)}}(),kr=!0)}function Tr(){return void 0===Br&&(Br=/^mac/i.test(window.navigator.platform)),Br}let Er,Cr=1e4;function zr(){return"__primer_id_"+Cr++}Sr(),function(e){e[e.ArrowHorizontal=1]="ArrowHorizontal",e[e.ArrowVertical=2]="ArrowVertical",e[e.JK=4]="JK",e[e.HL=8]="HL",e[e.HomeAndEnd=16]="HomeAndEnd",e[e.PageUpDown=256]="PageUpDown",e[e.WS=32]="WS",e[e.AD=64]="AD",e[e.Tab=128]="Tab",e[e.ArrowAll=e.ArrowHorizontal|e.ArrowVertical]="ArrowAll",e[e.HJKL=e.HL|e.JK]="HJKL",e[e.WASD=e.WS|e.AD]="WASD",e[e.All=e.ArrowAll|e.HJKL|e.HomeAndEnd|e.PageUpDown|e.WASD|e.Tab]="All"}(Er||(Er={}));const Rr={ArrowLeft:Er.ArrowHorizontal,ArrowDown:Er.ArrowVertical,ArrowUp:Er.ArrowVertical,ArrowRight:Er.ArrowHorizontal,h:Er.HL,j:Er.JK,k:Er.JK,l:Er.HL,a:Er.AD,s:Er.WS,w:Er.WS,d:Er.AD,Tab:Er.Tab,Home:Er.HomeAndEnd,End:Er.HomeAndEnd,PageUp:Er.PageUpDown,PageDown:Er.PageUpDown},Nr={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 Ar(e){const t=Nr[e.key];if("Tab"===e.key&&e.shiftKey)return"previous";const r=Tr();if(r&&e.metaKey||!r&&e.ctrlKey){if("ArrowLeft"===e.key||"ArrowUp"===e.key)return"start";if("ArrowRight"===e.key||"ArrowDown"===e.key)return"end"}return t}const Ir="data-is-active-descendant",Lr="activated-directly",Or="activated-indirectly",Mr="data-has-active-descendant";function Pr(e,t){var r,a,o,n;const i=[],l=new WeakMap,d=null!==(r=null==t?void 0:t.bindKeys)&&void 0!==r?r:(null!=t&&t.getNextFocusable?Er.ArrowAll:Er.ArrowVertical)|Er.HomeAndEnd,s=null!==(a=null==t?void 0:t.focusOutBehavior)&&void 0!==a?a:"stop",c=null!==(o=null==t?void 0:t.focusInStrategy)&&void 0!==o?o:"previous",f=null==t?void 0:t.activeDescendantControl,u=null==t?void 0:t.onActiveDescendantChanged;let g;function p(){return i[0]}function b(e,t=!1){const r=g;g=e,f?e&&document.activeElement===f?m(r,e,t):h():(r&&r!==e&&l.has(r)&&r.setAttribute("tabindex","-1"),null==e||e.setAttribute("tabindex","0"))}function m(t,r,a=!1){r.id||r.setAttribute("id",zr()),t&&t!==r&&t.removeAttribute(Ir),f&&(a||f.getAttribute("aria-activedescendant")!==r.id)&&(f.setAttribute("aria-activedescendant",r.id),e.setAttribute(Mr,r.id),r.setAttribute(Ir,a?Lr:Or),null==u||u(r,t,a))}function h(t=g){"first"===c&&(g=void 0),null==f||f.removeAttribute("aria-activedescendant"),e.removeAttribute(Mr),null==t||t.removeAttribute(Ir),null==u||u(void 0,t,!1)}function v(...e){const r=e.filter((e=>{var r,a;return null===(r=null==t||null===(a=t.focusableElementFilter)||void 0===a?void 0:a.call(t,e))||void 0===r||r}));if(0===r.length)return;const a=i.findIndex((e=>(e.compareDocumentPosition(r[0])&Node.DOCUMENT_POSITION_PRECEDING)>0));i.splice(-1===a?i.length:a,0,...r);for(const e of r)l.has(e)||l.set(e,e.getAttribute("tabindex")),e.setAttribute("tabindex","-1");g||b(p())}function x(...e){for(const t of e){const e=i.indexOf(t);e>=0&&i.splice(e,1);const r=l.get(t);if(void 0!==r&&(null===r?t.removeAttribute("tabindex"):t.setAttribute("tabindex",r),l.delete(t)),t===g){b(p())}}}v(...gr(e)),b(p());new MutationObserver((e=>{for(const t of e)for(const e of t.removedNodes)e instanceof HTMLElement&&x(...gr(e));for(const t of e)for(const e of t.addedNodes)e instanceof HTMLElement&&v(...gr(e))})).observe(e,{subtree:!0,childList:!0});const y=new AbortController,w=null!==(n=null==t?void 0:t.abortSignal)&&void 0!==n?n:y.signal;let B;w.addEventListener("abort",(()=>{x(...i)})),e.addEventListener("mousedown",(e=>{e.target instanceof HTMLElement&&e.target!==document.activeElement&&(B=i.indexOf(e.target))}),{signal:w}),f?(e.addEventListener("focusin",(e=>{e.target instanceof HTMLElement&&i.includes(e.target)&&(f.focus(),b(e.target))})),e.addEventListener("mousemove",(({target:e})=>{if(!(e instanceof Node))return;const t=i.find((t=>t.contains(e)));t&&b(t)}),{signal:w,capture:!0}),f.addEventListener("focusin",(()=>{g?m(void 0,g):b(p())})),f.addEventListener("focusout",(()=>{h()}))):e.addEventListener("focusin",(t=>{if(t.target instanceof HTMLElement)if(void 0!==B)B>=0&&i[B]!==g&&b(i[B]),B=void 0;else if("previous"===c)b(t.target);else if("closest"===c||"first"===c){if(t.relatedTarget instanceof Element&&!e.contains(t.relatedTarget)){const e="previous"===$?i.length-1:0,t=i[e];return void(null==t||t.focus())}b(t.target)}else if("function"==typeof c)if(t.relatedTarget instanceof Element&&!e.contains(t.relatedTarget)){const e=c(t.relatedTarget);if((e?i.indexOf(e):-1)>=0&&e instanceof HTMLElement)return void e.focus();console.warn("Element requested is not a known focusable element.")}else b(t.target);$=void 0}),{signal:w});const k=null!=f?f:e;let $;return"closest"===c&&document.addEventListener("keydown",(e=>{"Tab"===e.key&&($=Ar(e))}),{signal:w,capture:!0}),k.addEventListener("keydown",(r=>{if(r.key in Nr){const o=Rr[r.key];if(!r.defaultPrevented&&(o&d)>0&&!function(e,t){const r=e.key,a=[...r].length,o=t instanceof HTMLInputElement&&"text"===t.type||t instanceof HTMLTextAreaElement;if(o&&(1===a||"Home"===r||"End"===r))return!0;if(t instanceof HTMLSelectElement){if(1===a)return!0;if("ArrowDown"===r&&Tr()&&!e.metaKey)return!0;if("ArrowDown"===r&&!Tr()&&e.altKey)return!0}if(t instanceof HTMLTextAreaElement&&("PageUp"===r||"PageDown"===r))return!0;if(o){const e=t,a=0===e.selectionStart&&0===e.selectionEnd,o=e.selectionStart===e.value.length&&e.selectionEnd===e.value.length;if("ArrowLeft"===r&&!a)return!0;if("ArrowRight"===r&&!o)return!0;if(e instanceof HTMLTextAreaElement){if("ArrowUp"===r&&!a)return!0;if("ArrowDown"===r&&!o)return!0}}return!1}(r,document.activeElement)){const o=Ar(r);let n;var a;if(null!=t&&t.getNextFocusable)n=t.getNextFocusable(o,null!==(a=document.activeElement)&&void 0!==a?a:void 0,r);if(!n){const t=function(){if(!g)return 0;const t=i.indexOf(g);return-1!==t?t:g===e?-1:0}();let a=t;"previous"===o?a-=1:"start"===o?a=0:"next"===o?a+=1:a=i.length-1,a<0&&(a="wrap"===s&&"Tab"!==r.key?i.length-1:0),a>=i.length&&(a="wrap"===s&&"Tab"!==r.key?0:i.length-1),t!==a&&(n=i[a])}f?b(n||g,!0):n&&($=o,n.focus()),("Tab"!==r.key||n)&&r.preventDefault()}}}),{signal:w}),y}var Hr=r.css(["position:relative;display:inline-block;padding:6px 16px;font-family:inherit;font-weight:",";line-height:20px;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;border-radius:",";appearance:none;text-decoration:none;text-align:center;&:hover{text-decoration:none;}&:focus{outline:none;}&:disabled{cursor:default;}&:disabled svg{opacity:0.6;}"],xt("fontWeights.bold"),xt("radii.2"));const Dr=re({variants:{small:{p:"4px 12px",fontSize:0},medium:{fontSize:1},large:{fontSize:2,p:"10px 20px"}}}),Wr=i.default.button.attrs((({disabled:e,onClick:t})=>({onClick:e?void 0:t})))`
|
23
23
|
${Hr}
|
24
|
-
${
|
25
|
-
`;
|
24
|
+
${Dr}
|
25
|
+
`;Wr.defaultProps={variant:"medium"};var Fr=Wr;var _r=i.default(Fr)`
|
26
26
|
color: ${xt("colors.btn.text")};
|
27
27
|
background-color: ${xt("colors.btn.bg")};
|
28
28
|
border: 1px solid ${xt("colors.btn.border")};
|
@@ -50,9 +50,8 @@
|
|
50
50
|
border-color: ${xt("colors.btn.border")};
|
51
51
|
}
|
52
52
|
|
53
|
-
${Dr};
|
54
53
|
${Kt};
|
55
|
-
`;var
|
54
|
+
`;var jr=i.default(Fr)`
|
56
55
|
color: ${xt("colors.btn.danger.text")};
|
57
56
|
border: 1px solid ${xt("colors.btn.border")};
|
58
57
|
background-color: ${xt("colors.btn.bg")};
|
@@ -83,9 +82,8 @@
|
|
83
82
|
border-color: ${xt("colors.btn.danger.disabledBorder")};
|
84
83
|
}
|
85
84
|
|
86
|
-
${Dr};
|
87
85
|
${Kt};
|
88
|
-
`;const
|
86
|
+
`;const Ur=i.default(qt)`
|
89
87
|
vertical-align: middle;
|
90
88
|
|
91
89
|
&& > * {
|
@@ -126,7 +124,7 @@
|
|
126
124
|
}
|
127
125
|
|
128
126
|
${Kt};
|
129
|
-
`;
|
127
|
+
`;Ur.defaultProps={display:"inline-block"};var Gr=Ur;var Vr=i.default(Fr)`
|
130
128
|
color: ${xt("colors.btn.outline.text")};
|
131
129
|
border: 1px solid ${xt("colors.btn.border")};
|
132
130
|
background-color: ${xt("colors.btn.bg")};
|
@@ -157,9 +155,8 @@
|
|
157
155
|
border-color: ${xt("colors.btn.border")};
|
158
156
|
}
|
159
157
|
|
160
|
-
${Dr};
|
161
158
|
${Kt};
|
162
|
-
`;var
|
159
|
+
`;var Kr=i.default(Fr)`
|
163
160
|
color: ${xt("colors.btn.primary.text")};
|
164
161
|
border: 1px solid ${xt("colors.btn.primary.border")};
|
165
162
|
background-color: ${xt("colors.btn.primary.bg")};
|
@@ -188,9 +185,8 @@
|
|
188
185
|
border-color: ${xt("colors.btn.primary.disabledBorder")};
|
189
186
|
}
|
190
187
|
|
191
|
-
${Dr};
|
192
188
|
${Kt};
|
193
|
-
`;var
|
189
|
+
`;var qr=i.default(Fr)`
|
194
190
|
color: ${xt("colors.accent.fg")};
|
195
191
|
background-color: transparent;
|
196
192
|
border: 0;
|
@@ -210,9 +206,8 @@
|
|
210
206
|
background-color: ${xt("colors.btn.selectedBg")};
|
211
207
|
}
|
212
208
|
|
213
|
-
${Dr};
|
214
209
|
${Kt}
|
215
|
-
`;var
|
210
|
+
`;var Xr=i.default.summary`
|
216
211
|
display: inline-block;
|
217
212
|
padding: 0;
|
218
213
|
font-size: ${xt("fontSizes.1")};
|
@@ -247,11 +242,8 @@
|
|
247
242
|
border: 4px solid transparent;
|
248
243
|
border-top-color: currentcolor;
|
249
244
|
}
|
250
|
-
${yt}
|
251
|
-
${wt}
|
252
|
-
${kt}
|
253
245
|
${Kt};
|
254
|
-
`,
|
246
|
+
`,Yr={small:16,medium:32,large:64};function Jr(e){var t=e["aria-label"],r=e.className,a=e.fill,o=void 0===a?"currentColor":a,n=e.size,i=e.verticalAlign,l=e.svgDataByHeight,d=Yr[n]||n,s=function(e,t){return e.map((function(e){return parseInt(e,10)})).reduce((function(e,r){return r<=t?r:e}),e[0])}(Object.keys(l),d),c=l[s].width;return{"aria-hidden":t?"false":"true","aria-label":t,role:"img",className:r,viewBox:"0 0 "+c+" "+s,width:d*(c/s),height:d,fill:o,style:{display:"inline-block",userSelect:"none",verticalAlign:i},dangerouslySetInnerHTML:{__html:l[s].path}}}var Zr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e};function Qr(e){return n.default.createElement("svg",Jr(Zr({},e,{svgDataByHeight:{16:{width:16,path:'<path fill-rule="evenodd" d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"></path>'},24:{width:24,path:'<path fill-rule="evenodd" d="M21.03 5.72a.75.75 0 010 1.06l-11.5 11.5a.75.75 0 01-1.072-.012l-5.5-5.75a.75.75 0 111.084-1.036l4.97 5.195L19.97 5.72a.75.75 0 011.06 0z"></path>'}}})))}function ea(e){return n.default.createElement("svg",Jr(Zr({},e,{svgDataByHeight:{16:{width:16,path:'<path fill-rule="evenodd" d="M5 3.254V3.25v.005a.75.75 0 110-.005v.004zm.45 1.9a2.25 2.25 0 10-1.95.218v5.256a2.25 2.25 0 101.5 0V7.123A5.735 5.735 0 009.25 9h1.378a2.251 2.251 0 100-1.5H9.25a4.25 4.25 0 01-3.8-2.346zM12.75 9a.75.75 0 100-1.5.75.75 0 000 1.5zm-8.5 4.5a.75.75 0 100-1.5.75.75 0 000 1.5z"></path>'},24:{width:24,path:'<path fill-rule="evenodd" d="M5.75 21a1.75 1.75 0 110-3.5 1.75 1.75 0 010 3.5zM2.5 19.25a3.25 3.25 0 106.5 0 3.25 3.25 0 00-6.5 0zM5.75 6.5a1.75 1.75 0 110-3.5 1.75 1.75 0 010 3.5zM2.5 4.75a3.25 3.25 0 106.5 0 3.25 3.25 0 00-6.5 0zM18.25 15a1.75 1.75 0 110-3.5 1.75 1.75 0 010 3.5zM15 13.25a3.25 3.25 0 106.5 0 3.25 3.25 0 00-6.5 0z"></path><path fill-rule="evenodd" d="M6.5 7.25c0 2.9 2.35 5.25 5.25 5.25h4.5V14h-4.5A6.75 6.75 0 015 7.25h1.5z"></path><path fill-rule="evenodd" d="M5.75 16.75A.75.75 0 006.5 16V8A.75.75 0 005 8v8c0 .414.336.75.75.75z"></path>'}}})))}function ta(e){return n.default.createElement("svg",Jr(Zr({},e,{svgDataByHeight:{16:{width:16,path:'<path fill-rule="evenodd" d="M7.177 3.073L9.573.677A.25.25 0 0110 .854v4.792a.25.25 0 01-.427.177L7.177 3.427a.25.25 0 010-.354zM3.75 2.5a.75.75 0 100 1.5.75.75 0 000-1.5zm-2.25.75a2.25 2.25 0 113 2.122v5.256a2.251 2.251 0 11-1.5 0V5.372A2.25 2.25 0 011.5 3.25zM11 2.5h-1V4h1a1 1 0 011 1v5.628a2.251 2.251 0 101.5 0V5A2.5 2.5 0 0011 2.5zm1 10.25a.75.75 0 111.5 0 .75.75 0 01-1.5 0zM3.75 12a.75.75 0 100 1.5.75.75 0 000-1.5z"></path>'},24:{width:24,path:'<path fill-rule="evenodd" d="M4.75 3a1.75 1.75 0 100 3.5 1.75 1.75 0 000-3.5zM1.5 4.75a3.25 3.25 0 116.5 0 3.25 3.25 0 01-6.5 0zM4.75 17.5a1.75 1.75 0 100 3.5 1.75 1.75 0 000-3.5zM1.5 19.25a3.25 3.25 0 116.5 0 3.25 3.25 0 01-6.5 0zm17.75-1.75a1.75 1.75 0 100 3.5 1.75 1.75 0 000-3.5zM16 19.25a3.25 3.25 0 116.5 0 3.25 3.25 0 01-6.5 0z"></path><path fill-rule="evenodd" d="M4.75 7.25A.75.75 0 015.5 8v8A.75.75 0 014 16V8a.75.75 0 01.75-.75zm8.655-5.53a.75.75 0 010 1.06L12.185 4h4.065A3.75 3.75 0 0120 7.75v8.75a.75.75 0 01-1.5 0V7.75a2.25 2.25 0 00-2.25-2.25h-4.064l1.22 1.22a.75.75 0 01-1.061 1.06l-2.5-2.5a.75.75 0 010-1.06l2.5-2.5a.75.75 0 011.06 0z"></path>'}}})))}function ra(e){return n.default.createElement("svg",Jr(Zr({},e,{svgDataByHeight:{16:{width:16,path:'<path fill-rule="evenodd" d="M1.5 8a6.5 6.5 0 0110.65-5.003.75.75 0 00.959-1.153 8 8 0 102.592 8.33.75.75 0 10-1.444-.407A6.5 6.5 0 011.5 8zM8 12a1 1 0 100-2 1 1 0 000 2zm0-8a.75.75 0 01.75.75v3.5a.75.75 0 11-1.5 0v-3.5A.75.75 0 018 4zm4.78 4.28l3-3a.75.75 0 00-1.06-1.06l-2.47 2.47-.97-.97a.749.749 0 10-1.06 1.06l1.5 1.5a.75.75 0 001.06 0z"></path>'},24:{width:24,path:'<path d="M2.5 12c0-5.24 4.288-9.5 9.593-9.5a9.608 9.608 0 017.197 3.219.75.75 0 001.12-.998A11.108 11.108 0 0012.093 1C5.973 1 1 5.919 1 12s4.973 11 11.093 11c5.403 0 9.91-3.832 10.893-8.915a.75.75 0 10-1.472-.285c-.848 4.381-4.74 7.7-9.421 7.7C6.788 21.5 2.5 17.24 2.5 12z"></path><path d="M12 17a1 1 0 100-2 1 1 0 000 2zm0-10a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0112 7zm11.28.78a.75.75 0 00-1.06-1.06l-3.47 3.47-1.47-1.47a.75.75 0 10-1.06 1.06l2 2a.75.75 0 001.06 0l4-4z"></path>'}}})))}function aa(e){return n.default.createElement("svg",Jr(Zr({},e,{svgDataByHeight:{16:{width:16,path:'<path fill-rule="evenodd" d="M8 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM0 8a8 8 0 1116 0A8 8 0 010 8zm9 3a1 1 0 11-2 0 1 1 0 012 0zm-.25-6.25a.75.75 0 00-1.5 0v3.5a.75.75 0 001.5 0v-3.5z"></path>'},24:{width:24,path:'<path d="M12 7a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0112 7zm1 9a1 1 0 11-2 0 1 1 0 012 0z"></path><path fill-rule="evenodd" d="M12 1C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1zM2.5 12a9.5 9.5 0 1119 0 9.5 9.5 0 01-19 0z"></path>'}}})))}function oa(e){return n.default.createElement("svg",Jr(Zr({},e,{svgDataByHeight:{16:{width:16,path:'<path fill-rule="evenodd" d="M7.75 2a.75.75 0 01.75.75V7h4.25a.75.75 0 110 1.5H8.5v4.25a.75.75 0 11-1.5 0V8.5H2.75a.75.75 0 010-1.5H7V2.75A.75.75 0 017.75 2z"></path>'},24:{width:24,path:'<path fill-rule="evenodd" d="M11.75 4.5a.75.75 0 01.75.75V11h5.75a.75.75 0 010 1.5H12.5v5.75a.75.75 0 01-1.5 0V12.5H5.25a.75.75 0 010-1.5H11V5.25a.75.75 0 01.75-.75z"></path>'}}})))}function na(e){return n.default.createElement("svg",Jr(Zr({},e,{svgDataByHeight:{16:{width:16,path:'<path fill-rule="evenodd" d="M8 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM0 8a8 8 0 1116 0A8 8 0 010 8zm9 3a1 1 0 11-2 0 1 1 0 012 0zM6.92 6.085c.081-.16.19-.299.34-.398.145-.097.371-.187.74-.187.28 0 .553.087.738.225A.613.613 0 019 6.25c0 .177-.04.264-.077.318a.956.956 0 01-.277.245c-.076.051-.158.1-.258.161l-.007.004a7.728 7.728 0 00-.313.195 2.416 2.416 0 00-.692.661.75.75 0 001.248.832.956.956 0 01.276-.245 6.3 6.3 0 01.26-.16l.006-.004c.093-.057.204-.123.313-.195.222-.149.487-.355.692-.662.214-.32.329-.702.329-1.15 0-.76-.36-1.348-.863-1.725A2.76 2.76 0 008 4c-.631 0-1.155.16-1.572.438-.413.276-.68.638-.849.977a.75.75 0 101.342.67z"></path>'},24:{width:24,path:'<path d="M10.97 8.265a1.45 1.45 0 00-.487.57.75.75 0 01-1.341-.67c.2-.402.513-.826.997-1.148C10.627 6.69 11.244 6.5 12 6.5c.658 0 1.369.195 1.934.619a2.45 2.45 0 011.004 2.006c0 1.033-.513 1.72-1.027 2.215-.19.183-.399.358-.579.508l-.147.123a4.329 4.329 0 00-.435.409v1.37a.75.75 0 11-1.5 0v-1.473c0-.237.067-.504.247-.736.22-.28.486-.517.718-.714l.183-.153.001-.001c.172-.143.324-.27.47-.412.368-.355.569-.676.569-1.136a.953.953 0 00-.404-.806C12.766 8.118 12.384 8 12 8c-.494 0-.814.121-1.03.265zM13 17a1 1 0 11-2 0 1 1 0 012 0z"></path><path fill-rule="evenodd" d="M12 1C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1zM2.5 12a9.5 9.5 0 1119 0 9.5 9.5 0 01-19 0z"></path>'}}})))}function ia(e){return n.default.createElement("svg",Jr(Zr({},e,{svgDataByHeight:{16:{width:16,path:'<path d="M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"></path>'},24:{width:24,path:'<path d="M11.646 15.146L5.854 9.354a.5.5 0 01.353-.854h11.586a.5.5 0 01.353.854l-5.793 5.792a.5.5 0 01-.707 0z"></path>'}}})))}function la(e){return n.default.createElement("svg",Jr(Zr({},e,{svgDataByHeight:{16:{width:16,path:'<path fill-rule="evenodd" d="M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"></path>'},24:{width:24,path:'<path fill-rule="evenodd" d="M5.72 5.72a.75.75 0 011.06 0L12 10.94l5.22-5.22a.75.75 0 111.06 1.06L13.06 12l5.22 5.22a.75.75 0 11-1.06 1.06L12 13.06l-5.22 5.22a.75.75 0 01-1.06-1.06L10.94 12 5.72 6.78a.75.75 0 010-1.06z"></path>'}}})))}Qr.defaultProps={className:"octicon octicon-check",size:16,verticalAlign:"text-bottom"},ea.defaultProps={className:"octicon octicon-git-merge",size:16,verticalAlign:"text-bottom"},ta.defaultProps={className:"octicon octicon-git-pull-request",size:16,verticalAlign:"text-bottom"},ra.defaultProps={className:"octicon octicon-issue-closed",size:16,verticalAlign:"text-bottom"},aa.defaultProps={className:"octicon octicon-issue-opened",size:16,verticalAlign:"text-bottom"},oa.defaultProps={className:"octicon octicon-plus",size:16,verticalAlign:"text-bottom"},na.defaultProps={className:"octicon octicon-question",size:16,verticalAlign:"text-bottom"},ia.defaultProps={className:"octicon octicon-triangle-down",size:16,verticalAlign:"text-bottom"},la.defaultProps={className:"octicon octicon-x",size:16,verticalAlign:"text-bottom"};const da=i.default.button`
|
255
247
|
border: none;
|
256
248
|
padding: 0;
|
257
249
|
background: transparent;
|
@@ -267,13 +259,11 @@
|
|
267
259
|
&:hover {
|
268
260
|
color: ${xt("colors.accent.fg")};
|
269
261
|
}
|
270
|
-
${yt};
|
271
|
-
${kt};
|
272
262
|
${Kt};
|
273
|
-
`;var
|
263
|
+
`;var sa=t.forwardRef(((e,t)=>n.default.createElement(da,Tt({ref:t,"aria-label":"Close"},e),n.default.createElement(la,null))));const ca={"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 fa(e,t,r={}){const a=function(e){let t=e.parentNode;for(;null!==t;){if(t instanceof HTMLElement&&"static"!==getComputedStyle(t).position)return t;t=t.parentNode}return document.body}(e),o=function(e){let t=e;for(;null!==t&&t!==document.body;){if("visible"!==getComputedStyle(t).overflow)break;t=t.parentNode}const r=t!==document.body&&t instanceof HTMLElement?t:document.body,a=r.getBoundingClientRect(),o=getComputedStyle(r),[n,i,l,d]=[o.borderTopWidth,o.borderLeftWidth,o.borderRightWidth,o.borderBottomWidth].map((e=>parseInt(e,10)||0));return{top:a.top+n,left:a.left+i,width:a.width-l-i,height:Math.max(a.height-n-d,r===document.body?window.innerHeight:-1/0)}}(a),n=getComputedStyle(a),i=a.getBoundingClientRect(),[l,d]=[n.borderTopWidth,n.borderLeftWidth].map((e=>parseInt(e,10)||0));return function(e,t,r,a,{side:o,align:n,allowOutOfBounds:i,anchorOffset:l,alignmentOffset:d}){const s={top:e.top-t.top,left:e.left-t.left,width:e.width,height:e.height};let c=ha(r,a,o,n,l,d),f=o;if(c.top-=t.top,c.left-=t.left,!i){const i=ca[o];let u=0;if(i){let e=o;for(;u<i.length&&va(e,c,s,r);){const o=i[u++];e=o,c=ha(r,a,o,n,l,d),c.top-=t.top,c.left-=t.left,f=o}}c.top<s.top&&(c.top=s.top),c.left<s.left&&(c.left=s.left),c.left+r.width>e.width+s.left&&(c.left=e.width+s.left-r.width),i&&u<i.length&&c.top+r.height>e.height+s.top&&(c.top=e.height+s.top-r.height)}return{...c,anchorSide:f}}(o,{top:i.top+l,left:i.left+d},e.getBoundingClientRect(),t instanceof Element?t.getBoundingClientRect():t,function(e={}){var t,r,a,o,n;const i=null!==(t=e.side)&&void 0!==t?t:ua,l=null!==(r=e.align)&&void 0!==r?r:ga;return{side:i,align:l,anchorOffset:null!==(a=e.anchorOffset)&&void 0!==a?a:"inside-center"===i?0:pa,alignmentOffset:null!==(o=e.alignmentOffset)&&void 0!==o?o:"center"!==l&&i.startsWith("inside")?ba:0,allowOutOfBounds:null!==(n=e.allowOutOfBounds)&&void 0!==n?n:ma}}(r))}const ua="outside-bottom",ga="start",pa=4,ba=4,ma=!1;function ha(e,t,r,a,o,n){const i=t.left+t.width,l=t.top+t.height;let d=-1,s=-1;return"outside-top"===r?d=t.top-o-e.height:"outside-bottom"===r?d=l+o:"outside-left"===r?s=t.left-o-e.width:"outside-right"===r&&(s=i+o),"outside-top"!==r&&"outside-bottom"!==r||(s="start"===a?t.left+n:"center"===a?t.left-(e.width-t.width)/2+n:i-e.width-n),"outside-left"!==r&&"outside-right"!==r||(d="start"===a?t.top+n:"center"===a?t.top-(e.height-t.height)/2+n:l-e.height-n),"inside-top"===r?d=t.top+o:"inside-bottom"===r?d=l-o-e.height:"inside-left"===r?s=t.left+o:"inside-right"===r?s=i-o-e.width:"inside-center"===r&&(s=(i+t.left)/2-e.width/2+o),"inside-top"===r||"inside-bottom"===r?s="start"===a?t.left+n:"center"===a?t.left-(e.width-t.width)/2+n:i-e.width-n:"inside-left"!==r&&"inside-right"!==r&&"inside-center"!==r||(d="start"===a?t.top+n:"center"===a?t.top-(e.height-t.height)/2+n:l-e.height-n),{top:d,left:s}}function va(e,t,r,a){return"outside-top"===e||"outside-bottom"===e?t.top<r.top||t.top+a.height>r.height+r.top:t.left<r.left||t.left+a.width>r.width+r.left}function xa(e,t=[]){const r=yr(null==e?void 0:e.floatingElementRef),a=yr(null==e?void 0:e.anchorElementRef),[o,i]=n.default.useState(void 0),l=n.default.useCallback((()=>{r.current instanceof Element&&a.current instanceof Element?i(fa(r.current,a.current,e)):i(void 0)}),[r,a,...t]);var d;return n.default.useLayoutEffect(l,[l]),d=l,n.default.useLayoutEffect((()=>{const e=new window.ResizeObserver((()=>d()));return e.observe(document.documentElement),()=>{e.disconnect()}}),[d]),{floatingElementRef:r,anchorElementRef:a,position:o}}Sr();const ya=[];let wa;function Ba(e,t=!1){return gr(e,{reverse:t,strict:!0,onlyTabbable:!0}).next().value}function ka(e,t,r){const a=new AbortController,o=null!=r?r:a.signal;let n;function i(r){if(r instanceof HTMLElement&&document.contains(e)){if(e.contains(r))return void(n=r);if(n&&br(n)&&e.contains(n))return void n.focus();if(t&&e.contains(t))return void t.focus();{const t=null===e.getAttribute("tabindex");return t&&e.setAttribute("tabindex","-1"),e.focus(),void(t&&e.addEventListener("blur",(()=>e.removeAttribute("tabindex")),{once:!0}))}}}e.setAttribute("data-focus-trap","active");const l=function(e){const t=new AbortController;return e.addEventListener("abort",(()=>{t.abort()})),t}(o);if(e.addEventListener("keydown",(t=>{if("Tab"!==t.key||t.defaultPrevented)return;const{target:r}=t,a=Ba(e),o=Ba(e,!0);r===a&&t.shiftKey?(t.preventDefault(),null==o||o.focus()):r!==o||t.shiftKey||(t.preventDefault(),null==a||a.focus())}),{signal:l.signal}),wa){const e=wa;wa.container.setAttribute("data-focus-trap","suspended"),wa.controller.abort(),ya.push(e)}l.signal.addEventListener("abort",(()=>{wa=void 0})),o.addEventListener("abort",(()=>{e.removeAttribute("data-focus-trap");const t=ya.findIndex((t=>t.container===e));t>=0&&ya.splice(t,1),function(){const e=ya.pop();e&&ka(e.container,e.initialFocus,e.originalSignal)}()})),document.addEventListener("focus",(e=>{i(e.target)}),{signal:l.signal,capture:!0}),i(document.activeElement),wa={container:e,controller:l,initialFocus:t,originalSignal:o};const d=ya.findIndex((t=>t.container===e));if(d>=0&&ya.splice(d,1),!r)return a}function $a(e,t=[]){const r=yr(null==e?void 0:e.containerRef),a=yr(null==e?void 0:e.initialFocusRef),o=null==e?void 0:e.disabled,i=n.default.useRef(),l=n.default.useRef(null);function d(){var t;null===(t=i.current)||void 0===t||t.abort(),null!=e&&e.restoreFocusOnCleanUp&&l.current instanceof HTMLElement&&(l.current.focus(),l.current=null)}return l.current||null!=e&&e.disabled||(l.current=document.activeElement),n.default.useEffect((()=>{if(r.current instanceof HTMLElement){var e;if(!o)return i.current=ka(r.current,null!==(e=a.current)&&void 0!==e?e:void 0),()=>{d()};d()}}),[r,a,o,...t]),{containerRef:r,initialFocusRef:a}}function Sa({icon:e,...t}){return n.default.createElement(e,t)}Sa.displayName="Octicon";const Ta=i.default(Sa)`
|
274
264
|
${yt}
|
275
265
|
${Kt}
|
276
|
-
`;
|
266
|
+
`;Ta.defaultProps={size:16};var Ea=Ta;function Ca(e={},r=[]){const a=yr(e.containerRef),o=!!e.activeDescendantFocus,i=yr("boolean"!=typeof e.activeDescendantFocus&&e.activeDescendantFocus?e.activeDescendantFocus:void 0),l=e.disabled,d=n.default.useRef();return t.useEffect((()=>{if(a.current instanceof HTMLElement&&(!o||i.current instanceof HTMLElement)){if(!l){var t;const r={...e,activeDescendantControl:null!==(t=i.current)&&void 0!==t?t:void 0};return d.current=Pr(a.current,r),()=>{var e;null===(e=d.current)||void 0===e||e.abort()}}var r;null===(r=d.current)||void 0===r||r.abort()}}),[l,...r]),{containerRef:a,activeDescendantControlRef:i}}const za="__primerPortalRoot__",Ra="__default__",Na={};function Aa(){const e=Na.__default__;if(!e||!document.body.contains(e)){let e=document.getElementById(za);if(!(e instanceof Element)){e=document.createElement("div"),e.setAttribute("id",za),e.style.position="absolute",e.style.top="0",e.style.left="0";const t=document.querySelector("[data-portal-root]");t?t.appendChild(e):document.body.appendChild(e)}!function(e,t="__default__"){Na[t]=e}(e)}}var Ia=({children:e,onMount:t,containerName:r})=>{const o=document.createElement("div");o.style.position="relative",o.style.zIndex="1";const i=n.default.useRef(o);return n.default.useLayoutEffect((()=>{let e=r;void 0===e&&(e=Ra,Aa());const a=Na[e];if(!a)throw new Error(`Portal container '${r}' is not yet registered. Container must be registered with registerPortal before use.`);const o=i.current;return a.appendChild(o),null==t||t(),()=>{a.removeChild(o)}}),[i]),a.createPortal(e,i.current)};function La(...e){const r=t.useRef(null);return n.default.useLayoutEffect((()=>{function t(t=null){for(const r of e){if(!r)return;"function"==typeof r?r(t):r.current=t}}return t(r.current),()=>{t(r.current)}}),[...e,r.current]),r}const Oa={prefix:String(Math.round(1e10*Math.random())),current:0},Ma=n.default.createContext(Oa);let Pa=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function Ha(e){let r=t.useContext(Ma);return r!==Oa||Pa||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),t.useMemo((()=>e||"react-aria"+r.prefix+"-"+ ++r.current),[e])}const Da="200ms",Wa=i.default("div")`
|
277
267
|
position: fixed;
|
278
268
|
top: 0;
|
279
269
|
left: 0;
|
@@ -283,7 +273,7 @@
|
|
283
273
|
align-items: center;
|
284
274
|
justify-content: center;
|
285
275
|
background-color: rgba(0, 0, 0, 0.4);
|
286
|
-
animation: dialog-backdrop-appear ${
|
276
|
+
animation: dialog-backdrop-appear ${Da} ${xt("animation.easeOutCubic")};
|
287
277
|
|
288
278
|
@keyframes dialog-backdrop-appear {
|
289
279
|
0% {
|
@@ -293,7 +283,7 @@
|
|
293
283
|
opacity: 1;
|
294
284
|
}
|
295
285
|
}
|
296
|
-
`,
|
286
|
+
`,Fa={small:"480px",large:"640px",auto:"auto"},_a={small:"296px",medium:"320px",large:"480px",xlarge:"640px"},ja=i.default.div`
|
297
287
|
display: flex;
|
298
288
|
flex-direction: column;
|
299
289
|
background-color: ${xt("colors.canvas.overlay")};
|
@@ -301,11 +291,11 @@
|
|
301
291
|
min-width: 296px;
|
302
292
|
max-width: calc(100vw - 64px);
|
303
293
|
max-height: calc(100vh - 64px);
|
304
|
-
width: ${e=>{var t;return
|
305
|
-
height: ${e=>{var t;return
|
294
|
+
width: ${e=>{var t;return _a[null!==(t=e.width)&&void 0!==t?t:"xlarge"]}};
|
295
|
+
height: ${e=>{var t;return Fa[null!==(t=e.height)&&void 0!==t?t:"auto"]}};
|
306
296
|
border-radius: 12px;
|
307
297
|
opacity: 1;
|
308
|
-
animation: overlay--dialog-appear ${
|
298
|
+
animation: overlay--dialog-appear ${Da} ${xt("animation.easeOutCubic")};
|
309
299
|
|
310
300
|
@keyframes overlay--dialog-appear {
|
311
301
|
0% {
|
@@ -321,23 +311,23 @@
|
|
321
311
|
${yt};
|
322
312
|
${$t};
|
323
313
|
${Kt};
|
324
|
-
`,
|
314
|
+
`,Ua=({dialogLabelId:e,title:r,subtitle:a,dialogDescriptionId:o,onClose:i})=>{const l=t.useCallback((()=>{i("close-button")}),[i]);return n.default.createElement(ro.Header,null,n.default.createElement(qt,{display:"flex"},n.default.createElement(qt,{display:"flex",px:2,py:"6px",flexDirection:"column",flexGrow:1},n.default.createElement(ro.Title,{id:e},null!=r?r:"Dialog"),a&&n.default.createElement(ro.Subtitle,{id:o},a)),n.default.createElement(ro.CloseButton,{onClose:l})))};Ua.displayName="DefaultHeader";const Ga=({children:e})=>n.default.createElement(ro.Body,null,e);Ga.displayName="DefaultBody";const Va=({footerButtons:e})=>{const{containerRef:t}=Ca({bindKeys:Er.ArrowHorizontal|Er.Tab,focusInStrategy:"closest"});return e?n.default.createElement(ro.Footer,{ref:t},n.default.createElement(ro.Buttons,{buttons:e})):null},Ka=n.default.forwardRef(((e,r)=>{const{title:a="Dialog",subtitle:o="",renderHeader:i,renderBody:l,renderFooter:d,onClose:s,role:c="dialog",width:f="xlarge",height:u="auto",footerButtons:g=[]}=e,p=Ha(),b=Ha(),m=t.useRef(null);for(const e of g)e.autoFocus&&(e.ref=m);const h={...e,title:a,subtitle:o,role:c,dialogLabelId:p,dialogDescriptionId:b},v=t.useRef(null),x=La(v,r),y=t.useRef(null);$a({containerRef:v,restoreFocusOnCleanUp:!0,initialFocusRef:m}),xr((e=>{s("escape"),e.preventDefault()}),[s]);const w=(null!=i?i:Ua)(h),B=(null!=l?l:Ga)(h),k=(null!=d?d:Va)(h);return n.default.createElement(n.default.Fragment,null,n.default.createElement(Ia,null,n.default.createElement(Wa,{ref:y},n.default.createElement(ja,{width:f,height:u,ref:x,role:c,"aria-labelledby":p,"aria-describedby":b},w,B,k))))}));Ka.displayName="Dialog";const qa=i.default(qt).attrs({as:"header"})`
|
325
315
|
box-shadow: 0 1px 0 ${xt("colors.border.default")};
|
326
316
|
padding: ${xt("space.2")};
|
327
317
|
z-index: 1;
|
328
318
|
flex-shrink: 0;
|
329
|
-
`,
|
319
|
+
`,Xa=i.default(qt)`
|
330
320
|
font-size: ${xt("fontSizes.1")};
|
331
321
|
font-weight: ${xt("fontWeights.bold")};
|
332
|
-
`,
|
322
|
+
`,Ya=i.default(qt)`
|
333
323
|
font-size: ${xt("fontSizes.0")};
|
334
324
|
margin-top: ${xt("space.1")};
|
335
325
|
color: ${xt("colors.fg.muted")};
|
336
|
-
`,
|
326
|
+
`,Ja=i.default(qt)`
|
337
327
|
flex-grow: 1;
|
338
328
|
overflow: auto;
|
339
329
|
padding: ${xt("space.3")};
|
340
|
-
`,
|
330
|
+
`,Za=i.default(qt).attrs({as:"footer"})`
|
341
331
|
box-shadow: 0 -1px 0 ${xt("colors.border.default")};
|
342
332
|
padding: ${xt("space.3")};
|
343
333
|
display: flex;
|
@@ -352,7 +342,7 @@
|
|
352
342
|
margin-left: 0;
|
353
343
|
}
|
354
344
|
}
|
355
|
-
`,
|
345
|
+
`,Qa={normal:_r,primary:Kr,danger:jr},eo=i.default(_r)`
|
356
346
|
border-radius: 4px;
|
357
347
|
background: transparent;
|
358
348
|
border: 0;
|
@@ -362,21 +352,21 @@
|
|
362
352
|
align-self: flex-start;
|
363
353
|
line-height: normal;
|
364
354
|
box-shadow: none;
|
365
|
-
`,
|
355
|
+
`,to=({onClose:e})=>n.default.createElement(eo,{"aria-label":"Close",onClick:e},n.default.createElement(Ea,{icon:la}));to.displayName="CloseButton";const ro=Object.assign(Ka,{Header:qa,Title:Xa,Subtitle:Ya,Body:Ja,Footer:Za,Buttons:({buttons:e})=>{var r;const a=yr(null===(r=e.find((e=>e.autoFocus)))||void 0===r?void 0:r.ref);let o=0;const[i,l]=t.useState(0);return t.useEffect((()=>{var e;1===i?null===(e=a.current)||void 0===e||e.focus():l(i+1)}),[a,i]),n.default.createElement(n.default.Fragment,null,e.map(((e,t)=>{const{content:r,buttonType:i="normal",autoFocus:l=!1,...d}=e,s=Qa[i];return n.default.createElement(s,Tt({key:t},d,{ref:l&&0===o?(o++,a):null}),r)})))},CloseButton:to}),ao=i.default.header`
|
366
356
|
padding: ${xt("space.2")};
|
367
357
|
display: flex;
|
368
358
|
flex-direction: row;
|
369
|
-
`,
|
359
|
+
`,oo=i.default(qt)`
|
370
360
|
font-size: ${xt("fontSizes.3")};
|
371
361
|
font-weight: ${xt("fontWeights.bold")};
|
372
362
|
padding: 6px ${xt("space.2")};
|
373
363
|
flex-grow: 1;
|
374
|
-
`,
|
364
|
+
`,no=({title:e,onClose:r,dialogLabelId:a})=>{const o=t.useCallback((()=>{r("close-button")}),[r]);return n.default.createElement(ao,null,n.default.createElement(oo,{id:a},e),n.default.createElement(ro.CloseButton,{onClose:o}))};no.displayName="ConfirmationHeader";const io=i.default(qt)`
|
375
365
|
font-size: ${xt("fontSizes.1")};
|
376
366
|
padding: 0 ${xt("space.3")} ${xt("space.3")} ${xt("space.3")};
|
377
367
|
color: ${xt("colors.fg.muted")};
|
378
368
|
flex-grow: 1;
|
379
|
-
`,
|
369
|
+
`,lo=({children:e})=>n.default.createElement(io,null,e);lo.displayName="ConfirmationBody";const so=i.default(qt)`
|
380
370
|
display: grid;
|
381
371
|
grid-auto-flow: column;
|
382
372
|
grid-auto-columns: max-content;
|
@@ -384,7 +374,7 @@
|
|
384
374
|
align-items: end;
|
385
375
|
justify-content: end;
|
386
376
|
padding: ${xt("space.1")} ${xt("space.3")} ${xt("space.3")};
|
387
|
-
`,
|
377
|
+
`,co=({footerButtons:e})=>{const{containerRef:t}=Ca({bindKeys:Er.ArrowHorizontal|Er.Tab,focusInStrategy:"closest"});return n.default.createElement(so,{ref:t},n.default.createElement(ro.Buttons,{buttons:null!=e?e:[]}))};co.displayName="ConfirmationFooter";const fo=e=>{const{onClose:r,title:a,cancelButtonContent:o="Cancel",confirmButtonContent:i="OK",confirmButtonType:l="normal",children:d}=e,s=[{content:o,onClick:t.useCallback((()=>{r("cancel")}),[r])},{content:i,buttonType:l,onClick:t.useCallback((()=>{r("confirm")}),[r]),autoFocus:!0}];return n.default.createElement(ro,{onClose:r,title:a,footerButtons:s,role:"alertdialog",width:"medium",renderHeader:no,renderBody:lo,renderFooter:co},d)};fo.displayName="ConfirmationDialog";const uo=i.default.div`
|
388
378
|
{
|
389
379
|
/* 6px vertical padding + 20px line height = 32px total height
|
390
380
|
*
|
@@ -400,9 +390,9 @@
|
|
400
390
|
${({variant:e})=>"filled"===e&&r.css(["background:",";margin:"," 0;border-top:1px solid ",";border-bottom:1px solid ",";&:first-child{margin-top:0;}"],xt("colors.canvas.subtle"),xt("space.2"),xt("colors.neutral.muted"),xt("colors.neutral.muted"))}
|
401
391
|
|
402
392
|
${Kt}
|
403
|
-
`;function
|
393
|
+
`;function go({variant:e="subtle",title:t,auxiliaryText:r,children:a,...o}){return n.default.createElement(uo,Tt({role:"heading",variant:e},o),t,r&&n.default.createElement("span",null,r))}go.displayName="Header";const po=i.default.div`
|
404
394
|
${Kt}
|
405
|
-
`;function
|
395
|
+
`;function bo({header:e,items:t,...r}){return n.default.createElement(po,r,e&&n.default.createElement(go,e),t)}bo.displayName="Group";const mo=i.default.div`
|
406
396
|
${wt}
|
407
397
|
${yt}
|
408
398
|
display: ${e=>e.inline?"inline-block":"inherit"};
|
@@ -413,25 +403,25 @@
|
|
413
403
|
${ce}
|
414
404
|
${e=>e.expandable?"&:hover { max-width: 10000px; }":""}
|
415
405
|
${Kt};
|
416
|
-
`;
|
406
|
+
`;mo.defaultProps={expandable:!1,inline:!1,maxWidth:125};var ho=mo;const vo=i.default.div`
|
417
407
|
height: 1px;
|
418
408
|
background: ${xt("colors.border.muted")};
|
419
409
|
margin-top: calc(${xt("space.2")} - 1px);
|
420
410
|
margin-bottom: ${xt("space.2")};
|
421
|
-
`;function
|
411
|
+
`;function xo(){return n.default.createElement(vo,null)}xo.displayName="Divider",xo.renderItem=xo;const yo={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)"}}},wo=(e="default",t)=>{if(t)return{color:xt("colors.primer.fg.disabled"),iconColor:xt("colors.primer.fg.disabled"),annotationColor:xt("colors.primer.fg.disabled"),hoverCursor:"default"};switch(e){case"danger":return{color:xt("colors.danger.fg"),iconColor:xt("colors.danger.fg"),annotationColor:xt("colors.fg.muted"),hoverCursor:"pointer"};default:return{color:xt("colors.fg.default"),iconColor:xt("colors.fg.muted"),annotationColor:xt("colors.fg.muted"),hoverCursor:"pointer"}}},Bo=i.default.div`
|
422
412
|
display: flex;
|
423
413
|
min-width: 0;
|
424
414
|
|
425
415
|
/* Required for dividers */
|
426
416
|
position: relative;
|
427
417
|
flex-grow: 1;
|
428
|
-
|
418
|
+
`,ko=i.default.div`
|
429
419
|
align-items: baseline;
|
430
420
|
display: flex;
|
431
421
|
min-width: 0;
|
432
422
|
flex-direction: var(--main-content-flex-direction);
|
433
423
|
flex-grow: 1;
|
434
|
-
|
424
|
+
`,$o=i.default.div`
|
435
425
|
/* 6px vertical padding + 20px line height = 32px total height
|
436
426
|
*
|
437
427
|
* TODO: When rem-based spacing on a 4px scale lands, replace
|
@@ -440,7 +430,7 @@
|
|
440
430
|
padding: 6px ${xt("space.2")};
|
441
431
|
display: flex;
|
442
432
|
border-radius: ${xt("radii.2")};
|
443
|
-
color: ${({variant:e,item:t})=>
|
433
|
+
color: ${({variant:e,item:t})=>wo(e,null==t?void 0:t.disabled).color};
|
444
434
|
// 2 frames on a 60hz monitor
|
445
435
|
transition: background 33.333ms linear;
|
446
436
|
text-decoration: none;
|
@@ -449,15 +439,15 @@
|
|
449
439
|
:hover {
|
450
440
|
// allow override in case another item in the list is active/focused
|
451
441
|
background: var(--item-hover-bg-override, ${({hoverBackground:e})=>e});
|
452
|
-
cursor: ${({variant:e,item:t})=>
|
442
|
+
cursor: ${({variant:e,item:t})=>wo(e,null==t?void 0:t.disabled).hoverCursor};
|
453
443
|
}
|
454
444
|
}
|
455
445
|
|
456
446
|
// Item dividers
|
457
|
-
:not(:first-of-type):not(${
|
447
|
+
:not(:first-of-type):not(${vo} + &):not(${uo} + &) {
|
458
448
|
margin-top: ${({showDivider:e})=>e?"1px":"0"};
|
459
449
|
|
460
|
-
${
|
450
|
+
${Bo}::before {
|
461
451
|
content: ' ';
|
462
452
|
display: block;
|
463
453
|
position: absolute;
|
@@ -471,23 +461,23 @@
|
|
471
461
|
|
472
462
|
// Item dividers should not be visible:
|
473
463
|
// - above Hovered
|
474
|
-
&:hover ${
|
464
|
+
&:hover ${Bo}::before,
|
475
465
|
// - below Hovered
|
476
466
|
// '*' instead of '&' because '&' maps to separate class names depending on 'variant'
|
477
|
-
:hover + * ${
|
467
|
+
:hover + * ${Bo}::before {
|
478
468
|
// allow override in case another item in the list is active/focused
|
479
469
|
border-color: var(--item-hover-divider-border-color-override, transparent) !important;
|
480
470
|
}
|
481
471
|
|
482
472
|
// - above Focused
|
483
|
-
&:focus ${
|
473
|
+
&:focus ${Bo}::before,
|
484
474
|
// - below Focused
|
485
475
|
// '*' instead of '&' because '&' maps to separate class names depending on 'variant'
|
486
|
-
:focus + * ${
|
476
|
+
:focus + * ${Bo}::before,
|
487
477
|
// - above Active Descendent
|
488
|
-
&[${Ir}] ${
|
478
|
+
&[${Ir}] ${Bo}::before,
|
489
479
|
// - below Active Descendent
|
490
|
-
[${Ir}] + & ${
|
480
|
+
[${Ir}] + & ${Bo}::before {
|
491
481
|
// '!important' because all the ':not's above give higher specificity
|
492
482
|
border-color: transparent !important;
|
493
483
|
}
|
@@ -510,32 +500,32 @@
|
|
510
500
|
}
|
511
501
|
|
512
502
|
${Kt}
|
513
|
-
`,
|
503
|
+
`,So=i.default.span``,To=i.default.div`
|
514
504
|
// Match visual height to adjacent text line height.
|
515
505
|
// TODO: When rem-based spacing on a 4px scale lands, replace
|
516
506
|
// hardcoded '20px' with '${xt("space.s20")}'.
|
517
507
|
height: 20px;
|
518
508
|
width: ${xt("space.3")};
|
519
509
|
margin-right: ${xt("space.2")};
|
520
|
-
`,
|
510
|
+
`,Eo=i.default(To)`
|
521
511
|
svg {
|
522
|
-
fill: ${({variant:e,disabled:t})=>
|
512
|
+
fill: ${({variant:e,disabled:t})=>wo(e,t).iconColor};
|
523
513
|
font-size: ${xt("fontSizes.0")};
|
524
514
|
}
|
525
|
-
`,
|
515
|
+
`,Co=i.default(Eo)`
|
526
516
|
flex-shrink: 0;
|
527
517
|
display: flex;
|
528
518
|
flex-direction: column;
|
529
519
|
justify-content: center;
|
530
|
-
`,
|
531
|
-
color: ${({variant:e,disabled:t})=>
|
520
|
+
`,zo=i.default(Eo)`
|
521
|
+
color: ${({variant:e,disabled:t})=>wo(e,t).annotationColor}};
|
532
522
|
margin-left: ${xt("space.2")};
|
533
523
|
margin-right: 0;
|
534
524
|
width: auto;
|
535
525
|
div:nth-child(2) {
|
536
526
|
margin-left: ${xt("space.2")};
|
537
527
|
}
|
538
|
-
`,
|
528
|
+
`,Ro=i.default.span`
|
539
529
|
color: ${xt("colors.fg.muted")};
|
540
530
|
font-size: ${xt("fontSizes.0")};
|
541
531
|
// TODO: When rem-based spacing on a 4px scale lands, replace
|
@@ -545,9 +535,9 @@
|
|
545
535
|
min-width: 0;
|
546
536
|
flex-grow: 1;
|
547
537
|
flex-basis: var(--description-container-flex-basis);
|
548
|
-
`,
|
538
|
+
`,No=i.default.input`
|
549
539
|
pointer-events: none;
|
550
|
-
`,
|
540
|
+
`,Ao=n.default.forwardRef(((e,r)=>{const{as:a,text:o,description:i,descriptionVariant:l="inline",selected:d,selectionVariant:s,leadingVisual:c,trailingIcon:f,trailingVisual:u,trailingText:g,variant:p="default",showDivider:b,disabled:m,onAction:h,onKeyPress:v,children:x,onClick:y,id:w,...B}=e,k=Ha(),$=Ha(),S=t.useCallback((t=>{if(m)return;null==v||v(t);t.target instanceof HTMLInputElement&&"checkbox"===t.target.type&&" "===t.key||!t.defaultPrevented&&[" ","Enter"].includes(t.key)&&(null==h||h(e,t))}),[h,m,e,v]),T=t.useCallback((t=>{m||(null==y||y(t),t.defaultPrevented||null==h||h(e,t))}),[h,m,e,y]),E=yo[p],C=Ut(E.hover,"inherit"),z=Ut(E.focus,"inherit"),{theme:R}=jt();return n.default.createElement($o,Tt({ref:r,as:a,tabIndex:m?void 0:-1,variant:p,showDivider:b,"aria-selected":d,"aria-labelledby":o?k:void 0,"aria-describedby":i?$:void 0},B,{"data-id":w,onKeyPress:S,onClick:T,hoverBackground:m?"inherit":C,focusBackground:m?"inherit":z}),!!d===d&&n.default.createElement(To,null,"multiple"===s?n.default.createElement(n.default.Fragment,null,n.default.createElement(No,{disabled:m,tabIndex:-1,type:"checkbox",checked:d,"aria-label":o,readOnly:!0,"aria-readonly":"false"})):d&&n.default.createElement(Qr,{fill:null==R?void 0:R.colors.fg.default})),c&&n.default.createElement(Co,{variant:p,disabled:m},n.default.createElement(c,null)),n.default.createElement(Bo,null,n.default.createElement(ko,{style:{"--main-content-flex-direction":"inline"===l?"row":"column"}},x,o?n.default.createElement(So,{id:k},o):null,i?n.default.createElement(Ro,{id:$,style:{"--description-container-margin-left":"inline"===l?xt("space.2")(R):0,"--description-container-flex-basis":"inline"===l?0:"auto"}},"block"===l?i:n.default.createElement(ho,{title:i,inline:!0,maxWidth:"100%"},i)):null),u?n.default.createElement(zo,{variant:p,disabled:m},"function"==typeof u?n.default.createElement(u,null):u):f||g?n.default.createElement(zo,{variant:p,disabled:m},g,f&&n.default.createElement(f,null)):null))}));Ao.displayName="ActionList.Item";const Io=i.default.div`
|
551
541
|
font-size: ${xt("fontSizes.1")};
|
552
542
|
/* 14px font-size * 1.428571429 = 20px line height
|
553
543
|
*
|
@@ -560,15 +550,15 @@
|
|
560
550
|
--item-hover-bg-override: none;
|
561
551
|
--item-hover-divider-border-color-override: ${xt("colors.border.muted")};
|
562
552
|
}
|
563
|
-
`;const
|
553
|
+
`;const Lo=n.default.forwardRef(((e,t)=>{const{firstGroupStyle:r,lastGroupStyle:a,headerStyle:o,itemStyle:i}=function(e="inset"){switch(e){case"full":return{headerStyle:{paddingX:xt("space.2")},itemStyle:{borderRadius:0}};default:return{firstGroupStyle:{marginTop:xt("space.2")},lastGroupStyle:{marginBottom:xt("space.2")},itemStyle:{marginX:xt("space.2")}}}}(e.variant),l=(t,r,a)=>{var o,l,d;const s="renderItem"in t&&t.renderItem||e.renderItem||Ao,c=null!==(o=null!==(l="key"in t?t.key:void 0)&&void 0!==l?l:null===(d=t.id)||void 0===d?void 0:d.toString())&&void 0!==o?o:a.toString();return n.default.createElement(s,Tt({showDivider:e.showItemDividers,selectionVariant:e.selectionVariant},t,{key:c,sx:{...i,...t.sx},item:r}))};let d=[];if(function(e){return"groupMetadata"in e}(e)){const t=e.groupMetadata.reduce(((e,t)=>e.set(t.groupId,t)),new Map);for(const r of e.items){var s,c,f;const e=t.get(r.groupId),a=null!==(s=null==e||null===(c=e.items)||void 0===c?void 0:c.length)&&void 0!==s?s:0;t.set(r.groupId,{...e,items:[...null!==(f=null==e?void 0:e.items)&&void 0!==f?f:[],l({showDivider:null==e?void 0:e.showItemDividers,...e&&"renderItem"in e&&{renderItem:e.renderItem},...r},r,a)]})}d=[...t.values()]}else d=[{items:e.items.map(((e,t)=>l(e,e,t))),groupId:"0"}];return n.default.createElement(Io,Tt({},e,{ref:t}),d.map((({header:t,...i},l)=>{const s="filled"===(null==t?void 0:t.variant),c=l>0&&!s;return n.default.createElement(n.default.Fragment,{key:i.groupId},c?n.default.createElement(xo,{key:`${i.groupId}-divider`}):null,(t=>{var r;const a=(null!==(r="renderGroup"in t&&t.renderGroup)&&void 0!==r?r:e.renderGroup)||bo;return n.default.createElement(a,Tt({},t,{key:t.groupId}))})({sx:{...0===l&&r,...l===d.length-1&&a,...l>0&&!c&&{mt:2}},...t&&{header:{...t,sx:{...o,...t.sx}}},...i}))})))}));Lo.displayName="ActionList";const Oo=Object.assign(Lo,{Group:bo,Item:Ao,Divider:xo}),Mo={xsmall:"192px",small:"256px",medium:"320px",large:"432px",xlarge:"600px",auto:"auto",initial:"auto"},Po={small:"256px",medium:"320px",large:"480px",xlarge:"640px",xxlarge:"960px",auto:"auto"};const Ho=i.default.div`
|
564
554
|
background-color: ${xt("colors.canvas.overlay")};
|
565
555
|
box-shadow: ${xt("shadows.overlay.shadow")};
|
566
556
|
position: absolute;
|
567
557
|
min-width: 192px;
|
568
558
|
max-width: 640px;
|
569
|
-
height: ${e=>
|
570
|
-
max-height: ${e=>e.maxHeight&&
|
571
|
-
width: ${e=>
|
559
|
+
height: ${e=>Mo[e.height||"auto"]};
|
560
|
+
max-height: ${e=>e.maxHeight&&Mo[e.maxHeight]};
|
561
|
+
width: ${e=>Po[e.width||"auto"]};
|
572
562
|
border-radius: 12px;
|
573
563
|
overflow: hidden;
|
574
564
|
animation: overlay-appear ${200}ms ${xt("animation.easeOutCubic")};
|
@@ -587,12 +577,12 @@
|
|
587
577
|
}
|
588
578
|
${yt};
|
589
579
|
${Kt};
|
590
|
-
`,
|
580
|
+
`,Do=n.default.forwardRef((({onClickOutside:e,role:r="none",initialFocusRef:a,returnFocusRef:o,ignoreClickRefs:i,onEscape:l,visibility:d="visible",height:s,top:c,left:f,anchorSide:u,portalContainerName:g,preventFocusOnOpen:p,...b},m)=>{const h=t.useRef(null),v=La(h,m),{theme:x}=jt(),y=parseInt(xt("space.2")(x).replace("px","")),w=xt("animation.easeOutCubic")(x);return wr({overlayRef:h,returnFocusRef:o,onEscape:l,ignoreClickRefs:i,onClickOutside:e,initialFocusRef:a,preventFocusOnOpen:p}),t.useEffect((()=>{var e;"initial"===s&&null!==(e=v.current)&&void 0!==e&&e.clientHeight&&(v.current.style.height=`${v.current.clientHeight}px`)}),[s,v]),t.useLayoutEffect((()=>{var e;const{x:t,y:r}=function(e){return null!=e&&e.endsWith("bottom")?{x:0,y:-1}:null!=e&&e.endsWith("top")?{x:0,y:1}:null!=e&&e.endsWith("right")?{x:-1,y:0}:null!=e&&e.endsWith("left")?{x:1,y:0}:{x:0,y:0}}(u);(t||r)&&null!==(e=h.current)&&void 0!==e&&e.animate&&"hidden"!==d&&h.current.animate({transform:[`translate(${y*t}px, ${y*r}px)`,"translate(0, 0)"]},{duration:200,easing:w})}),[u,y,w,d]),n.default.createElement(Ia,{containerName:g},n.default.createElement(Ho,Tt({height:s,role:r},b,{ref:v,style:{top:`${c||0}px`,left:`${f||0}px`,...b.style,"--styled-overlay-visibility":d}})))}));Do.defaultProps={height:"auto",width:"auto"};var Wo=Do;const Fo=({renderAnchor:e,anchorRef:r,children:a,open:o,onOpen:i,onClose:l,height:d,width:s,overlayProps:c,focusTrapSettings:f,focusZoneSettings:u,side:g,align:p})=>{const b=yr(r),[m,h]=function(){const[e,r]=t.useState(null),a=t.useRef(null);a.current=e;const o=t.useCallback((e=>{a.current=e,r(e)}),[a]);return[a,o]}(),v=Ha(),x=t.useCallback((()=>null==l?void 0:l("click-outside")),[l]),y=t.useCallback((()=>null==l?void 0:l("escape")),[l]),w=t.useCallback((e=>{e.defaultPrevented||!o&&["ArrowDown","ArrowUp"," ","Enter"].includes(e.key)&&(null==i||i("anchor-key-press"),e.preventDefault())}),[o,i]),B=t.useCallback((e=>{e.defaultPrevented||0!==e.button||(o?null==l||l("anchor-click"):null==i||i("anchor-click"))}),[o,i,l]),{position:k}=xa({anchorElementRef:b,floatingElementRef:m,side:g,align:p},[m.current]);return t.useEffect((()=>{!o&&m.current&&h(null)}),[o,m,h]),Ca({containerRef:m,disabled:!o||!k,...u}),$a({containerRef:m,disabled:!o||!k,...f}),n.default.createElement(n.default.Fragment,null,e&&e({ref:b,id:v,"aria-labelledby":v,"aria-haspopup":"true",tabIndex:0,onClick:B,onKeyDown:w}),o?n.default.createElement(Wo,Tt({returnFocusRef:b,onClickOutside:x,ignoreClickRefs:[b],onEscape:y,ref:h,role:"none",visibility:k?"visible":"hidden",height:d,width:s,top:(null==k?void 0:k.top)||0,left:(null==k?void 0:k.left)||0,anchorSide:null==k?void 0:k.anchorSide},c),a):null)};function _o(e,r,a){const[o,n]=t.useState(a);return[null!=e?e:o,t.useCallback((e=>{n(e),r&&r(e)}),[r])]}Fo.displayName="AnchoredOverlay",Fo.defaultProps={side:"outside-bottom",align:"start"};const jo=e=>n.default.createElement(Ao,Tt({role:"menuitem"},e));jo.displayName="ActionMenuItem",jo.displayName="ActionMenu.Item";const Uo=({anchorContent:e,renderAnchor:r=(e=>n.default.createElement(_r,e)),anchorRef:a,onAction:o,open:i,setOpen:l,overlayProps:d,items:s,...c})=>{const[f,u]=_o(i,l,!1),g=yr(a),p=t.useCallback((()=>u(!0)),[u]),b=t.useCallback((()=>u(!1)),[u]),m=t.useMemo((()=>null===r?null:t=>r({"aria-label":"menu",children:e,...t})),[e,r]),h=t.useMemo((()=>s.map((e=>({...e,role:"menuitem",onAction:(t,r)=>{var a;const n=null!==(a=e.onAction)&&void 0!==a?a:o;null==n||n(t,r),r.defaultPrevented||b()}})))),[s,o,b]);return n.default.createElement(Fo,{renderAnchor:m,anchorRef:g,open:f,onOpen:p,onClose:b,overlayProps:d},n.default.createElement(Lo,Tt({},c,{role:"menu",items:h})))};Uo.displayName="ActionMenuBase",Uo.displayName="ActionMenu";const Go=Object.assign(Uo,{Divider:xo,Item:jo}),Vo=t.createContext(null);var Ko={exports:{}};
|
591
581
|
/*!
|
592
582
|
Copyright (c) 2018 Jed Watson.
|
593
583
|
Licensed under the MIT License (MIT), see
|
594
584
|
http://jedwatson.github.io/classnames
|
595
|
-
*/!function(e){!function(){var t={}.hasOwnProperty;function r(){for(var e=[],a=0;a<arguments.length;a++){var o=arguments[a];if(o){var n=typeof o;if("string"===n||"number"===n)e.push(o);else if(Array.isArray(o)){if(o.length){var i=r.apply(null,o);i&&e.push(i)}}else if("object"===n)if(o.toString===Object.prototype.toString)for(var l in o)t.call(o,l)&&o[l]&&e.push(l);else e.push(o.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r}()}(
|
585
|
+
*/!function(e){!function(){var t={}.hasOwnProperty;function r(){for(var e=[],a=0;a<arguments.length;a++){var o=arguments[a];if(o){var n=typeof o;if("string"===n||"number"===n)e.push(o);else if(Array.isArray(o)){if(o.length){var i=r.apply(null,o);i&&e.push(i)}}else if("object"===n)if(o.toString===Object.prototype.toString)for(var l in o)t.call(o,l)&&o[l]&&e.push(l);else e.push(o.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r}()}(Ko);var qo=Ko.exports;var Xo=i.default.input`
|
596
586
|
border: 0;
|
597
587
|
font-size: inherit;
|
598
588
|
font-family: inherit;
|
@@ -605,7 +595,7 @@
|
|
605
595
|
}
|
606
596
|
|
607
597
|
${Kt};
|
608
|
-
`;const
|
598
|
+
`;const Yo=re({variants:{small:{minHeight:"28px",px:2,py:"3px",fontSize:0,lineHeight:"20px"},large:{px:2,py:"10px",fontSize:3}}});var Jo=i.default.span`
|
609
599
|
display: inline-flex;
|
610
600
|
align-items: stretch;
|
611
601
|
min-height: 34px;
|
@@ -648,9 +638,9 @@
|
|
648
638
|
${ie}
|
649
639
|
${de}
|
650
640
|
${ce}
|
651
|
-
${
|
641
|
+
${Yo}
|
652
642
|
${Kt};
|
653
|
-
`;const
|
643
|
+
`;const Zo=n.default.forwardRef((({icon:e,block:t,className:r,contrast:a,disabled:o,sx:i,theme:l,width:d,minWidth:s,maxWidth:c,variant:f,...u},g)=>{const p=qo(r,"TextInput-wrapper");return n.default.createElement(Jo,{block:t,className:p,contrast:a,disabled:o,hasIcon:!!e,sx:i,theme:l,width:d,minWidth:s,maxWidth:c,variant:f},e&&n.default.createElement(e,{className:"TextInput-icon"}),n.default.createElement(Xo,Tt({ref:g,disabled:o},u)))}));Zo.defaultProps={type:"text"},Zo.displayName="TextInput";var Qo=Zo;const en=n.default.forwardRef((({as:e=Qo,onFocus:r,onBlur:a,onChange:o,onKeyDown:i,onKeyUp:l,onKeyPress:d,value:s,...c},f)=>{const u=t.useContext(Vo);if(null===u)throw new Error("AutocompleteContext returned null values");const{activeDescendantRef:g,autocompleteSuggestion:p="",id:b,inputRef:m,inputValue:h="",isMenuDirectlyActivated:v,setInputValue:x,setShowMenu:y,showMenu:w}=u,B=La(m,f),[k,$]=t.useState(!0),S=t.useCallback((e=>{r&&r(e),y(!0)}),[r,y]),T=t.useCallback((e=>{a&&a(e),setTimeout((()=>{document.activeElement!==B.current&&y(!1)}),0)}),[a,y,B]),E=t.useCallback((e=>{o&&o(e),x(e.currentTarget.value),w||y(!0)}),[o,x,y,w]),C=t.useCallback((e=>{var t;i&&i(e),"Backspace"===e.key&&$(!1),"Escape"===e.key&&null!==(t=m.current)&&void 0!==t&&t.value&&(x(""),m.current.value="")}),[m,x,$,i]),z=t.useCallback((e=>{l&&l(e),"Backspace"===e.key&&$(!0)}),[$,l]),R=t.useCallback((e=>{if(d&&d(e),w&&"Enter"===e.key&&g.current){e.preventDefault(),e.nativeEvent.stopImmediatePropagation();const t=new KeyboardEvent(e.type,e.nativeEvent);g.current.dispatchEvent(t)}}),[g,w,d]);return t.useEffect((()=>{m.current&&(p||(m.current.value=h),k&&p&&(h||v)&&(m.current.value=p,0===p.toLowerCase().indexOf(h.toLowerCase())&&m.current.setSelectionRange(h.length,p.length)))}),[p,h,m,v]),t.useEffect((()=>{s&&x(s.toString())}),[s,x]),n.default.createElement(e,Tt({onFocus:S,onBlur:T,onChange:E,onKeyDown:C,onKeyPress:R,onKeyUp:z,ref:B,"aria-controls":`${b}-listbox`,"aria-autocomplete":"both",role:"combobox","aria-expanded":w,"aria-haspopup":"listbox","aria-owns":`${b}-listbox`,autocomplete:"off"},c))}));en.displayName="AutocompleteInput";var tn=en;const rn=(e,t,r="vertical",a=8,o=0,n="smooth")=>{const i="vertical"===r?"top":"left",l="vertical"===r?"bottom":"right",d="vertical"===r?"scrollTop":"scrollLeft",{[i]:s,[l]:c}=e.getBoundingClientRect(),{[i]:f,[l]:u}=t.getBoundingClientRect(),g=c>u-a;if(s<f+o){const e=s-f+t[d];t.scrollTo({behavior:n,[i]:e-o})}else if(g){const e=c-u+t[d];t.scrollTo({behavior:n,[i]:e+a})}};function an(e){const r=t.useContext(Vo);if(null===r)throw new Error("AutocompleteContext returned null values");const{activeDescendantRef:a,id:o,inputRef:i,inputValue:l="",scrollContainerRef:d,setAutocompleteSuggestion:s,setShowMenu:c,setInputValue:f,setIsMenuDirectlyActivated:u,setSelectedItemLength:g,showMenu:p}=r,{items:b,selectedItemIds:m,sortOnCloseFn:h,emptyStateText:v,addNewItem:x,loading:y,selectionVariant:w,filterFn:B,"aria-labelledby":k,onOpenChange:$,onSelectedChange:S,customScrollContainerRef:T}=e,E=t.useRef(null),[C,z]=t.useState(),[R,N]=t.useState(b.map((({id:e})=>e))),A=t.useMemo((()=>b.map((e=>({...e,role:"option",id:e.id,selected:"multiple"===w?m.includes(e.id):void 0,onAction:e=>{const t=m.filter((t=>t!==e.id)),r=m.includes(e.id)?t:[...t,e.id];var a,o;((S||(a=f,function(e){const{text:t=""}=Array.isArray(e)?e.slice(-1)[0]:e;a(t)}))(r.map((e=>function(e,t){return t.find((t=>t.id===e))}(e,b)))),"multiple"===w)?(f(""),s("")):(c(!1),null===(o=i.current)||void 0===o||o.setSelectionRange(i.current.value.length,i.current.value.length))}})))),[b,m,i,S,w,s,f,c]),I=t.useMemo((()=>R.reduce(((e,t,r)=>(e[t]=r,e)),{})),[R]),L=t.useMemo((()=>{return A.filter(B||(e=l,function(t,r){var a;return Boolean(null===(a=t.text)||void 0===a?void 0:a.toLowerCase().startsWith(e.toLowerCase()))})).sort(((e,t)=>I[e.id]-I[t.id]));var e}),[A,I,B,l]),O=t.useMemo((()=>[...L,...x?[{...x,leadingVisual:()=>n.default.createElement(oa,null),onAction:e=>{x.handleAddItem({...e,id:e.id||zr(),leadingVisual:void 0}),"multiple"===w&&(f(""),s(""))}}]:[]]),[L,x,s,w,f]);return Ca({containerRef:E,focusOutBehavior:"wrap",focusableElementFilter:e=>!(e instanceof HTMLInputElement),activeDescendantFocus:i,onActiveDescendantChanged:(e,t,r)=>{if(a.current=e||null,e){const t=A.find((t=>t.id.toString()===e.getAttribute("data-id")));z(t),u(r)}e&&T&&T.current&&r?rn(e,T.current):e&&d.current&&r&&rn(e,d.current)}},[y]),t.useEffect((()=>{var e;null!=C&&null!==(e=C.text)&&void 0!==e&&e.startsWith(l)&&!m.includes(C.id)?s(C.text):s("")}),[C,l,m,s]),t.useEffect((()=>{const e=[...R].sort(h||(t=e=>((e,t)=>t.includes(e))(e,m),(e,r)=>t(e)===t(r)?0:t(e)?-1:1));var t;const r=e.length===R.length&&e.every(((e,t)=>e===R[t]));!1!==p||r||N(e),$&&$(Boolean(p))}),[p,$,m,h,R]),t.useEffect((()=>{m.length&&g(m.length)}),[m,g]),n.default.createElement(qt,{sx:p?{}:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},y?n.default.createElement(qt,{p:3,display:"flex",justifyContent:"center"},n.default.createElement(hl,null)):n.default.createElement("div",{ref:E},O.length?n.default.createElement(Oo,{selectionVariant:"multiple",items:O,role:"listbox",id:`${o}-listbox`,"aria-labelledby":k}):n.default.createElement(qt,{p:3},v)))}function on({menuAnchorRef:e,overlayProps:r,children:a}){const o=t.useContext(Vo);if(null===o)throw new Error("AutocompleteContext returned null values");const{inputRef:i,scrollContainerRef:l,selectedItemLength:d,setShowMenu:s,showMenu:c=!1}=o,{floatingElementRef:f,position:u}=xa({side:"outside-bottom",align:"start",anchorElementRef:e||i},[c,d]),g=La(l,f),p=t.useCallback((()=>{s(!1)}),[s]);return"undefined"==typeof window?null:n.default.createElement(Wo,Tt({returnFocusRef:i,preventFocusOnOpen:!0,onClickOutside:p,onEscape:p,ref:g,top:null==u?void 0:u.top,left:null==u?void 0:u.left,visibility:c?"visible":"hidden",sx:{overflow:"auto"}},r),a)}an.displayName="AutocompleteMenu",an.defaultProps={emptyStateText:"No selectable options",selectionVariant:"single"},an.displayName="AutocompleteMenu",on.displayName="AutocompleteOverlay",on.displayName="AutocompleteOverlay";const nn={inputValue:"",showMenu:!1,isMenuDirectlyActivated:!1,autocompleteSuggestion:"",selectedItemLength:0},ln=(e,t)=>{const{type:r,payload:a}=t;switch(r){case"inputValue":return{...e,inputValue:a};case"showMenu":return{...e,showMenu:a};case"isMenuDirectlyActivated":return{...e,isMenuDirectlyActivated:a};case"autocompleteSuggestion":return{...e,autocompleteSuggestion:a};case"selectedItemLength":return{...e,selectedItemLength:a};default:return e}},dn=({children:e,id:r})=>{const a=t.useRef(null),o=t.useRef(null),i=t.useRef(null),[l,d]=t.useReducer(ln,nn),{inputValue:s,showMenu:c,autocompleteSuggestion:f,isMenuDirectlyActivated:u,selectedItemLength:g}=l,p=t.useCallback((e=>{d({type:"inputValue",payload:e})}),[]),b=t.useCallback((e=>{d({type:"showMenu",payload:e})}),[]),m=t.useCallback((e=>{d({type:"autocompleteSuggestion",payload:e})}),[]),h=t.useCallback((e=>{d({type:"isMenuDirectlyActivated",payload:e})}),[]),v=t.useCallback((e=>{d({type:"selectedItemLength",payload:e})}),[]),x=Ha(r);return n.default.createElement(Vo.Provider,{value:{activeDescendantRef:a,autocompleteSuggestion:f,id:x,inputRef:i,inputValue:s,isMenuDirectlyActivated:u,scrollContainerRef:o,selectedItemLength:g,setAutocompleteSuggestion:m,setInputValue:p,setIsMenuDirectlyActivated:h,setShowMenu:b,setSelectedItemLength:v,showMenu:c}},e)};dn.displayName="Autocomplete";var sn=Object.assign(dn,{Input:tn,Menu:an,Overlay:on});const cn=i.default.img.attrs((e=>({height:e.size,width:e.size})))`
|
654
644
|
display: inline-block;
|
655
645
|
overflow: hidden; // Ensure page layout in Firefox should images fail to load
|
656
646
|
line-height: ${xt("lineHeights.condensedUltra")};
|
@@ -658,12 +648,12 @@
|
|
658
648
|
border-radius: ${e=>function({size:e,square:t}){return t?e&&e<=24?"4px":"6px":"50%"}(e)};
|
659
649
|
${yt};
|
660
650
|
${Kt}
|
661
|
-
`;
|
651
|
+
`;cn.defaultProps={size:20,alt:"",square:!1};var fn=cn;const un=i.default(fn)`
|
662
652
|
position: absolute;
|
663
653
|
right: -15%;
|
664
654
|
bottom: -9%;
|
665
655
|
box-shadow: ${xt("shadows.avatar.childShadow")};
|
666
|
-
`,
|
656
|
+
`,gn=({children:e,...t})=>{const r=n.default.Children.map(e,((e,t)=>n.default.isValidElement(e)?0===t?n.default.cloneElement(e,{size:40}):n.default.createElement(un,Tt({bg:"canvas.default"},e.props,{size:20})):e));return n.default.createElement(qt,Tt({position:"relative",display:"inline-flex"},t),r)};gn.displayName="AvatarPair",gn.displayName="AvatarPair";var pn=gn;const bn=i.default.span`
|
667
657
|
display: flex;
|
668
658
|
position: relative;
|
669
659
|
height: 20px;
|
@@ -778,7 +768,7 @@
|
|
778
768
|
}
|
779
769
|
|
780
770
|
${Kt};
|
781
|
-
`,
|
771
|
+
`,mn=({children:e,alignRight:t,sx:r})=>{const a=n.default.Children.count(e),o=qo({"pc-AvatarStack--two":2===a,"pc-AvatarStack--three-plus":a>2,"pc-AvatarStack--right":t});return n.default.createElement(bn,{count:a,className:o,sx:r},n.default.createElement(qt,{position:"absolute",display:"flex",width:"38px",className:"pc-AvatarStackBody"},(e=>n.default.Children.map(e,((e,t)=>n.default.isValidElement(e)?n.default.cloneElement(e,{className:qo(e.props.className,"pc-AvatarItem"),sx:{zIndex:10-t,...e.props.sx}}):e)))(e)))};mn.displayName="AvatarStack";var hn=mn;var vn=i.default.a`
|
782
772
|
display: inline-block;
|
783
773
|
padding: 2px 6px;
|
784
774
|
font-size: ${xt("fontSizes.0")};
|
@@ -788,7 +778,7 @@
|
|
788
778
|
border-radius: ${xt("radii.2")};
|
789
779
|
${yt};
|
790
780
|
${Kt};
|
791
|
-
`;const
|
781
|
+
`;const xn=i.default.li`
|
792
782
|
display: inline-block;
|
793
783
|
white-space: nowrap;
|
794
784
|
list-style: none;
|
@@ -807,13 +797,13 @@
|
|
807
797
|
content: none;
|
808
798
|
}
|
809
799
|
}
|
810
|
-
`,
|
800
|
+
`,yn=i.default.nav`
|
811
801
|
display: flex;
|
812
802
|
justify-content: space-between;
|
813
803
|
${yt};
|
814
804
|
${St};
|
815
805
|
${Kt};
|
816
|
-
`;function
|
806
|
+
`;function wn({className:e,children:t,theme:r,...a}){const o=n.default.Children.map(t,(e=>n.default.createElement(xn,{theme:r},e)));return n.default.createElement(yn,Tt({className:e,"aria-label":"Breadcrumbs",theme:r},a),n.default.createElement(qt,{as:"ol",my:0,pl:0},o))}wn.displayName="Breadcrumbs";const Bn=i.default.a.attrs((e=>({activeClassName:"string"==typeof e.to?"selected":"",className:qo(e.selected&&"selected",e.className),"aria-current":e.selected?"page":null})))`
|
817
807
|
color: ${xt("colors.accent.fg")};
|
818
808
|
display: inline-block;
|
819
809
|
font-size: ${xt("fontSizes.1")};
|
@@ -827,7 +817,7 @@
|
|
827
817
|
}
|
828
818
|
${yt}
|
829
819
|
${Kt};
|
830
|
-
`;
|
820
|
+
`;wn.displayName="Breadcrumbs",Bn.displayName="Breadcrumbs.Item";var kn=Object.assign(wn,{Item:Bn});const $n=Object.assign(wn,{Item:Bn}),Sn={top:"Bottom",right:"Left",bottom:"Top",left:"Right"},Tn={top:"Left",right:"Top",bottom:"Left",left:"Top"};function En(e,t,r){const a=Sn[e].toLowerCase(),o=Tn[e].toLowerCase();return{[a]:"100%",[t||o]:t?r:"50%"}}const Cn=pt({prop:"bg",key:"colors"}),zn=pt({prop:"borderColor",key:"colors"}),Rn=pt({prop:"borderWidth",key:"borderWidths",scale:[0,1]});function Nn(e){var t;const a=n.default.useContext(r.ThemeContext),o={...e,theme:null!==(t=e.theme)&&void 0!==t?t:a},{bg:i}=Cn(o),{borderColor:l}=zn(o),{borderWidth:d}=Rn(o),{size:s=8,location:c="bottom"}=e,[f,u]=function(e){const[t,r]=e.split("-");return[t,r]}(c),g=Tn[f],p=[-s,0],b=[0,s],m=[s,0],h=`M${p}L${b}L${m}L${p}Z`,v=`M${p}L${b}L${m}`,x={top:`translate(${[s,2*s]}) rotate(180)`,right:`translate(${[0,s]}) rotate(-90)`,bottom:`translate(${[s,0]})`,left:`translate(${[2*s,s]}) rotate(90)`}[f];return n.default.createElement("svg",{width:2*s,height:2*s,style:{pointerEvents:"none",position:"absolute",...En(f,u,s),[`margin${g}`]:u?null:-s}},n.default.createElement("g",{transform:x},n.default.createElement("path",{d:h,fill:i}),n.default.createElement("path",{d:v,fill:"none",stroke:l,strokeWidth:d})))}Nn.displayName="Caret",Nn.locations=["top","top-left","top-right","right","right-top","right-bottom","bottom","bottom-left","bottom-right","left","left-top","left-bottom"],Nn.defaultProps={bg:"canvas.default",borderColor:"border.default",borderWidth:1};const An={small:56,medium:96,large:128},In=i.default.div`
|
831
821
|
display: ${e=>e.inline?"inline-flex":"flex"};
|
832
822
|
align-items: center;
|
833
823
|
justify-content: center;
|
@@ -835,13 +825,13 @@
|
|
835
825
|
border-radius: 50%;
|
836
826
|
box-shadow: ${xt("shadows.shadow.medium")};
|
837
827
|
${yt};
|
838
|
-
${({size:e,variant:t="medium"})=>{const r=function(e){return!isNaN(parseFloat(e))&&isFinite(e)}(e)?e:
|
828
|
+
${({size:e,variant:t="medium"})=>{const r=function(e){return!isNaN(parseFloat(e))&&isFinite(e)}(e)?e:An[t];return{width:r,height:r}}};
|
839
829
|
${Kt};
|
840
|
-
`,
|
830
|
+
`,Ln=i.default(Ea)`
|
841
831
|
height: auto;
|
842
832
|
max-width: 60%;
|
843
833
|
max-height: 55%;
|
844
|
-
`;
|
834
|
+
`;In.defaultProps={inline:!1},Ln.displayName="CircleBadge.Icon";var On=Object.assign(In,{Icon:Ln});function Mn(e){const{size:t,as:r}=e,{icon:a,bg:o,...i}=e;return n.default.createElement(qt,{as:r,bg:o,overflow:"hidden",borderWidth:0,size:t,borderRadius:"50%",borderStyle:"solid",borderColor:"border.default"},n.default.createElement(qt,Tt({display:"flex"},i,{alignItems:"center",justifyContent:"center"}),n.default.createElement(a,{size:t})))}Mn.displayName="CircleOcticon",Mn.defaultProps={...qt.defaultProps,size:32};var Pn=i.default.span`
|
845
835
|
display: inline-block;
|
846
836
|
padding: 2px 5px;
|
847
837
|
font-size: ${xt("fontSizes.0")};
|
@@ -857,7 +847,7 @@
|
|
857
847
|
}
|
858
848
|
|
859
849
|
${Kt};
|
860
|
-
`;const
|
850
|
+
`;const Hn=i.default.details`
|
861
851
|
& > summary {
|
862
852
|
list-style: none;
|
863
853
|
}
|
@@ -867,11 +857,11 @@
|
|
867
857
|
|
868
858
|
${yt}
|
869
859
|
${Kt};
|
870
|
-
`;
|
860
|
+
`;Hn.displayName="Details";var Dn=Hn;const Wn=()=>null;function Fn(e){const t=e;return t.tabIndex>=0&&!t.disabled&&function(e){return!e.hidden&&(!e.type||"hidden"!==e.type)&&(e.offsetWidth>0||e.offsetHeight>0)}(t)}var _n=i.default.span`
|
871
861
|
${wt};
|
872
862
|
${yt};
|
873
863
|
${Kt};
|
874
|
-
`;const
|
864
|
+
`;const jn=()=>null,Un=i.default.div`
|
875
865
|
box-shadow: ${xt("shadows.shadow.large")};
|
876
866
|
border-radius: ${xt("radii.2")};
|
877
867
|
position: fixed;
|
@@ -895,7 +885,7 @@
|
|
895
885
|
${kt};
|
896
886
|
${yt};
|
897
887
|
${Kt};
|
898
|
-
`,
|
888
|
+
`,Gn=i.default(qt)`
|
899
889
|
border-radius: ${xt("radii.2")} ${xt("radii.2")} 0px 0px;
|
900
890
|
border-bottom: 1px solid ${xt("colors.border.default")};
|
901
891
|
display: flex;
|
@@ -905,7 +895,7 @@
|
|
905
895
|
}
|
906
896
|
|
907
897
|
${Kt};
|
908
|
-
`;function
|
898
|
+
`;function Vn({theme:e,children:t,backgroundColor:r="gray.1",...a}){return n.default.Children.toArray(t).every((e=>"string"==typeof e))&&(t=n.default.createElement(_n,{theme:e,color:"fg.default",fontSize:1,fontWeight:"bold",fontFamily:"sans-serif"},t)),n.default.createElement(Gn,Tt({theme:e,p:3,backgroundColor:r},a),t)}Vn.displayName="DialogHeader";const Kn=i.default.span`
|
909
899
|
&:before {
|
910
900
|
position: fixed;
|
911
901
|
top: 0;
|
@@ -919,10 +909,10 @@
|
|
919
909
|
z-index: 99;
|
920
910
|
background: ${xt("colors.primer.canvas.backdrop")};
|
921
911
|
}
|
922
|
-
`,
|
912
|
+
`,qn=t.forwardRef((({children:e,onDismiss:r=jn,isOpen:a,initialFocusRef:o,returnFocusRef:i,...l},d)=>{const s=t.useRef(null),c=La(d),f=t.useRef(null),u=()=>{r(),i&&i.current&&i.current.focus()},{getDialogProps:g}=function({modalRef:e,overlayRef:r,isOpen:a,onDismiss:o=Wn,initialFocusRef:n,closeButtonRef:i}){const l=t.useCallback((t=>{e.current&&r.current&&!e.current.contains(t.target)&&r.current.contains(t.target)&&o()}),[o,e,r]);t.useEffect((()=>{if(a)return document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}}),[a,l]),t.useEffect((()=>{a&&(n&&n.current?n.current.focus():i&&i.current&&i.current.focus())}),[a,n,i]);const d=t.useCallback(((t,r)=>{if(e.current){const a=Array.from(e.current.querySelectorAll("*")).filter(Fn);if(0===a.length)return;t.preventDefault();const o=document.activeElement;if(!o)return;const n=a.indexOf(o)+r,i=1===r?0:a.length-1;return a[n]||a[i]}}),[e]),s=t.useCallback((e=>{const t=e.shiftKey?-1:1,r=d(e,t);r&&r.focus()}),[d]),c=t.useCallback((e=>{switch(e.key){case"Tab":s(e);break;case"Escape":o(),e.stopPropagation()}}),[s,o]);return{getDialogProps:()=>({onKeyDown:c})}}({modalRef:c,onDismiss:u,isOpen:a,initialFocusRef:o,closeButtonRef:f,returnFocusRef:i,overlayRef:s});return a?n.default.createElement(n.default.Fragment,null,n.default.createElement(Kn,{ref:s}),n.default.createElement(Un,Tt({tabIndex:-1,ref:c,role:"dialog","aria-modal":"true"},l,g()),n.default.createElement(sa,{ref:f,onClick:u,sx:{position:"absolute",top:"16px",right:"16px"}}),e)):null}));Vn.defaultProps={backgroundColor:"canvas.subtle"},Vn.propTypes={...qt.propTypes},Vn.displayName="Dialog.Header",qn.displayName="Dialog";var Xn=Object.assign(qn,{Header:Vn});var Yn=(e,t)=>({w:`\n top: 0;\n right: 100%;\n left: auto;\n width: auto;\n margin-top: 0;\n margin-right: 10px;\n\n &::before {\n top: 10px;\n right: -16px;\n left: auto;\n border-color: transparent;\n border-left-color: ${xt("colors.border.default")(e)};\n }\n\n &::after {\n top: 11px;\n right: -14px;\n left: auto;\n border-color: transparent;\n border-left-color: ${xt("colors.border.default")(e)};\n }\n `,e:`\n top: 0;\n left: 100%;\n width: auto;\n margin-top: 0;\n margin-left: 10px;\n\n &::before {\n top: 10px;\n left: -16px;\n border-color: transparent;\n border-right-color: ${xt("colors.border.default")(e)};\n }\n\n &::after {\n top: 11px;\n left: -14px;\n border-color: transparent;\n border-right-color: ${xt("colors.border.default")(e)};\n }\n `,ne:`\n top: auto;\n bottom: 100%;\n left: 0;\n margin-bottom: 3px;\n\n &::before,\n &::after {\n top: auto;\n right: auto;\n }\n\n &::before {\n bottom: -8px;\n left: 9px;\n border-top: 8px solid ${xt("colors.border.default")(e)};\n border-bottom: 0;\n border-left: 8px solid transparent;\n }\n\n &::after {\n bottom: -7px;\n left: 10px;\n border-top: 7px solid ${xt("colors.border.default")(e)};\n border-right: 7px solid transparent;\n border-bottom: 0;\n border-left: 7px solid transparent;\n }\n `,s:"\n right: 50%;\n left: auto;\n transform: translateX(50%);\n\n &::before {\n top: -16px;\n right: 50%;\n transform: translateX(50%);\n }\n\n &::after {\n top: -14px;\n right: 50%;\n transform: translateX(50%);\n }\n ",sw:"\n right: 0;\n left: auto;\n\n &::before {\n top: -16px;\n right: 9px;\n left: auto;\n }\n\n &::after {\n top: -14px;\n right: 10px;\n left: auto;\n }\n ",se:"\n &::before {\n top: -16px;\n left: 9px;\n }\n\n &::after {\n top: -14px;\n left: 10px;\n }\n "}[t]);const Jn=i.default(Dn)`
|
923
913
|
position: relative;
|
924
914
|
display: inline-block;
|
925
|
-
`,
|
915
|
+
`,Zn=({children:e,className:t,...r})=>{const{getDetailsProps:a}=lr({closeOnOutsideClick:!0});return n.default.createElement(Jn,Tt({className:t},a(),r),e)};Zn.displayName="Dropdown";const Qn=({children:e,...t})=>n.default.createElement(_r,Tt({as:"summary","aria-haspopup":"true"},t),e,n.default.createElement(ei,null));Qn.displayName="DropdownButton";const ei=i.default.div`
|
926
916
|
border: 4px solid transparent;
|
927
917
|
margin-left: 12px;
|
928
918
|
border-top-color: currentcolor;
|
@@ -934,7 +924,7 @@
|
|
934
924
|
width: 0;
|
935
925
|
${yt};
|
936
926
|
${Kt};
|
937
|
-
`,
|
927
|
+
`,ti=i.default.ul`
|
938
928
|
background-clip: padding-box;
|
939
929
|
background-color: ${xt("colors.canvas.overlay")};
|
940
930
|
border: 1px solid ${xt("colors.border.default")};
|
@@ -975,10 +965,10 @@
|
|
975
965
|
> ul {
|
976
966
|
list-style: none;
|
977
967
|
}
|
978
|
-
${e=>e.direction?
|
968
|
+
${e=>e.direction?Yn(e.theme,e.direction):""};
|
979
969
|
${yt};
|
980
970
|
${Kt};
|
981
|
-
`,
|
971
|
+
`,ri=i.default.li`
|
982
972
|
display: block;
|
983
973
|
padding: ${xt("space.1")} 10px ${xt("space.1")} 15px;
|
984
974
|
overflow: hidden;
|
@@ -1011,7 +1001,7 @@
|
|
1011
1001
|
}
|
1012
1002
|
${yt};
|
1013
1003
|
${Kt};
|
1014
|
-
`;
|
1004
|
+
`;ti.defaultProps={direction:"sw"},ti.displayName="Dropdown.Menu",ri.displayName="Dropdown.Item",Qn.defaultProps=_r.defaultProps,Qn.displayName="Dropdown.Button",ei.displayName="Dropdown.Caret",Zn.defaultProps=Dn.defaultProps;var ai=Object.assign(Zn,{Caret:ei,Menu:ti,Item:ri,Button:Qn});const oi=n.default.forwardRef((({children:e,...t},r)=>n.default.createElement(_r,Tt({ref:r,type:"button"},t),e,n.default.createElement(Ea,{icon:ia,ml:1}))));function ni({renderAnchor:e=(e=>n.default.createElement(oi,e)),anchorRef:r,placeholder:a,selectedItem:o,onChange:i,overlayProps:l,items:d,open:s,onOpenChange:c,...f}){const[u,g]=_o(s,c,!1),p=t.useCallback((()=>g(!0)),[g]),b=t.useCallback((()=>g(!1)),[g]),m=yr(r),h=t.useMemo((()=>null===e?null:t=>{var r;return e({...t,children:null!==(r=null==o?void 0:o.text)&&void 0!==r?r:a})}),[a,e,null==o?void 0:o.text]),v=t.useMemo((()=>d.map((e=>({...e,role:"option",selected:e===o,onAction:(t,r)=>{var a;null===(a=e.onAction)||void 0===a||a.call(e,t,r),r.defaultPrevented||(b(),null==i||i(e===o?void 0:e))}})))),[d,i,b,o]);return n.default.createElement(Fo,{renderAnchor:h,anchorRef:m,open:u,onOpen:p,onClose:b,overlayProps:l},n.default.createElement(Lo,Tt({},f,{role:"listbox",items:v})))}ni.displayName="DropdownMenu",ni.displayName="DropdownMenu";var ii=i.default.div`
|
1015
1005
|
${yt};
|
1016
1006
|
display: flex;
|
1017
1007
|
align-items: stretch;
|
@@ -1030,11 +1020,11 @@
|
|
1030
1020
|
}
|
1031
1021
|
|
1032
1022
|
${Kt}
|
1033
|
-
`;const
|
1023
|
+
`;const li=i.default.ul`
|
1034
1024
|
list-style-type: none;
|
1035
1025
|
${yt};
|
1036
1026
|
${Kt};
|
1037
|
-
`,
|
1027
|
+
`,di=({children:e,...t})=>{const r=n.default.Children.map(e,(e=>n.default.createElement("li",null,e)));return n.default.createElement(li,t,r)};di.displayName="FilterList";const si=i.default.a`
|
1038
1028
|
position: relative;
|
1039
1029
|
display: block;
|
1040
1030
|
padding: ${e=>e.small?`${xt("space.1")(e)} 10px`:`${xt("space.2")(e)} 11px`};
|
@@ -1062,7 +1052,7 @@
|
|
1062
1052
|
}
|
1063
1053
|
${yt};
|
1064
1054
|
${Kt};
|
1065
|
-
`;function
|
1055
|
+
`;function ci({children:e,count:t,...r}){return n.default.createElement(si,r,t&&n.default.createElement("span",{title:"results",className:"count"},t),e)}ci.displayName="FilterListItem",di.defaultProps={m:0,p:0},ci.displayName="FilterList.Item";var fi=Object.assign(di,{Item:ci});const ui=re({variants:{default:{color:"fg.default",backgroundColor:"accent.subtle",borderColor:"accent.muted",svg:{color:"accent.fg"}},success:{color:"fg.default",backgroundColor:"success.subtle",borderColor:"success.muted",svg:{color:"success.fg"}},danger:{color:"fg.default",backgroundColor:"danger.subtle",borderColor:"danger.muted",svg:{color:"danger.fg"}},warning:{color:"fg.default",backgroundColor:"attention.subtle",borderColor:"attention.muted",svg:{color:"attention.fg"}}}}),gi=i.default.div`
|
1066
1056
|
position: relative;
|
1067
1057
|
color: ${xt("colors.fg.default")};
|
1068
1058
|
padding: ${xt("space.3")};
|
@@ -1080,14 +1070,14 @@
|
|
1080
1070
|
}
|
1081
1071
|
|
1082
1072
|
${yt};
|
1083
|
-
${
|
1073
|
+
${ui};
|
1084
1074
|
${Kt};
|
1085
|
-
`;
|
1075
|
+
`;gi.defaultProps={variant:"default"};var pi=gi;const bi=i.default.div`
|
1086
1076
|
margin: ${xt("space.3")} 0;
|
1087
1077
|
font-weight: ${xt("fontWeights.normal")};
|
1088
1078
|
${yt};
|
1089
1079
|
${Kt};
|
1090
|
-
`,
|
1080
|
+
`,mi=i.default.label`
|
1091
1081
|
display: block;
|
1092
1082
|
margin: 0 0 ${xt("space.2")};
|
1093
1083
|
font-size: ${xt("fontSizes.1")};
|
@@ -1095,7 +1085,7 @@
|
|
1095
1085
|
${wt};
|
1096
1086
|
${yt};
|
1097
1087
|
${Kt};
|
1098
|
-
`;
|
1088
|
+
`;mi.displayName="FormGroup.Label";var hi=Object.assign(bi,{Label:mi});const vi=i.default.div`
|
1099
1089
|
z-index: 32;
|
1100
1090
|
display: flex;
|
1101
1091
|
padding: ${xt("space.3")};
|
@@ -1109,7 +1099,7 @@
|
|
1109
1099
|
${yt}
|
1110
1100
|
${Bt}
|
1111
1101
|
${Kt};
|
1112
|
-
`,
|
1102
|
+
`,xi=i.default.div`
|
1113
1103
|
display: flex;
|
1114
1104
|
margin-right: ${xt("space.3")};
|
1115
1105
|
align-self: stretch;
|
@@ -1121,7 +1111,7 @@
|
|
1121
1111
|
${yt};
|
1122
1112
|
${Bt};
|
1123
1113
|
${Kt};
|
1124
|
-
`;
|
1114
|
+
`;xi.displayName="Header.Item";const yi=i.default.a.attrs((({to:e})=>"string"==typeof e?{"aria-current":"page"}:{}))`
|
1125
1115
|
font-weight: ${xt("fontWeights.bold")};
|
1126
1116
|
color: ${xt("colors.header.logo")};
|
1127
1117
|
white-space: nowrap;
|
@@ -1139,14 +1129,14 @@
|
|
1139
1129
|
${Bt};
|
1140
1130
|
${wt};
|
1141
1131
|
${Kt};
|
1142
|
-
`;
|
1132
|
+
`;yi.displayName="Header.Link";var wi=Object.assign(vi,{Link:yi,Item:xi});const Bi=i.default.h2`
|
1143
1133
|
font-weight: ${xt("fontWeights.bold")};
|
1144
1134
|
font-size: ${xt("fontSizes.5")};
|
1145
1135
|
margin: 0;
|
1146
1136
|
${wt};
|
1147
1137
|
${yt};
|
1148
1138
|
${Kt};
|
1149
|
-
`;
|
1139
|
+
`;Bi.defaultProps={theme:d};var ki=Bi;var $i=i.default.span`
|
1150
1140
|
${yt}
|
1151
1141
|
& * {
|
1152
1142
|
margin-right: ${xt("space.1")};
|
@@ -1155,7 +1145,7 @@
|
|
1155
1145
|
margin-right: 0;
|
1156
1146
|
}
|
1157
1147
|
${Kt};
|
1158
|
-
`;const
|
1148
|
+
`;const Si=r.css(["margin-top:-1px;margin-bottom:-1px;color:",";border:"," solid ",";box-shadow:none;",";",";background-color:transparent;"],xt("colors.fg.muted"),xt("borderWidths.1"),xt("colors.border.default"),Qe,yt),Ti=re({variants:{small:{fontSize:0,lineHeight:"16px",padding:"0px 8px"},medium:{fontSize:0,lineHeight:"20px",padding:"0 8px"},large:{fontSize:0,lineHeight:"24px",padding:"0 12px"},xl:{fontSize:1,lineHeight:"16px",padding:"8px 12px"}}}),Ei=i.default.span`
|
1159
1149
|
display: inline-block;
|
1160
1150
|
font-weight: ${xt("fontWeights.semibold")};
|
1161
1151
|
color: ${xt("colors.fg.onEmphasis")};
|
@@ -1165,17 +1155,17 @@
|
|
1165
1155
|
text-decoration: none;
|
1166
1156
|
}
|
1167
1157
|
|
1168
|
-
${
|
1158
|
+
${Ti}
|
1169
1159
|
${yt}
|
1170
1160
|
${e=>e.dropshadow?"box-shadow: inset 0 -1px 0 rgba(27, 31, 35, 0.12)":""}
|
1171
|
-
${e=>e.outline?
|
1161
|
+
${e=>e.outline?Si:""} // must be last to override other values
|
1172
1162
|
${Kt}
|
1173
|
-
`;
|
1163
|
+
`;Ei.defaultProps={bg:"neutral.emphasis",variant:"medium"};var Ci=Ei;const zi=k({hoverColor:{property:"color",scale:"colors"}});var Ri=i.default.a`
|
1174
1164
|
color: ${e=>e.muted?xt("colors.fg.muted")(e):xt("colors.accent.fg")(e)};
|
1175
1165
|
text-decoration: ${e=>e.underline?"underline":"none"};
|
1176
1166
|
&:hover {
|
1177
1167
|
text-decoration: ${e=>e.muted?"none":"underline"};
|
1178
|
-
${e=>e.hoverColor?
|
1168
|
+
${e=>e.hoverColor?zi:e.muted?`color: ${xt("colors.accent.fg")(e)}`:""};
|
1179
1169
|
}
|
1180
1170
|
&:is(button) {
|
1181
1171
|
display: inline-block;
|
@@ -1191,7 +1181,7 @@
|
|
1191
1181
|
${wt};
|
1192
1182
|
${yt};
|
1193
1183
|
${Kt};
|
1194
|
-
`;var
|
1184
|
+
`;var Ni=i.default.div`
|
1195
1185
|
position: relative;
|
1196
1186
|
padding-top: ${xt("space.4")};
|
1197
1187
|
padding-bottom: ${xt("space.4")};
|
@@ -1199,7 +1189,7 @@
|
|
1199
1189
|
border-bottom: 1px solid ${xt("colors.border.default")};
|
1200
1190
|
${yt};
|
1201
1191
|
${Kt};
|
1202
|
-
`;const
|
1192
|
+
`;const Ai=i.default.a`
|
1203
1193
|
display: inline-block;
|
1204
1194
|
min-width: 32px;
|
1205
1195
|
padding: 5px 10px;
|
@@ -1299,12 +1289,12 @@
|
|
1299
1289
|
}
|
1300
1290
|
|
1301
1291
|
${yt};
|
1302
|
-
`;function
|
1292
|
+
`;function Ii({theme:e,pageCount:t,currentPage:r,onPageChange:a,hrefBuilder:o,marginPageCount:i,showPages:l,surroundingPageCount:d}){const s=n.default.useCallback((e=>t=>a(t,e)),[a]),c=n.default.useMemo((()=>function(e,t,r,a,o){const n=[];if(r){const r=[],i=t=>{t>=1&&t<=e&&r.push(t)};let l=t-o,d=t+o;if(l<1&&d>e)l=1,d=e;else if(l<1)for(;l<1;)l++,d++;else if(d>e)for(;d>e;)l--,d--;for(let t=1;t<=a;t++){const r=t,a=e-(t-1);r>=l?d++:i(r),a<=d?l--:i(a)}for(let e=l;e<=d;e++)i(e);const s=r.slice().sort(((e,t)=>e-t)).filter(((e,t,r)=>!t||e!==r[t-1]));for(let e=0;e<s.length;e++){const r=s[e],a=r===t;0===e?(1!==r&&n.push({type:"BREAK",num:1}),n.push({type:"NUM",num:r,selected:a})):(1==r-s[e-1]||n.push({type:"BREAK",num:r-1}),n.push({type:"NUM",num:r,selected:a}))}const c=n[n.length-1];"NUM"===c.type&&c.num!==e&&n.push({type:"BREAK",num:e})}const i={type:"NEXT",num:t+1,disabled:t===e};return[{type:"PREV",num:t-1,disabled:1===t},...n,i]}(t,r,!!l,i,d)),[t,r,l,i,d]);return n.default.useMemo((()=>c.map((t=>{const{props:r,key:a,content:i}=function(e,t,r){const a={};let o="",n="";switch(e.type){case"PREV":n="page-prev",o="Previous",e.disabled?Object.assign(a,{as:"span","aria-disabled":"true"}):Object.assign(a,{rel:"prev",href:t(e.num),"aria-label":"Previous Page",onClick:r});break;case"NEXT":n="page-next",o="Next",e.disabled?Object.assign(a,{as:"span","aria-disabled":"true"}):Object.assign(a,{rel:"next",href:t(e.num),"aria-label":"Next Page",onClick:r});break;case"NUM":n=`page-${e.num}`,o=String(e.num),e.selected?Object.assign(a,{as:"em","aria-current":"page"}):Object.assign(a,{href:t(e.num),"aria-label":`Page ${e.num}`,onClick:r});break;case"BREAK":n=`page-${e.num}-break`,o="…",Object.assign(a,{as:"span","aria-disabled":!0})}return{props:a,key:n,content:o}}(t,o,s(t.num));return n.default.createElement(Ai,Tt({},r,{key:a,theme:e}),i)}))),[c,o,s,e])}const Li=i.default.nav`
|
1303
1293
|
margin-top: 20px;
|
1304
1294
|
margin-bottom: 15px;
|
1305
1295
|
text-align: center;
|
1306
1296
|
${Kt};
|
1307
|
-
`;function
|
1297
|
+
`;function Oi({theme:e,pageCount:t,currentPage:r,onPageChange:a=Pi,hrefBuilder:o=Mi,marginPageCount:i=1,showPages:l=!0,surroundingPageCount:d=2,...s}){const c=Ii({theme:e,pageCount:t,currentPage:r,onPageChange:a,hrefBuilder:o,marginPageCount:i,showPages:l,surroundingPageCount:d});return n.default.createElement(Li,Tt({"aria-label":"Pagination"},s,{theme:e}),n.default.createElement(qt,{display:"inline-block",theme:e},c))}function Mi(e){return`#${e}`}function Pi(){}function Hi(e){const{bg:t,border:r,borderColor:a,theme:o}=e,{caret:i,children:l,...d}=e,s={bg:t,borderColor:a,borderWidth:r,location:i,theme:o};return n.default.createElement(Yt,Tt({sx:{position:"relative"}},d),l,n.default.createElement(Nn,s))}Oi.displayName="Pagination",Oi.defaultProps={hrefBuilder:Mi,marginPageCount:1,onPageChange:Pi,showPages:!0,surroundingPageCount:2},Hi.displayName="PointerBox";const Di=i.default.div.attrs((({className:e,caret:t})=>({className:qo(e,`caret-pos--${t}`)})))`
|
1308
1298
|
position: ${e=>e.relative?"relative":"absolute"};
|
1309
1299
|
z-index: 100;
|
1310
1300
|
display: ${e=>e.open?"block":"none"};
|
@@ -1313,7 +1303,7 @@
|
|
1313
1303
|
${kt};
|
1314
1304
|
${$t};
|
1315
1305
|
${Kt};
|
1316
|
-
`,
|
1306
|
+
`,Wi=i.default(qt)`
|
1317
1307
|
border: 1px solid ${xt("colors.border.default")};
|
1318
1308
|
border-radius: ${xt("radii.2")};
|
1319
1309
|
position: relative;
|
@@ -1350,9 +1340,9 @@
|
|
1350
1340
|
}
|
1351
1341
|
|
1352
1342
|
// Bottom-oriented carets
|
1353
|
-
${
|
1354
|
-
${
|
1355
|
-
${
|
1343
|
+
${Di}.caret-pos--bottom & ,
|
1344
|
+
${Di}.caret-pos--bottom-right & ,
|
1345
|
+
${Di}.caret-pos--bottom-left & {
|
1356
1346
|
&::before,
|
1357
1347
|
&::after {
|
1358
1348
|
top: auto;
|
@@ -1372,8 +1362,8 @@
|
|
1372
1362
|
}
|
1373
1363
|
|
1374
1364
|
// Top & Bottom: Right-oriented carets
|
1375
|
-
${
|
1376
|
-
${
|
1365
|
+
${Di}.caret-pos--top-right & ,
|
1366
|
+
${Di}.caret-pos--bottom-right & {
|
1377
1367
|
right: -9px;
|
1378
1368
|
margin-right: 0;
|
1379
1369
|
|
@@ -1393,8 +1383,8 @@
|
|
1393
1383
|
}
|
1394
1384
|
|
1395
1385
|
// Top & Bottom: Left-oriented carets
|
1396
|
-
${
|
1397
|
-
${
|
1386
|
+
${Di}.caret-pos--top-left & ,
|
1387
|
+
${Di}.caret-pos--bottom-left & {
|
1398
1388
|
left: -9px;
|
1399
1389
|
margin-left: 0;
|
1400
1390
|
|
@@ -1410,12 +1400,12 @@
|
|
1410
1400
|
}
|
1411
1401
|
|
1412
1402
|
// Right- & Left-oriented carets
|
1413
|
-
${
|
1414
|
-
${
|
1415
|
-
${
|
1416
|
-
${
|
1417
|
-
${
|
1418
|
-
${
|
1403
|
+
${Di}.caret-pos--right & ,
|
1404
|
+
${Di}.caret-pos--right-top & ,
|
1405
|
+
${Di}.caret-pos--right-bottom & ,
|
1406
|
+
${Di}.caret-pos--left & ,
|
1407
|
+
${Di}.caret-pos--left-top & ,
|
1408
|
+
${Di}.caret-pos--left-bottom & {
|
1419
1409
|
&::before,
|
1420
1410
|
&::after {
|
1421
1411
|
top: 50%;
|
@@ -1435,9 +1425,9 @@
|
|
1435
1425
|
}
|
1436
1426
|
|
1437
1427
|
// Right-oriented carets
|
1438
|
-
${
|
1439
|
-
${
|
1440
|
-
${
|
1428
|
+
${Di}.caret-pos--right & ,
|
1429
|
+
${Di}.caret-pos--right-top & ,
|
1430
|
+
${Di}.caret-pos--right-bottom & {
|
1441
1431
|
&::before {
|
1442
1432
|
right: -${xt("space.3")};
|
1443
1433
|
border-left-color: ${xt("colors.border.default")};
|
@@ -1451,9 +1441,9 @@
|
|
1451
1441
|
}
|
1452
1442
|
|
1453
1443
|
// Left-oriented carets
|
1454
|
-
${
|
1455
|
-
${
|
1456
|
-
${
|
1444
|
+
${Di}.caret-pos--left & ,
|
1445
|
+
${Di}.caret-pos--left-top & ,
|
1446
|
+
${Di}.caret-pos--left-bottom & {
|
1457
1447
|
&::before {
|
1458
1448
|
left: -${xt("space.3")};
|
1459
1449
|
border-right-color: ${xt("colors.border.default")};
|
@@ -1467,8 +1457,8 @@
|
|
1467
1457
|
}
|
1468
1458
|
|
1469
1459
|
// Right & Left: Top-oriented carets
|
1470
|
-
${
|
1471
|
-
${
|
1460
|
+
${Di}.caret-pos--right-top & ,
|
1461
|
+
${Di}.caret-pos--left-top & {
|
1472
1462
|
&::before,
|
1473
1463
|
&::after {
|
1474
1464
|
top: ${xt("space.4")};
|
@@ -1476,8 +1466,8 @@
|
|
1476
1466
|
}
|
1477
1467
|
|
1478
1468
|
// Right & Left: Bottom-oriented carets
|
1479
|
-
${
|
1480
|
-
${
|
1469
|
+
${Di}.caret-pos--right-bottom & ,
|
1470
|
+
${Di}.caret-pos--left-bottom & {
|
1481
1471
|
&::before,
|
1482
1472
|
&::after {
|
1483
1473
|
top: auto;
|
@@ -1493,23 +1483,23 @@
|
|
1493
1483
|
}
|
1494
1484
|
|
1495
1485
|
${Kt};
|
1496
|
-
`;
|
1486
|
+
`;Di.defaultProps={caret:"top"},Wi.displayName="Popover.Content";var Fi=Object.assign(Di,{Content:Wi});const _i=i.default.span`
|
1497
1487
|
width: ${e=>e.progress?`${e.progress}%`:0};
|
1498
1488
|
${yt}
|
1499
|
-
`,
|
1489
|
+
`,ji={small:"5px",large:"10px",default:"8px"},Ui=i.default.span`
|
1500
1490
|
display: ${e=>e.inline?"inline-flex":"flex"};
|
1501
1491
|
overflow: hidden;
|
1502
1492
|
background-color: ${xt("colors.border.default")};
|
1503
1493
|
border-radius: ${xt("radii.1")};
|
1504
|
-
height: ${e=>
|
1494
|
+
height: ${e=>ji[e.barSize||"default"]};
|
1505
1495
|
${yt}
|
1506
1496
|
${ie}
|
1507
1497
|
${Kt};
|
1508
|
-
`;function
|
1509
|
-
${
|
1498
|
+
`;function Gi({progress:e,bg:t,theme:r,...a}){return n.default.createElement(Ui,Tt({theme:r},a),n.default.createElement(_i,{progress:e,bg:t,theme:r}))}function Vi(e,r,a){const o=t.useCallback((t=>{const o=()=>{a(!0)},n=t=>{const r=Array.from(e.current.querySelectorAll('[role^="menuitem"]:not([hidden]):not([disabled]):not([aria-disabled="true"])')),a=document.activeElement,o=r.indexOf(a),n=t?r[o+1]:r[o-1],i=t?r[0]:r[r.length-1];return n||i};if(!(t instanceof KeyboardEvent))return;const i=t.target instanceof Element&&"SUMMARY"===t.target.tagName;switch(t.key){case"Escape":r&&((()=>{a(!1);const t=e.current.querySelector("summary");t&&t.focus()})(),t.preventDefault(),t.stopPropagation());break;case"ArrowDown":{i&&!r&&o();const e=n(!0);e&&e.focus(),t.preventDefault()}break;case"ArrowUp":{i&&!r&&o();const e=n(!1);e&&e.focus(),t.preventDefault()}break;case" ":case"Enter":{const r=document.activeElement;r&&(e=>{const t=e.getAttribute("role");return"menuitem"===t||"menuitemcheckbox"===t||"menuitemradio"===t})(r)&&r.closest("details")===e&&(t.preventDefault(),t.stopPropagation(),r.click())}}}),[e,r,a]);t.useEffect((()=>{const t=e.current;if(t)return t.addEventListener("keydown",o),()=>{t.removeEventListener("keydown",o)}}),[e,o])}Gi.displayName="ProgressBar",Gi.defaultProps={bg:"success.emphasis",barSize:"default"};const Ki=t.createContext({}),qi=r.css(["padding:"," ",";margin:0;font-size:",";font-weight:",";color:",";background-color:",";border-bottom:"," solid ",";"],xt("space.1"),xt("space.3"),xt("fontSizes.0"),xt("fontWeights.bold"),xt("colors.fg.muted"),xt("colors.canvas.subtle"),xt("borderWidths.1"),xt("colors.border.muted")),Xi=i.default.div`
|
1499
|
+
${qi}
|
1510
1500
|
${yt}
|
1511
1501
|
${Kt};
|
1512
|
-
`;
|
1502
|
+
`;Xi.displayName="SelectMenu.Divider";var Yi=Xi;const Ji=i.default.form`
|
1513
1503
|
padding: ${xt("space.3")};
|
1514
1504
|
margin: 0;
|
1515
1505
|
border-bottom: ${xt("borderWidths.1")} solid ${xt("colors.border.muted")};
|
@@ -1521,11 +1511,11 @@
|
|
1521
1511
|
}
|
1522
1512
|
|
1523
1513
|
${Kt};
|
1524
|
-
`,
|
1525
|
-
${
|
1514
|
+
`,Zi=t.forwardRef((({theme:e,value:r,sx:a,...o},i)=>{const l=t.useRef(null),d=null!=i?i:l,{open:s}=t.useContext(Ki);return t.useEffect((()=>{var e;s&&(null===(e=l.current)||void 0===e||e.focus())}),[s]),n.default.createElement(Ji,{theme:e,sx:a},n.default.createElement(Qo,Tt({theme:e,ref:d,width:"100%",block:!0,value:r,contrast:!0},o)))}));Zi.displayName="SelectMenu.Filter";var Qi=Zi;const el=r.css(["margin-top:-1px;padding:"," ",";font-size:",";color:",";text-align:center;border-top:"," solid ",";@media (min-width:","){padding:"," ",";}"],xt("space.2"),xt("space.3"),xt("fontSizes.0"),xt("colors.fg.muted"),xt("borderWidths.1"),xt("colors.border.muted"),xt("breakpoints.0"),xt("space.1"),xt("space.2")),tl=i.default.footer`
|
1515
|
+
${el}
|
1526
1516
|
${yt}
|
1527
1517
|
${Kt};
|
1528
|
-
`;
|
1518
|
+
`;tl.displayName="SelectMenu.Footer";var rl=tl;const al=i.default.h3`
|
1529
1519
|
color: ${xt("colors.fg.default")};
|
1530
1520
|
flex: auto;
|
1531
1521
|
font-size: ${xt("fontSizes.1")};
|
@@ -1535,7 +1525,7 @@
|
|
1535
1525
|
@media (min-width: ${xt("breakpoints.0")}) {
|
1536
1526
|
font-size: inherit;
|
1537
1527
|
}
|
1538
|
-
`,
|
1528
|
+
`,ol=i.default.header`
|
1539
1529
|
display: flex;
|
1540
1530
|
flex: none; // fixes header from getting squeezed in Safari iOS
|
1541
1531
|
padding: ${xt("space.3")};
|
@@ -1549,15 +1539,15 @@
|
|
1549
1539
|
}
|
1550
1540
|
|
1551
1541
|
${Kt};
|
1552
|
-
`,
|
1553
|
-
${
|
1542
|
+
`,nl=({children:e,theme:t,...r})=>n.default.createElement(ol,Tt({theme:t},r),n.default.createElement(al,{theme:t},e));nl.displayName="SelectMenuHeader",nl.displayName="SelectMenu.Header";var il=nl;const ll=r.css(["display:flex;align-items:center;padding:",";overflow:hidden;text-align:left;cursor:pointer;background-color:",";border:0;border-bottom:"," solid ",";color:",";text-decoration:none;font-size:",";font-family:inherit;width:100%;&:hover{text-decoration:none;}&:focus{outline:none;}&[hidden]{display:none !important;}@media (min-width:","){padding-top:",";padding-bottom:",";}.SelectMenu-icon{width:",";margin-right:",";flex-shrink:0;}.SelectMenu-selected-icon{visibility:hidden;transition:transform 0.12s cubic-bezier(0.5,0.1,1,0.5),visibility 0s 0.12s linear;transform:scale(0);}&[aria-checked='true']{font-weight:500;color:",";.SelectMenu-selected-icon{visibility:visible;transition:transform 0.12s cubic-bezier(0,0,0.2,1),visibility 0s linear;transform:scale(1);}}@media (hover:hover){&:hover,&:active,&:focus{background-color:",";}}@media (hover:none){&:focus,&:active{background-color:",";}-webkit-tap-highlight-color:",";}"],xt("space.3"),xt("colors.canvas.overlay"),xt("borderWidths.1"),xt("colors.border.muted"),xt("colors.fg.muted"),xt("fontSizes.0"),xt("breakpoints.0"),xt("space.2"),xt("space.2"),xt("space.3"),xt("space.2"),xt("colors.fg.default"),xt("colors.neutral.subtle"),xt("colors.canvas.subtle"),xt("colors.selectMenu.tapHighlight")),dl=i.default.a.attrs((()=>({role:"menuitemcheckbox"})))`
|
1543
|
+
${ll}
|
1554
1544
|
${yt}
|
1555
1545
|
${Kt};
|
1556
|
-
`,
|
1557
|
-
${
|
1546
|
+
`,sl=t.forwardRef((({children:e,selected:r,theme:a,onClick:o,...i},l)=>{const d=t.useContext(Ki),s=t.useRef(null),c=null!=l?l:s;return n.default.createElement(dl,Tt({ref:c},i,{theme:a,onClick:e=>{var t;(o&&o(e),e.defaultPrevented)||(null===(t=d.setOpen)||void 0===t||t.call(d,!1))},"aria-checked":r}),n.default.createElement(Ea,{theme:a,className:"SelectMenu-icon SelectMenu-selected-icon",icon:Qr}),e)}));sl.defaultProps={selected:!1},sl.displayName="SelectMenu.Item";var cl=sl;const fl=r.css(["position:relative;padding:0;margin:0;flex:auto;overflow-x:hidden;overflow-y:auto;background-color:",";-webkit-overflow-scrolling:touch;@media (hover:hover){.SelectMenuTab:focus{background-color:",";}.SelectMenuTab:not([aria-checked='true']):hover{color:",";background-color:",";}.SelectMenuTab:not([aria-checked='true']):active{color:",";background-color:",";}}"],xt("colors.canvas.overlay"),xt("colors.selectMenu.tapFocusBg"),xt("colors.fg.default"),xt("colors.canvas.subtle"),xt("colors.fg.default"),xt("colors.canvas.subtle")),ul=i.default.div`
|
1547
|
+
${fl}
|
1558
1548
|
${yt}
|
1559
1549
|
${Kt};
|
1560
|
-
`;
|
1550
|
+
`;ul.displayName="SelectMenu.List";var gl=ul;const pl={small:"16px",medium:"32px",large:"64px"};function bl({size:e="medium",...t}){const r=pl[e];return n.default.createElement("svg",Tt({height:r,width:r,viewBox:"0 0 16 16",fill:"none"},t),n.default.createElement("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor",strokeOpacity:"0.25",strokeWidth:"2",vectorEffect:"non-scaling-stroke"}),n.default.createElement("path",{d:"M15 8a7.002 7.002 0 00-7-7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",vectorEffect:"non-scaling-stroke"}))}bl.displayName="Spinner";const ml=i.default(bl)`
|
1561
1551
|
@keyframes rotate-keyframes {
|
1562
1552
|
100% {
|
1563
1553
|
transform: rotate(360deg);
|
@@ -1568,42 +1558,42 @@
|
|
1568
1558
|
|
1569
1559
|
${yt}
|
1570
1560
|
${Kt}
|
1571
|
-
`;
|
1561
|
+
`;ml.displayName="Spinner";var hl=ml;const vl=i.default.div`
|
1572
1562
|
padding: ${xt("space.6")} ${xt("space.4")};
|
1573
1563
|
text-align: center;
|
1574
1564
|
background-color: ${xt("colors.canvas.overlay")};
|
1575
1565
|
${yt}
|
1576
|
-
`,
|
1577
|
-
${
|
1566
|
+
`,xl=e=>n.default.createElement(vl,e,n.default.createElement(hl,null));xl.displayName="SelectMenuLoadingAnimation";var yl=xl;const wl=r.keyframes(["0%{opacity:0;transform:scale(0.9);}"]),Bl=r.css(["position:relative;z-index:99;display:flex;",";max-height:",";margin:auto 0;",";overflow:hidden;pointer-events:auto;flex-direction:column;background-color:",";border-radius:",";box-shadow:",";animation:"," 0.12s cubic-bezier(0,0.1,0.1,1) backwards;@media (min-width:","){height:auto;max-height:350px;margin:"," 0 "," 0;font-size:",";border:"," solid ",";border-radius:",";box-shadow:",";}"],(e=>e.filter?"height: 80%":""),(e=>e.filter?"none":"66%"),(e=>e.filter?"margin-top: 0":""),xt("colors.canvas.overlay"),xt("radii.2"),xt("shadows.shadow.small"),wl,xt("breakpoints.0"),xt("space.1"),xt("space.3"),xt("fontSizes.0"),xt("borderWidths.1"),xt("colors.border.default"),xt("radii.2"),xt("shadows.shadow.small")),kl=r.css(["position:fixed;top:0;right:0;bottom:0;left:0;z-index:99;display:flex;padding:",";pointer-events:none;flex-direction:column;&::before{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;content:'';background-color:",";@media (min-width:","){display:none;}}@media (min-width:","){position:absolute;top:auto;right:",";bottom:auto;left:auto;padding:0;}"],xt("space.3"),xt("colors.primer.canvas.backdrop"),xt("breakpoints.0"),xt("breakpoints.0"),(e=>"right"===e.align?"0":"auto")),$l=i.default.div`
|
1567
|
+
${Bl}
|
1578
1568
|
${ie}
|
1579
|
-
`,
|
1580
|
-
${
|
1569
|
+
`,Sl=i.default.div`
|
1570
|
+
${kl}
|
1581
1571
|
${yt}
|
1582
1572
|
${Kt};
|
1583
|
-
`,
|
1584
|
-
${
|
1573
|
+
`,Tl=n.default.forwardRef((({children:e,theme:t,width:r,...a},o)=>n.default.createElement(Sl,Tt({theme:t},a,{role:"menu",ref:o}),n.default.createElement($l,{theme:t,width:r},e))));Tl.defaultProps={align:"left",width:"300px"},Tl.displayName="SelectMenu.Modal";var El=Tl;const Cl=r.css(["flex:1;padding:"," ",";font-size:",";font-weight:500;color:",";text-align:center;background-color:transparent;border:0;box-shadow:inset 0 -1px 0 ",";@media (min-width:","){flex:none;padding:"," ",";border:"," solid transparent;border-bottom-width:0;border-top-left-radius:",";border-top-right-radius:",";}&[aria-selected='true']{z-index:1;color:",";background-color:",";box-shadow:0 0 0 1px ",";@media (min-width:","){border-color:",";box-shadow:none;}}&:focus{background-color:",";}"],xt("space.2"),xt("space.3"),xt("fontSizes.0"),xt("colors.fg.muted"),xt("colors.border.muted"),xt("breakpoints.0"),xt("space.1"),xt("space.3"),xt("borderWidths.1"),xt("radii.2"),xt("radii.2"),xt("colors.text-primary"),xt("colors.canvas.overlay"),xt("colors.border.muted"),xt("breakpoints.0"),xt("colors.border.muted"),xt("colors.neutral.subtle")),zl=i.default.button`
|
1574
|
+
${Cl}
|
1585
1575
|
${yt}
|
1586
1576
|
${Kt};
|
1587
|
-
`,
|
1577
|
+
`,Rl=({tabName:e="",index:r,className:a,onClick:o,...i})=>{const l=t.useContext(Ki);t.useEffect((()=>{var t;l.selectedTab||0!==r||(null===(t=l.setSelectedTab)||void 0===t||t.call(l,e))}),[r,l,e]);const d=l.selectedTab===e;return n.default.createElement(zl,Tt({role:"tab",className:qo("SelectMenuTab",a),"aria-selected":d,onClick:t=>{var r;(o&&o(t),t.defaultPrevented)||(null===(r=l.setSelectedTab)||void 0===r||r.call(l,e))}},i),e)};Rl.displayName="SelectMenuTab",Rl.displayName="SelectMenu.Tab";var Nl=Rl;const Al=i.default.div`
|
1588
1578
|
border-top: ${xt("borderWidths.1")} solid ${xt("colors.border.muted")};
|
1589
1579
|
${yt}
|
1590
1580
|
${Kt};
|
1591
|
-
`,
|
1592
|
-
${
|
1581
|
+
`,Il=({tabName:e,className:r,children:a,...o})=>{const i=t.useContext(Ki);return n.default.createElement(Al,Tt({role:"tabpanel",className:r,hidden:i.selectedTab!==e},o),n.default.createElement(gl,null,a))};Il.displayName="TabPanel",Il.displayName="SelectMenu.TabPanel";var Ll=Il;const Ol=r.css(["display:flex;flex-shrink:0;margin-bottom:-1px;-webkit-overflow-scrolling:touch;overflow-x:auto;overflow-y:hidden;&::-webkit-scrollbar{display:none;}@media (min-width:","){padding:0 ",";margin-top:",";}"],xt("breakpoints.0"),xt("space.2"),xt("space.3")),Ml=i.default.div`
|
1582
|
+
${Ol}
|
1593
1583
|
${yt}
|
1594
1584
|
${Kt};
|
1595
|
-
`,
|
1585
|
+
`,Pl=({children:e,...t})=>n.default.createElement(Ml,Tt({role:"tablist"},t),e);Pl.displayName="SelectMenuTabs",Pl.displayName="SelectMenu.Tabs";var Hl=Pl;const Dl=i.default.details`
|
1596
1586
|
${"\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"}
|
1597
1587
|
${yt}
|
1598
1588
|
${Kt};
|
1599
|
-
`,
|
1589
|
+
`,Wl=n.default.forwardRef((({children:e,initialTab:r="",as:a,...o},i)=>{const l=t.useRef(null),d=null!=i?i:l,[s,c]=t.useState(r),[f,u]=t.useState(!1),g={selectedTab:s,setSelectedTab:c,setOpen:u,open:f,initialTab:r},p=t.useCallback((e=>{"current"in d&&d.current&&!d.current.contains(e.target)&&(e.defaultPrevented||u(!1))}),[d,u]);return t.useEffect((()=>{if(f)return document.addEventListener("click",p),()=>{document.removeEventListener("click",p)}}),[f,p]),Vi(d,f,u),n.default.createElement(Ki.Provider,{value:g},n.default.createElement(Dl,Tt({ref:d},o,{open:f,onToggle:function(e){u(e.target.open)}}),e))}));Wl.displayName="SelectMenu";var Fl=Object.assign(Wl,{MenuContext:Ki,List:gl,Divider:Yi,Filter:Qi,Footer:rl,Item:cl,Modal:El,Tabs:Hl,Tab:Nl,TabPanel:Ll,Header:il,LoadingAnimation:yl});function _l({variant:e,className:t,bordered:r,children:a,...o}){const i=qo(t,`variant-${"lightweight"===e?"lightweight":"normal"}`);return r||(o={...o,borderWidth:0}),n.default.createElement(qt,Tt({borderWidth:"1px",borderStyle:"solid",borderColor:"border.default",borderRadius:2,as:"nav",className:i},o),a)}_l.displayName="SideNavBase";const jl=i.default(_l)`
|
1600
1590
|
background-color: ${xt("colors.canvas.subtle")};
|
1601
1591
|
|
1602
1592
|
${e=>e.bordered&&r.css(["& > &{border-left:0;border-right:0;border-bottom:0;}"])}
|
1603
1593
|
|
1604
1594
|
${yt};
|
1605
1595
|
${Kt};
|
1606
|
-
`,
|
1596
|
+
`,Ul=r.css(["background-color:",";outline:none;text-decoration:none;"],xt("colors.neutral.subtle")),Gl=r.css(["color:",";text-decoration:none;outline:none;"],xt("colors.fg.default")),Vl=i.default(Ri).attrs((e=>"string"==typeof e.to||e.selected?{"aria-current":"page"}:{}))`
|
1607
1597
|
position: relative;
|
1608
1598
|
display: block;
|
1609
1599
|
${e=>"full"===e.variant&&r.css(["display:flex;align-items:center;justify-content:space-between;"])}
|
@@ -1611,11 +1601,11 @@
|
|
1611
1601
|
text-align: left;
|
1612
1602
|
font-size: ${xt("fontSizes.1")};
|
1613
1603
|
|
1614
|
-
& > ${
|
1604
|
+
& > ${jl} {
|
1615
1605
|
border-bottom: none;
|
1616
1606
|
}
|
1617
1607
|
|
1618
|
-
${
|
1608
|
+
${jl}.variant-normal > & {
|
1619
1609
|
color: ${xt("colors.fg.default")};
|
1620
1610
|
padding: ${xt("space.3")};
|
1621
1611
|
border: 0;
|
@@ -1645,11 +1635,11 @@
|
|
1645
1635
|
}
|
1646
1636
|
|
1647
1637
|
&:hover {
|
1648
|
-
${
|
1638
|
+
${Ul}
|
1649
1639
|
}
|
1650
1640
|
|
1651
1641
|
&:focus {
|
1652
|
-
${
|
1642
|
+
${Ul}
|
1653
1643
|
box-shadow: ${xt("shadows.primer.shadow.focus")};
|
1654
1644
|
z-index: 1;
|
1655
1645
|
}
|
@@ -1665,16 +1655,16 @@
|
|
1665
1655
|
}
|
1666
1656
|
}
|
1667
1657
|
|
1668
|
-
${
|
1658
|
+
${jl}.variant-lightweight > & {
|
1669
1659
|
padding: ${xt("space.1")} 0;
|
1670
1660
|
color: ${xt("colors.accent.fg")};
|
1671
1661
|
|
1672
1662
|
&:hover {
|
1673
|
-
${
|
1663
|
+
${Gl}
|
1674
1664
|
}
|
1675
1665
|
|
1676
1666
|
&:focus {
|
1677
|
-
${
|
1667
|
+
${Gl}
|
1678
1668
|
box-shadow: ${xt("shadows.primer.shadow.focus")};
|
1679
1669
|
z-index: 1;
|
1680
1670
|
}
|
@@ -1687,7 +1677,7 @@
|
|
1687
1677
|
}
|
1688
1678
|
|
1689
1679
|
${Kt};
|
1690
|
-
`;
|
1680
|
+
`;jl.defaultProps={variant:"normal"},Vl.defaultProps={variant:"normal"},Vl.displayName="SideNav.Link";var Kl=Object.assign(jl,{Link:Vl});const ql={issueOpened:aa,pullOpened:ta,issueClosed:ra,pullClosed:ta,pullMerged:ea,draft:ta},Xl=re({prop:"status",variants:{issueClosed:{backgroundColor:"danger.emphasis",color:"fg.onEmphasis"},pullClosed:{backgroundColor:"danger.emphasis",color:"fg.onEmphasis"},pullMerged:{backgroundColor:"done.emphasis",color:"fg.onEmphasis"},issueOpened:{backgroundColor:"success.emphasis",color:"fg.onEmphasis"},pullOpened:{backgroundColor:"success.emphasis",color:"fg.onEmphasis"},draft:{backgroundColor:"neutral.emphasis",color:"fg.onEmphasis"}}}),Yl=re({prop:"variant",variants:{small:{paddingX:2,paddingY:1,fontSize:0},normal:{paddingX:"12px",paddingY:2,fontSize:1}}}),Jl=i.default.span`
|
1691
1681
|
display: inline-flex;
|
1692
1682
|
align-items: center;
|
1693
1683
|
font-weight: ${xt("fontWeights.bold")};
|
@@ -1695,11 +1685,11 @@
|
|
1695
1685
|
color: ${xt("colors.canvas.default")};
|
1696
1686
|
text-align: center;
|
1697
1687
|
border-radius: ${xt("radii.3")};
|
1688
|
+
${Xl};
|
1698
1689
|
${Yl};
|
1699
|
-
${Jl};
|
1700
1690
|
${yt};
|
1701
1691
|
${Kt};
|
1702
|
-
`;function
|
1692
|
+
`;function Zl({children:e,status:t,variant:r,...a}){const o="small"===r?{width:"1em"}:{};return n.default.createElement(Jl,Tt({},a,{variant:r,status:t}),t&&n.default.createElement(Ea,Tt({mr:1},o,{icon:ql[t]||na})),e)}Zl.displayName="StateLabel",Zl.defaultProps={variant:"normal"};const Ql=i.default.nav`
|
1703
1693
|
display: flex;
|
1704
1694
|
justify-content: space-between;
|
1705
1695
|
|
@@ -1723,7 +1713,7 @@
|
|
1723
1713
|
${yt};
|
1724
1714
|
${St};
|
1725
1715
|
${Kt};
|
1726
|
-
`;function
|
1716
|
+
`;function ed({actions:e,className:t,children:r,label:a,...o}){const i=qo(t,"SubNav");return n.default.createElement(Ql,Tt({className:i,"aria-label":a},o),n.default.createElement("div",{className:"SubNav-body"},r),e&&n.default.createElement("div",{className:"SubNav-actions"},e))}function td(e){return n.default.createElement(qt,Tt({display:"flex"},e))}ed.displayName="SubNav",td.displayName="SubNavLinks";const rd=i.default.a.attrs((e=>({activeClassName:"string"==typeof e.to?"selected":"",className:qo("SubNav-item",e.selected&&"selected",e.className)})))`
|
1727
1717
|
padding-left: ${xt("space.3")};
|
1728
1718
|
padding-right: ${xt("space.3")};
|
1729
1719
|
font-weight: ${xt("fontWeights.semibold")};
|
@@ -1772,16 +1762,16 @@
|
|
1772
1762
|
|
1773
1763
|
${yt};
|
1774
1764
|
${Kt};
|
1775
|
-
`;
|
1765
|
+
`;rd.displayName="SubNav.Link",td.displayName="SubNav.Links";var ad=Object.assign(ed,{Link:rd,Links:td});const od=i.default.div`
|
1776
1766
|
margin-top: 0;
|
1777
1767
|
border-bottom: 1px solid ${xt("colors.border.default")};
|
1778
1768
|
${yt}
|
1779
1769
|
${Kt}
|
1780
|
-
`,
|
1770
|
+
`,nd=i.default.nav`
|
1781
1771
|
display: flex;
|
1782
1772
|
margin-bottom: -1px;
|
1783
1773
|
overflow: auto;
|
1784
|
-
`;function
|
1774
|
+
`;function id({children:e,"aria-label":t,...r}){return n.default.createElement(od,r,n.default.createElement(nd,{"aria-label":t},e))}id.displayName="TabNav";const ld=i.default.a.attrs((e=>({activeClassName:"string"==typeof e.to?"selected":"",className:qo("TabNav-item",e.selected&&"selected",e.className)})))`
|
1785
1775
|
padding: 8px 12px;
|
1786
1776
|
font-size: ${xt("fontSizes.1")};
|
1787
1777
|
line-height: 20px;
|
@@ -1807,18 +1797,18 @@
|
|
1807
1797
|
|
1808
1798
|
${yt};
|
1809
1799
|
${Kt};
|
1810
|
-
`;
|
1800
|
+
`;ld.displayName="TabNav.Link";var dd=Object.assign(id,{Link:ld}),sd=$(U,C,E,S,z,I,O,P,N,G,ae,oe,ne),cd=new RegExp("^("+sd.propNames.join("|")+")$");const fd={small:"16px",medium:"20px",large:"24px",extralarge:"32px"},ud="medium",gd=({as:e="span",onClick:t,onFocus:r,tabIndex:a=-1})=>Boolean(r||t||a>-1||["a","button"].includes(e)),pd=re({prop:"size",variants:{small:{fontSize:0,height:fd.small,lineHeight:fd.small,paddingLeft:1,paddingRight:1,paddingTop:0,paddingBottom:0},medium:{fontSize:0,height:fd.medium,lineHeight:fd.medium,paddingLeft:2,paddingRight:2,paddingTop:0,paddingBottom:0},large:{fontSize:0,height:fd.large,lineHeight:fd.large,paddingLeft:2,paddingRight:2,paddingTop:0,paddingBottom:0},extralarge:{fontSize:1,height:fd.extralarge,lineHeight:fd.extralarge,paddingLeft:3,paddingRight:3,paddingTop:0,paddingBottom:0}}}),bd=i.default.span.attrs((({text:e,onRemove:t,onKeyDown:r})=>({onKeyDown:e=>{r&&r(e),"Backspace"!==e.key&&"Delete"!==e.key||!t||t()},"aria-label":t?`${e}, press backspace or delete to remove`:void 0})))`
|
1811
1801
|
align-items: center;
|
1812
1802
|
border-radius: 999px;
|
1813
|
-
cursor: ${e=>
|
1803
|
+
cursor: ${e=>gd(e)?"pointer":"auto"};
|
1814
1804
|
display: inline-flex;
|
1815
1805
|
font-weight: ${xt("fontWeights.bold")};
|
1816
1806
|
font-family: inherit;
|
1817
1807
|
text-decoration: none;
|
1818
1808
|
white-space: nowrap;
|
1819
|
-
${
|
1809
|
+
${pd}
|
1820
1810
|
${Kt}
|
1821
|
-
`;
|
1811
|
+
`;bd.defaultProps={as:"span",size:ud};var md=bd;const hd=re({prop:"size",variants:{small:{height:fd.small,width:fd.small},medium:{height:fd.medium,width:fd.medium},large:{height:fd.large,width:fd.large},extralarge:{height:fd.extralarge,width:fd.extralarge}}}),vd=e=>.75*parseInt(fd[e||ud],10),xd=i.default.span`
|
1822
1812
|
background-color: transparent;
|
1823
1813
|
font-family: inherit;
|
1824
1814
|
color: currentColor;
|
@@ -1848,9 +1838,9 @@
|
|
1848
1838
|
background-color: ${xt("colors.neutral.subtle")};
|
1849
1839
|
}
|
1850
1840
|
|
1851
|
-
${
|
1841
|
+
${hd}
|
1852
1842
|
${Kt}
|
1853
|
-
`,
|
1843
|
+
`,yd=({"aria-label":e,isParentInteractive:t,size:r,...a})=>(delete a.children,n.default.createElement(xd,Tt({as:t?"span":"button",tabIndex:t?-1:void 0,"aria-label":t?e:"Remove token",size:r},a),n.default.createElement(la,{size:vd(r)})));yd.displayName="RemoveTokenButton",yd.defaultProps={size:ud};var wd=yd;var Bd=i.default("span")`
|
1854
1844
|
flex-grow: 1;
|
1855
1845
|
min-width: 0;
|
1856
1846
|
overflow: hidden;
|
@@ -1891,7 +1881,7 @@
|
|
1891
1881
|
bottom: 0;
|
1892
1882
|
}
|
1893
1883
|
}
|
1894
|
-
`;const
|
1884
|
+
`;const kd=i.default(md)`
|
1895
1885
|
background-color: ${xt("colors.neutral.subtle")};
|
1896
1886
|
border-color: ${e=>e.isSelected?xt("colors.fg.default"):xt("colors.border.subtle")};
|
1897
1887
|
border-style: solid;
|
@@ -1903,18 +1893,18 @@
|
|
1903
1893
|
${Kt}
|
1904
1894
|
|
1905
1895
|
${e=>{if(e.isTokenInteractive)return r.css(["&:hover{background-color:",";box-shadow:",";color:",";}"],xt("colors.neutral.muted"),xt("colors.shadow.medium"),xt("colors.fg.default"))}}
|
1906
|
-
|
1896
|
+
`,$d=i.default("span")`
|
1907
1897
|
flex-shrink: 0;
|
1908
1898
|
line-height: 0;
|
1909
1899
|
|
1910
1900
|
${e=>{switch(e.size){case"large":case"extralarge":return r.css(["margin-right:",";"],xt("space.2"));default:return r.css(["margin-right:",";"],xt("space.1"))}}}
|
1911
|
-
`,
|
1901
|
+
`,Sd=t.forwardRef(((e,t)=>{const{as:r,onRemove:a,id:o,leadingVisual:i,text:l,size:d,hideRemoveButton:s,href:c,onClick:f,...u}=e,g=gd(e)&&Boolean(a)&&!s,p={as:r,href:c,onClick:f};return n.default.createElement(kd,Tt({onRemove:a,hideRemoveButton:s||!a,id:null==o?void 0:o.toString(),text:l,size:d,isTokenInteractive:gd(e)},g?{}:p,u,{ref:t}),i?n.default.createElement($d,{size:d},n.default.createElement(i,null)):null,n.default.createElement(Bd,g?p:{},l),!s&&a?n.default.createElement(wd,{borderOffset:1,onClick:e=>{e.stopPropagation(),a&&a()},size:d,isParentInteractive:gd(e),"aria-hidden":g?"true":"false",sx:g?{position:"relative",zIndex:"1"}:{}}):null)}));Sd.displayName="Token",Sd.defaultProps={size:ud};var Td=Sd;const Ed={small:0,medium:1,large:1,extralarge:2};function Cd({icon:e,contrast:r,className:a,block:o,disabled:i,theme:l,sx:d,tokens:s,onTokenRemove:c,tokenComponent:f,preventTokenWrapping:u,size:g,hideTokenRemoveButtons:p,maxHeight:b,width:m,minWidth:h,maxWidth:v,variant:x,visibleTokenCount:y,...w},B){const{onBlur:k,onFocus:$,onKeyDown:S,...T}=function(e){var t={};for(var r in e)cd.test(r)||(t[r]=e[r]);return t}(w),E=yr(B),C=La(t.useRef(null),E),[z,R]=t.useState(),[N,A]=t.useState(Boolean(y)),{containerRef:I}=Ca({focusOutBehavior:"wrap",bindKeys:Er.ArrowHorizontal|Er.HomeAndEnd,focusableElementFilter:e=>!e.getAttributeNames().includes("aria-hidden"),getNextFocusable:e=>{var t;if(!z&&0!==z)return;let r=z+1;return"next"===e&&(r+=1),"previous"===e&&(r-=1),r>s.length||r<1?C.current||void 0:null===(t=I.current)||void 0===t?void 0:t.children[r]}},[z]),L=e=>{c(e),setTimeout((()=>{var e,t;const r=null===(e=I.current)||void 0===e?void 0:e.children[z||0],a=r&&pr(r)?r:Array.from((null===(t=I.current)||void 0===t?void 0:t.children)||[]).find((e=>pr(e)));var o;a?a.focus():null===(o=E.current)||void 0===o||o.focus()}),0)},O=()=>{R(void 0),setTimeout((()=>{var e;null!==(e=I.current)&&void 0!==e&&e.contains(document.activeElement)||!y||A(!0)}),0)},M=e=>{var t;"Escape"===e.key&&(null===(t=E.current)||void 0===t||t.focus())},P=e=>{e.stopPropagation()},H=N?s.slice(0,y):s;return n.default.createElement(Jo,{block:o,className:a,contrast:r,disabled:i,hasIcon:!!e,theme:l,width:m,minWidth:h,maxWidth:v,variant:x,onClick:()=>{var e;null===(e=C.current)||void 0===e||e.focus()},sx:{...o?{display:"flex",width:"100%"}:{},...b?{maxHeight:b,overflow:"auto"}:{},...u?{overflow:"auto"}:{},...d}},n.default.createElement(qt,{ref:I,display:"flex",sx:{alignItems:"center",flexWrap:u?"nowrap":"wrap",marginLeft:"-0.25rem",marginBottom:"-0.25rem",flexGrow:1,"> *":{flexShrink:0,marginLeft:"0.25rem",marginBottom:"0.25rem"}}},n.default.createElement(qt,{sx:{order:1,flexGrow:1}},e&&n.default.createElement(e,{className:"TextInput-icon"}),n.default.createElement(Xo,Tt({ref:C,disabled:i,onFocus:e=>{$&&$(e),R(void 0),y&&A(!1)},onBlur:e=>{k&&k(e),setTimeout((()=>{var e;null!==(e=I.current)&&void 0!==e&&e.contains(document.activeElement)||!y||A(!0)}),0)},onKeyDown:e=>{var t;if(S&&S(e),null!==(t=E.current)&&void 0!==t&&t.value)return;const r=s[s.length-1];"Backspace"===e.key&&r&&(L(r.id),E.current&&(E.current.value=`${r.text} `),setTimeout((()=>{var e;null===(e=E.current)||void 0===e||e.select()}),0))},type:"text",sx:{height:"100%"}},T))),f?H.map((({id:e,...t},r)=>{return n.default.createElement(f,Tt({key:e,onFocus:(a=r,()=>{R(a)}),onBlur:O,onKeyUp:M,onClick:P,isSelected:z===r,onRemove:()=>{L(e)},hideRemoveButton:p,size:g,tabIndex:0},t));var a})):null,N?n.default.createElement(_n,{color:"fg.muted",fontSize:g&&Ed[g]},"+",s.length-H.length):null))}Cd.displayName="TextInputWithTokensInnerComponent";const zd=n.default.forwardRef(Cd);zd.defaultProps={tokenComponent:Td,size:"extralarge",hideTokenRemoveButtons:!1,preventTokenWrapping:!1},zd.displayName="TextInputWithTokens";var Rd=zd;const Nd=i.default(qt)`
|
1912
1902
|
display: flex;
|
1913
1903
|
flex-direction: column;
|
1914
1904
|
${e=>e.clipSidebar&&r.css([".Timeline-Item:first-child{padding-top:0;}.Timeline-Item:last-child{padding-bottom:0;}"])}
|
1915
1905
|
|
1916
1906
|
${Kt};
|
1917
|
-
`,
|
1907
|
+
`,Ad=i.default(qt).attrs((e=>({className:qo("Timeline-Item",e.className)})))`
|
1918
1908
|
display: flex;
|
1919
1909
|
position: relative;
|
1920
1910
|
padding: ${xt("space.3")} 0;
|
@@ -1935,7 +1925,7 @@
|
|
1935
1925
|
|
1936
1926
|
${yt};
|
1937
1927
|
${Kt};
|
1938
|
-
`,
|
1928
|
+
`,Id=e=>n.default.createElement(qt,{position:"relative",zIndex:1},n.default.createElement(qt,Tt({display:"flex",className:qo(e.className,"TimelineItem-Badge"),flexShrink:0,borderRadius:"50%",borderWidth:"2px",borderStyle:"solid",borderColor:"canvas.default",overflow:"hidden",color:"fg.muted",bg:"timeline.badgeBg",width:"32px",height:"32px",mr:2,ml:"-15px",alignItems:"center",justifyContent:"center"},e),e.children));Id.displayName="TimelineBadge";const Ld=i.default(qt)`
|
1939
1929
|
min-width: 0;
|
1940
1930
|
max-width: 100%;
|
1941
1931
|
margin-top: ${xt("space.1")};
|
@@ -1943,7 +1933,7 @@
|
|
1943
1933
|
flex: auto;
|
1944
1934
|
font-size: ${xt("fontSizes.1")};
|
1945
1935
|
${Kt};
|
1946
|
-
`,
|
1936
|
+
`,Od=i.default(qt)`
|
1947
1937
|
position: relative
|
1948
1938
|
z-index: 1;
|
1949
1939
|
height: 24px;
|
@@ -1954,15 +1944,15 @@
|
|
1954
1944
|
border: 0;
|
1955
1945
|
border-top: ${xt("space.1")} solid ${xt("colors.border.default")};
|
1956
1946
|
${Kt};
|
1957
|
-
`;
|
1947
|
+
`;Ad.displayName="Timeline.Item",Id.displayName="Timeline.Badge",Ld.displayName="Timeline.Body",Od.displayName="Timeline.Break";var Md=Object.assign(Nd,{Item:Ad,Badge:Id,Body:Ld,Break:Od});function Pd(e,t,r){return Math.min(Math.max(e,r),t)}class Hd extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}function Dd(e){if("string"!=typeof e)throw new Hd(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=Kd.test(e)?function(e){const t=e.toLowerCase().trim(),r=Fd[function(e){let t=5381,r=e.length;for(;r;)t=33*t^e.charCodeAt(--r);return(t>>>0)%2341}(t)];if(!r)throw new Hd(e);return`#${r}`}(e):e;const r=jd.exec(t);if(r){const e=Array.from(r).slice(1);return[...e.slice(0,3).map((e=>parseInt(_d(e,2),16))),parseInt(_d(e[3]||"f",2),16)/255]}const a=Ud.exec(t);if(a){const e=Array.from(a).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,16))),parseInt(e[3]||"ff",16)/255]}const o=Gd.exec(t);if(o){const e=Array.from(o).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,10))),parseFloat(e[3]||"1")]}const n=Vd.exec(t);if(n){const[t,r,a,o]=Array.from(n).slice(1).map(parseFloat);if(Pd(0,100,r)!==r)throw new Hd(e);if(Pd(0,100,a)!==a)throw new Hd(e);return[...Xd(t,r,a),o||1]}throw new Hd(e)}const Wd=e=>parseInt(e.replace(/_/g,""),36),Fd="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce(((e,t)=>{const r=Wd(t.substring(0,3)),a=Wd(t.substring(3)).toString(16);let o="";for(let e=0;e<6-a.length;e++)o+="0";return e[r]=`${o}${a}`,e}),{}),_d=(e,t)=>Array.from(Array(t)).map((()=>e)).join(""),jd=new RegExp(`^#${_d("([a-f0-9])",3)}([a-f0-9])?$`,"i"),Ud=new RegExp(`^#${_d("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),Gd=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${_d(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),Vd=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,Kd=/^[a-z]+$/i,qd=e=>Math.round(255*e),Xd=(e,t,r)=>{let a=r/100;if(0===t)return[a,a,a].map(qd);const o=(e%360+360)%360/60,n=(1-Math.abs(2*a-1))*(t/100),i=n*(1-Math.abs(o%2-1));let l=0,d=0,s=0;o>=0&&o<1?(l=n,d=i):o>=1&&o<2?(l=i,d=n):o>=2&&o<3?(d=n,s=i):o>=3&&o<4?(d=i,s=n):o>=4&&o<5?(l=i,s=n):o>=5&&o<6&&(l=n,s=i);const c=a-n/2;return[l+c,d+c,s+c].map(qd)};const Yd={"--lightness-threshold":"0.453","--border-threshold":"0.96","--border-alpha":"max(0, min(calc((var(--perceived-lightness) - var(--border-threshold)) * 100), 1))",background:"rgb(var(--label-r), var(--label-g), var(--label-b))",color:"hsl(0, 0%, calc(var(--lightness-switch) * 100%))",borderWidth:1,borderStyle:"solid",borderColor:"hsla(var(--label-h),calc(var(--label-s) * 1%),calc((var(--label-l) - 25) * 1%),var(--border-alpha))"},Jd={"--lightness-threshold":"0.6","--background-alpha":"0.18","--border-alpha":"0.3","--lighten-by":"calc(((var(--lightness-threshold) - var(--perceived-lightness)) * 100) * var(--lightness-switch))",borderWidth:1,borderStyle:"solid",background:"rgba(var(--label-r), var(--label-g), var(--label-b), var(--background-alpha))",color:"hsl(var(--label-h), calc(var(--label-s) * 1%), calc((var(--label-l) + var(--lighten-by)) * 1%))",borderColor:"hsla(var(--label-h), calc(var(--label-s) * 1%),calc((var(--label-l) + var(--lighten-by)) * 1%),var(--border-alpha))"},Zd=t.forwardRef(((e,r)=>{const{as:a,fillColor:o="#999",onRemove:i,id:l,isSelected:d,text:s,size:c,hideRemoveButton:f,href:u,onClick:g,...p}=e,b={as:a,href:u,onClick:g},{colorScheme:m}=jt(),h=gd(e)&&Boolean(i)&&!f,v=t.useMemo((()=>{const[e,t,r]=Dd(o),[a,n,l]=function(e){const[t,r,a,o]=Dd(e).map(((e,t)=>3===t?e:e/255)),n=Math.max(t,r,a),i=Math.min(t,r,a),l=(n+i)/2;if(n===i)return[0,0,l,o];const d=n-i;return[60*(t===n?(r-a)/d+(r<a?6:0):r===n?(a-t)/d+2:(t-r)/d+4),l>.5?d/(2-n-i):d/(n+i),l,o]}(o);return{"--label-r":String(e),"--label-g":String(t),"--label-b":String(r),"--label-h":String(Math.round(a)),"--label-s":String(Math.round(100*n)),"--label-l":String(Math.round(100*l)),"--perceived-lightness":"calc(((var(--label-r) * 0.2126) + (var(--label-g) * 0.7152) + (var(--label-b) * 0.0722)) / 255)","--lightness-switch":"max(0, min(calc((var(--perceived-lightness) - var(--lightness-threshold)) * -1000), 1))",paddingRight:f||!i?void 0:0,position:"relative",..."light"===m?Yd:Jd,...d?{background:"light"===m?"hsl(var(--label-h), calc(var(--label-s) * 1%), calc((var(--label-l) - 5) * 1%))":Jd.background,":focus":{outline:"none"},":after":{content:'""',position:"absolute",zIndex:1,top:"-2px",right:"-2px",bottom:"-2px",left:"-2px",display:"block",pointerEvents:"none",boxShadow:"0 0 0 2px "+("light"===m?"rgb(var(--label-r), var(--label-g), var(--label-b))":"hsl(var(--label-h), calc(var(--label-s) * 1%), calc((var(--label-l) + var(--lighten-by)) * 1%))"),borderRadius:"999px"}}:{}}}),[m,o,d,f,i]);return n.default.createElement(md,Tt({onRemove:i,id:null==l?void 0:l.toString(),isSelected:d,text:s,size:c,sx:v},h?{}:b,p,{ref:r}),n.default.createElement(Bd,h?b:{},s),!f&&i?n.default.createElement(wd,{borderOffset:1,onClick:e=>{e.stopPropagation(),i&&i()},size:c,"aria-hidden":h?"true":"false",isParentInteractive:gd(e),sx:h?{position:"relative",zIndex:"1"}:{}}):null)}));Zd.defaultProps={fillColor:"#999",size:ud},Zd.displayName="IssueLabelToken";var Qd=Zd;const es=i.default.span`
|
1958
1948
|
// 'space.1' is used because to match space from the left of the token to the left of the avatar
|
1959
1949
|
// '* 2' is done to account for the top and bottom
|
1960
1950
|
--spacing: calc(${xt("space.1")} * 2);
|
1961
1951
|
|
1962
1952
|
display: block;
|
1963
|
-
height: ${e=>`calc(${
|
1964
|
-
width: ${e=>`calc(${
|
1965
|
-
`,
|
1953
|
+
height: ${e=>`calc(${fd[e.avatarSize]} - var(--spacing))`};
|
1954
|
+
width: ${e=>`calc(${fd[e.avatarSize]} - var(--spacing))`};
|
1955
|
+
`,ts=t.forwardRef((({avatarSrc:e,id:t,size:r,...a},o)=>n.default.createElement(Td,Tt({leadingVisual:()=>n.default.createElement(es,{avatarSize:r||ud},n.default.createElement(fn,{src:e,size:parseInt(fd[r||ud],10),sx:{width:"100%",height:"100%"}})),size:r,id:null==t?void 0:t.toString(),sx:{paddingLeft:xt("space.1")}},a,{ref:o}))));ts.defaultProps={size:ud},ts.displayName="AvatarToken";var rs=ts;const as=i.default.span`
|
1966
1956
|
position: relative;
|
1967
1957
|
|
1968
1958
|
&::before {
|
@@ -2186,9 +2176,9 @@
|
|
2186
2176
|
&.tooltipped-align-left-2::before {
|
2187
2177
|
left: 10px;
|
2188
2178
|
}
|
2189
|
-
|
2179
|
+
${yt};
|
2190
2180
|
${Kt};
|
2191
|
-
`;function
|
2181
|
+
`;function os({direction:e="n",children:t,className:r,text:a,noDelay:o,align:i,wrap:l,...d}){const s=qo(r,`tooltipped-${e}`,i&&`tooltipped-align-${i}-2`,o&&"tooltipped-no-delay",l&&"tooltipped-multiline");return n.default.createElement(as,Tt({role:"tooltip","aria-label":a},d,{className:s}),t)}os.displayName="Tooltip",os.alignments=["left","right"],os.directions=["n","ne","e","se","s","sw","w","nw"];const ns=i.default.nav`
|
2192
2182
|
display: flex;
|
2193
2183
|
justify-content: space-between;
|
2194
2184
|
border-bottom: 1px solid ${xt("colors.border.muted")};
|
@@ -2219,7 +2209,7 @@
|
|
2219
2209
|
|
2220
2210
|
${yt};
|
2221
2211
|
${Kt};
|
2222
|
-
`;function
|
2212
|
+
`;function is({actions:e,className:t,align:r,children:a,full:o,label:i,theme:l,...d}){const s=qo(t,"UnderlineNav",r&&`UnderlineNav--${r}`,o&&"UnderlineNav--full");return n.default.createElement(ns,Tt({className:s,"aria-label":i,theme:l},d),n.default.createElement("div",{className:"UnderlineNav-body"},a),e&&n.default.createElement("div",{className:"UnderlineNav-actions"},e))}is.displayName="UnderlineNav";const ls=i.default.a.attrs((e=>({activeClassName:"string"==typeof e.to?"selected":"",className:qo("UnderlineNav-item",e.selected&&"selected",e.className)})))`
|
2223
2213
|
padding: ${xt("space.3")} ${xt("space.2")};
|
2224
2214
|
margin-right: ${xt("space.3")};
|
2225
2215
|
font-size: ${xt("fontSizes.1")};
|
@@ -2252,5 +2242,5 @@
|
|
2252
2242
|
|
2253
2243
|
${yt};
|
2254
2244
|
${Kt};
|
2255
|
-
`;
|
2245
|
+
`;ls.displayName="UnderlineNav.Link";var ds=Object.assign(is,{Link:ls});e.Absolute=ar,e.ActionList=Oo,e.ActionMenu=Go,e.Autocomplete=sn,e.Avatar=fn,e.AvatarPair=pn,e.AvatarStack=hn,e.AvatarToken=rs,e.BaseStyles=zt,e.BorderBox=Yt,e.Box=qt,e.BranchName=vn,e.Breadcrumb=$n,e.Breadcrumbs=kn,e.Button=_r,e.ButtonClose=sa,e.ButtonDanger=jr,e.ButtonGroup=Gr,e.ButtonInvisible=qr,e.ButtonOutline=Vr,e.ButtonPrimary=Kr,e.ButtonTableList=Xr,e.Caret=Nn,e.CircleBadge=On,e.CircleOcticon=Mn,e.ConfirmationDialog=fo,e.CounterLabel=Pn,e.Details=Dn,e.Dialog=Xn,e.Dropdown=ai,e.DropdownButton=oi,e.DropdownMenu=ni,e.FilterList=fi,e.FilteredSearch=ii,e.Fixed=or,e.Flash=pi,e.Flex=Zt,e.FormGroup=hi,e.Grid=er,e.Header=wi,e.Heading=ki,e.IssueLabelToken=Qd,e.Label=Ci,e.LabelGroup=$i,e.Link=Ri,e.Overlay=Wo,e.Pagehead=Ni,e.Pagination=Oi,e.PointerBox=Hi,e.Popover=Fi,e.Position=rr,e.ProgressBar=Gi,e.Relative=nr,e.SSRProvider=function(e){let r=t.useContext(Ma),a=t.useMemo((()=>({prefix:r===Oa?"":r.prefix+"-"+ ++r.current,current:0})),[r]);return n.default.createElement(Ma.Provider,{value:a},e.children)},e.SelectMenu=Fl,e.SideNav=Kl,e.Spinner=hl,e.StateLabel=Zl,e.Sticky=ir,e.StyledOcticon=Ea,e.SubNav=ad,e.TabNav=dd,e.Text=_n,e.TextInput=Qo,e.TextInputWithTokens=Rd,e.ThemeProvider=Vt,e.Timeline=Md,e.Token=Td,e.Tooltip=os,e.Truncate=ho,e.UnderlineNav=ds,e.theme=d,e.themeGet=xt,e.useColorSchemeVar=Ut,e.useConfirm=function(){const{theme:e,colorMode:r,dayScheme:a,nightScheme:o}=jt();return t.useCallback((t=>async function(e,t){const{content:r,...a}=t;return new Promise((t=>{const o=document.createElement("div");l.default.render(n.default.createElement(_t,e,n.default.createElement(fo,Tt({},a,{onClose:e=>{l.default.unmountComponentAtNode(o),t("confirm"===e)}}),r)),o)}))}({theme:e,colorMode:r,dayScheme:a,nightScheme:o},t)),[e,r,a,o])},e.useDetails=lr,e.useOnEscapePress=xr,e.useOnOutsideClick=ur,e.useOpenAndCloseFocus=mr,e.useOverlay=wr,e.useSSRSafeId=Ha,e.useSafeTimeout=function(){const e=t.useRef(new Set),r=t.useCallback(((t,r,...a)=>{const o=window.setTimeout(t,r,...a);return e.current.add(o),o}),[]),a=t.useCallback((t=>{clearTimeout(t),e.current.delete(t)}),[]);return t.useEffect((()=>()=>{for(const t of e.current)clearTimeout(t)}),[]),{safeSetTimeout:r,safeClearTimeout:a}},e.useTheme=jt,Object.defineProperty(e,"__esModule",{value:!0})}));
|
2256
2246
|
//# sourceMappingURL=browser.umd.js.map
|