@getflip/swirl-components 0.8.0 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/flip-console-layout.cjs.entry.js +29 -1156
- package/dist/cjs/flip-popover.cjs.entry.js +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/swirl-components.cjs.js +1 -1
- package/dist/collection/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/collection/components/flip-console-layout/flip-console-layout.js +63 -15
- package/dist/collection/components/flip-popover/flip-popover.js +1 -0
- package/dist/components/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/components/flip-console-layout.js +32 -1157
- package/dist/components/flip-popover2.js +1 -0
- package/dist/esm/flip-console-layout.entry.js +29 -1156
- package/dist/esm/flip-popover.entry.js +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/swirl-components.js +1 -1
- package/dist/swirl-components/p-622824bf.entry.js +1 -0
- package/dist/swirl-components/p-a57ef771.entry.js +1 -0
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/flip-console-layout/flip-console-layout.d.ts +9 -1
- package/dist/types/components.d.ts +8 -0
- package/package.json +1 -1
- package/dist/swirl-components/p-4d82b925.entry.js +0 -1
- package/dist/swirl-components/p-f99eb1b8.entry.js +0 -10
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as n,H as o,g as i}from"./p-9fe00e8a.js";import{c as a}from"./p-efffd297.js";import{i as r}from"./p-bb8f2656.js";import"./p-86bd3473.js";
|
|
2
|
-
/*!
|
|
3
|
-
* tabbable 6.0.1
|
|
4
|
-
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
5
|
-
*/var s=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],l=s.join(","),u="undefined"==typeof Element,c=u?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,d=!u&&Element.prototype.getRootNode?function(t){return t.getRootNode()}:function(t){return t.ownerDocument},f=function(t,e,n){var o=Array.prototype.slice.apply(t.querySelectorAll(l));return e&&c.call(t,l)&&o.unshift(t),o.filter(n)},h=function t(e,n,o){for(var i=[],a=Array.from(e);a.length;){var r=a.shift();if("SLOT"===r.tagName){var s=r.assignedElements(),u=t(s.length?s:r.children,!0,o);o.flatten?i.push.apply(i,u):i.push({scopeParent:r,candidates:u})}else{c.call(r,l)&&o.filter(r)&&(n||!e.includes(r))&&i.push(r);var d=r.shadowRoot||"function"==typeof o.getShadowRoot&&o.getShadowRoot(r),f=!o.shadowRootFilter||o.shadowRootFilter(r);if(d&&f){var h=t(!0===d?r.children:d.children,!0,o);o.flatten?i.push.apply(i,h):i.push({scopeParent:r,candidates:h})}else a.unshift.apply(a,r.children)}}return i},p=function(t,e){return t.tabIndex<0&&(e||/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||t.isContentEditable)&&isNaN(parseInt(t.getAttribute("tabindex"),10))?0:t.tabIndex},v=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},b=function(t){return"INPUT"===t.tagName},m=function(t){var e=t.getBoundingClientRect();return 0===e.width&&0===e.height},g=function(t,e){return!(e.disabled||function(t){return b(t)&&"hidden"===t.type}(e)||function(t,e){var n=e.displayCheck,o=e.getShadowRoot;if("hidden"===getComputedStyle(t).visibility)return!0;var i=c.call(t,"details>summary:first-of-type");if(c.call(i?t.parentElement:t,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return m(t)}else{if("function"==typeof o){for(var a=t;t;){var r=t.parentElement,s=d(t);if(r&&!r.shadowRoot&&!0===o(r))return m(t);t=t.assignedSlot?t.assignedSlot:r||s===t.ownerDocument?r:s.host}t=a}if(function(t){for(var e,n=d(t).host,o=!!(null!==(e=n)&&void 0!==e&&e.ownerDocument.contains(n)||t.ownerDocument.contains(t));!o&&n;){var i;o=!(null===(i=n=d(n).host)||void 0===i||!i.ownerDocument.contains(n))}return o}(t))return!t.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var n=0;n<e.children.length;n++){var o=e.children.item(n);if("LEGEND"===o.tagName)return!!c.call(e,"fieldset[disabled] *")||!o.contains(t)}return!0}e=e.parentElement}return!1}(e))},y=function(t,e){return!(function(t){return function(t){return b(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,n=t.form||d(t),o=function(t){return n.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=o(window.CSS.escape(t.name));else try{e=o(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var i=function(t,e){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)return t[n]}(e,t.form);return!i||i===t}(t)}(e)||p(e)<0||!g(t,e))},w=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},_=function t(e){var n=[],o=[];return e.forEach((function(e,i){var a=!!e.scopeParent,r=a?e.scopeParent:e,s=p(r,a),l=a?t(e.candidates):r;0===s?a?n.push.apply(n,l):n.push(r):o.push({documentOrder:i,tabIndex:s,item:e,isScope:a,content:l})})),o.sort(v).reduce((function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t}),[]).concat(n)},x=function(t,e){var n;return n=(e=e||{}).getShadowRoot?h([t],e.includeContainer,{filter:y.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:w}):f(t,e.includeContainer,y.bind(null,e)),_(n)},k=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==c.call(t,l)&&y(e,t)},C=s.concat("iframe").join(","),E=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==c.call(t,C)&&g(e,t)};
|
|
6
|
-
/*!
|
|
7
|
-
* focus-trap 7.1.0
|
|
8
|
-
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
9
|
-
*/
|
|
10
|
-
function F(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function A(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?F(Object(n),!0).forEach((function(e){L(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function L(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var S=[],O=function(t){return setTimeout(t,0)},T=function(t,e){var n=-1;return t.every((function(t,o){return!e(t)||(n=o,!1)})),n},D=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];return"function"==typeof t?t.apply(void 0,n):t},j=function(t){return t.target.shadowRoot&&"function"==typeof t.composedPath?t.composedPath()[0]:t.target};const N=class{constructor(n){t(this,n),this.backButtonClick=e(this,"backButtonClick",7),this.helpButtonClick=e(this,"helpButtonClick",7),this.backButonLabel="Back",this.helpButonLabel="Help",this.hideNavigationButtonLabel="Hide main navigation",this.logoText="Admin",this.showNavigationButtonLabel="Show main navigation",this.navigationLabel="Main",this.onBackButtonClick=t=>{this.backButtonClick.emit(t)},this.onHelpButtonClick=t=>{this.helpButtonClick.emit(t)},this.onMobileNavigationToggleClick=()=>{this.toggleSidebar()},this.onClick=t=>{const e=Boolean(t.target.closest(".console-layout__mobile-navigation-button"));t.composedPath().includes(this.sidebarEl)||e||!this.sidebarActive||(this.sidebarActive=!1)},this.onKeyDown=t=>{"Escape"===t.code&&this.sidebarActive&&this.deactivateSidebar()}}componentDidLoad(){const t=[this.sidebarEl,...Array.from(this.el.querySelectorAll('[slot="navigation"], [slot="user"]')).filter((t=>Boolean(t)))];var e,n,o,i,a,s,l,u,c,d,p,v,b,m,y,w,_,C,F,L;this.focusTrap=(e=t,i=(null==(n={clickOutsideDeactivates:!0})?void 0:n.document)||document,a=(null==n?void 0:n.trapStack)||S,s=A({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},n),l={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},u=function(t,e,n){return t&&void 0!==t[e]?t[e]:s[n||e]},c=function(t){return l.containerGroups.findIndex((function(e){var n=e.tabbableNodes;return e.container.contains(t)||n.find((function(e){return e===t}))}))},d=function(t){var e=s[t];if("function"==typeof e){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];e=e.apply(void 0,o)}if(!0===e&&(e=void 0),!e){if(void 0===e||!1===e)return e;throw new Error("`".concat(t,"` was specified but was not a node, or did not return a node"))}var r=e;if("string"==typeof e&&!(r=i.querySelector(e)))throw new Error("`".concat(t,"` as selector refers to no known node"));return r},p=function(){var t=d("initialFocus");if(!1===t)return!1;if(void 0===t)if(c(i.activeElement)>=0)t=i.activeElement;else{var e=l.tabbableGroups[0];t=e&&e.firstTabbableNode||d("fallbackFocus")}if(!t)throw new Error("Your focus-trap needs to have at least one focusable element");return t},v=function(){if(l.containerGroups=l.containers.map((function(t){var e,n,o=x(t,s.tabbableOptions),i=(e=t,(n=(n=s.tabbableOptions)||{}).getShadowRoot?h([e],n.includeContainer,{filter:g.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):f(e,n.includeContainer,g.bind(null,n)));return{container:t,tabbableNodes:o,focusableNodes:i,firstTabbableNode:o.length>0?o[0]:null,lastTabbableNode:o.length>0?o[o.length-1]:null,nextTabbableNode:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=i.findIndex((function(e){return e===t}));if(!(n<0))return e?i.slice(n+1).find((function(t){return k(t,s.tabbableOptions)})):i.slice(0,n).reverse().find((function(t){return k(t,s.tabbableOptions)}))}}})),l.tabbableGroups=l.containerGroups.filter((function(t){return t.tabbableNodes.length>0})),l.tabbableGroups.length<=0&&!d("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},b=function t(e){!1!==e&&e!==i.activeElement&&(e&&e.focus?(e.focus({preventScroll:!!s.preventScroll}),l.mostRecentlyFocusedNode=e,function(t){return t.tagName&&"input"===t.tagName.toLowerCase()&&"function"==typeof t.select}(e)&&e.select()):t(p()))},m=function(t){var e=d("setReturnFocus",t);return e||!1!==e&&t},y=function(t){var e=j(t);c(e)>=0||(D(s.clickOutsideDeactivates,t)?o.deactivate({returnFocus:s.returnFocusOnDeactivate&&!E(e,s.tabbableOptions)}):D(s.allowOutsideClick,t)||t.preventDefault())},w=function(t){var e=j(t),n=c(e)>=0;n||e instanceof Document?n&&(l.mostRecentlyFocusedNode=e):(t.stopImmediatePropagation(),b(l.mostRecentlyFocusedNode||p()))},_=function(t){if(function(t){return"Escape"===t.key||"Esc"===t.key||27===t.keyCode}(t)&&!1!==D(s.escapeDeactivates,t))return t.preventDefault(),void o.deactivate();(function(t){return"Tab"===t.key||9===t.keyCode})(t)&&function(t){var e=j(t);v();var n=null;if(l.tabbableGroups.length>0){var o=c(e),i=o>=0?l.containerGroups[o]:void 0;if(o<0)n=t.shiftKey?l.tabbableGroups[l.tabbableGroups.length-1].lastTabbableNode:l.tabbableGroups[0].firstTabbableNode;else if(t.shiftKey){var a=T(l.tabbableGroups,(function(t){return e===t.firstTabbableNode}));a<0&&(i.container===e||E(e,s.tabbableOptions)&&!k(e,s.tabbableOptions)&&!i.nextTabbableNode(e,!1))&&(a=o),a>=0&&(n=l.tabbableGroups[0===a?l.tabbableGroups.length-1:a-1].lastTabbableNode)}else{var r=T(l.tabbableGroups,(function(t){return e===t.lastTabbableNode}));r<0&&(i.container===e||E(e,s.tabbableOptions)&&!k(e,s.tabbableOptions)&&!i.nextTabbableNode(e))&&(r=o),r>=0&&(n=l.tabbableGroups[r===l.tabbableGroups.length-1?0:r+1].firstTabbableNode)}}else n=d("fallbackFocus");n&&(t.preventDefault(),b(n))}(t)},C=function(t){var e=j(t);c(e)>=0||D(s.clickOutsideDeactivates,t)||D(s.allowOutsideClick,t)||(t.preventDefault(),t.stopImmediatePropagation())},F=function(){if(l.active)return function(t,e){if(t.length>0){var n=t[t.length-1];n!==e&&n.pause()}var o=t.indexOf(e);-1===o||t.splice(o,1),t.push(e)}(a,o),l.delayInitialFocusTimer=s.delayInitialFocus?O((function(){b(p())})):b(p()),i.addEventListener("focusin",w,!0),i.addEventListener("mousedown",y,{capture:!0,passive:!1}),i.addEventListener("touchstart",y,{capture:!0,passive:!1}),i.addEventListener("click",C,{capture:!0,passive:!1}),i.addEventListener("keydown",_,{capture:!0,passive:!1}),o},L=function(){if(l.active)return i.removeEventListener("focusin",w,!0),i.removeEventListener("mousedown",y,!0),i.removeEventListener("touchstart",y,!0),i.removeEventListener("click",C,!0),i.removeEventListener("keydown",_,!0),o},(o={get active(){return l.active},get paused(){return l.paused},activate:function(t){if(l.active)return this;var e=u(t,"onActivate"),n=u(t,"onPostActivate"),o=u(t,"checkCanFocusTrap");o||v(),l.active=!0,l.paused=!1,l.nodeFocusedBeforeActivation=i.activeElement,e&&e();var a=function(){o&&v(),F(),n&&n()};return o?(o(l.containers.concat()).then(a,a),this):(a(),this)},deactivate:function(t){if(!l.active)return this;var e=A({onDeactivate:s.onDeactivate,onPostDeactivate:s.onPostDeactivate,checkCanReturnFocus:s.checkCanReturnFocus},t);clearTimeout(l.delayInitialFocusTimer),l.delayInitialFocusTimer=void 0,L(),l.active=!1,l.paused=!1,function(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1),t.length>0&&t[t.length-1].unpause()}(a,o);var n=u(e,"onDeactivate"),i=u(e,"onPostDeactivate"),r=u(e,"checkCanReturnFocus"),c=u(e,"returnFocus","returnFocusOnDeactivate");n&&n();var d=function(){O((function(){c&&b(m(l.nodeFocusedBeforeActivation)),i&&i()}))};return c&&r?(r(m(l.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(){return l.paused||!l.active||(l.paused=!0,L()),this},unpause:function(){return l.paused&&l.active?(l.paused=!1,v(),F(),this):this},updateContainerElements:function(t){var e=[].concat(t).filter(Boolean);return l.containers=e.map((function(t){return"string"==typeof t?i.querySelector(t):t})),l.active&&v(),this}}).updateContainerElements(e),o),queueMicrotask((()=>{r()?this.deactivateSidebar():this.activateSidebar()}))}onWindowResize(){const t=r();t||this.sidebarActive?t&&this.deactivateSidebar():this.activateSidebar()}async toggleSidebar(){this.sidebarActive?this.deactivateSidebar():this.activateSidebar()}activateSidebar(){var t;this.sidebarActive=!0,this.sidebarEl.removeAttribute("inert"),r()&&(null===(t=this.focusTrap)||void 0===t||t.activate())}deactivateSidebar(){var t;this.sidebarActive=!1,r()&&this.sidebarEl.setAttribute("inert",""),null===(t=this.focusTrap)||void 0===t||t.deactivate({returnFocus:!0})}render(){const t=a("console-layout",{"console-layout--sidebar-active":this.sidebarActive});return n(o,null,n("div",{class:t,onClick:this.onClick,onKeyDown:this.onKeyDown},n("div",{"aria-hidden":String(!this.sidebarActive),class:"console-layout__sidebar",ref:t=>this.sidebarEl=t},n("header",{class:"console-layout__header"},n("div",{class:"console-layout__logo"},n("svg",{class:"console-layout__logo-mark",fill:"none",height:"26",viewBox:"0 0 16 26",width:"16",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M0.624238 14.0705C0.326496 13.5353 0.118077 12.9406 0.0287543 12.3161C-0.0307941 11.662 -0.0010199 11.0375 0.147851 10.4428C0.296722 9.84813 0.594464 9.25343 0.951754 8.77767C1.33882 8.27217 1.78543 7.85588 2.35114 7.55853L14.6181 0.362671C14.9159 0.8979 15.1243 1.4926 15.2136 2.11703C15.3029 2.74147 15.2434 3.3659 15.0945 3.99034C14.9456 4.58504 14.6479 5.17974 14.2906 5.6555C13.9035 6.16099 13.4569 6.57728 12.8912 6.87463L0.624238 14.0705Z",fill:"#145AF5"}),n("path",{d:"M3.69214 21.4743C3.3944 20.9391 3.18598 20.3444 3.09666 19.72C3.00733 19.0956 3.06688 18.4711 3.21575 17.8467C3.36462 17.252 3.66237 16.6573 4.01966 16.1815C4.40672 15.676 4.85333 15.2597 5.41904 14.9624L12.2076 10.9779C12.5053 11.5131 12.7137 12.1078 12.803 12.7323C12.8924 13.3567 12.8328 13.9811 12.6839 14.6056C12.5351 15.2003 12.2373 15.795 11.88 16.2707C11.493 16.7762 11.0464 17.1925 10.4807 17.4899L3.69214 21.4743Z",fill:"#145AF5"}),n("path",{d:"M3.69141 21.4739L7.77047 19.0951C8.39573 20.1953 8.5446 21.5036 8.24686 22.7228C7.91934 23.9419 7.14521 24.9826 6.04357 25.6368L3.69141 21.4739Z",fill:"#80A8F4"}),n("path",{d:"M12.2072 10.9785L7.32419 10.1459L0.625 14.0709L5.38887 14.9629L12.2072 10.9785Z",fill:"#80A8F4"})),n("flip-text",{class:"console-layout__logo-text",weight:"medium"},this.logoText))),n("nav",{"aria-label":this.navigationLabel,class:"console-layout__navigation"},n("slot",{name:"navigation"}),this.sidebarActive&&n("flip-visually-hidden",null,n("button",{class:"console-layout__hide-navigation-button",onClick:this.onMobileNavigationToggleClick,type:"button"},this.hideNavigationButtonLabel))),n("div",{class:"console-layout__user"},n("slot",{name:"user"}))),n("main",{"aria-labelledby":"app-name",class:"console-layout__main"},n("header",{class:"console-layout__app-bar"},n("flip-button",{class:"console-layout__mobile-navigation-button",flipAriaExpanded:String(this.sidebarActive),hideLabel:!0,icon:this.sidebarActive?"<flip-icon-close></flip-icon-close>":"<flip-icon-menu></flip-icon-menu>",label:this.sidebarActive?this.hideNavigationButtonLabel:this.showNavigationButtonLabel,onClick:this.onMobileNavigationToggleClick}),n("flip-heading",{as:"h1",class:"console-layout__app-name",headingId:"app-name",level:4,text:this.appName}),this.showHelpButton&&n("flip-button",{class:"console-layout__help-button",hideLabel:!0,icon:"<flip-icon-help></flip-icon-help>",label:this.helpButonLabel,onClick:this.onHelpButtonClick})),n("section",{"aria-labelledby":"heading",class:"console-layout__content"},n("header",{class:"console-layout__content-header"},this.showBackButton&&n("flip-button",{class:"console-layout__back-button",hideLabel:!0,icon:"<flip-icon-arrow-back></flip-icon-arrow-back>",label:this.backButonLabel,onClick:this.onBackButtonClick}),n("div",null,n("flip-heading",{as:"h2",class:"console-layout__heading",headingId:"heading",level:1,text:this.heading}),this.subheading&&n("flip-text",{class:"console-layout__subheading",color:"subdued"},this.subheading))),n("div",{class:"console-layout__integration"},n("slot",{name:"content"}))))))}get el(){return i(this)}};N.style=':host{display:block;width:100%;height:100vh}:host *{box-sizing:border-box}.console-layout{display:grid;width:100%;height:100%;grid-template-columns:1fr;grid-template-areas:"main"}@media (min-width: 768px){.console-layout{grid-template-columns:20rem 1fr;grid-template-areas:"sidebar main"}}@media (max-width: 767px){.console-layout--sidebar-active .console-layout__sidebar{transform:translate3d(0, 0, 0)}}.console-layout__sidebar{position:fixed;z-index:1;top:4rem;bottom:0;left:0;display:grid;overflow-x:hidden;overflow-y:auto;width:100%;max-width:20rem;border-right:var(--s-border-width-default) solid var(--s-border-default);transition:transform 0.15s;transform:translate3d(-100%, 0, 0);box-shadow:0 0 1rem rgba(0, 0, 0, 0.06);grid-template-rows:auto 1fr auto;grid-template-areas:"header"\n "navigation"\n "user"}@media (prefers-reduced-motion){.console-layout__sidebar{transition:none}}@media (min-width: 768px){.console-layout__sidebar{position:static;top:auto;left:auto;max-width:none;height:100%;transform:none;box-shadow:none;grid-area:sidebar}}.console-layout__header{overflow:hidden;min-width:0;padding:var(--s-space-20) var(--s-space-24);background-color:var(--s-background-default);grid-area:header}.console-layout__navigation{overflow-x:hidden;overflow-y:auto;padding-top:var(--s-space-8);padding-bottom:var(--s-space-8);background-color:var(--s-background-default);grid-area:navigation}@media (min-width: 768px){.console-layout__hide-navigation-button{display:none}}.console-layout__user{overflow:hidden;margin-top:var(--s-border-width-default);padding:var(--s-space-16) var(--s-space-24) var(--s-space-24);border-top:var(--s-border-width-default) solid var(--s-border-default);background-color:var(--s-background-default);grid-area:user}.console-layout__main{display:grid;overflow-x:hidden;overflow-y:auto;width:100%;height:100%;grid-area:main;gap:var(--s-border-width-default);grid-template-rows:4rem 1fr;grid-template-areas:"app-bar"\n "content"}.console-layout__app-bar{position:sticky;z-index:1;top:0;display:flex;min-width:0;padding-right:var(--s-space-16);padding-left:var(--s-space-16);align-items:center;border-bottom:var(--s-border-width-default) solid var(--s-border-default);background-color:var(--s-background-default);gap:var(--s-space-12);grid-area:app-bar}@media (min-width: 768px){.console-layout__app-bar{padding-right:2.5rem;padding-left:2.5rem}}@media (min-width: 768px){.console-layout__mobile-navigation-button{display:none}}.console-layout__app-name{min-width:0;flex-grow:1}.console-layout__app-name .heading{overflow:hidden;font-weight:var(--s-font-weight-regular);white-space:nowrap;text-overflow:ellipsis}.console-layout__help-button{flex-shrink:0}.console-layout__content{display:flex;padding:var(--s-space-16);background-color:var(--s-background-default);flex-direction:column;grid-area:content}@media (min-width: 768px){.console-layout__content{padding:2.5rem}}.console-layout__content-header{flex-shrink:0}.console-layout__integration{flex-grow:1}.console-layout__logo{display:flex;min-width:0;align-items:center;gap:var(--s-space-12)}.console-layout__logo-mark{flex-shrink:0}.console-layout__logo-text{min-width:0}.console-layout__logo-text::part(text){overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.console-layout__content-header{display:flex;margin-bottom:2.5rem;gap:var(--s-space-16)}.console-layout__back-button{position:relative;top:calc(-1 * var(--s-space-2));flex-shrink:0}.console-layout__subheading{margin-top:var(--s-space-8)}';export{N as flip_console_layout}
|