@ostack.tech/ui-exhibit 0.10.0 → 0.10.1
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/README.md +1 -1
- package/dist/ostack-ui-exhibit.css +2 -2
- package/dist/ostack-ui-exhibit.js +2 -2
- package/dist/ostack-ui-exhibit.js.map +1 -1
- package/dist/webapp/assets/{index-54a2WCtJ.css → index-BKYn_yyA.css} +1 -1
- package/dist/webapp/assets/{index-DzBccsSr.js → index-DlK2khbd.js} +1 -1
- package/dist/webapp/index.html +2 -2
- package/package.json +3 -3
- package/scss/_App.scss +2 -2
|
@@ -623,4 +623,4 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a
|
|
|
623
623
|
Prefix can't start with '-' when allowNegative is true.
|
|
624
624
|
prefix: `+i+`
|
|
625
625
|
allowNegative: `+l+`
|
|
626
|
-
`),l=!1),Object.assign(Object.assign({},e),{allowNegative:l})}function SH(e){e=CH(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,a=e.allowNegative,o=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=go);var l=e.onBlur;l===void 0&&(l=go);var u=e.thousandSeparator,f=e.decimalScale,h=e.fixedDecimalScale,v=e.prefix;v===void 0&&(v="");var y=e.defaultValue,g=e.value,x=e.valueIsNumericString,w=e.onValueChange,S=OT(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),C=_d(e),E=C.decimalSeparator,D=C.allowedDecimalSeparators,_=function(I){return L2(I,e)},M=function(I,B){return xH(I,B,e)},R=Ms(g)?y:g,A=x??yH(R,v,t);Ms(g)?Ms(y)||(A=A||typeof y=="number"):A=A||typeof g=="number";var O=function(I){return RT(I)?I:(typeof I=="number"&&(I=IT(I)),A&&typeof f=="number"?I2(I,f,!!h):I)},j=LT(O(g),O(y),!!A,_,M,w),z=j[0],$=z.numAsString,V=z.formattedValue,U=j[1],ie=function(I){var B=I.target,H=I.key,q=B.selectionStart,le=B.selectionEnd,k=B.value;if(k===void 0&&(k=""),(H==="Backspace"||H==="Delete")&&le<v.length){I.preventDefault();return}if(q!==le){i(I);return}H==="Backspace"&&k[0]==="-"&&q===v.length+1&&a&&oi(B,1),f&&h&&(H==="Backspace"&&k[q-1]===E?(oi(B,q-1),I.preventDefault()):H==="Delete"&&k[q]===E&&I.preventDefault()),D?.includes(H)&&k[q]===E&&oi(B,q+1);var W=u===!0?",":u;H==="Backspace"&&k[q-1]===W&&oi(B,q-1),H==="Delete"&&k[q]===W&&oi(B,q+1),i(I)},Q=function(I){var B=$;if(B.match(/\d/g)||(B=""),o||(B=iH(B)),h&&f&&(B=I2(B,f,h)),B!==$){var H=L2(B,e);U({formattedValue:H,value:B,floatValue:parseFloat(B)},{event:I,source:mc.event})}l(I)},Z=function(I){return I===E?!0:vc(I)},se=function(I){var B=I.currentValue,H=I.lastValue,q=I.formattedValue,le=I.currentValueIndex,k=I.formattedValueIndex,W=B[le],L=q[k],X=zT(H,B),ee=X.to,ne=function(ue){return M(ue).indexOf(".")+v.length};return g===0&&h&&f&&B[ee.start]===E&&ne(B)<le&&ne(q)>k?!1:le>=ee.start&&le<ee.end&&D&&D.includes(W)&&L===E?!0:W===L};return Object.assign(Object.assign({},S),{value:V,valueIsNumericString:!1,isValidInputCharacter:Z,isCharacterSame:se,onValueChange:U,format:_,removeFormatting:M,getCaretBoundary:function(I){return wH(I,e)},onKeyDown:ie,onBlur:Q})}function EH(e){var t=SH(e);return ye.createElement(pH,Object.assign({},t))}function PT(e){return Array.isArray(e)?e:String(e).split(/[eE]/)}function TH(e){const t=PT(e);return!Number.isNaN(Number(t[1]))}function DH(e){const t=PT(e);if(!TH(t))return t[0];const a=t[0][0]==="-"?"-":"",i=t[0].replace(/^-/,"").split("."),l=i[0],u=i[1]||"";let f=Number(t[1]);if(f===0)return`${a+l}.${u}`;if(f<0){const h=l.length+f;if(h>0){const v=l.substr(0,h),y=l.substr(h);return`${a+v}.${y}${u}`}else{let v="0.";for(f=h;f;)v+="0",f+=1;return a+v+l+u}}else{const h=u.length-f;if(h>0){const v=u.substr(f),y=u.substr(0,f);return`${a+l+y}.${v}`}else{let v=-h,y="";for(;v;)y+="0",v-=1;return a+l+u+y}}}function Jl(e){return typeof e=="string"?e:typeof e=="bigint"?e.toString():e==null||isNaN(e)?"":DH(e)}function pc(e){return e.startsWith("-")}function qg(e){return e===""||e==="-"||e==="."||e==="-."}function Lf(e){if(qg(e))return"";const t=pc(e);t&&(e=e.slice(1));let[a,o]=e.split(".");a=a.replace(/^0*/,""),o=o?.replace(/0*$/,"");const i=!a&&!o?"0":a&&!o?a:!a&&o?`0.${o}`:`${a}.${o}`;return t?`-${i}`:i}function mn(e,t){const a=pc(e),o=pc(t),i=Lf(e).slice(a?1:0)||"0",l=Lf(t).slice(o?1:0)||"0";if(a!==o)return i==="0"&&l==="0"?0:o?1:-1;const u=a?-1:1,[f,h=""]=i.split("."),[v,y=""]=l.split(".");if(f.length!==v.length)return(f.length>v.length?1:-1)*u;for(let g=0;g<f.length;++g){const x=f[g],w=v[g];if(x!==w)return(x>w?1:-1)*u}for(let g=0;g<Math.max(h.length,y.length);++g){const x=h[g]??"0",w=y[g]??"0";if(x!==w)return(x>w?1:-1)*u}return 0}function _H(e,t){if(qg(e)||t===0)return e;const a=pc(e),i=(a?e.slice(1):e).padStart(t+1,"0");return`${a?"-":""}${i.slice(0,-t)}.${i.slice(-t)}`}function MH(e,t){if(qg(e))return e;const[a,o=""]=e.split(".");if(t===0)return a;const i=o.length>t?o.slice(0,t):o.padEnd(t,"0");return`${a}${i}`}const AH=p.forwardRef(function({defaultValue:t,value:a,valueIsUnformattedString:o=!1,valueIsInteger:i=!1,onValueChange:l,precision:u,scale:f,fixedScale:h=f!=null,decimalSeparator:v,groupDigits:y=!1,groupingStyle:g,groupSeparator:x,min:w,max:S,exclusiveMin:C,exclusiveMax:E,allowValue:D,..._},M){const R=Jl(w),A=Jl(S),O=Jl(C),j=Jl(E),[z]=lt();v??=z.NumericInput.decimalSeparator??".",g??=z.NumericInput.groupingStyle??"thousand",x??=z.NumericInput.groupSeparator??",";const $=p.useCallback(I=>{l?.(P2(I,i,f))},[l,f,i]),V=p.useCallback(I=>{const B=P2(I,i,f),{stringValue:H}=B;if(H){if(u!=null){const q=pc(H);if(i){if(H.length-(q?1:0)>u)return!1}else{const le=H.indexOf(".");if((le===-1?H:H.slice(0,le)).length-(q?1:0)>u-f)return!1}}if(R&&(mn(R,"0")<0&&mn(H,R)<0||mn(R,"0")>=0&&mn(H,"0")<0)||A&&(mn(A,"0")>0&&mn(H,A)>0||mn(A,"0")<=0&&mn(H,"0")>0)||O&&(mn(O,"0")<0&&mn(H,O)<=0||mn(O,"0")>=0&&mn(H,"0")<0)||j&&(mn(j,"0")>0&&mn(H,j)>=0||mn(j,"0")<=0&&mn(H,"0")>0))return!1}return D?.(B)??!0},[i,f,D,u,R,A,O,j]),U=(!R||mn(R,"0")<0)&&(!O||mn(O,"0")<0),ie=a===void 0?"defaultValue":"value",Q=a===void 0?t:a,Z=NH(Q,o,i,f),se={[ie]:Z?OH(Q,f):Q??""};return d.jsx(EH,{...se,valueIsNumericString:Z||o,onValueChange:$,decimalScale:f??void 0,fixedDecimalScale:h,decimalSeparator:v,thousandsGroupStyle:y?g:"none",thousandSeparator:y?x:"",isAllowed:V,allowNegative:U,customInput:jo,getInputRef:M,..._})});function NH(e,t,a,o){return e!=null&&a&&!!o&&(typeof e!="string"||t)}function OH(e,t){const a=Jl(e);return _H(a,t)}function P2({formattedValue:e,value:t,floatValue:a},o,i){if(!o||!i||Number.isNaN(a)||a==null)return{formattedValue:e,stringValue:Lf(t),numberValue:Number.isNaN(a)||a==null?null:a};const l=Lf(MH(t,i));return{formattedValue:e,stringValue:l,numberValue:+l}}const RH=p.forwardRef(function({pending:t,pendingContent:a,showSpinner:o=t,children:i,className:l,...u},f){const h=me();return d.jsx(jo,{showSpinner:o,"aria-busy":t||void 0,"aria-disabled":void 0,"aria-invalid":void 0,...u,className:P(h("output"),l),readOnly:!0,asChild:!0,children:d.jsx("output",{ref:f,children:t&&a||i})})}),pv=p.forwardRef(function({value:t,status:a,code:o,loading:i,loadingDescription:l,showSpinner:u=i,children:f,rootProps:h,codeProps:v,indicatorProps:y,labelProps:g,spinnerProps:x,id:w,disabled:S,readOnly:C,onClick:E,className:D,"aria-label":_,"aria-labelledby":M,...R},A){const O=me(),[j]=lt();l??=j.Input.loadingDescription;const z=Cd(),$=p.useId(),V=w??O(`control-${$}`),U=o!=null&&typeof o!="boolean"&&(v?.id??O(`control-code-${$}`)),ie=f&&(g?.id??O(`radio-label-${$}`)),Q=i&&l&&O(`control-loading-${$}`);a=z?.status??a,S=z?.disabled||S,i=z?.loading||i,C=z?.readOnly||C;const Z=p.useCallback(I=>{(i||C)&&I.preventDefault()},[i,C]),se=dn(U,ie);return d.jsxs(d.Fragment,{children:[d.jsxs("div",{"data-status":a,...h,className:P(O("radio__root"),h?.className),children:[U&&d.jsx(Ks,{status:a,...v,id:U,className:P(O("radio__code"),v?.className),children:o}),d.jsx(AO,{id:V,className:P(O("radio"),D),value:t?.toString()??"",disabled:S,"data-loading":Ee(i),"data-readonly":Ee(C),"data-status":a,"aria-disabled":i||C||void 0,"aria-label":_,"aria-labelledby":M??(_===void 0&&se!==ie?se:void 0),...R,onClick:Ce(E,Z),ref:A,children:d.jsx(NO,{...y,className:P(O("radio__indicator"),y?.className)})}),ie&&d.jsx(Nn,{htmlFor:V,"data-status":a,...g,id:ie,className:P(O("radio__label"),g?.className),containerProps:{...g?.containerProps,className:P(O("radio__label-container"),g?.containerProps?.className)},children:f}),u&&d.jsx(An,{"data-status":a,"data-disabled":Ee(S||i),...x,className:P(O("radio__spinner"),x?.className)})]}),Q&&d.jsx("span",{hidden:!0,id:Q,children:l})]})}),jH=p.forwardRef(function({defaultValue:t,value:a,onValueChange:o,inline:i,variant:l,status:u,loading:f,loadingDescription:h,showSpinner:v=f,code:y,showClearButton:g,clearDescription:x,clearButtonLabel:w,onBlurToOutside:S,codeProps:C,containerProps:E,endContainerProps:D,clearButtonProps:_,spinnerProps:M,id:R,required:A,disabled:O,readOnly:j,className:z,children:$,"aria-label":V,"aria-labelledby":U,"aria-describedby":ie,onFocus:Q,onBlur:Z,onKeyDown:se,...I},B){const H=me(),[q]=lt();h??=q.Input.loadingDescription,w??=q.Input.clearButtonLabel,x??=q.RadioGroup.clearDescription;const le=Us(),k=Ys(),W=$s(),L=Vs(),[X,ee]=Cn(t??"",a),{generatedId:ne,controlId:ue,codeId:he}=Ws(R,"DIV",C?.id,!!y,A),K=f&&h&&H(`control-loading-${ne}`),ve=p.useRef(null),pe=Si();i??=pe,l??=pe?"cell":"default";const De=p.useCallback(Ne=>{!f&&!j&&(ee(Ne),o?.(Ne))},[f,o,j,ee]),we=Mc(),Ae=p.useCallback(()=>{we(!0)},[we]),it=p.useCallback(Ne=>{we(!1),(!Ne.relatedTarget||!ve.current?.contains(Ne.relatedTarget))&&S?.(Ne)},[S,we]),qe=p.useCallback(()=>{De(""),ve.current?.focus()},[De]),re=!O&&!f&&!j&&(g===!0||g==="auto"&&(X?.length??0)>0),ge=re&&x&&H(`control-clear-${ne}`),be=p.useCallback(Ne=>{re&&(Ne.code==="Delete"||Ne.code==="Backspace")&&qe()},[qe,re]),Re=Xe(ve,B);return d.jsx(vn,{children:d.jsx(Oo.Provider,{value:{variant:l,status:u,disabled:O,loading:f,readOnly:j},children:d.jsxs(MO,{value:X,onValueChange:De,id:ue,"data-status":u,"data-accent":sn(u),"data-variant":l,required:A,disabled:O,className:P(H("radio-group"),i&&H("radio-group--inline"),z),"aria-disabled":f||j||void 0,"aria-invalid":u==="invalid"||void 0,"aria-label":V,"aria-labelledby":U??(V===void 0?dn(he,le??k):void 0),"aria-describedby":dn(K,L,ie,W,ge),onFocus:Ce(Q,Ae),onBlur:Ce(Z,it),onKeyDown:Ce(se,be),...I,ref:Re,children:[y!=null&&typeof y!="boolean"&&d.jsx(Ks,{status:u,...C,id:he,className:P(H("radio-group__code"),C?.className),children:y}),d.jsx("div",{"data-status":u,"data-variant":l,"data-disabled":Ee(O||f),"data-readonly":Ee(j),...E,className:P(H("radio-group__container"),E?.className),children:d.jsx(vn,{children:$})}),(re||v)&&d.jsxs("div",{"data-status":u,"data-variant":l,"data-disabled":Ee(O||f),"data-readonly":Ee(j),...D,className:P(H("radio-group__end-container"),D?.className),children:[re&&d.jsx(To,{size:"sm",label:w,tabIndex:-1,circle:!0,..._,className:P(H("radio-group__clear-button"),_?.className),onClick:Ce(_?.onClick,qe,{checkDefaultPrevented:!0}),onFocus:Ce(_?.onFocus,Ae),onBlur:Ce(_?.onBlur,it)}),v&&d.jsx(An,{color:sn(u,"neutral"),"data-disabled":Ee(O||f),...M,className:P(H("radio-group__spinner"),M?.className)})]}),K&&d.jsx("span",{hidden:!0,id:K,children:h}),ge&&d.jsx("span",{hidden:!0,id:ge,children:x})]})})})}),FT=p.createContext(null);function kH(e,t,a,o){const i=wi(()=>ar()(xi((l,u)=>({activeTab:a?.toString()??t?.toString(),showScrollButtons:!1,width:0,scrollPosition:void 0,tabsLabels:{},actions:{registerTabLabel:(f,h)=>(l(({tabsLabels:v})=>({tabsLabels:{...v,[f]:h}})),()=>{l(({tabsLabels:{[f]:v,...y}})=>({tabsLabels:y}))}),getTabLabel:f=>u().tabsLabels[f]}}))));return p.useEffect(()=>{a!==void 0&&i.setState({activeTab:a.toString()})},[i,a]),p.useMemo(()=>({variant:e,showAllTabsWhilePrinting:o,store:i}),[o,i,e])}function Js(){const e=p.useContext(FT);if(!e)throw new Error("Tabs context not in scope.");return e}function IH(e,t){const{showAllTabsWhilePrinting:a,store:o}=Js(),i=_c()&&a,{registerTabLabel:l}=He(o,u=>u.actions);p.useEffect(()=>{if(i)return l(e,t)},[t,i,l,e])}function zH(e){const{store:t}=Js();return He(t,a=>a.actions.getTabLabel(e))}const gv=p.forwardRef(function({value:t,status:a,tabInnerProps:o,className:i,children:l,...u},f){const h=me(),{variant:v,store:y}=Js(),g=t.toString(),x=He(y,E=>E.activeTab===g);IH(g,l);const w=p.useRef(null),S=p.useRef(x);p.useEffect(()=>{x&&!S.current&&setTimeout(()=>w.current?.scrollIntoView({block:"nearest"})),S.current=x},[x]);const C=Xe(w,f);return d.jsxs(IO,{value:g,className:P(h("tabs__tab"),h(`tabs__tab--${v}`),i),"data-status":a,"data-accent":sn(a),"aria-invalid":a==="invalid"||void 0,...u,ref:C,children:[d.jsx("span",{...o,className:P(h("tabs__tab-inner"),o?.className),children:l}),d.jsx("span",{...o,className:P(h("tabs__tab-inner"),h("tabs__tab-inner--hidden"),o?.className),children:l})]})}),bv=p.forwardRef(function({asChild:t,value:a,className:o,tabContentLabelProps:i,...l},u){const f=me(),h=_c(),v=a.toString(),{showAllTabsWhilePrinting:y}=Js(),g=zH(v),x=h&&y?t?Qe:"div":FS;return d.jsxs(d.Fragment,{children:[h&&y&&d.jsx("span",{...i,className:P(f("tabs__tab-content-label"),i?.className),children:g}),d.jsx(x,{...!h||!y?{asChild:t}:{},value:v,className:P(f("tabs__tab-content"),o),...l,ref:u})]})}),LH=p.forwardRef(function({scrollLeftButtonLabel:t,scrollRightButtonLabel:a,rootProps:o,containerProps:i,scrollLeftButtonProps:l,scrollRightButtonProps:u,className:f,children:h,...v},y){const g=me(),[x]=lt();t??=x.TabList.scrollLeftButtonLabel,a??=x.TabList.scrollRightButtonLabel;const{variant:w,showAllTabsWhilePrinting:S,store:C}=Js(),{printHidden:E}=Ro(),[D,_]=p.useState(null),[M,R]=p.useState(null);Ug(D,p.useCallback(z=>C.setState({width:z?.width}),[C])),WE(M,p.useCallback(z=>C.setState({scrollPosition:z}),[C])),p.useEffect(()=>C.subscribe(z=>z.width,z=>{C.setState({showScrollButtons:(M?.scrollWidth??0)>Math.ceil(z)})},{fireImmediately:!0}),[h,M,C]);const A=z=>{if(M){const $=M.clientWidth,V=Array.from(M.children);let U=0;for(let ie=0;ie<V.length;++ie){const Q=V[ie];if(U+Q.clientWidth>$){ie===0&&(U=$);break}U+=Q.clientWidth}M.scrollBy({left:z==="left"?-U:U,behavior:"smooth"})}};p.useEffect(()=>{if(M){const z=$=>{const V=$.deltaY;M&&V&&M.scrollWidth>Math.ceil(C.getState().width)&&($.preventDefault(),M.scrollLeft+=V)};return M.addEventListener("wheel",z),()=>M.removeEventListener("wheel",z)}},[M,C]);const O=Xe(_,o?.ref),j=Xe(R,i?.ref);return d.jsxs("div",{...o,className:P(g("tabs__tab-list-root"),g(`tabs__tab-list-root--${w}`),S&&E,o?.className),ref:O,children:[d.jsx(F2,{side:"left",label:t,...l,onClick:Ce(l?.onClick,()=>A("left"))}),d.jsx("div",{...i,className:P(g("tabs__tab-list-container"),g(`tabs__tab-list-container--${w}`),i?.className),ref:j,children:d.jsx(kO,{className:P(g("tabs__tab-list"),g(`tabs__tab-list--${w}`),f),...v,ref:y,children:h})}),d.jsx(F2,{side:"right",label:a,...u,onClick:Ce(u?.onClick,()=>A("right"))})]})});function F2({side:e,label:t,onClick:a,disabled:o,className:i,...l}){const u=me(),{store:f}=Js(),h=He(f,y=>y.showScrollButtons),v=He(f,({scrollPosition:y})=>y&&(e==="left"?y.left===0:y.right<=1));return h&&d.jsx(xa,{variant:"ghost",icon:e==="left"?t4:yg,label:t,className:P(u("tabs__scroll-button"),u(`tabs__scroll-button--${e}`),i),disabled:v||o,onClick:a,tabIndex:-1,...l})}const PH=p.forwardRef(function({variant:t="default",defaultValue:a,value:o,onValueChange:i,showAllTabsWhilePrinting:l,className:u,...f},h){const v=me(),y=kH(t,a,o,l),g=p.useCallback(x=>y.store.setState({activeTab:x}),[y.store]);return d.jsx(FT.Provider,{value:y,children:d.jsx(jO,{defaultValue:a?.toString(),value:o?.toString(),onValueChange:Ce(i,g),className:P(v("tabs"),v(`tabs--${t}`),u),...f,ref:h})})}),FH=3,BT=p.forwardRef(function({rows:t,...a},o){const i=Si();return t??=i?1:FH,d.jsx(jo,{asChild:!0,...a,children:d.jsx("textarea",{rows:t,ref:o})})}),BH="http://localhost:6006/",HT=p.createContext(null);function HH(){return p.useContext(HT)?.docsUrl??BH}function It({rows:e,cols:t,renderItem:a}){return d.jsxs("div",{className:"exhibit-grid",style:{"--exhibit-grid-cols":Object.keys(t).length+(e?1:0)},tabIndex:0,children:[e&&d.jsx("div",{}),Object.keys(t).map(o=>d.jsx("div",{className:"exhibit-grid-col-label",children:o},o)),Object.entries(e??{"":void 0}).map(([o,i])=>d.jsxs(p.Fragment,{children:[o&&d.jsx("div",{className:"exhibit-grid-row-label",children:o}),Object.entries(t).map(([l,u])=>d.jsx("div",{className:"exhibit-grid-item",children:a({row:i,col:u})},l))]},o))]})}function ct({title:e,docsPage:t,children:a}){const o=HH(),i=e.toLowerCase().replace(/[^a-z0-9]/g,"-");return d.jsx(pi,{asChild:!0,children:d.jsxs("section",{className:"exhibit-section","aria-labelledby":i,children:[d.jsx(pi,{asChild:!0,direction:"row",gap:4,alignItems:"center",children:d.jsxs("header",{children:[d.jsx(NT,{id:i,children:d.jsx(zf,{href:`#${i}`,color:"neutral",style:{color:"var(--o-ui-neutral-12)"},children:e})}),d.jsxs(zf,{className:"exhibit-section-docs-link",href:`${o}?path=/docs/${t}--docs`,external:!0,children:["View docs",d.jsxs(cn,{children:[" of ",e]})]})]})}),d.jsx("div",{className:"exhibit-section-content",children:a})]})})}function YH(){return d.jsx(ct,{title:"Alert dialog",docsPage:"ostack-ui-overlay-alert-dialog",children:d.jsx(It,{cols:{Neutral:"neutral",Primary:"primary",Success:"success",Danger:"danger",Warning:"warning"},rows:{Solid:"solid",Subtle:"subtle",Outlined:"outlined",Ghost:"ghost"},renderItem:({col:e,row:t})=>d.jsxs(u3,{children:[d.jsx(eL,{children:d.jsx(ln,{variant:t,color:e,children:"Restore"})}),d.jsxs(Jv,{variant:t,color:e,children:[d.jsx(np,{children:d.jsx(ap,{children:"Restore previous version?"})}),d.jsx(Zv,{children:d.jsx(ep,{children:"This will overwrite your current draft with the version saved on January 12th. Current changes will be lost."})}),d.jsxs(tp,{children:[d.jsx(pE,{children:d.jsx(ln,{variant:"subtle",children:"Go back"})}),d.jsx(Ov,{children:d.jsx(ln,{color:e,children:"Restore"})})]})]})]})})})}function UH(){return d.jsx(ct,{title:"Alert",docsPage:"ostack-ui-feedback-alert",children:d.jsx(It,{cols:{Neutral:"neutral",Info:"info",Success:"success",Danger:"danger",Warning:"warning",Title:"title",Action:"action","Close button":"showCloseButton"},rows:{Solid:"solid",Subtle:"subtle",Outlined:"outlined"},renderItem:({col:e,row:t})=>d.jsxs(SE,{variant:t,action:e==="action"&&d.jsx(ln,{color:"primary",children:"Accept"}),severity:e==="title"||e==="action"||e==="showCloseButton"?void 0:e,showCloseButton:e==="showCloseButton",children:[e==="title"&&d.jsx(rp,{children:"Notice"}),"Terms may apply."]})})})}function $H(){return d.jsx(ct,{title:"Button group",docsPage:"ostack-ui-layout-button-group",children:d.jsx(It,{cols:{Neutral:"neutral",Primary:"primary",Success:"success",Danger:"danger",Warning:"warning"},rows:{Solid:"solid",Subtle:"subtle",Outlined:"outlined",Ghost:"ghost"},renderItem:({col:e,row:t})=>d.jsxs(WL,{children:[d.jsx(ln,{icon:A7,variant:t,color:e,children:"Load"}),d.jsx(ln,{icon:T7,variant:t,color:e,children:"Save"}),d.jsx(xa,{icon:Z3,label:"Delete",variant:t,color:e})]})})})}function VH(){return d.jsx(ct,{title:"Button",docsPage:"ostack-ui-forms-button",children:d.jsx(It,{cols:{Neutral:"neutral",Primary:"primary",Success:"success",Danger:"danger",Warning:"warning",Disabled:"disabled",Loading:"loading",Keybinds:"keybinds",Vertical:"vertical"},rows:{Solid:"solid",Subtle:"subtle",Outlined:"outlined",Ghost:"ghost"},renderItem:({col:e,row:t})=>d.jsx(ln,{icon:K7,variant:t,color:e==="disabled"||e==="loading"||e==="keybinds"||e==="vertical"?void 0:e,disabled:e==="disabled",loading:e==="loading",loadingContent:e==="loading"?"Zapping…":void 0,keybinds:e==="keybinds"?"Alt+Shift+Z":void 0,vertical:e==="vertical",children:"Zap"})})})}function WH(){return d.jsx(ct,{title:"Calendar",docsPage:"ostack-ui-data-display-calendar",children:d.jsx(Wg,{})})}function GH(){return d.jsx(ct,{title:"Checkbox group",docsPage:"ostack-ui-forms-checkbox-group",children:d.jsx(It,{cols:{Basic:"","Helper text":"helperText",Required:"required",Disabled:"disabled","Read-only":"readOnly",Loading:"loading",Code:"code","All codes":"allCodes"},rows:{"No status":void 0,Valid:"valid",Invalid:"invalid",Warned:"warned"},renderItem:({col:e,row:t})=>d.jsxs(Vn,{children:[d.jsx(Nn,{children:"Toppings"}),d.jsxs(PB,{defaultValue:["caramel"],status:t,required:e==="required",disabled:e==="disabled",readOnly:e==="readOnly",loading:e==="loading",code:e==="code"||e==="allCodes"?"3.2":void 0,children:[d.jsx(_s,{value:"caramel",code:e==="allCodes"?"a":void 0,children:"Caramel"}),d.jsx(_s,{value:"chocolate",code:e==="allCodes"?"b":void 0,children:"Chocolate"}),d.jsx(_s,{value:"strawberry",code:e==="allCodes"?"c":void 0,children:"Strawberry"})]}),t==="valid"&&d.jsx(Ct,{type:"success",children:"Available."}),t==="warned"&&d.jsx(Ct,{type:"warning",children:"Maybe unavailable."}),t==="invalid"&&d.jsx(Ct,{children:"Unavailable."}),e==="helperText"&&d.jsx(or,{children:"Select all wanted."})]})})})}function qH(){return d.jsx(ct,{title:"Checkbox",docsPage:"ostack-ui-forms-checkbox",children:d.jsx(It,{cols:{Basic:"",Indeterminate:"indeterminate","Helper text":"helperText",Required:"required",Disabled:"disabled","Read-only":"readOnly",Loading:"loading",Code:"code"},rows:{"No status":void 0,Valid:"valid",Invalid:"invalid",Warned:"warned"},renderItem:({col:e,row:t})=>d.jsxs(Vn,{children:[d.jsx(_s,{status:t,defaultChecked:e==="indeterminate"?"indeterminate":!0,required:e==="required",disabled:e==="disabled",readOnly:e==="readOnly",loading:e==="loading",code:e==="code"?"1.5":void 0,children:"I accept"}),t==="valid"&&d.jsx(Ct,{type:"success",children:"Accepted."}),t==="warned"&&d.jsx(Ct,{type:"warning",children:"Are you sure?"}),t==="invalid"&&d.jsx(Ct,{children:"Must accept."}),e==="helperText"&&d.jsx(or,{children:"Please indicate."})]})})})}function KH(){return d.jsx(ct,{title:"Code",docsPage:"ostack-ui-typography-code",children:d.jsx(It,{cols:{Neutral:"neutral",Primary:"primary",Success:"success",Danger:"danger",Warning:"warning"},renderItem:({col:e})=>d.jsx(EE,{color:e,children:"Math.sin(1)"})})})}function XH(){const e=zc();return d.jsx(ct,{title:"Collapsible",docsPage:"ostack-ui-disclosure-collapsible",children:d.jsxs(kg,{children:[d.jsx(zg,{children:t=>d.jsxs(ln,{icon:t?V7:q7,iconPlacement:"end",children:[t?"Hide":"Show"," quote"]})}),d.jsx(Ig,{children:d.jsxs("blockquote",{cite:"https://gutenberg.net.au/ebooks02/0201091h.html",style:{marginTop:e(4)},children:[d.jsx("p",{children:'"The sun had not yet risen. The sea was indistinguishable from the sky, except that the sea was slightly creased as if a cloth had wrinkles in it. Gradually as the sky whitened a dark line lay on the horizon dividing the sea from the sky and the grey cloth became barred with thick strokes moving, one after another, beneath the surface, following each other, pursuing each other, perpetually."'}),d.jsxs("p",{children:["—Virginia Woolf, ",d.jsx("cite",{children:"The Waves"})]})]})})]})})}function QH(){const[e,t]=p.useState(!1),{cssVar:a}=qs(),o="$mod+K";ck(o,()=>t(!0),{preventDefault:!0});const i=()=>t(!1);return d.jsxs(ct,{title:"Command menu",docsPage:"ostack-ui-overlay-command-menu",children:[d.jsxs("span",{style:{color:a("neutral-11")},children:["Press ",d.jsx(yd,{keybinds:o})," to open the command menu."]}),d.jsx(AB,{open:e,onOpenChange:t,children:d.jsxs(TT,{children:[d.jsxs(O2,{label:"Actions",children:[d.jsx(Ma,{onSelect:i,children:"Find"}),d.jsx(Ma,{onSelect:i,children:"Replace"}),d.jsx(Ma,{onSelect:i,children:"Analyse"}),d.jsx(Ma,{onSelect:i,children:"Inspect"})]}),d.jsxs(O2,{label:"Languages",children:[d.jsx(Ma,{onSelect:i,children:"C"}),d.jsx(Ma,{onSelect:i,children:"C++"}),d.jsx(Ma,{onSelect:i,children:"Java"}),d.jsx(Ma,{onSelect:i,children:"JavaScript"}),d.jsx(Ma,{onSelect:i,children:"Python"}),d.jsx(Ma,{onSelect:i,children:"Rust"})]})]})})]})}const ZH=[{id:0,student:"Allyson Meyer",grade:84.2},{id:1,student:"Tristan Hogan",grade:71.5},{id:2,student:"Kathryn Duarte",grade:92.8},{id:3,student:"Abdullah Flynn",grade:58.4},{id:4,student:"Dorothy Davidson",grade:76.1},{id:5,student:"Dante Hurst",grade:89},{id:6,student:"Adalee Koch",grade:94.3},{id:7,student:"Salvador Reeves",grade:62.7},{id:8,student:"Lana Carr",grade:81.9},{id:9,student:"Kash Shaffer",grade:45.6},{id:10,student:"Alanna Bradley",grade:88.3},{id:11,student:"Richard Barker",grade:73.4},{id:12,student:"Remington Villalobos",grade:90.1},{id:13,student:"Reuben Rivera",grade:66.8},{id:14,student:"Lillian Page",grade:95.5},{id:15,student:"Pablo Miranda",grade:52.2},{id:16,student:"Amina McDowell",grade:79.7},{id:17,student:"Lachlan Austin",grade:83.1},{id:18,student:"Alivia Roberts",grade:70.4},{id:19,student:"Josiah Medina",grade:61.9},{id:20,student:"Elliana Delgado",grade:87.6},{id:21,student:"Colt Martin",grade:74.3},{id:22,student:"Mila Jenkins",grade:98.2},{id:23,student:"Declan Byrd",grade:55.9},{id:24,student:"Giselle Parsons",grade:82},{id:25,student:"Lewis Wallace",grade:69.1},{id:26,student:"Arianna Ahmed",grade:91.4},{id:27,student:"Harry Willis",grade:48.7},{id:28,student:"Alexa Griffin",grade:77.8},{id:29,student:"Ayden Woods",grade:63.5},{id:30,student:"Reese Allen",grade:85.3},{id:31,student:"Carter Moore",grade:90.7},{id:32,student:"Emily Spears",grade:72.2},{id:33,student:"Ameer McKinney",grade:59.9},{id:34,student:"Gwendolyn Sanford",grade:93.6},{id:35,student:"Truett Rangel",grade:68.4},{id:36,student:"Gloria Yoder",grade:80.5},{id:37,student:"Johan Fleming",grade:74.9},{id:38,student:"Fatima Gates",grade:88.2},{id:39,student:"Ermias McPherson",grade:51.3},{id:40,student:"Emmaline Ali",grade:96.4},{id:41,student:"Arjun Wade",grade:71.8},{id:42,student:"Evie Yates",grade:84.7},{id:43,student:"Braylon Golden",grade:67.2},{id:44,student:"Giuliana Paul",grade:92.1},{id:45,student:"Noel Wilkerson",grade:54.5},{id:46,student:"Janiyah Floyd",grade:78.9},{id:47,student:"Pierce Farmer",grade:86.4},{id:48,student:"Madelynn Duarte",grade:73.6},{id:49,student:"Abdullah Massey",grade:60.2},{id:50,student:"Clementine Clay",grade:99.1},{id:51,student:"Yosef Blair",grade:65.8},{id:52,student:"Frances Truong",grade:82.5},{id:53,student:"Ayan Davis",grade:75.3},{id:54,student:"Mia Roach",grade:90.9},{id:55,student:"Caspian Stein",grade:57.1},{id:56,student:"Leilany Villegas",grade:81.4},{id:57,student:"Clyde Corona",grade:64.6},{id:58,student:"Marianna Fletcher",grade:88.7},{id:59,student:"Jay McCarty",grade:72.9},{id:60,student:"Halo Rocha",grade:85},{id:61,student:"Onyx Davidson",grade:49.2},{id:62,student:"Jayla Whitehead",grade:77.4},{id:63,student:"Zayd Harvey",grade:93.2},{id:64,student:"Nicole Hubbard",grade:68.7},{id:65,student:"Forrest Bartlett",grade:80.1},{id:66,student:"Aubrielle Gallegos",grade:95.8},{id:67,student:"Jonas Mosley",grade:56.4},{id:68,student:"Zaniyah Lee",grade:82.3},{id:69,student:"Jack Giles",grade:71},{id:70,student:"Bailee Warren",grade:89.5},{id:71,student:"Abel Cruz",grade:63.8},{id:72,student:"Claire Steele",grade:91.2},{id:73,student:"Elian Berg",grade:74.5},{id:74,student:"Emmalyn McClain",grade:86.9},{id:75,student:"Mitchell Clayton",grade:53.7},{id:76,student:"Saige Graves",grade:78.2},{id:77,student:"Cesar Kane",grade:83.4},{id:78,student:"Ellianna Ortega",grade:97},{id:79,student:"Kobe Wallace",grade:33.5},{id:80,student:"Arianna Dorsey",grade:84.8},{id:81,student:"Enoch Elliott",grade:76.3},{id:82,student:"Noelle Estes",grade:90.4},{id:83,student:"Hakeem Andrews",grade:58.1},{id:84,student:"Payton Phelps",grade:82.6},{id:85,student:"Hamza Anthony",grade:69.9},{id:86,student:"Macy Horton",grade:87.2},{id:87,student:"Garrett Meyer",grade:75.8},{id:88,student:"Sara McClain",grade:94.1},{id:89,student:"Mitchell Magana",grade:52.9},{id:90,student:"Amaris Foster",grade:80.3},{id:91,student:"Kayden McGee",grade:66.4},{id:92,student:"Kayleigh Bean",grade:91.7},{id:93,student:"Mccoy Dunlap",grade:73.1},{id:94,student:"Iliana Ochoa",grade:85.5},{id:95,student:"Winston Hall",grade:47.8},{id:96,student:"Leah David",grade:79.2},{id:97,student:"Alonso Ballard",grade:88.9},{id:98,student:"Alejandra Bass",grade:62.1},{id:99,student:"Landen Santana",grade:95.2},{id:100,student:"Myra Knight",grade:70.8},{id:101,student:"Beckett Gilmore",grade:83.7},{id:102,student:"Chanel Rosas",grade:31.4},{id:103,student:"Remi Wade",grade:92.6},{id:104,student:"Evie Church",grade:68.2},{id:105,student:"Terrance Luna",grade:81.1},{id:106,student:"Journey Alfaro",grade:77.5},{id:107,student:"Xzavier Colon",grade:89.3},{id:108,student:"Remy Curry",grade:64.9},{id:109,student:"Briggs Hale",grade:96.7},{id:110,student:"Brinley Phillips",grade:59.3},{id:111,student:"Andrew Huynh",grade:82.4},{id:112,student:"Oaklee Gross",grade:74.1},{id:113,student:"Quinn Rosales",grade:90.8},{id:114,student:"Kinley Bartlett",grade:61.2},{id:115,student:"Kace Pineda",grade:85.9},{id:116,student:"Nola Maynard",grade:27.6},{id:117,student:"Landry Rowland",grade:93.4},{id:118,student:"Harleigh Camacho",grade:50.5},{id:119,student:"Tatum Lynn",grade:78.7},{id:120,student:"Samira Nelson",grade:86.2},{id:121,student:"Dylan Giles",grade:67.5},{id:122,student:"Bailee Hendricks",grade:94.8},{id:123,student:"Dash Carr",grade:71.3},{id:124,student:"Rowan Acosta",grade:44},{id:125,student:"Jensen Santana",grade:56.7},{id:126,student:"Myra Christensen",grade:91.9},{id:127,student:"Gregory Vu",grade:79.4},{id:128,student:"Kimora Delarosa",grade:88.5},{id:129,student:"Osiris Padilla",grade:28.2}];function JH(){return d.jsx(ct,{title:"Data table",docsPage:"ostack-ui-data-data-display-data-table",children:d.jsx(It,{cols:{Default:"default",Control:"control",Scrolled:"scrolled",Selectable:"showSelectionColumn"},renderItem:({col:e})=>d.jsx(Vn,{style:{width:450},children:d.jsxs(TF,{displayMode:e==="scrolled"?e:void 0,showSelectionColumn:e==="showSelectionColumn",rowKey:"id",defaultLimit:5,columns:{student:{label:"Student",header:!0,sortable:!0,filterable:!0},grade:{label:"Grade",align:"right",sortable:!0,filterable:!0,format:({value:t})=>t.toFixed(1)}},rows:ZH,children:[d.jsx(Nn,{children:"Exam grades"}),d.jsx(QF,{}),d.jsx(XF,{variant:e==="default"||e==="control"?e:void 0}),d.jsx(nB,{limitOptions:[5,10,25,50,100]}),d.jsx(eB,{})]})})})})}function eY(){return d.jsx(ct,{title:"Date input",docsPage:"ostack-ui-forms-date-input",children:d.jsx(It,{cols:{Basic:"","Helper text":"helperText",Required:"required",Disabled:"disabled","Read-only":"readOnly",Loading:"loading",Code:"code"},rows:{"No status":void 0,Valid:"valid",Invalid:"invalid",Warned:"warned"},renderItem:({col:e,row:t})=>d.jsxs(Vn,{children:[d.jsx(Nn,{children:"Birthday"}),d.jsx(AT,{containerProps:{style:{width:145}},defaultValue:new Date(1990,3,10),status:t,required:e==="required",disabled:e==="disabled",readOnly:e==="readOnly",loading:e==="loading",code:e==="code"?"7.2":void 0}),t==="valid"&&d.jsx(Ct,{type:"success",children:"Confirmed."}),t==="warned"&&d.jsx(Ct,{type:"warning",children:"Awaiting confirmation…"}),t==="invalid"&&d.jsx(Ct,{children:"Unable to confirm."}),e==="helperText"&&d.jsx(or,{children:"For legal purposes."})]})})})}function tY(){return d.jsx(ct,{title:"Date-range input",docsPage:"ostack-ui-forms-date-range-input",children:d.jsx(It,{cols:{Basic:"","Helper text":"helperText",Required:"required",Disabled:"disabled","Read-only":"readOnly",Loading:"loading",Code:"code"},rows:{"No status":void 0,Valid:"valid",Invalid:"invalid",Warned:"warned"},renderItem:({col:e,row:t})=>d.jsxs(Vn,{children:[d.jsx(Nn,{children:"Time off"}),d.jsx(UB,{popoverAnchorProps:{style:{width:280}},defaultValue:{start:new Date(2026,2,10),end:new Date(2026,2,24)},status:t,required:e==="required",disabled:e==="disabled",readOnly:e==="readOnly",loading:e==="loading",code:e==="code"?"1.6":void 0}),t==="valid"&&d.jsx(Ct,{type:"success",children:"Accepted."}),t==="warned"&&d.jsx(Ct,{type:"warning",children:"Processing…"}),t==="invalid"&&d.jsx(Ct,{children:"Not accepted."}),e==="helperText"&&d.jsx(or,{children:"Reserve your paid time off."})]})})})}function nY(){return d.jsx(ct,{title:"Dialog",docsPage:"ostack-ui-overlay-dialog",children:d.jsx(It,{cols:{Neutral:"neutral",Primary:"primary",Success:"success",Danger:"danger",Warning:"warning"},rows:{Solid:"solid",Subtle:"subtle",Outlined:"outlined",Ghost:"ghost"},renderItem:({col:e,row:t})=>d.jsxs(_R,{children:[d.jsx(Jz,{children:d.jsx(ln,{variant:t,color:e,children:"Edit"})}),d.jsx(b7,{variant:t,color:e,asChild:!0,children:d.jsxs("form",{children:[d.jsx(Qz,{children:d.jsx(Zz,{children:"Edit user information"})}),d.jsxs(v3,{children:[d.jsx(y7,{children:"Edit user information below, changes are saved automatically."}),d.jsxs(pi,{children:[d.jsxs(Vn,{children:[d.jsx(Nn,{children:"Name"}),d.jsx(jo,{defaultValue:"Charles McClain"})]}),d.jsxs(Vn,{children:[d.jsx(Nn,{children:"Date of birth"}),d.jsx(AT,{defaultValue:new Date(1993,4,4)})]})]})]}),d.jsx(G3,{children:d.jsx(kR,{children:d.jsx(ln,{color:e,children:"Close"})})})]})})]})})})}var aY={prefix:"fab",iconName:"bluetooth",icon:[384,512,[],"f293","M260.6 171.1l-42.9 42.9-.3-86 43.2 43.1zM217.4 390.9l43.1-43.1-42.9-42.9-.2 86zM384 259.4C384 465 312.1 512 198.9 512S0 465 0 259.4 83.4 0 196.6 0 384 53.9 384 259.4zm-158.5 0l79.4-88.6-125.1-134.3 0 176.9-73.8-73.8-27 26.9 92.7 93-92.7 93 26.9 26.9 73.8-73.8 2.3 170 127.4-127.5-83.9-88.7z"]},rY={prefix:"fab",iconName:"react",icon:[512,512,[],"f41b","M418.2 177.2c-5.4-1.8-10.8-3.5-16.2-5.1 .9-3.7 1.7-7.4 2.5-11.1 12.3-59.6 4.2-107.5-23.1-123.3-26.3-15.1-69.2 .6-112.6 38.4-4.3 3.7-8.5 7.6-12.5 11.5-2.7-2.6-5.5-5.2-8.3-7.7-45.5-40.4-91.1-57.4-118.4-41.5-26.2 15.2-34 60.3-23 116.7 1.1 5.6 2.3 11.1 3.7 16.7-6.4 1.8-12.7 3.8-18.6 5.9-53.4 18.5-91.7 47.7-91.7 77.9 0 31.2 40.8 62.5 96.3 81.5 4.5 1.5 9 3 13.6 4.3-1.5 6-2.8 11.9-4 18-10.5 55.5-2.3 99.5 23.9 114.6 27 15.6 72.4-.4 116.6-39.1 3.5-3.1 7-6.3 10.5-9.7 4.4 4.3 9 8.4 13.6 12.4 42.8 36.8 85.1 51.7 111.2 36.6 27-15.6 35.8-62.9 24.4-120.5-.9-4.4-1.9-8.9-3-13.5 3.2-.9 6.3-1.9 9.4-2.9 57.7-19.1 99.5-50 99.5-81.7 0-30.3-39.4-59.7-93.8-78.4zM282.9 92.3c37.2-32.4 71.9-45.1 87.7-36 16.9 9.7 23.4 48.9 12.8 100.4-.7 3.4-1.4 6.7-2.3 10-22.2-5-44.7-8.6-67.3-10.6-13-18.6-27.2-36.4-42.6-53.1 3.9-3.7 7.7-7.2 11.7-10.7zM167.2 307.5c5.1 8.7 10.3 17.4 15.8 25.9-15.6-1.7-31.1-4.2-46.4-7.5 4.4-14.4 9.9-29.3 16.3-44.5 4.6 8.8 9.3 17.5 14.3 26.1zM136.9 187.2c14.4-3.2 29.7-5.8 45.6-7.8-5.3 8.3-10.5 16.8-15.4 25.4-4.9 8.5-9.7 17.2-14.2 26-6.3-14.9-11.6-29.5-16-43.6zm27.4 68.9c6.6-13.8 13.8-27.3 21.4-40.6s15.8-26.2 24.4-38.9c15-1.1 30.3-1.7 45.9-1.7s31 .6 45.9 1.7c8.5 12.6 16.6 25.5 24.3 38.7s14.9 26.7 21.7 40.4c-6.7 13.8-13.9 27.4-21.6 40.8-7.6 13.3-15.7 26.2-24.2 39-14.9 1.1-30.4 1.6-46.1 1.6s-30.9-.5-45.6-1.4c-8.7-12.7-16.9-25.7-24.6-39s-14.8-26.8-21.5-40.6zm180.6 51.2c5.1-8.8 9.9-17.7 14.6-26.7 6.4 14.5 12 29.2 16.9 44.3-15.5 3.5-31.2 6.2-47 8 5.4-8.4 10.5-17 15.5-25.6zm14.4-76.5c-4.7-8.8-9.5-17.6-14.5-26.2-4.9-8.5-10-16.9-15.3-25.2 16.1 2 31.5 4.7 45.9 8-4.6 14.8-10 29.2-16.1 43.4zM256.2 118.3c10.5 11.4 20.4 23.4 29.6 35.8-19.8-.9-39.7-.9-59.5 0 9.8-12.9 19.9-24.9 29.9-35.8zM140.2 57c16.8-9.8 54.1 4.2 93.4 39 2.5 2.2 5 4.6 7.6 7-15.5 16.7-29.8 34.5-42.9 53.1-22.6 2-45 5.5-67.2 10.4-1.3-5.1-2.4-10.3-3.5-15.5-9.4-48.4-3.2-84.9 12.6-94zM115.7 320.6c-4.2-1.2-8.3-2.5-12.4-3.9-21.3-6.7-45.5-17.3-63-31.2-10.1-7-16.9-17.8-18.8-29.9 0-18.3 31.6-41.7 77.2-57.6 5.7-2 11.5-3.8 17.3-5.5 6.8 21.7 15 43 24.5 63.6-9.6 20.9-17.9 42.5-24.8 64.5zm116.6 98c-16.5 15.1-35.6 27.1-56.4 35.3-11.1 5.3-23.9 5.8-35.3 1.3-15.9-9.2-22.5-44.5-13.5-92 1.1-5.6 2.3-11.2 3.7-16.7 22.4 4.8 45 8.1 67.9 9.8 13.2 18.7 27.7 36.6 43.2 53.4-3.2 3.1-6.4 6.1-9.6 8.9zm24.5-24.3c-10.2-11-20.4-23.2-30.3-36.3 9.6 .4 19.5 .6 29.5 .6 10.3 0 20.4-.2 30.4-.7-9.2 12.7-19.1 24.8-29.6 36.4zm130.7 30c-.9 12.2-6.9 23.6-16.5 31.3-15.9 9.2-49.8-2.8-86.4-34.2-4.2-3.6-8.4-7.5-12.7-11.5 15.3-16.9 29.4-34.8 42.2-53.6 22.9-1.9 45.7-5.4 68.2-10.5 1 4.1 1.9 8.2 2.7 12.2 4.9 21.6 5.7 44.1 2.5 66.3zm18.2-107.5c-2.8 .9-5.6 1.8-8.5 2.6-7-21.8-15.6-43.1-25.5-63.8 9.6-20.4 17.7-41.4 24.5-62.9 5.2 1.5 10.2 3.1 15 4.7 46.6 16 79.3 39.8 79.3 58 0 19.6-34.9 44.9-84.8 61.4zM256 301.8a45.8 45.8 0 1 0 0-91.6 45.8 45.8 0 1 0 0 91.6z"]},oY={prefix:"fab",iconName:"wikipedia-w",icon:[640,512,[],"f266","M640 51.2l-.3 12.2c-28.1 .8-45 15.8-55.8 40.3-25 57.8-103.3 240-155.3 358.6l-13.6 0-81.9-193.1c-32.5 63.6-68.3 130-99.2 193.1-.3 .3-15 0-15-.3-46.9-109.7-96.1-218.6-143.1-328.6-11.4-26.7-49.4-70-75.6-69.7 0-3.1-.3-10-.3-14.2l161.9 0 0 13.9c-19.2 1.1-52.8 13.3-43.3 34.2 21.9 49.7 103.6 240.3 125.6 288.6 15-29.7 57.8-109.2 75.3-142.8-13.9-28.3-58.6-133.9-72.8-160-9.7-17.8-36.1-19.4-55.8-19.7l0-13.9 142.5 .3 0 13.1c-19.4 .6-38.1 7.8-29.4 26.1 18.9 40 30.6 68.1 48.1 104.7 5.6-10.8 34.7-69.4 48.1-100.8 8.9-20.6-3.9-28.6-38.6-29.4 .3-3.6 0-10.3 .3-13.6 44.4-.3 111.1-.3 123.1-.6l0 13.6C462.4 64 439.1 76 426.8 94.9L367.6 217.7c6.4 16.1 63.3 142.8 69.2 156.7L559.2 91.8c-8.6-23.1-36.4-28.1-47.2-28.3l0-13.9 127.8 1.1 .2 .5z"]};function iY(){return d.jsx(ct,{title:"Dropdown menu",docsPage:"ostack-ui-overlay-dropdown-menu",children:d.jsxs($B,{children:[d.jsx(XB,{children:d.jsx(ln,{icon:z7,children:"Settings"})}),d.jsxs(VB,{style:{minWidth:200},children:[d.jsxs(gs,{label:"Connectivity",children:[d.jsx(Ya,{icon:X7,children:"Wi-Fi"}),d.jsx(Ya,{icon:I7,children:"Network"}),d.jsx(Ya,{icon:aY,children:"Bluetooth"})]}),d.jsxs(gs,{label:"Devices",children:[d.jsx(Ya,{icon:w7,children:"Displays"}),d.jsx(Ya,{icon:U7,children:"Sound"}),d.jsx(Ya,{icon:J7,children:"Input"}),d.jsx(Ya,{icon:O7,children:"Printers"})]}),d.jsxs(WB,{label:"Language",value:"en",children:[d.jsx(mv,{value:"en",children:"English"}),d.jsx(mv,{value:"pt",children:"Portuguese"}),d.jsx(mv,{value:"es",disabled:!0,children:"Spanish"})]}),d.jsxs(gs,{label:"Notifications",children:[d.jsx(j2,{children:"Calendar"}),d.jsx(j2,{checked:!0,children:"Weather"})]}),d.jsx(gs,{children:d.jsxs(GB,{children:[d.jsx(KB,{children:"System"}),d.jsxs(qB,{children:[d.jsxs(gs,{children:[d.jsx(Ya,{icon:M7,children:"Date & Time"}),d.jsx(Ya,{icon:P7,children:"Users"})]}),d.jsx(gs,{children:d.jsx(Ya,{icon:j7,color:"danger",children:"Factory reset"})})]})]})})]})]})})}function sY(){return d.jsx(ct,{title:"Icon button",docsPage:"ostack-ui-forms-icon-button",children:d.jsx(It,{cols:{Neutral:"neutral",Primary:"primary",Success:"success",Danger:"danger",Warning:"warning",Disabled:"disabled",Loading:"loading",Keybinds:"keybinds"},rows:{Solid:"solid",Subtle:"subtle",Outlined:"outlined",Ghost:"ghost"},renderItem:({col:e,row:t})=>d.jsx(xa,{label:"Bloom",icon:N7,variant:t,color:e==="disabled"||e==="loading"||e==="keybinds"?void 0:e,disabled:e==="disabled",loading:e==="loading",loadingLabel:e==="loading"?"Blooming…":void 0,keybinds:e==="keybinds"?"Alt+Shift+B":void 0})})})}function lY(){return d.jsx(ct,{title:"Input",docsPage:"ostack-ui-forms-input",children:d.jsx(It,{cols:{Basic:"","Helper text":"helperText",Required:"required","Label help":"labelHelp",Disabled:"disabled","Read-only":"readOnly",Loading:"loading",Code:"code","Clear button":"showClearButton"},rows:{"No status":void 0,Valid:"valid",Invalid:"invalid",Warned:"warned"},renderItem:({col:e,row:t})=>d.jsxs(Vn,{children:[d.jsx(Nn,{helperText:e==="labelHelp"?"Used to sign in.":void 0,children:"Username"}),d.jsx(jo,{containerProps:{style:{width:110}},defaultValue:"j_smith",status:t,required:e==="required",disabled:e==="disabled",readOnly:e==="readOnly",loading:e==="loading",code:e==="code"?"1.1":void 0,showClearButton:e==="showClearButton"?"auto":void 0}),t==="valid"&&d.jsx(Ct,{type:"success",children:"Available."}),t==="warned"&&d.jsx(Ct,{type:"warning",children:"Already taken."}),t==="invalid"&&d.jsx(Ct,{children:"Invalid format."}),e==="helperText"&&d.jsx(or,{children:"Used to sign in."})]})})})}function cY(){return d.jsxs(ct,{title:"Keyboard",docsPage:"ostack-ui-typography-keyboard",children:["Press ",d.jsx(jf,{children:"Ctrl"})," + ",d.jsx(jf,{children:"P"})," to print."]})}function uY(){return d.jsx(ct,{title:"Link",docsPage:"ostack-ui-typography-link",children:d.jsx(It,{cols:{Neutral:"neutral",Primary:"primary",Success:"success",Danger:"danger",Warning:"warning",External:"external"},renderItem:({col:e})=>d.jsx(zf,{href:e==="external"?"https://www.wikipedia.org/":"#",color:e==="external"?void 0:e,external:e==="external",children:e==="external"?"Wikipedia":"Go to top"})})})}function fY(){return d.jsx(ct,{title:"Mark",docsPage:"ostack-ui-typography-mark",children:d.jsx(It,{cols:{Neutral:"neutral",Primary:"primary",Success:"success",Danger:"danger",Warning:"warning"},renderItem:({col:e})=>d.jsxs(d.Fragment,{children:["The deadline is ",d.jsx(sT,{color:e,children:"Friday"}),"."]})})})}function dY(){return d.jsx(ct,{title:"Menu list",docsPage:"ostack-ui-overlay-dropdown-menu",children:d.jsx(It,{cols:{Subtle:"subtle",Solid:"solid"},renderItem:({col:e})=>d.jsxs(Td,{variant:e,style:{width:250},children:[d.jsxs(If,{label:"Actions",children:[d.jsx(Ga,{icon:_7,selected:!0,children:"View"}),d.jsx(Ga,{icon:k7,children:"Edit"}),d.jsx(Ga,{icon:Z3,color:"danger",children:"Delete"})]}),d.jsxs(If,{label:"Links",children:[d.jsx(Ga,{type:"link",href:"https://www.wikipedia.org/",icon:oY,target:"_blank",rel:"noopener noreferrer",children:"Wikipedia"}),d.jsx(Ga,{type:"link",href:"https://react.dev",icon:rY,target:"_blank",rel:"noopener noreferrer",children:"React"})]})]})})})}function hY(){return d.jsx(ct,{title:"Numeric input",docsPage:"ostack-ui-forms-numeric-input",children:d.jsx(It,{cols:{Basic:"","Helper text":"helperText",Required:"required",Disabled:"disabled","Read-only":"readOnly",Loading:"loading",Code:"code","Clear button":"showClearButton"},rows:{"No status":void 0,Valid:"valid",Invalid:"invalid",Warned:"warned"},renderItem:({col:e,row:t})=>d.jsxs(Vn,{children:[d.jsx(Nn,{children:"Income"}),d.jsx(AH,{containerProps:{style:{width:120}},defaultValue:42000.9,precision:11,scale:2,groupDigits:!0,min:0,endAdornment:d.jsx(ks,{children:"€"}),status:t,required:e==="required",disabled:e==="disabled",readOnly:e==="readOnly",loading:e==="loading",code:e==="code"?"3.9":void 0,showClearButton:e==="showClearButton"?"auto":void 0}),t==="valid"&&d.jsx(Ct,{type:"success",children:"Confirmed."}),t==="warned"&&d.jsx(Ct,{type:"warning",children:"Processing…"}),t==="invalid"&&d.jsx(Ct,{children:"Insufficient."}),e==="helperText"&&d.jsx(or,{children:"For tax purposes."})]})})})}function mY(){return d.jsx(ct,{title:"Output",docsPage:"ostack-ui-forms-output",children:d.jsx(It,{cols:{Basic:"","Helper text":"helperText",Pending:"pending",Code:"code"},rows:{"No status":void 0,Valid:"valid",Invalid:"invalid",Warned:"warned"},renderItem:({col:e,row:t})=>d.jsxs(Vn,{children:[d.jsx(Nn,{children:"Total"}),d.jsx(RH,{containerProps:{style:{width:150}},status:t,pending:e==="pending",code:e==="code"?"6.2":void 0,children:"$30,000"}),t==="valid"&&d.jsx(Ct,{type:"success",children:"Funds available."}),t==="warned"&&d.jsx(Ct,{type:"warning",children:"Funds unavailable."}),t==="invalid"&&d.jsx(Ct,{children:"Incorrect amount."}),e==="helperText"&&d.jsx(or,{children:"A + B + C + D - E"})]})})})}function vY(){const e=zc();return d.jsx(ct,{title:"Popover",docsPage:"ostack-ui-overlay-popover",children:d.jsxs(Xs,{children:[d.jsx(Zs,{children:d.jsx(ln,{icon:R7,children:"Comment"})}),d.jsx(Qs,{style:{padding:e(2)},children:d.jsx(pi,{asChild:!0,gap:2,alignItems:"flex-end",children:d.jsxs("form",{children:[d.jsxs(Vn,{children:[d.jsx(Nn,{children:"Leave a comment"}),d.jsx(BT,{rows:6,style:{width:300}})]}),d.jsx(ln,{color:"primary",type:"submit",onClick:t=>t.preventDefault(),children:"Submit"})]})})})]})})}function pY(){return d.jsx(ct,{title:"Radio group",docsPage:"ostack-ui-forms-radio-group",children:d.jsx(It,{cols:{Basic:"","Helper text":"helperText",Required:"required",Disabled:"disabled","Read-only":"readOnly",Loading:"loading",Code:"code","All codes":"allCodes","Clear button":"clearButton"},rows:{"No status":void 0,Valid:"valid",Invalid:"invalid",Warned:"warned"},renderItem:({col:e,row:t})=>d.jsxs(Vn,{children:[d.jsx(Nn,{children:"Preferred make"}),d.jsxs(jH,{status:t,defaultValue:"fiat",required:e==="required",disabled:e==="disabled",readOnly:e==="readOnly",loading:e==="loading",code:e==="code"||e==="allCodes"?"1.7":void 0,showClearButton:e==="clearButton"?"auto":void 0,children:[d.jsx(pv,{value:"fiat",code:e==="allCodes"?"a":void 0,children:"Fiat"}),d.jsx(pv,{value:"renault",code:e==="allCodes"?"b":void 0,children:"Renault"}),d.jsx(pv,{value:"toyota",code:e==="allCodes"?"c":void 0,children:"Toyota"})]}),t==="valid"&&d.jsx(Ct,{type:"success",children:"Available."}),t==="warned"&&d.jsx(Ct,{type:"warning",children:"Maybe unavailable."}),t==="invalid"&&d.jsx(Ct,{children:"Unavailable."}),e==="helperText"&&d.jsx(or,{children:"All with low mileage."})]})})})}function gY(){return d.jsx(ct,{title:"Select",docsPage:"ostack-ui-forms-select",children:d.jsx(It,{cols:{Single:"",Multiple:"multiple","Helper text":"helperText",Required:"required",Disabled:"disabled","Read-only":"readOnly",Loading:"loading",Code:"code"},rows:{"No status":void 0,Valid:"valid",Invalid:"invalid",Warned:"warned"},renderItem:({col:e,row:t})=>d.jsxs(Vn,{children:[d.jsxs(Nn,{children:["Pick your fruit",e==="multiple"&&"s"]}),d.jsxs(hc,{containerProps:{style:{width:120}},multiple:e==="multiple",defaultValue:e==="multiple"?["apple","kiwi"]:"apple",status:t,required:e==="required",disabled:e==="disabled",readOnly:e==="readOnly",loading:e==="loading",code:e==="code"?"2.1":void 0,children:[d.jsx(yo,{value:"apple",children:"Apple"}),d.jsx(yo,{value:"kiwi",children:"Kiwi"}),d.jsx(yo,{value:"pear",children:"Pear"})]}),t==="valid"&&d.jsx(Ct,{type:"success",children:"Available."}),t==="warned"&&d.jsx(Ct,{type:"warning",children:"Maybe unavailable."}),t==="invalid"&&d.jsx(Ct,{children:"Unavailable."}),e==="helperText"&&d.jsx(or,{children:"For breakfast."})]})})})}function bY(){return d.jsx(ct,{title:"Spinner",docsPage:"ostack-ui-feedback-spinner",children:d.jsx(It,{cols:{Neutral:"neutral",Primary:"primary",Success:"success",Danger:"danger",Warning:"warning",Labelled:"label"},renderItem:({col:e})=>d.jsx(An,{color:e==="label"?void 0:e,label:e==="label"?"Loading…":void 0})})})}const fp=[{student:"Avi Everett",grade:82.5},{student:"Evan Gutierrez",grade:67.8},{student:"Jackson Ford",grade:55.1},{student:"Olivia Cortes",grade:77.5}],yY=fp.reduce((e,{grade:t})=>e+t,0)/fp.length;function xY(){return d.jsx(ct,{title:"Table",docsPage:"ostack-ui-data-data-display-table",children:d.jsx(It,{cols:{Default:"default",Annexes:"control"},renderItem:({col:e})=>d.jsxs(GE,{caption:"Exam grades",variant:e,style:{width:250},children:[d.jsxs(QE,{children:[d.jsx(kf,{label:"Student"}),d.jsx(kf,{label:"Grade",align:"right"})]}),d.jsx(qE,{children:fp.map(({student:t,grade:a},o)=>d.jsxs(dc,{children:[d.jsx(li,{header:!0,children:t}),d.jsx(li,{align:"right",children:a.toFixed(1)})]},o))}),d.jsx(KE,{children:d.jsxs(dc,{children:[d.jsx(li,{header:!0,children:"Average"}),d.jsx(li,{align:"right",children:yY.toFixed(1)})]})})]})})})}function wY(){const e=zc();return d.jsx(ct,{title:"Tabs",docsPage:"ostack-ui-data-disclosure-tabs",children:d.jsx(It,{cols:{Default:"default",Annexes:"annexes"},renderItem:({col:t})=>d.jsxs(PH,{variant:t,defaultValue:"accessibility",children:[d.jsxs(LH,{children:[d.jsx(gv,{value:"accessibility",children:"Accessibility"}),d.jsx(gv,{value:"privacy",children:"Privacy & Security"}),d.jsx(gv,{value:"system",children:"System"})]}),d.jsx(bv,{value:"accessibility",style:{marginTop:e(2)},children:"Accessibility options…"}),d.jsx(bv,{value:"privacy",style:{marginTop:e(2)},children:"Privacy & Security settings…"}),d.jsx(bv,{value:"system",style:{marginTop:e(2)},children:"System configuration…"})]})})})}function CY(){return d.jsx(ct,{title:"Tag",docsPage:"ostack-ui-data-display-tag",children:d.jsx(It,{cols:{Neutral:"neutral",Primary:"primary",Success:"success",Danger:"danger",Warning:"warning",Pill:"pill",Icon:"icon","Close button":"showCloseButton"},rows:{Solid:"solid",Subtle:"subtle",Outlined:"outlined"},renderItem:({col:e,row:t})=>d.jsx(DT,{variant:t,color:e==="pill"||e==="icon"||e==="showCloseButton"?"neutral":e,pill:e==="pill",icon:e==="icon"?Y7:void 0,showCloseButton:e==="showCloseButton",children:"New"})})})}function SY(){return d.jsx(ct,{title:"Text area",docsPage:"ostack-ui-forms-text-area",children:d.jsx(It,{cols:{Basic:"","Helper text":"helperText",Required:"required",Disabled:"disabled","Read-only":"readOnly",Loading:"loading",Code:"code","Clear button":"showClearButton"},rows:{"No status":void 0,Valid:"valid",Invalid:"invalid",Warned:"warned"},renderItem:({col:e,row:t})=>d.jsxs(Vn,{children:[d.jsx(Nn,{children:"Additional requests"}),d.jsx(BT,{containerProps:{style:{width:130}},defaultValue:"Please provide two extra towels.",status:t,required:e==="required",disabled:e==="disabled",readOnly:e==="readOnly",loading:e==="loading",code:e==="code"?"4.1":void 0,showClearButton:e==="showClearButton"?"auto":void 0}),t==="valid"&&d.jsx(Ct,{type:"success",children:"Accepted."}),t==="warned"&&d.jsx(Ct,{type:"warning",children:"Unable to process."}),t==="invalid"&&d.jsx(Ct,{children:"Invalid request."}),e==="helperText"&&d.jsx(or,{children:"We will attempt to honour them."})]})})})}function EY(){const{addToast:e}=CL();return d.jsx(ct,{title:"Toast",docsPage:"ostack-ui-feedback-toast",children:d.jsx(It,{cols:{Neutral:"neutral",Info:"info",Success:"success",Danger:"danger",Warning:"warning",Title:"title",Action:"action"},rows:{Solid:"solid",Subtle:"subtle",Outlined:"outlined"},renderItem:({col:t,row:a})=>d.jsx(ln,{icon:F7,color:t==="info"||t==="title"||t==="action"?"primary":t,variant:a,onClick:()=>{e("Item has been bookmarked.",{title:t==="title"?"Bookmarked":void 0,variant:a,severity:t==="title"||t==="action"?void 0:t,action:t==="action"&&d.jsx(ln,{keybinds:"$mod+Z",color:"primary",children:"Undo"}),actionAltText:"Undo (Ctrl+Z)"})},children:"Bookmark"})})})}function TY(){return d.jsx(ct,{title:"Tooltip",docsPage:"ostack-ui-overlay-tooltip",children:d.jsx(kc,{content:"Press to reload all content",children:d.jsx(ln,{children:"Refresh"})})})}const DY="https://ui.ostack.tech/";function _Y({docsUrl:e=DY,title:t=document.title,prefix:a,actions:o}){return d.jsx(HT,{value:{docsUrl:e},children:d.jsxs(No,{prefix:a,locale:VL,children:[d.jsx(cn,{focusable:!0,asChild:!0,children:d.jsx(zf,{href:"#exhibit-main",style:{top:6,left:6},children:"Skip to main content"})}),d.jsx(R2,{asChild:!0,children:d.jsxs("header",{id:"exhibit-header",children:[d.jsx(NT,{level:1,id:"exhibit-title",children:t}),o&&d.jsx(pi,{id:"exhibit-actions",direction:"row",gap:2,children:o})]})}),d.jsx(pi,{asChild:!0,gap:15,children:d.jsx(R2,{asChild:!0,children:d.jsxs("main",{id:"exhibit-main",tabIndex:-1,children:[d.jsx(UH,{}),d.jsx(YH,{}),d.jsx(VH,{}),d.jsx($H,{}),d.jsx(WH,{}),d.jsx(qH,{}),d.jsx(GH,{}),d.jsx(KH,{}),d.jsx(XH,{}),d.jsx(QH,{}),d.jsx(JH,{}),d.jsx(eY,{}),d.jsx(tY,{}),d.jsx(nY,{}),d.jsx(iY,{}),d.jsx(sY,{}),d.jsx(lY,{}),d.jsx(uY,{}),d.jsx(fY,{}),d.jsx(dY,{}),d.jsx(hY,{}),d.jsx(mY,{}),d.jsx(vY,{}),d.jsx(pY,{}),d.jsx(gY,{}),d.jsx(bY,{}),d.jsx(xY,{}),d.jsx(wY,{}),d.jsx(CY,{}),d.jsx(EY,{}),d.jsx(SY,{}),d.jsx(TY,{}),d.jsx(cY,{})]})})})]})})}nM.createRoot(document.getElementById("root")).render(d.jsx(p.StrictMode,{children:d.jsx(_Y,{})}));
|
|
626
|
+
`),l=!1),Object.assign(Object.assign({},e),{allowNegative:l})}function SH(e){e=CH(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,a=e.allowNegative,o=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=go);var l=e.onBlur;l===void 0&&(l=go);var u=e.thousandSeparator,f=e.decimalScale,h=e.fixedDecimalScale,v=e.prefix;v===void 0&&(v="");var y=e.defaultValue,g=e.value,x=e.valueIsNumericString,w=e.onValueChange,S=OT(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),C=_d(e),E=C.decimalSeparator,D=C.allowedDecimalSeparators,_=function(I){return L2(I,e)},M=function(I,B){return xH(I,B,e)},R=Ms(g)?y:g,A=x??yH(R,v,t);Ms(g)?Ms(y)||(A=A||typeof y=="number"):A=A||typeof g=="number";var O=function(I){return RT(I)?I:(typeof I=="number"&&(I=IT(I)),A&&typeof f=="number"?I2(I,f,!!h):I)},j=LT(O(g),O(y),!!A,_,M,w),z=j[0],$=z.numAsString,V=z.formattedValue,U=j[1],ie=function(I){var B=I.target,H=I.key,q=B.selectionStart,le=B.selectionEnd,k=B.value;if(k===void 0&&(k=""),(H==="Backspace"||H==="Delete")&&le<v.length){I.preventDefault();return}if(q!==le){i(I);return}H==="Backspace"&&k[0]==="-"&&q===v.length+1&&a&&oi(B,1),f&&h&&(H==="Backspace"&&k[q-1]===E?(oi(B,q-1),I.preventDefault()):H==="Delete"&&k[q]===E&&I.preventDefault()),D?.includes(H)&&k[q]===E&&oi(B,q+1);var W=u===!0?",":u;H==="Backspace"&&k[q-1]===W&&oi(B,q-1),H==="Delete"&&k[q]===W&&oi(B,q+1),i(I)},Q=function(I){var B=$;if(B.match(/\d/g)||(B=""),o||(B=iH(B)),h&&f&&(B=I2(B,f,h)),B!==$){var H=L2(B,e);U({formattedValue:H,value:B,floatValue:parseFloat(B)},{event:I,source:mc.event})}l(I)},Z=function(I){return I===E?!0:vc(I)},se=function(I){var B=I.currentValue,H=I.lastValue,q=I.formattedValue,le=I.currentValueIndex,k=I.formattedValueIndex,W=B[le],L=q[k],X=zT(H,B),ee=X.to,ne=function(ue){return M(ue).indexOf(".")+v.length};return g===0&&h&&f&&B[ee.start]===E&&ne(B)<le&&ne(q)>k?!1:le>=ee.start&&le<ee.end&&D&&D.includes(W)&&L===E?!0:W===L};return Object.assign(Object.assign({},S),{value:V,valueIsNumericString:!1,isValidInputCharacter:Z,isCharacterSame:se,onValueChange:U,format:_,removeFormatting:M,getCaretBoundary:function(I){return wH(I,e)},onKeyDown:ie,onBlur:Q})}function EH(e){var t=SH(e);return ye.createElement(pH,Object.assign({},t))}function PT(e){return Array.isArray(e)?e:String(e).split(/[eE]/)}function TH(e){const t=PT(e);return!Number.isNaN(Number(t[1]))}function DH(e){const t=PT(e);if(!TH(t))return t[0];const a=t[0][0]==="-"?"-":"",i=t[0].replace(/^-/,"").split("."),l=i[0],u=i[1]||"";let f=Number(t[1]);if(f===0)return`${a+l}.${u}`;if(f<0){const h=l.length+f;if(h>0){const v=l.substr(0,h),y=l.substr(h);return`${a+v}.${y}${u}`}else{let v="0.";for(f=h;f;)v+="0",f+=1;return a+v+l+u}}else{const h=u.length-f;if(h>0){const v=u.substr(f),y=u.substr(0,f);return`${a+l+y}.${v}`}else{let v=-h,y="";for(;v;)y+="0",v-=1;return a+l+u+y}}}function Jl(e){return typeof e=="string"?e:typeof e=="bigint"?e.toString():e==null||isNaN(e)?"":DH(e)}function pc(e){return e.startsWith("-")}function qg(e){return e===""||e==="-"||e==="."||e==="-."}function Lf(e){if(qg(e))return"";const t=pc(e);t&&(e=e.slice(1));let[a,o]=e.split(".");a=a.replace(/^0*/,""),o=o?.replace(/0*$/,"");const i=!a&&!o?"0":a&&!o?a:!a&&o?`0.${o}`:`${a}.${o}`;return t?`-${i}`:i}function mn(e,t){const a=pc(e),o=pc(t),i=Lf(e).slice(a?1:0)||"0",l=Lf(t).slice(o?1:0)||"0";if(a!==o)return i==="0"&&l==="0"?0:o?1:-1;const u=a?-1:1,[f,h=""]=i.split("."),[v,y=""]=l.split(".");if(f.length!==v.length)return(f.length>v.length?1:-1)*u;for(let g=0;g<f.length;++g){const x=f[g],w=v[g];if(x!==w)return(x>w?1:-1)*u}for(let g=0;g<Math.max(h.length,y.length);++g){const x=h[g]??"0",w=y[g]??"0";if(x!==w)return(x>w?1:-1)*u}return 0}function _H(e,t){if(qg(e)||t===0)return e;const a=pc(e),i=(a?e.slice(1):e).padStart(t+1,"0");return`${a?"-":""}${i.slice(0,-t)}.${i.slice(-t)}`}function MH(e,t){if(qg(e))return e;const[a,o=""]=e.split(".");if(t===0)return a;const i=o.length>t?o.slice(0,t):o.padEnd(t,"0");return`${a}${i}`}const AH=p.forwardRef(function({defaultValue:t,value:a,valueIsUnformattedString:o=!1,valueIsInteger:i=!1,onValueChange:l,precision:u,scale:f,fixedScale:h=f!=null,decimalSeparator:v,groupDigits:y=!1,groupingStyle:g,groupSeparator:x,min:w,max:S,exclusiveMin:C,exclusiveMax:E,allowValue:D,..._},M){const R=Jl(w),A=Jl(S),O=Jl(C),j=Jl(E),[z]=lt();v??=z.NumericInput.decimalSeparator??".",g??=z.NumericInput.groupingStyle??"thousand",x??=z.NumericInput.groupSeparator??",";const $=p.useCallback(I=>{l?.(P2(I,i,f))},[l,f,i]),V=p.useCallback(I=>{const B=P2(I,i,f),{stringValue:H}=B;if(H){if(u!=null){const q=pc(H);if(i){if(H.length-(q?1:0)>u)return!1}else{const le=H.indexOf(".");if((le===-1?H:H.slice(0,le)).length-(q?1:0)>u-f)return!1}}if(R&&(mn(R,"0")<0&&mn(H,R)<0||mn(R,"0")>=0&&mn(H,"0")<0)||A&&(mn(A,"0")>0&&mn(H,A)>0||mn(A,"0")<=0&&mn(H,"0")>0)||O&&(mn(O,"0")<0&&mn(H,O)<=0||mn(O,"0")>=0&&mn(H,"0")<0)||j&&(mn(j,"0")>0&&mn(H,j)>=0||mn(j,"0")<=0&&mn(H,"0")>0))return!1}return D?.(B)??!0},[i,f,D,u,R,A,O,j]),U=(!R||mn(R,"0")<0)&&(!O||mn(O,"0")<0),ie=a===void 0?"defaultValue":"value",Q=a===void 0?t:a,Z=NH(Q,o,i,f),se={[ie]:Z?OH(Q,f):Q??""};return d.jsx(EH,{...se,valueIsNumericString:Z||o,onValueChange:$,decimalScale:f??void 0,fixedDecimalScale:h,decimalSeparator:v,thousandsGroupStyle:y?g:"none",thousandSeparator:y?x:"",isAllowed:V,allowNegative:U,customInput:jo,getInputRef:M,..._})});function NH(e,t,a,o){return e!=null&&a&&!!o&&(typeof e!="string"||t)}function OH(e,t){const a=Jl(e);return _H(a,t)}function P2({formattedValue:e,value:t,floatValue:a},o,i){if(!o||!i||Number.isNaN(a)||a==null)return{formattedValue:e,stringValue:Lf(t),numberValue:Number.isNaN(a)||a==null?null:a};const l=Lf(MH(t,i));return{formattedValue:e,stringValue:l,numberValue:+l}}const RH=p.forwardRef(function({pending:t,pendingContent:a,showSpinner:o=t,children:i,className:l,...u},f){const h=me();return d.jsx(jo,{showSpinner:o,"aria-busy":t||void 0,"aria-disabled":void 0,"aria-invalid":void 0,...u,className:P(h("output"),l),readOnly:!0,asChild:!0,children:d.jsx("output",{ref:f,children:t&&a||i})})}),pv=p.forwardRef(function({value:t,status:a,code:o,loading:i,loadingDescription:l,showSpinner:u=i,children:f,rootProps:h,codeProps:v,indicatorProps:y,labelProps:g,spinnerProps:x,id:w,disabled:S,readOnly:C,onClick:E,className:D,"aria-label":_,"aria-labelledby":M,...R},A){const O=me(),[j]=lt();l??=j.Input.loadingDescription;const z=Cd(),$=p.useId(),V=w??O(`control-${$}`),U=o!=null&&typeof o!="boolean"&&(v?.id??O(`control-code-${$}`)),ie=f&&(g?.id??O(`radio-label-${$}`)),Q=i&&l&&O(`control-loading-${$}`);a=z?.status??a,S=z?.disabled||S,i=z?.loading||i,C=z?.readOnly||C;const Z=p.useCallback(I=>{(i||C)&&I.preventDefault()},[i,C]),se=dn(U,ie);return d.jsxs(d.Fragment,{children:[d.jsxs("div",{"data-status":a,...h,className:P(O("radio__root"),h?.className),children:[U&&d.jsx(Ks,{status:a,...v,id:U,className:P(O("radio__code"),v?.className),children:o}),d.jsx(AO,{id:V,className:P(O("radio"),D),value:t?.toString()??"",disabled:S,"data-loading":Ee(i),"data-readonly":Ee(C),"data-status":a,"aria-disabled":i||C||void 0,"aria-label":_,"aria-labelledby":M??(_===void 0&&se!==ie?se:void 0),...R,onClick:Ce(E,Z),ref:A,children:d.jsx(NO,{...y,className:P(O("radio__indicator"),y?.className)})}),ie&&d.jsx(Nn,{htmlFor:V,"data-status":a,...g,id:ie,className:P(O("radio__label"),g?.className),containerProps:{...g?.containerProps,className:P(O("radio__label-container"),g?.containerProps?.className)},children:f}),u&&d.jsx(An,{"data-status":a,"data-disabled":Ee(S||i),...x,className:P(O("radio__spinner"),x?.className)})]}),Q&&d.jsx("span",{hidden:!0,id:Q,children:l})]})}),jH=p.forwardRef(function({defaultValue:t,value:a,onValueChange:o,inline:i,variant:l,status:u,loading:f,loadingDescription:h,showSpinner:v=f,code:y,showClearButton:g,clearDescription:x,clearButtonLabel:w,onBlurToOutside:S,codeProps:C,containerProps:E,endContainerProps:D,clearButtonProps:_,spinnerProps:M,id:R,required:A,disabled:O,readOnly:j,className:z,children:$,"aria-label":V,"aria-labelledby":U,"aria-describedby":ie,onFocus:Q,onBlur:Z,onKeyDown:se,...I},B){const H=me(),[q]=lt();h??=q.Input.loadingDescription,w??=q.Input.clearButtonLabel,x??=q.RadioGroup.clearDescription;const le=Us(),k=Ys(),W=$s(),L=Vs(),[X,ee]=Cn(t??"",a),{generatedId:ne,controlId:ue,codeId:he}=Ws(R,"DIV",C?.id,!!y,A),K=f&&h&&H(`control-loading-${ne}`),ve=p.useRef(null),pe=Si();i??=pe,l??=pe?"cell":"default";const De=p.useCallback(Ne=>{!f&&!j&&(ee(Ne),o?.(Ne))},[f,o,j,ee]),we=Mc(),Ae=p.useCallback(()=>{we(!0)},[we]),it=p.useCallback(Ne=>{we(!1),(!Ne.relatedTarget||!ve.current?.contains(Ne.relatedTarget))&&S?.(Ne)},[S,we]),qe=p.useCallback(()=>{De(""),ve.current?.focus()},[De]),re=!O&&!f&&!j&&(g===!0||g==="auto"&&(X?.length??0)>0),ge=re&&x&&H(`control-clear-${ne}`),be=p.useCallback(Ne=>{re&&(Ne.code==="Delete"||Ne.code==="Backspace")&&qe()},[qe,re]),Re=Xe(ve,B);return d.jsx(vn,{children:d.jsx(Oo.Provider,{value:{variant:l,status:u,disabled:O,loading:f,readOnly:j},children:d.jsxs(MO,{value:X,onValueChange:De,id:ue,"data-status":u,"data-accent":sn(u),"data-variant":l,required:A,disabled:O,className:P(H("radio-group"),i&&H("radio-group--inline"),z),"aria-disabled":f||j||void 0,"aria-invalid":u==="invalid"||void 0,"aria-label":V,"aria-labelledby":U??(V===void 0?dn(he,le??k):void 0),"aria-describedby":dn(K,L,ie,W,ge),onFocus:Ce(Q,Ae),onBlur:Ce(Z,it),onKeyDown:Ce(se,be),...I,ref:Re,children:[y!=null&&typeof y!="boolean"&&d.jsx(Ks,{status:u,...C,id:he,className:P(H("radio-group__code"),C?.className),children:y}),d.jsx("div",{"data-status":u,"data-variant":l,"data-disabled":Ee(O||f),"data-readonly":Ee(j),...E,className:P(H("radio-group__container"),E?.className),children:d.jsx(vn,{children:$})}),(re||v)&&d.jsxs("div",{"data-status":u,"data-variant":l,"data-disabled":Ee(O||f),"data-readonly":Ee(j),...D,className:P(H("radio-group__end-container"),D?.className),children:[re&&d.jsx(To,{size:"sm",label:w,tabIndex:-1,circle:!0,..._,className:P(H("radio-group__clear-button"),_?.className),onClick:Ce(_?.onClick,qe,{checkDefaultPrevented:!0}),onFocus:Ce(_?.onFocus,Ae),onBlur:Ce(_?.onBlur,it)}),v&&d.jsx(An,{color:sn(u,"neutral"),"data-disabled":Ee(O||f),...M,className:P(H("radio-group__spinner"),M?.className)})]}),K&&d.jsx("span",{hidden:!0,id:K,children:h}),ge&&d.jsx("span",{hidden:!0,id:ge,children:x})]})})})}),FT=p.createContext(null);function kH(e,t,a,o){const i=wi(()=>ar()(xi((l,u)=>({activeTab:a?.toString()??t?.toString(),showScrollButtons:!1,width:0,scrollPosition:void 0,tabsLabels:{},actions:{registerTabLabel:(f,h)=>(l(({tabsLabels:v})=>({tabsLabels:{...v,[f]:h}})),()=>{l(({tabsLabels:{[f]:v,...y}})=>({tabsLabels:y}))}),getTabLabel:f=>u().tabsLabels[f]}}))));return p.useEffect(()=>{a!==void 0&&i.setState({activeTab:a.toString()})},[i,a]),p.useMemo(()=>({variant:e,showAllTabsWhilePrinting:o,store:i}),[o,i,e])}function Js(){const e=p.useContext(FT);if(!e)throw new Error("Tabs context not in scope.");return e}function IH(e,t){const{showAllTabsWhilePrinting:a,store:o}=Js(),i=_c()&&a,{registerTabLabel:l}=He(o,u=>u.actions);p.useEffect(()=>{if(i)return l(e,t)},[t,i,l,e])}function zH(e){const{store:t}=Js();return He(t,a=>a.actions.getTabLabel(e))}const gv=p.forwardRef(function({value:t,status:a,tabInnerProps:o,className:i,children:l,...u},f){const h=me(),{variant:v,store:y}=Js(),g=t.toString(),x=He(y,E=>E.activeTab===g);IH(g,l);const w=p.useRef(null),S=p.useRef(x);p.useEffect(()=>{x&&!S.current&&setTimeout(()=>w.current?.scrollIntoView({block:"nearest"})),S.current=x},[x]);const C=Xe(w,f);return d.jsxs(IO,{value:g,className:P(h("tabs__tab"),h(`tabs__tab--${v}`),i),"data-status":a,"data-accent":sn(a),"aria-invalid":a==="invalid"||void 0,...u,ref:C,children:[d.jsx("span",{...o,className:P(h("tabs__tab-inner"),o?.className),children:l}),d.jsx("span",{...o,className:P(h("tabs__tab-inner"),h("tabs__tab-inner--hidden"),o?.className),children:l})]})}),bv=p.forwardRef(function({asChild:t,value:a,className:o,tabContentLabelProps:i,...l},u){const f=me(),h=_c(),v=a.toString(),{showAllTabsWhilePrinting:y}=Js(),g=zH(v),x=h&&y?t?Qe:"div":FS;return d.jsxs(d.Fragment,{children:[h&&y&&d.jsx("span",{...i,className:P(f("tabs__tab-content-label"),i?.className),children:g}),d.jsx(x,{...!h||!y?{asChild:t}:{},value:v,className:P(f("tabs__tab-content"),o),...l,ref:u})]})}),LH=p.forwardRef(function({scrollLeftButtonLabel:t,scrollRightButtonLabel:a,rootProps:o,containerProps:i,scrollLeftButtonProps:l,scrollRightButtonProps:u,className:f,children:h,...v},y){const g=me(),[x]=lt();t??=x.TabList.scrollLeftButtonLabel,a??=x.TabList.scrollRightButtonLabel;const{variant:w,showAllTabsWhilePrinting:S,store:C}=Js(),{printHidden:E}=Ro(),[D,_]=p.useState(null),[M,R]=p.useState(null);Ug(D,p.useCallback(z=>C.setState({width:z?.width}),[C])),WE(M,p.useCallback(z=>C.setState({scrollPosition:z}),[C])),p.useEffect(()=>C.subscribe(z=>z.width,z=>{C.setState({showScrollButtons:(M?.scrollWidth??0)>Math.ceil(z)})},{fireImmediately:!0}),[h,M,C]);const A=z=>{if(M){const $=M.clientWidth,V=Array.from(M.children);let U=0;for(let ie=0;ie<V.length;++ie){const Q=V[ie];if(U+Q.clientWidth>$){ie===0&&(U=$);break}U+=Q.clientWidth}M.scrollBy({left:z==="left"?-U:U,behavior:"smooth"})}};p.useEffect(()=>{if(M){const z=$=>{const V=$.deltaY;M&&V&&M.scrollWidth>Math.ceil(C.getState().width)&&($.preventDefault(),M.scrollLeft+=V)};return M.addEventListener("wheel",z),()=>M.removeEventListener("wheel",z)}},[M,C]);const O=Xe(_,o?.ref),j=Xe(R,i?.ref);return d.jsxs("div",{...o,className:P(g("tabs__tab-list-root"),g(`tabs__tab-list-root--${w}`),S&&E,o?.className),ref:O,children:[d.jsx(F2,{side:"left",label:t,...l,onClick:Ce(l?.onClick,()=>A("left"))}),d.jsx("div",{...i,className:P(g("tabs__tab-list-container"),g(`tabs__tab-list-container--${w}`),i?.className),ref:j,children:d.jsx(kO,{className:P(g("tabs__tab-list"),g(`tabs__tab-list--${w}`),f),...v,ref:y,children:h})}),d.jsx(F2,{side:"right",label:a,...u,onClick:Ce(u?.onClick,()=>A("right"))})]})});function F2({side:e,label:t,onClick:a,disabled:o,className:i,...l}){const u=me(),{store:f}=Js(),h=He(f,y=>y.showScrollButtons),v=He(f,({scrollPosition:y})=>y&&(e==="left"?y.left===0:y.right<=1));return h&&d.jsx(xa,{variant:"ghost",icon:e==="left"?t4:yg,label:t,className:P(u("tabs__scroll-button"),u(`tabs__scroll-button--${e}`),i),disabled:v||o,onClick:a,tabIndex:-1,...l})}const PH=p.forwardRef(function({variant:t="default",defaultValue:a,value:o,onValueChange:i,showAllTabsWhilePrinting:l,className:u,...f},h){const v=me(),y=kH(t,a,o,l),g=p.useCallback(x=>y.store.setState({activeTab:x}),[y.store]);return d.jsx(FT.Provider,{value:y,children:d.jsx(jO,{defaultValue:a?.toString(),value:o?.toString(),onValueChange:Ce(i,g),className:P(v("tabs"),v(`tabs--${t}`),u),...f,ref:h})})}),FH=3,BT=p.forwardRef(function({rows:t,...a},o){const i=Si();return t??=i?1:FH,d.jsx(jo,{asChild:!0,...a,children:d.jsx("textarea",{rows:t,ref:o})})}),BH="http://localhost:6006/",HT=p.createContext(null);function HH(){return p.useContext(HT)?.docsUrl??BH}function It({rows:e,cols:t,renderItem:a}){return d.jsxs("div",{className:"exhibit-grid",style:{"--exhibit-grid-cols":Object.keys(t).length+(e?1:0)},tabIndex:0,children:[e&&d.jsx("div",{}),Object.keys(t).map(o=>d.jsx("div",{className:"exhibit-grid-col-label",children:o},o)),Object.entries(e??{"":void 0}).map(([o,i])=>d.jsxs(p.Fragment,{children:[o&&d.jsx("div",{className:"exhibit-grid-row-label",children:o}),Object.entries(t).map(([l,u])=>d.jsx("div",{className:"exhibit-grid-item",children:a({row:i,col:u})},l))]},o))]})}function ct({title:e,docsPage:t,children:a}){const o=HH(),i=e.toLowerCase().replace(/[^a-z0-9]/g,"-");return d.jsx(pi,{asChild:!0,children:d.jsxs("section",{className:"exhibit-section","aria-labelledby":i,children:[d.jsx(pi,{asChild:!0,direction:"row",gap:4,alignItems:"baseline",children:d.jsxs("header",{children:[d.jsx(NT,{id:i,children:d.jsx(zf,{href:`#${i}`,color:"neutral",style:{color:"var(--o-ui-neutral-12)"},children:e})}),d.jsxs(zf,{className:"exhibit-section-docs-link",href:`${o}?path=/docs/${t}--docs`,external:!0,children:["View docs",d.jsxs(cn,{children:[" of ",e]})]})]})}),d.jsx("div",{className:"exhibit-section-content",children:a})]})})}function YH(){return d.jsx(ct,{title:"Alert dialog",docsPage:"ostack-ui-overlay-alert-dialog",children:d.jsx(It,{cols:{Neutral:"neutral",Primary:"primary",Success:"success",Danger:"danger",Warning:"warning"},rows:{Solid:"solid",Subtle:"subtle",Outlined:"outlined",Ghost:"ghost"},renderItem:({col:e,row:t})=>d.jsxs(u3,{children:[d.jsx(eL,{children:d.jsx(ln,{variant:t,color:e,children:"Restore"})}),d.jsxs(Jv,{variant:t,color:e,children:[d.jsx(np,{children:d.jsx(ap,{children:"Restore previous version?"})}),d.jsx(Zv,{children:d.jsx(ep,{children:"This will overwrite your current draft with the version saved on January 12th. Current changes will be lost."})}),d.jsxs(tp,{children:[d.jsx(pE,{children:d.jsx(ln,{variant:"subtle",children:"Go back"})}),d.jsx(Ov,{children:d.jsx(ln,{color:e,children:"Restore"})})]})]})]})})})}function UH(){return d.jsx(ct,{title:"Alert",docsPage:"ostack-ui-feedback-alert",children:d.jsx(It,{cols:{Neutral:"neutral",Info:"info",Success:"success",Danger:"danger",Warning:"warning",Title:"title",Action:"action","Close button":"showCloseButton"},rows:{Solid:"solid",Subtle:"subtle",Outlined:"outlined"},renderItem:({col:e,row:t})=>d.jsxs(SE,{variant:t,action:e==="action"&&d.jsx(ln,{color:"primary",children:"Accept"}),severity:e==="title"||e==="action"||e==="showCloseButton"?void 0:e,showCloseButton:e==="showCloseButton",children:[e==="title"&&d.jsx(rp,{children:"Notice"}),"Terms may apply."]})})})}function $H(){return d.jsx(ct,{title:"Button group",docsPage:"ostack-ui-layout-button-group",children:d.jsx(It,{cols:{Neutral:"neutral",Primary:"primary",Success:"success",Danger:"danger",Warning:"warning"},rows:{Solid:"solid",Subtle:"subtle",Outlined:"outlined",Ghost:"ghost"},renderItem:({col:e,row:t})=>d.jsxs(WL,{children:[d.jsx(ln,{icon:A7,variant:t,color:e,children:"Load"}),d.jsx(ln,{icon:T7,variant:t,color:e,children:"Save"}),d.jsx(xa,{icon:Z3,label:"Delete",variant:t,color:e})]})})})}function VH(){return d.jsx(ct,{title:"Button",docsPage:"ostack-ui-forms-button",children:d.jsx(It,{cols:{Neutral:"neutral",Primary:"primary",Success:"success",Danger:"danger",Warning:"warning",Disabled:"disabled",Loading:"loading",Keybinds:"keybinds",Vertical:"vertical"},rows:{Solid:"solid",Subtle:"subtle",Outlined:"outlined",Ghost:"ghost"},renderItem:({col:e,row:t})=>d.jsx(ln,{icon:K7,variant:t,color:e==="disabled"||e==="loading"||e==="keybinds"||e==="vertical"?void 0:e,disabled:e==="disabled",loading:e==="loading",loadingContent:e==="loading"?"Zapping…":void 0,keybinds:e==="keybinds"?"Alt+Shift+Z":void 0,vertical:e==="vertical",children:"Zap"})})})}function WH(){return d.jsx(ct,{title:"Calendar",docsPage:"ostack-ui-data-display-calendar",children:d.jsx(Wg,{})})}function GH(){return d.jsx(ct,{title:"Checkbox group",docsPage:"ostack-ui-forms-checkbox-group",children:d.jsx(It,{cols:{Basic:"","Helper text":"helperText",Required:"required",Disabled:"disabled","Read-only":"readOnly",Loading:"loading",Code:"code","All codes":"allCodes"},rows:{"No status":void 0,Valid:"valid",Invalid:"invalid",Warned:"warned"},renderItem:({col:e,row:t})=>d.jsxs(Vn,{children:[d.jsx(Nn,{children:"Toppings"}),d.jsxs(PB,{defaultValue:["caramel"],status:t,required:e==="required",disabled:e==="disabled",readOnly:e==="readOnly",loading:e==="loading",code:e==="code"||e==="allCodes"?"3.2":void 0,children:[d.jsx(_s,{value:"caramel",code:e==="allCodes"?"a":void 0,children:"Caramel"}),d.jsx(_s,{value:"chocolate",code:e==="allCodes"?"b":void 0,children:"Chocolate"}),d.jsx(_s,{value:"strawberry",code:e==="allCodes"?"c":void 0,children:"Strawberry"})]}),t==="valid"&&d.jsx(Ct,{type:"success",children:"Available."}),t==="warned"&&d.jsx(Ct,{type:"warning",children:"Maybe unavailable."}),t==="invalid"&&d.jsx(Ct,{children:"Unavailable."}),e==="helperText"&&d.jsx(or,{children:"Select all wanted."})]})})})}function qH(){return d.jsx(ct,{title:"Checkbox",docsPage:"ostack-ui-forms-checkbox",children:d.jsx(It,{cols:{Basic:"",Indeterminate:"indeterminate","Helper text":"helperText",Required:"required",Disabled:"disabled","Read-only":"readOnly",Loading:"loading",Code:"code"},rows:{"No status":void 0,Valid:"valid",Invalid:"invalid",Warned:"warned"},renderItem:({col:e,row:t})=>d.jsxs(Vn,{children:[d.jsx(_s,{status:t,defaultChecked:e==="indeterminate"?"indeterminate":!0,required:e==="required",disabled:e==="disabled",readOnly:e==="readOnly",loading:e==="loading",code:e==="code"?"1.5":void 0,children:"I accept"}),t==="valid"&&d.jsx(Ct,{type:"success",children:"Accepted."}),t==="warned"&&d.jsx(Ct,{type:"warning",children:"Are you sure?"}),t==="invalid"&&d.jsx(Ct,{children:"Must accept."}),e==="helperText"&&d.jsx(or,{children:"Please indicate."})]})})})}function KH(){return d.jsx(ct,{title:"Code",docsPage:"ostack-ui-typography-code",children:d.jsx(It,{cols:{Neutral:"neutral",Primary:"primary",Success:"success",Danger:"danger",Warning:"warning"},renderItem:({col:e})=>d.jsx(EE,{color:e,children:"Math.sin(1)"})})})}function XH(){const e=zc();return d.jsx(ct,{title:"Collapsible",docsPage:"ostack-ui-disclosure-collapsible",children:d.jsxs(kg,{children:[d.jsx(zg,{children:t=>d.jsxs(ln,{icon:t?V7:q7,iconPlacement:"end",children:[t?"Hide":"Show"," quote"]})}),d.jsx(Ig,{children:d.jsxs("blockquote",{cite:"https://gutenberg.net.au/ebooks02/0201091h.html",style:{marginTop:e(4)},children:[d.jsx("p",{children:'"The sun had not yet risen. The sea was indistinguishable from the sky, except that the sea was slightly creased as if a cloth had wrinkles in it. Gradually as the sky whitened a dark line lay on the horizon dividing the sea from the sky and the grey cloth became barred with thick strokes moving, one after another, beneath the surface, following each other, pursuing each other, perpetually."'}),d.jsxs("p",{children:["—Virginia Woolf, ",d.jsx("cite",{children:"The Waves"})]})]})})]})})}function QH(){const[e,t]=p.useState(!1),{cssVar:a}=qs(),o="$mod+K";ck(o,()=>t(!0),{preventDefault:!0});const i=()=>t(!1);return d.jsxs(ct,{title:"Command menu",docsPage:"ostack-ui-overlay-command-menu",children:[d.jsxs("span",{style:{color:a("neutral-11")},children:["Press ",d.jsx(yd,{keybinds:o})," to open the command menu."]}),d.jsx(AB,{open:e,onOpenChange:t,children:d.jsxs(TT,{children:[d.jsxs(O2,{label:"Actions",children:[d.jsx(Ma,{onSelect:i,children:"Find"}),d.jsx(Ma,{onSelect:i,children:"Replace"}),d.jsx(Ma,{onSelect:i,children:"Analyse"}),d.jsx(Ma,{onSelect:i,children:"Inspect"})]}),d.jsxs(O2,{label:"Languages",children:[d.jsx(Ma,{onSelect:i,children:"C"}),d.jsx(Ma,{onSelect:i,children:"C++"}),d.jsx(Ma,{onSelect:i,children:"Java"}),d.jsx(Ma,{onSelect:i,children:"JavaScript"}),d.jsx(Ma,{onSelect:i,children:"Python"}),d.jsx(Ma,{onSelect:i,children:"Rust"})]})]})})]})}const ZH=[{id:0,student:"Allyson Meyer",grade:84.2},{id:1,student:"Tristan Hogan",grade:71.5},{id:2,student:"Kathryn Duarte",grade:92.8},{id:3,student:"Abdullah Flynn",grade:58.4},{id:4,student:"Dorothy Davidson",grade:76.1},{id:5,student:"Dante Hurst",grade:89},{id:6,student:"Adalee Koch",grade:94.3},{id:7,student:"Salvador Reeves",grade:62.7},{id:8,student:"Lana Carr",grade:81.9},{id:9,student:"Kash Shaffer",grade:45.6},{id:10,student:"Alanna Bradley",grade:88.3},{id:11,student:"Richard Barker",grade:73.4},{id:12,student:"Remington Villalobos",grade:90.1},{id:13,student:"Reuben Rivera",grade:66.8},{id:14,student:"Lillian Page",grade:95.5},{id:15,student:"Pablo Miranda",grade:52.2},{id:16,student:"Amina McDowell",grade:79.7},{id:17,student:"Lachlan Austin",grade:83.1},{id:18,student:"Alivia Roberts",grade:70.4},{id:19,student:"Josiah Medina",grade:61.9},{id:20,student:"Elliana Delgado",grade:87.6},{id:21,student:"Colt Martin",grade:74.3},{id:22,student:"Mila Jenkins",grade:98.2},{id:23,student:"Declan Byrd",grade:55.9},{id:24,student:"Giselle Parsons",grade:82},{id:25,student:"Lewis Wallace",grade:69.1},{id:26,student:"Arianna Ahmed",grade:91.4},{id:27,student:"Harry Willis",grade:48.7},{id:28,student:"Alexa Griffin",grade:77.8},{id:29,student:"Ayden Woods",grade:63.5},{id:30,student:"Reese Allen",grade:85.3},{id:31,student:"Carter Moore",grade:90.7},{id:32,student:"Emily Spears",grade:72.2},{id:33,student:"Ameer McKinney",grade:59.9},{id:34,student:"Gwendolyn Sanford",grade:93.6},{id:35,student:"Truett Rangel",grade:68.4},{id:36,student:"Gloria Yoder",grade:80.5},{id:37,student:"Johan Fleming",grade:74.9},{id:38,student:"Fatima Gates",grade:88.2},{id:39,student:"Ermias McPherson",grade:51.3},{id:40,student:"Emmaline Ali",grade:96.4},{id:41,student:"Arjun Wade",grade:71.8},{id:42,student:"Evie Yates",grade:84.7},{id:43,student:"Braylon Golden",grade:67.2},{id:44,student:"Giuliana Paul",grade:92.1},{id:45,student:"Noel Wilkerson",grade:54.5},{id:46,student:"Janiyah Floyd",grade:78.9},{id:47,student:"Pierce Farmer",grade:86.4},{id:48,student:"Madelynn Duarte",grade:73.6},{id:49,student:"Abdullah Massey",grade:60.2},{id:50,student:"Clementine Clay",grade:99.1},{id:51,student:"Yosef Blair",grade:65.8},{id:52,student:"Frances Truong",grade:82.5},{id:53,student:"Ayan Davis",grade:75.3},{id:54,student:"Mia Roach",grade:90.9},{id:55,student:"Caspian Stein",grade:57.1},{id:56,student:"Leilany Villegas",grade:81.4},{id:57,student:"Clyde Corona",grade:64.6},{id:58,student:"Marianna Fletcher",grade:88.7},{id:59,student:"Jay McCarty",grade:72.9},{id:60,student:"Halo Rocha",grade:85},{id:61,student:"Onyx Davidson",grade:49.2},{id:62,student:"Jayla Whitehead",grade:77.4},{id:63,student:"Zayd Harvey",grade:93.2},{id:64,student:"Nicole Hubbard",grade:68.7},{id:65,student:"Forrest Bartlett",grade:80.1},{id:66,student:"Aubrielle Gallegos",grade:95.8},{id:67,student:"Jonas Mosley",grade:56.4},{id:68,student:"Zaniyah Lee",grade:82.3},{id:69,student:"Jack Giles",grade:71},{id:70,student:"Bailee Warren",grade:89.5},{id:71,student:"Abel Cruz",grade:63.8},{id:72,student:"Claire Steele",grade:91.2},{id:73,student:"Elian Berg",grade:74.5},{id:74,student:"Emmalyn McClain",grade:86.9},{id:75,student:"Mitchell Clayton",grade:53.7},{id:76,student:"Saige Graves",grade:78.2},{id:77,student:"Cesar Kane",grade:83.4},{id:78,student:"Ellianna Ortega",grade:97},{id:79,student:"Kobe Wallace",grade:33.5},{id:80,student:"Arianna Dorsey",grade:84.8},{id:81,student:"Enoch Elliott",grade:76.3},{id:82,student:"Noelle Estes",grade:90.4},{id:83,student:"Hakeem Andrews",grade:58.1},{id:84,student:"Payton Phelps",grade:82.6},{id:85,student:"Hamza Anthony",grade:69.9},{id:86,student:"Macy Horton",grade:87.2},{id:87,student:"Garrett Meyer",grade:75.8},{id:88,student:"Sara McClain",grade:94.1},{id:89,student:"Mitchell Magana",grade:52.9},{id:90,student:"Amaris Foster",grade:80.3},{id:91,student:"Kayden McGee",grade:66.4},{id:92,student:"Kayleigh Bean",grade:91.7},{id:93,student:"Mccoy Dunlap",grade:73.1},{id:94,student:"Iliana Ochoa",grade:85.5},{id:95,student:"Winston Hall",grade:47.8},{id:96,student:"Leah David",grade:79.2},{id:97,student:"Alonso Ballard",grade:88.9},{id:98,student:"Alejandra Bass",grade:62.1},{id:99,student:"Landen Santana",grade:95.2},{id:100,student:"Myra Knight",grade:70.8},{id:101,student:"Beckett Gilmore",grade:83.7},{id:102,student:"Chanel Rosas",grade:31.4},{id:103,student:"Remi Wade",grade:92.6},{id:104,student:"Evie Church",grade:68.2},{id:105,student:"Terrance Luna",grade:81.1},{id:106,student:"Journey Alfaro",grade:77.5},{id:107,student:"Xzavier Colon",grade:89.3},{id:108,student:"Remy Curry",grade:64.9},{id:109,student:"Briggs Hale",grade:96.7},{id:110,student:"Brinley Phillips",grade:59.3},{id:111,student:"Andrew Huynh",grade:82.4},{id:112,student:"Oaklee Gross",grade:74.1},{id:113,student:"Quinn Rosales",grade:90.8},{id:114,student:"Kinley Bartlett",grade:61.2},{id:115,student:"Kace Pineda",grade:85.9},{id:116,student:"Nola Maynard",grade:27.6},{id:117,student:"Landry Rowland",grade:93.4},{id:118,student:"Harleigh Camacho",grade:50.5},{id:119,student:"Tatum Lynn",grade:78.7},{id:120,student:"Samira Nelson",grade:86.2},{id:121,student:"Dylan Giles",grade:67.5},{id:122,student:"Bailee Hendricks",grade:94.8},{id:123,student:"Dash Carr",grade:71.3},{id:124,student:"Rowan Acosta",grade:44},{id:125,student:"Jensen Santana",grade:56.7},{id:126,student:"Myra Christensen",grade:91.9},{id:127,student:"Gregory Vu",grade:79.4},{id:128,student:"Kimora Delarosa",grade:88.5},{id:129,student:"Osiris Padilla",grade:28.2}];function JH(){return d.jsx(ct,{title:"Data table",docsPage:"ostack-ui-data-data-display-data-table",children:d.jsx(It,{cols:{Default:"default",Control:"control",Scrolled:"scrolled",Selectable:"showSelectionColumn"},renderItem:({col:e})=>d.jsx(Vn,{style:{width:450},children:d.jsxs(TF,{displayMode:e==="scrolled"?e:void 0,showSelectionColumn:e==="showSelectionColumn",rowKey:"id",defaultLimit:5,columns:{student:{label:"Student",header:!0,sortable:!0,filterable:!0},grade:{label:"Grade",align:"right",sortable:!0,filterable:!0,format:({value:t})=>t.toFixed(1)}},rows:ZH,children:[d.jsx(Nn,{children:"Exam grades"}),d.jsx(QF,{}),d.jsx(XF,{variant:e==="default"||e==="control"?e:void 0}),d.jsx(nB,{limitOptions:[5,10,25,50,100]}),d.jsx(eB,{})]})})})})}function eY(){return d.jsx(ct,{title:"Date input",docsPage:"ostack-ui-forms-date-input",children:d.jsx(It,{cols:{Basic:"","Helper text":"helperText",Required:"required",Disabled:"disabled","Read-only":"readOnly",Loading:"loading",Code:"code"},rows:{"No status":void 0,Valid:"valid",Invalid:"invalid",Warned:"warned"},renderItem:({col:e,row:t})=>d.jsxs(Vn,{children:[d.jsx(Nn,{children:"Birthday"}),d.jsx(AT,{containerProps:{style:{width:145}},defaultValue:new Date(1990,3,10),status:t,required:e==="required",disabled:e==="disabled",readOnly:e==="readOnly",loading:e==="loading",code:e==="code"?"7.2":void 0}),t==="valid"&&d.jsx(Ct,{type:"success",children:"Confirmed."}),t==="warned"&&d.jsx(Ct,{type:"warning",children:"Awaiting confirmation…"}),t==="invalid"&&d.jsx(Ct,{children:"Unable to confirm."}),e==="helperText"&&d.jsx(or,{children:"For legal purposes."})]})})})}function tY(){return d.jsx(ct,{title:"Date-range input",docsPage:"ostack-ui-forms-date-range-input",children:d.jsx(It,{cols:{Basic:"","Helper text":"helperText",Required:"required",Disabled:"disabled","Read-only":"readOnly",Loading:"loading",Code:"code"},rows:{"No status":void 0,Valid:"valid",Invalid:"invalid",Warned:"warned"},renderItem:({col:e,row:t})=>d.jsxs(Vn,{children:[d.jsx(Nn,{children:"Time off"}),d.jsx(UB,{popoverAnchorProps:{style:{width:280}},defaultValue:{start:new Date(2026,2,10),end:new Date(2026,2,24)},status:t,required:e==="required",disabled:e==="disabled",readOnly:e==="readOnly",loading:e==="loading",code:e==="code"?"1.6":void 0}),t==="valid"&&d.jsx(Ct,{type:"success",children:"Accepted."}),t==="warned"&&d.jsx(Ct,{type:"warning",children:"Processing…"}),t==="invalid"&&d.jsx(Ct,{children:"Not accepted."}),e==="helperText"&&d.jsx(or,{children:"Reserve your paid time off."})]})})})}function nY(){return d.jsx(ct,{title:"Dialog",docsPage:"ostack-ui-overlay-dialog",children:d.jsx(It,{cols:{Neutral:"neutral",Primary:"primary",Success:"success",Danger:"danger",Warning:"warning"},rows:{Solid:"solid",Subtle:"subtle",Outlined:"outlined",Ghost:"ghost"},renderItem:({col:e,row:t})=>d.jsxs(_R,{children:[d.jsx(Jz,{children:d.jsx(ln,{variant:t,color:e,children:"Edit"})}),d.jsx(b7,{variant:t,color:e,asChild:!0,children:d.jsxs("form",{children:[d.jsx(Qz,{children:d.jsx(Zz,{children:"Edit user information"})}),d.jsxs(v3,{children:[d.jsx(y7,{children:"Edit user information below, changes are saved automatically."}),d.jsxs(pi,{children:[d.jsxs(Vn,{children:[d.jsx(Nn,{children:"Name"}),d.jsx(jo,{defaultValue:"Charles McClain"})]}),d.jsxs(Vn,{children:[d.jsx(Nn,{children:"Date of birth"}),d.jsx(AT,{defaultValue:new Date(1993,4,4)})]})]})]}),d.jsx(G3,{children:d.jsx(kR,{children:d.jsx(ln,{color:e,children:"Close"})})})]})})]})})})}var aY={prefix:"fab",iconName:"bluetooth",icon:[384,512,[],"f293","M260.6 171.1l-42.9 42.9-.3-86 43.2 43.1zM217.4 390.9l43.1-43.1-42.9-42.9-.2 86zM384 259.4C384 465 312.1 512 198.9 512S0 465 0 259.4 83.4 0 196.6 0 384 53.9 384 259.4zm-158.5 0l79.4-88.6-125.1-134.3 0 176.9-73.8-73.8-27 26.9 92.7 93-92.7 93 26.9 26.9 73.8-73.8 2.3 170 127.4-127.5-83.9-88.7z"]},rY={prefix:"fab",iconName:"react",icon:[512,512,[],"f41b","M418.2 177.2c-5.4-1.8-10.8-3.5-16.2-5.1 .9-3.7 1.7-7.4 2.5-11.1 12.3-59.6 4.2-107.5-23.1-123.3-26.3-15.1-69.2 .6-112.6 38.4-4.3 3.7-8.5 7.6-12.5 11.5-2.7-2.6-5.5-5.2-8.3-7.7-45.5-40.4-91.1-57.4-118.4-41.5-26.2 15.2-34 60.3-23 116.7 1.1 5.6 2.3 11.1 3.7 16.7-6.4 1.8-12.7 3.8-18.6 5.9-53.4 18.5-91.7 47.7-91.7 77.9 0 31.2 40.8 62.5 96.3 81.5 4.5 1.5 9 3 13.6 4.3-1.5 6-2.8 11.9-4 18-10.5 55.5-2.3 99.5 23.9 114.6 27 15.6 72.4-.4 116.6-39.1 3.5-3.1 7-6.3 10.5-9.7 4.4 4.3 9 8.4 13.6 12.4 42.8 36.8 85.1 51.7 111.2 36.6 27-15.6 35.8-62.9 24.4-120.5-.9-4.4-1.9-8.9-3-13.5 3.2-.9 6.3-1.9 9.4-2.9 57.7-19.1 99.5-50 99.5-81.7 0-30.3-39.4-59.7-93.8-78.4zM282.9 92.3c37.2-32.4 71.9-45.1 87.7-36 16.9 9.7 23.4 48.9 12.8 100.4-.7 3.4-1.4 6.7-2.3 10-22.2-5-44.7-8.6-67.3-10.6-13-18.6-27.2-36.4-42.6-53.1 3.9-3.7 7.7-7.2 11.7-10.7zM167.2 307.5c5.1 8.7 10.3 17.4 15.8 25.9-15.6-1.7-31.1-4.2-46.4-7.5 4.4-14.4 9.9-29.3 16.3-44.5 4.6 8.8 9.3 17.5 14.3 26.1zM136.9 187.2c14.4-3.2 29.7-5.8 45.6-7.8-5.3 8.3-10.5 16.8-15.4 25.4-4.9 8.5-9.7 17.2-14.2 26-6.3-14.9-11.6-29.5-16-43.6zm27.4 68.9c6.6-13.8 13.8-27.3 21.4-40.6s15.8-26.2 24.4-38.9c15-1.1 30.3-1.7 45.9-1.7s31 .6 45.9 1.7c8.5 12.6 16.6 25.5 24.3 38.7s14.9 26.7 21.7 40.4c-6.7 13.8-13.9 27.4-21.6 40.8-7.6 13.3-15.7 26.2-24.2 39-14.9 1.1-30.4 1.6-46.1 1.6s-30.9-.5-45.6-1.4c-8.7-12.7-16.9-25.7-24.6-39s-14.8-26.8-21.5-40.6zm180.6 51.2c5.1-8.8 9.9-17.7 14.6-26.7 6.4 14.5 12 29.2 16.9 44.3-15.5 3.5-31.2 6.2-47 8 5.4-8.4 10.5-17 15.5-25.6zm14.4-76.5c-4.7-8.8-9.5-17.6-14.5-26.2-4.9-8.5-10-16.9-15.3-25.2 16.1 2 31.5 4.7 45.9 8-4.6 14.8-10 29.2-16.1 43.4zM256.2 118.3c10.5 11.4 20.4 23.4 29.6 35.8-19.8-.9-39.7-.9-59.5 0 9.8-12.9 19.9-24.9 29.9-35.8zM140.2 57c16.8-9.8 54.1 4.2 93.4 39 2.5 2.2 5 4.6 7.6 7-15.5 16.7-29.8 34.5-42.9 53.1-22.6 2-45 5.5-67.2 10.4-1.3-5.1-2.4-10.3-3.5-15.5-9.4-48.4-3.2-84.9 12.6-94zM115.7 320.6c-4.2-1.2-8.3-2.5-12.4-3.9-21.3-6.7-45.5-17.3-63-31.2-10.1-7-16.9-17.8-18.8-29.9 0-18.3 31.6-41.7 77.2-57.6 5.7-2 11.5-3.8 17.3-5.5 6.8 21.7 15 43 24.5 63.6-9.6 20.9-17.9 42.5-24.8 64.5zm116.6 98c-16.5 15.1-35.6 27.1-56.4 35.3-11.1 5.3-23.9 5.8-35.3 1.3-15.9-9.2-22.5-44.5-13.5-92 1.1-5.6 2.3-11.2 3.7-16.7 22.4 4.8 45 8.1 67.9 9.8 13.2 18.7 27.7 36.6 43.2 53.4-3.2 3.1-6.4 6.1-9.6 8.9zm24.5-24.3c-10.2-11-20.4-23.2-30.3-36.3 9.6 .4 19.5 .6 29.5 .6 10.3 0 20.4-.2 30.4-.7-9.2 12.7-19.1 24.8-29.6 36.4zm130.7 30c-.9 12.2-6.9 23.6-16.5 31.3-15.9 9.2-49.8-2.8-86.4-34.2-4.2-3.6-8.4-7.5-12.7-11.5 15.3-16.9 29.4-34.8 42.2-53.6 22.9-1.9 45.7-5.4 68.2-10.5 1 4.1 1.9 8.2 2.7 12.2 4.9 21.6 5.7 44.1 2.5 66.3zm18.2-107.5c-2.8 .9-5.6 1.8-8.5 2.6-7-21.8-15.6-43.1-25.5-63.8 9.6-20.4 17.7-41.4 24.5-62.9 5.2 1.5 10.2 3.1 15 4.7 46.6 16 79.3 39.8 79.3 58 0 19.6-34.9 44.9-84.8 61.4zM256 301.8a45.8 45.8 0 1 0 0-91.6 45.8 45.8 0 1 0 0 91.6z"]},oY={prefix:"fab",iconName:"wikipedia-w",icon:[640,512,[],"f266","M640 51.2l-.3 12.2c-28.1 .8-45 15.8-55.8 40.3-25 57.8-103.3 240-155.3 358.6l-13.6 0-81.9-193.1c-32.5 63.6-68.3 130-99.2 193.1-.3 .3-15 0-15-.3-46.9-109.7-96.1-218.6-143.1-328.6-11.4-26.7-49.4-70-75.6-69.7 0-3.1-.3-10-.3-14.2l161.9 0 0 13.9c-19.2 1.1-52.8 13.3-43.3 34.2 21.9 49.7 103.6 240.3 125.6 288.6 15-29.7 57.8-109.2 75.3-142.8-13.9-28.3-58.6-133.9-72.8-160-9.7-17.8-36.1-19.4-55.8-19.7l0-13.9 142.5 .3 0 13.1c-19.4 .6-38.1 7.8-29.4 26.1 18.9 40 30.6 68.1 48.1 104.7 5.6-10.8 34.7-69.4 48.1-100.8 8.9-20.6-3.9-28.6-38.6-29.4 .3-3.6 0-10.3 .3-13.6 44.4-.3 111.1-.3 123.1-.6l0 13.6C462.4 64 439.1 76 426.8 94.9L367.6 217.7c6.4 16.1 63.3 142.8 69.2 156.7L559.2 91.8c-8.6-23.1-36.4-28.1-47.2-28.3l0-13.9 127.8 1.1 .2 .5z"]};function iY(){return d.jsx(ct,{title:"Dropdown menu",docsPage:"ostack-ui-overlay-dropdown-menu",children:d.jsxs($B,{children:[d.jsx(XB,{children:d.jsx(ln,{icon:z7,children:"Settings"})}),d.jsxs(VB,{style:{minWidth:200},children:[d.jsxs(gs,{label:"Connectivity",children:[d.jsx(Ya,{icon:X7,children:"Wi-Fi"}),d.jsx(Ya,{icon:I7,children:"Network"}),d.jsx(Ya,{icon:aY,children:"Bluetooth"})]}),d.jsxs(gs,{label:"Devices",children:[d.jsx(Ya,{icon:w7,children:"Displays"}),d.jsx(Ya,{icon:U7,children:"Sound"}),d.jsx(Ya,{icon:J7,children:"Input"}),d.jsx(Ya,{icon:O7,children:"Printers"})]}),d.jsxs(WB,{label:"Language",value:"en",children:[d.jsx(mv,{value:"en",children:"English"}),d.jsx(mv,{value:"pt",children:"Portuguese"}),d.jsx(mv,{value:"es",disabled:!0,children:"Spanish"})]}),d.jsxs(gs,{label:"Notifications",children:[d.jsx(j2,{children:"Calendar"}),d.jsx(j2,{checked:!0,children:"Weather"})]}),d.jsx(gs,{children:d.jsxs(GB,{children:[d.jsx(KB,{children:"System"}),d.jsxs(qB,{children:[d.jsxs(gs,{children:[d.jsx(Ya,{icon:M7,children:"Date & Time"}),d.jsx(Ya,{icon:P7,children:"Users"})]}),d.jsx(gs,{children:d.jsx(Ya,{icon:j7,color:"danger",children:"Factory reset"})})]})]})})]})]})})}function sY(){return d.jsx(ct,{title:"Icon button",docsPage:"ostack-ui-forms-icon-button",children:d.jsx(It,{cols:{Neutral:"neutral",Primary:"primary",Success:"success",Danger:"danger",Warning:"warning",Disabled:"disabled",Loading:"loading",Keybinds:"keybinds"},rows:{Solid:"solid",Subtle:"subtle",Outlined:"outlined",Ghost:"ghost"},renderItem:({col:e,row:t})=>d.jsx(xa,{label:"Bloom",icon:N7,variant:t,color:e==="disabled"||e==="loading"||e==="keybinds"?void 0:e,disabled:e==="disabled",loading:e==="loading",loadingLabel:e==="loading"?"Blooming…":void 0,keybinds:e==="keybinds"?"Alt+Shift+B":void 0})})})}function lY(){return d.jsx(ct,{title:"Input",docsPage:"ostack-ui-forms-input",children:d.jsx(It,{cols:{Basic:"","Helper text":"helperText",Required:"required","Label help":"labelHelp",Disabled:"disabled","Read-only":"readOnly",Loading:"loading",Code:"code","Clear button":"showClearButton"},rows:{"No status":void 0,Valid:"valid",Invalid:"invalid",Warned:"warned"},renderItem:({col:e,row:t})=>d.jsxs(Vn,{children:[d.jsx(Nn,{helperText:e==="labelHelp"?"Used to sign in.":void 0,children:"Username"}),d.jsx(jo,{containerProps:{style:{width:110}},defaultValue:"j_smith",status:t,required:e==="required",disabled:e==="disabled",readOnly:e==="readOnly",loading:e==="loading",code:e==="code"?"1.1":void 0,showClearButton:e==="showClearButton"?"auto":void 0}),t==="valid"&&d.jsx(Ct,{type:"success",children:"Available."}),t==="warned"&&d.jsx(Ct,{type:"warning",children:"Already taken."}),t==="invalid"&&d.jsx(Ct,{children:"Invalid format."}),e==="helperText"&&d.jsx(or,{children:"Used to sign in."})]})})})}function cY(){return d.jsxs(ct,{title:"Keyboard",docsPage:"ostack-ui-typography-keyboard",children:["Press ",d.jsx(jf,{children:"Ctrl"})," + ",d.jsx(jf,{children:"P"})," to print."]})}function uY(){return d.jsx(ct,{title:"Link",docsPage:"ostack-ui-typography-link",children:d.jsx(It,{cols:{Neutral:"neutral",Primary:"primary",Success:"success",Danger:"danger",Warning:"warning",External:"external"},renderItem:({col:e})=>d.jsx(zf,{href:e==="external"?"https://www.wikipedia.org/":"#",color:e==="external"?void 0:e,external:e==="external",children:e==="external"?"Wikipedia":"Go to top"})})})}function fY(){return d.jsx(ct,{title:"Mark",docsPage:"ostack-ui-typography-mark",children:d.jsx(It,{cols:{Neutral:"neutral",Primary:"primary",Success:"success",Danger:"danger",Warning:"warning"},renderItem:({col:e})=>d.jsxs(d.Fragment,{children:["The deadline is ",d.jsx(sT,{color:e,children:"Friday"}),"."]})})})}function dY(){return d.jsx(ct,{title:"Menu list",docsPage:"ostack-ui-overlay-dropdown-menu",children:d.jsx(It,{cols:{Subtle:"subtle",Solid:"solid"},renderItem:({col:e})=>d.jsxs(Td,{variant:e,style:{width:250},children:[d.jsxs(If,{label:"Actions",children:[d.jsx(Ga,{icon:_7,selected:!0,children:"View"}),d.jsx(Ga,{icon:k7,children:"Edit"}),d.jsx(Ga,{icon:Z3,color:"danger",children:"Delete"})]}),d.jsxs(If,{label:"Links",children:[d.jsx(Ga,{type:"link",href:"https://www.wikipedia.org/",icon:oY,target:"_blank",rel:"noopener noreferrer",children:"Wikipedia"}),d.jsx(Ga,{type:"link",href:"https://react.dev",icon:rY,target:"_blank",rel:"noopener noreferrer",children:"React"})]})]})})})}function hY(){return d.jsx(ct,{title:"Numeric input",docsPage:"ostack-ui-forms-numeric-input",children:d.jsx(It,{cols:{Basic:"","Helper text":"helperText",Required:"required",Disabled:"disabled","Read-only":"readOnly",Loading:"loading",Code:"code","Clear button":"showClearButton"},rows:{"No status":void 0,Valid:"valid",Invalid:"invalid",Warned:"warned"},renderItem:({col:e,row:t})=>d.jsxs(Vn,{children:[d.jsx(Nn,{children:"Income"}),d.jsx(AH,{containerProps:{style:{width:120}},defaultValue:42000.9,precision:11,scale:2,groupDigits:!0,min:0,endAdornment:d.jsx(ks,{children:"€"}),status:t,required:e==="required",disabled:e==="disabled",readOnly:e==="readOnly",loading:e==="loading",code:e==="code"?"3.9":void 0,showClearButton:e==="showClearButton"?"auto":void 0}),t==="valid"&&d.jsx(Ct,{type:"success",children:"Confirmed."}),t==="warned"&&d.jsx(Ct,{type:"warning",children:"Processing…"}),t==="invalid"&&d.jsx(Ct,{children:"Insufficient."}),e==="helperText"&&d.jsx(or,{children:"For tax purposes."})]})})})}function mY(){return d.jsx(ct,{title:"Output",docsPage:"ostack-ui-forms-output",children:d.jsx(It,{cols:{Basic:"","Helper text":"helperText",Pending:"pending",Code:"code"},rows:{"No status":void 0,Valid:"valid",Invalid:"invalid",Warned:"warned"},renderItem:({col:e,row:t})=>d.jsxs(Vn,{children:[d.jsx(Nn,{children:"Total"}),d.jsx(RH,{containerProps:{style:{width:150}},status:t,pending:e==="pending",code:e==="code"?"6.2":void 0,children:"$30,000"}),t==="valid"&&d.jsx(Ct,{type:"success",children:"Funds available."}),t==="warned"&&d.jsx(Ct,{type:"warning",children:"Funds unavailable."}),t==="invalid"&&d.jsx(Ct,{children:"Incorrect amount."}),e==="helperText"&&d.jsx(or,{children:"A + B + C + D - E"})]})})})}function vY(){const e=zc();return d.jsx(ct,{title:"Popover",docsPage:"ostack-ui-overlay-popover",children:d.jsxs(Xs,{children:[d.jsx(Zs,{children:d.jsx(ln,{icon:R7,children:"Comment"})}),d.jsx(Qs,{style:{padding:e(2)},children:d.jsx(pi,{asChild:!0,gap:2,alignItems:"flex-end",children:d.jsxs("form",{children:[d.jsxs(Vn,{children:[d.jsx(Nn,{children:"Leave a comment"}),d.jsx(BT,{rows:6,style:{width:300}})]}),d.jsx(ln,{color:"primary",type:"submit",onClick:t=>t.preventDefault(),children:"Submit"})]})})})]})})}function pY(){return d.jsx(ct,{title:"Radio group",docsPage:"ostack-ui-forms-radio-group",children:d.jsx(It,{cols:{Basic:"","Helper text":"helperText",Required:"required",Disabled:"disabled","Read-only":"readOnly",Loading:"loading",Code:"code","All codes":"allCodes","Clear button":"clearButton"},rows:{"No status":void 0,Valid:"valid",Invalid:"invalid",Warned:"warned"},renderItem:({col:e,row:t})=>d.jsxs(Vn,{children:[d.jsx(Nn,{children:"Preferred make"}),d.jsxs(jH,{status:t,defaultValue:"fiat",required:e==="required",disabled:e==="disabled",readOnly:e==="readOnly",loading:e==="loading",code:e==="code"||e==="allCodes"?"1.7":void 0,showClearButton:e==="clearButton"?"auto":void 0,children:[d.jsx(pv,{value:"fiat",code:e==="allCodes"?"a":void 0,children:"Fiat"}),d.jsx(pv,{value:"renault",code:e==="allCodes"?"b":void 0,children:"Renault"}),d.jsx(pv,{value:"toyota",code:e==="allCodes"?"c":void 0,children:"Toyota"})]}),t==="valid"&&d.jsx(Ct,{type:"success",children:"Available."}),t==="warned"&&d.jsx(Ct,{type:"warning",children:"Maybe unavailable."}),t==="invalid"&&d.jsx(Ct,{children:"Unavailable."}),e==="helperText"&&d.jsx(or,{children:"All with low mileage."})]})})})}function gY(){return d.jsx(ct,{title:"Select",docsPage:"ostack-ui-forms-select",children:d.jsx(It,{cols:{Single:"",Multiple:"multiple","Helper text":"helperText",Required:"required",Disabled:"disabled","Read-only":"readOnly",Loading:"loading",Code:"code"},rows:{"No status":void 0,Valid:"valid",Invalid:"invalid",Warned:"warned"},renderItem:({col:e,row:t})=>d.jsxs(Vn,{children:[d.jsxs(Nn,{children:["Pick your fruit",e==="multiple"&&"s"]}),d.jsxs(hc,{containerProps:{style:{width:120}},multiple:e==="multiple",defaultValue:e==="multiple"?["apple","kiwi"]:"apple",status:t,required:e==="required",disabled:e==="disabled",readOnly:e==="readOnly",loading:e==="loading",code:e==="code"?"2.1":void 0,children:[d.jsx(yo,{value:"apple",children:"Apple"}),d.jsx(yo,{value:"kiwi",children:"Kiwi"}),d.jsx(yo,{value:"pear",children:"Pear"})]}),t==="valid"&&d.jsx(Ct,{type:"success",children:"Available."}),t==="warned"&&d.jsx(Ct,{type:"warning",children:"Maybe unavailable."}),t==="invalid"&&d.jsx(Ct,{children:"Unavailable."}),e==="helperText"&&d.jsx(or,{children:"For breakfast."})]})})})}function bY(){return d.jsx(ct,{title:"Spinner",docsPage:"ostack-ui-feedback-spinner",children:d.jsx(It,{cols:{Neutral:"neutral",Primary:"primary",Success:"success",Danger:"danger",Warning:"warning",Labelled:"label"},renderItem:({col:e})=>d.jsx(An,{color:e==="label"?void 0:e,label:e==="label"?"Loading…":void 0})})})}const fp=[{student:"Avi Everett",grade:82.5},{student:"Evan Gutierrez",grade:67.8},{student:"Jackson Ford",grade:55.1},{student:"Olivia Cortes",grade:77.5}],yY=fp.reduce((e,{grade:t})=>e+t,0)/fp.length;function xY(){return d.jsx(ct,{title:"Table",docsPage:"ostack-ui-data-data-display-table",children:d.jsx(It,{cols:{Default:"default",Annexes:"control"},renderItem:({col:e})=>d.jsxs(GE,{caption:"Exam grades",variant:e,style:{width:250},children:[d.jsxs(QE,{children:[d.jsx(kf,{label:"Student"}),d.jsx(kf,{label:"Grade",align:"right"})]}),d.jsx(qE,{children:fp.map(({student:t,grade:a},o)=>d.jsxs(dc,{children:[d.jsx(li,{header:!0,children:t}),d.jsx(li,{align:"right",children:a.toFixed(1)})]},o))}),d.jsx(KE,{children:d.jsxs(dc,{children:[d.jsx(li,{header:!0,children:"Average"}),d.jsx(li,{align:"right",children:yY.toFixed(1)})]})})]})})})}function wY(){const e=zc();return d.jsx(ct,{title:"Tabs",docsPage:"ostack-ui-data-disclosure-tabs",children:d.jsx(It,{cols:{Default:"default",Annexes:"annexes"},renderItem:({col:t})=>d.jsxs(PH,{variant:t,defaultValue:"accessibility",children:[d.jsxs(LH,{children:[d.jsx(gv,{value:"accessibility",children:"Accessibility"}),d.jsx(gv,{value:"privacy",children:"Privacy & Security"}),d.jsx(gv,{value:"system",children:"System"})]}),d.jsx(bv,{value:"accessibility",style:{marginTop:e(2)},children:"Accessibility options…"}),d.jsx(bv,{value:"privacy",style:{marginTop:e(2)},children:"Privacy & Security settings…"}),d.jsx(bv,{value:"system",style:{marginTop:e(2)},children:"System configuration…"})]})})})}function CY(){return d.jsx(ct,{title:"Tag",docsPage:"ostack-ui-data-display-tag",children:d.jsx(It,{cols:{Neutral:"neutral",Primary:"primary",Success:"success",Danger:"danger",Warning:"warning",Pill:"pill",Icon:"icon","Close button":"showCloseButton"},rows:{Solid:"solid",Subtle:"subtle",Outlined:"outlined"},renderItem:({col:e,row:t})=>d.jsx(DT,{variant:t,color:e==="pill"||e==="icon"||e==="showCloseButton"?"neutral":e,pill:e==="pill",icon:e==="icon"?Y7:void 0,showCloseButton:e==="showCloseButton",children:"New"})})})}function SY(){return d.jsx(ct,{title:"Text area",docsPage:"ostack-ui-forms-text-area",children:d.jsx(It,{cols:{Basic:"","Helper text":"helperText",Required:"required",Disabled:"disabled","Read-only":"readOnly",Loading:"loading",Code:"code","Clear button":"showClearButton"},rows:{"No status":void 0,Valid:"valid",Invalid:"invalid",Warned:"warned"},renderItem:({col:e,row:t})=>d.jsxs(Vn,{children:[d.jsx(Nn,{children:"Additional requests"}),d.jsx(BT,{containerProps:{style:{width:130}},defaultValue:"Please provide two extra towels.",status:t,required:e==="required",disabled:e==="disabled",readOnly:e==="readOnly",loading:e==="loading",code:e==="code"?"4.1":void 0,showClearButton:e==="showClearButton"?"auto":void 0}),t==="valid"&&d.jsx(Ct,{type:"success",children:"Accepted."}),t==="warned"&&d.jsx(Ct,{type:"warning",children:"Unable to process."}),t==="invalid"&&d.jsx(Ct,{children:"Invalid request."}),e==="helperText"&&d.jsx(or,{children:"We will attempt to honour them."})]})})})}function EY(){const{addToast:e}=CL();return d.jsx(ct,{title:"Toast",docsPage:"ostack-ui-feedback-toast",children:d.jsx(It,{cols:{Neutral:"neutral",Info:"info",Success:"success",Danger:"danger",Warning:"warning",Title:"title",Action:"action"},rows:{Solid:"solid",Subtle:"subtle",Outlined:"outlined"},renderItem:({col:t,row:a})=>d.jsx(ln,{icon:F7,color:t==="info"||t==="title"||t==="action"?"primary":t,variant:a,onClick:()=>{e("Item has been bookmarked.",{title:t==="title"?"Bookmarked":void 0,variant:a,severity:t==="title"||t==="action"?void 0:t,action:t==="action"&&d.jsx(ln,{keybinds:"$mod+Z",color:"primary",children:"Undo"}),actionAltText:"Undo (Ctrl+Z)"})},children:"Bookmark"})})})}function TY(){return d.jsx(ct,{title:"Tooltip",docsPage:"ostack-ui-overlay-tooltip",children:d.jsx(kc,{content:"Press to reload all content",children:d.jsx(ln,{children:"Refresh"})})})}const DY="https://ui.ostack.tech/";function _Y({docsUrl:e=DY,title:t=document.title,prefix:a,actions:o}){return d.jsx(HT,{value:{docsUrl:e},children:d.jsxs(No,{prefix:a,locale:VL,children:[d.jsx(cn,{focusable:!0,asChild:!0,children:d.jsx(zf,{href:"#exhibit-main",style:{top:6,left:6},children:"Skip to main content"})}),d.jsx(R2,{asChild:!0,children:d.jsxs("header",{id:"exhibit-header",children:[d.jsx(NT,{level:1,id:"exhibit-title",children:t}),o&&d.jsx(pi,{id:"exhibit-actions",direction:"row",gap:2,children:o})]})}),d.jsx(pi,{asChild:!0,gap:15,children:d.jsx(R2,{asChild:!0,children:d.jsxs("main",{id:"exhibit-main",tabIndex:-1,children:[d.jsx(UH,{}),d.jsx(YH,{}),d.jsx(VH,{}),d.jsx($H,{}),d.jsx(WH,{}),d.jsx(qH,{}),d.jsx(GH,{}),d.jsx(KH,{}),d.jsx(XH,{}),d.jsx(QH,{}),d.jsx(JH,{}),d.jsx(eY,{}),d.jsx(tY,{}),d.jsx(nY,{}),d.jsx(iY,{}),d.jsx(sY,{}),d.jsx(lY,{}),d.jsx(uY,{}),d.jsx(fY,{}),d.jsx(dY,{}),d.jsx(hY,{}),d.jsx(mY,{}),d.jsx(vY,{}),d.jsx(pY,{}),d.jsx(gY,{}),d.jsx(bY,{}),d.jsx(xY,{}),d.jsx(wY,{}),d.jsx(CY,{}),d.jsx(EY,{}),d.jsx(SY,{}),d.jsx(TY,{}),d.jsx(cY,{})]})})})]})})}nM.createRoot(document.getElementById("root")).render(d.jsx(p.StrictMode,{children:d.jsx(_Y,{})}));
|
package/dist/webapp/index.html
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>ostack/UI Exhibit</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
9
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-DlK2khbd.js"></script>
|
|
9
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BKYn_yyA.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ostack.tech/ui-exhibit",
|
|
3
3
|
"description": "Exhibit of ostack/UI components.",
|
|
4
|
-
"version": "0.10.
|
|
4
|
+
"version": "0.10.1",
|
|
5
5
|
"homepage": "https://ui.ostack.tech/",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Opensoft",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
],
|
|
35
35
|
"scripts": {
|
|
36
36
|
"dev": "vite",
|
|
37
|
-
"clean": "rimraf dist/",
|
|
37
|
+
"clean": "rimraf dist/ scss/",
|
|
38
38
|
"build": "vite build && vite build --mode webapp && npm run copy:scss",
|
|
39
39
|
"copy:scss": "cpy 'src/**/*.scss' '!src/main.scss' scss/",
|
|
40
40
|
"preview": "vite build --mode webapp && vite preview --outDir dist/webapp/"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@fortawesome/fontawesome-svg-core": "^6.2.0 || ^7.0.0",
|
|
44
44
|
"@fortawesome/free-regular-svg-icons": "^6.2.0 || ^7.0.0",
|
|
45
45
|
"@fortawesome/free-solid-svg-icons": "^6.2.0 || ^7.0.0",
|
|
46
|
-
"@ostack.tech/ui": "~0.10.
|
|
46
|
+
"@ostack.tech/ui": "~0.10.1",
|
|
47
47
|
"@types/react": "^18.0.0 || ^19.0.0",
|
|
48
48
|
"@types/react-dom": "^18.0.0 || ^19.0.0",
|
|
49
49
|
"date-fns": "^4.1.0",
|
package/scss/_App.scss
CHANGED
|
@@ -13,7 +13,7 @@ body {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
#exhibit-title {
|
|
16
|
-
margin-
|
|
16
|
+
margin-block: 0;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
#exhibit-main {
|
|
@@ -40,7 +40,7 @@ body {
|
|
|
40
40
|
overflow-x: auto;
|
|
41
41
|
|
|
42
42
|
&:focus-visible {
|
|
43
|
-
border-radius: var(--#{o-ui.$prefix}border-radius-
|
|
43
|
+
border-radius: var(--#{o-ui.$prefix}border-radius-xs);
|
|
44
44
|
outline: 2px solid var(--#{o-ui.$prefix}primary-8);
|
|
45
45
|
outline-offset: 2px;
|
|
46
46
|
}
|