stp-ui-kit 0.0.11 → 0.0.12

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/index.d.ts CHANGED
@@ -1,4 +1,2 @@
1
1
  import { Banner, Button, Collapse, CourseCollapse, Empty, FormItem, IconButton, Message, message, Modal, ModalAPI, NavigationItem, PageHeader, ProgressLine, SectionHeader, Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow, Tooltip, TopBar, Typography } from './components';
2
- import { CellType } from './components/Table/Table';
3
2
  export { Banner, Button, Collapse, CourseCollapse, Empty, FormItem, IconButton, Modal, Tooltip, NavigationItem, PageHeader, ProgressLine, SectionHeader, TopBar, Typography, message, Message, ModalAPI, Table, TableBody, TableHead, TableHeader, TableCaption, TableCell, TableRow, };
4
- export type { CellType };
@@ -0,0 +1,5 @@
1
+ interface Resources {
2
+ common: {};
3
+ }
4
+
5
+ export default Resources;
@@ -0,0 +1,11 @@
1
+ import { default as Resources } from '../@types/resources';
2
+ import { AppI18NextNamespace } from './types';
3
+
4
+
5
+ declare module "i18next" {
6
+ interface CustomTypeOptions {
7
+ defaultNS: "all";
8
+ ns: AppI18NextNamespace;
9
+ resources: Resources;
10
+ }
11
+ }
@@ -307,3 +307,4 @@ You might need to use a local HTTP server (instead of file://): https://react.de
307
307
 
308
308
  let root = createRoot(domContainer);
309
309
  root.render(<App />);`),t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(h=t.unstable_transitionCallbacks)),t=Sy(e,1,!1,null,null,a,i,o,s,d,h,null),e[xi]=t.current,ly(e),new wd(t)},Dp.hydrateRoot=function(e,t,a){if(!je(e))throw Error("Target container is not a DOM element.");U0(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var i=!1,o="",s=zm,d=i0,h=Vr,g=null,v=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(s=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(h=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(g=a.unstable_transitionCallbacks),a.formState!==void 0&&(v=a.formState)),t=Sy(e,1,!0,t,a??null,i,o,s,d,h,g,v),t.context=Ty(null),a=t.current,i=na(a),i=jl(i),o=En(i),o.callback=null,ln(a,o,i),a=i,t.current.lanes=a,Lc(t,a),Va(t),e[xi]=t.current,ly(e),new bf(t)},Dp.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Dp}function YS(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(YS)}catch(y){console.error(y)}}}process.env.NODE_ENV==="production"?(YS(),s1.exports=j3()):s1.exports=Y3();var GS=s1.exports;const G3="_messageContainer_13r2b_29",V3="_message_13r2b_29",X3="_warning_13r2b_54",L3="_error_13r2b_59",Q3="_critical_13r2b_64",Z3="_content_13r2b_72",tr={"shadow-0":"_shadow-0_13r2b_1","shadow-100":"_shadow-100_13r2b_5","shadow-200":"_shadow-200_13r2b_9","shadow-300":"_shadow-300_13r2b_13","shadow-400":"_shadow-400_13r2b_17","shadow-500":"_shadow-500_13r2b_21","shadow-600":"_shadow-600_13r2b_25",messageContainer:G3,message:V3,default:"_default_13r2b_50",warning:X3,error:L3,critical:Q3,content:Z3};let _h=null;const VS=({id:y,type:D,text:O,onClose:b})=>(kt.useEffect(()=>{const $=setTimeout(()=>b(y),3e3);return()=>clearTimeout($)},[y,b]),J.jsxs("div",{className:`${tr.message} ${tr[D]}`,children:[J.jsxs("div",{className:tr.content,children:[D=="error"&&J.jsx(HS,{className:tr.critical}),D=="warning"&&J.jsx(wS,{className:tr.warning}),O]}),J.jsx(m1,{className:tr.closeBtn,onClick:()=>b(y),children:J.jsx(NS,{})})]})),k3=()=>{const[y,D]=kt.useState([]);kt.useEffect(()=>(_h=D,()=>{_h=null}),[]);const O=b=>{D($=>$.filter(Q=>Q.id!==b))};return J.jsx("div",{className:tr.messageContainer,children:y.map(b=>J.jsx(VS,{...b,onClose:O},b.id))})},TS="message-root";function $3(){let y=document.getElementById(TS);return y||(y=document.createElement("div"),y.id=TS,document.body.appendChild(y)),y}const J3=GS.createRoot($3());J3.render(J.jsx(k3,{}));const K3={_id:0,show(y,D="default"){if(_h)return this._id++,_h(O=>[...O,{id:this._id,type:D,text:y}]),this._id},default(y){return this.show(y,"default")},warning(y){return this.show(y,"warning")},error(y){return this.show(y,"error")},close(y){_h&&_h(D=>D.filter(O=>O.id!==y))}},W3="_modalLayout_1s92h_29",F3="_modalContainer_1s92h_40",I3="_slideUp_1s92h_1",P3="_header_1s92h_64",eA="_title_1s92h_73",tA="_close_1s92h_78",lA="_content_1s92h_88",aA="_footer_1s92h_96",nA="_primaryButton_1s92h_126",uA="_critical_1s92h_139",iA="_warning_1s92h_143",iu={"shadow-0":"_shadow-0_1s92h_1","shadow-100":"_shadow-100_1s92h_5","shadow-200":"_shadow-200_1s92h_9","shadow-300":"_shadow-300_1s92h_13","shadow-400":"_shadow-400_1s92h_17","shadow-500":"_shadow-500_1s92h_21","shadow-600":"_shadow-600_1s92h_25",modalLayout:W3,modalContainer:F3,slideUp:I3,header:P3,title:eA,close:tA,content:lA,footer:aA,"tone-critical":"_tone-critical_1s92h_122",primaryButton:nA,"tone-warning":"_tone-warning_1s92h_130",critical:uA,warning:iA},cA=({open:y,onClose:D,title:O,primaryAction:b,secondaryActions:$=[],tone:Q="default",children:K})=>{if(!y)return null;const ne=iu[`tone-${Q}`]||"";return J.jsx("div",{className:iu.modalLayout,onClick:D,children:J.jsxs("div",{className:`${iu.modalContainer} ${ne}`,onClick:G=>G.stopPropagation(),role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",children:[J.jsxs("div",{className:iu.header,children:[J.jsxs("div",{className:iu.title,children:[Q=="critical"&&J.jsx(HS,{className:iu.critical}),Q=="warning"&&J.jsx(wS,{className:iu.warning}),J.jsx(da,{variant:"heading-sm",children:O})]}),J.jsx(m1,{size:"small",state:"default",onClick:D,"aria-label":"Close modal",children:J.jsx(NS,{})})]}),J.jsx("div",{className:iu.content,children:K}),J.jsxs("div",{className:iu.footer,children:[$.map(({content:G,onAction:ae},ce)=>J.jsx(_p,{className:iu.secondaryButton,onClick:ae,children:G},ce)),b&&J.jsx(_p,{type:"button",state:"primary",className:iu.primaryButton,onClick:b.onAction,children:b.content})]})]})})},oA=({children:y})=>J.jsx("section",{className:iu.section,children:y}),Og=cA;Og.Section=oA;function l1(y){const D=document.createElement("div");document.body.appendChild(D);const O=GS.createRoot(D),b=()=>{O.unmount(),D.remove()},$=()=>{var K;(K=y.onOk)==null||K.call(y),b()},Q=()=>{var K;(K=y.onCancel)==null||K.call(y),b()};O.render(J.jsx(Og,{open:!0,title:y.title,tone:y.tone,onClose:Q,primaryAction:{content:y.okText||"OK",onAction:$},secondaryActions:y.cancelText?[{content:y.cancelText,onAction:Q}]:[],children:J.jsx(Og.Section,{children:y.content})}))}const sA={error:y=>l1({...y,tone:"critical"}),warning:y=>l1({...y,tone:"warning"}),info:y=>l1({...y,tone:"default"})},fA="_pageHeader_oy6lh_29",rA="_mg_oy6lh_38",dA="_lg_oy6lh_39",a1={pageHeader:fA,mg:rA,lg:dA},hA=({children:y})=>J.jsxs("header",{className:a1.pageHeader,children:[J.jsx(da,{variant:"heading-xl",className:a1.lg,children:y}),J.jsx(da,{variant:"heading-md",className:a1.mg,children:y})]}),mA="_container_1qf76_29",yA="_line_1qf76_35",pA="_progress_1qf76_41",n1={container:mA,line:yA,progress:pA},gA=({percent:y})=>J.jsx("div",{className:n1.container,children:J.jsx("div",{className:n1.line,children:J.jsx("div",{className:n1.progress,style:{width:`${y}%`}})})}),vA="_container_1sj7i_29",bA="_notMobile_1sj7i_38",SA="_mobile_1sj7i_47",u1={container:vA,notMobile:bA,mobile:SA},TA=({title:y,extra:D})=>J.jsxs("div",{className:u1.container,children:[J.jsx(da,{variant:"heading-md",className:u1.notMobile,children:y}),J.jsx(da,{variant:"heading-sm",className:u1.mobile,children:y}),D]}),AA="_td_19qf2_29",EA="_bottomBorder_19qf2_34",zA="_label_19qf2_38",xA="_input_19qf2_42",MA="_button_19qf2_49",DA="_checkbox_19qf2_57",RA="_empty_19qf2_61",_A="_th_19qf2_73",Oh={"shadow-0":"_shadow-0_19qf2_1","shadow-100":"_shadow-100_19qf2_5","shadow-200":"_shadow-200_19qf2_9","shadow-300":"_shadow-300_19qf2_13","shadow-400":"_shadow-400_19qf2_17","shadow-500":"_shadow-500_19qf2_21","shadow-600":"_shadow-600_19qf2_25",td:AA,bottomBorder:EA,label:zA,input:xA,button:MA,"icon-button":"_icon-button_19qf2_53",checkbox:DA,empty:RA,"icon-label":"_icon-label_19qf2_65",th:_A};function XS(y){var D,O,b="";if(typeof y=="string"||typeof y=="number")b+=y;else if(typeof y=="object")if(Array.isArray(y)){var $=y.length;for(D=0;D<$;D++)y[D]&&(O=XS(y[D]))&&(b&&(b+=" "),b+=O)}else for(O in y)y[O]&&(b&&(b+=" "),b+=O);return b}function OA(){for(var y,D,O=0,b="",$=arguments.length;O<$;O++)(y=arguments[O])&&(D=XS(y))&&(b&&(b+=" "),b+=D);return b}const y1="-",UA=y=>{const D=HA(y),{conflictingClassGroups:O,conflictingClassGroupModifiers:b}=y;return{getClassGroupId:K=>{const ne=K.split(y1);return ne[0]===""&&ne.length!==1&&ne.shift(),LS(ne,D)||CA(K)},getConflictingClassGroupIds:(K,ne)=>{const G=O[K]||[];return ne&&b[K]?[...G,...b[K]]:G}}},LS=(y,D)=>{var K;if(y.length===0)return D.classGroupId;const O=y[0],b=D.nextPart.get(O),$=b?LS(y.slice(1),b):void 0;if($)return $;if(D.validators.length===0)return;const Q=y.join(y1);return(K=D.validators.find(({validator:ne})=>ne(Q)))==null?void 0:K.classGroupId},AS=/^\[(.+)\]$/,CA=y=>{if(AS.test(y)){const D=AS.exec(y)[1],O=D==null?void 0:D.substring(0,D.indexOf(":"));if(O)return"arbitrary.."+O}},HA=y=>{const{theme:D,classGroups:O}=y,b={nextPart:new Map,validators:[]};for(const $ in O)f1(O[$],b,$,D);return b},f1=(y,D,O,b)=>{y.forEach($=>{if(typeof $=="string"){const Q=$===""?D:ES(D,$);Q.classGroupId=O;return}if(typeof $=="function"){if(wA($)){f1($(b),D,O,b);return}D.validators.push({validator:$,classGroupId:O});return}Object.entries($).forEach(([Q,K])=>{f1(K,ES(D,Q),O,b)})})},ES=(y,D)=>{let O=y;return D.split(y1).forEach(b=>{O.nextPart.has(b)||O.nextPart.set(b,{nextPart:new Map,validators:[]}),O=O.nextPart.get(b)}),O},wA=y=>y.isThemeGetter,NA=y=>{if(y<1)return{get:()=>{},set:()=>{}};let D=0,O=new Map,b=new Map;const $=(Q,K)=>{O.set(Q,K),D++,D>y&&(D=0,b=O,O=new Map)};return{get(Q){let K=O.get(Q);if(K!==void 0)return K;if((K=b.get(Q))!==void 0)return $(Q,K),K},set(Q,K){O.has(Q)?O.set(Q,K):$(Q,K)}}},r1="!",d1=":",BA=d1.length,qA=y=>{const{prefix:D,experimentalParseClassName:O}=y;let b=$=>{const Q=[];let K=0,ne=0,G=0,ae;for(let De=0;De<$.length;De++){let at=$[De];if(K===0&&ne===0){if(at===d1){Q.push($.slice(G,De)),G=De+BA;continue}if(at==="/"){ae=De;continue}}at==="["?K++:at==="]"?K--:at==="("?ne++:at===")"&&ne--}const ce=Q.length===0?$:$.substring(G),ze=jA(ce),Ae=ze!==ce,Oe=ae&&ae>G?ae-G:void 0;return{modifiers:Q,hasImportantModifier:Ae,baseClassName:ze,maybePostfixModifierPosition:Oe}};if(D){const $=D+d1,Q=b;b=K=>K.startsWith($)?Q(K.substring($.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:K,maybePostfixModifierPosition:void 0}}if(O){const $=b;b=Q=>O({className:Q,parseClassName:$})}return b},jA=y=>y.endsWith(r1)?y.substring(0,y.length-1):y.startsWith(r1)?y.substring(1):y,YA=y=>{const D=Object.fromEntries(y.orderSensitiveModifiers.map(b=>[b,!0]));return b=>{if(b.length<=1)return b;const $=[];let Q=[];return b.forEach(K=>{K[0]==="["||D[K]?($.push(...Q.sort(),K),Q=[]):Q.push(K)}),$.push(...Q.sort()),$}},GA=y=>({cache:NA(y.cacheSize),parseClassName:qA(y),sortModifiers:YA(y),...UA(y)}),VA=/\s+/,XA=(y,D)=>{const{parseClassName:O,getClassGroupId:b,getConflictingClassGroupIds:$,sortModifiers:Q}=D,K=[],ne=y.trim().split(VA);let G="";for(let ae=ne.length-1;ae>=0;ae-=1){const ce=ne[ae],{isExternal:ze,modifiers:Ae,hasImportantModifier:Oe,baseClassName:De,maybePostfixModifierPosition:at}=O(ce);if(ze){G=ce+(G.length>0?" "+G:G);continue}let je=!!at,Ye=b(je?De.substring(0,at):De);if(!Ye){if(!je){G=ce+(G.length>0?" "+G:G);continue}if(Ye=b(De),!Ye){G=ce+(G.length>0?" "+G:G);continue}je=!1}const Ft=Q(Ae).join(":"),it=Oe?Ft+r1:Ft,xt=it+Ye;if(K.includes(xt))continue;K.push(xt);const Tt=$(Ye,je);for(let Je=0;Je<Tt.length;++Je){const Ge=Tt[Je];K.push(it+Ge)}G=ce+(G.length>0?" "+G:G)}return G};function LA(){let y=0,D,O,b="";for(;y<arguments.length;)(D=arguments[y++])&&(O=QS(D))&&(b&&(b+=" "),b+=O);return b}const QS=y=>{if(typeof y=="string")return y;let D,O="";for(let b=0;b<y.length;b++)y[b]&&(D=QS(y[b]))&&(O&&(O+=" "),O+=D);return O};function QA(y,...D){let O,b,$,Q=K;function K(G){const ae=D.reduce((ce,ze)=>ze(ce),y());return O=GA(ae),b=O.cache.get,$=O.cache.set,Q=ne,ne(G)}function ne(G){const ae=b(G);if(ae)return ae;const ce=XA(G,O);return $(G,ce),ce}return function(){return Q(LA.apply(null,arguments))}}const Rl=y=>{const D=O=>O[y]||[];return D.isThemeGetter=!0,D},ZS=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,kS=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ZA=/^\d+\/\d+$/,kA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$A=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,JA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,KA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,WA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Dh=y=>ZA.test(y),Ie=y=>!!y&&!Number.isNaN(Number(y)),os=y=>!!y&&Number.isInteger(Number(y)),i1=y=>y.endsWith("%")&&Ie(y.slice(0,-1)),Xc=y=>kA.test(y),FA=()=>!0,IA=y=>$A.test(y)&&!JA.test(y),$S=()=>!1,PA=y=>KA.test(y),eE=y=>WA.test(y),tE=y=>!me(y)&&!ye(y),lE=y=>Uh(y,WS,$S),me=y=>ZS.test(y),er=y=>Uh(y,FS,IA),c1=y=>Uh(y,cE,Ie),zS=y=>Uh(y,JS,$S),aE=y=>Uh(y,KS,eE),Rg=y=>Uh(y,IS,PA),ye=y=>kS.test(y),Rp=y=>Ch(y,FS),nE=y=>Ch(y,oE),xS=y=>Ch(y,JS),uE=y=>Ch(y,WS),iE=y=>Ch(y,KS),_g=y=>Ch(y,IS,!0),Uh=(y,D,O)=>{const b=ZS.exec(y);return b?b[1]?D(b[1]):O(b[2]):!1},Ch=(y,D,O=!1)=>{const b=kS.exec(y);return b?b[1]?D(b[1]):O:!1},JS=y=>y==="position"||y==="percentage",KS=y=>y==="image"||y==="url",WS=y=>y==="length"||y==="size"||y==="bg-size",FS=y=>y==="length",cE=y=>y==="number",oE=y=>y==="family-name",IS=y=>y==="shadow",sE=()=>{const y=Rl("color"),D=Rl("font"),O=Rl("text"),b=Rl("font-weight"),$=Rl("tracking"),Q=Rl("leading"),K=Rl("breakpoint"),ne=Rl("container"),G=Rl("spacing"),ae=Rl("radius"),ce=Rl("shadow"),ze=Rl("inset-shadow"),Ae=Rl("text-shadow"),Oe=Rl("drop-shadow"),De=Rl("blur"),at=Rl("perspective"),je=Rl("aspect"),Ye=Rl("ease"),Ft=Rl("animate"),it=()=>["auto","avoid","all","avoid-page","page","left","right","column"],xt=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Tt=()=>[...xt(),ye,me],Je=()=>["auto","hidden","clip","visible","scroll"],Ge=()=>["auto","contain","none"],fe=()=>[ye,me,G],ue=()=>[Dh,"full","auto",...fe()],Ue=()=>[os,"none","subgrid",ye,me],se=()=>["auto",{span:["full",os,ye,me]},os,ye,me],Ee=()=>[os,"auto",ye,me],Et=()=>["auto","min","max","fr",ye,me],pe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],P=()=>["start","end","center","stretch","center-safe","end-safe"],S=()=>["auto",...fe()],_=()=>[Dh,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...fe()],x=()=>[y,ye,me],F=()=>[...xt(),xS,zS,{position:[ye,me]}],I=()=>["no-repeat",{repeat:["","x","y","space","round"]}],be=()=>["auto","cover","contain",uE,lE,{size:[ye,me]}],te=()=>[i1,Rp,er],ie=()=>["","none","full",ae,ye,me],ge=()=>["",Ie,Rp,er],nt=()=>["solid","dashed","dotted","double"],Ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],rt=()=>[Ie,i1,xS,zS],Kl=()=>["","none",De,ye,me],wt=()=>["none",Ie,ye,me],gt=()=>["none",Ie,ye,me],il=()=>[Ie,ye,me],ql=()=>[Dh,"full",...fe()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Xc],breakpoint:[Xc],color:[FA],container:[Xc],"drop-shadow":[Xc],ease:["in","out","in-out"],font:[tE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Xc],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Xc],shadow:[Xc],spacing:["px",Ie],text:[Xc],"text-shadow":[Xc],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Dh,me,ye,je]}],container:["container"],columns:[{columns:[Ie,me,ye,ne]}],"break-after":[{"break-after":it()}],"break-before":[{"break-before":it()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:Tt()}],overflow:[{overflow:Je()}],"overflow-x":[{"overflow-x":Je()}],"overflow-y":[{"overflow-y":Je()}],overscroll:[{overscroll:Ge()}],"overscroll-x":[{"overscroll-x":Ge()}],"overscroll-y":[{"overscroll-y":Ge()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ue()}],"inset-x":[{"inset-x":ue()}],"inset-y":[{"inset-y":ue()}],start:[{start:ue()}],end:[{end:ue()}],top:[{top:ue()}],right:[{right:ue()}],bottom:[{bottom:ue()}],left:[{left:ue()}],visibility:["visible","invisible","collapse"],z:[{z:[os,"auto",ye,me]}],basis:[{basis:[Dh,"full","auto",ne,...fe()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ie,Dh,"auto","initial","none",me]}],grow:[{grow:["",Ie,ye,me]}],shrink:[{shrink:["",Ie,ye,me]}],order:[{order:[os,"first","last","none",ye,me]}],"grid-cols":[{"grid-cols":Ue()}],"col-start-end":[{col:se()}],"col-start":[{"col-start":Ee()}],"col-end":[{"col-end":Ee()}],"grid-rows":[{"grid-rows":Ue()}],"row-start-end":[{row:se()}],"row-start":[{"row-start":Ee()}],"row-end":[{"row-end":Ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Et()}],"auto-rows":[{"auto-rows":Et()}],gap:[{gap:fe()}],"gap-x":[{"gap-x":fe()}],"gap-y":[{"gap-y":fe()}],"justify-content":[{justify:[...pe(),"normal"]}],"justify-items":[{"justify-items":[...P(),"normal"]}],"justify-self":[{"justify-self":["auto",...P()]}],"align-content":[{content:["normal",...pe()]}],"align-items":[{items:[...P(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...P(),{baseline:["","last"]}]}],"place-content":[{"place-content":pe()}],"place-items":[{"place-items":[...P(),"baseline"]}],"place-self":[{"place-self":["auto",...P()]}],p:[{p:fe()}],px:[{px:fe()}],py:[{py:fe()}],ps:[{ps:fe()}],pe:[{pe:fe()}],pt:[{pt:fe()}],pr:[{pr:fe()}],pb:[{pb:fe()}],pl:[{pl:fe()}],m:[{m:S()}],mx:[{mx:S()}],my:[{my:S()}],ms:[{ms:S()}],me:[{me:S()}],mt:[{mt:S()}],mr:[{mr:S()}],mb:[{mb:S()}],ml:[{ml:S()}],"space-x":[{"space-x":fe()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":fe()}],"space-y-reverse":["space-y-reverse"],size:[{size:_()}],w:[{w:[ne,"screen",..._()]}],"min-w":[{"min-w":[ne,"screen","none",..._()]}],"max-w":[{"max-w":[ne,"screen","none","prose",{screen:[K]},..._()]}],h:[{h:["screen","lh",..._()]}],"min-h":[{"min-h":["screen","lh","none",..._()]}],"max-h":[{"max-h":["screen","lh",..._()]}],"font-size":[{text:["base",O,Rp,er]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[b,ye,c1]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",i1,me]}],"font-family":[{font:[nE,me,D]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[$,ye,me]}],"line-clamp":[{"line-clamp":[Ie,"none",ye,c1]}],leading:[{leading:[Q,...fe()]}],"list-image":[{"list-image":["none",ye,me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ye,me]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:x()}],"text-color":[{text:x()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...nt(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ie,"from-font","auto",ye,er]}],"text-decoration-color":[{decoration:x()}],"underline-offset":[{"underline-offset":[Ie,"auto",ye,me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:fe()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ye,me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ye,me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:F()}],"bg-repeat":[{bg:I()}],"bg-size":[{bg:be()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},os,ye,me],radial:["",ye,me],conic:[os,ye,me]},iE,aE]}],"bg-color":[{bg:x()}],"gradient-from-pos":[{from:te()}],"gradient-via-pos":[{via:te()}],"gradient-to-pos":[{to:te()}],"gradient-from":[{from:x()}],"gradient-via":[{via:x()}],"gradient-to":[{to:x()}],rounded:[{rounded:ie()}],"rounded-s":[{"rounded-s":ie()}],"rounded-e":[{"rounded-e":ie()}],"rounded-t":[{"rounded-t":ie()}],"rounded-r":[{"rounded-r":ie()}],"rounded-b":[{"rounded-b":ie()}],"rounded-l":[{"rounded-l":ie()}],"rounded-ss":[{"rounded-ss":ie()}],"rounded-se":[{"rounded-se":ie()}],"rounded-ee":[{"rounded-ee":ie()}],"rounded-es":[{"rounded-es":ie()}],"rounded-tl":[{"rounded-tl":ie()}],"rounded-tr":[{"rounded-tr":ie()}],"rounded-br":[{"rounded-br":ie()}],"rounded-bl":[{"rounded-bl":ie()}],"border-w":[{border:ge()}],"border-w-x":[{"border-x":ge()}],"border-w-y":[{"border-y":ge()}],"border-w-s":[{"border-s":ge()}],"border-w-e":[{"border-e":ge()}],"border-w-t":[{"border-t":ge()}],"border-w-r":[{"border-r":ge()}],"border-w-b":[{"border-b":ge()}],"border-w-l":[{"border-l":ge()}],"divide-x":[{"divide-x":ge()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ge()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...nt(),"hidden","none"]}],"divide-style":[{divide:[...nt(),"hidden","none"]}],"border-color":[{border:x()}],"border-color-x":[{"border-x":x()}],"border-color-y":[{"border-y":x()}],"border-color-s":[{"border-s":x()}],"border-color-e":[{"border-e":x()}],"border-color-t":[{"border-t":x()}],"border-color-r":[{"border-r":x()}],"border-color-b":[{"border-b":x()}],"border-color-l":[{"border-l":x()}],"divide-color":[{divide:x()}],"outline-style":[{outline:[...nt(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ie,ye,me]}],"outline-w":[{outline:["",Ie,Rp,er]}],"outline-color":[{outline:x()}],shadow:[{shadow:["","none",ce,_g,Rg]}],"shadow-color":[{shadow:x()}],"inset-shadow":[{"inset-shadow":["none",ze,_g,Rg]}],"inset-shadow-color":[{"inset-shadow":x()}],"ring-w":[{ring:ge()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:x()}],"ring-offset-w":[{"ring-offset":[Ie,er]}],"ring-offset-color":[{"ring-offset":x()}],"inset-ring-w":[{"inset-ring":ge()}],"inset-ring-color":[{"inset-ring":x()}],"text-shadow":[{"text-shadow":["none",Ae,_g,Rg]}],"text-shadow-color":[{"text-shadow":x()}],opacity:[{opacity:[Ie,ye,me]}],"mix-blend":[{"mix-blend":[...Ve(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ve()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ie]}],"mask-image-linear-from-pos":[{"mask-linear-from":rt()}],"mask-image-linear-to-pos":[{"mask-linear-to":rt()}],"mask-image-linear-from-color":[{"mask-linear-from":x()}],"mask-image-linear-to-color":[{"mask-linear-to":x()}],"mask-image-t-from-pos":[{"mask-t-from":rt()}],"mask-image-t-to-pos":[{"mask-t-to":rt()}],"mask-image-t-from-color":[{"mask-t-from":x()}],"mask-image-t-to-color":[{"mask-t-to":x()}],"mask-image-r-from-pos":[{"mask-r-from":rt()}],"mask-image-r-to-pos":[{"mask-r-to":rt()}],"mask-image-r-from-color":[{"mask-r-from":x()}],"mask-image-r-to-color":[{"mask-r-to":x()}],"mask-image-b-from-pos":[{"mask-b-from":rt()}],"mask-image-b-to-pos":[{"mask-b-to":rt()}],"mask-image-b-from-color":[{"mask-b-from":x()}],"mask-image-b-to-color":[{"mask-b-to":x()}],"mask-image-l-from-pos":[{"mask-l-from":rt()}],"mask-image-l-to-pos":[{"mask-l-to":rt()}],"mask-image-l-from-color":[{"mask-l-from":x()}],"mask-image-l-to-color":[{"mask-l-to":x()}],"mask-image-x-from-pos":[{"mask-x-from":rt()}],"mask-image-x-to-pos":[{"mask-x-to":rt()}],"mask-image-x-from-color":[{"mask-x-from":x()}],"mask-image-x-to-color":[{"mask-x-to":x()}],"mask-image-y-from-pos":[{"mask-y-from":rt()}],"mask-image-y-to-pos":[{"mask-y-to":rt()}],"mask-image-y-from-color":[{"mask-y-from":x()}],"mask-image-y-to-color":[{"mask-y-to":x()}],"mask-image-radial":[{"mask-radial":[ye,me]}],"mask-image-radial-from-pos":[{"mask-radial-from":rt()}],"mask-image-radial-to-pos":[{"mask-radial-to":rt()}],"mask-image-radial-from-color":[{"mask-radial-from":x()}],"mask-image-radial-to-color":[{"mask-radial-to":x()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":xt()}],"mask-image-conic-pos":[{"mask-conic":[Ie]}],"mask-image-conic-from-pos":[{"mask-conic-from":rt()}],"mask-image-conic-to-pos":[{"mask-conic-to":rt()}],"mask-image-conic-from-color":[{"mask-conic-from":x()}],"mask-image-conic-to-color":[{"mask-conic-to":x()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:F()}],"mask-repeat":[{mask:I()}],"mask-size":[{mask:be()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ye,me]}],filter:[{filter:["","none",ye,me]}],blur:[{blur:Kl()}],brightness:[{brightness:[Ie,ye,me]}],contrast:[{contrast:[Ie,ye,me]}],"drop-shadow":[{"drop-shadow":["","none",Oe,_g,Rg]}],"drop-shadow-color":[{"drop-shadow":x()}],grayscale:[{grayscale:["",Ie,ye,me]}],"hue-rotate":[{"hue-rotate":[Ie,ye,me]}],invert:[{invert:["",Ie,ye,me]}],saturate:[{saturate:[Ie,ye,me]}],sepia:[{sepia:["",Ie,ye,me]}],"backdrop-filter":[{"backdrop-filter":["","none",ye,me]}],"backdrop-blur":[{"backdrop-blur":Kl()}],"backdrop-brightness":[{"backdrop-brightness":[Ie,ye,me]}],"backdrop-contrast":[{"backdrop-contrast":[Ie,ye,me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ie,ye,me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ie,ye,me]}],"backdrop-invert":[{"backdrop-invert":["",Ie,ye,me]}],"backdrop-opacity":[{"backdrop-opacity":[Ie,ye,me]}],"backdrop-saturate":[{"backdrop-saturate":[Ie,ye,me]}],"backdrop-sepia":[{"backdrop-sepia":["",Ie,ye,me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":fe()}],"border-spacing-x":[{"border-spacing-x":fe()}],"border-spacing-y":[{"border-spacing-y":fe()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ye,me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ie,"initial",ye,me]}],ease:[{ease:["linear","initial",Ye,ye,me]}],delay:[{delay:[Ie,ye,me]}],animate:[{animate:["none",Ft,ye,me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[at,ye,me]}],"perspective-origin":[{"perspective-origin":Tt()}],rotate:[{rotate:wt()}],"rotate-x":[{"rotate-x":wt()}],"rotate-y":[{"rotate-y":wt()}],"rotate-z":[{"rotate-z":wt()}],scale:[{scale:gt()}],"scale-x":[{"scale-x":gt()}],"scale-y":[{"scale-y":gt()}],"scale-z":[{"scale-z":gt()}],"scale-3d":["scale-3d"],skew:[{skew:il()}],"skew-x":[{"skew-x":il()}],"skew-y":[{"skew-y":il()}],transform:[{transform:[ye,me,"","none","gpu","cpu"]}],"transform-origin":[{origin:Tt()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ql()}],"translate-x":[{"translate-x":ql()}],"translate-y":[{"translate-y":ql()}],"translate-z":[{"translate-z":ql()}],"translate-none":["translate-none"],accent:[{accent:x()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:x()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ye,me]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":fe()}],"scroll-mx":[{"scroll-mx":fe()}],"scroll-my":[{"scroll-my":fe()}],"scroll-ms":[{"scroll-ms":fe()}],"scroll-me":[{"scroll-me":fe()}],"scroll-mt":[{"scroll-mt":fe()}],"scroll-mr":[{"scroll-mr":fe()}],"scroll-mb":[{"scroll-mb":fe()}],"scroll-ml":[{"scroll-ml":fe()}],"scroll-p":[{"scroll-p":fe()}],"scroll-px":[{"scroll-px":fe()}],"scroll-py":[{"scroll-py":fe()}],"scroll-ps":[{"scroll-ps":fe()}],"scroll-pe":[{"scroll-pe":fe()}],"scroll-pt":[{"scroll-pt":fe()}],"scroll-pr":[{"scroll-pr":fe()}],"scroll-pb":[{"scroll-pb":fe()}],"scroll-pl":[{"scroll-pl":fe()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ye,me]}],fill:[{fill:["none",...x()]}],"stroke-w":[{stroke:[Ie,Rp,er,c1]}],stroke:[{stroke:["none",...x()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},fE=QA(sE);function ar(...y){return fE(OA(y))}function rE({className:y,...D}){return J.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:J.jsx("table",{"data-slot":"table",className:ar("w-full caption-bottom text-sm",y),...D})})}function dE({className:y,...D}){return J.jsx("thead",{"data-slot":"table-header",className:ar("[&_tr]:border-b",y),...D})}function hE({className:y,...D}){return J.jsx("tbody",{"data-slot":"table-body",className:ar("[&_tr:last-child]:border-0",y),...D})}function mE({className:y,...D}){return J.jsx("tr",{"data-slot":"table-row",className:ar("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",y),...D})}function yE({className:y,...D}){return J.jsx("th",{"data-slot":"table-head",className:ar("text-left align-middle font-medium whitespace-nowrap",y),...D})}function pE({className:y,...D}){return J.jsx("td",{"data-slot":"table-cell",className:ar("align-middle whitespace-nowrap ",y),...D})}function gE({className:y,...D}){return J.jsx("caption",{"data-slot":"table-caption",className:ar("text-muted-foreground mt-4 text-sm",y),...D})}const vE=y=>J.jsx(rE,{...y,className:_t(y.className,"custom-table")}),bE=y=>J.jsx(hE,{...y,className:_t(y.className,"custom-table-body")}),SE=y=>J.jsx(gE,{...y,className:_t(y.className,"custom-table-caption")}),TE=({cellType:y="label",hasBottomBorder:D=!0,className:O,children:b,...$})=>{const Q=_t(Oh.td,Oh[y],{[Oh.bottomBorder]:D},O,"custom-table-cell");return J.jsx(pE,{...$,className:Q,children:b})},AE=y=>J.jsx(dE,{...y,className:_t(y.className,"custom-table-head")}),EE=({variant:y="primary",className:D,style:O,children:b,...$})=>{const Q=_t(Oh.th,D,{[Oh.primary]:y==="primary",[Oh.secondary]:y==="secondary"},"custom-table-header");return J.jsx(yE,{...$,className:Q,style:O,children:b})},zE=y=>J.jsx(mE,{...y,className:_t(y.className,"custom-table-row")}),xE="_tooltipWrapper_k0y48_29",ME="_underline_k0y48_34",DE="_tooltip_k0y48_29",o1={"shadow-0":"_shadow-0_k0y48_1","shadow-100":"_shadow-100_k0y48_5","shadow-200":"_shadow-200_k0y48_9","shadow-300":"_shadow-300_k0y48_13","shadow-400":"_shadow-400_k0y48_17","shadow-500":"_shadow-500_k0y48_21","shadow-600":"_shadow-600_k0y48_25",tooltipWrapper:xE,underline:ME,tooltip:DE,"tooltip-position-above":"_tooltip-position-above_k0y48_58","tooltip-position-below":"_tooltip-position-below_k0y48_68","tooltip-position-cover":"_tooltip-position-cover_k0y48_78"},RE=({active:y,content:D,hoverDelay:O=300,preferredPosition:b="above",zIndexOverride:$,trigger:Q="hover",children:K,className:ne,tooltipClassName:G})=>{const[ae,ce]=kt.useState(!1),[ze,Ae]=kt.useState(b),Oe=kt.useRef(null),De=kt.useRef(!1),at=kt.useRef(null),je=y!==void 0?y:ae,Ye=Q==="hover"||Q==="both",Ft=Q==="click"||Q==="both",it=kt.useId(),xt=o1[`tooltip-position-${ze}`]||"",Tt=_t(o1.tooltipWrapper,ne),Je=_t(o1.tooltip,xt,G),Ge={zIndex:$??400,position:"absolute"},fe=()=>{!Ye||y!==void 0||(Oe.current&&clearTimeout(Oe.current),Oe.current=window.setTimeout(()=>{if(b==="mostSpace"&&at.current){const se=at.current.getBoundingClientRect(),Ee=se.top,Et=window.innerHeight-se.bottom;Ae(Et>=Ee?"below":"above")}else Ae(b);ce(!0)},O))},ue=()=>{!Ye||y!==void 0||(Oe.current&&clearTimeout(Oe.current),Oe.current=window.setTimeout(()=>{De.current||ce(!1)},50))},Ue=()=>{if(!(!Ft||y!==void 0)){if(De.current=!De.current,b==="mostSpace"&&at.current){const se=at.current.getBoundingClientRect(),Ee=se.top,Et=window.innerHeight-se.bottom;Ae(Et>=Ee?"below":"above")}else Ae(b);ce(De.current)}};return J.jsxs("span",{ref:at,className:Tt,onMouseEnter:fe,onMouseLeave:ue,onClick:Ue,"aria-describedby":je?it:void 0,tabIndex:0,style:{display:"inline-block",position:"relative"},children:[K,je&&J.jsx("div",{id:it,role:"tooltip",className:Je,style:Ge,children:D})]})},_E="_topBar_18zn9_29",OE="_section_18zn9_66",UE="_scretched_18zn9_73",CE="_active_18zn9_90",HE="_sm_18zn9_99",wE="_md_18zn9_100",Rh={topBar:_E,section:OE,scretched:UE,active:CE,sm:HE,md:wE},NE=({sections:y,activeTab:D,onTabSelect:O,isStretched:b=!0})=>{var $;return J.jsxs("div",{children:[J.jsx("div",{className:Rh.topBar,children:y.map(Q=>J.jsxs("div",{className:_t(Rh.section,b&&Rh.scretched,D===Q.id&&Rh.active),onClick:()=>O(Q.id),children:[J.jsx(da,{variant:"heading-xs",className:Rh.sm,children:Q.title}),J.jsx(da,{variant:"heading-md",className:Rh.md,children:Q.title})]},Q.id))}),(($=y.find(Q=>Q.id===D))==null?void 0:$.component)??J.jsx(da,{variant:"body-lg",children:"Not Found"})]})};exports.Banner=vT;exports.Button=_p;exports.Collapse=IT;exports.CourseCollapse=n3;exports.Empty=fs;exports.FormItem=Ug;exports.IconButton=m1;exports.Message=VS;exports.Modal=Og;exports.ModalAPI=sA;exports.NavigationItem=Op;exports.PageHeader=hA;exports.ProgressLine=gA;exports.SectionHeader=TA;exports.Table=vE;exports.TableBody=bE;exports.TableCaption=SE;exports.TableCell=TE;exports.TableHead=EE;exports.TableHeader=AE;exports.TableRow=zE;exports.Tooltip=RE;exports.TopBar=NE;exports.Typography=da;exports.message=K3;
310
+ //# sourceMappingURL=stp-ui-kit.cjs.js.map