@stenajs-webui/panels 19.0.0-next.13 → 19.0.0-next.14
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/components/collapsible/Collapsible.d.ts +3 -9
- package/dist/components/collapsible/CollapsibleGroupHeading.d.ts +2 -3
- package/dist/components/collapsible/CollapsibleList.d.ts +6 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.es.js +363 -470
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/dist/components/collapsible/CollapsibleClickableContent.d.ts +0 -6
- package/dist/components/collapsible/CollapsibleContent.d.ts +0 -7
package/dist/index.es.js
CHANGED
|
@@ -1,303 +1,302 @@
|
|
|
1
|
-
(function(){"use strict";try{var o=document.createElement("style");o.appendChild(document.createTextNode('._navBar_kzibd_1{--swui-navbar-background-color: var(--lhds-color-ui-50);--swui-navbar-item-background-color-hover: var(--lhds-color-blue-700);--swui-navbar-item-background-color-selected: var(--lhds-color-blue-600);--swui-navbar-item-background-color-selected-hover: var( --lhds-color-blue-700 );--swui-nav-bar-height: 48px;background-color:var(--swui-navbar-background-color);height:var(--swui-nav-bar-height);min-height:var(--swui-nav-bar-height)}._navBarButton_18iz9_1{--swui-nav-bar-button-text-color: var(--lhds-color-blue-600);--swui-nav-bar-button-background-color: transparent;--swui-nav-bar-button-background-color-hover: var(--lhds-color-ui-100);--swui-nav-bar-button-background-color-focus: var(--lhds-color-ui-200);--swui-nav-bar-button-background-color-active: var(--lhds-color-ui-200);--swui-nav-bar-button-background-color-selected: var(--lhds-color-blue-200);--swui-nav-bar-button-background-color-selected-hover: var( --lhds-color-blue-100 );--swui-nav-bar-button-background-color-selected-focus: var( --lhds-color-blue-300 );--swui-nav-bar-button-background-color-selected-active: var( --lhds-color-blue-200 );--swui-flat-button-text-color: var(--swui-nav-bar-button-text-color);--swui-flat-button-icon-color: var(--swui-nav-bar-button-text-color);--swui-flat-button-text-color-active: var(--swui-nav-bar-button-text-color);--swui-flat-button-background-color: var( --swui-nav-bar-button-background-color );--swui-flat-button-background-color-hover: var( --swui-nav-bar-button-background-color-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-button-background-color-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-button-background-color-active )}._navBarButton_18iz9_1._selected_18iz9_36{--swui-flat-button-background-color: var( --swui-nav-bar-button-background-color-selected );--swui-flat-button-background-color-hover: var( --swui-nav-bar-button-background-color-selected-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-button-background-color-selected-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-button-background-color-selected-active )}._navBarNotificationButton_8ej1j_1{--swui-nav-bar-notification-button-text-color: var(--lhds-color-ui-50);--swui-nav-bar-notification-button-background-color: var(--lhds-color-ui-400);--swui-nav-bar-notification-button-background-color-hover: var( --lhds-color-blue-900 );--swui-nav-bar-notification-button-background-color-focus: var( --lhds-color-blue-700 );--swui-nav-bar-notification-button-background-color-active: var( --lhds-color-blue-800 );--swui-nav-bar-notification-button-background-color-unread: var( --lhds-color-red-500 );--swui-nav-bar-notification-button-background-color-unread-hover: var( --lhds-color-red-700 );--swui-nav-bar-notification-button-background-color-unread-focus: var( --lhds-color-red-700 );--swui-nav-bar-notification-button-background-color-unread-active: var( --lhds-color-red-800 );--swui-flat-button-text-color: var( --swui-nav-bar-notification-button-text-color );--swui-flat-button-icon-color: var( --swui-nav-bar-notification-button-text-color );--swui-flat-button-text-color-active: var( --swui-nav-bar-notification-button-text-color );--swui-flat-button-background-color: var( --swui-nav-bar-notification-button-background-color );--swui-flat-button-background-color-hover: var( --swui-nav-bar-notification-button-background-color-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-notification-button-background-color-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-notification-button-background-color-active );--swui-nav-bar-notification-shake-count: 3;transition:.5s width}._navBarNotificationButton_8ej1j_1._unread_8ej1j_54{--swui-flat-button-background-color: var( --swui-nav-bar-notification-button-background-color-unread );--swui-flat-button-background-color-hover: var( --swui-nav-bar-notification-button-background-color-unread-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-notification-button-background-color-unread-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-notification-button-background-color-unread-active )}._navBarNotificationButton_8ej1j_1._unread_8ej1j_54._hasCount_8ej1j_68 ._icon_8ej1j_69{-webkit-transform-origin:top center;transform-origin:top center;-webkit-animation:_shake_8ej1j_1 1.5s ease-in-out var(--swui-nav-bar-notification-shake-count);animation:_shake_8ej1j_1 1.5s ease-in-out var(--swui-nav-bar-notification-shake-count)}@-webkit-keyframes _shake_8ej1j_1{0%{-webkit-transform:rotate(0);transform:rotate(0)}7%{-webkit-transform:rotate(20deg);transform:rotate(20deg)}15%{-webkit-transform:rotate(-20deg);transform:rotate(-20deg)}22%{-webkit-transform:rotate(16deg);transform:rotate(16deg)}30%{-webkit-transform:rotate(-16deg);transform:rotate(-16deg)}38%{-webkit-transform:rotate(6deg);transform:rotate(6deg)}42%{-webkit-transform:rotate(-6deg);transform:rotate(-6deg)}46%{-webkit-transform:rotate(2deg);transform:rotate(2deg)}to{-webkit-transform:rotate(0);transform:rotate(0)}}@keyframes _shake_8ej1j_1{0%{-webkit-transform:rotate(0);transform:rotate(0)}7%{-webkit-transform:rotate(20deg);transform:rotate(20deg)}15%{-webkit-transform:rotate(-20deg);transform:rotate(-20deg)}22%{-webkit-transform:rotate(16deg);transform:rotate(16deg)}30%{-webkit-transform:rotate(-16deg);transform:rotate(-16deg)}38%{-webkit-transform:rotate(6deg);transform:rotate(6deg)}42%{-webkit-transform:rotate(-6deg);transform:rotate(-6deg)}46%{-webkit-transform:rotate(2deg);transform:rotate(2deg)}to{-webkit-transform:rotate(0);transform:rotate(0)}}._navBarSearchFieldInput_16tw5_1._navBarSearchFieldInput_16tw5_1{--swui-textinput-line-height: 2.7rem;--swui-textinput-text-color: var(--lhds-color-ui-50);--swui-textinput-placeholder-color: var(--lhds-color-blue-800);padding:1px var(--swui-metrics-indent)}._navBarSearchFieldInput_16tw5_1._navBarSearchFieldInput_16tw5_1:focus{--swui-textinput-text-color: var(--lhds-color-ui-800)}._navBarSearchField_16tw5_1{--swui-textinput-animation-time: var(--swui-animation-time-fast);--swui-textinput-placeholder-color: var(--lhds-color-ui-500);--swui-textinput-bg-color: var(--lhds-color-ui-200);--swui-textinput-border-color: transparent;--swui-textinput-border-color-hover: transparent;padding:1px var(--swui-metrics-indent) 0;border-radius:var(--swui-max-border-radius)}._navBarSearchField_16tw5_1:focus-within{--swui-textinput-text-color: var(--lhds-color-ui-800);--swui-field-text-color: var(--swui-field-text-color);--swui-textinput-bg-color: var(--lhds-color-ui-50)}._navBarUserButton_1cwhm_1{--swui-nav-bar-user-button-text-color: var(--lhds-color-blue-600);--swui-nav-bar-user-button-background-color: var(--lhds-color-ui-50);--swui-nav-bar-user-button-background-color-hover: var(--lhds-color-ui-100);--swui-nav-bar-user-button-background-color-focus: var(--lhds-color-ui-100);--swui-nav-bar-user-button-background-color-active: var(--lhds-color-ui-200);--swui-flat-button-text-color: var(--swui-nav-bar-user-button-text-color);--swui-flat-button-icon-color: var(--swui-nav-bar-user-button-text-color);--swui-flat-button-text-color-active: var( --swui-nav-bar-user-button-text-color );--swui-flat-button-background-color: var( --swui-nav-bar-user-button-background-color );--swui-flat-button-background-color-hover: var( --swui-nav-bar-user-button-background-color-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-user-button-background-color-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-user-button-background-color-active );--swui-button-border-radius: 16px;--swui-button-border-radius-icon-only: 16px}._navBarUserButton_1cwhm_1._initials_1cwhm_31{width:32px}._clickable_1ijxc_1{--swui-toast-border-color: transparent;--swui-toast-item-border-color-hover: var(--lhds-color-blue-500);--current-border-color: var(--swui-toast-border-color);border-width:1px;border-style:solid;border-color:var(--current-border-color);position:absolute;top:0;left:0;right:0;bottom:0;border-radius:8px;background-color:transparent;width:100%;cursor:pointer}._clickable_1ijxc_1:hover{--current-border-color: var(--swui-toast-item-border-color-hover)}._nonClickable_1ijxc_27{position:relative;z-index:1;pointer-events:none}._nonClickable_1ijxc_27 a,._nonClickable_1ijxc_27 button{pointer-events:auto}._collapsible_1nroa_1{--swui-collapsible-animation-time: var(--swui-animation-time-fast);--swui-collapsible-expanded-line-background-color: var( --swui-primary-action-color );--swui-collapsible-header-text-color: var(--lhds-color-ui-900);--swui-collapsible-header-background-color: var(--swui-white);--swui-collapsible-header-background-color-hover: var(--lhds-color-blue-100);--swui-collapsible-header-background-color-active: var(--lhds-color-blue-100);--swui-collapsible-header-border-color: var(--lhds-color-ui-300);--swui-collapsible-header-border-color-focus: var( --swui-primary-action-color );--swui-collapsible-header-focus-shadow: var(--swui-field-focus-shadow);--swui-collapsible-header-content-margin: calc( var(--swui-metrics-indent) * 2 );--swui-collapsible-header-font-weight: var(--swui-font-weight-text-bold);--swui-collapsible-header-indicator-color: var(--swui-primary-action-color);--swui-collapsible-header-indicator-color-collapsed: var(--lhds-color-ui-500);--swui-collapsible-header-indicator-color-hover: var( --swui-primary-action-color );--swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0;--swui-collapsible-content-background-color: var(--lhds-color-ui-100);--swui-collapsible-content-border-color: var(--lhds-color-ui-300);--swui-collapsible-content-padding: var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 2);--swui-collapsible-groupheading-font-size: var(--swui-font-size-smaller);--swui-collapsible-groupheading-text-color: var(--lhds-color-ui-600);--swui-collapsible-min-height: 40px}._collapsible_1nroa_1 ._header_1nroa_46{background-color:var(--swui-collapsible-header-background-color);width:100%;text-align:left;min-height:var(--swui-collapsible-min-height);box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--swui-collapsible-header-border-color);padding:var(--swui-collapsible-header-padding)}._collapsible_1nroa_1 ._header_1nroa_46 ._indicator_1nroa_59{transition:all var(--swui-collapsible-animation-time) ease-in-out;margin-left:var(--swui-collapsible-header-content-margin);color:var(--swui-collapsible-header-indicator-color)}._collapsible_1nroa_1 ._header_1nroa_46:not(:disabled):hover:not(:active){background-color:var(--swui-collapsible-header-background-color-hover)}._collapsible_1nroa_1 ._header_1nroa_46:not(:disabled):hover:not(:active) ._indicator_1nroa_59{color:var(--swui-collapsible-header-indicator-color-hover)}._collapsible_1nroa_1 ._header_1nroa_46:focus-visible{outline:1px solid var(--swui-collapsible-header-border-color-focus);outline-offset:-1px;box-shadow:var(--swui-collapsible-header-focus-shadow)}._collapsible_1nroa_1 ._header_1nroa_46:active{background:var(--swui-collapsible-header-background-color-active)}._collapsible_1nroa_1 ._header_1nroa_46:disabled{cursor:not-allowed}._collapsible_1nroa_1{position:relative}._collapsible_1nroa_1:before{content:"";position:absolute;width:2px;background:var(--swui-collapsible-expanded-line-background-color);top:0;bottom:0;left:0;z-index:1}._collapsible_1nroa_1 ._headerText_1nroa_103{font-weight:var(--swui-collapsible-header-font-weight)}._collapsible_1nroa_1[aria-expanded=false]{--swui-collapsible-expanded-line-background-color: transparent}._collapsible_1nroa_1[aria-expanded=false] ._indicator_1nroa_59{color:var(--swui-collapsible-header-indicator-color-collapsed)}._collapsible_1nroa_1 ._label_1nroa_114{margin-right:auto}._collapsible_1nroa_1 ._label_1nroa_114 span{--current-line-height: 1;font-weight:var(--swui-collapsible-header-font-weight)}._collapsible_1nroa_1 ._contentLeft_1nroa_123,._collapsible_1nroa_1 ._contentRight_1nroa_124{display:flex}._collapsible_1nroa_1 ._contentLeft_1nroa_123 button,._collapsible_1nroa_1 ._contentRight_1nroa_124 button{cursor:pointer}._collapsible_1nroa_1 ._contentLeft_1nroa_123{margin-right:var(--swui-collapsible-header-content-margin)}._collapsible_1nroa_1 ._contentRight_1nroa_124{margin-left:auto}._collapsible_1nroa_1 ._content_1nroa_123{display:flex;align-items:center;justify-content:stretch;background:var(--swui-collapsible-content-background-color);padding:var(--swui-collapsible-content-padding);min-height:var(--swui-collapsible-min-height);box-sizing:border-box}._collapsible_1nroa_1 ._content_1nroa_123:last-child{border-bottom:1px solid var(--swui-collapsible-content-border-color)}._collapsible_1nroa_1 ._content_1nroa_123._groupHeading_1nroa_155{border:none;font-size:var(--swui-collapsible-groupheading-font-size);font-family:var(--swui-font-primary);color:var(--swui-collapsible-groupheading-text-color);text-transform:uppercase;font-weight:var(--swui-font-weight-text-bold);letter-spacing:.1rem}._collapsible_1nroa_1 ._content_1nroa_123 [data-hidden=true]{display:none}._collapsible_1nroa_1 ._content_1nroa_123:hover [data-hidden=true]{display:inherit}._collapsible_1nroa_1 ._content_1nroa_123:hover [data-hover=true]{color:var(--swui-collapsible-header-indicator-color-hover)}._collapsible_1nroa_1 ._contentEnter_1nroa_180{opacity:0}._collapsible_1nroa_1 ._contentEnterActive_1nroa_184{opacity:1;transition:opacity var(--swui-collapsible-animation-time) ease-in-out}._collapsible_1nroa_1 ._contentExitDone_1nroa_189{display:none}._collapsible_1nroa_1 button._content_1nroa_123{font-family:var(--swui-font-primary);font-size:inherit;width:100%;text-align:left}._collapsible_1nroa_1 button._content_1nroa_123:focus-visible{outline:1px solid var(--swui-collapsible-header-border-color-focus);outline-offset:-1px;box-shadow:var(--swui-collapsible-header-focus-shadow)}._collapsible_1nroa_1 button._content_1nroa_123:not(:disabled):hover{background-color:var(--swui-collapsible-header-background-color-hover)}._collapsible_1nroa_1 button._content_1nroa_123:disabled{cursor:not-allowed}._collapsible_1nroa_1 button._content_1nroa_123:focus-within [data-hidden=true]{display:inherit}._collapsible_1nroa_1 ._collapsible_1nroa_1{--swui-collapsible-header-background-color: var( --swui-collapsible-content-background-color );--swui-collapsible-header-font-weight: normal}._collapsible_1nroa_1 ._collapsible_1nroa_1{--swui-collapsible-content-padding: var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 2) var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 4)}._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1{--swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0 calc(var(--swui-metrics-indent) * 4);--swui-collapsible-content-padding: var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 2) var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 6)}._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1{--swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0 calc(var(--swui-metrics-indent) * 6);--swui-collapsible-content-padding: var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 2) var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 8)}._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1{--swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0 calc(var(--swui-metrics-indent) * 8);--swui-collapsible-content-padding: var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 2) var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 10)}._sidebarMenu_1jqed_1{--swui-sidebar-menu-separator-color: var(--swui-white);--swui-sidebar-menu-text-color: var(--lhds-color-ui-900);--swui-sidebar-menu-icon-color: var(--lhds-color-ui-900);--swui-sidebar-menu-background-color: transparent;--swui-sidebar-menu-background-color-hover: var(--lhds-color-ui-400);--swui-sidebar-menu-background-color-focus: var(--lhds-color-ui-400);--swui-sidebar-menu-background-color-active: var(--lhds-color-ui-300);--swui-sidebar-menu-background-selected: var(--lhds-color-blue-100);--swui-sidebar-menu-background-selected-hover: var(--lhds-color-blue-200);--swui-sidebar-menu-background-selected-focus: var(--lhds-color-blue-200);--swui-sidebar-menu-background-selected-active: var(--lhds-color-blue-100);--current-separator-color: var(--swui-sidebar-menu-separator-color);--current-text-color: var(--swui-sidebar-menu-text-color);--current-icon-color: var(--swui-sidebar-menu-icon-color);--current-background-color: var(--swui-sidebar-menu-background-color);--current-background-color-hover: var( --swui-sidebar-menu-background-color-hover );--current-background-color-focus: var( --swui-sidebar-menu-background-color-focus );--current-background-color-active: var( --swui-sidebar-menu-background-color-active );--current-background-selected: var(--swui-sidebar-menu-background-selected);--current-background-selected-hover: var( --swui-sidebar-menu-background-selected-hover );--current-background-selected-focus: var( --swui-sidebar-menu-background-selected-focus );--current-background-selected-active: var( --swui-sidebar-menu-background-selected-active );background-color:var(--current-background-color);height:100vh}._sidebarMenu_1jqed_1 button{--swui-button-text-color: var(--swui-white);--swui-button-background-color-hover: var( --swui-sidebar-menu-background-color-hover )}._stenaFlag_108h7_1{height:32px}')),document.head.appendChild(o)}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
-
import { jsx as e, jsxs as i, Fragment as
|
|
3
|
-
import { ActionMenu as
|
|
4
|
-
import * as
|
|
5
|
-
import { useRef as
|
|
6
|
-
import { useBoolean as
|
|
7
|
-
import { Popover as
|
|
8
|
-
import { Checkbox as
|
|
9
|
-
import
|
|
10
|
-
import { cssColor as
|
|
11
|
-
|
|
12
|
-
const U = ({
|
|
1
|
+
(function(){"use strict";try{var o=document.createElement("style");o.appendChild(document.createTextNode("._navBar_kzibd_1{--swui-navbar-background-color: var(--lhds-color-ui-50);--swui-navbar-item-background-color-hover: var(--lhds-color-blue-700);--swui-navbar-item-background-color-selected: var(--lhds-color-blue-600);--swui-navbar-item-background-color-selected-hover: var( --lhds-color-blue-700 );--swui-nav-bar-height: 48px;background-color:var(--swui-navbar-background-color);height:var(--swui-nav-bar-height);min-height:var(--swui-nav-bar-height)}._navBarButton_18iz9_1{--swui-nav-bar-button-text-color: var(--lhds-color-blue-600);--swui-nav-bar-button-background-color: transparent;--swui-nav-bar-button-background-color-hover: var(--lhds-color-ui-100);--swui-nav-bar-button-background-color-focus: var(--lhds-color-ui-200);--swui-nav-bar-button-background-color-active: var(--lhds-color-ui-200);--swui-nav-bar-button-background-color-selected: var(--lhds-color-blue-200);--swui-nav-bar-button-background-color-selected-hover: var( --lhds-color-blue-100 );--swui-nav-bar-button-background-color-selected-focus: var( --lhds-color-blue-300 );--swui-nav-bar-button-background-color-selected-active: var( --lhds-color-blue-200 );--swui-flat-button-text-color: var(--swui-nav-bar-button-text-color);--swui-flat-button-icon-color: var(--swui-nav-bar-button-text-color);--swui-flat-button-text-color-active: var(--swui-nav-bar-button-text-color);--swui-flat-button-background-color: var( --swui-nav-bar-button-background-color );--swui-flat-button-background-color-hover: var( --swui-nav-bar-button-background-color-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-button-background-color-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-button-background-color-active )}._navBarButton_18iz9_1._selected_18iz9_36{--swui-flat-button-background-color: var( --swui-nav-bar-button-background-color-selected );--swui-flat-button-background-color-hover: var( --swui-nav-bar-button-background-color-selected-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-button-background-color-selected-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-button-background-color-selected-active )}._navBarNotificationButton_8ej1j_1{--swui-nav-bar-notification-button-text-color: var(--lhds-color-ui-50);--swui-nav-bar-notification-button-background-color: var(--lhds-color-ui-400);--swui-nav-bar-notification-button-background-color-hover: var( --lhds-color-blue-900 );--swui-nav-bar-notification-button-background-color-focus: var( --lhds-color-blue-700 );--swui-nav-bar-notification-button-background-color-active: var( --lhds-color-blue-800 );--swui-nav-bar-notification-button-background-color-unread: var( --lhds-color-red-500 );--swui-nav-bar-notification-button-background-color-unread-hover: var( --lhds-color-red-700 );--swui-nav-bar-notification-button-background-color-unread-focus: var( --lhds-color-red-700 );--swui-nav-bar-notification-button-background-color-unread-active: var( --lhds-color-red-800 );--swui-flat-button-text-color: var( --swui-nav-bar-notification-button-text-color );--swui-flat-button-icon-color: var( --swui-nav-bar-notification-button-text-color );--swui-flat-button-text-color-active: var( --swui-nav-bar-notification-button-text-color );--swui-flat-button-background-color: var( --swui-nav-bar-notification-button-background-color );--swui-flat-button-background-color-hover: var( --swui-nav-bar-notification-button-background-color-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-notification-button-background-color-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-notification-button-background-color-active );--swui-nav-bar-notification-shake-count: 3;transition:.5s width}._navBarNotificationButton_8ej1j_1._unread_8ej1j_54{--swui-flat-button-background-color: var( --swui-nav-bar-notification-button-background-color-unread );--swui-flat-button-background-color-hover: var( --swui-nav-bar-notification-button-background-color-unread-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-notification-button-background-color-unread-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-notification-button-background-color-unread-active )}._navBarNotificationButton_8ej1j_1._unread_8ej1j_54._hasCount_8ej1j_68 ._icon_8ej1j_69{-webkit-transform-origin:top center;transform-origin:top center;-webkit-animation:_shake_8ej1j_1 1.5s ease-in-out var(--swui-nav-bar-notification-shake-count);animation:_shake_8ej1j_1 1.5s ease-in-out var(--swui-nav-bar-notification-shake-count)}@-webkit-keyframes _shake_8ej1j_1{0%{-webkit-transform:rotate(0);transform:rotate(0)}7%{-webkit-transform:rotate(20deg);transform:rotate(20deg)}15%{-webkit-transform:rotate(-20deg);transform:rotate(-20deg)}22%{-webkit-transform:rotate(16deg);transform:rotate(16deg)}30%{-webkit-transform:rotate(-16deg);transform:rotate(-16deg)}38%{-webkit-transform:rotate(6deg);transform:rotate(6deg)}42%{-webkit-transform:rotate(-6deg);transform:rotate(-6deg)}46%{-webkit-transform:rotate(2deg);transform:rotate(2deg)}to{-webkit-transform:rotate(0);transform:rotate(0)}}@keyframes _shake_8ej1j_1{0%{-webkit-transform:rotate(0);transform:rotate(0)}7%{-webkit-transform:rotate(20deg);transform:rotate(20deg)}15%{-webkit-transform:rotate(-20deg);transform:rotate(-20deg)}22%{-webkit-transform:rotate(16deg);transform:rotate(16deg)}30%{-webkit-transform:rotate(-16deg);transform:rotate(-16deg)}38%{-webkit-transform:rotate(6deg);transform:rotate(6deg)}42%{-webkit-transform:rotate(-6deg);transform:rotate(-6deg)}46%{-webkit-transform:rotate(2deg);transform:rotate(2deg)}to{-webkit-transform:rotate(0);transform:rotate(0)}}._navBarSearchFieldInput_16tw5_1._navBarSearchFieldInput_16tw5_1{--swui-textinput-line-height: 2.7rem;--swui-textinput-text-color: var(--lhds-color-ui-50);--swui-textinput-placeholder-color: var(--lhds-color-blue-800);padding:1px var(--swui-metrics-indent)}._navBarSearchFieldInput_16tw5_1._navBarSearchFieldInput_16tw5_1:focus{--swui-textinput-text-color: var(--lhds-color-ui-800)}._navBarSearchField_16tw5_1{--swui-textinput-animation-time: var(--swui-animation-time-fast);--swui-textinput-placeholder-color: var(--lhds-color-ui-500);--swui-textinput-bg-color: var(--lhds-color-ui-200);--swui-textinput-border-color: transparent;--swui-textinput-border-color-hover: transparent;padding:1px var(--swui-metrics-indent) 0;border-radius:var(--swui-max-border-radius)}._navBarSearchField_16tw5_1:focus-within{--swui-textinput-text-color: var(--lhds-color-ui-800);--swui-field-text-color: var(--swui-field-text-color);--swui-textinput-bg-color: var(--lhds-color-ui-50)}._navBarUserButton_1cwhm_1{--swui-nav-bar-user-button-text-color: var(--lhds-color-blue-600);--swui-nav-bar-user-button-background-color: var(--lhds-color-ui-50);--swui-nav-bar-user-button-background-color-hover: var(--lhds-color-ui-100);--swui-nav-bar-user-button-background-color-focus: var(--lhds-color-ui-100);--swui-nav-bar-user-button-background-color-active: var(--lhds-color-ui-200);--swui-flat-button-text-color: var(--swui-nav-bar-user-button-text-color);--swui-flat-button-icon-color: var(--swui-nav-bar-user-button-text-color);--swui-flat-button-text-color-active: var( --swui-nav-bar-user-button-text-color );--swui-flat-button-background-color: var( --swui-nav-bar-user-button-background-color );--swui-flat-button-background-color-hover: var( --swui-nav-bar-user-button-background-color-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-user-button-background-color-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-user-button-background-color-active );--swui-button-border-radius: 16px;--swui-button-border-radius-icon-only: 16px}._navBarUserButton_1cwhm_1._initials_1cwhm_31{width:32px}._clickable_1ijxc_1{--swui-toast-border-color: transparent;--swui-toast-item-border-color-hover: var(--lhds-color-blue-500);--current-border-color: var(--swui-toast-border-color);border-width:1px;border-style:solid;border-color:var(--current-border-color);position:absolute;top:0;left:0;right:0;bottom:0;border-radius:8px;background-color:transparent;width:100%;cursor:pointer}._clickable_1ijxc_1:hover{--current-border-color: var(--swui-toast-item-border-color-hover)}._nonClickable_1ijxc_27{position:relative;z-index:1;pointer-events:none}._nonClickable_1ijxc_27 a,._nonClickable_1ijxc_27 button{pointer-events:auto}._sidebarMenu_1jqed_1{--swui-sidebar-menu-separator-color: var(--swui-white);--swui-sidebar-menu-text-color: var(--lhds-color-ui-900);--swui-sidebar-menu-icon-color: var(--lhds-color-ui-900);--swui-sidebar-menu-background-color: transparent;--swui-sidebar-menu-background-color-hover: var(--lhds-color-ui-400);--swui-sidebar-menu-background-color-focus: var(--lhds-color-ui-400);--swui-sidebar-menu-background-color-active: var(--lhds-color-ui-300);--swui-sidebar-menu-background-selected: var(--lhds-color-blue-100);--swui-sidebar-menu-background-selected-hover: var(--lhds-color-blue-200);--swui-sidebar-menu-background-selected-focus: var(--lhds-color-blue-200);--swui-sidebar-menu-background-selected-active: var(--lhds-color-blue-100);--current-separator-color: var(--swui-sidebar-menu-separator-color);--current-text-color: var(--swui-sidebar-menu-text-color);--current-icon-color: var(--swui-sidebar-menu-icon-color);--current-background-color: var(--swui-sidebar-menu-background-color);--current-background-color-hover: var( --swui-sidebar-menu-background-color-hover );--current-background-color-focus: var( --swui-sidebar-menu-background-color-focus );--current-background-color-active: var( --swui-sidebar-menu-background-color-active );--current-background-selected: var(--swui-sidebar-menu-background-selected);--current-background-selected-hover: var( --swui-sidebar-menu-background-selected-hover );--current-background-selected-focus: var( --swui-sidebar-menu-background-selected-focus );--current-background-selected-active: var( --swui-sidebar-menu-background-selected-active );background-color:var(--current-background-color);height:100vh}._sidebarMenu_1jqed_1 button{--swui-button-text-color: var(--swui-white);--swui-button-background-color-hover: var( --swui-sidebar-menu-background-color-hover )}._stenaFlag_108h7_1{height:32px}")),document.head.appendChild(o)}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
+
import { jsx as e, jsxs as i, Fragment as f } from "react/jsx-runtime";
|
|
3
|
+
import { ActionMenu as V, ActionMenuContext as oe, stenaAngleDown as W, PrimaryButton as ie, SecondaryButton as ae, FlatButton as v, stenaHamburger as G, stenaBellFilled as le, stenaUserCircle as ce, Icon as J, stenaTimes as K, stenaMail as se, MenuButton as F, Banner as ue, Spinner as de, CircledIcon as he, StenaFlag as pe, stenaAngleLeftDouble as Q, stenaPin as ge, IconMenuButton as S, IconMenuButtonLink as me, MenuButtonLink as fe } from "@stenajs-webui/elements";
|
|
4
|
+
import * as be from "react";
|
|
5
|
+
import { useRef as ve, useMemo as Be, forwardRef as Ce, createContext as xe, useContext as _e, useState as ye } from "react";
|
|
6
|
+
import { useBoolean as R, Column as p, Box as c, Row as s, Indent as C, Heading as P, Txt as O, Space as g, Text as x, SeparatorLine as ke } from "@stenajs-webui/core";
|
|
7
|
+
import { Popover as j, Tooltip as Ie } from "@stenajs-webui/tooltip";
|
|
8
|
+
import { Checkbox as X, TextInput as we } from "@stenajs-webui/forms";
|
|
9
|
+
import h from "classnames";
|
|
10
|
+
import { cssColor as m } from "@stenajs-webui/theme";
|
|
11
|
+
const L = ({
|
|
13
12
|
renderItems: n,
|
|
14
13
|
placement: t = "bottom",
|
|
15
|
-
buttonComponent:
|
|
16
|
-
rightIcon:
|
|
14
|
+
buttonComponent: r,
|
|
15
|
+
rightIcon: o = W,
|
|
17
16
|
portalTarget: a = "parent",
|
|
18
|
-
zIndex:
|
|
17
|
+
zIndex: l,
|
|
19
18
|
menuWidth: d,
|
|
20
|
-
menuTop:
|
|
21
|
-
onClick:
|
|
22
|
-
disableArrow:
|
|
23
|
-
...
|
|
19
|
+
menuTop: u,
|
|
20
|
+
onClick: b,
|
|
21
|
+
disableArrow: _ = !1,
|
|
22
|
+
...Z
|
|
24
23
|
}) => {
|
|
25
|
-
const [
|
|
24
|
+
const [H, E, y, ee] = R(!1), M = ve(null), ne = {
|
|
26
25
|
name: "focusManager",
|
|
27
26
|
defaultValue: !0,
|
|
28
|
-
fn({ popper:
|
|
29
|
-
let
|
|
30
|
-
const
|
|
31
|
-
|
|
27
|
+
fn({ popper: k }) {
|
|
28
|
+
let w = !1;
|
|
29
|
+
const $ = (B) => {
|
|
30
|
+
B.key === "Escape" && (w = !0, y()), (B.key === "Enter" || B.key === " ") && (w = !0);
|
|
32
31
|
};
|
|
33
32
|
return {
|
|
34
33
|
onCreate() {
|
|
35
|
-
|
|
34
|
+
k.addEventListener("keydown", $);
|
|
36
35
|
},
|
|
37
36
|
onDestroy() {
|
|
38
|
-
|
|
37
|
+
k.removeEventListener("keydown", $);
|
|
39
38
|
},
|
|
40
39
|
onMount() {
|
|
41
|
-
var
|
|
42
|
-
|
|
40
|
+
var B;
|
|
41
|
+
w = !1, (B = k.querySelector("button:not([disabled]), a[href]")) == null || B.focus();
|
|
43
42
|
},
|
|
44
43
|
onHide() {
|
|
45
|
-
|
|
44
|
+
M.current && w && M.current.focus();
|
|
46
45
|
}
|
|
47
46
|
};
|
|
48
47
|
}
|
|
49
|
-
},
|
|
50
|
-
|
|
48
|
+
}, te = Be(() => ({ open: E, close: y }), [E, y]), re = (k) => {
|
|
49
|
+
b == null || b(k), ee();
|
|
51
50
|
};
|
|
52
51
|
return /* @__PURE__ */ e(
|
|
53
|
-
|
|
52
|
+
j,
|
|
54
53
|
{
|
|
55
54
|
disablePadding: !0,
|
|
56
|
-
visible:
|
|
57
|
-
onClickOutside:
|
|
55
|
+
visible: H,
|
|
56
|
+
onClickOutside: y,
|
|
58
57
|
placement: t,
|
|
59
|
-
content:
|
|
58
|
+
content: H && /* @__PURE__ */ e(V, { width: d, top: u, trapFocus: !0, children: /* @__PURE__ */ e(oe.Provider, { value: te, children: n(y) }) }),
|
|
60
59
|
arrow: !1,
|
|
61
60
|
appendTo: a,
|
|
62
|
-
zIndex:
|
|
63
|
-
plugins: [
|
|
61
|
+
zIndex: l,
|
|
62
|
+
plugins: [ne],
|
|
64
63
|
lazy: !0,
|
|
65
64
|
children: /* @__PURE__ */ e(
|
|
66
|
-
|
|
65
|
+
r,
|
|
67
66
|
{
|
|
68
|
-
rightIcon:
|
|
69
|
-
...
|
|
70
|
-
ref:
|
|
71
|
-
onClick:
|
|
67
|
+
rightIcon: _ ? void 0 : o,
|
|
68
|
+
...Z,
|
|
69
|
+
ref: M,
|
|
70
|
+
onClick: re
|
|
72
71
|
}
|
|
73
72
|
)
|
|
74
73
|
}
|
|
75
74
|
);
|
|
76
|
-
},
|
|
75
|
+
}, gn = (n) => /* @__PURE__ */ e(L, { buttonComponent: ie, ...n }), mn = (n) => /* @__PURE__ */ e(L, { buttonComponent: ae, ...n }), je = (n) => /* @__PURE__ */ e(L, { buttonComponent: v, ...n }), Me = "1px solid var(--lhds-color-ui-300)", fn = ({
|
|
77
76
|
renderMenu: n,
|
|
78
77
|
...t
|
|
79
78
|
}) => {
|
|
80
|
-
const [
|
|
79
|
+
const [r, o, a] = R(!1);
|
|
81
80
|
return /* @__PURE__ */ e(
|
|
82
|
-
|
|
81
|
+
j,
|
|
83
82
|
{
|
|
84
83
|
onClickOutside: a,
|
|
85
84
|
arrow: !1,
|
|
86
|
-
visible:
|
|
85
|
+
visible: r,
|
|
87
86
|
disablePadding: !0,
|
|
88
|
-
content: n ? /* @__PURE__ */ e(
|
|
87
|
+
content: n ? /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(V, { children: n(a) }) }) : void 0,
|
|
89
88
|
placement: "bottom-start",
|
|
90
|
-
children: /* @__PURE__ */ e(
|
|
91
|
-
|
|
89
|
+
children: /* @__PURE__ */ e(c, { display: "inline-block", children: /* @__PURE__ */ i(
|
|
90
|
+
s,
|
|
92
91
|
{
|
|
93
92
|
spacing: 0.5,
|
|
94
93
|
indent: !0,
|
|
95
94
|
alignItems: "center",
|
|
96
|
-
border:
|
|
95
|
+
border: Me,
|
|
97
96
|
borderRadius: "4px",
|
|
98
97
|
children: [
|
|
99
|
-
/* @__PURE__ */ e(
|
|
100
|
-
/* @__PURE__ */ e(
|
|
101
|
-
/* @__PURE__ */ e(
|
|
98
|
+
/* @__PURE__ */ e(X, { ...t }),
|
|
99
|
+
/* @__PURE__ */ e(C, { num: 0.5 }),
|
|
100
|
+
/* @__PURE__ */ e(v, { size: "small", onClick: o, leftIcon: W })
|
|
102
101
|
]
|
|
103
102
|
}
|
|
104
103
|
) })
|
|
105
104
|
}
|
|
106
105
|
);
|
|
107
|
-
},
|
|
108
|
-
navBar:
|
|
109
|
-
},
|
|
106
|
+
}, Ne = "_navBar_kzibd_1", Se = {
|
|
107
|
+
navBar: Ne
|
|
108
|
+
}, Fe = ({
|
|
110
109
|
className: n,
|
|
111
110
|
onClick: t
|
|
112
111
|
}) => /* @__PURE__ */ e(
|
|
113
|
-
|
|
112
|
+
v,
|
|
114
113
|
{
|
|
115
|
-
leftIcon:
|
|
114
|
+
leftIcon: G,
|
|
116
115
|
className: n,
|
|
117
116
|
onClick: t
|
|
118
117
|
}
|
|
119
|
-
),
|
|
118
|
+
), bn = ({
|
|
120
119
|
left: n,
|
|
121
120
|
className: t,
|
|
122
|
-
showMenuButton:
|
|
123
|
-
children:
|
|
121
|
+
showMenuButton: r = !1,
|
|
122
|
+
children: o,
|
|
124
123
|
right: a,
|
|
125
|
-
center:
|
|
124
|
+
center: l,
|
|
126
125
|
onClickMenuButton: d
|
|
127
126
|
}) => {
|
|
128
|
-
const
|
|
127
|
+
const u = l ? 1 : void 0;
|
|
129
128
|
return /* @__PURE__ */ i(
|
|
130
|
-
|
|
129
|
+
s,
|
|
131
130
|
{
|
|
132
131
|
justifyContent: "space-between",
|
|
133
|
-
className:
|
|
132
|
+
className: h(Se.navBar, t),
|
|
134
133
|
children: [
|
|
135
134
|
/* @__PURE__ */ i(
|
|
136
|
-
|
|
135
|
+
s,
|
|
137
136
|
{
|
|
138
|
-
flex:
|
|
137
|
+
flex: u,
|
|
139
138
|
justifyContent: "flex-start",
|
|
140
139
|
alignItems: "center",
|
|
141
140
|
children: [
|
|
142
|
-
/* @__PURE__ */ i(
|
|
143
|
-
/* @__PURE__ */ e(
|
|
144
|
-
|
|
141
|
+
/* @__PURE__ */ i(s, { width: "86px", alignItems: "center", children: [
|
|
142
|
+
/* @__PURE__ */ e(C, {}),
|
|
143
|
+
r && /* @__PURE__ */ e(Fe, { onClick: d })
|
|
145
144
|
] }),
|
|
146
|
-
n && /* @__PURE__ */ i(
|
|
145
|
+
n && /* @__PURE__ */ i(f, { children: [
|
|
147
146
|
n,
|
|
148
|
-
/* @__PURE__ */ e(
|
|
147
|
+
/* @__PURE__ */ e(C, { num: 2 })
|
|
149
148
|
] }),
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
149
|
+
o && /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(s, { justifyContent: "center", alignItems: "center", children: be.Children.map(o, (b, _) => /* @__PURE__ */ i(f, { children: [
|
|
150
|
+
_ > 0 && /* @__PURE__ */ e(C, {}),
|
|
151
|
+
b
|
|
153
152
|
] })) }) })
|
|
154
153
|
]
|
|
155
154
|
}
|
|
156
155
|
),
|
|
157
|
-
|
|
158
|
-
/* @__PURE__ */ i(
|
|
156
|
+
l && /* @__PURE__ */ e(s, { justifyContent: "center", alignItems: "center", children: l }),
|
|
157
|
+
/* @__PURE__ */ i(s, { justifyContent: "flex-end", alignItems: "center", flex: u, children: [
|
|
159
158
|
a,
|
|
160
|
-
/* @__PURE__ */ e(
|
|
159
|
+
/* @__PURE__ */ e(C, { num: 2 })
|
|
161
160
|
] })
|
|
162
161
|
]
|
|
163
162
|
}
|
|
164
163
|
);
|
|
165
|
-
},
|
|
166
|
-
navBarButton:
|
|
167
|
-
selected:
|
|
168
|
-
},
|
|
164
|
+
}, Re = "_navBarButton_18iz9_1", Pe = "_selected_18iz9_36", T = {
|
|
165
|
+
navBarButton: Re,
|
|
166
|
+
selected: Pe
|
|
167
|
+
}, Le = ({
|
|
169
168
|
selected: n,
|
|
170
169
|
className: t,
|
|
171
|
-
...
|
|
170
|
+
...r
|
|
172
171
|
}) => /* @__PURE__ */ e(
|
|
173
|
-
|
|
172
|
+
v,
|
|
174
173
|
{
|
|
175
|
-
...
|
|
176
|
-
className:
|
|
177
|
-
|
|
178
|
-
n &&
|
|
174
|
+
...r,
|
|
175
|
+
className: h(
|
|
176
|
+
T.navBarButton,
|
|
177
|
+
n && T.selected,
|
|
179
178
|
t
|
|
180
179
|
)
|
|
181
180
|
}
|
|
182
|
-
),
|
|
181
|
+
), vn = (n) => /* @__PURE__ */ e(P, { whiteSpace: "nowrap", variant: "h4", as: "h1", ...n }), Bn = ({
|
|
183
182
|
content: n,
|
|
184
183
|
children: t,
|
|
185
|
-
...
|
|
184
|
+
...r
|
|
186
185
|
}) => {
|
|
187
|
-
const [
|
|
186
|
+
const [o, , a, l] = R(!1);
|
|
188
187
|
return /* @__PURE__ */ e(
|
|
189
|
-
|
|
188
|
+
j,
|
|
190
189
|
{
|
|
191
190
|
onClickOutside: a,
|
|
192
191
|
triggerTarget: document.body,
|
|
193
|
-
visible:
|
|
194
|
-
content: /* @__PURE__ */ i(
|
|
192
|
+
visible: o,
|
|
193
|
+
content: /* @__PURE__ */ i(f, { children: [
|
|
195
194
|
n && n({ close: a }),
|
|
196
195
|
t
|
|
197
196
|
] }),
|
|
198
|
-
children: /* @__PURE__ */ e(
|
|
197
|
+
children: /* @__PURE__ */ e(Le, { ...r, onClick: l })
|
|
199
198
|
}
|
|
200
199
|
);
|
|
201
|
-
},
|
|
202
|
-
navBarNotificationButton:
|
|
203
|
-
unread:
|
|
204
|
-
hasCount:
|
|
205
|
-
icon:
|
|
206
|
-
shake:
|
|
207
|
-
},
|
|
200
|
+
}, ze = "_navBarNotificationButton_8ej1j_1", Ae = "_unread_8ej1j_54", He = "_hasCount_8ej1j_68", Ee = "_icon_8ej1j_69", $e = "_shake_8ej1j_1", I = {
|
|
201
|
+
navBarNotificationButton: ze,
|
|
202
|
+
unread: Ae,
|
|
203
|
+
hasCount: He,
|
|
204
|
+
icon: Ee,
|
|
205
|
+
shake: $e
|
|
206
|
+
}, Cn = ({
|
|
208
207
|
count: n,
|
|
209
208
|
unread: t = !1,
|
|
210
|
-
className:
|
|
211
|
-
labelClassName:
|
|
209
|
+
className: r,
|
|
210
|
+
labelClassName: o,
|
|
212
211
|
iconClassName: a,
|
|
213
|
-
icon:
|
|
212
|
+
icon: l = le,
|
|
214
213
|
...d
|
|
215
214
|
}) => {
|
|
216
|
-
const
|
|
215
|
+
const u = n > 0;
|
|
217
216
|
return /* @__PURE__ */ e(
|
|
218
|
-
|
|
217
|
+
v,
|
|
219
218
|
{
|
|
220
219
|
...d,
|
|
221
|
-
leftIcon:
|
|
222
|
-
className:
|
|
223
|
-
t &&
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
220
|
+
leftIcon: l,
|
|
221
|
+
className: h(
|
|
222
|
+
t && I.unread,
|
|
223
|
+
u && I.hasCount,
|
|
224
|
+
I.navBarNotificationButton,
|
|
225
|
+
r
|
|
227
226
|
),
|
|
228
|
-
label:
|
|
229
|
-
labelClassName:
|
|
230
|
-
iconClassName:
|
|
227
|
+
label: u ? String(n) : void 0,
|
|
228
|
+
labelClassName: h(o, I.label),
|
|
229
|
+
iconClassName: h(a, I.icon)
|
|
231
230
|
}
|
|
232
231
|
);
|
|
233
|
-
},
|
|
234
|
-
navBarSearchFieldInput:
|
|
235
|
-
navBarSearchField:
|
|
236
|
-
},
|
|
232
|
+
}, Oe = "_navBarSearchFieldInput_16tw5_1", Te = "_navBarSearchField_16tw5_1", U = {
|
|
233
|
+
navBarSearchFieldInput: Oe,
|
|
234
|
+
navBarSearchField: Te
|
|
235
|
+
}, xn = ({
|
|
237
236
|
placeholder: n = "Search",
|
|
238
237
|
className: t,
|
|
239
|
-
wrapperClassName:
|
|
240
|
-
...
|
|
238
|
+
wrapperClassName: r,
|
|
239
|
+
...o
|
|
241
240
|
}) => /* @__PURE__ */ e(
|
|
242
|
-
|
|
241
|
+
we,
|
|
243
242
|
{
|
|
244
|
-
wrapperClassName:
|
|
245
|
-
className:
|
|
243
|
+
wrapperClassName: h(U.navBarSearchField, r),
|
|
244
|
+
className: h(U.navBarSearchFieldInput, t),
|
|
246
245
|
placeholder: n,
|
|
247
|
-
...
|
|
246
|
+
...o
|
|
248
247
|
}
|
|
249
|
-
),
|
|
250
|
-
navBarUserButton:
|
|
251
|
-
initials:
|
|
252
|
-
},
|
|
248
|
+
), Ue = "_navBarUserButton_1cwhm_1", De = "_initials_1cwhm_31", D = {
|
|
249
|
+
navBarUserButton: Ue,
|
|
250
|
+
initials: De
|
|
251
|
+
}, _n = ({
|
|
253
252
|
className: n,
|
|
254
253
|
username: t,
|
|
255
|
-
initials:
|
|
256
|
-
icon:
|
|
254
|
+
initials: r,
|
|
255
|
+
icon: o = ce,
|
|
257
256
|
iconClassName: a,
|
|
258
|
-
...
|
|
257
|
+
...l
|
|
259
258
|
}) => /* @__PURE__ */ e(
|
|
260
|
-
|
|
259
|
+
je,
|
|
261
260
|
{
|
|
262
|
-
...
|
|
263
|
-
className:
|
|
264
|
-
{ [
|
|
265
|
-
|
|
261
|
+
...l,
|
|
262
|
+
className: h(
|
|
263
|
+
{ [D.initials]: r != null },
|
|
264
|
+
D.navBarUserButton,
|
|
266
265
|
n
|
|
267
266
|
),
|
|
268
|
-
leftIcon: t != null ?
|
|
269
|
-
label:
|
|
267
|
+
leftIcon: t != null ? o : void 0,
|
|
268
|
+
label: r != null ? r : t,
|
|
270
269
|
disableArrow: !0
|
|
271
270
|
}
|
|
272
|
-
),
|
|
271
|
+
), Y = ({
|
|
273
272
|
text: n,
|
|
274
273
|
timestamp: t,
|
|
275
|
-
icon:
|
|
276
|
-
iconAriaLabel:
|
|
274
|
+
icon: r,
|
|
275
|
+
iconAriaLabel: o,
|
|
277
276
|
iconColor: a,
|
|
278
|
-
contentLeft:
|
|
277
|
+
contentLeft: l,
|
|
279
278
|
contentRight: d,
|
|
280
|
-
onClose:
|
|
281
|
-
}) => /* @__PURE__ */ i(
|
|
282
|
-
/* @__PURE__ */ i(
|
|
283
|
-
|
|
284
|
-
!
|
|
285
|
-
|
|
279
|
+
onClose: u
|
|
280
|
+
}) => /* @__PURE__ */ i(s, { alignItems: "flex-start", indent: !0, spacing: !0, children: [
|
|
281
|
+
/* @__PURE__ */ i(s, { indent: 2, spacing: !0, gap: 2, flex: 1, alignItems: "flex-start", children: [
|
|
282
|
+
l && /* @__PURE__ */ e(c, { minHeight: 20, justifyContent: "center", children: l }),
|
|
283
|
+
!l && r && /* @__PURE__ */ e(
|
|
284
|
+
J,
|
|
286
285
|
{
|
|
287
|
-
icon:
|
|
286
|
+
icon: r,
|
|
288
287
|
size: 20,
|
|
289
288
|
color: a,
|
|
290
|
-
"aria-label":
|
|
289
|
+
"aria-label": o
|
|
291
290
|
}
|
|
292
291
|
),
|
|
293
|
-
/* @__PURE__ */ i(
|
|
294
|
-
/* @__PURE__ */ e(
|
|
295
|
-
t && /* @__PURE__ */ e(
|
|
292
|
+
/* @__PURE__ */ i(c, { minHeight: 20, justifyContent: "center", flex: 1, gap: 0.5, children: [
|
|
293
|
+
/* @__PURE__ */ e(O, { variant: "bold", children: n }),
|
|
294
|
+
t && /* @__PURE__ */ e(O, { size: "small", color: m("--lhds-color-ui-600"), children: t })
|
|
296
295
|
] }),
|
|
297
296
|
d
|
|
298
297
|
] }),
|
|
299
|
-
|
|
300
|
-
|
|
298
|
+
u && /* @__PURE__ */ e(
|
|
299
|
+
c,
|
|
301
300
|
{
|
|
302
301
|
flex: "none",
|
|
303
302
|
justifyContent: "center",
|
|
@@ -305,289 +304,185 @@ const U = ({
|
|
|
305
304
|
height: "calc(20px + 2 * var(--swui-metrics-spacing))"
|
|
306
305
|
},
|
|
307
306
|
children: /* @__PURE__ */ e(
|
|
308
|
-
|
|
307
|
+
v,
|
|
309
308
|
{
|
|
310
|
-
leftIcon:
|
|
311
|
-
onClick:
|
|
309
|
+
leftIcon: K,
|
|
310
|
+
onClick: u,
|
|
312
311
|
"aria-label": "Close"
|
|
313
312
|
}
|
|
314
313
|
)
|
|
315
314
|
}
|
|
316
315
|
)
|
|
317
|
-
] }),
|
|
316
|
+
] }), yn = ({
|
|
318
317
|
children: n,
|
|
319
318
|
...t
|
|
320
319
|
}) => /* @__PURE__ */ i(
|
|
321
|
-
|
|
320
|
+
p,
|
|
322
321
|
{
|
|
323
322
|
background: "var(--lhds-color-ui-50)",
|
|
324
323
|
borderRadius: "var(--swui-border-radius)",
|
|
325
324
|
children: [
|
|
326
|
-
/* @__PURE__ */ e(
|
|
327
|
-
n && /* @__PURE__ */ i(
|
|
325
|
+
/* @__PURE__ */ e(Y, { ...t }),
|
|
326
|
+
n && /* @__PURE__ */ i(p, { indent: 3, children: [
|
|
328
327
|
n,
|
|
329
|
-
/* @__PURE__ */ e(
|
|
328
|
+
/* @__PURE__ */ e(g, { num: 2 })
|
|
330
329
|
] })
|
|
331
330
|
]
|
|
332
331
|
}
|
|
333
|
-
),
|
|
334
|
-
clickable:
|
|
335
|
-
nonClickable:
|
|
336
|
-
},
|
|
332
|
+
), qe = "_clickable_1ijxc_1", Ve = "_nonClickable_1ijxc_27", N = {
|
|
333
|
+
clickable: qe,
|
|
334
|
+
nonClickable: Ve
|
|
335
|
+
}, kn = ({
|
|
337
336
|
onClick: n,
|
|
338
337
|
onClickAriaLabel: t,
|
|
339
|
-
children:
|
|
340
|
-
width:
|
|
338
|
+
children: r,
|
|
339
|
+
width: o = 264,
|
|
341
340
|
maxWidth: a,
|
|
342
|
-
...
|
|
341
|
+
...l
|
|
343
342
|
}) => /* @__PURE__ */ i(
|
|
344
|
-
|
|
343
|
+
c,
|
|
345
344
|
{
|
|
346
345
|
borderRadius: 8,
|
|
347
|
-
background:
|
|
346
|
+
background: m("--lhds-color-ui-50"),
|
|
348
347
|
shadow: "popover",
|
|
349
|
-
width:
|
|
348
|
+
width: o,
|
|
350
349
|
maxWidth: a,
|
|
351
350
|
role: "alert",
|
|
352
351
|
position: "relative",
|
|
353
352
|
children: [
|
|
354
|
-
/* @__PURE__ */ e(
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
/* @__PURE__ */ e(
|
|
353
|
+
/* @__PURE__ */ e(c, { className: h({ [N.nonClickable]: n }), children: /* @__PURE__ */ e(Y, { ...l }) }),
|
|
354
|
+
r && /* @__PURE__ */ i(c, { indent: 3, className: h({ [N.nonClickable]: n }), children: [
|
|
355
|
+
r,
|
|
356
|
+
/* @__PURE__ */ e(g, { num: 2 })
|
|
358
357
|
] }),
|
|
359
358
|
n && /* @__PURE__ */ e(
|
|
360
359
|
"button",
|
|
361
360
|
{
|
|
362
361
|
onClick: n,
|
|
363
|
-
className:
|
|
362
|
+
className: N.clickable,
|
|
364
363
|
"aria-label": t
|
|
365
364
|
}
|
|
366
365
|
)
|
|
367
366
|
]
|
|
368
367
|
}
|
|
369
|
-
),
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
label: tn,
|
|
375
|
-
contentLeft: on,
|
|
376
|
-
contentRight: rn,
|
|
377
|
-
content: an,
|
|
378
|
-
groupHeading: cn,
|
|
379
|
-
contentEnter: ln,
|
|
380
|
-
contentEnterActive: sn,
|
|
381
|
-
contentExitDone: un
|
|
382
|
-
}, V = () => /* @__PURE__ */ i(g, { indent: !0, spacing: !0, flex: 1, alignItems: "center", children: [
|
|
383
|
-
/* @__PURE__ */ e(O, { icon: me, color: b("--lhds-color-ui-500") }),
|
|
384
|
-
/* @__PURE__ */ e(f, {}),
|
|
385
|
-
/* @__PURE__ */ e(y, { size: "small", color: b("--lhds-color-ui-500"), children: "No content" })
|
|
386
|
-
] }), le = ({ contentLeft: n, contentRight: t, className: o, children: r, ...a }) => /* @__PURE__ */ i("div", { className: p(u.content, o), ...a, children: [
|
|
387
|
-
n && /* @__PURE__ */ e("div", { className: u.contentLeft, children: n }),
|
|
388
|
-
r != null ? r : /* @__PURE__ */ e(V, {}),
|
|
389
|
-
t && /* @__PURE__ */ e("div", { className: u.contentRight, children: t })
|
|
390
|
-
] }), dn = (n) => {
|
|
391
|
-
const t = parseFloat(n), o = n.match(/m?s/);
|
|
392
|
-
switch (o == null ? void 0 : o[0]) {
|
|
393
|
-
case "s":
|
|
394
|
-
return t * 1e3;
|
|
395
|
-
case "ms":
|
|
396
|
-
return t;
|
|
397
|
-
default:
|
|
398
|
-
return 0;
|
|
399
|
-
}
|
|
400
|
-
}, hn = Ne(
|
|
368
|
+
), We = () => /* @__PURE__ */ i(p, { indent: !0, spacing: !0, flex: 1, alignItems: "center", children: [
|
|
369
|
+
/* @__PURE__ */ e(J, { icon: se, color: m("--lhds-color-ui-500") }),
|
|
370
|
+
/* @__PURE__ */ e(g, {}),
|
|
371
|
+
/* @__PURE__ */ e(x, { size: "small", color: m("--lhds-color-ui-500"), children: "No content" })
|
|
372
|
+
] }), Ge = Ce(
|
|
401
373
|
function({
|
|
402
374
|
label: t,
|
|
403
|
-
contentLeft:
|
|
404
|
-
contentRight:
|
|
375
|
+
contentLeft: r,
|
|
376
|
+
contentRight: o,
|
|
405
377
|
collapsed: a = !1,
|
|
406
|
-
onClick:
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
iconSize: M = 16,
|
|
414
|
-
children: m,
|
|
415
|
-
autoFocus: A = !1,
|
|
416
|
-
...N
|
|
417
|
-
}, H) {
|
|
418
|
-
const w = re.useRef(null), P = w.current ? dn(
|
|
419
|
-
getComputedStyle(w.current).getPropertyValue(
|
|
420
|
-
"--swui-collapsible-animation-time"
|
|
421
|
-
)
|
|
422
|
-
) : void 0;
|
|
423
|
-
return /* @__PURE__ */ i(
|
|
424
|
-
"div",
|
|
378
|
+
onClick: l,
|
|
379
|
+
disabled: d = !1,
|
|
380
|
+
children: u,
|
|
381
|
+
autoFocus: b = !1
|
|
382
|
+
}, _) {
|
|
383
|
+
return /* @__PURE__ */ e(
|
|
384
|
+
F,
|
|
425
385
|
{
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
onClick: c,
|
|
438
|
-
disabled: h,
|
|
439
|
-
autoFocus: A,
|
|
440
|
-
ref: H,
|
|
441
|
-
children: [
|
|
442
|
-
o && /* @__PURE__ */ e("div", { className: u.contentLeft, children: o }),
|
|
443
|
-
/* @__PURE__ */ e("div", { className: u.label, children: /* @__PURE__ */ e(
|
|
444
|
-
y,
|
|
445
|
-
{
|
|
446
|
-
color: "var(--swui-collapsible-header-text-color)",
|
|
447
|
-
className: u.headerText,
|
|
448
|
-
children: t
|
|
449
|
-
}
|
|
450
|
-
) }),
|
|
451
|
-
r && /* @__PURE__ */ e("div", { className: u.contentRight, children: r }),
|
|
452
|
-
/* @__PURE__ */ e(
|
|
453
|
-
O,
|
|
454
|
-
{
|
|
455
|
-
icon: a ? j : F,
|
|
456
|
-
className: u.indicator,
|
|
457
|
-
size: M,
|
|
458
|
-
fixedWidth: !0
|
|
459
|
-
}
|
|
460
|
-
)
|
|
461
|
-
]
|
|
462
|
-
}
|
|
463
|
-
),
|
|
464
|
-
/* @__PURE__ */ e(
|
|
465
|
-
Ee,
|
|
466
|
-
{
|
|
467
|
-
in: !a,
|
|
468
|
-
timeout: {
|
|
469
|
-
enter: P
|
|
470
|
-
},
|
|
471
|
-
classNames: {
|
|
472
|
-
enter: u.contentEnter,
|
|
473
|
-
enterActive: u.contentEnterActive,
|
|
474
|
-
exit: u.contentExit,
|
|
475
|
-
exitActive: u.contentExitActive,
|
|
476
|
-
exitDone: u.contentExitDone
|
|
477
|
-
},
|
|
478
|
-
mountOnEnter: k,
|
|
479
|
-
unmountOnExit: _,
|
|
480
|
-
children: /* @__PURE__ */ e("div", { role: "region", children: m != null ? m : /* @__PURE__ */ e(le, { children: /* @__PURE__ */ e(V, {}) }) })
|
|
481
|
-
}
|
|
482
|
-
)
|
|
483
|
-
]
|
|
386
|
+
autoFocus: b,
|
|
387
|
+
ref: _,
|
|
388
|
+
label: t,
|
|
389
|
+
onClick: l,
|
|
390
|
+
disabled: d,
|
|
391
|
+
expandable: !0,
|
|
392
|
+
expanded: !a,
|
|
393
|
+
selected: !a,
|
|
394
|
+
left: r,
|
|
395
|
+
right: o,
|
|
396
|
+
children: u != null ? u : /* @__PURE__ */ e(We, {})
|
|
484
397
|
}
|
|
485
398
|
);
|
|
486
399
|
}
|
|
487
|
-
),
|
|
400
|
+
), In = ({
|
|
401
|
+
children: n
|
|
402
|
+
}) => /* @__PURE__ */ e(p, { gap: 1, children: n }), wn = ({
|
|
488
403
|
value: n,
|
|
489
404
|
onValueChange: t,
|
|
490
|
-
onChange:
|
|
491
|
-
indeterminate:
|
|
405
|
+
onChange: r,
|
|
406
|
+
indeterminate: o,
|
|
492
407
|
checkboxDisabled: a,
|
|
493
|
-
...
|
|
408
|
+
...l
|
|
494
409
|
}) => /* @__PURE__ */ e(
|
|
495
|
-
|
|
410
|
+
Ge,
|
|
496
411
|
{
|
|
497
412
|
contentLeft: /* @__PURE__ */ e(
|
|
498
|
-
|
|
413
|
+
X,
|
|
499
414
|
{
|
|
500
415
|
value: n,
|
|
501
|
-
indeterminate:
|
|
416
|
+
indeterminate: o,
|
|
502
417
|
onValueChange: t,
|
|
503
|
-
onChange:
|
|
418
|
+
onChange: r,
|
|
504
419
|
disabled: a,
|
|
505
420
|
onClick: (d) => d.stopPropagation()
|
|
506
421
|
}
|
|
507
422
|
),
|
|
508
|
-
...
|
|
423
|
+
...l
|
|
509
424
|
}
|
|
510
|
-
),
|
|
511
|
-
ie,
|
|
512
|
-
{
|
|
513
|
-
disableFocusHighlight: !0,
|
|
514
|
-
disableOpacityOnClick: !0,
|
|
515
|
-
className: p(u.content, o),
|
|
516
|
-
onClick: r,
|
|
517
|
-
...c,
|
|
518
|
-
children: [
|
|
519
|
-
n && /* @__PURE__ */ e("div", { className: u.contentLeft, children: n }),
|
|
520
|
-
a != null ? a : /* @__PURE__ */ e(V, {}),
|
|
521
|
-
t && /* @__PURE__ */ e("div", { className: u.contentRight, children: t })
|
|
522
|
-
]
|
|
523
|
-
}
|
|
524
|
-
), qn = ({ className: n, ...t }) => /* @__PURE__ */ e(
|
|
525
|
-
le,
|
|
526
|
-
{
|
|
527
|
-
className: p(u.groupHeading, n),
|
|
528
|
-
...t
|
|
529
|
-
}
|
|
530
|
-
), pn = ({
|
|
425
|
+
), jn = ({ children: n }) => /* @__PURE__ */ e(c, { spacing: !0, indent: !0, children: /* @__PURE__ */ e(x, { variant: "overline", size: "smaller", children: n }) }), Je = ({
|
|
531
426
|
text: n = "Something unexpected happened."
|
|
532
|
-
}) => /* @__PURE__ */ e(
|
|
533
|
-
|
|
427
|
+
}) => /* @__PURE__ */ e(c, { justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ e(ue, { variant: "error", headerText: n }) }), Mn = (n) => /* @__PURE__ */ e(
|
|
428
|
+
c,
|
|
534
429
|
{
|
|
535
430
|
width: "100%",
|
|
536
431
|
height: "100%",
|
|
537
432
|
justifyContent: "center",
|
|
538
433
|
alignItems: "center",
|
|
539
|
-
children: /* @__PURE__ */ e(
|
|
434
|
+
children: /* @__PURE__ */ e(Je, { ...n })
|
|
540
435
|
}
|
|
541
|
-
),
|
|
436
|
+
), Ke = ({
|
|
542
437
|
text: n = "Loading..."
|
|
543
|
-
}) => /* @__PURE__ */ i(
|
|
544
|
-
/* @__PURE__ */ e(
|
|
545
|
-
/* @__PURE__ */ e(
|
|
546
|
-
/* @__PURE__ */ e(
|
|
547
|
-
] }),
|
|
548
|
-
|
|
438
|
+
}) => /* @__PURE__ */ i(c, { alignItems: "center", children: [
|
|
439
|
+
/* @__PURE__ */ e(de, { size: "small" }),
|
|
440
|
+
/* @__PURE__ */ e(g, { num: 4 }),
|
|
441
|
+
/* @__PURE__ */ e(P, { variant: "h4", children: n })
|
|
442
|
+
] }), Nn = (n) => /* @__PURE__ */ e(
|
|
443
|
+
c,
|
|
549
444
|
{
|
|
550
445
|
width: "100%",
|
|
551
446
|
height: "100%",
|
|
552
447
|
justifyContent: "center",
|
|
553
448
|
alignItems: "center",
|
|
554
|
-
children: /* @__PURE__ */ e(
|
|
449
|
+
children: /* @__PURE__ */ e(Ke, { ...n })
|
|
555
450
|
}
|
|
556
|
-
),
|
|
451
|
+
), Sn = ({
|
|
557
452
|
renderBreadCrumbs: n,
|
|
558
453
|
renderPageHeading: t,
|
|
559
|
-
renderTabs:
|
|
560
|
-
children:
|
|
561
|
-
}) => /* @__PURE__ */ i(
|
|
562
|
-
/* @__PURE__ */ i(
|
|
563
|
-
n && /* @__PURE__ */ i(
|
|
564
|
-
/* @__PURE__ */ e(
|
|
454
|
+
renderTabs: r,
|
|
455
|
+
children: o
|
|
456
|
+
}) => /* @__PURE__ */ i(c, { shadow: "bottom", background: m("--lhds-color-ui-50"), gap: 2, children: [
|
|
457
|
+
/* @__PURE__ */ i(c, { indent: 3, children: [
|
|
458
|
+
n && /* @__PURE__ */ i(s, { spacing: 1, alignItems: "center", children: [
|
|
459
|
+
/* @__PURE__ */ e(s, { width: "64px", height: "16px" }),
|
|
565
460
|
n()
|
|
566
461
|
] }),
|
|
567
462
|
t == null ? void 0 : t(),
|
|
568
|
-
|
|
569
|
-
|
|
463
|
+
r && /* @__PURE__ */ e(g, {}),
|
|
464
|
+
r == null ? void 0 : r()
|
|
570
465
|
] }),
|
|
571
|
-
|
|
572
|
-
] }),
|
|
466
|
+
o
|
|
467
|
+
] }), Fn = (n) => /* @__PURE__ */ e(s, { indent: 3, spacing: !0, ...n }), Rn = ({
|
|
573
468
|
icon: n,
|
|
574
469
|
heading: t,
|
|
575
|
-
headingLevel:
|
|
576
|
-
contentLeft:
|
|
470
|
+
headingLevel: r = "h2",
|
|
471
|
+
contentLeft: o,
|
|
577
472
|
contentRight: a
|
|
578
|
-
}) => /* @__PURE__ */ i(
|
|
579
|
-
/* @__PURE__ */ i(
|
|
580
|
-
/* @__PURE__ */ e(
|
|
581
|
-
/* @__PURE__ */ e(
|
|
473
|
+
}) => /* @__PURE__ */ i(s, { alignItems: "center", gap: 2, height: "64px", children: [
|
|
474
|
+
/* @__PURE__ */ i(s, { alignItems: "center", children: [
|
|
475
|
+
/* @__PURE__ */ e(s, { width: "64px", alignItems: "center", children: n && /* @__PURE__ */ e(he, { icon: n }) }),
|
|
476
|
+
/* @__PURE__ */ e(P, { variant: "h3", as: r, children: t })
|
|
582
477
|
] }),
|
|
583
|
-
/* @__PURE__ */ e(
|
|
584
|
-
/* @__PURE__ */ e(
|
|
585
|
-
] }),
|
|
586
|
-
sidebarMenu:
|
|
587
|
-
},
|
|
588
|
-
stenaFlag:
|
|
589
|
-
},
|
|
590
|
-
|
|
478
|
+
/* @__PURE__ */ e(s, { alignItems: "center", children: o }),
|
|
479
|
+
/* @__PURE__ */ e(s, { style: { marginLeft: "auto" }, alignItems: "center", children: a })
|
|
480
|
+
] }), Qe = "_sidebarMenu_1jqed_1", q = {
|
|
481
|
+
sidebarMenu: Qe
|
|
482
|
+
}, Xe = "_stenaFlag_108h7_1", Ye = {
|
|
483
|
+
stenaFlag: Xe
|
|
484
|
+
}, Ze = ({ onClick: n }) => /* @__PURE__ */ i(
|
|
485
|
+
s,
|
|
591
486
|
{
|
|
592
487
|
justifyContent: "space-between",
|
|
593
488
|
alignItems: "center",
|
|
@@ -595,68 +490,68 @@ const U = ({
|
|
|
595
490
|
indent: 1,
|
|
596
491
|
minHeight: "48px",
|
|
597
492
|
children: [
|
|
598
|
-
/* @__PURE__ */ e(
|
|
599
|
-
/* @__PURE__ */ e(
|
|
493
|
+
/* @__PURE__ */ e(v, { leftIcon: K, onClick: n, variant: "danger" }),
|
|
494
|
+
/* @__PURE__ */ e(pe, { className: Ye.stenaFlag })
|
|
600
495
|
]
|
|
601
496
|
}
|
|
602
|
-
),
|
|
497
|
+
), en = ({
|
|
603
498
|
isPinned: n,
|
|
604
499
|
onClick: t,
|
|
605
|
-
label:
|
|
500
|
+
label: r
|
|
606
501
|
}) => {
|
|
607
|
-
const
|
|
608
|
-
return /* @__PURE__ */ e(
|
|
609
|
-
},
|
|
502
|
+
const o = n ? "Unpin menu" : "Pin menu", a = r != null ? r : o;
|
|
503
|
+
return /* @__PURE__ */ e(F, { onClick: t, label: a, leftIcon: n ? Q : ge });
|
|
504
|
+
}, Pn = ({
|
|
610
505
|
className: n,
|
|
611
506
|
children: t,
|
|
612
|
-
onCloseClick:
|
|
613
|
-
variant:
|
|
507
|
+
onCloseClick: r,
|
|
508
|
+
variant: o = "standard",
|
|
614
509
|
pinButtonVisible: a,
|
|
615
|
-
onClickPinButton:
|
|
510
|
+
onClickPinButton: l,
|
|
616
511
|
isPinned: d,
|
|
617
|
-
...
|
|
512
|
+
...u
|
|
618
513
|
}) => /* @__PURE__ */ i(
|
|
619
|
-
|
|
514
|
+
c,
|
|
620
515
|
{
|
|
621
516
|
indent: 1,
|
|
622
|
-
className:
|
|
517
|
+
className: h(q.sidebarMenu, n),
|
|
623
518
|
style: {
|
|
624
519
|
["--swui-sidebar-menu-item-height"]: "40px"
|
|
625
520
|
},
|
|
626
|
-
...
|
|
521
|
+
...u,
|
|
627
522
|
children: [
|
|
628
|
-
/* @__PURE__ */ e(
|
|
629
|
-
/* @__PURE__ */ e(
|
|
523
|
+
/* @__PURE__ */ e(g, { num: 1 }),
|
|
524
|
+
/* @__PURE__ */ e(Ze, { onClick: r }),
|
|
630
525
|
/* @__PURE__ */ e(
|
|
631
|
-
|
|
526
|
+
c,
|
|
632
527
|
{
|
|
633
|
-
className:
|
|
528
|
+
className: q.sidebarMenuContent,
|
|
634
529
|
height: "100%",
|
|
635
530
|
background: "var(--current-background-color)",
|
|
636
|
-
children: /* @__PURE__ */ i(
|
|
637
|
-
/* @__PURE__ */ e(
|
|
638
|
-
a && /* @__PURE__ */ i(
|
|
531
|
+
children: /* @__PURE__ */ i(p, { justifyContent: "space-between", flex: 1, gap: 1, children: [
|
|
532
|
+
/* @__PURE__ */ e(p, { gap: 1, children: t }),
|
|
533
|
+
a && /* @__PURE__ */ i(p, { children: [
|
|
639
534
|
/* @__PURE__ */ e(
|
|
640
|
-
|
|
535
|
+
en,
|
|
641
536
|
{
|
|
642
537
|
isPinned: d,
|
|
643
|
-
onClick:
|
|
538
|
+
onClick: l
|
|
644
539
|
}
|
|
645
540
|
),
|
|
646
|
-
/* @__PURE__ */ e(
|
|
541
|
+
/* @__PURE__ */ e(g, {})
|
|
647
542
|
] })
|
|
648
543
|
] })
|
|
649
544
|
}
|
|
650
545
|
)
|
|
651
546
|
]
|
|
652
547
|
}
|
|
653
|
-
),
|
|
548
|
+
), z = xe(!1), A = () => _e(z), Ln = ({
|
|
654
549
|
closeButtonVisible: n,
|
|
655
550
|
onClickCloseButton: t,
|
|
656
|
-
onClickMenuButton:
|
|
657
|
-
children:
|
|
551
|
+
onClickMenuButton: r,
|
|
552
|
+
children: o
|
|
658
553
|
}) => /* @__PURE__ */ i(
|
|
659
|
-
|
|
554
|
+
c,
|
|
660
555
|
{
|
|
661
556
|
position: "fixed",
|
|
662
557
|
left: 0,
|
|
@@ -666,37 +561,37 @@ const U = ({
|
|
|
666
561
|
spacing: 1,
|
|
667
562
|
gap: 1,
|
|
668
563
|
shadow: "popover",
|
|
669
|
-
background:
|
|
564
|
+
background: m("--lhds-color-ui-50"),
|
|
670
565
|
children: [
|
|
671
|
-
/* @__PURE__ */ e(
|
|
672
|
-
/* @__PURE__ */ i(
|
|
673
|
-
/* @__PURE__ */ e(
|
|
566
|
+
/* @__PURE__ */ e(S, { onClick: r, icon: G }),
|
|
567
|
+
/* @__PURE__ */ i(p, { justifyContent: "space-between", flex: 1, gap: 1, children: [
|
|
568
|
+
/* @__PURE__ */ e(p, { gap: 1, children: /* @__PURE__ */ e(z.Provider, { value: !0, children: o }) }),
|
|
674
569
|
n && /* @__PURE__ */ e(
|
|
675
|
-
|
|
570
|
+
S,
|
|
676
571
|
{
|
|
677
|
-
icon:
|
|
572
|
+
icon: Q,
|
|
678
573
|
onClick: t
|
|
679
574
|
}
|
|
680
575
|
)
|
|
681
576
|
] })
|
|
682
577
|
]
|
|
683
578
|
}
|
|
684
|
-
),
|
|
579
|
+
), nn = ({
|
|
685
580
|
label: n
|
|
686
|
-
}) =>
|
|
687
|
-
/* @__PURE__ */ e(
|
|
688
|
-
/* @__PURE__ */ e(
|
|
689
|
-
] }),
|
|
581
|
+
}) => A() ? null : /* @__PURE__ */ i(c, { height: "32px", justifyContent: "center", indent: 1, children: [
|
|
582
|
+
/* @__PURE__ */ e(g, {}),
|
|
583
|
+
/* @__PURE__ */ e(x, { variant: "overline", size: "smaller", children: n })
|
|
584
|
+
] }), tn = ({
|
|
690
585
|
label: n,
|
|
691
586
|
leftIcon: t,
|
|
692
|
-
...
|
|
693
|
-
}) => t == null ? null : /* @__PURE__ */ e(
|
|
587
|
+
...r
|
|
588
|
+
}) => t == null ? null : /* @__PURE__ */ e(Ie, { label: n, placement: "right", appendTo: document.body, children: /* @__PURE__ */ e(me, { icon: t, ...r }) }), zn = (n) => A() ? /* @__PURE__ */ e(tn, { ...n }) : /* @__PURE__ */ e(fe, { ...n }), rn = ({
|
|
694
589
|
children: n,
|
|
695
590
|
label: t,
|
|
696
|
-
icon:
|
|
697
|
-
popupMinWidth:
|
|
591
|
+
icon: r,
|
|
592
|
+
popupMinWidth: o = "200px"
|
|
698
593
|
}) => /* @__PURE__ */ e(
|
|
699
|
-
|
|
594
|
+
j,
|
|
700
595
|
{
|
|
701
596
|
appendTo: "parent",
|
|
702
597
|
arrow: !1,
|
|
@@ -706,117 +601,115 @@ const U = ({
|
|
|
706
601
|
disablePadding: !0,
|
|
707
602
|
lazy: !0,
|
|
708
603
|
content: /* @__PURE__ */ e(
|
|
709
|
-
|
|
604
|
+
c,
|
|
710
605
|
{
|
|
711
|
-
minWidth:
|
|
606
|
+
minWidth: o,
|
|
712
607
|
shadow: "popover",
|
|
713
608
|
spacing: 1,
|
|
714
609
|
indent: 1,
|
|
715
610
|
gap: 2,
|
|
716
|
-
children: /* @__PURE__ */ i(
|
|
717
|
-
/* @__PURE__ */ e(
|
|
611
|
+
children: /* @__PURE__ */ i(z.Provider, { value: !1, children: [
|
|
612
|
+
/* @__PURE__ */ e(nn, { label: t }),
|
|
718
613
|
n
|
|
719
614
|
] })
|
|
720
615
|
}
|
|
721
616
|
),
|
|
722
|
-
children: /* @__PURE__ */ e(
|
|
617
|
+
children: /* @__PURE__ */ e(S, { icon: r })
|
|
723
618
|
}
|
|
724
|
-
),
|
|
619
|
+
), An = ({
|
|
725
620
|
children: n,
|
|
726
621
|
label: t,
|
|
727
|
-
leftIcon:
|
|
728
|
-
className:
|
|
622
|
+
leftIcon: r,
|
|
623
|
+
className: o,
|
|
729
624
|
initialExpand: a = !1
|
|
730
625
|
}) => {
|
|
731
|
-
const [
|
|
732
|
-
return
|
|
733
|
-
|
|
626
|
+
const [l, d] = ye(a);
|
|
627
|
+
return A() ? r == null ? null : /* @__PURE__ */ e(rn, { label: t, icon: r, children: n }) : /* @__PURE__ */ e(
|
|
628
|
+
F,
|
|
734
629
|
{
|
|
735
630
|
label: t,
|
|
736
|
-
onClick: () => d(!
|
|
737
|
-
leftIcon:
|
|
738
|
-
className:
|
|
631
|
+
onClick: () => d(!l),
|
|
632
|
+
leftIcon: r,
|
|
633
|
+
className: o,
|
|
739
634
|
expandable: !0,
|
|
740
|
-
expanded:
|
|
741
|
-
selected:
|
|
635
|
+
expanded: l,
|
|
636
|
+
selected: l,
|
|
742
637
|
children: n
|
|
743
638
|
}
|
|
744
639
|
);
|
|
745
|
-
},
|
|
746
|
-
|
|
640
|
+
}, Hn = (n) => /* @__PURE__ */ e(
|
|
641
|
+
ke,
|
|
747
642
|
{
|
|
748
|
-
color:
|
|
643
|
+
color: m("--lhds-color-ui-400"),
|
|
749
644
|
...n
|
|
750
645
|
}
|
|
751
|
-
),
|
|
646
|
+
), on = `1px solid ${m("--lhds-color-orange-400")}`, En = ({
|
|
752
647
|
numItemsSelected: n,
|
|
753
648
|
label: t,
|
|
754
|
-
afterLabelContent:
|
|
755
|
-
rightContent:
|
|
649
|
+
afterLabelContent: r,
|
|
650
|
+
rightContent: o
|
|
756
651
|
}) => /* @__PURE__ */ i(
|
|
757
|
-
|
|
652
|
+
s,
|
|
758
653
|
{
|
|
759
654
|
indent: 3,
|
|
760
655
|
spacing: !0,
|
|
761
656
|
minHeight: "56px",
|
|
762
657
|
justifyContent: "space-between",
|
|
763
658
|
alignItems: "center",
|
|
764
|
-
borderTop:
|
|
765
|
-
background:
|
|
659
|
+
borderTop: on,
|
|
660
|
+
background: m("--lhds-color-orange-50"),
|
|
766
661
|
children: [
|
|
767
|
-
/* @__PURE__ */ i(
|
|
768
|
-
n != null || t != null ? /* @__PURE__ */ e(
|
|
769
|
-
/* @__PURE__ */ e(
|
|
770
|
-
/* @__PURE__ */ e(
|
|
771
|
-
/* @__PURE__ */ i(
|
|
662
|
+
/* @__PURE__ */ i(s, { alignItems: "center", children: [
|
|
663
|
+
n != null || t != null ? /* @__PURE__ */ e(f, { children: n != null ? /* @__PURE__ */ i(f, { children: [
|
|
664
|
+
/* @__PURE__ */ e(x, { variant: "bold", children: n }),
|
|
665
|
+
/* @__PURE__ */ e(g, {}),
|
|
666
|
+
/* @__PURE__ */ i(x, { children: [
|
|
772
667
|
"item",
|
|
773
668
|
n === 1 ? "" : "s",
|
|
774
669
|
" selected"
|
|
775
670
|
] })
|
|
776
|
-
] }) : t != null ? /* @__PURE__ */ e(
|
|
777
|
-
|
|
778
|
-
/* @__PURE__ */ e(
|
|
779
|
-
/* @__PURE__ */ e(
|
|
671
|
+
] }) : t != null ? /* @__PURE__ */ e(f, { children: typeof t == "string" ? /* @__PURE__ */ e(x, { children: t }) : t }) : null }) : null,
|
|
672
|
+
r ? /* @__PURE__ */ i(f, { children: [
|
|
673
|
+
/* @__PURE__ */ e(C, {}),
|
|
674
|
+
/* @__PURE__ */ e(c, { children: r })
|
|
780
675
|
] }) : null
|
|
781
676
|
] }),
|
|
782
|
-
/* @__PURE__ */ e(
|
|
677
|
+
/* @__PURE__ */ e(c, { children: o })
|
|
783
678
|
]
|
|
784
679
|
}
|
|
785
680
|
);
|
|
786
681
|
export {
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
Un as Toast,
|
|
820
|
-
dn as mapCSSTime
|
|
682
|
+
je as ActionMenuFlatButton,
|
|
683
|
+
gn as ActionMenuPrimaryButton,
|
|
684
|
+
mn as ActionMenuSecondaryButton,
|
|
685
|
+
fn as CheckboxMenu,
|
|
686
|
+
Ge as Collapsible,
|
|
687
|
+
We as CollapsibleEmptyContent,
|
|
688
|
+
jn as CollapsibleGroupHeading,
|
|
689
|
+
In as CollapsibleList,
|
|
690
|
+
wn as CollapsibleWithCheckbox,
|
|
691
|
+
Je as ErrorPanel,
|
|
692
|
+
Mn as ErrorScreen,
|
|
693
|
+
Ke as LoadingPanel,
|
|
694
|
+
Nn as LoadingScreen,
|
|
695
|
+
bn as NavBar,
|
|
696
|
+
Le as NavBarButton,
|
|
697
|
+
vn as NavBarHeading,
|
|
698
|
+
Cn as NavBarNotificationButton,
|
|
699
|
+
Bn as NavBarPopoverButton,
|
|
700
|
+
xn as NavBarSearchField,
|
|
701
|
+
_n as NavBarUserButton,
|
|
702
|
+
yn as Notification,
|
|
703
|
+
Sn as PageHeader,
|
|
704
|
+
Fn as PageHeaderRow,
|
|
705
|
+
Rn as PageHeading,
|
|
706
|
+
En as SelectedItemsActionsPanel,
|
|
707
|
+
Pn as SidebarMenu,
|
|
708
|
+
An as SidebarMenuCollapsible,
|
|
709
|
+
nn as SidebarMenuHeading,
|
|
710
|
+
zn as SidebarMenuLink,
|
|
711
|
+
Hn as SidebarMenuSeparator,
|
|
712
|
+
Ln as SidebarRailMenu,
|
|
713
|
+
kn as Toast
|
|
821
714
|
};
|
|
822
715
|
//# sourceMappingURL=index.es.js.map
|