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