@ncino/web-components 15.2.1 → 15.4.0
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/dist/_virtual/index3.js +1 -1
- package/dist/_virtual/index5.js +1 -1
- package/dist/_virtual/index6.js +1 -1
- package/dist/_virtual/index7.js +1 -1
- package/dist/_virtual/index8.js +1 -1
- package/dist/components/button/gator/button.gator.js +12 -12
- package/dist/components/input-rich-text/input-rich-text.slds.js +1 -1
- package/dist/components/table/gator/table-cells/table-cell-base.gator.js +12 -5
- package/dist/components/table/gator/table-cells/table-cell-button.gator.js +3 -2
- package/dist/components/table/gator/table-cells/table-cell-text.gator.js +1 -1
- package/dist/components/table/gator/table.gator.js +13 -11
- package/dist/components/tooltip/gator/tooltip.gator.js +4 -4
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.js +1 -1
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +1 -1
- package/dist/node_modules/.pnpm/ansi-styles@5.2.0/node_modules/ansi-styles/index.js +1 -1
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/index.js +1 -1
- package/dist/node_modules/.pnpm/dequal@2.0.3/node_modules/dequal/lite/index.js +1 -1
- package/dist/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/index.js +1 -1
- package/dist/node_modules/.pnpm/react-is@17.0.2/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/index.js +1 -1
- package/dist/packages/web-components/src/components/button/gator/button.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/popover/gator/popover.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/table/gator/table.gator.scss.js +1 -1
- package/dist/types/src/components/button/gator/button.gator.d.ts +2 -0
- package/dist/types/src/components/table/gator/table-cells/table-cell-base.gator.d.ts +3 -1
- package/dist/types/src/components/table/gator/table-cells/table-cell-text.gator.d.ts +1 -0
- package/dist/types/src/components/table/table-cell-config.d.ts +1 -0
- package/dist/types/src/components/table/table-column-definition.d.ts +1 -0
- package/dist/types/src/components/tooltip/gator/tooltip.gator.d.ts +2 -0
- package/dist/types/src/components/tooltip/tooltip.d.ts +2 -0
- package/package.json +3 -3
- package/web-types.json +36 -10
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{NjcTooltip as
|
|
2
|
-
<div ${
|
|
1
|
+
import{NjcTooltip as d}from"../tooltip.js";import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{html as h}from"../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import{LitElement as f}from"../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{state as m}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js";import{ref as v}from"../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directives/ref.js";import{customElement as _}from"../../../utils/decorators/custom-element-decorator.js";import a from"../../../packages/web-components/src/components/tooltip/gator/tooltip.gator.scss.js";import c from"../../../packages/web-components/src/components/tooltip/tooltip.scss.js";import P from"../../../packages/styles/dist/tokens/primitive.tokens.css.js";import b from"../../../packages/styles/dist/tokens/semantic.tokens.css.js";import{autoUpdate as y,computePosition as g,offset as O,flip as x,shift as H}from"../../../node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js";import{unsafeCSS as l}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";var T=Object.defineProperty,C=Object.getOwnPropertyDescriptor,u=(t,o,e,s)=>{for(var i=s>1?void 0:s?C(o,e):o,p=t.length-1,n;p>=0;p--)(n=t[p])&&(i=(s?n(o,e,i):n(i))||i);return s&&i&&T(o,e,i),i};const w=12,A=4;let r=class extends d{constructor(){super(...arguments),this._portaledPopup=null,this._popoverHost=null}render(){return h`
|
|
2
|
+
<div ${v(this._tooltipRef)} class="gator-tooltip ${this.nubbinPositionClass}" role="tooltip" id="${this.tooltipId}">
|
|
3
3
|
<div class="gator-tooltip-body">
|
|
4
4
|
<slot></slot>
|
|
5
5
|
</div>
|
|
6
6
|
</div>
|
|
7
|
-
`}get
|
|
8
|
-
${c}`,document.head.appendChild(e),
|
|
7
|
+
`}get _effectivePlacement(){return this._resolvedPlacement??this.placement}get xPositionOffset(){return this.hideTippet?this.xOffset:this._effectivePlacement.includes("left")||this._effectivePlacement.includes("right")?this.xOffset:0}get yPositionOffset(){return this.hideTippet?this.yOffset:this._effectivePlacement.includes("top")||this._effectivePlacement.includes("bottom")?this.yOffset:0}get nubbinPositionClass(){if(this.hideTippet)return"";switch(this._effectivePlacement){case"top":return"gator-tooltip-nubbin_bottom";case"right":return"gator-tooltip-nubbin_left";case"bottom":return"gator-tooltip-nubbin_top";case"left":return"gator-tooltip-nubbin_right"}return""}getActivePopup(){return this._portaledPopup??this._tooltipRef.value??null}preparePopupForShow(){const t=this._tooltipRef.value;if(!t)return;if(!r.portalStylesInjected){const e=document.createElement("style");e.setAttribute("data-ngc-tooltip-portal",""),e.textContent=`${a}
|
|
8
|
+
${c}`,document.head.appendChild(e),r.portalStylesInjected=!0}if(!this._popoverHost){const e=document.createElement("div");e.setAttribute("popover","manual"),e.setAttribute("aria-hidden","true"),e.style.cssText="position:fixed;inset:0;border:none;background:transparent;padding:0;margin:0;overflow:visible;pointer-events:none;color:inherit;",this._popoverHost=e}this._popoverHost.parentElement!==document.body&&document.body.appendChild(this._popoverHost),t.parentElement!==this._popoverHost&&(t.style.pointerEvents="auto",this._popoverHost.appendChild(t)),this._portaledPopup=t,t.style.width="max-content",t.querySelector(".gator-tooltip-body")?.replaceChildren(...Array.from(this.childNodes).map(e=>e.cloneNode(!0))),this._popoverHost.matches(":popover-open")||this._popoverHost.showPopover()}cleanupPopupAfterHide(){this._cleanup&&(this._cleanup(),this._cleanup=void 0);const t=this._popoverHost,o=this._portaledPopup;if(this._popoverHost=null,this._portaledPopup=null,o&&this.renderRoot.appendChild(o),t?.matches(":popover-open"))try{t.hidePopover()}catch{}t?.remove()}disconnectedCallback(){this._popoverHost?.remove(),this._popoverHost=null,this._portaledPopup=null,super.disconnectedCallback()}assignPosition(){const t=this.referenceElement,o=this.getActivePopup();!t||!o||(this._cleanup?.(),this._cleanup=y(t,o,async()=>{const e=this.referenceElement,s=this.getActivePopup();if(!e||!s)return;const{x:i,y:p,placement:n}=await g(e,s,{placement:this.placement,strategy:"fixed",middleware:[O({mainAxis:this.hideTippet?A:w}),x({padding:8,boundary:document.body}),H({padding:8,boundary:document.body})]});this._resolvedPlacement=n,Object.assign(s.style,{position:"fixed",left:`${i+this.xPositionOffset}px`,top:`${p+this.yPositionOffset}px`,right:"auto",bottom:"auto"})}))}};r.portalStylesInjected=!1;r.shadowRootOptions={...f.shadowRootOptions,delegatesFocus:!0,mode:"open"};r.styles=[l(a),l(c),l(P),l(b)];u([m()],r.prototype,"_resolvedPlacement",2);r=u([_("ngc-tooltip")],r);export{r as NgcTooltip};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{property as n}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";import{createRef as c}from"../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directives/ref.js";import{KEY_CONSTANTS as
|
|
1
|
+
import{property as n}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";import{createRef as c}from"../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directives/ref.js";import{KEY_CONSTANTS as p}from"../../consts/key-constants.js";import{generateRandomId as u}from"../../utils/string-utils.js";import{TestableLitElement as f}from"../../utils/components/testable-lit-element/testable-lit-element.js";import{handleDataTestid as h}from"../../utils/datatestid-utils.js";import{getFirstFocusableElement as _}from"../../utils/accessibility-utils.js";var v=Object.defineProperty,o=(l,e,t,i)=>{for(var s=void 0,r=l.length-1,a;r>=0;r--)(a=l[r])&&(s=a(e,t,s)||s);return s&&v(e,t,s),s};const m=100;class d extends f{constructor(){super(...arguments),this.referenceId="",this.placement="top-end",this.xOffset=0,this.yOffset=0,this.isLabel=!1,this.hideTippet=!1,this._tooltipRef=c(),this._forceOpen=!1,this._initialized=!1,this._boundReferenceElement=null,this.elementListeners=new WeakMap,this.tooltipId=u()}firstUpdated(){this.hideTooltip(),this._tryInitialize(),this._observeReferenceAvailability()}updated(e){super.updated(e),(e.has("referenceId")||e.has("isLabel"))&&(this._disconnectReferenceObserver(),this._teardown()),this._initialized||(this._tryInitialize(),this._observeReferenceAvailability())}get referenceElement(){if(!this.referenceId)return null;const e=this.previousElementSibling;if(e?.id===this.referenceId)return e;const t=`[id="${CSS.escape(this.referenceId)}"]`;let i=this.parentElement?.querySelector(t);return i||(i=document.getElementById(this.referenceId)),i||(i=document.querySelector(`[data-id="${CSS.escape(this.referenceId)}"]`)?.shadowRoot?.querySelector(t)),i||(i=this.getRootNode().querySelector?.(t)),i}_observeReferenceAvailability(){if(this._initialized||!this.referenceId||this._initObserver)return;const e=this.parentElement??document.body;this._initObserver=new MutationObserver(()=>{if(this._initialized){this._disconnectReferenceObserver();return}this._tryInitialize()}),this._initObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0})}_disconnectReferenceObserver(){this._initObserver?.disconnect(),this._initObserver=void 0}_tryInitialize(){if(this._initialized||!this.referenceId)return;const e=this.referenceElement,t=this._tooltipRef.value;!e||!t||(h(e,this.dataTestid,"trigger"),h(t,this.dataTestid,"tooltip"),this._updateAriaAssociation(e,!0),this._addInteractionEvents(e,t),this._initialized=!0,this._boundReferenceElement=e,this._disconnectReferenceObserver())}_teardown(){if(!this._initialized)return;this._clearScheduledHide();const e=this._boundReferenceElement,t=this._tooltipRef.value;e&&(this._updateAriaAssociation(e,!1),this.removeAllTrackedEventListeners(e)),t&&this.removeAllTrackedEventListeners(t),this.removeAllTrackedEventListeners(document),this._initialized=!1,this._boundReferenceElement=null}_getAriaTargetElement(e){return e.shadowRoot?.delegatesFocus?_(e):e}_updateAriaAssociation(e,t){const i=this._getAriaTargetElement(e);if(!i)return;if(this.isLabel){const r=i.ariaLabelledByElements??[];i.ariaLabelledByElements=t?[...r,this]:r.filter(a=>a!==this);return}const s=i.ariaDescribedByElements??[];i.ariaDescribedByElements=t?[...s,this]:s.filter(r=>r!==this)}_addInteractionEvents(e,t){const i=()=>{this._clearScheduledHide(),this.showTooltip()};this.addTrackedEventListener(e,"mouseenter",i),this.addTrackedEventListener(e,"mouseleave",()=>this._scheduleHide()),this.addTrackedEventListener(e,"focusin",()=>this.showTooltip()),this.addTrackedEventListener(e,"focusout",()=>this.hideTooltip()),this.addTrackedEventListener(t,"mouseenter",i),this.addTrackedEventListener(t,"mouseleave",()=>this._scheduleHide()),this.addTrackedEventListener(document,"keydown",s=>{s instanceof KeyboardEvent&&s.key===p.ESCAPE&&(this._forceOpen=!1,this.hideTooltip())})}_scheduleHide(){this._clearScheduledHide(),this._hideTimeoutId=setTimeout(()=>this.hideTooltip(),m)}_clearScheduledHide(){this._hideTimeoutId!==void 0&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=void 0)}addTrackedEventListener(e,t,i,s={}){this.elementListeners.has(e)||this.elementListeners.set(e,[]),this.elementListeners.get(e).push({eventType:t,listener:i,options:s}),e.addEventListener(t,i,s)}removeAllTrackedEventListeners(e){if(!this.elementListeners.has(e))return;const t=this.elementListeners.get(e);for(const{eventType:i,listener:s,options:r}of t)e.removeEventListener(i,s,r);this.elementListeners.delete(e)}toggleTooltip(){this._forceOpen=!this._forceOpen,this._forceOpen?this.showTooltip():this.hideTooltip()}disconnectedCallback(){this._disconnectReferenceObserver(),this._teardown(),this._cleanup&&this._cleanup(),super.disconnectedCallback()}getActivePopup(){return this._tooltipRef.value??null}preparePopupForShow(){}cleanupPopupAfterHide(){}showTooltip(){this.preparePopupForShow(),this.assignPosition();const e=this.getActivePopup();e&&(e.style.visibility="visible",e.style.opacity="1")}hideTooltip(){if(this._forceOpen)return;this._clearScheduledHide();const e=this.getActivePopup();e&&(e.style.visibility="hidden",e.style.opacity="0"),this.cleanupPopupAfterHide()}assignPosition(){}}o([n({attribute:"reference-id"})],d.prototype,"referenceId");o([n()],d.prototype,"placement");o([n({type:Number,attribute:"x-offset"})],d.prototype,"xOffset");o([n({type:Number,attribute:"y-offset"})],d.prototype,"yOffset");o([n({type:Boolean,attribute:"is-label"})],d.prototype,"isLabel");o([n({type:Boolean,attribute:"hide-tippet"})],d.prototype,"hideTippet");export{d as NjcTooltip};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getSideAxis as
|
|
1
|
+
import{getSideAxis as E,getAlignmentAxis as W,getSide as L,getAlignment as D,evaluate as M,getPaddingObject as q,rectToClientRect as X,getOppositePlacement as z,getExpandedPlacements as G,getOppositeAxisPlacements as H,getAlignmentSides as N,getAxisLength as J,clamp as K,getOppositeAxis as Q,placements as I,getOppositeAlignmentPlacement as Z}from"../../../../../@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.js";function Y(e,i,c){let{reference:n,floating:t}=e;const l=E(i),s=W(i),o=J(s),m=L(i),w=l==="y",u=n.x+n.width/2-t.width/2,a=n.y+n.height/2-t.height/2,d=n[o]/2-t[o]/2;let r;switch(m){case"top":r={x:u,y:n.y-t.height};break;case"bottom":r={x:u,y:n.y+n.height};break;case"right":r={x:n.x+n.width,y:a};break;case"left":r={x:n.x-t.width,y:a};break;default:r={x:n.x,y:n.y}}const f=D(i);return f&&(r[s]+=d*(f==="end"?1:-1)*(c&&w?-1:1)),r}async function ee(e,i){var c;i===void 0&&(i={});const{x:n,y:t,platform:l,rects:s,elements:o,strategy:m}=e,{boundary:w="clippingAncestors",rootBoundary:u="viewport",elementContext:a="floating",altBoundary:d=!1,padding:r=0}=M(i,e),f=q(r),A=o[d?a==="floating"?"reference":"floating":a],x=X(await l.getClippingRect({element:(c=await(l.isElement==null?void 0:l.isElement(A)))==null||c?A:A.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(o.floating)),boundary:w,rootBoundary:u,strategy:m})),g=a==="floating"?{x:n,y:t,width:s.floating.width,height:s.floating.height}:s.reference,p=await(l.getOffsetParent==null?void 0:l.getOffsetParent(o.floating)),h=await(l.isElement==null?void 0:l.isElement(p))&&await(l.getScale==null?void 0:l.getScale(p))||{x:1,y:1},P=X(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:p,strategy:m}):g);return{top:(x.top-P.top+f.top)/h.y,bottom:(P.bottom-x.bottom+f.bottom)/h.y,left:(x.left-P.left+f.left)/h.x,right:(P.right-x.right+f.right)/h.x}}const te=50,se=async(e,i,c)=>{const{placement:n="bottom",strategy:t="absolute",middleware:l=[],platform:s}=c,o=s.detectOverflow?s:{...s,detectOverflow:ee},m=await(s.isRTL==null?void 0:s.isRTL(i));let w=await s.getElementRects({reference:e,floating:i,strategy:t}),{x:u,y:a}=Y(w,n,m),d=n,r=0;const f={};for(let y=0;y<l.length;y++){const A=l[y];if(!A)continue;const{name:x,fn:g}=A,{x:p,y:h,data:P,reset:O}=await g({x:u,y:a,initialPlacement:n,placement:d,strategy:t,middlewareData:f,rects:w,platform:o,elements:{reference:e,floating:i}});u=p??u,a=h??a,f[x]={...f[x],...P},O&&r<te&&(r++,typeof O=="object"&&(O.placement&&(d=O.placement),O.rects&&(w=O.rects===!0?await s.getElementRects({reference:e,floating:i,strategy:t}):O.rects),{x:u,y:a}=Y(w,d,m)),y=-1)}return{x:u,y:a,placement:d,strategy:t,middlewareData:f}};function ne(e,i,c){return(e?[...c.filter(t=>D(t)===e),...c.filter(t=>D(t)!==e)]:c.filter(t=>L(t)===t)).filter(t=>e?D(t)===e||(i?Z(t)!==t:!1):!0)}const ae=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(i){var c,n,t;const{rects:l,middlewareData:s,placement:o,platform:m,elements:w}=i,{crossAxis:u=!1,alignment:a,allowedPlacements:d=I,autoAlignment:r=!0,...f}=M(e,i),y=a!==void 0||d===I?ne(a||null,r,d):d,A=((c=s.autoPlacement)==null?void 0:c.index)||0,x=y[A];if(x==null)return{};if(o!==x)return{reset:{placement:y[0]}};const g=await m.detectOverflow(i,f),p=N(x,l,await(m.isRTL==null?void 0:m.isRTL(w.floating))),h=[g[L(x)],g[p[0]],g[p[1]]],P=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:x,overflows:h}],O=y[A+1];if(O)return{data:{index:A+1,overflows:P},reset:{placement:O}};const _=P.map(v=>{const R=D(v.placement);return[v.placement,R&&u?v.overflows.slice(0,2).reduce((V,$)=>V+$,0):v.overflows[0],v.overflows]}).sort((v,R)=>v[1]-R[1]),C=((t=_.filter(v=>v[2].slice(0,D(v[0])?2:3).every(R=>R<=0))[0])==null?void 0:t[0])||_[0][0];return C!==o?{data:{index:A+1,overflows:P},reset:{placement:C}}:{}}}},ce=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(i){var c,n;const{placement:t,middlewareData:l,rects:s,initialPlacement:o,platform:m,elements:w}=i,{mainAxis:u=!0,crossAxis:a=!0,fallbackPlacements:d,fallbackStrategy:r="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:y=!0,...A}=M(e,i);if((c=l.arrow)!=null&&c.alignmentOffset)return{};const x=L(t),g=E(o),p=L(o)===o,h=await(m.isRTL==null?void 0:m.isRTL(w.floating)),P=d||(p||!y?[z(o)]:G(o)),O=f!=="none";!d&&O&&P.push(...H(o,y,f,h));const _=[o,...P],B=await m.detectOverflow(i,A),C=[];let v=((n=l.flip)==null?void 0:n.overflows)||[];if(u&&C.push(B[x]),a){const T=N(t,s,h);C.push(B[T[0]],B[T[1]])}if(v=[...v,{placement:t,overflows:C}],!C.every(T=>T<=0)){var R,V;const T=(((R=l.flip)==null?void 0:R.index)||0)+1,j=_[T];if(j&&(!(a==="alignment"?g!==E(j):!1)||v.every(b=>E(b.placement)===g?b.overflows[0]>0:!0)))return{data:{index:T,overflows:v},reset:{placement:j}};let F=(V=v.filter(k=>k.overflows[0]<=0).sort((k,b)=>k.overflows[1]-b.overflows[1])[0])==null?void 0:V.placement;if(!F)switch(r){case"bestFit":{var $;const k=($=v.filter(b=>{if(O){const S=E(b.placement);return S===g||S==="y"}return!0}).map(b=>[b.placement,b.overflows.filter(S=>S>0).reduce((S,U)=>S+U,0)]).sort((b,S)=>b[1]-S[1])[0])==null?void 0:$[0];k&&(F=k);break}case"initialPlacement":F=o;break}if(t!==F)return{reset:{placement:F}}}return{}}}},ie=new Set(["left","top"]);async function le(e,i){const{placement:c,platform:n,elements:t}=e,l=await(n.isRTL==null?void 0:n.isRTL(t.floating)),s=L(c),o=D(c),m=E(c)==="y",w=ie.has(s)?-1:1,u=l&&m?-1:1,a=M(i,e);let{mainAxis:d,crossAxis:r,alignmentAxis:f}=typeof a=="number"?{mainAxis:a,crossAxis:0,alignmentAxis:null}:{mainAxis:a.mainAxis||0,crossAxis:a.crossAxis||0,alignmentAxis:a.alignmentAxis};return o&&typeof f=="number"&&(r=o==="end"?f*-1:f),m?{x:r*u,y:d*w}:{x:d*w,y:r*u}}const re=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(i){var c,n;const{x:t,y:l,placement:s,middlewareData:o}=i,m=await le(i,e);return s===((c=o.offset)==null?void 0:c.placement)&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:t+m.x,y:l+m.y,data:{...m,placement:s}}}}},fe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(i){const{x:c,y:n,placement:t,platform:l}=i,{mainAxis:s=!0,crossAxis:o=!1,limiter:m={fn:g=>{let{x:p,y:h}=g;return{x:p,y:h}}},...w}=M(e,i),u={x:c,y:n},a=await l.detectOverflow(i,w),d=E(t),r=Q(d);let f=u[r],y=u[d];const A=(g,p)=>K(p+a[g==="y"?"top":"left"],p,p-a[g==="y"?"bottom":"right"]);s&&(f=A(r,f)),o&&(y=A(d,y));const x=m.fn({...i,[r]:f,[d]:y});return{...x,data:{x:x.x-c,y:x.y-n,enabled:{[r]:s,[d]:o}}}}}};export{ae as autoPlacement,se as computePosition,ee as detectOverflow,ce as flip,re as offset,X as rectToClientRect,fe as shift};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{computePosition as st,flip as rt,shift as ct,autoPlacement as lt}from"../../../../../@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.js";import{rectToClientRect as J,floor as W,createCoords as v,round as S,max as T,min as M}from"../../../../../@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.js";import{getOverflowAncestors as N,isElement as R,getDocumentElement as C,getWindow as x,isHTMLElement as F,getComputedStyle as b,isTopLayer as
|
|
1
|
+
import{computePosition as st,flip as rt,shift as ct,autoPlacement as lt,offset as ft}from"../../../../../@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.js";import{rectToClientRect as J,floor as W,createCoords as v,round as S,max as T,min as M}from"../../../../../@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.js";import{getOverflowAncestors as N,isElement as R,getDocumentElement as C,getWindow as x,isHTMLElement as F,getComputedStyle as b,isTopLayer as $,getParentNode as D,isLastTraversableNode as A,isTableElement as ut,isContainingBlock as Q,getContainingBlock as at,getNodeName as _,isOverflowElement as Y,getNodeScroll as z,isWebKit as Z,getFrameElement as k}from"../../../../../@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js";function tt(t){const e=b(t);let o=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=F(t),r=i?t.offsetWidth:o,s=i?t.offsetHeight:n,c=S(o)!==r||S(n)!==s;return c&&(o=r,n=s),{width:o,height:n,$:c}}function P(t){return R(t)?t:t.contextElement}function E(t){const e=P(t);if(!F(e))return v(1);const o=e.getBoundingClientRect(),{width:n,height:i,$:r}=tt(e);let s=(r?S(o.width):o.width)/n,c=(r?S(o.height):o.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const ht=v(0);function et(t){const e=x(t);return!Z()||!e.visualViewport?ht:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function dt(t,e,o){return e===void 0&&(e=!1),!!o&&e&&o===x(t)}function L(t,e,o,n){e===void 0&&(e=!1),o===void 0&&(o=!1);const i=t.getBoundingClientRect(),r=P(t);let s=v(1);e&&(n?R(n)&&(s=E(n)):s=E(t));const c=dt(r,o,n)?et(r):v(0);let f=(i.left+c.x)/s.x,l=(i.top+c.y)/s.y,u=i.width/s.x,a=i.height/s.y;if(r&&n){const d=x(r),h=R(n)?x(n):n;let y=d,p=k(y);for(;p&&h!==y;){const w=E(p),g=p.getBoundingClientRect(),m=b(p),O=g.left+(p.clientLeft+parseFloat(m.paddingLeft))*w.x,V=g.top+(p.clientTop+parseFloat(m.paddingTop))*w.y;f*=w.x,l*=w.y,u*=w.x,a*=w.y,f+=O,l+=V,y=x(p),p=k(y)}}return J({width:u,height:a,x:f,y:l})}function B(t,e){const o=z(t).scrollLeft;return e?e.left+o:L(C(t)).left+o}function ot(t,e){const o=t.getBoundingClientRect(),n=o.left+e.scrollLeft-B(t,o),i=o.top+e.scrollTop;return{x:n,y:i}}function gt(t){let{elements:e,rect:o,offsetParent:n,strategy:i}=t;const r=i==="fixed",s=C(n),c=e?$(e.floating):!1;if(n===s||c&&r)return o;let f={scrollLeft:0,scrollTop:0},l=v(1);const u=v(0),a=F(n);if((a||!r)&&((_(n)!=="body"||Y(s))&&(f=z(n)),a)){const h=L(n);l=E(n),u.x=h.x+n.clientLeft,u.y=h.y+n.clientTop}const d=s&&!a&&!r?ot(s,f):v(0);return{width:o.width*l.x,height:o.height*l.y,x:o.x*l.x-f.scrollLeft*l.x+u.x+d.x,y:o.y*l.y-f.scrollTop*l.y+u.y+d.y}}function pt(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function wt(t){const e=z(t),o=t.ownerDocument.body,n=T(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=T(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let r=-e.scrollLeft+B(t);const s=-e.scrollTop;return b(o).direction==="rtl"&&(r+=T(t.clientWidth,o.clientWidth)-n),{width:n,height:i,x:r,y:s}}const yt=25;function mt(t,e,o){o===void 0&&(o="viewport");const n=o==="layoutViewport",i=x(t),r=C(t),s=i.visualViewport;let c=r.clientWidth,f=r.clientHeight,l=0,u=0;if(s){const d=!Z()||e==="fixed";n?d||(l=-s.offsetLeft,u=-s.offsetTop):(c=s.width,f=s.height,d&&(l=s.offsetLeft,u=s.offsetTop))}if(B(r)<=0){const d=r.ownerDocument,h=d.body,y=getComputedStyle(h),p=d.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,w=Math.abs(r.clientWidth-h.clientWidth-p),g=getComputedStyle(r).scrollbarGutter==="stable both-edges"?w/2:w;g<=yt&&(c-=g)}return{width:c,height:f,x:l,y:u}}function vt(t,e){const o=L(t,!0,e==="fixed"),n=o.top+t.clientTop,i=o.left+t.clientLeft,r=E(t),s=t.clientWidth*r.x,c=t.clientHeight*r.y,f=i*r.x,l=n*r.y;return{width:s,height:c,x:f,y:l}}function G(t,e,o){let n;if(e==="viewport"||e==="layoutViewport")n=mt(t,o,e);else if(e==="document")n=wt(C(t));else if(R(e))n=vt(e,o);else{const i=et(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return J(n)}function xt(t,e){const o=e.get(t);if(o)return o;let n=N(t,[],!1).filter(c=>R(c)&&_(c)!=="body"),i=null;const r=b(t).position==="fixed";let s=r?D(t):t;for(;R(s)&&!A(s);){const c=b(s),f=Q(s),l=i?i.position:r?"fixed":"";!f&&(l==="fixed"||l==="absolute"&&c.position==="static")?n=n.filter(a=>a!==s):i=c,s=D(s)}return e.set(t,n),n}function Rt(t){let{element:e,boundary:o,rootBoundary:n,strategy:i}=t;const s=[...o==="clippingAncestors"?$(e)?[]:xt(e,this._c):[].concat(o),n],c=G(e,s[0],i);let f=c.top,l=c.right,u=c.bottom,a=c.left;for(let d=1;d<s.length;d++){const h=G(e,s[d],i);f=T(h.top,f),l=M(h.right,l),u=M(h.bottom,u),a=T(h.left,a)}return{width:l-a,height:u-f,x:a,y:f}}function bt(t){const{width:e,height:o}=tt(t);return{width:e,height:o}}function Ct(t,e,o){const n=F(e),i=C(e),r=o==="fixed",s=L(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const f=v(0);if((n||!r)&&((_(e)!=="body"||Y(i))&&(c=z(e)),n)){const d=L(e,!0,r,e);f.x=d.x+e.clientLeft,f.y=d.y+e.clientTop}!n&&i&&(f.x=B(i));const l=i&&!n&&!r?ot(i,c):v(0),u=s.left+c.scrollLeft-f.x-l.x,a=s.top+c.scrollTop-f.y-l.y;return{x:u,y:a,width:s.width,height:s.height}}function I(t){return b(t).position==="static"}function j(t,e){if(!F(t)||b(t).position==="fixed")return null;if(e)return e(t);let o=t.offsetParent;return C(t)===o&&(o=o.ownerDocument.body),o}function nt(t,e){const o=x(t);if($(t))return o;if(!F(t)){let i=D(t);for(;i&&!A(i);){if(R(i)&&!I(i))return i;i=D(i)}return o}let n=j(t,e);for(;n&&ut(n)&&I(n);)n=j(n,e);return n&&A(n)&&I(n)&&!Q(n)?o:n||at(t)||o}const Lt=async function(t){const e=this.getOffsetParent||nt,o=this.getDimensions,n=await o(t.floating);return{reference:Ct(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Ot(t){return b(t).direction==="rtl"}const Tt={convertOffsetParentRelativeRectToViewportRelativeRect:gt,getDocumentElement:C,getClippingRect:Rt,getOffsetParent:nt,getElementRects:Lt,getClientRects:pt,getDimensions:bt,getScale:E,isElement:R,isRTL:Ot};function it(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Et(t,e,o){let n=null,i;const r=C(t);function s(){var u;clearTimeout(i),(u=n)==null||u.disconnect(),n=null}function c(u,a){u===void 0&&(u=!1),a===void 0&&(a=1),s();const d=t.getBoundingClientRect(),{left:h,top:y,width:p,height:w}=d;if(u||e(),!p||!w)return;const g=W(y),m=W(r.clientWidth-(h+p)),O=W(r.clientHeight-(y+w)),V=W(h),X={rootMargin:-g+"px "+-m+"px "+-O+"px "+-V+"px",threshold:T(0,M(1,a))||1};let q=!0;function K(U){const H=U[0].intersectionRatio;if(!it(d,t.getBoundingClientRect()))return c();if(H!==a){if(!q)return c();H?c(!1,H):i=setTimeout(()=>{c(!1,1e-7)},1e3)}q=!1}try{n=new IntersectionObserver(K,{...X,root:r.ownerDocument})}catch{n=new IntersectionObserver(K,X)}n.observe(t)}const f=x(t),l=()=>c(o);return f.addEventListener("resize",l),c(!0),()=>{f.removeEventListener("resize",l),s()}}function zt(t,e,o,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=n,l=P(t),u=i||r?[...l?N(l):[],...e?N(e):[]]:[];u.forEach(g=>{i&&g.addEventListener("scroll",o),r&&g.addEventListener("resize",o)});const a=l&&c?Et(l,o,r):null;let d=-1,h=null;s&&(h=new ResizeObserver(g=>{let[m]=g;m&&m.target===l&&h&&e&&(h.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var O;(O=h)==null||O.observe(e)})),o()}),l&&!f&&h.observe(l),e&&h.observe(e));let y,p=f?L(t):null;f&&w();function w(){const g=L(t);p&&!it(p,g)&&o(),p=g,y=requestAnimationFrame(w)}return o(),()=>{var g;u.forEach(m=>{i&&m.removeEventListener("scroll",o),r&&m.removeEventListener("resize",o)}),a?.(),(g=h)==null||g.disconnect(),h=null,f&&cancelAnimationFrame(y)}}const Bt=ft,Vt=lt,Ht=ct,It=rt,Mt=(t,e,o)=>{const n=new Map,i=o??{},r={...Tt,...i.platform,_c:n};return st(t,e,{...i,platform:r})};export{Vt as autoPlacement,zt as autoUpdate,Mt as computePosition,It as flip,N as getOverflowAncestors,Bt as offset,Tt as platform,Ht as shift};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__module as l}from"../../../../../_virtual/
|
|
1
|
+
import{__module as l}from"../../../../../_virtual/index5.js";l.exports;var b;function m(){return b?l.exports:(b=1,(function(u){const g=(i=0)=>e=>`\x1B[${38+i};5;${e}m`,a=(i=0)=>(e,r,t)=>`\x1B[${38+i};2;${e};${r};${t}m`;function c(){const i=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(const[r,t]of Object.entries(e)){for(const[o,n]of Object.entries(t))e[o]={open:`\x1B[${n[0]}m`,close:`\x1B[${n[1]}m`},t[o]=e[o],i.set(n[0],n[1]);Object.defineProperty(e,r,{value:t,enumerable:!1})}return Object.defineProperty(e,"codes",{value:i,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi256=g(),e.color.ansi16m=a(),e.bgColor.ansi256=g(10),e.bgColor.ansi16m=a(10),Object.defineProperties(e,{rgbToAnsi256:{value:(r,t,o)=>r===t&&t===o?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(t/255*5)+Math.round(o/255*5),enumerable:!1},hexToRgb:{value:r=>{const t=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(r.toString(16));if(!t)return[0,0,0];let{colorString:o}=t.groups;o.length===3&&(o=o.split("").map(s=>s+s).join(""));const n=Number.parseInt(o,16);return[n>>16&255,n>>8&255,n&255]},enumerable:!1},hexToAnsi256:{value:r=>e.rgbToAnsi256(...e.hexToRgb(r)),enumerable:!1}}),e}Object.defineProperty(u,"exports",{enumerable:!0,get:c})})(l),l.exports)}export{m as __require};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__exports as e}from"../../../../../../_virtual/
|
|
1
|
+
import{__exports as e}from"../../../../../../_virtual/index4.js";import{__require as d}from"./ariaPropsMap.js";import{__require as q}from"./domMap.js";import{__require as v}from"./rolesMap.js";import{__require as M}from"./elementRoleMap.js";import{__require as R}from"./roleElementMap.js";var o;function b(){if(o)return e;o=1,Object.defineProperty(e,"__esModule",{value:!0}),e.roles=e.roleElements=e.elementRoles=e.dom=e.aria=void 0;var l=r(d()),i=r(q()),t=r(v()),u=r(M()),m=r(R());function r(a){return a&&a.__esModule?a:{default:a}}var s=l.default;e.aria=s;var _=i.default;e.dom=_;var p=t.default;e.roles=p;var n=u.default;e.elementRoles=n;var f=m.default;return e.roleElements=f,e}export{b as __require};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__exports as u}from"../../../../../../_virtual/
|
|
1
|
+
import{__exports as u}from"../../../../../../_virtual/index7.js";var c;function g(){if(c)return u;c=1;var l=Object.prototype.hasOwnProperty;function n(e,t){var r,i;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((i=e.length)===t.length)for(;i--&&n(e[i],t[i]););return i===-1}if(!r||typeof e=="object"){i=0;for(r in e)if(l.call(e,r)&&++i&&!l.call(t,r)||!(r in t)||!n(e[r],t[r]))return!1;return Object.keys(t).length===i}}return e!==e&&t!==t}return u.dequal=n,u}export{g as __require};
|
package/dist/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{__exports as m}from"../../../../../../_virtual/
|
|
1
|
+
import{__exports as m}from"../../../../../../_virtual/index3.js";import{__require as te}from"../../../../ansi-styles@5.2.0/node_modules/ansi-styles/index.js";import{__require as ne}from"./collections.js";import{__require as ue}from"./plugins/AsymmetricMatcher.js";import{__require as ie}from"./plugins/ConvertAnsi.js";import{__require as ce}from"./plugins/DOMCollection.js";import{__require as ae}from"./plugins/DOMElement.js";import{__require as oe}from"./plugins/Immutable.js";import{__require as me}from"./plugins/ReactElement.js";import{__require as se}from"./plugins/ReactTestComponent.js";var P;function Ee(){if(P)return m;P=1,Object.defineProperty(m,"__esModule",{value:!0}),m.default=m.DEFAULT_OPTIONS=void 0,m.format=I,m.plugins=void 0;var R=s(te()),p=ne(),M=s(ue()),F=s(ie()),C=s(ce()),B=s(ae()),$=s(oe()),U=s(me()),J=s(se());function s(e){return e&&e.__esModule?e:{default:e}}const g=Object.prototype.toString,L=Date.prototype.toISOString,k=Error.prototype.toString,b=RegExp.prototype.toString,y=e=>typeof e.constructor=="function"&&e.constructor.name||"Object",K=e=>typeof window<"u"&&e===window,W=/^Symbol\((.*)\)(.*)$/,V=/\n/gi;class _ extends Error{constructor(r,t){super(r),this.stack=t,this.name=this.constructor.name}}function G(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}function H(e){return Object.is(e,-0)?"-0":String(e)}function z(e){return`${e}n`}function O(e,r){return r?"[Function "+(e.name||"anonymous")+"]":"[Function]"}function h(e){return String(e).replace(W,"Symbol($1)")}function E(e){return"["+k.call(e)+"]"}function S(e,r,t,u){if(e===!0||e===!1)return""+e;if(e===void 0)return"undefined";if(e===null)return"null";const n=typeof e;if(n==="number")return H(e);if(n==="bigint")return z(e);if(n==="string")return u?'"'+e.replace(/"|\\/g,"\\$&")+'"':'"'+e+'"';if(n==="function")return O(e,r);if(n==="symbol")return h(e);const i=g.call(e);return i==="[object WeakMap]"?"WeakMap {}":i==="[object WeakSet]"?"WeakSet {}":i==="[object Function]"||i==="[object GeneratorFunction]"?O(e,r):i==="[object Symbol]"?h(e):i==="[object Date]"?isNaN(+e)?"Date { NaN }":L.call(e):i==="[object Error]"?E(e):i==="[object RegExp]"?t?b.call(e).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):b.call(e):e instanceof Error?E(e):null}function j(e,r,t,u,n,i){if(n.indexOf(e)!==-1)return"[Circular]";n=n.slice(),n.push(e);const c=++u>r.maxDepth,a=r.min;if(r.callToJSON&&!c&&e.toJSON&&typeof e.toJSON=="function"&&!i)return l(e.toJSON(),r,t,u,n,!0);const f=g.call(e);return f==="[object Arguments]"?c?"[Arguments]":(a?"":"Arguments ")+"["+(0,p.printListItems)(e,r,t,u,n,l)+"]":G(f)?c?"["+e.constructor.name+"]":(a||!r.printBasicPrototype&&e.constructor.name==="Array"?"":e.constructor.name+" ")+"["+(0,p.printListItems)(e,r,t,u,n,l)+"]":f==="[object Map]"?c?"[Map]":"Map {"+(0,p.printIteratorEntries)(e.entries(),r,t,u,n,l," => ")+"}":f==="[object Set]"?c?"[Set]":"Set {"+(0,p.printIteratorValues)(e.values(),r,t,u,n,l)+"}":c||K(e)?"["+y(e)+"]":(a||!r.printBasicPrototype&&y(e)==="Object"?"":y(e)+" ")+"{"+(0,p.printObjectProperties)(e,r,t,u,n,l)+"}"}function X(e){return e.serialize!=null}function A(e,r,t,u,n,i){let c;try{c=X(e)?e.serialize(r,t,u,n,i,l):e.print(r,a=>l(a,t,u,n,i),a=>{const f=u+t.indent;return f+a.replace(V,`
|
|
2
2
|
`+f)},{edgeSpacing:t.spacingOuter,min:t.min,spacing:t.spacingInner},t.colors)}catch(a){throw new _(a.message,a.stack)}if(typeof c!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof c}".`);return c}function w(e,r){for(let t=0;t<e.length;t++)try{if(e[t].test(r))return e[t]}catch(u){throw new _(u.message,u.stack)}return null}function l(e,r,t,u,n,i){const c=w(r.plugins,e);if(c!==null)return A(c,e,r,t,u,n);const a=S(e,r.printFunctionName,r.escapeRegex,r.escapeString);return a!==null?a:j(e,r,t,u,n,i)}const d={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},N=Object.keys(d),o={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:d};m.DEFAULT_OPTIONS=o;function Y(e){if(Object.keys(e).forEach(r=>{if(!o.hasOwnProperty(r))throw new Error(`pretty-format: Unknown option "${r}".`)}),e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(e.theme!==void 0){if(e.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof e.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof e.theme}".`)}}const Q=e=>N.reduce((r,t)=>{const u=e.theme&&e.theme[t]!==void 0?e.theme[t]:d[t],n=u&&R.default[u];if(n&&typeof n.close=="string"&&typeof n.open=="string")r[t]=n;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${u}" is undefined in ansi-styles.`);return r},Object.create(null)),Z=()=>N.reduce((e,r)=>(e[r]={close:"",open:""},e),Object.create(null)),x=e=>e&&e.printFunctionName!==void 0?e.printFunctionName:o.printFunctionName,D=e=>e&&e.escapeRegex!==void 0?e.escapeRegex:o.escapeRegex,T=e=>e&&e.escapeString!==void 0?e.escapeString:o.escapeString,q=e=>{var r;return{callToJSON:e&&e.callToJSON!==void 0?e.callToJSON:o.callToJSON,colors:e&&e.highlight?Q(e):Z(),compareKeys:e&&typeof e.compareKeys=="function"?e.compareKeys:o.compareKeys,escapeRegex:D(e),escapeString:T(e),indent:e&&e.min?"":v(e&&e.indent!==void 0?e.indent:o.indent),maxDepth:e&&e.maxDepth!==void 0?e.maxDepth:o.maxDepth,min:e&&e.min!==void 0?e.min:o.min,plugins:e&&e.plugins!==void 0?e.plugins:o.plugins,printBasicPrototype:(r=e?.printBasicPrototype)!==null&&r!==void 0?r:!0,printFunctionName:x(e),spacingInner:e&&e.min?" ":`
|
|
3
3
|
`,spacingOuter:e&&e.min?"":`
|
|
4
4
|
`}};function v(e){return new Array(e+1).join(" ")}function I(e,r){if(r&&(Y(r),r.plugins)){const u=w(r.plugins,e);if(u!==null)return A(u,e,q(r),"",0,[])}const t=S(e,x(r),D(r),T(r));return t!==null?t:j(e,q(r),"",0,[])}const ee={AsymmetricMatcher:M.default,ConvertAnsi:F.default,DOMCollection:C.default,DOMElement:B.default,Immutable:$.default,ReactElement:U.default,ReactTestComponent:J.default};m.plugins=ee;var re=I;return m.default=re,m}export{Ee as __require};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__module as r}from"../../../../../_virtual/
|
|
1
|
+
import{__module as r}from"../../../../../_virtual/index8.js";import{__require as t}from"./cjs/react-is.production.min.js";var e;function s(){return e?r.exports:(e=1,r.exports=t(),r.exports)}export{s as __require};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bail as P}from"../../../../bail@2.0.2/node_modules/bail/index.js";import y from"../../../../../../_virtual/
|
|
1
|
+
import{bail as P}from"../../../../bail@2.0.2/node_modules/bail/index.js";import y from"../../../../../../_virtual/index6.js";import z from"../../../../is-plain-obj@4.1.0/node_modules/is-plain-obj/index.js";import{CallableInstance as C}from"./callable-instance.js";import{trough as A}from"../../../../trough@2.2.0/node_modules/trough/lib/index.js";import{VFile as S}from"../../../../vfile@6.0.3/node_modules/vfile/lib/index.js";const F={}.hasOwnProperty;class x extends C{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=A()}copy(){const e=new x;let n=-1;for(;++n<this.attachers.length;){const t=this.attachers[n];e.use(...t)}return e.data(y(!0,{},this.namespace)),e}data(e,n){return typeof e=="string"?arguments.length===2?(b("data",this.frozen),this.namespace[e]=n,this):F.call(this.namespace,e)&&this.namespace[e]||void 0:e?(b("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...t]=this.attachers[this.freezeIndex];if(t[0]===!1)continue;t[0]===!0&&(t[0]=void 0);const i=n.call(e,...t);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const n=m(e),t=this.parser||this.Parser;return w("parse",t),t(String(n),n)}process(e,n){const t=this;return this.freeze(),w("process",this.parser||this.Parser),g("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(a,h){const p=m(e),l=t.parse(p);t.run(l,p,function(o,c,f){if(o||!c||!f)return s(o);const u=c,d=t.stringify(u,f);D(d)?f.value=d:f.result=d,s(o,f)});function s(o,c){o||!c?h(o):a?a(c):n(void 0,c)}}}processSync(e){let n=!1,t;return this.freeze(),w("processSync",this.parser||this.Parser),g("processSync",this.compiler||this.Compiler),this.process(e,i),T("processSync","process",n),t;function i(a,h){n=!0,P(a),t=h}}run(e,n,t){I(e),this.freeze();const i=this.transformers;return!t&&typeof n=="function"&&(t=n,n=void 0),t?a(void 0,t):new Promise(a);function a(h,p){const l=m(n);i.run(e,l,s);function s(o,c,f){const u=c||e;o?p(o):h?h(u):t(void 0,u,f)}}}runSync(e,n){let t=!1,i;return this.run(e,n,a),T("runSync","run",t),i;function a(h,p){P(h),i=p,t=!0}}stringify(e,n){this.freeze();const t=m(n),i=this.compiler||this.Compiler;return g("stringify",i),I(e),i(e,t)}use(e,...n){const t=this.attachers,i=this.namespace;if(b("use",this.frozen),e!=null)if(typeof e=="function")l(e,n);else if(typeof e=="object")Array.isArray(e)?p(e):h(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function a(s){if(typeof s=="function")l(s,[]);else if(typeof s=="object")if(Array.isArray(s)){const[o,...c]=s;l(o,c)}else h(s);else throw new TypeError("Expected usable value, not `"+s+"`")}function h(s){if(!("plugins"in s)&&!("settings"in s))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");p(s.plugins),s.settings&&(i.settings=y(!0,i.settings,s.settings))}function p(s){let o=-1;if(s!=null)if(Array.isArray(s))for(;++o<s.length;){const c=s[o];a(c)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function l(s,o){let c=-1,f=-1;for(;++c<t.length;)if(t[c][0]===s){f=c;break}if(f===-1)t.push([s,...o]);else if(o.length>0){let[u,...d]=o;const E=t[f][1];z(E)&&z(u)&&(u=y(!0,E,u)),t[f]=[s,u,...d]}}}}const R=new x().freeze();function w(r,e){if(typeof e!="function")throw new TypeError("Cannot `"+r+"` without `parser`")}function g(r,e){if(typeof e!="function")throw new TypeError("Cannot `"+r+"` without `compiler`")}function b(r,e){if(e)throw new Error("Cannot call `"+r+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function I(r){if(!z(r)||typeof r.type!="string")throw new TypeError("Expected node, got `"+r+"`")}function T(r,e,n){if(!n)throw new Error("`"+r+"` finished async. Use `"+e+"` instead")}function m(r){return j(r)?r:new S(r)}function j(r){return!!(r&&typeof r=="object"&&"message"in r&&"messages"in r)}function D(r){return typeof r=="string"||L(r)}function L(r){return!!(r&&typeof r=="object"&&"byteLength"in r&&"byteOffset"in r)}export{x as Processor,R as unified};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const o='.gator-button{--box-shadow-default: 0 5px 10px 0px var(--shadow-color-5), 0 7px 14px 0px var(--shadow-color-8), 0 3px 6px 0px var(--shadow-color-4);display:inline-flex;align-items:center;justify-content:center;border-style:none;cursor:pointer;text-decoration:none;font-family:var(--font-family-body, "Open Sans"),sans-serif;font-weight:var(--ngc-button-font-weight, var(--font-weight-semi-bold, 600));margin:var(--ngc-button-margin, auto);width:var(--ngc-button-width, auto);position:var(--ngc-button-position, relative);border-radius:var(--ngc-button-border-radius, var(--border-radius-x-small, 2px));gap:.5rem}.gator-button ngc-icon{--ngc-icon-color: var(--ngc-button-icon-color, var(--color-icon-inverse, #FFFFFF))}.gator-button:focus-visible{outline:var(--ngc-button-focus-outline, 2px solid var(--ngc-button-focus-outline-color, var(--color-border-neutral, #1F1F1F)));outline-offset:2px}.gator-button:disabled{cursor:not-allowed}.gator-button.gator-button_loading{cursor:not-allowed}.gator-button-loader{display:flex;align-items:center;justify-content:center;position:absolute}.gator-button-loader+.gator-button-text{visibility:hidden}.gator-button-skeleton{background-color:var(--color-surface-loading, #DBDBDB);cursor:default}.gator-button-content{display:flex;align-items:center;justify-content:center;gap:.5rem}.gator-button_loading .gator-button-content{visibility:hidden}.gator-button_small{font-size:var(--ngc-button-font-size, var(--font-size-body-3, .8125rem));line-height:var(--ngc-button-line-height, var(--line-height-body-3, 1.125rem));padding:var(--ngc-button-padding, 0 .75rem);min-width:var(--ngc-button-min-width, 3.5rem);height:var(--ngc-button-height, 1.75rem)}.gator-button_medium{font-size:var(--ngc-button-font-size, var(--font-size-body-2, .9375rem));line-height:var(--ngc-button-line-height, var(--line-height-body-2, 1.375rem));padding:var(--ngc-button-padding, 0 1rem);min-width:var(--ngc-button-min-width, 4rem);height:var(--ngc-button-height, 2.25rem)}.gator-button_large{font-size:var(--ngc-button-font-size, var(--font-size-body-1, 1.0625rem));line-height:var(--ngc-button-line-height, var(--line-height-body-1, 1.5rem));padding:var(--ngc-button-padding, 0 1rem);min-width:var(--ngc-button-min-width, 6rem);height:var(--ngc-button-height, 3rem)}.gator-button_xlarge{font-size:var(--ngc-button-font-size, var(--font-size-body-1, 1.0625rem));line-height:var(--ngc-button-line-height, var(--line-height-body-1, 1.5rem));padding:var(--ngc-button-padding, 0 2.5rem);min-width:var(--ngc-button-min-width, 7.5rem);height:var(--ngc-button-height, 3.5rem)}.gator-button_primary{background-color:var(--ngc-button-background-color, var(--color-feedback-brand, #103656));color:var(--ngc-button-color, var(--color-text-inverse, #FFFFFF))}.gator-button_primary:not([disabled]):not(.gator-button_loading):hover{background-color:var(--ngc-button-hover-background-color, var(--color-feedback-brand-secondary, #0D2B45));color:var(--ngc-button-hover-color, var(--color-text-inverse, #FFFFFF));box-shadow:var(--ngc-button-hover-box-shadow, var(--shadow-2-card-raised, var(--box-shadow-default)))}.gator-button_primary:not([disabled]):not(.gator-button_loading):active{background-color:var(--ngc-button-pressed-background-color, var(--color-feedback-brand-tertiary, #061622));color:var(--ngc-button-pressed-color, var(--color-text-inverse, #FFFFFF));box-shadow:none}.gator-button_primary:disabled{background-color:var(--ngc-button-disabled-background-color, var(--color-surface-disabled, #E5E5E5));color:var(--ngc-button-disabled-color, var(--color-text-disabled, #BFBFBF))}.gator-button_primary.gator-button_loading{background-color:var(--ngc-button-loading-background-color, var(--color-feedback-brand-tertiary, #061622))}.gator-button_secondary{background-color:var(--ngc-button-background-color, transparent);color:var(--ngc-button-color, var(--color-text-brand, #103656))}.gator-button_secondary:before{content:"";position:absolute;inset:0;border-radius:var(--ngc-button-border-radius, var(--border-radius-x-small, 2px));border-width:1px;border-color:var(--ngc-button-border-color, var(--color-border-brand, #103656));border-style:solid}.gator-button_secondary ngc-icon{--ngc-icon-color: var(--ngc-button-icon-color, var(--color-icon-brand, #103656))}.gator-button_secondary:not([disabled]):not(.gator-button_loading):hover{background-color:var(--ngc-button-hover-background-color, var(--color-surface-secondary, #F7F7F7));box-shadow:var(--ngc-button-hover-box-shadow, var(--shadow-2-card-raised, var(--box-shadow-default)))}.gator-button_secondary:not([disabled]):not(.gator-button_loading):active{background-color:var(--ngc-button-pressed-background-color, var(--color-surface-secondary, #F7F7F7));box-shadow:none}.gator-button_secondary:disabled{color:var(--ngc-button-disabled-color, var(--color-text-disabled, #BFBFBF));cursor:not-allowed}.gator-button_secondary:disabled ngc-icon{--ngc-icon-color: var(--color-icon-disabled)}.gator-button_secondary:disabled:before{border-color:var(--ngc-button-border-color, var(--color-border-secondary, #BFBFBF))}.gator-button_secondary.gator-button_loading{background-color:var(--ngc-button-loading-background-color, var(--color-surface-secondary, #F7F7F7))}.gator-button_secondary.gator-button_loading:before{border-color:var(--ngc-button-border-color, var(--color-border-secondary, #BFBFBF))}.gator-button_destructive{background-color:var(--ngc-button-background-color, var(--color-feedback-error, #D44011));color:var(--ngc-button-color, var(--color-text-inverse, #FFFFFF))}.gator-button_destructive:not([disabled]):not(.gator-button_loading):hover{box-shadow:var(--ngc-button-hover-box-shadow, var(--shadow-2-card-raised, var(--box-shadow-default)));background-color:var(--ngc-button-hover-background-color, var(--color-feedback-error-secondary, #AA330E))}.gator-button_destructive:not([disabled]):not(.gator-button_loading):active{background-color:var(--ngc-button-pressed-background-color, var(--color-feedback-error-secondary, #AA330E));box-shadow:none}.gator-button_destructive:disabled{background-color:var(--ngc-button-disabled-background-color, var(--color-surface-disabled, #E5E5E5));color:var(--ngc-button-disabled-color, var(--color-text-disabled, #BFBFBF))}.gator-button_destructive.gator-button_loading{background-color:var(--ngc-button-loading-background-color, var(--color-feedback-error-tertiary, #9E2500))}.gator-button_base{background-color:var(--ngc-button-background-color, transparent);color:var(--ngc-button-color, var(--color-text-brand, #103656));padding:3px 0}.gator-button_base ngc-icon{--ngc-icon-color: var(--ngc-button-icon-color, var(--color-icon-brand, #103656))}.gator-button_base .gator-button-text{border-bottom:1px solid var(--color-underline-primary, #BFBFBF)}.gator-button_base.gator-button_small{min-width:2.75rem}.gator-button_base.gator-button_medium{min-width:3.125rem}.gator-button_base.gator-button_large,.gator-button_base.gator-button_xlarge{min-width:3.5625rem}.gator-button_base:not([disabled]):not(.gator-button_loading):hover .gator-button-text{box-shadow:var(--ngc-button-hover-box-shadow, none);color:var(--ngc-button-hover-color, var(--color-text-brand, #103656));border-bottom:1px solid var(--color-underline-brand, #103656)}.gator-button_base:not([disabled]):not(.gator-button_loading):active .gator-button-text{color:var(--ngc-button-pressed-color, var(--color-text-brand, #103656));border-bottom:1px solid var(--color-underline-brand, #103656)}.gator-button_base:disabled{color:var(--ngc-button-color, var(--color-text-disabled, #BFBFBF))}.gator-button_base:disabled .gator-button-text{border-bottom:1px solid var(--color-text-disabled, #BFBFBF)}';export{o as default};
|
|
1
|
+
const o='.gator-button{--box-shadow-default: 0 5px 10px 0px var(--shadow-color-5), 0 7px 14px 0px var(--shadow-color-8), 0 3px 6px 0px var(--shadow-color-4);display:inline-flex;align-items:center;justify-content:center;border-style:none;cursor:pointer;text-decoration:none;font-family:var(--font-family-body, "Open Sans"),sans-serif;font-weight:var(--ngc-button-font-weight, var(--font-weight-semi-bold, 600));margin:var(--ngc-button-margin, auto);width:var(--ngc-button-width, auto);position:var(--ngc-button-position, relative);border-radius:var(--ngc-button-border-radius, var(--border-radius-x-small, 2px));gap:.5rem}.gator-button ngc-icon{--ngc-icon-color: var(--ngc-button-icon-color, var(--color-icon-inverse, #FFFFFF))}.gator-button:focus-visible{outline:var(--ngc-button-focus-outline, 2px solid var(--ngc-button-focus-outline-color, var(--color-border-neutral, #1F1F1F)));outline-offset:2px}.gator-button:disabled{cursor:not-allowed}.gator-button.gator-button_loading{cursor:not-allowed}.gator-button-loader{display:flex;align-items:center;justify-content:center;position:absolute}.gator-button-loader+.gator-button-text{visibility:hidden}.gator-button-skeleton{background-color:var(--color-surface-loading, #DBDBDB);cursor:default}.gator-button-content{display:flex;align-items:center;justify-content:center;gap:.5rem}.gator-button_loading .gator-button-content{visibility:hidden}.gator-button_small{font-size:var(--ngc-button-font-size, var(--font-size-body-3, .8125rem));line-height:var(--ngc-button-line-height, var(--line-height-body-3, 1.125rem));padding:var(--ngc-button-padding, 0 .75rem);min-width:var(--ngc-button-min-width, 3.5rem);height:var(--ngc-button-height, 1.75rem)}.gator-button_medium{font-size:var(--ngc-button-font-size, var(--font-size-body-2, .9375rem));line-height:var(--ngc-button-line-height, var(--line-height-body-2, 1.375rem));padding:var(--ngc-button-padding, 0 1rem);min-width:var(--ngc-button-min-width, 4rem);height:var(--ngc-button-height, 2.25rem)}.gator-button_large{font-size:var(--ngc-button-font-size, var(--font-size-body-1, 1.0625rem));line-height:var(--ngc-button-line-height, var(--line-height-body-1, 1.5rem));padding:var(--ngc-button-padding, 0 1rem);min-width:var(--ngc-button-min-width, 6rem);height:var(--ngc-button-height, 3rem)}.gator-button_xlarge{font-size:var(--ngc-button-font-size, var(--font-size-body-1, 1.0625rem));line-height:var(--ngc-button-line-height, var(--line-height-body-1, 1.5rem));padding:var(--ngc-button-padding, 0 2.5rem);min-width:var(--ngc-button-min-width, 7.5rem);height:var(--ngc-button-height, 3.5rem)}.gator-button_primary{background-color:var(--ngc-button-background-color, var(--color-feedback-brand, #103656));color:var(--ngc-button-color, var(--color-text-inverse, #FFFFFF))}.gator-button_primary:not([disabled]):not(.gator-button_loading):hover{background-color:var(--ngc-button-hover-background-color, var(--color-feedback-brand-secondary, #0D2B45));color:var(--ngc-button-hover-color, var(--color-text-inverse, #FFFFFF));box-shadow:var(--ngc-button-hover-box-shadow, var(--shadow-2-card-raised, var(--box-shadow-default)))}.gator-button_primary:not([disabled]):not(.gator-button_loading):active{background-color:var(--ngc-button-pressed-background-color, var(--color-feedback-brand-tertiary, #061622));color:var(--ngc-button-pressed-color, var(--color-text-inverse, #FFFFFF));box-shadow:none}.gator-button_primary:disabled{background-color:var(--ngc-button-disabled-background-color, var(--color-surface-disabled, #E5E5E5));color:var(--ngc-button-disabled-color, var(--color-text-disabled, #BFBFBF))}.gator-button_primary.gator-button_loading{background-color:var(--ngc-button-loading-background-color, var(--color-feedback-brand-tertiary, #061622))}.gator-button_secondary{background-color:var(--ngc-button-background-color, transparent);color:var(--ngc-button-color, var(--color-text-brand, #103656))}.gator-button_secondary:before{content:"";position:absolute;inset:0;border-radius:var(--ngc-button-border-radius, var(--border-radius-x-small, 2px));border-width:1px;border-color:var(--ngc-button-border-color, var(--color-border-brand, #103656));border-style:solid}.gator-button_secondary ngc-icon{--ngc-icon-color: var(--ngc-button-icon-color, var(--color-icon-brand, #103656))}.gator-button_secondary:not([disabled]):not(.gator-button_loading):hover{background-color:var(--ngc-button-hover-background-color, var(--color-surface-secondary, #F7F7F7));box-shadow:var(--ngc-button-hover-box-shadow, var(--shadow-2-card-raised, var(--box-shadow-default)))}.gator-button_secondary:not([disabled]):not(.gator-button_loading):active{background-color:var(--ngc-button-pressed-background-color, var(--color-surface-secondary, #F7F7F7));box-shadow:none}.gator-button_secondary:disabled{color:var(--ngc-button-disabled-color, var(--color-text-disabled, #BFBFBF));cursor:not-allowed}.gator-button_secondary:disabled ngc-icon{--ngc-icon-color: var(--color-icon-disabled)}.gator-button_secondary:disabled:before{border-color:var(--ngc-button-border-color, var(--color-border-secondary, #BFBFBF))}.gator-button_secondary.gator-button_loading{background-color:var(--ngc-button-loading-background-color, var(--color-surface-secondary, #F7F7F7))}.gator-button_secondary.gator-button_loading:before{border-color:var(--ngc-button-border-color, var(--color-border-secondary, #BFBFBF))}.gator-button_destructive{background-color:var(--ngc-button-background-color, var(--color-feedback-error, #D44011));color:var(--ngc-button-color, var(--color-text-inverse, #FFFFFF))}.gator-button_destructive:not([disabled]):not(.gator-button_loading):hover{box-shadow:var(--ngc-button-hover-box-shadow, var(--shadow-2-card-raised, var(--box-shadow-default)));background-color:var(--ngc-button-hover-background-color, var(--color-feedback-error-secondary, #AA330E))}.gator-button_destructive:not([disabled]):not(.gator-button_loading):active{background-color:var(--ngc-button-pressed-background-color, var(--color-feedback-error-secondary, #AA330E));box-shadow:none}.gator-button_destructive:disabled{background-color:var(--ngc-button-disabled-background-color, var(--color-surface-disabled, #E5E5E5));color:var(--ngc-button-disabled-color, var(--color-text-disabled, #BFBFBF))}.gator-button_destructive.gator-button_loading{background-color:var(--ngc-button-loading-background-color, var(--color-feedback-error-tertiary, #9E2500))}.gator-button_base{background-color:var(--ngc-button-background-color, transparent);color:var(--ngc-button-color, var(--color-text-brand, #103656));padding:3px 0}.gator-button_base ngc-icon{--ngc-icon-color: var(--ngc-button-icon-color, var(--color-icon-brand, #103656))}.gator-button_base .gator-button-text{border-bottom:1px solid var(--color-underline-primary, #BFBFBF)}.gator-button_base.gator-button_small{min-width:2.75rem}.gator-button_base.gator-button_medium{min-width:3.125rem}.gator-button_base.gator-button_large,.gator-button_base.gator-button_xlarge{min-width:3.5625rem}.gator-button_base:not([disabled]):not(.gator-button_loading):hover .gator-button-text{box-shadow:var(--ngc-button-hover-box-shadow, none);color:var(--ngc-button-hover-color, var(--color-text-brand, #103656));border-bottom:1px solid var(--color-underline-brand, #103656)}.gator-button_base:not([disabled]):not(.gator-button_loading):active .gator-button-text{color:var(--ngc-button-pressed-color, var(--color-text-brand, #103656));border-bottom:1px solid var(--color-underline-brand, #103656)}.gator-button_base:disabled{color:var(--ngc-button-color, var(--color-text-disabled, #BFBFBF))}.gator-button_base:disabled .gator-button-text{border-bottom:1px solid var(--color-text-disabled, #BFBFBF)}:host([truncate]){display:inline-block;max-width:100%;min-width:0}.gator-button.gator-button_truncate{max-width:100%;min-width:0}.gator-button.gator-button_truncate .gator-button-content{min-width:0;max-width:100%}.gator-button.gator-button_truncate .gator-button-text{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}';export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const r='.gator-popover{position:relative;box-shadow:var(--shadow-popover);border-radius:var(--ngc-popover-border-radius, var(--border-radius-large));background-color:var(--ngc-popover-background-color, var(--color-surface-primary));pointer-events:auto}.gator-popover-small{width:240px}.gator-popover-medium{width:320px}.gator-popover-large{width:400px}.gator-popover-body{display:flex;flex-direction:column;padding:var(--ngc-popover-body-padding, .75rem 1.75rem .75rem .75rem)}.gator-popover-body-container{display:flex;margin-top:.75rem}.gator-popover-body-container ngc-icon{margin-right:.5rem}.gator-popover-body-content{display:flex;flex-direction:column;flex-grow:1}.gator-popover-body-title{font-family:var(--ngc-font-family-body, var(--font-family-body, "Open Sans")),sans-serif;font-size:var(--font-size-subtitle-1);font-weight:var(--font-weight-bold);line-height:var(--line-height-subtitle-1);margin-bottom:var(--spacing-5)}.gator-popover-divider{height:1px;background-color:var(--color-border-tertiary)}.gator-popover-footer{display:flex;justify-content:flex-end;align-items:center;padding:var(--ngc-popover-footer-padding, var(--spacing-5) var(--spacing-8))}.gator-popover-footer ::slotted(*){width:100%}.gator-popover-footer ngc-help-text{margin-right:auto}#gator-popover-close{position:absolute;top:.25rem;right:.25rem;--ngc-icon-button-hover-box-shadow: none}.gator-popover-nubbin_bottom-start:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;left:1.75rem;bottom:-.5rem;margin-left:-.5rem;border-radius:100% 0 3px}.gator-popover-nubbin_bottom-center:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;left:50%;bottom:-.5rem;margin-left:-.5rem;border-radius:100% 0 3px}.gator-popover-nubbin_bottom-end:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;right:1.75rem;bottom:-.5rem;margin-left:-.5rem;border-radius:100% 0 3px}.gator-popover-nubbin_top-start:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;left:1.75rem;top:-.5rem;margin-left:-.5rem;border-radius:3px 0 100%}.gator-popover-nubbin_top-center:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;left:50%;top:-.5rem;margin-left:-.5rem;border-radius:3px 0 100%}.gator-popover-nubbin_top-end:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;right:1.75rem;top:-.5rem;margin-left:-.5rem;border-radius:3px 0 100%}.gator-popover-nubbin_left-start:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;left:-.5rem;top:1.4rem;margin-top:-.5rem;border-radius:0 100% 0 3px}.gator-popover-nubbin_left-center:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;left:-.5rem;top:50%;margin-top:-.5rem;border-radius:0 100% 0 3px}.gator-popover-nubbin_left-end:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;left:-.5rem;bottom:1rem;margin-top:-.5rem;border-radius:0 100% 0 3px}.gator-popover-nubbin_right-start:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;right:-.5rem;top:1.4rem;margin-top:-.5rem;border-radius:0 3px 0 100%}.gator-popover-nubbin_right-center:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;right:-.5rem;top:50%;margin-top:-.5rem;border-radius:0 3px 0 100%}.gator-popover-nubbin_right-end:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;right:-.5rem;bottom:1rem;margin-top:-.5rem;border-radius:0 3px 0 100%}';export{r as default};
|
|
1
|
+
const r='.gator-popover{position:relative;box-shadow:var(--shadow-popover);border-radius:var(--ngc-popover-border-radius, var(--border-radius-large));background-color:var(--ngc-popover-background-color, var(--color-surface-primary));pointer-events:auto}.gator-popover-small{width:var(--ngc-popover-width, 240px)}.gator-popover-medium{width:var(--ngc-popover-width, 320px)}.gator-popover-large{width:var(--ngc-popover-width, 400px)}.gator-popover-body{display:flex;flex-direction:column;padding:var(--ngc-popover-body-padding, .75rem 1.75rem .75rem .75rem)}.gator-popover-body-container{display:flex;margin-top:.75rem}.gator-popover-body-container ngc-icon{margin-right:.5rem}.gator-popover-body-content{display:flex;flex-direction:column;flex-grow:1}.gator-popover-body-title{font-family:var(--ngc-font-family-body, var(--font-family-body, "Open Sans")),sans-serif;font-size:var(--font-size-subtitle-1);font-weight:var(--font-weight-bold);line-height:var(--line-height-subtitle-1);margin-bottom:var(--spacing-5)}.gator-popover-divider{height:1px;background-color:var(--color-border-tertiary)}.gator-popover-footer{display:flex;justify-content:flex-end;align-items:center;padding:var(--ngc-popover-footer-padding, var(--spacing-5) var(--spacing-8))}.gator-popover-footer ::slotted(*){width:100%}.gator-popover-footer ngc-help-text{margin-right:auto}#gator-popover-close{position:absolute;top:.25rem;right:.25rem;--ngc-icon-button-hover-box-shadow: none}.gator-popover-nubbin_bottom-start:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;left:1.75rem;bottom:-.5rem;margin-left:-.5rem;border-radius:100% 0 3px}.gator-popover-nubbin_bottom-center:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;left:50%;bottom:-.5rem;margin-left:-.5rem;border-radius:100% 0 3px}.gator-popover-nubbin_bottom-end:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;right:1.75rem;bottom:-.5rem;margin-left:-.5rem;border-radius:100% 0 3px}.gator-popover-nubbin_top-start:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;left:1.75rem;top:-.5rem;margin-left:-.5rem;border-radius:3px 0 100%}.gator-popover-nubbin_top-center:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;left:50%;top:-.5rem;margin-left:-.5rem;border-radius:3px 0 100%}.gator-popover-nubbin_top-end:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;right:1.75rem;top:-.5rem;margin-left:-.5rem;border-radius:3px 0 100%}.gator-popover-nubbin_left-start:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;left:-.5rem;top:1.4rem;margin-top:-.5rem;border-radius:0 100% 0 3px}.gator-popover-nubbin_left-center:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;left:-.5rem;top:50%;margin-top:-.5rem;border-radius:0 100% 0 3px}.gator-popover-nubbin_left-end:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;left:-.5rem;bottom:1rem;margin-top:-.5rem;border-radius:0 100% 0 3px}.gator-popover-nubbin_right-start:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;right:-.5rem;top:1.4rem;margin-top:-.5rem;border-radius:0 3px 0 100%}.gator-popover-nubbin_right-center:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;right:-.5rem;top:50%;margin-top:-.5rem;border-radius:0 3px 0 100%}.gator-popover-nubbin_right-end:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;right:-.5rem;bottom:1rem;margin-top:-.5rem;border-radius:0 3px 0 100%}';export{r as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const r='.gator-table-filter-chips{display:flex;flex-wrap:wrap;gap:var(--spacing-8);padding:var(--spacing-8)
|
|
1
|
+
const r='.gator-table-filter-chips{display:flex;flex-wrap:wrap;gap:var(--spacing-8);padding:0 0 var(--spacing-8);align-items:center}.gator-table-filter-chips-clear-all{font-family:var(--font-family-body, "Open Sans"),sans-serif;font-size:var(--font-size-body-2);font-weight:var(--font-weight-regular, 400);line-height:var(--line-height-body-2);letter-spacing:var(--letter-spacing-default, 0);color:var(--color-text-brand, var(--color-text-primary));background:none;border:none;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:3px}.gator-table-filter-chips-clear-all:hover{color:var(--color-feedback-brand-secondary)}.gator-table-filter-chips-clear-all:focus{outline:none}.gator-table-filter-chips-clear-all:focus-visible{outline:2px solid var(--color-border-focus, currentColor);outline-offset:2px}.gator-table-scroll{width:100%;overflow-x:auto}.gator-table{font-family:var(--font-family-body, "Open Sans"),sans-serif;border-spacing:0;width:100%;border-radius:var(--ngc-table-border-radius, var(--border-radius-medium));background-color:var(--ngc-table-row-background-color, var(--color-surface-primary))}.gator-table thead>th,.gator-table thead>tr{height:3rem;min-height:3rem}.gator-table thead>th :first-child,.gator-table thead>tr :first-child{border-top-left-radius:var(--ngc-table-border-radius, var(--border-radius-medium))}.gator-table thead>th :last-child,.gator-table thead>tr :last-child{border-top-right-radius:var(--ngc-table-border-radius, var(--border-radius-medium))}.gator-table tbody>tr,.gator-table tfoot>tr{min-height:3rem;height:3rem}.gator-table th{background:var(--ngc-table-header-background-color, var(--color-surface-brand));text-align:left;padding:var(--spacing-5) var(--spacing-8);border-bottom:1px solid var(--ngc-table-header-border-bottom-color, var(--color-border-tertiary))}.gator-table th:hover{background:var(--ngc-table-header-background-color-hover, var(--color-surface-brand-secondary))}.gator-table .gator-table-header-cell-interactive{cursor:default}.gator-table .gator-table-header-cell-inner{display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-5);width:100%;min-width:0}.gator-table .gator-table-header-sort-trigger{display:inline-flex;align-items:center;gap:8px;min-width:0;cursor:pointer;flex:1}.gator-table .gator-table-header-sort-trigger:focus{outline:none}.gator-table .gator-table-header-sort-trigger:focus-visible{outline:2px solid var(--color-border-focus, currentColor);outline-offset:2px;border-radius:0}.gator-table .gator-table-header-label{min-width:0}.gator-table .gator-table-sort-icon-wrap{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;pointer-events:none}.gator-table .gator-table-sort-icon{flex-shrink:0}.gator-table th:not(.gator-table-header-cell-sort-active) .gator-table-header-sort-trigger .gator-table-sort-icon-wrap .gator-table-sort-icon{opacity:0}.gator-table th:hover .gator-table-header-sort-trigger .gator-table-sort-icon-wrap .gator-table-sort-icon,.gator-table th.gator-table-header-cell-sort-active .gator-table-header-sort-trigger .gator-table-sort-icon-wrap .gator-table-sort-icon{opacity:1}.gator-table .gator-table-header-filter-trigger-wrap{flex-shrink:0;display:inline-flex;align-items:center;width:2rem;margin-left:var(--spacing-5);opacity:0;pointer-events:none;transition:opacity .15s ease}.gator-table .gator-table-header-filter-trigger-wrap.gator-table-header-filter-trigger-visible{opacity:1;pointer-events:auto}.gator-table .gator-table-header-filter-icon-active{color:var(--color-text-brand, currentColor)}.gator-table .gator-table-header-filter-trigger-wrap,.gator-table .gator-table-header-filter-trigger-wrap ngc-popover{font-weight:var(--font-weight-regular)}.gator-table .gator-table-header-filter-trigger-wrap ngc-popover{--ngc-popover-width: max-content}.gator-table .gator-table-filter-popover-content{min-width:0;display:flex;flex-direction:column;gap:var(--spacing-5)}.gator-table .gator-table-filter-popover-search{--ngc-input-search-margin-bottom: 0}.gator-table .gator-table-filter-popover-footer{display:flex;gap:var(--spacing-5);justify-content:flex-start;width:100%}.gator-table [dir=rtl] th.mat-header-cell{text-align:right}.gator-table td{padding:var(--spacing-5) var(--spacing-8);border-bottom:1px solid var(--ngc-table-row-border-bottom-color, var(--color-border-tertiary))}.gator-table tr:has(td:hover){background:var(--ngc-table-row-background-color-hover, var(--color-surface-secondary))}.gator-table tbody:last-child>tr:last-child th:first-child,.gator-table tbody:last-child>tr:last-child td:first-child{border-bottom-left-radius:var(--ngc-table-border-radius, var(--border-radius-medium))}.gator-table tbody:last-child>tr:last-child td:last-child{border-bottom-right-radius:var(--ngc-table-border-radius, var(--border-radius-medium))}.gator-table th:first-of-type,.gator-table td:first-of-type{padding-left:24px}.gator-table [dir=rtl] th:first-of-type,.gator-table [dir=rtl] td:first-of-type{padding-left:0;padding-right:24px}.gator-table th:last-of-type,.gator-table td:last-of-type{padding-right:24px}.gator-table [dir=rtl] th:last-of-type,.gator-table [dir=rtl] td:last-of-type{padding-right:0;padding-left:24px}.gator-table ngc-checkbox{--ngc-input-margin-bottom: 0}.gator-table ngc-input-dropdown,.gator-table ngc-input-text{--ngc-input-margin-bottom: 0}.gator-table .gator-table-cell-left{text-align:left}.gator-table .gator-table-cell-center{text-align:center}.gator-table .gator-table-cell-right{text-align:right}.gator-table .gator-table-cell-avatar{display:flex;align-items:center;gap:var(--spacing-4, 8px)}.gator-table .gator-table-cell-avatar .gator-table-cell-avatar-label{flex:1}.gator-table-empty-state-card{display:block;width:100%;border-radius:var(--border-radius-x-large, 16px);background:var(--color-surface-secondary, #F7F7F7);--ngc-card-border-radius: var(--border-radius-x-large, 16px);--ngc-card-background-color: var(--color-surface-secondary, #F7F7F7);--ngc-card-width: 100%;--ngc-card-max-width: none}.gator-table-empty-state{display:flex;justify-content:center;align-items:center;width:100%;padding:var(--spacing-10) 0}.gator-table-checkbox-column{width:1%}.gator-table-row-selected{background-color:var(--ngc-table-row-background-color-selected, var(--color-surface-brand))}.gator-table-elevated{box-shadow:var(--shadow-1-card)}.gator-table-category-header{background-color:var(--ngc-table-header-background-color, var(--color-surface-brand))}.gator-table-category-header:hover{background-color:var(--ngc-table-header-hover-background-color, var(--color-surface-brand-secondary))!important}.gator-table-category-header th{border-bottom:none!important;font-weight:var(--font-weight-bold);background-color:var(--ngc-table-header-background-color, var(--color-surface-brand));color:var(--color-text-primary);line-height:var(--line-height-subtitle-2);letter-spacing:var(--letter-spacing-default)}.gator-table-total-row{background-color:var(--ngc-table-total-row-background-color, var(--color-surface-secondary))!important;font-weight:var(--font-weight-bold)}.gator-table-total-row:hover{background-color:var(--ngc-table-total-row-hover-background-color, var(--color-surface-tertiary))!important}.gator-table-total-row td,.gator-table-total-row th{background-color:var(--ngc-table-total-row-background-color, var(--color-surface-secondary))!important;border-top:1px solid var(--ngc-table-total-row-border-bottom-color, var(--color-border-tertiary));border-bottom:none!important}.gator-table-total-row th:hover{background-color:var(--ngc-table-total-row-background-color, var(--color-surface-tertiary))!important}.gator-table-total-label{font-weight:var(--font-weight-bold);color:var(--color-text-primary)}';export{r as default};
|
|
@@ -16,6 +16,7 @@ export declare class NgcButton extends NjcButton {
|
|
|
16
16
|
startIcon: string | undefined;
|
|
17
17
|
endIcon: string | undefined;
|
|
18
18
|
type: 'submit' | 'button' | 'reset';
|
|
19
|
+
truncate: boolean;
|
|
19
20
|
render(): import('lit').TemplateResult<1>;
|
|
20
21
|
/**
|
|
21
22
|
* Link mode is active only when an `href` is provided and the button is neither disabled nor
|
|
@@ -32,6 +33,7 @@ export declare class NgcButton extends NjcButton {
|
|
|
32
33
|
get variantClass(): string | null;
|
|
33
34
|
get sizeClass(): string | null;
|
|
34
35
|
get loadingClass(): "gator-button_loading" | null;
|
|
36
|
+
get truncateClass(): "gator-button_truncate" | null;
|
|
35
37
|
get skeletonMarkup(): import('lit').TemplateResult<1>;
|
|
36
38
|
get loadingMarkup(): import('lit').TemplateResult<1>;
|
|
37
39
|
handleClick(event: Event): void;
|
|
@@ -13,9 +13,11 @@ export declare abstract class TableCellBase extends LitElement {
|
|
|
13
13
|
rowIndex: number;
|
|
14
14
|
categoryHeaderId: string;
|
|
15
15
|
protected getCellValue(): unknown;
|
|
16
|
+
/** The plain-text value shown for this cell. Overridden by cell types whose rendered content differs from the raw value (e.g. formatted text, cellRenderer output). */
|
|
17
|
+
protected getDisplayValue(): string;
|
|
16
18
|
protected emitCellChange(value: unknown): void;
|
|
17
19
|
protected emitCellClick(value?: unknown): void;
|
|
18
|
-
/** Wraps content with alignment and optional tooltip. */
|
|
20
|
+
/** Wraps content with alignment and optional tooltip. Truncated cells fall back to the displayed value as tooltip text so clipped content stays reachable. */
|
|
19
21
|
protected renderWithTooltip(content: TemplateResult): TemplateResult;
|
|
20
22
|
abstract renderCellContent(): TemplateResult;
|
|
21
23
|
render(): TemplateResult;
|
|
@@ -6,6 +6,7 @@ export interface RowData {
|
|
|
6
6
|
export interface TableCellConfigBase {
|
|
7
7
|
align?: 'left' | 'center' | 'right';
|
|
8
8
|
tooltipText?: string | ((row: RowData) => string);
|
|
9
|
+
truncate?: boolean;
|
|
9
10
|
}
|
|
10
11
|
export type TableTextFormat = 'text' | 'number' | 'currency' | 'date' | 'time' | 'datetime';
|
|
11
12
|
export interface TableTextCellConfig extends TableCellConfigBase {
|
|
@@ -15,6 +15,7 @@ interface BaseColumnDefinition {
|
|
|
15
15
|
filterOptions?: TableColumnFilterOption[];
|
|
16
16
|
filterMultiselect?: boolean;
|
|
17
17
|
width?: `${number}px` | `${number}%`;
|
|
18
|
+
minWidth?: `${number}px` | `${number}%`;
|
|
18
19
|
}
|
|
19
20
|
export interface TextColumnDefinition extends BaseColumnDefinition {
|
|
20
21
|
cellType?: 'text';
|
|
@@ -3,6 +3,7 @@ export declare class NgcTooltip extends NjcTooltip {
|
|
|
3
3
|
private static portalStylesInjected;
|
|
4
4
|
private _portaledPopup;
|
|
5
5
|
private _popoverHost;
|
|
6
|
+
private _resolvedPlacement;
|
|
6
7
|
static shadowRootOptions: {
|
|
7
8
|
delegatesFocus: boolean;
|
|
8
9
|
mode: ShadowRootMode;
|
|
@@ -13,6 +14,7 @@ export declare class NgcTooltip extends NjcTooltip {
|
|
|
13
14
|
};
|
|
14
15
|
static styles: import('lit').CSSResult[];
|
|
15
16
|
render(): import('lit').TemplateResult<1>;
|
|
17
|
+
private get _effectivePlacement();
|
|
16
18
|
get xPositionOffset(): number;
|
|
17
19
|
get yPositionOffset(): number;
|
|
18
20
|
get nubbinPositionClass(): "" | "gator-tooltip-nubbin_bottom" | "gator-tooltip-nubbin_left" | "gator-tooltip-nubbin_top" | "gator-tooltip-nubbin_right";
|
|
@@ -8,6 +8,8 @@ export declare class NjcTooltip extends TestableLitElement {
|
|
|
8
8
|
xOffset: number;
|
|
9
9
|
yOffset: number;
|
|
10
10
|
isLabel: boolean;
|
|
11
|
+
/** If true, hides the directional arrow (nubbin) pointing at the reference element. */
|
|
12
|
+
hideTippet: boolean;
|
|
11
13
|
_tooltipRef: Ref<HTMLElement>;
|
|
12
14
|
_cleanup: (() => void) | undefined;
|
|
13
15
|
private _forceOpen;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ncino/web-components",
|
|
3
3
|
"author": "nCino",
|
|
4
|
-
"version": "15.
|
|
4
|
+
"version": "15.4.0",
|
|
5
5
|
"license": "(c) Copyright 2023 nCino, Inc., all rights reserved",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -100,10 +100,10 @@
|
|
|
100
100
|
"vite-plugin-static-copy": "^3.3.0",
|
|
101
101
|
"vitest": "^4.1.10",
|
|
102
102
|
"yaml-eslint-parser": "^2.1.0",
|
|
103
|
-
"@ncino/styles": "15.
|
|
103
|
+
"@ncino/styles": "15.4.0"
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
106
|
-
"@ncino/styles": "15.
|
|
106
|
+
"@ncino/styles": "15.4.0"
|
|
107
107
|
},
|
|
108
108
|
"bugs": {
|
|
109
109
|
"url": "https://github.com/ncino/force-sdk-web-components/issues"
|