@deephaven/code-studio 0.58.1-beta.4 → 0.58.1-beta.9
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/build/assets/{AppRoot-fdc5eb5a.js → AppRoot-fc0bd440.js} +3 -3
- package/build/assets/{AppRoot-fdc5eb5a.js.map → AppRoot-fc0bd440.js.map} +1 -1
- package/build/assets/{ControlType-69102dc4.js → ControlType-fe194111.js} +2 -2
- package/build/assets/{ControlType-69102dc4.js.map → ControlType-fe194111.js.map} +1 -1
- package/build/assets/FontBootstrap-37bff3f2.js +4 -0
- package/build/assets/FontBootstrap-37bff3f2.js.map +1 -0
- package/build/assets/{IrisGrid-15265463.js → IrisGrid-d6f3621a.js} +2 -2
- package/build/assets/{IrisGrid-15265463.js.map → IrisGrid-d6f3621a.js.map} +1 -1
- package/build/assets/{IrisGridModelFactory-2a87d03d.js → IrisGridModelFactory-35f0081a.js} +2 -2
- package/build/assets/{IrisGridModelFactory-2a87d03d.js.map → IrisGridModelFactory-35f0081a.js.map} +1 -1
- package/build/assets/StyleGuideRoot-f9f0c710.js +214 -0
- package/build/assets/{StyleGuideRoot-42c5ad7b.js.map → StyleGuideRoot-f9f0c710.js.map} +1 -1
- package/build/assets/community-wordmark-dark-d2c5c1eb.svg +19 -0
- package/build/assets/community-wordmark-light-57b78c71.svg +19 -0
- package/build/assets/{index-c71a4621.js → index-87efff11.js} +2 -2
- package/build/assets/{index-c71a4621.js.map → index-87efff11.js.map} +1 -1
- package/build/assets/index-889aac77.js +20 -0
- package/build/assets/index-889aac77.js.map +1 -0
- package/build/assets/index-9bd85be5.js +2 -0
- package/build/assets/index-9bd85be5.js.map +1 -0
- package/build/assets/usePlugins-17ef24d4.js +3 -0
- package/build/assets/usePlugins-17ef24d4.js.map +1 -0
- package/build/assets/{useUser-ce344a68.js → useUser-866861a7.js} +2 -2
- package/build/assets/{useUser-ce344a68.js.map → useUser-866861a7.js.map} +1 -1
- package/build/assets/useUser-c5624723.css +1 -0
- package/build/index.html +1 -1
- package/package.json +31 -31
- package/build/assets/FontBootstrap-f42bc79f.js +0 -4
- package/build/assets/FontBootstrap-f42bc79f.js.map +0 -1
- package/build/assets/StyleGuideRoot-42c5ad7b.js +0 -214
- package/build/assets/index-37d5593d.js +0 -2
- package/build/assets/index-37d5593d.js.map +0 -1
- package/build/assets/index-635bafe9.js +0 -20
- package/build/assets/index-635bafe9.js.map +0 -1
- package/build/assets/usePlugins-88ed4725.js +0 -3
- package/build/assets/usePlugins-88ed4725.js.map +0 -1
- package/build/assets/useUser-119d683f.css +0 -1
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import{r as i,F as Z,C as e,aI as C,H as ne,Q as xo,M as ge,G as E,_ as de,L as We,aJ as Lo,aK as L,aL as Po,aM as k,$ as _o,Z as M,a2 as Bo,a3 as Be,aN as Fo,a4 as Oo,a5 as Fe,a0 as me,a7 as Vo,a8 as b,aO as Uo,aP as Ae,aQ as G,aR as Go,a6 as Ho,aS as Me,ac as fo,ab as R,aT as Re,aU as zo,aV as Wo,ad as qo,aW as Ko,aX as Yo,aY as H,aZ as Zo,a_ as xe,a$ as D,b0 as Xo,b1 as Qo,b2 as Jo,al as er,b3 as or,b4 as fe,J as rr,Y as lr}from"./vendor-c2884880.js";import{aV as qe,aW as V,aU as ae,aX as Oe,aY as Ve,aZ as bo,ax as sr,a_ as z,a$ as Ke,E as Ye,b0 as Ze,G as Le,b1 as tr,b2 as ar,K as cr,b3 as nr,b4 as dr}from"./index-889aac77.js";import{W as hr}from"./monaco-1410cbed.js";import{ad as pe,aa as yo,a7 as W,ae as jo,B as ir,g as oe,m as ur,L as be,af as Q,ag as gr,I as mr,R as wo,f as B,C as Pe,O as vr,a as pr,S as xr,c as te,b as Xe,P as Qe,h as fr,d as br}from"./IrisGrid-d6f3621a.js";import{B as p,u as Co,g as ce,e as X,a3 as I,K as $,w as ie,v as yr,l as Je,ba as eo,m as jr,C as P,a6 as re,S as ue,_ as wr,x as Cr,d as oo,a8 as So,j as Sr,aS as q,A as Tr,M as kr,N as Nr}from"./usePlugins-17ef24d4.js";import{M as ro,H as Dr,A as Er,V as ye,T as Ir,D as $r,C as Ar,a as Mr,c as Rr,N as Lr,b as Pr,d as _r}from"./FontBootstrap-37bff3f2.js";import{T as Br}from"./useUser-866861a7.js";import{L as Fr}from"./AppRoot-fc0bd440.js";import{Q as Or,x as Vr,s as Ur}from"./ControlType-fe194111.js";import"./helpers-042e6b4d.js";import"./plotly-f77cf0f4.js";function lo(l,o,r,s,t,a,c){try{var d=l[a](c),h=d.value}catch(u){r(u);return}d.done?o(h):Promise.resolve(h).then(s,t)}function je(l){return function(){var o=this,r=arguments;return new Promise(function(s,t){var a=l.apply(o,r);function c(h){lo(a,s,t,c,d,"next",h)}function d(h){lo(a,s,t,c,d,"throw",h)}c(void 0)})}}function _(l,o,r){return o=Gr(o),o in l?Object.defineProperty(l,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):l[o]=r,l}function Gr(l){var o=Hr(l,"string");return typeof o=="symbol"?o:String(o)}function Hr(l,o){if(typeof l!="object"||l===null)return l;var r=l[Symbol.toPrimitive];if(r!==void 0){var s=r.call(l,o||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}class zr extends pe{constructor(){var{rowCount:o=1e9,columnCount:r=100,floatingTopRowCount:s=0,floatingBottomRowCount:t=0,floatingLeftColumnCount:a=0,floatingRightColumnCount:c=0,isEditable:d=!1,editedData:h=[]}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(),_(this,"numRows",void 0),_(this,"numColumns",void 0),_(this,"floatingTop",void 0),_(this,"floatingBottom",void 0),_(this,"floatingLeft",void 0),_(this,"floatingRight",void 0),_(this,"editable",void 0),_(this,"editedData",void 0),this.numRows=o,this.numColumns=r,this.floatingTop=s,this.floatingBottom=t,this.floatingLeft=a,this.floatingRight=c,this.editable=d,this.editedData=h}get rowCount(){return this.numRows}get columnCount(){return this.numColumns}get floatingTopRowCount(){return this.floatingTop}get floatingBottomRowCount(){return this.floatingBottom}get floatingLeftColumnCount(){return this.floatingLeft}get floatingRightColumnCount(){return this.floatingRight}get isEditable(){return this.editable}textForCell(o,r){var s,t;return(s=(t=this.editedData[o])===null||t===void 0?void 0:t[r])!==null&&s!==void 0?s:"".concat(o,",").concat(r)}colorForCell(o,r,s){return s.textColor}textForColumnHeader(o){return"".concat(o)}textForRowHeader(o){return"".concat(o)}textForRowFooter(o){return"".concat(o)}setValueForCell(o,r,s){var t=this;return je(function*(){t.editedData[o]==null&&(t.editedData[o]=[]),t.editedData[o][r]="".concat(s)})()}setValueForRanges(o,r){var s=this;return je(function*(){yo.forEachCell(o,(t,a)=>{s.setValueForCell(t,a,r)})})()}setValues(o){var r=this;return je(function*(){for(var s=0;s<o.length;s+=1){var t,a,c=o[s];r.setValueForCell((t=c.column)!==null&&t!==void 0?t:c.x,(a=c.row)!==null&&a!==void 0?a:c.y,c.text)}})()}editValueForCell(o,r){return this.textForCell(o,r)}isValidForCell(o,r,s){return!0}isEditableRange(o){return this.isEditable}delete(o){throw new Error("Method not implemented.")}}const Ue=zr;function w(l,o,r){return o=Wr(o),o in l?Object.defineProperty(l,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):l[o]=r,l}function Wr(l){var o=qr(l,"string");return typeof o=="symbol"?o:String(o)}function qr(l,o){if(typeof l!="object"||l===null)return l;var r=l[Symbol.toPrimitive];if(r!==void 0){var s=r.call(l,o||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}class N extends Ue{constructor(){var{rowCount:o=N.DEFAULT_ROW_COUNT,columnCount:r=N.DEFAULT_COLUMN_COUNT,children:s=new Map,childRowCount:t=Math.ceil(Math.max(N.MIN_CHILD_ROW_COUNT,o*N.DEFAULT_CHILD_ROW_COUNT_FACTOR)),maxDepth:a=N.MAX_DEPTH}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super({rowCount:o,columnCount:r}),w(this,"children",void 0),w(this,"childRowCount",void 0),w(this,"maxDepth",void 0),w(this,"getCachedModelRowOffset",W((c,d)=>{for(var h=null,u=d,n=[...c].sort((y,F)=>y[0]-F[0]),g=0;g<n.length;g+=1){var[m,v]=n[g];if(u<=m)break;var f=v.rowCount;if(u<=m+f){h=m,u=u-m-1;break}u-=f}return{key:h,offsetRow:u}})),w(this,"getCachedTextForRowHeader",W((c,d)=>{var{key:h,offsetRow:u}=this.getCachedModelRowOffset(c,d);if(h!=null){var n=c.get(h);if(n!==void 0)return"".concat(h,".").concat(n.textForRowHeader(u))}return"".concat(u)})),w(this,"getCachedTextForCell",W((c,d,h)=>{var{key:u,offsetRow:n}=this.getCachedModelRowOffset(c,h);if(u!=null){var g=c.get(u);if(g!==void 0)return"".concat(u,".").concat(g.textForCell(d,n))}return"".concat(d,",").concat(n)})),w(this,"getCachedIsRowExpandable",W((c,d,h)=>{var u=this.getCachedDepthForRow(c,d);return u<h})),w(this,"getCachedIsRowExpanded",W((c,d)=>{var{key:h,offsetRow:u}=this.getCachedModelRowOffset(c,d);if(h!=null){var n=c.get(h);if(n!==void 0)return n.isRowExpanded(u)}return c.has(u)})),w(this,"getCachedDepthForRow",W((c,d)=>{var{key:h,offsetRow:u}=this.getCachedModelRowOffset(c,d);if(h!=null){var n=c.get(h);if(n!==void 0)return n.depthForRow(u)+1}return 0})),this.children=s,this.childRowCount=t,this.maxDepth=a}textForCell(o,r){return this.getCachedTextForCell(this.children,o,r)}textForRowHeader(o){return this.getCachedTextForRowHeader(this.children,o)}isRowMovable(o){return!1}get hasExpandableRows(){return!0}get isExpandAllAvailable(){return!1}get floatingBottomRowCount(){return 0}isRowExpandable(o){return this.getCachedIsRowExpandable(this.children,o,this.maxDepth)}isRowExpanded(o){return this.getCachedIsRowExpanded(this.children,o)}setRowExpanded(o,r){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,{key:t,offsetRow:a}=this.getCachedModelRowOffset(this.children,o),c=new Map(this.children);if(t!=null){var d=this.children.get(t);if(d!==void 0){var{rowCount:h}=d;d.setRowExpanded(a,r,s),this.numRows+=d.rowCount-h}}else if(r){var n=new N({rowCount:this.childRowCount,columnCount:this.numColumns});c.set(a,n),this.numRows+=n.rowCount}else{var u=c.get(a);u!==void 0&&(this.numRows-=u.rowCount,c.delete(a))}this.children=c}expandAll(){throw new Error("Expand all not implemented.")}collapseAll(){throw new Error("Collapse all not implemented.")}depthForRow(o){return this.getCachedDepthForRow(this.children,o)}}w(N,"DEFAULT_ROW_COUNT",1e9);w(N,"DEFAULT_COLUMN_COUNT",100);w(N,"DEFAULT_CHILD_ROW_COUNT_FACTOR",.01);w(N,"MIN_CHILD_ROW_COUNT",10);w(N,"MAX_DEPTH",10);const Ge=N;function we(l,o,r){return o=Kr(o),o in l?Object.defineProperty(l,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):l[o]=r,l}function Kr(l){var o=Yr(l,"string");return typeof o=="symbol"?o:String(o)}function Yr(l,o){if(typeof l!="object"||l===null)return l;var r=l[Symbol.toPrimitive];if(r!==void 0){var s=r.call(l,o||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}class Zr extends pe{constructor(o,r){var s;super(),we(this,"data",void 0),we(this,"columnHeaders",void 0),we(this,"numberOfColumns",void 0),this.data=o,this.numberOfColumns=Math.max(...o.map(t=>t.length),(s=r?.length)!==null&&s!==void 0?s:0),this.columnHeaders=r}get rowCount(){return this.data.length}get columnCount(){return this.numberOfColumns}textForCell(o,r){var s;return"".concat((s=this.data[r])===null||s===void 0?void 0:s[o])}textForColumnHeader(o){var r,s;return(r=(s=this.columnHeaders)===null||s===void 0?void 0:s[o])!==null&&r!==void 0?r:""}}const Xr=Zr;function Ce(l,o,r){return o=Qr(o),o in l?Object.defineProperty(l,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):l[o]=r,l}function Qr(l){var o=Jr(l,"string");return typeof o=="symbol"?o:String(o)}function Jr(l,o){if(typeof l!="object"||l===null)return l;var r=l[Symbol.toPrimitive];if(r!==void 0){var s=r.call(l,o||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}class el extends pe{constructor(o,r){super(),Ce(this,"numberOfColumns",void 0),Ce(this,"numberOfRows",void 0),Ce(this,"viewportData",void 0),this.numberOfColumns=o,this.numberOfRows=r}get columnCount(){return this.numberOfColumns}get rowCount(){return this.numberOfRows}textForCell(o,r){var s,t,a,c,d,h,u,n=r-((s=(t=this.viewportData)===null||t===void 0?void 0:t.rowOffset)!==null&&s!==void 0?s:0),g=o-((a=(c=this.viewportData)===null||c===void 0?void 0:c.columnOffset)!==null&&a!==void 0?a:0);return"".concat((d=(h=this.viewportData)===null||h===void 0||(u=h.data[n])===null||u===void 0?void 0:u[g])!==null&&d!==void 0?d:"")}textForColumnHeader(o){return"".concat(o)}textForRowHeader(o){return"".concat(o)}}const ol=el;function S(l,o,r){return o=rl(o),o in l?Object.defineProperty(l,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):l[o]=r,l}function rl(l){var o=ll(l,"string");return typeof o=="symbol"?o:String(o)}function ll(l,o){if(typeof l!="object"||l===null)return l;var r=l[Symbol.toPrimitive];if(r!==void 0){var s=r.call(l,o||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}var sl="proportional",tl=jo.positiveBarColor,al=jo.negativeBarColor,cl="beside",nl="LTR",dl="right";function hl(l){return Array.isArray(l)&&l.every(o=>typeof o=="number")}class il extends pe{constructor(o){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Map,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new Map,t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:new Map,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:new Map,c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:new Map,d=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Map,h=arguments.length>7&&arguments[7]!==void 0?arguments[7]:new Map,u=arguments.length>8&&arguments[8]!==void 0?arguments[8]:new Map;super(),S(this,"numberOfColumns",void 0),S(this,"numberOfRows",void 0),S(this,"data",void 0),S(this,"columnMins",void 0),S(this,"columnMaxs",void 0),S(this,"columnAxes",void 0),S(this,"valuePlacements",void 0),S(this,"directions",void 0),S(this,"positiveColors",void 0),S(this,"negativeColors",void 0),S(this,"opacities",void 0),S(this,"textAlignments",void 0),S(this,"markers",void 0),this.positiveColors=s,this.negativeColors=t,this.data=o,this.columnAxes=r,this.valuePlacements=a,this.opacities=c,this.directions=d,this.textAlignments=h,this.markers=u,this.numberOfRows=Math.max(...o.map(m=>m.length)),this.numberOfColumns=o.length,this.columnMins=new Map,this.columnMaxs=new Map;for(var n=0;n<o.length;n+=1){var g=o[n];hl(g)&&(this.columnMins.set(n,Math.min(...g)),this.columnMaxs.set(n,Math.max(...g)))}}get rowCount(){return this.numberOfRows}get columnCount(){return this.numberOfColumns}textForCell(o,r){var s;return"".concat((s=this.data[o])===null||s===void 0?void 0:s[r])}textForColumnHeader(o){return"".concat(o)}textAlignForCell(o,r){var s;return(s=this.textAlignments.get(o))!==null&&s!==void 0?s:dl}renderTypeForCell(o,r){return o<20||o%2===r%2?"dataBar":"text"}dataBarOptionsForCell(o,r){var s,t,a,c,d,h,u,n=qe(this.columnMins,o),g=qe(this.columnMaxs,o),m=(s=this.columnAxes.get(o))!==null&&s!==void 0?s:sl,v=(t=this.valuePlacements.get(o))!==null&&t!==void 0?t:cl,f=this.opacities.get(o);f==null||f>1?f=1:f<0&&(f=0);var y=(a=this.directions.get(o))!==null&&a!==void 0?a:nl,F=(c=this.positiveColors.get(o))!==null&&c!==void 0?c:tl,J=(d=this.negativeColors.get(o))!==null&&d!==void 0?d:al,O=Number((h=this.data[o])===null||h===void 0?void 0:h[r]),U=O>=0?F:J,he=(u=this.markers.get(o))!==null&&u!==void 0?u:[];return{columnMin:n,columnMax:g,axis:m,color:U,valuePlacement:v,opacity:f,markers:he,direction:y,value:O}}}const ul=il,Se="hide-from-e2e-tests",so="sample-section";function*To(l=1){for(;;)l=l*16807%2147483647,yield l/2147483647}function gl(l=1){const[o]=i.useState(()=>To(l));return i.useCallback(()=>{const r=o.next();if(r.done===!0)throw new Error("Random number generator unexpectedly finished");return r.value},[o])}function x(l,o=[]){const r=`${so}-${l.toLocaleLowerCase().replaceAll(" ","-")}`,s=Z(so,...o);return{id:r,className:s}}function T(l,o=[]){const{id:r,className:s}=x(l,o);return{id:r,UNSAFE_className:s}}function A(){}class Y extends i.Component{static renderButtonBrand(o,r){const s=o.length?`btn-${o}-${r}`:`btn-${r}`;return e.jsx(ir,{className:s,style:{marginBottom:"1rem",marginRight:"1rem"},children:r},r)}static renderButtons(o){const r=["primary","secondary","success","warning","danger","info"].map(s=>Y.renderButtonBrand(o,s));return e.jsxs("div",{...x(`buttons-${o.length?"outline":"regular"}`),children:[e.jsx("h5",{children:o.length?"Outline":"Regular"}),r]},o)}static renderLinks(){const o={primary:"accent",secondary:"neutral",success:"positive",info:"info",warning:"notice",danger:"negative"};return e.jsxs("div",{...x("links"),style:{paddingTop:"1rem"},children:[e.jsx("h5",{children:"Links"}),e.jsx(C,{gap:"1rem",children:Object.entries(o).map(([r,s])=>e.jsxs("a",{className:`text-${r}`,children:[r," (",s,")"]},r))})]})}static renderSocketedButtons(){return e.jsxs("div",{...x("buttons-socketed"),children:[e.jsx("h5",{children:"Socketed Buttons (for linker)"}),e.jsx(oe,{style:{marginBottom:"1rem",marginRight:"1rem"},onClick:A,children:"Unlinked"}),e.jsx(oe,{style:{marginBottom:"1rem",marginRight:"1rem"},isLinked:!0,onClick:A,children:"Linked"}),e.jsx(oe,{style:{marginBottom:"1rem",marginRight:"1rem"},isLinkedSource:!0,onClick:A,children:"Linked Source"}),e.jsx(oe,{style:{marginBottom:"1rem",marginRight:"1rem"},isLinked:!0,isInvalid:!0,onClick:A,children:"Error"}),e.jsx(oe,{style:{marginBottom:"1rem",marginRight:"1rem"},disabled:!0,onClick:A,children:"Disabled"})]})}constructor(o){super(o),this.state={toggle:!0}}renderInlineButtons(){const{toggle:o}=this.state;return e.jsxs("div",{...x("buttons-inline"),style:{padding:"1rem 0"},children:[e.jsx("h5",{children:"Inline Buttons"}),"Regular btn-inline:",e.jsx(p,{className:"mx-2",kind:"inline",icon:V,tooltip:"test",onClick:A}),"Toggle button (class active):",e.jsx(p,{className:"mx-2",onClick:()=>{this.setState({toggle:!o})},active:o,kind:"inline",icon:V,tooltip:"test"}),"Disabled:",e.jsx(p,{className:"mx-2",kind:"inline",disabled:!0,onClick:A,children:"Disabled"}),"With Text:",e.jsx(p,{className:"mx-2",kind:"inline",icon:V,onClick:A,children:e.jsx("span",{children:"Text Button"})}),e.jsx("br",{}),e.jsx("br",{}),e.jsx("span",{children:"btn-link-icon (no text):"}),e.jsx(p,{kind:"ghost",icon:V,tooltip:"test",onClick:A}),e.jsx("span",{className:"mx-2",children:"btn-link:"}),e.jsx(p,{kind:"ghost",onClick:A,children:"Text Button"}),e.jsx("span",{className:"mx-2",children:"btn-link (text w/ optional with icon):"}),e.jsx(p,{kind:"ghost",icon:V,onClick:A,children:"Text Button"})]})}render(){const o=["","outline"].map(a=>Y.renderButtons(a)),r=this.renderInlineButtons(),s=Y.renderSocketedButtons(),t=Y.renderLinks();return e.jsxs("div",{children:[e.jsx("h2",{className:"ui-title",children:"Buttons"}),e.jsxs("div",{style:{padding:"1rem 0"},children:[o,r,s,t]})]})}}function ml(){const l=Co();ro.random=gl();const[o]=i.useState(()=>new ro(l));return e.jsxs("div",{...x("charts"),children:[e.jsx("h2",{className:"ui-title",children:"Chart"}),e.jsx("div",{style:{height:500},children:e.jsx(ur,{model:o})})]})}const ko="2px solid var(--dh-color-notice-bg)",vl={"--dh-color-black":"gray","--dh-color-white":"gray","--dh-color-border":"General","--dh-color-bg":"General","--dh-color-surface-bg":"General","--dh-color-fg":"General","--dh-color-content-bg":"General","--dh-color-dropshadow":"General","--dh-color-keyboard-selected-bg":"Misc","--dh-color-hover-border":"Misc","--dh-color-visual-positive":"Visual Status","--dh-color-visual-negative":"Visual Status","--dh-color-visual-notice":"Visual Status","--dh-color-visual-info":"Visual Status","--dh-color-gray-bg":"Default Background","--dh-color-blue-bg":"Default Background","--dh-color-red-bg":"Default Background","--dh-color-orange-bg":"Default Background","--dh-color-yellow-bg":"Default Background","--dh-color-chartreuse-bg":"Default Background","--dh-color-celery-bg":"Default Background","--dh-color-green-bg":"Default Background","--dh-color-seafoam-bg":"Default Background","--dh-color-cyan-bg":"Default Background","--dh-color-indigo-bg":"Default Background","--dh-color-purple-bg":"Default Background","--dh-color-fuchsia-bg":"Default Background","--dh-color-magenta-bg":"Default Background","--dh-color-editor-bg":"editor","--dh-color-editor-fg":"editor","--dh-color-editor-context-menu-bg":"menus","--dh-color-editor-context-menu-fg":"menus","--dh-color-editor-menu-selection-bg":"menus","--dh-color-grid-bg":"grid","--dh-color-grid-number-positive":"Data Types","--dh-color-grid-number-negative":"Data Types","--dh-color-grid-number-zero":"Data Types","--dh-color-grid-date":"Data Types","--dh-color-grid-string-null":"Data Types"},to={"--dh-color-black":"","--dh-color-action-active-bg":"Action.active","--dh-color-action-down-bg":"Action:active","--dh-color-action-hover-bg":"Action:hover","--dh-color-action-active-hover-bg":"Action.active:hover","--dh-color-action-disabled-bg":"Action:disabled"},pl={palette:{black:"gray",white:"gray"},editor:{line:"editor",comment:"code",string:"code",number:"code",delimiter:"code",identifier:"code",keyword:"code",operator:"code",storage:"code",predefined:"code",selection:"state",focus:"state"},chart:{axis:"Chart",bg:"Chart",grid:"Chart",plot:"Chart",title:"Chart",active:"Data",trend:"Data",area:"Data",range:"Data",line:"Deprecated"},grid:{data:"Data Bars",context:"Context Menu"},semantic:{},component:{}};function _e(l){const o=ae.parseRgba(ae.asRgbOrRgbaString(l)??"");if(o==null||o.a<.5)return"white";const{r,g:s,b:t}=o;return ae.getBrightness([r,s,t])>=128?"black":"white"}function xl(l){const o=getComputedStyle(document.documentElement);return l.split(/[\n;]/g).map(s=>/^(?:\s{2}|:root\{)?(--dh-color-(?:[^:]+))/.exec(s)?.[1]).filter(s=>!!s).map(s=>{const t=o.getPropertyValue(s);return s==="--dh-color-chart-colorway"?t.split("hsl").filter(Boolean).map(c=>`hsl${c.trim()}`).map((c,d)=>({name:`${s}-${d}`,value:c})):{name:s,value:t}}).flat()}function K(l,o,r,s=vl){const t=pl[l];return xl(o).reduce((d,{name:h,value:u})=>{if(/^--dh-color-(.*?)-hsl$/.test(h)||/^--dh-color-gray-(light|mid|dark)$/.test(h))return d;const n=/^--dh-color-([^-]+)(?:-([^-]+))?/.exec(h);let g=s[h]??n?.[r]??n?.[1]??"???";if(g=t[g]??g,d[g]==null&&(d[g]=[]),h in to&&d[g].push({isLabel:!0,name:to[h],value:""}),/^--dh-color-gray-(light|mid|dark)$/.test(h))return d;const m={"--dh-color-gray-900":"light","--dh-color-gray-600":"mid","--dh-color-gray-300":"dark"}[h];return d[g].push({name:h,value:u,note:m}),d},{})}function fl(){const l=i.useRef(null);return i.useLayoutEffect(()=>{if(l.current==null)return;const o=getComputedStyle(l.current),{backgroundColor:r}=o;l.current.style.color=_e(r)},[]),l}function bl(l,o){const[r,s]=i.useState();return i.useEffect(()=>{if(l.current==null)return;const t=getComputedStyle(l.current,o).getPropertyValue("content"),a=/"(--dh-color-.*?)[,"]/.exec(t)?.[1];if(a==null)return;const c=getComputedStyle(l.current).getPropertyValue(a);s(c)},[l,o]),r}function Te({className:l,children:o}){const r=fl(),s=bl(r,":after"),t=i.useMemo(()=>s!=null?{value:s,normalized:ae.normalizeCssColor(s,!0)}:null,[s]),a=t!=null&&t.value!=="";return e.jsxs("div",{ref:r,className:l,style:{border:a?void 0:ko},children:[a&&e.jsxs(ce,{interactive:!0,children:[e.jsx("div",{children:t.value}),e.jsx("div",{children:t.normalized})]}),o]})}function yl(){const l=["100","200","300","400","500","600","700","800","850","8XX","900"].map(s=>e.jsx(Te,{className:Z("swatch","gray-swatch",`gray-swatch-${s}`),children:s==="8XX"?"N/A":`Gray-${s}`},s)),o=["red","orange","yellow","green","blue","purple","white","black"].map(s=>e.jsx(Te,{className:Z("swatch",`swatch-${s}`),children:s},s)),r=["content-bg","background","foreground","primary","primary-dark","primary-light","secondary","secondary-hover","success","info","warning","danger","danger-hover"].map(s=>e.jsx(Te,{className:Z("swatch",`swatch-${s}`),children:s},s));return e.jsxs("div",{...x("colors"),children:[e.jsx("h2",{className:"ui-title",children:"Colors"}),e.jsxs("div",{className:"row",children:[e.jsxs("div",{className:"col",children:[l,o]}),e.jsx("div",{className:"col",children:r}),e.jsx("div",{className:"col",children:e.jsx("p",{children:"This section is for legacy reference only. Use the css variable based semantic colors in the following sections. You should not be using colors defined in the theme color palette directly."})})]})]})}class jl extends i.Component{constructor(o){super(o),this.makeContextMenuItems=this.makeContextMenuItems.bind(this)}makeContextMenuItems(o){const r=o!==void 0?` ${o}`:"";return[{title:`Show Alert${r}`,icon:Oe,action:()=>{alert(`Alert${r}!`)},shortcut:new X({id:"STYLEGUIDE.SHOW_ALERT",name:"Show Alert",shortcut:[I.CTRL,$.A],macShortcut:[I.CMD,$.A]})},{title:`Log Message${r}`,icon:Ve,action:()=>{console.log(`Logging a message${r}!`)},shortcut:new X({id:"STYLEGUIDE.LOG_MESSAGE",name:"Log Message",shortcut:[I.CTRL,$.L],macShortcut:[I.CMD,$.L]})},{title:"Sub-menu",actions:()=>this.makeContextMenuItems((o??0)+1),order:3}].concat(new Array(10).fill({title:`Disabled Option${r}`,disabled:!0,order:2}))}render(){const o=this.makeContextMenuItems(),s=[{title:"Show Shortcuts",icon:bo,action:()=>{alert("Show keyboard shortcuts!")},shortcut:new X({id:"STYLEGUIDE.SHOW_SHORTCUTS",name:"Show Shortcuts",shortcut:[I.CTRL,$.SLASH],macShortcut:[I.CMD,$.SLASH]}),group:ie.groups.global}].concat(o),t=()=>new Promise(a=>{setTimeout(()=>{a(o)},3e3)});return e.jsxs("div",{...x("context-menus"),children:[e.jsx("h2",{className:"ui-title",children:"Context Menu"}),e.jsxs(p,{kind:"primary",style:{cursor:"default",marginBottom:"1rem",marginRight:"1rem"},onClick:()=>{},children:["Right Click Me",e.jsx(ie,{actions:s})]}),e.jsxs(p,{kind:"tertiary",style:{cursor:"default",marginBottom:"1rem",marginRight:"1rem"},onClick:()=>{},children:["Right Click Me",e.jsx(ie,{actions:t})]})]})}}class wl extends i.Component{constructor(o){super(o),this.sampleInput=ne.createRef(),this.handleUpdateCheckboxMap=this.handleUpdateCheckboxMap.bind(this);const r=["Parent A",new Map([["Child 1",!0],["Child 2",!1]])],s=["Parent B",new Map([["Child 3",!0],["Child 4",!1],["Child 5",!0],["Child 6",!1]])],t=["Leaf Parent",!0];this.state={isShown:!1,checkBoxMap:new Map([r,s,t])}}handleUpdateCheckboxMap(o){this.setState({checkBoxMap:o})}renderChild(){return e.jsxs("div",{className:"p-3",children:[e.jsx("h4",{children:"Sample Child"}),e.jsxs("div",{className:"form-group",children:[e.jsxs("label",{htmlFor:"exampleInput1",children:["Input Label",e.jsx("input",{ref:this.sampleInput,type:"text",className:"form-control",id:"exampleInput1","aria-describedby":"emailHelp",placeholder:"Input Placeholder"})]}),e.jsx("small",{className:"form-text text-muted",children:"Help text for a form input"})]})]})}render(){const{isShown:o,checkBoxMap:r}=this.state;return e.jsxs("div",{...x("dialog"),children:[e.jsx("h2",{className:"ui-title",children:"Popover Dialog"}),e.jsx("p",{children:"Popover dialog that can contain interactive elements, can be set to self close on blur."}),e.jsxs(p,{kind:"primary",style:{marginBottom:"1rem",marginRight:"1rem"},onClick:()=>{o?this.setState({isShown:!1}):this.setState({isShown:!0})},children:["Open Dialog",e.jsx(yr,{options:{placement:"bottom"},isShown:o,onEntered:()=>{this.sampleInput.current&&this.sampleInput.current.focus()},onExited:()=>{this.setState({isShown:!1})},closeOnBlur:!0,interactive:!0,children:this.renderChild()})]}),e.jsx("p",{children:"The Hierarchical Checkbox Menu uses a popover dialog to display hierarchical groups of checkboxes."}),e.jsx(Dr,{menuText:"Checkbox Menu",valueMap:r,onUpdateValueMap:this.handleUpdateCheckboxMap})]})}}class Cl extends i.Component{constructor(o){super(o),this.state={isShown:!1}}render(){const o=[{title:"Show Alert",icon:Oe,action:()=>{alert("Alert!")},shortcut:new X({id:"STYLEGUIDE.SHOW_ALERT",name:"Show Alert",shortcut:[I.CTRL,$.A],macShortcut:[I.CMD,$.A]})},{title:"Log Message",icon:Ve,action:()=>{console.log("Logging a message!")},shortcut:new X({id:"STYLEGUIDE.LOG_MESSAGE",name:"Log Message",shortcut:[I.CTRL,$.L],macShortcut:[I.CMD,$.L]})}],s=[{title:"Show Shortcuts",icon:bo,action:()=>{alert("Show keyboard shortcuts!")},shortcut:new X({id:"STYLEGUIDE.SHOW_SHORTCUTS",name:"Show Shortcuts",shortcut:[I.CTRL,$.SLASH],macShortcut:[I.CMD,$.SLASH]}),group:ie.groups.global}].concat(o),{isShown:t}=this.state;return e.jsxs("div",{...x("dropdown-menus"),children:[e.jsx("h2",{className:"ui-title",children:"Dropdown Menu"}),e.jsx("p",{children:"A simple dropdown menu of actions, can open on click of parent container, or controlled by prop."}),e.jsx(p,{kind:"inline",className:"mx-2",icon:sr,onClick:()=>{},children:e.jsx(Je,{actions:s})}),e.jsxs(p,{kind:"primary",style:{marginRight:"1rem",minWidth:"165px"},onClick:()=>{t?this.setState({isShown:!1}):this.setState({isShown:!0})},children:["Menu Shown: ",t.toString()]}),e.jsxs("div",{ref:this.button,className:"btn btn-secondary disabled",style:{marginRight:"1rem"},children:["Shown using isShown",e.jsx(Je,{isShown:t,onMenuClosed:()=>{this.setState({isShown:!1})},actions:s})]})]})}}const Sl=`trades = db.t("LearnDeephaven", "StockTrades").where("Date=\`2017-08-25\`")\\
|
|
2
|
+
.headBy(3, "Sym")\\
|
|
3
|
+
.view("Sym", "Last")
|
|
4
|
+
|
|
5
|
+
summary = trades.view("Sym", "AvgPrice=Last").avgBy("Sym")
|
|
6
|
+
|
|
7
|
+
lj = summary.leftJoin(trades, "Sym", "Last")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def rollingAvg(rows, values):
|
|
12
|
+
calculations = jpy.array('double', values.size()) # create an array of integers
|
|
13
|
+
|
|
14
|
+
sum = 0
|
|
15
|
+
n = 0
|
|
16
|
+
avg = 0
|
|
17
|
+
|
|
18
|
+
for i in range(values.size()):
|
|
19
|
+
sum += values.get(i) #add each value to sum
|
|
20
|
+
if (i >= rows): sum -= values.get(i - rows) #subtract when needed
|
|
21
|
+
|
|
22
|
+
n = i + 1 if (i < rows) else rows #n increments with i until i=rows
|
|
23
|
+
avg = sum / n #get updated average every iteration
|
|
24
|
+
|
|
25
|
+
calculations[i] = avg #store running average
|
|
26
|
+
|
|
27
|
+
return calculations #return an array of rolling averages
|
|
28
|
+
|
|
29
|
+
def rollingStd(rows, values, averages):
|
|
30
|
+
calculations = jpy.array('double', values.size()) # create an array of integers
|
|
31
|
+
|
|
32
|
+
sum = 0
|
|
33
|
+
n = 0
|
|
34
|
+
|
|
35
|
+
for i in range(values.size()):
|
|
36
|
+
sum = 0
|
|
37
|
+
|
|
38
|
+
j = i
|
|
39
|
+
while j >= 0 and j > i - rows:
|
|
40
|
+
difference = values.get(j) - averages[i]
|
|
41
|
+
squareDiff = difference ** 2
|
|
42
|
+
sum += squareDiff
|
|
43
|
+
j -= 1
|
|
44
|
+
|
|
45
|
+
n = i + 1 if (i < rows) else rows
|
|
46
|
+
variance = sum / n
|
|
47
|
+
standardDev = variance ** (1/2.0)
|
|
48
|
+
calculations[i] = standardDev
|
|
49
|
+
|
|
50
|
+
return calculations
|
|
51
|
+
|
|
52
|
+
trades = db.t("LearnDeephaven", "StockTrades")\\
|
|
53
|
+
.where("Date=\`2017-08-25\`")\\
|
|
54
|
+
.view("Sym", "Last", "Size", "ExchangeTimestamp")
|
|
55
|
+
|
|
56
|
+
trades30min = trades.updateView("TimeBin=lowerBin(ExchangeTimestamp, 30*MINUTE)")\\
|
|
57
|
+
.firstBy("Sym", "TimeBin")
|
|
58
|
+
|
|
59
|
+
rollingCalc = trades30min.by("Sym")\\
|
|
60
|
+
.update("Avg=(double[])rollingAvg.call(30, Last)",
|
|
61
|
+
"Std=(double[])rollingStd.call(30, Last, Avg)")\\
|
|
62
|
+
.ungroup()
|
|
63
|
+
minEdge = 0.5
|
|
64
|
+
maxPos = 3.0
|
|
65
|
+
liquidity = 1e6
|
|
66
|
+
|
|
67
|
+
targetPos = rollingCalc.updateView("Zscore=(Avg-Last)/Std if (Std > 0) else NULL_DOUBLE", "AdjZscore=signum(Zscore) * min(maxPos, max(abs(Zscore)-minEdge), 0.0)", "TargetPosition=(int)(liquidity*AdjZscore/Last)")\\
|
|
68
|
+
.dropColumns("ExchangeTimestamp", "Avg", "Std", "Zscore", "AdjZscore")
|
|
69
|
+
|
|
70
|
+
timeBinIndexes = targetPos.leftJoin(trades30min, "Sym", "Times=ExchangeTimestamp, SharesTraded=Size")\\
|
|
71
|
+
.updateView("StartIndex=binSearchIndex(Times, TimeBin-30*MINUTE, BS_LOWEST)", "EndIndex=binSearchIndex(Times, TimeBin, BS_HIGHEST)")\\
|
|
72
|
+
.dropColumns("Times")
|
|
73
|
+
|
|
74
|
+
shares30min = timeBinIndexes.updateView("SharesTraded30Min=sum(SharesTraded.subArray(StartIndex, EndIndex))")\\
|
|
75
|
+
.dropColumns("SharesTraded", "StartIndex", "EndIndex")
|
|
76
|
+
|
|
77
|
+
from math import copysign
|
|
78
|
+
class SimulatorState:
|
|
79
|
+
def __init__(self):
|
|
80
|
+
self.hm = {}
|
|
81
|
+
|
|
82
|
+
def __call__(self, sym, targetPos, shares10s):
|
|
83
|
+
if sym not in self.hm:
|
|
84
|
+
self.hm[sym] = [0.0] * 2
|
|
85
|
+
tradedAndPosition = self.hm[sym]
|
|
86
|
+
tradedAndPosition[0] = 0.0 if (targetPos == None) else copysign(1, targetPos - tradedAndPosition[1]) * min(abs(targetPos - tradedAndPosition[1]), shares10s * 0.1)
|
|
87
|
+
tradedAndPosition[1] += tradedAndPosition[0]
|
|
88
|
+
return jpy.array('double', list(tradedAndPosition))
|
|
89
|
+
|
|
90
|
+
ss = SimulatorState()
|
|
91
|
+
|
|
92
|
+
simulation = shares30min.update("Values=(double[])ss.call(Sym, TargetPosition, SharesTraded30Min)", "PositionChange=Values[0]", "Position=Values[1]")\\
|
|
93
|
+
.dropColumns("Values")
|
|
94
|
+
`,Tl=`trades = db.t("LearnDeephaven", "StockTrades").where("Date=\`2017-08-25\`")
|
|
95
|
+
.headBy(3, "Sym")
|
|
96
|
+
.view("Sym", "Last")
|
|
97
|
+
|
|
98
|
+
summary = trades.view("Sym", "AvgPrice=Last").avgBy("Sym")
|
|
99
|
+
|
|
100
|
+
lj = summary.leftJoin(trades, "Sym", "Last")
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
rollingAvg = { rows, values ->
|
|
104
|
+
|
|
105
|
+
calculations = new double[values.size()]
|
|
106
|
+
|
|
107
|
+
sum = 0
|
|
108
|
+
n = 0
|
|
109
|
+
avg = 0
|
|
110
|
+
|
|
111
|
+
for (int i = 0; i < values.size(); ++i)
|
|
112
|
+
{
|
|
113
|
+
sum += values.get(i) //add each value to sum
|
|
114
|
+
if (i >= rows) sum -= values.get(i - rows) //subtract when needed
|
|
115
|
+
|
|
116
|
+
n = (i < rows) ? i + 1 : rows //n increments with i until i=rows
|
|
117
|
+
avg = sum / n //get updated average every iteration
|
|
118
|
+
|
|
119
|
+
calculations[i] = avg //store running average
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
return calculations //return an array of rolling averages
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
rollingStd = { rows, values, averages ->
|
|
126
|
+
calculations = new double[values.size()]
|
|
127
|
+
|
|
128
|
+
sum = 0
|
|
129
|
+
n = 0
|
|
130
|
+
|
|
131
|
+
for (int i = 0; i < values.size(); ++i)
|
|
132
|
+
{
|
|
133
|
+
sum = 0
|
|
134
|
+
for (int j = i; j >= 0 && j > i - rows; --j)
|
|
135
|
+
{
|
|
136
|
+
difference = values.get(j) - averages[i]
|
|
137
|
+
squareDiff = Math.pow(difference, 2)
|
|
138
|
+
sum += squareDiff
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
n = (i < rows) ? i + 1 : rows
|
|
142
|
+
variance = sum / n
|
|
143
|
+
standardDev = Math.sqrt(variance)
|
|
144
|
+
calculations[i] = standardDev
|
|
145
|
+
}
|
|
146
|
+
return calculations
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
trades = db.t("LearnDeephaven", "StockTrades")
|
|
150
|
+
.where("Date=\`2017-08-25\`")
|
|
151
|
+
.view("Sym", "Last", "Size", "ExchangeTimestamp")
|
|
152
|
+
|
|
153
|
+
trades30min = trades.updateView("TimeBin=lowerBin(ExchangeTimestamp, 30*MINUTE)")
|
|
154
|
+
.firstBy("Sym", "TimeBin")
|
|
155
|
+
|
|
156
|
+
rollingCalc = trades30min.by("Sym")
|
|
157
|
+
.update("Avg=(double[])rollingAvg.call(30, Last)","Std=(double[])rollingStd.call(30, Last, Avg)")
|
|
158
|
+
.ungroup()
|
|
159
|
+
|
|
160
|
+
minEdge = 0.5d
|
|
161
|
+
maxPos = 3.0d
|
|
162
|
+
liquidity = 1e6d
|
|
163
|
+
|
|
164
|
+
targetPos = rollingCalc.updateView("Zscore=(Std > 0) ? (Avg-Last)/Std : NULL_DOUBLE", "AdjZscore=signum(Zscore) * min(maxPos, max(abs(Zscore)-minEdge), 0.0)", "TargetPosition=(int)(liquidity*AdjZscore/Last)")
|
|
165
|
+
.dropColumns("ExchangeTimestamp", "Avg", "Std", "Zscore", "AdjZscore")
|
|
166
|
+
|
|
167
|
+
timeBinIndexes = targetPos.leftJoin(trades30min, "Sym", "Times=ExchangeTimestamp, SharesTraded=Size")
|
|
168
|
+
.updateView("StartIndex=binSearchIndex(Times, TimeBin-30*MINUTE, BS_LOWEST)", "EndIndex=binSearchIndex(Times, TimeBin, BS_HIGHEST)")
|
|
169
|
+
.dropColumns("Times")
|
|
170
|
+
|
|
171
|
+
shares30min = timeBinIndexes.updateView("SharesTraded30Min=sum(SharesTraded.subArray(StartIndex, EndIndex))")
|
|
172
|
+
.dropColumns("SharesTraded", "StartIndex", "EndIndex")
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
class SimulatorState
|
|
176
|
+
{
|
|
177
|
+
private HashMap<String, double[]> hm = new HashMap<>();
|
|
178
|
+
|
|
179
|
+
public double[] update(String sym, int targetPos, int shares10s)
|
|
180
|
+
{
|
|
181
|
+
if (!hm.containsKey(sym)) hm.put(sym, new double[2]);
|
|
182
|
+
|
|
183
|
+
double[] tradedAndPosition = hm.get(sym);
|
|
184
|
+
|
|
185
|
+
tradedAndPosition[0] =
|
|
186
|
+
isNull(targetPos) ? 0.0 : signum(targetPos - tradedAndPosition[1]) * min(abs(targetPos - tradedAndPosition[1]), shares10s * 0.1d)
|
|
187
|
+
tradedAndPosition[1] += tradedAndPosition[0];
|
|
188
|
+
|
|
189
|
+
return Arrays.copyOf(tradedAndPosition, tradedAndPosition.length);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
ss = new SimulatorState()
|
|
193
|
+
|
|
194
|
+
simulation = shares30min.update("Values=(double[])ss.update(Sym, TargetPosition, SharesTraded30Min)", "PositionChange=Values[0]", "Position=Values[1]")
|
|
195
|
+
.dropColumns("Values")
|
|
196
|
+
|
|
197
|
+
`,ao={testPython:Sl,testGroovy:Tl};function kl(){return e.jsxs("div",{...x("editors"),children:[e.jsx("h2",{className:"ui-title",children:"Editor"}),e.jsx("h5",{className:"sub-title",children:"Python"}),e.jsx("div",{style:{height:400,position:"relative"},children:e.jsx(eo,{settings:{language:"python",value:ao.testPython}})}),e.jsx("h5",{className:"sub-title",children:"Groovy"}),e.jsx("div",{style:{height:400,position:"relative"},children:e.jsx(eo,{settings:{language:"groovy",value:ao.testGroovy}})})]})}const Nl=[];class Dl extends be{model;editedData;constructor(o,r=new Ge){super(o),this.model=r,this.editedData=[]}get rowCount(){return this.model.rowCount}get columnCount(){return this.model.columnCount}get floatingTopRowCount(){return 3}get floatingBottomRowCount(){return 3}get isEditable(){return!0}isEditableRange(o){return this.isEditable}setValues(o){throw new Error("Method not implemented.")}delete(o){throw new Error("Method not implemented.")}get pendingRowCount(){return 0}set pendingRowCount(o){}get pendingDataMap(){return new Map}set pendingDataMap(o){}updateFrozenColumns(o){}getColumnIndexByName(o){return Number(o)}textForCell(o,r){return this.editedData[o]?.[r]??this.model.textForCell(o,r)}textForRowHeader(o){return this.model.textForRowHeader(o)}textForRowFooter(o){return this.model.textForRowHeader(o)}textForColumnHeader(o,r){return this.model.textForColumnHeader(o,r)}get hasExpandableRows(){return this.model.hasExpandableRows}get isExpandAllAvailable(){return!1}isRowExpandable(o){return this.model.isRowExpandable(o)}isRowExpanded(o){return this.model.isRowExpanded(o)}setRowExpanded(o,r,s=!1){this.model.setRowExpanded(o,r,s)}expandAll(){throw new Error("Expand all not implemented.")}collapseAll(){throw new Error("Collapse all not implemented.")}depthForRow(o){return this.model.depthForRow(o)}get columns(){return this.getCachedColumns(this.columnCount)}get groupedColumns(){return Nl}getCachedColumns=xo(o=>{const r=[];for(let s=0;s<o;s+=1)r.push({name:this.model.textForColumnHeader(s,0),type:"java.lang.String",description:`Mock column ${s}`});return r});get description(){return"A mock used for testing."}get customColumns(){return[]}set customColumns(o){}get formatColumns(){return[]}set formatColumns(o){}get sort(){return[]}set sort(o){}get filter(){return[]}set filter(o){}set formatter(o){}displayString(o){return`${o}`}valueForCell(o,r){return this.textForCell(o,r)}formatForCell(o,r){}setViewport(){this.dispatchEvent(new CustomEvent(be.EVENT.UPDATED))}async setValueForCell(o,r,s){this.editedData[o]==null&&(this.editedData[o]=[]),this.editedData[o][r]=`${s}`,this.dispatchEvent(new CustomEvent(be.EVENT.UPDATED))}async setValueForRanges(o,r){yo.forEachCell(o,(s,t)=>{this.setValueForCell(s,t,r)})}editValueForCell(o,r){return this.textForCell(o,r)}isValidForCell(o,r,s){return!0}async columnStatistics(o){throw new Error("Not defined in mock")}async commitPending(){throw new Error("Not defined in mock")}async export(){throw new Error("Not defined in mock")}get pendingDataErrors(){throw new Error("Not defined in mock")}get rollupConfig(){throw new Error("Not defined in mock")}set rollupConfig(o){throw new Error("Not defined in mock")}get selectDistinctColumns(){throw new Error("Not defined in mock")}set selectDistinctColumns(o){throw new Error("Not defined in mock")}async snapshot(o){throw new Error("Not defined in mock")}async textSnapshot(){throw new Error("Not defined in mock")}get totalsConfig(){throw new Error("Not defined in mock")}set totalsConfig(o){throw new Error("Not defined in mock")}valuesTable(o){throw new Error("Not defined in mock")}seekRow(o,r,s,t,a,c,d){throw new Error("Method not implemented.")}get columnHeaderGroups(){return[]}set columnHeaderGroups(o){}get columnHeaderGroupMap(){return new Map}getColumnHeaderParentGroup(){}get initialMovedColumns(){return[]}get initialMovedRows(){return[]}get initialColumnHeaderGroups(){return[]}}function El(){const[l]=i.useState(()=>new Xr([["Matthew Austins","Toronto",35,22],["Doug Millgore","Toronto",14,33],["Bart Marchant","Boston",20,14],["Luigi Dabest","Pittsburgh",66,33]],["Name","Team","Goals","Assists"]));return e.jsx(Q,{model:l})}function Il(){const[l]=i.useState(()=>new Ue({isEditable:!0,rowCount:Number.MAX_SAFE_INTEGER,columnCount:Number.MAX_SAFE_INTEGER}));return e.jsx(Q,{model:l})}function $l(){const[l]=i.useState(()=>new Ge);return e.jsx(Q,{model:l})}function Al(){const[l]=i.useState(()=>new ol(1e9,1e6)),o=i.useRef(null),[r,s]=i.useState({top:0,bottom:0,left:0,right:0}),t=i.useCallback(u=>{const{top:n,bottom:g,left:m,right:v}=u;s({top:n,bottom:g,left:m,right:v})},[]),{top:a,bottom:c,left:d,right:h}=r;return i.useEffect(function(){let n=!1;return setTimeout(()=>{if(n)return;const g=[];for(let m=a;m<=c;m+=1){const v=[];for(let f=d;f<=h;f+=1)v.push(`${m},${f}`);g.push(v)}l.viewportData={rowOffset:a,columnOffset:d,data:g},o.current?.forceUpdate()},250),()=>{n=!0}},[a,c,d,h,l]),e.jsx(Q,{model:l,onViewChanged:t,ref:o})}function Ml(){const l=[100,50,20,10,-10,-20,-50,-30,100,0,1],o=[],r=new Map([[0,"proportional"],[1,"middle"],[2,"directional"],[6,"directional"],[7,"directional"],[8,"directional"],[9,"directional"],[10,"directional"]]),s=new Map([[3,"#72d7df"],[4,"#ac9cf4"]]);s.set(5,["#f3cd5b","#9edc6f"]),s.set(19,["#42f54b","#42b9f5","#352aa8"]);const t=new Map([[3,"#f3cd5b"],[4,"#ac9cf4"]]);t.set(5,["#f95d84","#f3cd5b"]),t.set(19,["#e05536","#e607de","#e6e207"]);const a=new Map([[6,"hide"],[7,"overlap"],[8,"overlap"],[9,"overlap"]]),c=new Map([[7,.5],[8,.5],[9,.5]]),d=new Map([[8,"RTL"],[10,"RTL"],[16,"RTL"],[19,"RTL"]]),h=new Map([[9,"left"],[11,"left"]]),u=new Map([[12,[{value:13,color:"white"},{value:14,color:"gray"}]]]);for(let g=0;g<13;g+=1)o.push(l.slice());o.push([70,60,30,20,-10,-30,-20,-50,80,50,10]),o.push([50,20,10,0,0,-10,-30,10,90,20,40]),o.push([-100,-90,-80,-70,-60,-50,-40,-30,-20,-10,0]),o.push(l.slice()),o.push([100,10.5,11.234,-20.5,-50,-2.5,-15.1234,94.254,25,44.4444,-50.5]),o.push([1e6,10,200,-2e4,-2e6,-25,-9e5,8e5,1e5,45e4,1]),o.push(l.slice()),o.push(l.slice()),o.push(l.slice());const[n]=i.useState(()=>new ul(o,r,s,t,a,c,d,h,u));return e.jsx(Q,{model:n})}function Rl(){const l=Co(),[o]=i.useState(new Dl(l,new Ge)),[r]=i.useState(new Ue),[s]=i.useState({autoSelectRow:!0}),[t]=i.useState({font:'12px Arial, "DejaVu Sans", sans-serif',rowHeight:40});return e.jsx("div",{children:e.jsxs(gr.Provider,{value:t,children:[e.jsx("h2",{className:"ui-title",children:"Grid"}),e.jsx(C,{...T("grids-grid"),children:e.jsx(Q,{model:r,theme:s})}),e.jsx("h2",{className:"ui-title",children:"Static Data"}),e.jsx(C,{...T("grids-static"),height:200,children:e.jsx(El,{})}),e.jsx("h2",{className:"ui-title",children:"Data Bar"}),e.jsx(C,{...T("grids-data-bar"),height:500,children:e.jsx(Ml,{})}),e.jsx("h2",{className:"ui-title",children:"Quadrillion rows and columns"}),e.jsx(C,{...T("grids-quadrillion"),position:"relative",height:500,children:e.jsx(Il,{})}),e.jsx("h2",{className:"ui-title",children:"Async example"}),e.jsx(C,{...T("grids-async"),position:"relative",height:500,children:e.jsx(Al,{})}),e.jsx("h2",{className:"ui-title",children:"Tree Grid"}),e.jsx(C,{...T("grids-tree"),height:500,children:e.jsx($l,{})}),e.jsx("h2",{className:"ui-title",children:"Iris Grid"}),e.jsx(C,{...T("grids-iris"),height:500,children:e.jsx(mr,{model:o})})]})})}async function co(l){try{return await navigator.clipboard.writeText(l)}catch(o){throw new Error(`Unable to copy: ${o}`)}}const Ll="dh",Pl="vs",no=(l,o)=>o.toLowerCase()+l.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("");function No({message:l,message:{text:o}}){const[r,s]=i.useState(!1);return i.useEffect(function(){if(o==null||o==="")return;s(!0);const a=setTimeout(()=>{s(!1)},2e3);return()=>{clearTimeout(a)}},[l,o]),e.jsx("p",{className:r?"flash in":"flash out",children:o})}No.propTypes={message:ge.shape({text:ge.node}).isRequired};function _l(){const[l,o]=i.useState(!0),[r,s]=i.useState(!0),[t,a]=i.useState(""),[c,d]=i.useState({text:""}),h=Object.values(z).filter(n=>{const g=no(n.iconName,n.prefix).toLowerCase().indexOf(t.replace(/\s/g,"").replace(/-/g,"").toLowerCase())!==-1,m=l&&n.prefix===Ll,v=r&&n.prefix===Pl;return g&&(m||v)}).map(n=>{const g=no(n.iconName,n.prefix);return e.jsxs(p,{kind:"inline",className:"card",onClick:()=>{co(g).then(()=>{d({text:e.jsxs("span",{children:[e.jsx(E,{icon:z.vsOutput})," Copied text:"," ",e.jsx("strong",{children:g})]})})}).catch(m=>{d({text:e.jsx("span",{className:"text-danger",children:m.message})})})},children:[e.jsx(de,{size:"L",children:e.jsx(E,{icon:n})}),e.jsx("label",{title:g,children:g})]},g)}),u=`
|
|
198
|
+
<div className="fa-md fa-layers">
|
|
199
|
+
<FontAwesomeIcon
|
|
200
|
+
mask={vsOrganization}
|
|
201
|
+
icon={dhSquareFilled}
|
|
202
|
+
transform="down-7 right-7"
|
|
203
|
+
/>
|
|
204
|
+
<FontAwesomeIcon icon={dhAddSmall} />
|
|
205
|
+
</div>`;return e.jsxs("div",{...x("icons"),children:[e.jsx("h2",{className:"ui-title",children:"Icons"}),e.jsx("div",{className:"row",children:e.jsxs("div",{className:"col",children:[e.jsx("h4",{children:"Icon Composition"}),e.jsx("p",{children:"Icons can be used indivudally or composed together using font-awesome composition:"}),e.jsxs("div",{className:"icons",children:[e.jsx("div",{className:"icon card",children:e.jsx(E,{icon:Ke})}),e.jsx("div",{className:"icon card",children:e.jsx(E,{icon:Ye})}),e.jsx("div",{className:"icon card",children:e.jsx(E,{icon:Ze})}),e.jsx("div",{className:"icon card",children:"="}),e.jsxs(p,{kind:"inline",className:"card",onClick:()=>{co(u).then(()=>{d({text:e.jsx("span",{children:"Copied composition example"})})}).catch(n=>{d({text:e.jsx("span",{className:"text-danger",children:n.message})})})},children:[e.jsx("div",{className:"icon",children:e.jsxs("div",{className:"fa-md fa-layers",children:[e.jsx(E,{mask:Ke,icon:Ye,transform:"down-7 right-7"}),e.jsx(E,{icon:Ze})]})}),e.jsx("label",{children:"Custom"})]})]})]})}),e.jsx("hr",{}),e.jsx("div",{className:"row",children:e.jsxs("div",{className:"col",children:[e.jsx("h4",{children:"All available icons"}),e.jsx("p",{children:"If you cannot find or compose a relevant icon for your use case, please request a new one to be created from design."}),e.jsxs("div",{className:"form-inline mb-3",children:[e.jsx("input",{type:"search",placeholder:"Basic icon search...",value:t,className:"form-control",onChange:n=>{a(n.target.value)}}),e.jsx("span",{className:"mx-2",children:"Show: "}),e.jsx(p,{kind:"inline",active:r,className:"mr-2",onClick:()=>s(!r),icon:r?z.vsCheck:z.vsClose,children:"VS ICONS"}),e.jsx(p,{kind:"inline",active:l,className:"mr-2",onClick:()=>o(!l),icon:l?z.vsCheck:z.vsClose,children:"DH ICONS"}),e.jsxs("small",{children:["(",h.length," icon",h.length===1?"":"s",")"]})]}),e.jsxs("div",{className:"icons",children:[h,h.length===0&&e.jsx("p",{className:"no-result",children:"No icons found."}),e.jsx(No,{message:c})]})]})})]})}const ke=[{title:"Title 1",value:"Value 1"},{title:"Title 2",value:"Value 2"},{title:"Title 3",value:"Value 3"},{title:"Title 4",value:"Value 4"},{title:"Title 5",value:"Value 5"},{title:"Title 6",value:"Value 6"},{title:"Title 7",value:"Value 7"},{title:"Title 8",value:"Value 8"},{title:"Title 9",value:"Value 9"},{title:"Title 9",value:"Value 9"},{title:"Title 10",value:"Value 10"},{title:"Title 11",value:"Value 11"},{title:"Title 12",value:"Value 12"}],Bl=[{title:"1 minute",value:1*60*1e3},{title:"5 minutes",value:5*60*1e3},{title:"20 minutes",value:20*60*1e3},{title:"45 minutes",value:45*60*1e3},{title:"1 hour",value:1*60*60*1e3},{title:"4 hours",value:4*60*60*1e3}],ho=["Invalid","Valid"];function Fl(){const[l,o]=i.useState(!1),[r,s]=i.useState(""),[t,a]=i.useState(!0),[c,d]=i.useState(!1),[h,u]=i.useState(!1),[n,g]=i.useState(!1),[m,v]=i.useState(null),[f,y]=i.useState("1"),[F,J]=i.useState(),[O,U]=i.useState("-DLiveTableMonitor.updateThreads=8 -DLiveTableMonitor.printDependencyInformation=false -Dassertion.heapDump=true -Drequire.heapDump=true -Dassertion.heapDump=true -Drequire.heapDump=true"),[he,Io]=i.useState(""),[ze,$o]=i.useState(ho[0]),Ao=i.useCallback(j=>{y(j.target.value)},[]),ee=i.useCallback(()=>{o(!l)},[l]),Mo=i.useCallback(j=>{s(j.target.value)},[]),Ro=i.useCallback(j=>{Io(j.target.value)},[]);return e.jsxs("div",{...x("inputs",["style-guide-inputs"]),children:[e.jsx("h2",{className:"ui-title",children:"Inputs"}),e.jsxs("div",{className:"row",children:[e.jsx("div",{className:"col",children:e.jsxs("form",{children:[e.jsxs("div",{className:"form-group",children:[e.jsxs("label",{htmlFor:"exampleInput1",children:["Input Label",e.jsx("input",{type:"text",className:"form-control",id:"exampleInput1","aria-describedby":"emailHelp",placeholder:"Input Placeholder"})]}),e.jsx("small",{className:"form-text text-muted",children:"Help text for a form imput"})]}),e.jsxs("div",{className:"form-group",children:[e.jsxs("label",{htmlFor:"exampleInput2",children:["Input Label",e.jsx("input",{type:"text",className:"form-control",id:"exampleInput2","aria-describedby":"emailHelp",placeholder:"Input Disabled",disabled:!0})]}),e.jsx("small",{className:"form-text text-muted",children:"Disabled input"})]}),e.jsx("div",{className:"form-group",children:e.jsxs("label",{htmlFor:"exampleInputPassword1",children:["Password",e.jsx("input",{type:"password",className:"form-control",id:"exampleInputPassword1",placeholder:"Password",defaultValue:"123456789"})]})}),e.jsx("div",{className:"form-group",children:e.jsx(jr,{value:r,placeholder:"Search Input",onChange:Mo})})]})}),e.jsx("div",{className:"col",children:e.jsxs("form",{children:[e.jsx("h5",{children:" Checkboxes "}),e.jsx(P,{className:"form-group",checked:t,onChange:()=>a(!t),children:"Checked checkbox"}),e.jsx(P,{className:"form-group",checked:c,onChange:()=>d(!c),children:"Unchecked checkbox"}),e.jsx(P,{className:"form-group",disabled:!0,checked:null,children:"Disabled checkbox"}),e.jsx(P,{className:"form-group",isInvalid:!0,checked:h,onChange:()=>u(!h),children:"Invalid checkbox"}),e.jsx(P,{className:"form-group",checked:n,onChange:()=>g(!n),children:"Add radio button"}),e.jsx(P,{className:"form-group",checked:m,onChange:()=>{m==null?v(!0):v(m?!1:null)},children:"Indeterminate Cycle"})]})}),e.jsxs("div",{className:"col",children:[e.jsxs("form",{children:[e.jsx("h5",{children:" Radios "}),e.jsxs(wo,{onChange:Ao,value:f,children:[e.jsx(B,{value:"1",children:"Toggle this custom radio"}),e.jsx(B,{value:"2",children:"Or toggle this other custom radio"}),e.jsx(B,{value:"3",disabled:!0,children:"Disabled radio"}),e.jsx(B,{value:"4",isInvalid:!0,children:"Invalid radio"}),e.jsx(e.Fragment,{children:n&&e.jsx(B,{value:"5",children:"Extra radio item"})})]})]}),e.jsxs("div",{className:"form-group",children:[e.jsx("h5",{children:"Toggle Buttons"}),e.jsxs("div",{className:"form-inline justify-content-between",children:[e.jsx("label",{children:String(l)}),e.jsx(re,{on:l,onClick:ee})]}),e.jsxs("div",{className:"form-inline justify-content-between",children:[e.jsx("label",{children:String(!l)}),e.jsx(re,{on:!l,onClick:ee})]}),e.jsxs("div",{className:"form-inline justify-content-between",children:[e.jsx("label",{className:"isInvalid",children:"isInvalid"}),e.jsx(re,{on:!l,isInvalid:!0,onClick:ee})]}),e.jsxs("div",{className:"form-inline justify-content-between",children:[e.jsx("label",{className:"disabled",children:"disabled"}),e.jsx(re,{on:!l,disabled:!0,onClick:ee})]})]})]}),e.jsxs("div",{className:"col",children:[e.jsxs("div",{className:"form-group",children:[e.jsx("h5",{children:"Selection Menu"}),e.jsxs(ue,{onChange:j=>{},defaultValue:"0",className:"custom-select",children:[e.jsx("option",{disabled:!0,value:"0",children:"Custom Selection"}),e.jsx("option",{value:"1",children:"One"}),e.jsx("option",{value:"2",children:"Two"}),e.jsx("option",{value:"3",children:"Three"})]})]}),e.jsx("div",{className:"form-group",children:e.jsxs(ue,{onChange:j=>{},defaultValue:"0",className:"custom-select",disabled:!0,children:[e.jsx("option",{disabled:!0,value:"0",children:"Custom Selection"}),e.jsx("option",{value:"1",children:"One"}),e.jsx("option",{value:"2",children:"Two"}),e.jsx("option",{value:"3",children:"Three"})]})}),e.jsxs("div",{className:"form-group",children:[e.jsx("h5",{children:"Input with Select"}),e.jsx("div",{className:"input-group",children:e.jsx(Pe,{options:ke,inputPlaceholder:"10.128.0.8",searchPlaceholder:"Search actions here"})}),e.jsx("br",{}),e.jsx("div",{className:"input-group",children:e.jsx(Pe,{options:ke,inputPlaceholder:"10.128.0.8",searchPlaceholder:"Search actions here",disabled:!0})})]}),e.jsxs("div",{className:"form-group",children:[e.jsx("h5",{children:"AutoCompleteInput"}),e.jsx(Er,{options:ke,noMatchText:"No Matches."})]})]}),e.jsx("div",{className:"col",children:e.jsxs("div",{className:"form-group",children:[e.jsx("h5",{children:"Validate Label"}),e.jsx(ye,{validationError:he?void 0:"Value not set",isModified:!!he,id:"validateInput1",labelText:`Input Field${l?" (disabled)":""}`,hintText:"Hint text",children:e.jsx("input",{disabled:l,type:"text",className:"form-control","aria-describedby":"emailHelp",placeholder:"Type to modify",onChange:Ro})}),e.jsx(ye,{validationError:ze==="Invalid"?"Invalid value":void 0,id:"validateLabelInput2",labelText:`Dropdown${l?" (disabled)":""}`,children:e.jsx(ue,{disabled:l,onChange:j=>$o(j),value:ze,children:ho.map(j=>e.jsx(vr,{value:j,children:j},j))})}),e.jsx(ye,{labelText:"Switch",isModified:l,children:e.jsx(re,{on:l,onClick:ee})})]})}),e.jsx("div",{className:"col",children:e.jsxs("div",{className:"form-group",children:[e.jsx("h5",{children:"Time Input"}),e.jsx(Ir,{}),e.jsx("br",{}),e.jsx("h5",{children:"Date Input"}),e.jsx($r,{}),e.jsx("br",{}),e.jsx("h5",{children:"DateTime Input"}),e.jsx(pr,{}),e.jsx("br",{}),e.jsx("h5",{children:"Custom Timeselect"}),e.jsx(Ar,{options:Bl,value:F??null,onChange:J,customText:"Custom Timeout",placeholder:"Select a timeout",timeToValue:j=>j*1e3})]})})]}),e.jsx("div",{className:"row",children:e.jsx("div",{className:"col",children:e.jsxs("div",{className:"form-group",children:[e.jsx("h5",{children:"Auto Resize Textarea"}),e.jsx(Mr,{value:O,delimiter:" -",onChange:U})]})})})]})}class Ol extends i.PureComponent{constructor(o){super(o),this.handleSelect=this.handleSelect.bind(this),this.handleViewportChange=this.handleViewportChange.bind(this),this.selectedItems=[],this.state={items:[],offset:0,itemCount:5e5}}handleSelect(o){const r=this.selectedItems.indexOf(o);r>=0?this.selectedItems.splice(r,1):this.selectedItems.push(o);const s=r<0,{offset:t}=this.state;let{items:a}=this.state;a=[].concat(a);const c=o-t;c>=0&&c<a.length&&(a[c].isSelected=s),this.setState({items:a})}handleViewportChange(o,r){const{itemCount:s}=this.state,t=r-o+1,a=Math.max(0,o-t),c=Math.min(r+t,s),d=[];for(let u=a;u<=c&&u<=s;u+=1){const n=`Item ${u}`,g=this.selectedItems.indexOf(u)>=0;d.push({value:n,isSelected:g})}const h=a;this.setState({offset:h,items:d})}render(){const{offset:o,items:r,itemCount:s}=this.state;return e.jsx(xr,{itemCount:s,items:r,offset:o,onSelect:this.handleSelect,onViewportChange:this.handleViewportChange})}}class io extends i.PureComponent{static defaultProps;static propTypes;constructor(o){super(o),this.handleSelect=this.handleSelect.bind(this),this.handleViewportChange=this.handleViewportChange.bind(this),this.selectedItems=[],this.state={items:[],offset:0,itemCount:5e5}}handleSelect(o){const{itemCount:r}=this.state;console.log("Item selected at index",o,"/",r)}handleViewportChange(o,r){const{itemCount:s}=this.state,t=r-o+1,a=Math.max(0,o-t),c=Math.min(r+t,s),d=[];for(let u=a;u<=c;u+=1){const n=`Item ${u}`,g=this.selectedItems.indexOf(u)>=0;d.push({value:n,isSelected:g})}const h=a;this.setState({offset:h,items:d})}render(){const{isMultiSelect:o}=this.props,{offset:r,items:s,itemCount:t}=this.state;return e.jsx(wr,{isMultiSelect:o,itemCount:t,items:s,offset:r,onSelect:this.handleSelect,onViewportChange:this.handleViewportChange})}}function Vl(){return e.jsxs("div",{...x("item-list-inputs",["style-guide-inputs"]),children:[e.jsx("h2",{className:"ui-title",children:"Item Lists"}),e.jsxs("div",{className:"row",children:[e.jsx("div",{className:"col",children:e.jsxs("div",{className:"form-group",children:[e.jsx("h5",{children:"Select List"}),e.jsx("div",{style:{height:"300px"},children:e.jsx(Ol,{})})]})}),e.jsx("div",{className:"col",children:e.jsxs("div",{className:"form-group",children:[e.jsx("h5",{children:"Item List"}),e.jsx("div",{style:{height:"300px"},children:e.jsx(io,{})})]})}),e.jsx("div",{className:"col",children:e.jsxs("div",{className:"form-group",children:[e.jsx("h5",{children:"Multi Select Item List"}),e.jsx("div",{style:{height:"300px"},children:e.jsx(io,{isMultiSelect:!0})})]})})]})]})}function Ul(){const[l,o]=i.useState(0),[r,s]=i.useState(!0),t=()=>{o(0)};function a(c){return e.jsxs(ne.Fragment,{children:[e.jsxs(p,{kind:"primary",style:{marginBottom:"1rem",marginRight:"1rem"},onClick:()=>{o(c)},children:[c," ",c>1?"Actions":"Action"]}),e.jsx(Cr,{isOpen:l===c,headerText:"Header Text",bodyText:"This is where the body text goes",onConfirm:t,onCancel:c>=2?t:void 0,onDiscard:c>=3?t:void 0})]},c)}return e.jsxs("div",{...x("modals"),children:[e.jsx("h2",{className:"ui-title",children:"Basic Modals"}),e.jsx("div",{style:{padding:"1rem"},children:[1,2,3].map(c=>a(c))}),e.jsx("h2",{className:"ui-title",children:"Custom Modal"}),e.jsx("div",{style:{padding:"1rem"},children:e.jsx("div",{className:"modal-dialog",role:"dialog",children:e.jsxs("div",{className:"modal-content",children:[e.jsxs("div",{className:"modal-header",children:[e.jsx("h5",{className:"modal-title",children:"Modal title"}),e.jsx("button",{type:"button",className:"close","data-dismiss":"modal","aria-label":"Close",children:e.jsx("span",{"aria-hidden":"true",children:"×"})})]}),e.jsxs("div",{className:"modal-body",children:[e.jsx("p",{children:"Modal body text goes here."}),e.jsx(P,{checked:r,onChange:()=>s(!r),children:"Checked checkbox"})]}),e.jsxs("div",{className:"modal-footer",children:[e.jsx(p,{kind:"secondary","data-dismiss":"modal",onClick:()=>{},children:"Close"}),e.jsx(p,{kind:"primary",onClick:()=>{},children:"Save changes"})]})]})})})]})}function Gl(){return e.jsxs("div",{...x("progress"),children:[e.jsx("h2",{className:"ui-title",children:"Progress"}),e.jsxs("div",{className:"row",children:[e.jsxs("div",{className:"col",children:[e.jsx("h5",{children:"Determinate Progress Loader"}),e.jsx("br",{}),e.jsx("div",{className:"progress",style:{marginBottom:"1rem"},children:e.jsx("div",{className:"progress-bar bg-primary",style:{width:"25%"},"aria-valuenow":25,"aria-valuemin":0,"aria-valuemax":100})})]}),e.jsxs("div",{className:"col",children:[e.jsx("h5",{children:"Indeterminate Progress Spinner"}),e.jsx(Le,{className:"loading-spinner-large"})]}),e.jsxs("div",{className:"col",children:[e.jsx("h5",{children:"Button Progress Spinner"}),e.jsx(p,{kind:"primary",className:"btn-spinner btn-cancelable",style:{minWidth:"10rem"},onClick:()=>{},children:e.jsxs("span",{children:[e.jsx(Le,{className:"mr-2 loading-spinner-vertical-align"}),e.jsx("span",{className:"btn-normal-content",children:"Connecting"}),e.jsx("span",{className:"btn-hover-content",children:"Cancel"})]})})]})]})]})}class Hl extends i.PureComponent{constructor(o){super(o),this.handleSliderChange=this.handleSliderChange.bind(this),this.state={startTime:24*60*60*.25,endTime:24*60*60*.75}}handleSliderChange(o){const{startTime:r,endTime:s}=o;this.setState({startTime:r}),this.setState({endTime:s})}render(){const{startTime:o,endTime:r}=this.state;return e.jsxs("div",{...x("time-slider-inputs",["style-guide-inputs"]),children:[e.jsx("h2",{className:"ui-title",children:"Time Slider"}),e.jsx(Rr,{startTime:o,endTime:r,onChange:this.handleSliderChange}),e.jsxs("p",{children:["StartTime: ",oo.formatTime(o)]}),e.jsxs("p",{children:["EndTime: ",oo.formatTime(r)]})]})}}function zl(){const o=[Ve,Oe].map(r=>e.jsx(E,{icon:r},`${r.prefix}-${r.iconName}`));return e.jsxs("div",{...x("tooltips"),children:[e.jsx("h2",{className:"ui-title",title:"Make better looking tooltips than this one!",children:"Tooltips"}),e.jsxs("div",{className:"btn btn-primary",style:{cursor:"default",marginBottom:"1rem",marginRight:"1rem"},children:["Simple Tooltip",e.jsx(ce,{children:"Text only content"})]}),e.jsxs("div",{className:"btn btn-secondary",style:{cursor:"default",marginBottom:"1rem",marginRight:"1rem"},children:["Complex Tooltip",e.jsxs(ce,{children:[e.jsxs("div",{children:["Here is some ",e.jsx("i",{children:"cool"})," ",e.jsx("b",{children:"text"})]}),e.jsx("hr",{}),e.jsx("div",{children:"And some icons down here"}),e.jsxs("div",{children:[e.jsx(Le,{className:"loading-spinner-vertical-align"}),o]})]})]}),e.jsxs("div",{className:"btn btn-success",style:{cursor:"default",marginBottom:"1rem",marginRight:"1rem"},children:["Interactive Tooltip",e.jsxs(ce,{interactive:!0,children:[e.jsx("div",{children:"This tooltip is interactive."}),e.jsx("hr",{}),e.jsx(p,{kind:"primary",onClick:()=>{alert("Button clicked!")},children:"Show Alert"})]})]})]})}function Wl(){return e.jsxs("div",{...x("typography"),children:[e.jsx("h2",{className:"ui-title",children:"Typography"}),e.jsxs("div",{className:"row",children:[e.jsxs("div",{className:"col",children:[e.jsx("h1",{className:"text-muted","data-no-menu":!0,children:"h1. Unused"}),e.jsx("h2",{className:"text-muted","data-no-menu":!0,children:"h2. Unused"}),e.jsx("h3",{className:"text-muted","data-no-menu":!0,children:"h3. Unused"}),e.jsx("h4",{"data-no-menu":!0,children:"h4. Standard Heading"}),e.jsx("h5",{"data-no-menu":!0,children:"h5. Small Heading"}),e.jsx("h6",{className:"text-muted","data-no-menu":!0,children:"h6. Unused"})]}),e.jsxs("div",{className:"col",children:[e.jsx("h4",{children:"Fonts"}),e.jsx("p",{children:"UI: Fira Sans;"}),e.jsx("p",{className:"text-monospace",children:"Code: Fira Mono;"}),e.jsx("p",{children:'Tables: Fira Sans; font-feature-settings: "tnum";'}),e.jsx("p",{children:"Default font-size: 14px = 1rem"})]})]})]})}class ql extends i.PureComponent{static propTypes;static defaultProps;constructor(o){super(o),this.handleSelectionChange=this.handleSelectionChange.bind(this),this.handleViewportChange=this.handleViewportChange.bind(this),this.itemList=ne.createRef(),this.selectedItems=[],this.state={topRow:null,bottomRow:null}}focusItem(o){this.itemList.current&&this.itemList.current.focusItem(o)}handleSelectionChange(o){console.log("Selection changed",o);const{onSelectionChange:r}=this.props;r(o)}handleViewportChange(o,r){const{items:s}=this.props,t=r-o+1,a=Math.max(0,o-t),c=Math.min(r+t,s.length);this.setState({topRow:a,bottomRow:c})}getViewportItems=xo((o,r,s)=>o==null||r==null?[]:s.slice(o,r));render(){const{draggablePrefix:o,droppableId:r,isDragDisabled:s,isDropDisabled:t,isMultiSelect:a,items:c,selectedRanges:d}=this.props,{topRow:h,bottomRow:u}=this.state;return e.jsx(te,{draggablePrefix:o,droppableId:r,isDragDisabled:s,isDropDisabled:t,isMultiSelect:a,itemCount:c.length,items:this.getViewportItems(h,u,c),offset:h??0,onSelectionChange:this.handleSelectionChange,onViewportChange:this.handleViewportChange,ref:this.itemList,selectedRanges:d})}}const Ne=["Draggable Only","Drag and Drop","Droppable Only"],Kl=[{isDropDisabled:!0},{},{isDragDisabled:!0}],Yl=(l="Item",o=1e3)=>{const r=[];for(let s=0;s<o;s+=1)r.push(`${l}-${s}`);return r};class ve extends i.Component{static handleDragStart(o){console.log("handleDragStart",o)}static handleDragUpdate(o){console.log("handleDragUpdate",o)}constructor(o){super(o),this.handleDragEnd=this.handleDragEnd.bind(this),this.animationFrame=null;const r=[],s=[],t=[];for(let a=0;a<Ne.length;a+=1)r[a]=Yl(Ne[a]),s[a]=[],t[a]=ne.createRef();this.state={items:r,lists:t,selectedRanges:s}}componentWillUnmount(){this.animationFrame!=null&&cancelAnimationFrame(this.animationFrame)}handleDragEnd(o){console.log("handleDragEnd",o);const{source:r,destination:s}=o;if(r==null||s==null)return;const t=te.getDraggableIndex(r.droppableId),a=te.getDraggableIndex(s.droppableId),c=t===a;let d=s.index;c&&r.index<s.index&&(d+=1);let h=d;this.setState(({items:u,selectedRanges:n})=>{const g=[...u[t]],m=c?g:[...u[a]],v=Xe.reorder(g,n[t],m,d),f=[...u];f[t]=g,f[a]=m,h=c?Xe.adjustDestinationIndex(d,n[a]):d;const y=[...n];return y[t]=[],y[a]=[[h,h+v.length-1]],{items:f,selectedRanges:y}},()=>{this.animationFrame!=null&&cancelAnimationFrame(this.animationFrame),this.animationFrame=requestAnimationFrame(()=>{this.animationFrame=null;const{lists:u}=this.state;u[a]?.current?.focusItem(h)})})}handleSelectionChange(o,r){this.setState(({selectedRanges:s})=>{const t=[...s];return t[o]=[...r],{selectedRanges:t}})}getSelectionChangeHandler=We(o=>this.handleSelectionChange.bind(this,o));getDraggableList=We((o,r,s,t)=>e.jsx(ql,{items:o,droppableId:te.getDraggableId("drop-list",t),draggablePrefix:te.getDraggableId("draggable-item",t),onSelectionChange:this.getSelectionChangeHandler(t),isMultiSelect:!0,ref:s,selectedRanges:r,...Kl[t]}));render(){const{items:o,lists:r,selectedRanges:s}=this.state;return e.jsxs("div",{...x("draggable-lists",["style-guide-inputs"]),children:[e.jsx("h2",{className:"ui-title",children:"Drag and Drop Lists"}),e.jsx("div",{className:"row",children:e.jsx(Lo,{onDragStart:ve.handleDragStart,onDragUpdate:ve.handleDragUpdate,onDragEnd:this.handleDragEnd,children:Ne.map((t,a)=>e.jsx("div",{className:"col",children:e.jsxs("div",{className:"form-group",children:[e.jsxs("h5",{children:[t," List"]}),e.jsx("div",{style:{height:"300px"},children:this.getDraggableList(o[a],s[a],r[a],a)})]})},t))})})]})}}function uo({count:l=5,activeKey:o=""}){const[r,s]=i.useState(o),[t,a]=i.useState(()=>{const n=[];for(let g=0;g<l;g+=1)n.push({key:`${g}`,title:`Tab ${g}`,isClosable:g>0});return n}),c=i.useCallback((n,g)=>{a(m=>{const v=[...m],[f]=v.splice(n,1);return v.splice(g,0,f),v})},[]),d=i.useCallback(n=>{s(n)},[]),h=i.useCallback(n=>{a(g=>g.filter(m=>m.key!==n))},[]),u=i.useCallback(n=>[{title:"Select Tab to the Left",group:10,order:10,disabled:t[0].key===n.key,action:()=>{const g=t.findIndex(m=>m.key===n.key);g>0&&s(t[g-1].key)}},{title:"Select Tab to the Right",group:30,order:10,disabled:t[t.length-1].key===n.key,action:()=>{const g=t.findIndex(m=>m.key===n.key);g<t.length-1&&s(t[g+1].key)}}],[t]);return e.jsx(Lr,{tabs:t,activeKey:r,onSelect:d,onReorder:c,onClose:h,makeContextActions:u})}let go=0;function Zl(){const l=go;return go+=1,l}const Xl=To(25);function De(l=1,o=5){const r=Number(Xl.next().value);return Math.floor(r*o)+l}function Ee(l,o=Zl()){return{id:o,type:l}}function mo(l=De(),o=De(),r=De()){const s=[];for(let t=0;t<l;t+=1)s.push(Ee("SUBMENU"));for(let t=0;t<o;t+=1)s.push(Ee("PAGE"));for(let t=0;t<r;t+=1)s.push(Ee("SWITCH"));return s}function Ie({type:l,id:o}){switch(l){case"SUBMENU":return`Submenu ${o}`;case"PAGE":return`Page ${o}`;case"SWITCH":return`Switch ${o}`}}function Ql({type:l}){switch(l){case"SUBMENU":return ar;case"PAGE":return tr;case"SWITCH":return V}}function Jl(){const[l,o]=i.useState([]),[r,s]=i.useState(new Map),t=i.useCallback(n=>{o([...l,n])},[l,o]),a=i.useCallback(()=>{const n=[...l];n.pop(),o(n)},[l,o]),c=i.useCallback(()=>{const n=[l[0]];o(n)},[l,o]),d=i.useCallback(n=>{const g=r.get(n)??!1,m=new Map(r);m.set(n,!g),s(m)},[r,s]),h=i.useCallback(n=>{const g=l[l.length-1],{items:m}=g;if(!m)throw new Error("Navigation handleSelect triggered without items to select");const v=m[n];switch(v.type){case"PAGE":t({title:Ie(v)});break;case"SUBMENU":t({title:Ie(v),items:mo()});break;case"SWITCH":d(v.id);break}},[l,d,t]);i.useEffect(function(){o([{title:"Navigation Menu",items:mo()}])},[]);const u=i.useMemo(()=>l.map(({items:n,title:g},m)=>{if(!n)return e.jsx(Qe,{onBack:a,onClose:c,title:g,children:e.jsx("div",{children:"Page content!"})},g);let v=null;if(n!=null){const f=n.map(y=>{const F=Ie(y),J=Ql(y);let O,U;return y.type==="SWITCH"&&(O=r.get(y.id)??!1,U=()=>{h(y.id)}),{title:F,icon:J,isOn:O,onChange:U}});v=e.jsx(br,{onSelect:h,items:f})}else v=e.jsx("div",{children:"Page content"});return e.jsx(Qe,{onBack:m>0?a:void 0,onClose:m>0?c:void 0,title:g,children:v},g)}),[l,r,h,a,c]);return e.jsxs("div",{...x("navigations"),children:[e.jsx("h2",{className:"ui-title",children:"Navigations"}),e.jsx("div",{style:{marginBottom:"1rem"},children:e.jsx(uo,{count:100,activeKey:"15"})}),e.jsx("div",{style:{marginBottom:"1rem"},children:e.jsx(uo,{})}),e.jsx("div",{className:"navigations",children:e.jsx(fr,{children:u})})]})}const es=`:root{--dh-color-gray-50-hsl: 300deg, 6.1%, 9.6%;--dh-color-gray-75-hsl: 280deg, 4.6%, 12.7%;--dh-color-gray-100-hsl: 285deg, 4.5%, 17.3%;--dh-color-gray-200-hsl: 285deg, 4.1%, 19.2%;--dh-color-gray-300-hsl: 285deg, 3.7%, 21.2%;--dh-color-gray-400-hsl: 280deg, 2.4%, 24.9%;--dh-color-gray-500-hsl: 270deg, 1.1%, 35.7%;--dh-color-gray-600-hsl: 300deg, .5%, 57.1%;--dh-color-gray-700-hsl: 0deg, .8%, 75.1%;--dh-color-gray-800-hsl: 60deg, 6.2%, 93.7%;--dh-color-gray-900-hsl: 60deg, 25%, 98.4%;--dh-color-gray-light-hsl: var(--dh-color-gray-900-hsl);--dh-color-gray-mid-hsl: var(--dh-color-gray-600-hsl);--dh-color-gray-dark-hsl: var(--dh-color-gray-300-hsl);--dh-color-black-hsl: var(--dh-color-gray-50-hsl);--dh-color-white-hsl: var(--dh-color-gray-800-hsl);--dh-color-true-black-hsl: 0deg, 0%, 0%;--dh-color-true-white-hsl: 0deg, 0%, 100%;--dh-color-blue-100-hsl: 222deg, 65.3%, 19.2%;--dh-color-blue-200-hsl: 222deg, 66.2%, 25.5%;--dh-color-blue-300-hsl: 222deg, 64.8%, 32.4%;--dh-color-blue-400-hsl: 222deg, 63.2%, 39.4%;--dh-color-blue-500-hsl: 222deg, 60.7%, 46.9%;--dh-color-blue-600-hsl: 222deg, 68.2%, 54.3%;--dh-color-blue-700-hsl: 222deg, 82.7%, 61.6%;--dh-color-blue-800-hsl: 222deg, 93.8%, 68.4%;--dh-color-blue-900-hsl: 222deg, 100%, 74.3%;--dh-color-blue-1000-hsl: 222deg, 100%, 79.6%;--dh-color-blue-1100-hsl: 221deg, 100%, 84.3%;--dh-color-blue-1200-hsl: 221deg, 100%, 89%;--dh-color-blue-1300-hsl: 222deg, 100%, 92.9%;--dh-color-blue-1400-hsl: 224deg, 100%, 96.3%;--dh-color-red-100-hsl: 346deg, 54.3%, 18%;--dh-color-red-200-hsl: 345deg, 55%, 23.5%;--dh-color-red-300-hsl: 346deg, 54.2%, 30%;--dh-color-red-400-hsl: 345deg, 54.3%, 36.9%;--dh-color-red-500-hsl: 345deg, 53.4%, 43.7%;--dh-color-red-600-hsl: 345deg, 54.8%, 51.4%;--dh-color-red-700-hsl: 345deg, 71.3%, 59%;--dh-color-red-800-hsl: 345deg, 91.7%, 67.1%;--dh-color-red-900-hsl: 344deg, 100%, 74.1%;--dh-color-red-1000-hsl: 343deg, 100%, 80%;--dh-color-red-1100-hsl: 343deg, 100%, 85.3%;--dh-color-red-1200-hsl: 344deg, 100%, 89.8%;--dh-color-red-1300-hsl: 344deg, 100%, 93.5%;--dh-color-red-1400-hsl: 344deg, 100%, 96.3%;--dh-color-orange-100-hsl: 20deg, 100%, 13.9%;--dh-color-orange-200-hsl: 22deg, 95.7%, 18%;--dh-color-orange-300-hsl: 23deg, 89.8%, 23.1%;--dh-color-orange-400-hsl: 22deg, 83.7%, 28.8%;--dh-color-orange-500-hsl: 22deg, 79.7%, 34.7%;--dh-color-orange-600-hsl: 22deg, 74.3%, 41.2%;--dh-color-orange-700-hsl: 22deg, 69.8%, 48%;--dh-color-orange-800-hsl: 22deg, 78.2%, 55.1%;--dh-color-orange-900-hsl: 21deg, 94.7%, 63.1%;--dh-color-orange-1000-hsl: 22deg, 100%, 70.6%;--dh-color-orange-1100-hsl: 23deg, 100%, 77.6%;--dh-color-orange-1200-hsl: 24deg, 100%, 84.3%;--dh-color-orange-1300-hsl: 24deg, 100%, 89.8%;--dh-color-orange-1400-hsl: 25deg, 100%, 94.3%;--dh-color-yellow-100-hsl: 51deg, 100%, 9%;--dh-color-yellow-200-hsl: 50deg, 100%, 12%;--dh-color-yellow-300-hsl: 51deg, 100%, 15.1%;--dh-color-yellow-400-hsl: 50deg, 90%, 19.6%;--dh-color-yellow-500-hsl: 49deg, 82.4%, 24.5%;--dh-color-yellow-600-hsl: 48deg, 75%, 29.8%;--dh-color-yellow-700-hsl: 48deg, 70.2%, 35.5%;--dh-color-yellow-800-hsl: 47deg, 65.7%, 41.2%;--dh-color-yellow-900-hsl: 47deg, 61.2%, 47.5%;--dh-color-yellow-1000-hsl: 47deg, 66.2%, 53.5%;--dh-color-yellow-1100-hsl: 46deg, 79.4%, 60%;--dh-color-yellow-1200-hsl: 46deg, 94.2%, 66.5%;--dh-color-yellow-1300-hsl: 49deg, 100%, 73.9%;--dh-color-yellow-1400-hsl: 51deg, 100%, 83.7%;--dh-color-chartreuse-100-hsl: 77deg, 100%, 8.4%;--dh-color-chartreuse-200-hsl: 75deg, 83.6%, 12%;--dh-color-chartreuse-300-hsl: 74deg, 73.2%, 16.1%;--dh-color-chartreuse-400-hsl: 71deg, 67%, 20.2%;--dh-color-chartreuse-500-hsl: 71deg, 62.2%, 24.9%;--dh-color-chartreuse-600-hsl: 70deg, 58.9%, 29.6%;--dh-color-chartreuse-700-hsl: 69deg, 55.7%, 34.5%;--dh-color-chartreuse-800-hsl: 68deg, 52.9%, 40%;--dh-color-chartreuse-900-hsl: 67deg, 50%, 45.5%;--dh-color-chartreuse-1000-hsl: 67deg, 49.2%, 51.4%;--dh-color-chartreuse-1100-hsl: 67deg, 57.8%, 57.3%;--dh-color-chartreuse-1200-hsl: 66deg, 67.2%, 64.1%;--dh-color-chartreuse-1300-hsl: 66deg, 75.7%, 72.5%;--dh-color-chartreuse-1400-hsl: 66deg, 82%, 82.5%;--dh-color-celery-100-hsl: 127deg, 42.9%, 12.4%;--dh-color-celery-200-hsl: 125deg, 43.2%, 15.9%;--dh-color-celery-300-hsl: 125deg, 42.9%, 20.6%;--dh-color-celery-400-hsl: 125deg, 42.6%, 25.3%;--dh-color-celery-500-hsl: 125deg, 41.6%, 30.2%;--dh-color-celery-600-hsl: 126deg, 40.7%, 35.7%;--dh-color-celery-700-hsl: 125deg, 39.3%, 41.4%;--dh-color-celery-800-hsl: 125deg, 36.6%, 47.6%;--dh-color-celery-900-hsl: 125deg, 39.1%, 54.9%;--dh-color-celery-1000-hsl: 125deg, 43.9%, 62.9%;--dh-color-celery-1100-hsl: 125deg, 47.9%, 71.4%;--dh-color-celery-1200-hsl: 126deg, 49.5%, 79.8%;--dh-color-celery-1300-hsl: 126deg, 48.5%, 87.1%;--dh-color-celery-1400-hsl: 127deg, 50%, 92.9%;--dh-color-green-100-hsl: 95deg, 17.1%, 13.7%;--dh-color-green-200-hsl: 92deg, 18.7%, 17.8%;--dh-color-green-300-hsl: 94deg, 21.7%, 22.5%;--dh-color-green-400-hsl: 94deg, 22.9%, 27.5%;--dh-color-green-500-hsl: 93deg, 25.6%, 32.2%;--dh-color-green-600-hsl: 95deg, 27.7%, 37.5%;--dh-color-green-700-hsl: 95deg, 29.6%, 42.4%;--dh-color-green-800-hsl: 94deg, 31.7%, 47.6%;--dh-color-green-900-hsl: 94deg, 37.5%, 52.9%;--dh-color-green-1000-hsl: 94deg, 47.4%, 58.2%;--dh-color-green-1100-hsl: 94deg, 58.9%, 63.7%;--dh-color-green-1200-hsl: 94deg, 70.9%, 70.4%;--dh-color-green-1300-hsl: 94deg, 81.5%, 78.8%;--dh-color-green-1400-hsl: 93deg, 87.7%, 87.3%;--dh-color-seafoam-100-hsl: 156deg, 13.9%, 14.1%;--dh-color-seafoam-200-hsl: 158deg, 17.4%, 18%;--dh-color-seafoam-300-hsl: 159deg, 19.7%, 22.9%;--dh-color-seafoam-400-hsl: 158deg, 22.5%, 27.8%;--dh-color-seafoam-500-hsl: 158deg, 25.7%, 32.7%;--dh-color-seafoam-600-hsl: 159deg, 28.8%, 37.5%;--dh-color-seafoam-700-hsl: 161deg, 33%, 42.2%;--dh-color-seafoam-800-hsl: 161deg, 36.4%, 46.9%;--dh-color-seafoam-900-hsl: 162deg, 41.9%, 51.4%;--dh-color-seafoam-1000-hsl: 161deg, 53.4%, 56.3%;--dh-color-seafoam-1100-hsl: 162deg, 66%, 62%;--dh-color-seafoam-1200-hsl: 161deg, 76.5%, 70%;--dh-color-seafoam-1300-hsl: 158deg, 86.5%, 79.6%;--dh-color-seafoam-1400-hsl: 156deg, 89.1%, 89.2%;--dh-color-cyan-100-hsl: 185deg, 38.5%, 12.7%;--dh-color-cyan-200-hsl: 186deg, 38.1%, 16.5%;--dh-color-cyan-300-hsl: 186deg, 38.9%, 21.2%;--dh-color-cyan-400-hsl: 185deg, 38.3%, 26.1%;--dh-color-cyan-500-hsl: 185deg, 38.4%, 31.2%;--dh-color-cyan-600-hsl: 186deg, 38%, 36.7%;--dh-color-cyan-700-hsl: 185deg, 37.7%, 42.2%;--dh-color-cyan-800-hsl: 185deg, 37.1%, 48%;--dh-color-cyan-900-hsl: 185deg, 42.5%, 54.3%;--dh-color-cyan-1000-hsl: 185deg, 52.5%, 60.4%;--dh-color-cyan-1100-hsl: 186deg, 64.5%, 66.9%;--dh-color-cyan-1200-hsl: 186deg, 78.9%, 73.9%;--dh-color-cyan-1300-hsl: 186deg, 91.6%, 81.4%;--dh-color-cyan-1400-hsl: 186deg, 100%, 89.6%;--dh-color-indigo-100-hsl: 237deg, 58.1%, 24.3%;--dh-color-indigo-200-hsl: 236deg, 51.9%, 30.2%;--dh-color-indigo-300-hsl: 236deg, 46.8%, 36.9%;--dh-color-indigo-400-hsl: 235deg, 42.6%, 43.7%;--dh-color-indigo-500-hsl: 235deg, 40.2%, 50.8%;--dh-color-indigo-600-hsl: 235deg, 48.8%, 57.8%;--dh-color-indigo-700-hsl: 234deg, 59.8%, 64.9%;--dh-color-indigo-800-hsl: 234deg, 74.8%, 72%;--dh-color-indigo-900-hsl: 234deg, 91%, 78.2%;--dh-color-indigo-1000-hsl: 234deg, 100%, 83.3%;--dh-color-indigo-1100-hsl: 234deg, 100%, 87.3%;--dh-color-indigo-1200-hsl: 235deg, 100%, 91.2%;--dh-color-indigo-1300-hsl: 232deg, 100%, 94.1%;--dh-color-indigo-1400-hsl: 236deg, 100%, 96.9%;--dh-color-purple-100-hsl: 263deg, 73.1%, 23.3%;--dh-color-purple-200-hsl: 260deg, 59.2%, 29.8%;--dh-color-purple-300-hsl: 258deg, 49.7%, 36.7%;--dh-color-purple-400-hsl: 257deg, 43.2%, 43.5%;--dh-color-purple-500-hsl: 255deg, 38.3%, 50.4%;--dh-color-purple-600-hsl: 254deg, 45%, 57.3%;--dh-color-purple-700-hsl: 253deg, 53.8%, 64.3%;--dh-color-purple-800-hsl: 251deg, 64.4%, 71.4%;--dh-color-purple-900-hsl: 250deg, 78.8%, 77.8%;--dh-color-purple-1000-hsl: 249deg, 90.6%, 83.3%;--dh-color-purple-1100-hsl: 249deg, 96.8%, 87.6%;--dh-color-purple-1200-hsl: 250deg, 100%, 91.4%;--dh-color-purple-1300-hsl: 251deg, 100%, 94.5%;--dh-color-purple-1400-hsl: 260deg, 88.2%, 96.7%;--dh-color-fuchsia-100-hsl: 301deg, 64.3%, 16.5%;--dh-color-fuchsia-200-hsl: 300deg, 53.2%, 21.8%;--dh-color-fuchsia-300-hsl: 297deg, 43.8%, 28.6%;--dh-color-fuchsia-400-hsl: 294deg, 39.2%, 35.5%;--dh-color-fuchsia-500-hsl: 291deg, 35.2%, 42.9%;--dh-color-fuchsia-600-hsl: 287deg, 32.5%, 50.6%;--dh-color-fuchsia-700-hsl: 283deg, 39.6%, 58.4%;--dh-color-fuchsia-800-hsl: 279deg, 50%, 66.3%;--dh-color-fuchsia-900-hsl: 277deg, 61.5%, 73.5%;--dh-color-fuchsia-1000-hsl: 275deg, 70.9%, 79.8%;--dh-color-fuchsia-1100-hsl: 275deg, 76.3%, 85.1%;--dh-color-fuchsia-1200-hsl: 277deg, 77.8%, 89.4%;--dh-color-fuchsia-1300-hsl: 280deg, 77.1%, 93.1%;--dh-color-fuchsia-1400-hsl: 288deg, 71.4%, 95.9%;--dh-color-magenta-100-hsl: 333deg, 90.7%, 16.9%;--dh-color-magenta-200-hsl: 334deg, 72.4%, 22.7%;--dh-color-magenta-300-hsl: 334deg, 60.3%, 29.6%;--dh-color-magenta-400-hsl: 334deg, 51.6%, 36.5%;--dh-color-magenta-500-hsl: 333deg, 45.7%, 43.3%;--dh-color-magenta-600-hsl: 332deg, 41.5%, 50.4%;--dh-color-magenta-700-hsl: 330deg, 50.7%, 57.8%;--dh-color-magenta-800-hsl: 329deg, 60.7%, 65.1%;--dh-color-magenta-900-hsl: 329deg, 75.9%, 72.4%;--dh-color-magenta-1000-hsl: 328deg, 92.5%, 79.2%;--dh-color-magenta-1100-hsl: 327deg, 100%, 84.7%;--dh-color-magenta-1200-hsl: 327deg, 100%, 89.4%;--dh-color-magenta-1300-hsl: 326deg, 100%, 93.3%;--dh-color-magenta-1400-hsl: 328deg, 100%, 96.3%;--dh-color-gray-50: hsl(var(--dh-color-gray-50-hsl));--dh-color-gray-75: hsl(var(--dh-color-gray-75-hsl));--dh-color-gray-100: hsl(var(--dh-color-gray-100-hsl));--dh-color-gray-200: hsl(var(--dh-color-gray-200-hsl));--dh-color-gray-300: hsl(var(--dh-color-gray-300-hsl));--dh-color-gray-400: hsl(var(--dh-color-gray-400-hsl));--dh-color-gray-500: hsl(var(--dh-color-gray-500-hsl));--dh-color-gray-600: hsl(var(--dh-color-gray-600-hsl));--dh-color-gray-700: hsl(var(--dh-color-gray-700-hsl));--dh-color-gray-800: hsl(var(--dh-color-gray-800-hsl));--dh-color-gray-900: hsl(var(--dh-color-gray-900-hsl));--dh-color-gray-light: hsl(var(--dh-color-gray-light-hsl));--dh-color-gray-mid: hsl(var(--dh-color-gray-mid-hsl));--dh-color-gray-dark: hsl(var(--dh-color-gray-dark-hsl));--dh-color-black: hsl(var(--dh-color-black-hsl));--dh-color-white: hsl(var(--dh-color-white-hsl));--dh-color-blue-100: hsl(var(--dh-color-blue-100-hsl));--dh-color-blue-200: hsl(var(--dh-color-blue-200-hsl));--dh-color-blue-300: hsl(var(--dh-color-blue-300-hsl));--dh-color-blue-400: hsl(var(--dh-color-blue-400-hsl));--dh-color-blue-500: hsl(var(--dh-color-blue-500-hsl));--dh-color-blue-600: hsl(var(--dh-color-blue-600-hsl));--dh-color-blue-700: hsl(var(--dh-color-blue-700-hsl));--dh-color-blue-800: hsl(var(--dh-color-blue-800-hsl));--dh-color-blue-900: hsl(var(--dh-color-blue-900-hsl));--dh-color-blue-1000: hsl(var(--dh-color-blue-1000-hsl));--dh-color-blue-1100: hsl(var(--dh-color-blue-1100-hsl));--dh-color-blue-1200: hsl(var(--dh-color-blue-1200-hsl));--dh-color-blue-1300: hsl(var(--dh-color-blue-1300-hsl));--dh-color-blue-1400: hsl(var(--dh-color-blue-1400-hsl));--dh-color-red-100: hsl(var(--dh-color-red-100-hsl));--dh-color-red-200: hsl(var(--dh-color-red-200-hsl));--dh-color-red-300: hsl(var(--dh-color-red-300-hsl));--dh-color-red-400: hsl(var(--dh-color-red-400-hsl));--dh-color-red-500: hsl(var(--dh-color-red-500-hsl));--dh-color-red-600: hsl(var(--dh-color-red-600-hsl));--dh-color-red-700: hsl(var(--dh-color-red-700-hsl));--dh-color-red-800: hsl(var(--dh-color-red-800-hsl));--dh-color-red-900: hsl(var(--dh-color-red-900-hsl));--dh-color-red-1000: hsl(var(--dh-color-red-1000-hsl));--dh-color-red-1100: hsl(var(--dh-color-red-1100-hsl));--dh-color-red-1200: hsl(var(--dh-color-red-1200-hsl));--dh-color-red-1300: hsl(var(--dh-color-red-1300-hsl));--dh-color-red-1400: hsl(var(--dh-color-red-1400-hsl));--dh-color-orange-100: hsl(var(--dh-color-orange-100-hsl));--dh-color-orange-200: hsl(var(--dh-color-orange-200-hsl));--dh-color-orange-300: hsl(var(--dh-color-orange-300-hsl));--dh-color-orange-400: hsl(var(--dh-color-orange-400-hsl));--dh-color-orange-500: hsl(var(--dh-color-orange-500-hsl));--dh-color-orange-600: hsl(var(--dh-color-orange-600-hsl));--dh-color-orange-700: hsl(var(--dh-color-orange-700-hsl));--dh-color-orange-800: hsl(var(--dh-color-orange-800-hsl));--dh-color-orange-900: hsl(var(--dh-color-orange-900-hsl));--dh-color-orange-1000: hsl(var(--dh-color-orange-1000-hsl));--dh-color-orange-1100: hsl(var(--dh-color-orange-1100-hsl));--dh-color-orange-1200: hsl(var(--dh-color-orange-1200-hsl));--dh-color-orange-1300: hsl(var(--dh-color-orange-1300-hsl));--dh-color-orange-1400: hsl(var(--dh-color-orange-1400-hsl));--dh-color-yellow-100: hsl(var(--dh-color-yellow-100-hsl));--dh-color-yellow-200: hsl(var(--dh-color-yellow-200-hsl));--dh-color-yellow-300: hsl(var(--dh-color-yellow-300-hsl));--dh-color-yellow-400: hsl(var(--dh-color-yellow-400-hsl));--dh-color-yellow-500: hsl(var(--dh-color-yellow-500-hsl));--dh-color-yellow-600: hsl(var(--dh-color-yellow-600-hsl));--dh-color-yellow-700: hsl(var(--dh-color-yellow-700-hsl));--dh-color-yellow-800: hsl(var(--dh-color-yellow-800-hsl));--dh-color-yellow-900: hsl(var(--dh-color-yellow-900-hsl));--dh-color-yellow-1000: hsl(var(--dh-color-yellow-1000-hsl));--dh-color-yellow-1100: hsl(var(--dh-color-yellow-1100-hsl));--dh-color-yellow-1200: hsl(var(--dh-color-yellow-1200-hsl));--dh-color-yellow-1300: hsl(var(--dh-color-yellow-1300-hsl));--dh-color-yellow-1400: hsl(var(--dh-color-yellow-1400-hsl));--dh-color-chartreuse-100: hsl(var(--dh-color-chartreuse-100-hsl));--dh-color-chartreuse-200: hsl(var(--dh-color-chartreuse-200-hsl));--dh-color-chartreuse-300: hsl(var(--dh-color-chartreuse-300-hsl));--dh-color-chartreuse-400: hsl(var(--dh-color-chartreuse-400-hsl));--dh-color-chartreuse-500: hsl(var(--dh-color-chartreuse-500-hsl));--dh-color-chartreuse-600: hsl(var(--dh-color-chartreuse-600-hsl));--dh-color-chartreuse-700: hsl(var(--dh-color-chartreuse-700-hsl));--dh-color-chartreuse-800: hsl(var(--dh-color-chartreuse-800-hsl));--dh-color-chartreuse-900: hsl(var(--dh-color-chartreuse-900-hsl));--dh-color-chartreuse-1000: hsl(var(--dh-color-chartreuse-1000-hsl));--dh-color-chartreuse-1100: hsl(var(--dh-color-chartreuse-1100-hsl));--dh-color-chartreuse-1200: hsl(var(--dh-color-chartreuse-1200-hsl));--dh-color-chartreuse-1300: hsl(var(--dh-color-chartreuse-1300-hsl));--dh-color-chartreuse-1400: hsl(var(--dh-color-chartreuse-1400-hsl));--dh-color-celery-100: hsl(var(--dh-color-celery-100-hsl));--dh-color-celery-200: hsl(var(--dh-color-celery-200-hsl));--dh-color-celery-300: hsl(var(--dh-color-celery-300-hsl));--dh-color-celery-400: hsl(var(--dh-color-celery-400-hsl));--dh-color-celery-500: hsl(var(--dh-color-celery-500-hsl));--dh-color-celery-600: hsl(var(--dh-color-celery-600-hsl));--dh-color-celery-700: hsl(var(--dh-color-celery-700-hsl));--dh-color-celery-800: hsl(var(--dh-color-celery-800-hsl));--dh-color-celery-900: hsl(var(--dh-color-celery-900-hsl));--dh-color-celery-1000: hsl(var(--dh-color-celery-1000-hsl));--dh-color-celery-1100: hsl(var(--dh-color-celery-1100-hsl));--dh-color-celery-1200: hsl(var(--dh-color-celery-1200-hsl));--dh-color-celery-1300: hsl(var(--dh-color-celery-1300-hsl));--dh-color-celery-1400: hsl(var(--dh-color-celery-1400-hsl));--dh-color-green-100: hsl(var(--dh-color-green-100-hsl));--dh-color-green-200: hsl(var(--dh-color-green-200-hsl));--dh-color-green-300: hsl(var(--dh-color-green-300-hsl));--dh-color-green-400: hsl(var(--dh-color-green-400-hsl));--dh-color-green-500: hsl(var(--dh-color-green-500-hsl));--dh-color-green-600: hsl(var(--dh-color-green-600-hsl));--dh-color-green-700: hsl(var(--dh-color-green-700-hsl));--dh-color-green-800: hsl(var(--dh-color-green-800-hsl));--dh-color-green-900: hsl(var(--dh-color-green-900-hsl));--dh-color-green-1000: hsl(var(--dh-color-green-1000-hsl));--dh-color-green-1100: hsl(var(--dh-color-green-1100-hsl));--dh-color-green-1200: hsl(var(--dh-color-green-1200-hsl));--dh-color-green-1300: hsl(var(--dh-color-green-1300-hsl));--dh-color-green-1400: hsl(var(--dh-color-green-1400-hsl));--dh-color-seafoam-100: hsl(var(--dh-color-seafoam-100-hsl));--dh-color-seafoam-200: hsl(var(--dh-color-seafoam-200-hsl));--dh-color-seafoam-300: hsl(var(--dh-color-seafoam-300-hsl));--dh-color-seafoam-400: hsl(var(--dh-color-seafoam-400-hsl));--dh-color-seafoam-500: hsl(var(--dh-color-seafoam-500-hsl));--dh-color-seafoam-600: hsl(var(--dh-color-seafoam-600-hsl));--dh-color-seafoam-700: hsl(var(--dh-color-seafoam-700-hsl));--dh-color-seafoam-800: hsl(var(--dh-color-seafoam-800-hsl));--dh-color-seafoam-900: hsl(var(--dh-color-seafoam-900-hsl));--dh-color-seafoam-1000: hsl(var(--dh-color-seafoam-1000-hsl));--dh-color-seafoam-1100: hsl(var(--dh-color-seafoam-1100-hsl));--dh-color-seafoam-1200: hsl(var(--dh-color-seafoam-1200-hsl));--dh-color-seafoam-1300: hsl(var(--dh-color-seafoam-1300-hsl));--dh-color-seafoam-1400: hsl(var(--dh-color-seafoam-1400-hsl));--dh-color-cyan-100: hsl(var(--dh-color-cyan-100-hsl));--dh-color-cyan-200: hsl(var(--dh-color-cyan-200-hsl));--dh-color-cyan-300: hsl(var(--dh-color-cyan-300-hsl));--dh-color-cyan-400: hsl(var(--dh-color-cyan-400-hsl));--dh-color-cyan-500: hsl(var(--dh-color-cyan-500-hsl));--dh-color-cyan-600: hsl(var(--dh-color-cyan-600-hsl));--dh-color-cyan-700: hsl(var(--dh-color-cyan-700-hsl));--dh-color-cyan-800: hsl(var(--dh-color-cyan-800-hsl));--dh-color-cyan-900: hsl(var(--dh-color-cyan-900-hsl));--dh-color-cyan-1000: hsl(var(--dh-color-cyan-1000-hsl));--dh-color-cyan-1100: hsl(var(--dh-color-cyan-1100-hsl));--dh-color-cyan-1200: hsl(var(--dh-color-cyan-1200-hsl));--dh-color-cyan-1300: hsl(var(--dh-color-cyan-1300-hsl));--dh-color-cyan-1400: hsl(var(--dh-color-cyan-1400-hsl));--dh-color-indigo-100: hsl(var(--dh-color-indigo-100-hsl));--dh-color-indigo-200: hsl(var(--dh-color-indigo-200-hsl));--dh-color-indigo-300: hsl(var(--dh-color-indigo-300-hsl));--dh-color-indigo-400: hsl(var(--dh-color-indigo-400-hsl));--dh-color-indigo-500: hsl(var(--dh-color-indigo-500-hsl));--dh-color-indigo-600: hsl(var(--dh-color-indigo-600-hsl));--dh-color-indigo-700: hsl(var(--dh-color-indigo-700-hsl));--dh-color-indigo-800: hsl(var(--dh-color-indigo-800-hsl));--dh-color-indigo-900: hsl(var(--dh-color-indigo-900-hsl));--dh-color-indigo-1000: hsl(var(--dh-color-indigo-1000-hsl));--dh-color-indigo-1100: hsl(var(--dh-color-indigo-1100-hsl));--dh-color-indigo-1200: hsl(var(--dh-color-indigo-1200-hsl));--dh-color-indigo-1300: hsl(var(--dh-color-indigo-1300-hsl));--dh-color-indigo-1400: hsl(var(--dh-color-indigo-1400-hsl));--dh-color-purple-100: hsl(var(--dh-color-purple-100-hsl));--dh-color-purple-200: hsl(var(--dh-color-purple-200-hsl));--dh-color-purple-300: hsl(var(--dh-color-purple-300-hsl));--dh-color-purple-400: hsl(var(--dh-color-purple-400-hsl));--dh-color-purple-500: hsl(var(--dh-color-purple-500-hsl));--dh-color-purple-600: hsl(var(--dh-color-purple-600-hsl));--dh-color-purple-700: hsl(var(--dh-color-purple-700-hsl));--dh-color-purple-800: hsl(var(--dh-color-purple-800-hsl));--dh-color-purple-900: hsl(var(--dh-color-purple-900-hsl));--dh-color-purple-1000: hsl(var(--dh-color-purple-1000-hsl));--dh-color-purple-1100: hsl(var(--dh-color-purple-1100-hsl));--dh-color-purple-1200: hsl(var(--dh-color-purple-1200-hsl));--dh-color-purple-1300: hsl(var(--dh-color-purple-1300-hsl));--dh-color-purple-1400: hsl(var(--dh-color-purple-1400-hsl));--dh-color-fuchsia-100: hsl(var(--dh-color-fuchsia-100-hsl));--dh-color-fuchsia-200: hsl(var(--dh-color-fuchsia-200-hsl));--dh-color-fuchsia-300: hsl(var(--dh-color-fuchsia-300-hsl));--dh-color-fuchsia-400: hsl(var(--dh-color-fuchsia-400-hsl));--dh-color-fuchsia-500: hsl(var(--dh-color-fuchsia-500-hsl));--dh-color-fuchsia-600: hsl(var(--dh-color-fuchsia-600-hsl));--dh-color-fuchsia-700: hsl(var(--dh-color-fuchsia-700-hsl));--dh-color-fuchsia-800: hsl(var(--dh-color-fuchsia-800-hsl));--dh-color-fuchsia-900: hsl(var(--dh-color-fuchsia-900-hsl));--dh-color-fuchsia-1000: hsl(var(--dh-color-fuchsia-1000-hsl));--dh-color-fuchsia-1100: hsl(var(--dh-color-fuchsia-1100-hsl));--dh-color-fuchsia-1200: hsl(var(--dh-color-fuchsia-1200-hsl));--dh-color-fuchsia-1300: hsl(var(--dh-color-fuchsia-1300-hsl));--dh-color-fuchsia-1400: hsl(var(--dh-color-fuchsia-1400-hsl));--dh-color-magenta-100: hsl(var(--dh-color-magenta-100-hsl));--dh-color-magenta-200: hsl(var(--dh-color-magenta-200-hsl));--dh-color-magenta-300: hsl(var(--dh-color-magenta-300-hsl));--dh-color-magenta-400: hsl(var(--dh-color-magenta-400-hsl));--dh-color-magenta-500: hsl(var(--dh-color-magenta-500-hsl));--dh-color-magenta-600: hsl(var(--dh-color-magenta-600-hsl));--dh-color-magenta-700: hsl(var(--dh-color-magenta-700-hsl));--dh-color-magenta-800: hsl(var(--dh-color-magenta-800-hsl));--dh-color-magenta-900: hsl(var(--dh-color-magenta-900-hsl));--dh-color-magenta-1000: hsl(var(--dh-color-magenta-1000-hsl));--dh-color-magenta-1100: hsl(var(--dh-color-magenta-1100-hsl));--dh-color-magenta-1200: hsl(var(--dh-color-magenta-1200-hsl));--dh-color-magenta-1300: hsl(var(--dh-color-magenta-1300-hsl));--dh-color-magenta-1400: hsl(var(--dh-color-magenta-1400-hsl))}
|
|
206
|
+
`,os=`:root{--dh-color-bg-hsl: var(--dh-color-black-hsl);--dh-color-content-bg-hsl: var(--dh-color-gray-100-hsl);--dh-color-surface-bg-hsl: var(--dh-color-gray-400-hsl);--dh-color-fg-hsl: var(--dh-color-white-hsl);--dh-color-disabled-bg-hsl: var(--dh-color-gray-200-hsl);--dh-color-scrollbar-hsl: var(--dh-color-fg-hsl);--dh-color-accent-hsl: var(--dh-color-blue-600-hsl);--dh-color-accent-100-hsl: var(--dh-color-blue-100-hsl);--dh-color-accent-200-hsl: var(--dh-color-blue-200-hsl);--dh-color-accent-300-hsl: var(--dh-color-blue-300-hsl);--dh-color-accent-400-hsl: var(--dh-color-blue-400-hsl);--dh-color-accent-500-hsl: var(--dh-color-blue-500-hsl);--dh-color-accent-600-hsl: var(--dh-color-blue-600-hsl);--dh-color-accent-700-hsl: var(--dh-color-blue-700-hsl);--dh-color-accent-800-hsl: var(--dh-color-blue-800-hsl);--dh-color-accent-900-hsl: var(--dh-color-blue-900-hsl);--dh-color-accent-1000-hsl: var(--dh-color-blue-1000-hsl);--dh-color-accent-1100-hsl: var(--dh-color-blue-1100-hsl);--dh-color-accent-1200-hsl: var(--dh-color-blue-1200-hsl);--dh-color-accent-1300-hsl: var(--dh-color-blue-1300-hsl);--dh-color-accent-1400-hsl: var(--dh-color-blue-1400-hsl);--dh-color-border-hsl: var(--dh-color-gray-500-hsl);--dh-color-border-focus-hsl: var(--dh-color-accent-800-hsl);--dh-color-info-hsl: var(--dh-color-cyan-1000-hsl);--dh-color-neutral-hsl: var(--dh-color-gray-500-hsl);--dh-color-notice-hsl: var(--dh-color-yellow-1000-hsl);--dh-color-positive-hsl: var(--dh-color-green-900-hsl);--dh-color-negative-hsl: var(--dh-color-red-600-hsl);--dh-color-contrast-dark-hsl: var(--dh-color-gray-50-hsl);--dh-color-contrast-light-hsl: var(--dh-color-gray-900-hsl);--dh-color-accent-contrast-hsl: var(--dh-color-contrast-light-hsl);--dh-color-info-contrast-hsl: var(--dh-color-contrast-dark-hsl);--dh-color-negative-contrast-hsl: var(--dh-color-contrast-light-hsl);--dh-color-neutral-contrast-hsl: var(--dh-color-contrast-light-hsl);--dh-color-notice-contrast-hsl: var(--dh-color-contrast-dark-hsl);--dh-color-positive-contrast-hsl: var(--dh-color-contrast-light-hsl);--dh-color-visual-blue-hsl: var(--dh-color-blue-600-hsl);--dh-color-visual-celery-hsl: var(--dh-color-celery-1000-hsl);--dh-color-visual-chartreuse-hsl: var(--dh-color-chartreuse-1100-hsl);--dh-color-visual-cyan-hsl: var(--dh-color-cyan-1100-hsl);--dh-color-visual-fuchsia-hsl: var(--dh-color-fuchsia-900-hsl);--dh-color-visual-gray-hsl: var(--dh-color-gray-600-hsl);--dh-color-visual-green-hsl: var(--dh-color-green-1100-hsl);--dh-color-visual-indigo-hsl: var(--dh-color-indigo-900-hsl);--dh-color-visual-magenta-hsl: var(--dh-color-magenta-900-hsl);--dh-color-visual-orange-hsl: var(--dh-color-orange-900-hsl);--dh-color-visual-purple-hsl: var(--dh-color-purple-900-hsl);--dh-color-visual-red-hsl: var(--dh-color-red-800-hsl);--dh-color-visual-seafoam-hsl: var(--dh-color-seafoam-1100-hsl);--dh-color-visual-yellow-hsl: var(--dh-color-yellow-1200-hsl);--dh-color-visual-positive-hsl: var(--dh-color-green-1200-hsl);--dh-color-visual-negative-hsl: var(--dh-color-red-800-hsl);--dh-color-visual-notice-hsl: var(--dh-color-yellow-1200-hsl);--dh-color-visual-info-hsl: var(--dh-color-cyan-1100-hsl);--dh-color-bg: hsl(var(--dh-color-bg-hsl));--dh-color-content-bg: hsl(var(--dh-color-content-bg-hsl));--dh-color-surface-bg: hsl(var(--dh-color-surface-bg-hsl));--dh-color-fg: hsl(var(--dh-color-fg-hsl));--dh-color-border: hsl(var(--dh-color-border-hsl));--dh-color-hover-border: var(--dh-color-gray-600);--dh-color-border-focus: hsl(var(--dh-color-border-focus-hsl));--dh-color-disabled-bg: hsl(var(--dh-color-disabled-bg-hsl));--dh-color-heading-text: var(--dh-color-gray-900);--dh-color-text: var(--dh-color-gray-800);--dh-color-text-disabled: var(--dh-color-gray-400);--dh-color-text-highlight: hsla(var(--dh-color-blue-700-hsl), .3);--dh-color-text-hover: var(--dh-color-gray-900);--dh-color-contrast-dark: hsl(var(--dh-color-contrast-dark-hsl));--dh-color-contrast-light: hsl(var(--dh-color-contrast-light-hsl));--dh-color-accent-100: hsl(var(--dh-color-accent-100-hsl));--dh-color-accent-200: hsl(var(--dh-color-accent-200-hsl));--dh-color-accent-300: hsl(var(--dh-color-accent-300-hsl));--dh-color-accent-400: hsl(var(--dh-color-accent-400-hsl));--dh-color-accent-500: hsl(var(--dh-color-accent-500-hsl));--dh-color-accent-600: hsl(var(--dh-color-accent-600-hsl));--dh-color-accent-700: hsl(var(--dh-color-accent-700-hsl));--dh-color-accent-800: hsl(var(--dh-color-accent-800-hsl));--dh-color-accent-900: hsl(var(--dh-color-accent-900-hsl));--dh-color-accent-1000: hsl(var(--dh-color-accent-1000-hsl));--dh-color-accent-1100: hsl(var(--dh-color-accent-1100-hsl));--dh-color-accent-1200: hsl(var(--dh-color-accent-1200-hsl));--dh-color-accent-1300: hsl(var(--dh-color-accent-1300-hsl));--dh-color-accent-1400: hsl(var(--dh-color-accent-1400-hsl));--dh-color-accent-bg: hsl(var(--dh-color-accent-hsl));--dh-color-accent-hover-bg: var(--dh-color-accent-500);--dh-color-accent-down-bg: var(--dh-color-accent-400);--dh-color-accent-key-focus-bg: var(--dh-color-accent-500);--dh-color-accent-contrast: hsl(var(--dh-color-accent-contrast-hsl));--dh-color-gray-bg: var(--dh-color-gray-700);--dh-color-blue-bg: var(--dh-color-blue-700);--dh-color-red-bg: var(--dh-color-red-700);--dh-color-orange-bg: var(--dh-color-orange-800);--dh-color-yellow-bg: var(--dh-color-yellow-1000);--dh-color-chartreuse-bg: var(--dh-color-chartreuse-900);--dh-color-celery-bg: var(--dh-color-celery-800);--dh-color-green-bg: var(--dh-color-green-700);--dh-color-seafoam-bg: var(--dh-color-seafoam-700);--dh-color-cyan-bg: var(--dh-color-cyan-700);--dh-color-indigo-bg: var(--dh-color-indigo-700);--dh-color-purple-bg: var(--dh-color-purple-700);--dh-color-fuchsia-bg: var(--dh-color-fuchsia-700);--dh-color-magenta-bg: var(--dh-color-magenta-700);--dh-color-focus: var(--dh-color-blue-800);--dh-color-focus-border: var(--dh-color-blue-800);--dh-color-focus-ring: var(--dh-color-focus);--dh-color-highlight-active: hsla(var(--dh-color-visual-gray-hsl), .15);--dh-color-highlight-hover: hsla(var(--dh-color-visual-gray-hsl), .15);--dh-color-highlight-invalid: hsla(var(--dh-color-visual-red-hsl), .15);--dh-color-highlight-selected: hsla(var(--dh-color-visual-blue-hsl), .13);--dh-color-highlight-selected-hover: hsla( var(--dh-color-visual-blue-hsl), .2 );--dh-color-keyboard-selected-bg: hsla(var(--dh-color-accent-hsl), .5);--dh-color-dropshadow: hsla(var(--dh-color-true-black-hsl), .8);--dh-color-overlay-modal-bg: hsla(var(--dh-color-visual-gray-hsl), .6);--dh-color-overlay-hover-bg: hsla(var(--dh-color-visual-gray-hsl), .08);--dh-color-negative-bg: hsl(var(--dh-color-negative-hsl));--dh-color-negative-hover-bg: var(--dh-color-red-500);--dh-color-negative-down-bg: var(--dh-color-red-400);--dh-color-negative-key-focus-bg: var(--dh-color-red-500);--dh-color-negative-contrast: hsl(var(--dh-color-negative-contrast-hsl));--dh-color-neutral-bg: hsl(var(--dh-color-neutral-hsl));--dh-color-neutral-hover-bg: var(--dh-color-gray-400);--dh-color-neutral-down-bg: var(--dh-color-gray-300);--dh-color-neutral-key-focus-bg: var(--dh-color-gray-400);--dh-color-neutral-contrast: hsl(var(--dh-color-neutral-contrast-hsl));--dh-color-neutral-subdued-bg: var(--dh-color-gray-400);--dh-color-neutral-subdued-hover-bg: var(--dh-color-gray-300);--dh-color-neutral-subdued-down-bg: var(--dh-color-gray-200);--dh-color-neutral-subdued-key-focus-bg: var(--dh-color-gray-300);--dh-color-positive-bg: hsl(var(--dh-color-positive-hsl));--dh-color-positive-hover-bg: var(--dh-color-green-800);--dh-color-positive-down-bg: var(--dh-color-green-700);--dh-color-positive-key-focus-bg: var(--dh-color-green-800);--dh-color-positive-contrast: hsl(var(--dh-color-positive-contrast-hsl));--dh-color-info-bg: hsl(var(--dh-color-info-hsl));--dh-color-info-hover-bg: var(--dh-color-cyan-900);--dh-color-info-down-bg: var(--dh-color-cyan-800);--dh-color-info-key-focus-bg: var(--dh-color-cyan-900);--dh-color-info-contrast: hsl(var(--dh-color-info-contrast-hsl));--dh-color-notice-bg: hsl(var(--dh-color-notice-hsl));--dh-color-notice-hover-bg: var(--dh-color-yellow-900);--dh-color-notice-down-bg: var(--dh-color-yellow-800);--dh-color-notice-key-focus-bg: var(--dh-color-yellow-1000);--dh-color-notice-contrast: hsl(var(--dh-color-notice-contrast-hsl));--dh-color-visual-blue: hsl(var(--dh-color-visual-blue-hsl));--dh-color-visual-celery: hsl(var(--dh-color-visual-celery-hsl));--dh-color-visual-chartreuse: hsl(var(--dh-color-visual-chartreuse-hsl));--dh-color-visual-cyan: hsl(var(--dh-color-visual-cyan-hsl));--dh-color-visual-fuchsia: hsl(var(--dh-color-visual-fuchsia-hsl));--dh-color-visual-gray: hsl(var(--dh-color-visual-gray-hsl));--dh-color-visual-green: hsl(var(--dh-color-visual-green-hsl));--dh-color-visual-indigo: hsl(var(--dh-color-visual-indigo-hsl));--dh-color-visual-magenta: hsl(var(--dh-color-visual-magenta-hsl));--dh-color-visual-orange: hsl(var(--dh-color-visual-orange-hsl));--dh-color-visual-purple: hsl(var(--dh-color-visual-purple-hsl));--dh-color-visual-red: hsl(var(--dh-color-visual-red-hsl));--dh-color-visual-seafoam: hsl(var(--dh-color-visual-seafoam-hsl));--dh-color-visual-yellow: hsl(var(--dh-color-visual-yellow-hsl));--dh-color-visual-positive: hsl(var(--dh-color-visual-positive-hsl));--dh-color-visual-negative: hsl(var(--dh-color-visual-negative-hsl));--dh-color-visual-notice: hsl(var(--dh-color-visual-notice-hsl));--dh-color-visual-info: hsl(var(--dh-color-visual-info-hsl));--dh-color-modified: var(--dh-color-yellow-1300)}
|
|
207
|
+
`,rs=`:root{--dh-color-chart-bg: var(--dh-color-content-bg);--dh-color-chart-plot-bg: var(--dh-color-gray-200);--dh-color-chart-title: var(--dh-color-white);--dh-color-chart-colorway: var(--dh-color-visual-cyan) var(--dh-color-visual-green) var(--dh-color-visual-yellow) var(--dh-color-visual-purple) var(--dh-color-visual-orange) var(--dh-color-visual-red) var(--dh-color-visual-chartreuse) var(--dh-color-visual-fuchsia) var(--dh-color-visual-seafoam) var(--dh-color-visual-magenta) var(--dh-color-white);--dh-color-chart-grid: var(--dh-color-gray-400);--dh-color-chart-axis-line: var(--dh-color-gray-500);--dh-color-chart-axis-line-zero: var(--dh-color-gray-700);--dh-color-chart-active: var(--dh-color-accent-600);--dh-color-chart-range-bg: hsla(var(--dh-color-gray-500-hsl) .7);--dh-color-chart-area: var(--dh-color-visual-blue);--dh-color-chart-trend: var(--dh-color-green-1200);--dh-color-chart-error-band-line: var(--dh-color-green-1400);--dh-color-chart-error-band-fill: hsla(var(--dh-color-green-1200-hsl), .1);--dh-color-chart-ohlc-increase: var(--dh-color-visual-green);--dh-color-chart-ohlc-decrease: var(--dh-color-visual-red);--dh-color-chart-line-deprecated: var(--dh-color-visual-green);--dh-color-plotly-axis-text: var(--dh-color-gray-500);--dh-color-plotly-zoombox: hsla(var(--dh-color-true-black-hsl), .5);--dh-color-plotly-zoombox-corners-fill: var(--dh-color-white);--dh-color-plotly-zoombox-corners-stroke: var(--dh-color-gray-75);--dh-color-plotly-modebar-btn-active: var(--dh-color-true-white-hsl, .7);--dh-color-plotly-modebar-btn-warning: var(--dh-color-visual-orange);--dh-color-plotly-notifier-note-bg: var(--dh-color-gray-500)}
|
|
208
|
+
`,ls=`:root{--dh-color-editor-bg: var(--dh-color-content-bg);--dh-color-editor-fg: var(--dh-color-gray-900);--dh-color-editor-error-fg: var(--dh-color-visual-red);--dh-color-editor-line-number-fg: var(--dh-color-gray-700);--dh-color-editor-line-highlight-bg: var(--dh-color-gray-200);--dh-color-editor-selection-bg: var(--dh-color-text-highlight);--dh-color-editor-inactive-selection-bg: var(--dh-color-gray-300);--dh-color-editor-selection-highlight-bg: var(--dh-color-gray-500);--dh-color-editor-word-highlight-bg: var(--dh-color-gray-500);--dh-color-editor-comment: var(--dh-color-gray-700);--dh-color-editor-delimiter: var(--dh-color-gray-700);--dh-color-editor-identifier-js: var(--dh-color-visual-yellow);--dh-color-editor-identifier-namespace: var(--dh-color-visual-red);--dh-color-editor-identifier: var(--dh-color-gray-900);--dh-color-editor-keyword: var(--dh-color-visual-cyan);--dh-color-editor-number: var(--dh-color-visual-purple);--dh-color-editor-operator: var(--dh-color-visual-red);--dh-color-editor-predefined: var(--dh-color-visual-green);--dh-color-editor-storage: var(--dh-color-visual-red);--dh-color-editor-string-delim: var(--dh-color-gray-700);--dh-color-editor-string: var(--dh-color-visual-yellow);--dh-color-editor-bracket-fg1: var(--dh-color-visual-yellow);--dh-color-editor-bracket-fg2: var(--dh-color-visual-purple);--dh-color-editor-bracket-fg3: var(--dh-color-visual-blue);--dh-color-editor-bracket-fg4: var(--dh-color-visual-yellow);--dh-color-editor-bracket-fg5: var(--dh-color-visual-purple);--dh-color-editor-bracket-fg6: var(--dh-color-visual-blue);--dh-color-editor-unexpected-bracket-fg: var(--dh-color-visual-negative);--dh-color-editor-focus-border: var(--dh-color-focus-border);--dh-color-editor-input-option-active-border: var(--dh-color-focus-ring);--dh-color-editor-input-bg: var(--dh-color-bg);--dh-color-editor-input-fg: var(--dh-color-text);--dh-color-editor-input-border: var(--dh-color-border);--dh-color-editor-context-menu-bg: var(--dh-color-gray-300);--dh-color-editor-context-menu-fg: var(--dh-color-text);--dh-color-editor-menu-selection-bg: var(--dh-color-highlight-hover);--dh-color-editor-menu-selection-fg: var(--dh-color-text);--dh-color-editor-log-date: var(--dh-color-gray-700);--dh-color-editor-log-error: var(--dh-color-visual-red);--dh-color-editor-log-info: var(--dh-color-visual-cyan);--dh-color-editor-log-stdout: var(--dh-color-gray-900);--dh-color-editor-log-warn: var(--dh-color-visual-yellow);--dh-color-editor-log-debug: var(--dh-color-visual-purple);--dh-color-editor-log-trace: var(--dh-color-visual-green);--dh-color-editor-find-bg: var(--dh-color-gray-200);--dh-color-editor-find-match-bg: var(--dh-color-highlight-selected);--dh-color-editor-find-match-highlight-bg: var( --dh-color-highlight-selected-hover );--dh-color-editor-find-option-active-bg: var(--dh-color-accent-700);--dh-color-editor-find-option-active-fg: var(--dh-color-gray-900);--dh-color-editor-suggest-bg: var(--dh-color-gray-200);--dh-color-editor-suggest-border: var(--dh-color-gray-400);--dh-color-editor-suggest-fg: var(--dh-color-text);--dh-color-editor-suggest-selected-bg: var(--dh-color-highlight-selected);--dh-color-editor-suggest-selected-fg: var(--dh-color-text);--dh-color-editor-suggest-highlight-fg: var(--dh-color-accent-700);--dh-color-editor-suggest-focus-highlight-fg: var(--dh-color-accent-700);--dh-color-editor-suggest-hover-bg: var(--dh-color-highlight-hover);--dh-color-editor-link-foreground: var(--dh-color-accent-1000);--dh-color-editor-link-active-fg: var(--dh-color-accent-1100)}
|
|
209
|
+
`,ss=`:root{--dh-color-grid-bg: var(--dh-color-gray-75);--dh-color-grid-header-bg: var(--dh-color-gray-100);--dh-color-grid-header-text: var(--dh-color-heading-text);--dh-color-grid-header-separator: var(--dh-color-gray-50);--dh-color-grid-header-separator-hover: var(--dh-color-gray-600);--dh-color-grid-header-separator-hidden-hover: var(--dh-color-accent-700);--dh-color-grid-header-sort-bar: var(--dh-color-visual-purple);--dh-color-grid-header-reverse-bar: var(--dh-color-visual-green);--dh-color-grid-header-bar-casing: var(--dh-color-gray-50);--dh-color-grid-row-0-bg: var(--dh-color-gray-300);--dh-color-grid-row-1-bg: var(--dh-color-gray-100);--dh-color-grid-row-hover-bg: var(--dh-color-highlight-hover);--dh-color-grid-row-hover-bg-selected: var( --dh-color-highlight-selected-hover );--dh-color-grid-row-shadow-alpha: .15;--dh-color-grid-selection: var(--dh-color-highlight-selected);--dh-color-grid-selection-outline: var(--dh-color-accent-900);--dh-color-grid-selection-outline-casing: var(--dh-color-gray-50);--dh-color-grid-scroll-bar-active-selection-tick: var(--dh-color-accent-400);--dh-color-grid-scroll-bar-bg: var(--dh-color-gray-100);--dh-color-grid-scroll-bar-hover-bg: var(--dh-color-gray-200);--dh-color-grid-scroll-bar-casing: var(--dh-color-gray-400);--dh-color-grid-scroll-bar-corner: var(--dh-color-gray-100);--dh-color-grid-scroll-bar: var(--dh-color-gray-500);--dh-color-grid-scroll-bar-hover: var(--dh-color-gray-600);--dh-color-grid-scroll-bar-active: var(--dh-color-gray-700);--dh-color-grid-text: var(--dh-color-text);--dh-color-grid-text-hyperlink: var(--dh-color-accent-1000);--dh-color-grid-text-pending: var(--dh-color-yellow-1300);--dh-color-grid-text-error: var(--dh-color-visual-negative);--dh-color-grid-date: var(--dh-color-visual-notice);--dh-color-grid-number-positive: var(--dh-color-visual-positive);--dh-color-grid-number-negative: var(--dh-color-visual-negative);--dh-color-grid-number-zero: var(--dh-color-visual-notice);--dh-color-grid-string-null: var(--dh-color-gray-600);--dh-color-grid-filter-bar-active-bg: hsla( var(--dh-color-accent-700-hsl), .5 );--dh-color-grid-filter-bar-active: var(--dh-color-accent-600);--dh-color-grid-filter-bar-expanded-bg: var(--dh-color-gray-200);--dh-color-grid-filter-bar-expanded-active-bg: hsla( var(--dh-color-accent-1000-hsl), .19 );--dh-color-grid-filter-bar-expanded-active-cell-bg: hsla( var(--dh-color-accent-700-hsl), .32 );--dh-color-grid-filter-bar-separator: var(--dh-color-gray-600);--dh-color-grid-filter-bar-error: var(--dh-color-visual-negative);--dh-color-grid-filter-icon: var(--dh-color-accent-600);--dh-color-grid-context-menu-sort-icon: var(--dh-color-visual-purple);--dh-color-grid-context-menu-reverse-icon: var(--dh-color-visual-green);--dh-color-grid-column-linker-hover-bg: var( --dh-color-highlight-selected-hover );--dh-color-grid-column-grouped-divider: var(--dh-color-gray-50);--dh-color-grid-tree-line: var(--dh-color-gray-500);--dh-color-grid-tree-marker: var(--dh-color-gray-700);--dh-color-grid-tree-marker-hover: var(--dh-color-gray-900);--dh-color-grid-floating-row: var(--dh-color-gray-300);--dh-color-grid-floating-row-bg: var(--dh-color-gray-200);--dh-color-grid-floating-divider-inner: var(--dh-color-gray-200);--dh-color-grid-floating-divider-outer: var(--dh-color-gray-50);--dh-color-grid-overflow-button: var(--dh-color-gray-700);--dh-color-grid-overflow-button-hover: var(--dh-color-gray-900);--dh-color-grid-data-bar-positive: var(--dh-color-visual-positive);--dh-color-grid-data-bar-negative: var(--dh-color-visual-negative);--dh-color-grid-data-bar-marker: var(--dh-color-white);--dh-color-grid-data-bar-zero-line: var(--dh-color-gray-300);--dh-color-grid-scrim: var(--dh-color-gray-50)}
|
|
210
|
+
`,ts=`:root{--dh-color-loading-spinner-primary: var(--dh-color-accent-bg);--dh-color-loading-spinner-secondary: hsla(var(--dh-color-gray-800-hsl), .5);--dh-color-quickactions-bg: hsla(var(--dh-color-visual-gray-hsl), .9);--dh-color-radial-reaction: hsla(var(--dh-color-visual-gray-hsl), .6);--dh-color-colorpicker-border: hsla(var(--dh-color-visual-gray-hsl), .1);--dh-logo-img: var(--dh-logo-dark-img);--dh-color-login-form-bg: var(--dh-color-gray-400);--dh-color-login-status-message: var(--dh-color-gray-600);--dh-color-login-logo-bg: var(--dh-color-gray-900);--dh-color-login-footer-fg: var(--dh-color-gray-700);--dh-color-random-area-plot-animation-fg-fill: hsla( var(--dh-color-accent-hsl), .08 );--dh-color-random-area-plot-animation-fg-stroke: hsla( var(--dh-color-accent-hsl), .2 );--dh-color-random-area-plot-animation-bg: var(--dh-color-gray-75);--dh-color-random-area-plot-animation-grid: var(--dh-color-gray-300);--dh-color-action-bg: var(--dh-color-gray-75);--dh-color-action-fg: var(--dh-color-text);--dh-color-action-border: var(--dh-color-border);--dh-color-action-down-bg: var(--dh-color-gray-300);--dh-color-action-hover-bg: var(--dh-color-gray-50);--dh-color-action-hover-fg: var(--dh-color-text-hover);--dh-color-action-hover-border: var(--dh-color-hover-border);--dh-color-action-active-bg: var(--dh-color-accent-bg);--dh-color-action-active-fg: var(--dh-color-accent-contrast);--dh-color-action-active-border: var(--dh-color-accent-bg);--dh-color-action-active-hover-bg: var(--dh-color-accent-hover-bg);--dh-color-action-active-hover-fg: var(--dh-color-accent-contrast);--dh-color-action-active-hover-border: var(--dh-color-accent-hover-bg);--dh-color-action-disabled-bg: transparent;--dh-color-action-disabled-fg: var(--dh-color-text-disabled);--dh-color-action-disabled-border: var(--dh-color-gray-300);--dh-color-icon-fg: var(--dh-color-gray-700);--dh-color-icon-disabled-fg: var(--dh-color-gray-400);--dh-color-input-bg: var(--dh-color-gray-50);--dh-color-input-fg: var(--dh-color-text);--dh-color-input-border: var(--dh-color-border);--dh-color-input-placeholder: var(--dh-color-gray-600);--dh-color-input-active-bg: var(--dh-color-input-bg);--dh-color-input-disabled-bg: var(--dh-color-disabled-bg);--dh-color-input-disabled-border: transparent;--dh-color-input-disabled-fg: var(--dh-color-text-disabled);--dh-color-input-hover-border: var(--dh-color-gray-600);--dh-color-input-focus-border: var(--dh-color-border-focus);--dh-color-search-icon: var(--dh-color-fg);--dh-color-form-control-error: hsl(var(--dh-color-visual-negative-hsl));--dh-color-form-control-error-shadow: hsla( var(--dh-color-visual-negative-hsl), .25 );--dh-color-label-text: var(--dh-color-gray-700);--dh-color-selector-fg: var(--dh-color-icon-fg);--dh-color-selector-bg: var(--dh-color-gray-75);--dh-color-selector-hover-bg: var(--dh-color-gray-50);--dh-color-selector-hover-fg: var(--dh-color-gray-900);--dh-color-selector-disabled-fg: var(--dh-color-icon-disabled-fg);--dh-color-item-list-bg: transparent;--dh-color-item-list-active-bg: var(--dh-color-highlight-active);--dh-color-item-list-hover-bg: var(--dh-color-highlight-hover);--dh-color-item-list-selected-fg: var(--dh-color-text);--dh-color-item-list-selected-bg: var(--dh-color-highlight-selected);--dh-color-item-list-selected-hover-bg: var( --dh-color-highlight-selected-hover );--dh-color-item-list-selected-inactive-bg: var(--dh-color-gray-200);--dh-color-item-list-selected-border: hsla(var(--dh-color-accent-hsl), .6);--dh-color-item-list-drop-target-fg: var(--dh-color-white);--dh-color-item-list-keyboard-selected-bg: hsla( var(--dh-color-accent-hsl), .5 );--dh-color-golden-layout-tab-header-bg: var(--dh-color-gray-75);--dh-color-golden-layout-tab-bg: var(--dh-color-gray-75);--dh-color-golden-layout-tab-selected-bg: var(--dh-color-content-bg);--dh-color-menu-item-fg: var(--dh-color-gray-700);--dh-color-hr: var(--dh-color-gray-200);--dh-color-dialog-title-fg: var(--dh-color-heading-text);--dh-color-dialog-fg: var(--dh-color-text);--dh-color-popover-bg: var(--dh-color-bg);--dh-color-tooltip-bg: var(--dh-color-gray-400);--dh-color-tooltip-fg: var(--dh-color-fg);--dh-color-tooltip-box-shadow: var(--dh-color-dropshadow);--dh-color-well-bg: hsla(var(--dh-color-visual-gray-hsl), .02);--dh-color-well-border: hsla(var(--dh-color-visual-gray-hsl), .05)}
|
|
211
|
+
`,as="_themeColors_suwdy_1",cs="_label_suwdy_8",ns="_capitalize_suwdy_16",ds="_swatch_suwdy_19",le={themeColors:as,label:cs,capitalize:ns,swatch:ds};function hs(){return{"Theme Color Palette":K("palette",es,1),"Semantic Colors":K("semantic",os,1),"Chart Colors":K("chart",rs,2),"Editor Colors":K("editor",ls,2),"Grid Colors":K("grid",ss,2),"Component Colors":K("component",ts,1)}}function is(){const{selectedThemeKey:l}=So(),o=i.useMemo(hs,[l]);return e.jsx(e.Fragment,{children:Object.entries(o).map(([r,s],t)=>e.jsxs("div",{...x(r),children:[e.jsx("h2",{className:"ui-title",children:r}),e.jsx("div",{className:le.themeColors,children:Object.entries(s).map(([a,c])=>e.jsxs("div",{style:{gridRow:`span ${c.length+1}`},children:[e.jsx("span",{className:Z(le.label,le.capitalize),children:a}),c.map(({isLabel:d,name:h,value:u,note:n})=>d===!0?e.jsx("span",{className:le.label,children:h},h):e.jsxs("div",{className:le.swatch,style:{backgroundColor:u,border:u===""&&h.length>0?ko:void 0,color:`var(--dh-color-${_e(u)})`},children:[e.jsxs(ce,{interactive:!0,children:[e.jsx("div",{children:h}),e.jsx("div",{children:u}),e.jsx("div",{children:ae.normalizeCssColor(u,!0)})]}),e.jsx("span",{children:h.replace("--dh-color-","")}),h.endsWith("-hue")||n!=null?e.jsx("span",{children:n??u}):null,e.jsx(Sr,{copy:h,style:{color:`var(--dh-color-${_e(u)})`}})]},h))]},a))})]},r))})}const $e="data-menu-category",us="data-no-menu",gs="sample-section-e2e-ignore",Do="spectrum-component-samples",Eo="spectrum-comparison-samples";function ms(){return e.jsxs("div",{id:Do,children:[e.jsx("h2",{className:"ui-title","data-no-menu":!0,children:"Spectrum Components"}),e.jsxs(L,{gap:20,columns:Po("0px","1fr"),children:[e.jsxs(k,{...T("spectrum-buttons"),children:[e.jsx("h3",{children:"Buttons"}),e.jsx(vs,{})]}),e.jsxs(k,{...T("spectrum-collections"),children:[e.jsx("h3",{children:"Collections"}),e.jsx(bs,{})]}),e.jsxs(k,{...T("spectrum-content"),children:[e.jsx("h3",{children:"Content"}),e.jsx(fs,{})]}),e.jsxs(k,{...T("spectrum-forms"),children:[e.jsx("h3",{children:"Forms"}),e.jsx(xs,{})]}),e.jsxs(k,{...T("spectrum-overlays"),children:[e.jsx("h3",{children:"Overlays"}),e.jsxs(C,{gap:"size-160",children:[e.jsx(ps,{}),e.jsxs(_o,{children:[e.jsx(M,{children:"Dialog Trigger"}),l=>e.jsxs(Bo,{children:[e.jsx(Be,{children:"Some Heading"}),e.jsx(Fo,{children:"Some Header"}),e.jsx(Oo,{}),e.jsx(Fe,{children:e.jsx(me,{children:"Are you sure?"})}),e.jsxs(Vo,{children:[e.jsx(b,{variant:"secondary",onPress:l,children:"Cancel"}),e.jsx(b,{variant:"accent",onPress:l,children:"Confirm"})]})]})]})]})]}),e.jsxs(k,{...T("spectrum-well"),children:[e.jsx("h3",{children:"Wells"}),e.jsx(Uo,{children:"This is a well."})]})]})]})}function vs(){return e.jsxs(e.Fragment,{children:[e.jsxs(M,{marginBottom:"size-200",children:[e.jsx(de,{children:e.jsx(E,{icon:V})}),e.jsx(me,{children:"Icon Button"})]}),e.jsxs(L,{autoFlow:"column",columnGap:"size-250",rowGap:"size-150",columns:Ae(4,"size-2000"),rows:Ae(8,"size-400"),children:[e.jsx("label",{children:'Button style="outline"'}),e.jsx(b,{variant:"primary",style:"outline",children:"Primary"}),e.jsx(b,{variant:"secondary",style:"outline",children:"Secondary"}),e.jsx(b,{variant:"accent",style:"outline",children:"Accent"}),e.jsx(b,{variant:"negative",style:"outline",children:"Negative"}),e.jsx(b,{variant:"primary",staticColor:"black",style:"outline",children:"Static Black"}),e.jsx(b,{variant:"primary",staticColor:"white",style:"outline",children:"Static White"}),e.jsx(b,{variant:"primary",isDisabled:!0,style:"outline",children:"Disabled"}),e.jsx("label",{children:'Button style="fill"'}),e.jsx(b,{variant:"primary",style:"fill",children:"Primary"}),e.jsx(b,{variant:"secondary",style:"fill",children:"Secondary"}),e.jsx(b,{variant:"accent",style:"fill",children:"Accent"}),e.jsx(b,{variant:"negative",style:"fill",children:"Negative"}),e.jsx(b,{variant:"primary",staticColor:"black",style:"fill",children:"Static Black"}),e.jsx(b,{variant:"primary",staticColor:"white",style:"fill",children:"Static White"}),e.jsx(b,{variant:"primary",isDisabled:!0,style:"fill",children:"Disabled"}),e.jsx("label",{children:"Action Button"}),e.jsx(M,{children:"Normal"}),e.jsx(M,{gridRow:"span 3",isQuiet:!0,children:"Quiet"}),e.jsx(M,{staticColor:"black",children:"Static Black"}),e.jsx(M,{staticColor:"white",children:"Static White"}),e.jsx(M,{isDisabled:!0,children:"Disabled"}),e.jsx("label",{children:"Toggle Button"}),e.jsx(G,{children:"Normal"}),e.jsx(G,{isQuiet:!0,children:"Quiet"}),e.jsx(G,{gridRow:"span 2",isEmphasized:!0,children:"Emphasized"}),e.jsx(G,{staticColor:"black",children:"Static Black"}),e.jsx(G,{staticColor:"white",children:"Static White"}),e.jsx(G,{isDisabled:!0,children:"Disabled"})]})]})}function ps(){return e.jsxs(e.Fragment,{children:[e.jsx(me,{children:"Contextual Help"}),e.jsxs(Go,{variant:"info",children:[e.jsx(Be,{children:"Need help?"}),e.jsx(Fe,{children:e.jsx(me,{children:"This is a helpful description of the thing you need help with."})})]})]})}function xs(){return e.jsx(Ho,{children:e.jsxs(L,{gap:20,columns:Ae("auto-fit","210px"),children:[e.jsx(Me,{label:"Text Field"}),e.jsxs(fo,{label:"Combobox",menuTrigger:"focus",defaultSelectedKey:"two",children:[e.jsx(R,{children:"One"},"one"),e.jsx(R,{children:"Two"},"two"),e.jsx(R,{children:"Three"},"three")]}),e.jsx(Re,{children:"Checkbox"}),e.jsx(zo,{label:"Slider",defaultValue:24}),e.jsx(Wo,{children:"Switch"})]})})}function fs(){return e.jsxs(qo,{children:[e.jsx(de,{size:"XL",children:e.jsx(E,{icon:cr})}),e.jsx(Be,{children:"Illustrated Message"}),e.jsx(Fe,{children:"This is the content of the message."})]})}function bs(){return e.jsxs(e.Fragment,{children:[e.jsx("label",{id:"table-view-sample",children:"Table View"}),e.jsxs(Ko,{"aria-labelledby":"table-view-sample",selectionMode:"multiple",children:[e.jsxs(Yo,{children:[e.jsxs(H,{title:"Person",children:[e.jsx(H,{allowsResizing:!0,children:"Name"}),e.jsx(H,{children:"Age"})]}),e.jsxs(H,{title:"Address",children:[e.jsx(H,{allowsResizing:!0,children:"City"}),e.jsx(H,{children:"State"})]})]}),e.jsxs(Zo,{children:[e.jsxs(xe,{children:[e.jsx(D,{children:"John"}),e.jsx(D,{children:"42"}),e.jsx(D,{children:"San Francisco"}),e.jsx(D,{children:"CA"})]}),e.jsxs(xe,{children:[e.jsx(D,{children:"Jane"}),e.jsx(D,{children:"38"}),e.jsx(D,{children:"San Francisco"}),e.jsx(D,{children:"CA"})]}),e.jsxs(xe,{children:[e.jsx(D,{children:"Becky"}),e.jsx(D,{children:"12"}),e.jsx(D,{children:"San Francisco"}),e.jsx(D,{children:"CA"})]})]})]})]})}function se(l){return e.jsx("div",{...l})}function ys(){const[l,o]=i.useState([]);i.useEffect(()=>{let s={category:"",items:[]};const t=[s],a=document.querySelector(`#${Do}`),c=document.querySelector(`#${Eo}`);document.querySelectorAll(`h2,h3,[${$e}]`).forEach(d=>{if(d.textContent==null||d.hasAttribute(us))return;if(d.hasAttribute($e)){s={category:d.getAttribute($e)??"",items:[]},t.push(s);return}const u=`${a?.contains(d)===!0?"spectrum-":c?.contains(d)===!0?"spectrum-compare-":""}${d.textContent}`.toLowerCase().replace(/\s/g,"-");d.id=u,s.items.push({id:u,label:d.textContent})}),o(t)},[]),i.useEffect(()=>{const s=window.location.hash===""?null:document.querySelector(window.location.hash);s&&setTimeout(()=>{s.scrollIntoView()},0)},[]);const r=i.useCallback(s=>{const t=String(s);document.getElementById(t)?.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{window.location.hash=t},1e3)},[]);return e.jsxs(Xo,{children:[e.jsx(M,{children:e.jsx(de,{children:e.jsx(E,{icon:nr})})}),e.jsx(Qo,{items:l,onAction:r,children:({category:s,items:t})=>e.jsx(Jo,{items:t,title:s,children:({id:a,label:c})=>e.jsx(R,{children:c},a)},s)})]})}function js(){const l=i.useCallback(()=>{window.scrollTo({top:0,behavior:"smooth"}),setTimeout(()=>{window.location.hash=""},500)},[]);return i.useEffect(()=>{const o=document.querySelector("h2")?.offsetTop??0;function r(){document.documentElement.dataset.scroll=String(window.scrollY>=o)}return document.addEventListener("scroll",r,{passive:!0}),()=>{document.removeEventListener("scroll",r)}},[]),e.jsx(b,{UNSAFE_className:"goto-top-button",variant:"accent",onPress:l,children:e.jsx(de,{children:e.jsx(E,{icon:dr})})})}const ws=["Tab 1","Tab 2","Tab 3"];function Cs({isActive:l,title:o}){return e.jsxs("li",{className:Z("lm_tab",l&&"lm_active"),children:[e.jsx("span",{className:"lm_title_before"}),e.jsx("span",{className:"lm_title",children:o}),e.jsx("span",{className:"lm_close_tab"})]})}function Ss(){return e.jsxs("div",{...x("golden-layout"),children:[e.jsx("h2",{className:"ui-title",children:"Golden Layout"}),[!1,!0].map(l=>e.jsxs(ne.Fragment,{children:[e.jsx("h5",{children:l?"Minimized":"Maximised"}),e.jsx("div",{style:{position:"relative",border:"none"},className:l?"lm_maximised":void 0,children:e.jsxs("div",{className:"lm_header",children:[e.jsx("ul",{className:"lm_tabs",children:ws.map((o,r)=>e.jsx(Cs,{isActive:r===0,title:o},o))}),e.jsxs("ul",{className:"lm_controls",children:[e.jsx("li",{className:"lm_tabpreviousbutton"}),e.jsx("li",{className:"lm_tabnextbutton"}),e.jsx("li",{className:"lm_maximise"}),e.jsx("li",{className:"lm_popout"}),e.jsx("li",{className:"lm_tabdropdown"}),e.jsx("li",{className:"lm_close"})]})]})})]},String(l)))]})}function Ts(){return e.jsxs("div",{...x("animations",["sample-section-e2e-ignore"]),children:[e.jsx("h2",{className:"ui-title",children:"Animations"}),e.jsx(k,{position:"relative",height:400,children:e.jsx(Pr,{})})]})}const vo=[["primary","accent"],["secondary","primary"],["danger","negative"]],ks=[{title:"One",value:"1"},{title:"Two",value:"2"},{title:"Three",value:"3"}];function Ns(){const[l,o]=i.useState(!1),[r,s]=i.useState("1"),t=i.useCallback(a=>{s(a.target.value)},[]);return e.jsxs("div",{...x(Eo,[gs]),children:[e.jsx("h2",{className:"ui-title","data-no-menu":!0,children:"Bootstrap / Spectrum Comparison"}),e.jsxs(C,{gap:20,wrap:!0,children:[e.jsxs(k,{children:[e.jsx("h3",{children:"Buttons - Filled"}),e.jsxs(L,{gap:20,columns:"repeat(2, 120px)",autoRows:"40x",children:[e.jsx("label",{children:"Bootstrap"}),e.jsx("label",{children:"Spectrum"}),vo.map(([a,c])=>e.jsxs(i.Fragment,{children:[e.jsx(p,{onClick:q,kind:a,children:"Button"}),e.jsx(b,{variant:c,style:"fill",children:"Button"})]},a)),e.jsx(p,{onClick:q,kind:"primary",disabled:!0,children:"Disabled"}),e.jsx(b,{variant:"accent",style:"fill",isDisabled:!0,children:"Disabled"})]})]}),e.jsxs(k,{children:[e.jsx("h3",{children:"Buttons - Outline"}),e.jsxs(L,{gap:20,columns:"repeat(2, 120px)",children:[e.jsx("label",{children:"Bootstrap"}),e.jsx("label",{children:"Spectrum"}),vo.map(([a,c])=>e.jsxs(i.Fragment,{children:[e.jsx(p,{onClick:q,kind:a,children:a}),e.jsx(b,{variant:c,style:"outline",children:c})]},a)),e.jsx(p,{onClick:q,kind:"secondary",disabled:!0,children:"Disabled"}),e.jsx(b,{variant:"primary",style:"outline",isDisabled:!0,children:"Disabled"})]})]}),e.jsxs(k,{children:[e.jsx("h3",{children:"Action Buttons"}),e.jsxs(L,{gap:20,columns:"repeat(2, 120px)",autoRows:"40x",children:[e.jsx("label",{children:"Bootstrap"}),e.jsx("label",{children:"Spectrum"}),e.jsx(p,{onClick:q,kind:"inline",children:"Inline"}),e.jsx(M,{children:"Action"}),e.jsx(p,{onClick:q,kind:"inline",disabled:!0,children:"Disabled"}),e.jsx(M,{isDisabled:!0,children:"Disabled"})]})]}),e.jsxs(k,{children:[e.jsx("h3",{children:"Pickers"}),e.jsxs(L,{gap:20,columns:"repeat(2, 192px)",autoRows:"40x",children:[e.jsx("label",{children:"Bootstrap"}),e.jsx("label",{children:"Spectrum"}),[!1,!0].map(a=>e.jsxs(i.Fragment,{children:[e.jsxs("div",{children:[e.jsxs("label",{className:"input-label",children:[a?"Disabled ":"","Combobox"]}),e.jsx(Pe,{disabled:a,options:ks,defaultValue:"One"})]}),e.jsxs(fo,{isDisabled:a,label:a?"Disabled Combobox":"Combobox",inputValue:"One",children:[e.jsx(R,{children:"One"},"1"),e.jsx(R,{children:"Two"},"2"),e.jsx(R,{children:"Three"},"3")]})]},String(a))),[!1,!0].map(a=>e.jsxs(i.Fragment,{children:[e.jsxs("div",{children:[e.jsx("label",{className:"input-label",children:"Select"}),e.jsxs(ue,{disabled:a,placeholder:"Select",onChange:c=>{},className:"custom-select",children:[e.jsxs("option",{disabled:!0,value:"0",children:[a?"":"Disabled ","Select"]}),e.jsx("option",{value:"1",children:"One"}),e.jsx("option",{value:"2",children:"Two"}),e.jsx("option",{value:"3",children:"Three"})]})]}),e.jsxs(er,{isDisabled:a,label:a?"Disabled Picker":"Picker",placeholder:"Picker",children:[e.jsx(R,{children:"One"},"1"),e.jsx(R,{children:"Two"},"2"),e.jsx(R,{children:"Three"},"3")]})]},String(a)))]})]}),e.jsxs(k,{children:[e.jsx("h3",{children:"Text Field"}),e.jsxs(L,{gap:20,columns:"repeat(2, 192px)",autoRows:"40x",children:[e.jsx("label",{children:"Bootstrap"}),e.jsx("label",{children:"Spectrum"}),e.jsxs("div",{children:[e.jsx("label",{className:"input-label",children:"type=text"}),e.jsx("input",{type:"text",className:"form-control",placeholder:"Text Input"})]}),e.jsx(Me,{type:"text",label:"TextField"}),e.jsxs("div",{children:[e.jsx("label",{className:"input-label",children:"Disabled"}),e.jsx("input",{type:"text",className:"form-control",disabled:!0,value:"Disabled"})]}),e.jsx(Me,{type:"text",label:"Disabled",isDisabled:!0,value:"Disabled"})]})]}),e.jsxs(k,{children:[e.jsx("h3",{children:"Checkbox"}),e.jsxs(L,{gap:20,columns:"repeat(2, 120px)",children:[e.jsx("label",{children:"Bootstrap"}),e.jsx("label",{children:"Spectrum"}),e.jsx(P,{className:"form-group",checked:l,onChange:()=>o(a=>!a),children:"Checkbox"}),e.jsx(Re,{children:"Checkbox"}),e.jsx(P,{className:"form-group",disabled:!0,checked:l,onChange:()=>o(a=>!a),children:"Disabled"}),e.jsx(Re,{isDisabled:!0,children:"Disabled"}),e.jsx(C,{direction:"column",children:e.jsxs("label",{children:["Radio Group",e.jsxs(wo,{onChange:t,value:r,children:[e.jsx(B,{value:"1",children:"One"}),e.jsx(B,{value:"2",children:"Two"}),e.jsx(B,{value:"3",children:"Three"})]})]})}),e.jsxs(or,{label:"Radio Group",value:r,onChange:s,children:[e.jsx(fe,{value:"1",children:"One"}),e.jsx(fe,{value:"2",children:"Two"}),e.jsx(fe,{value:"3",children:"Three"})]})]})]})]})]})}const po={position:"sticky",justifyContent:"end",zIndex:1,UNSAFE_style:{float:"right"}};function Ds(){const l=window.location.search.includes("isolateSection=true"),{themes:o}=So(),r=o.length>1;return e.jsx("div",{tabIndex:-1,role:"main",children:e.jsxs("div",{className:"container style-guide-container",children:[l&&e.jsx("style",{children:`.${Se}, .sample-section:not(${window.location.hash}), :not(.sample-section) > h2 {
|
|
212
|
+
display: none;
|
|
213
|
+
}`}),e.jsx(C,{justifyContent:"space-between",alignItems:"center",marginTop:"2rem",marginBottom:"1rem",children:e.jsx("h1",{style:{paddingTop:"2rem"},children:"Deephaven UI Components"})}),e.jsxs(C,{...po,UNSAFE_className:Se,marginTop:-56,top:20,gap:10,alignItems:"end",children:[r?e.jsx(Br,{}):null,e.jsx(ys,{})]}),e.jsx(C,{...po,UNSAFE_className:Se,top:"calc(100vh - 40px)",marginTop:-32,marginEnd:r?-234:0,children:e.jsx(js,{})}),e.jsx(Wl,{}),e.jsx(se,{"data-menu-category":"Colors"}),e.jsx(yl,{}),e.jsx(is,{}),e.jsx(se,{"data-menu-category":"Layout"}),e.jsx(Ss,{}),e.jsx(se,{"data-menu-category":"Components"}),e.jsx(Y,{}),e.jsx(Gl,{}),e.jsx(Fl,{}),e.jsx(Vl,{}),e.jsx(ve,{}),e.jsx(Hl,{}),e.jsx(wl,{}),e.jsx(Ul,{}),e.jsx(jl,{}),e.jsx(Cl,{}),e.jsx(Jl,{}),e.jsx(zl,{}),e.jsx(_l,{}),e.jsx(kl,{}),e.jsx(Rl,{}),e.jsx(ml,{}),e.jsx(Tr,{}),e.jsx(Ts,{}),e.jsx(se,{"data-menu-category":"Spectrum Components"}),e.jsx(ms,{}),e.jsx(se,{"data-menu-category":"Spectrum Comparison"}),e.jsx(Ns,{})]})})}function He(l){const{workspace:o,setWorkspace:r}=l;return i.useEffect(()=>{Fr.makeDefaultWorkspace({getLayouts:async()=>[],getLayout:async()=>({})}).then(r)},[r]),o!=null?e.jsx(Ds,{}):null}He.propTypes={workspace:ge.shape({}),setWorkspace:ge.func.isRequired};He.defaultProps={workspace:null};const Es=l=>({workspace:Vr(l)}),Is=rr(Es,{setWorkspace:Or})(He);function Us(){return kr.register(new URL("./download/serviceWorker.js",window.location.href)),Nr.init({getWorker:()=>new hr}),window["__react-beautiful-dnd-disable-dev-warnings"]=!0,e.jsx(_r,{children:e.jsx(lr,{store:Ur,children:e.jsx(Is,{})})})}export{Us as StyleGuideRoot,Us as default};
|
|
214
|
+
//# sourceMappingURL=StyleGuideRoot-f9f0c710.js.map
|