@stenajs-webui/panels 17.13.2 → 17.14.0

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/index.es.js CHANGED
@@ -1,1106 +1,981 @@
1
- (function(){ try {var elementStyle = document.createElement('style'); elementStyle.appendChild(document.createTextNode("._navBar_1qp30_1{--swui-navbar-background-color: var(--lhds-color-blue-500);--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 );background-color:var(--swui-navbar-background-color)}._sidebarMenuButton_1x4z8_1{--swui-nav-bar-side-menu-button-text-color: var(--lhds-color-ui-50);--swui-nav-bar-side-menu-button-background-color: var(--lhds-color-blue-500);--swui-nav-bar-side-menu-button-background-color-hover: var( --lhds-color-blue-600 );--swui-nav-bar-side-menu-button-background-color-focus: var( --lhds-color-blue-600 );--swui-nav-bar-side-menu-button-background-color-active: var( --lhds-color-blue-700 );--current-background-color: var( --swui-nav-bar-side-menu-button-background-color );display:flex;align-items:center;justify-content:center;line-height:10px;background-color:var(--current-background-color);color:var(--swui-nav-bar-side-menu-button-text-color);cursor:pointer;height:var(--swui-nav-bar-height);width:var(--swui-nav-bar-height);padding:0;margin:0;box-sizing:border-box;border-radius:0;outline:none;border:none}._sidebarMenuButton_1x4z8_1:hover{--current-background-color: var( --swui-nav-bar-side-menu-button-background-color-hover )}._sidebarMenuButton_1x4z8_1:focus-visible{--current-background-color: var( --swui-nav-bar-side-menu-button-background-color-focus )}._sidebarMenuButton_1x4z8_1:active{--current-background-color: var( --swui-nav-bar-side-menu-button-background-color-active )}._sidebarMenuButton_1x4z8_1 ._icon_1x4z8_55{color:var(--swui-nav-bar-side-menu-button-text-color)}._navBarButton_1xy53_1{--swui-nav-bar-button-text-color: var(--lhds-color-ui-50);--swui-nav-bar-button-background-color: transparent;--swui-nav-bar-button-background-color-hover: var(--lhds-color-blue-900);--swui-nav-bar-button-background-color-focus: var(--lhds-color-blue-700);--swui-nav-bar-button-background-color-active: var(--lhds-color-blue-800);--swui-nav-bar-button-background-color-selected: var(--lhds-color-blue-600);--swui-nav-bar-button-background-color-selected-hover: var( --lhds-color-blue-700 );--swui-nav-bar-button-background-color-selected-focus: var( --lhds-color-blue-700 );--swui-nav-bar-button-background-color-selected-active: var( --lhds-color-blue-800 );--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_1xy53_1._selected_1xy53_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_1wchp_1{--swui-nav-bar-notification-button-text-color: var(--lhds-color-ui-50);--swui-nav-bar-notification-button-background-color: var( --lhds-color-blue-700 );--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-button-border-radius: 16px;--swui-button-border-radius-icon-only: 16px;--swui-nav-bar-notification-shake-count: 3;transition:.5s width;width:32px}._navBarNotificationButton_1wchp_1._hasCount_1wchp_60{width:56px}._navBarNotificationButton_1wchp_1._unread_1wchp_64{--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_1wchp_1._unread_1wchp_64._hasCount_1wchp_60 ._icon_1wchp_79{-webkit-transform-origin:top center;transform-origin:top center;-webkit-animation:_shake_1wchp_1 1.5s ease-in-out var(--swui-nav-bar-notification-shake-count);animation:_shake_1wchp_1 1.5s ease-in-out var(--swui-nav-bar-notification-shake-count)}@-webkit-keyframes _shake_1wchp_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_1wchp_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_4knxd_1{--swui-textinput-line-height: 2.7rem;--swui-textinput-text-color: var(--lhds-color-ui-50)}._navBarSearchFieldInput_4knxd_1:focus{--swui-textinput-text-color: var(--lhds-color-ui-800)}._navBarSearchField_4knxd_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-blue-600);--swui-textinput-border-color: transparent;--swui-textinput-border-color-hover: transparent}._navBarSearchField_4knxd_1:focus-within{--swui-textinput-text-color: var(--lhds-color-ui-800);--swui-field-text-color: var(--swui-field-text-color);--swui-textinput-icon-color: var(--lhds-color-ui-500);--swui-textinput-bg-color: var(--lhds-color-ui-50)}._navBarUserButton_1gxfr_1{--swui-nav-bar-user-button-text-color: var(--lhds-color-ui-50);--swui-nav-bar-user-button-background-color: var(--lhds-color-blue-700);--swui-nav-bar-user-button-background-color-hover: var(--lhds-color-blue-900);--swui-nav-bar-user-button-background-color-focus: var(--lhds-color-blue-700);--swui-nav-bar-user-button-background-color-active: var( --lhds-color-blue-800 );--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_1gxfr_1._initials_1gxfr_33{width:32px}._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_hch18_1{--swui-sidebar-menu-separator-color: var(--lhds-color-blue-700);--swui-sidebar-menu-text-color: var(--swui-white);--swui-sidebar-menu-icon-color: var(--swui-white);--swui-sidebar-menu-background-color: var(--lhds-color-blue-500);--swui-sidebar-menu-background-color-hover: var(--lhds-color-blue-700);--swui-sidebar-menu-background-color-focus: var(--lhds-color-blue-700);--swui-sidebar-menu-background-color-active: var(--lhds-color-blue-600);--swui-sidebar-menu-item-selected: var(--lhds-color-blue-800);--swui-sidebar-menu-content-padding: var(--swui-metrics-indent) var(--swui-metrics-indent) var(--swui-metrics-indent) 0;--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-item-selected: var(--swui-sidebar-menu-item-selected);--current-content-padding: var(--swui-sidebar-menu-content-padding);background-color:var(--current-background-color);height:100vh}._sidebarMenu_hch18_1[data-collapsed]{width:var(--swui-sidebar-menu-item-height)}._sidebarMenu_hch18_1 button{--swui-button-text-color: var(--swui-white);--swui-button-background-color-hover: var( --swui-sidebar-menu-background-color-hover )}._sidebarMenuCloseButton_1j21u_1{--swui-sidebar-menu-close-button-text-color: var(--lhds-color-ui-50);--swui-sidebar-menu-close-button-background-color: var(--lhds-color-blue-500);--swui-sidebar-menu-close-button-background-color-hover: var( --lhds-color-blue-600 );--swui-sidebar-menu-close-button-background-color-focus: var( --lhds-color-blue-600 );--swui-sidebar-menu-close-button-background-color-active: var( --lhds-color-blue-500 );--current-background-color: var( --swui-sidebar-menu-close-button-background-color );display:flex;align-items:center;justify-content:flex-start;line-height:10px;background-color:var(--current-background-color);color:var(--swui-sidebar-menu-close-button-text-color);cursor:pointer;height:var(--swui-sidebar-menu-item-height);padding:0;margin:0;box-sizing:border-box;border-radius:0;outline:none;border:none}._sidebarMenuCloseButton_1j21u_1:hover{--current-background-color: var( --swui-sidebar-menu-close-button-background-color-hover )}._sidebarMenuCloseButton_1j21u_1:focus{--current-background-color: var( --swui-sidebar-menu-close-button-background-color-focus )}._sidebarMenuCloseButton_1j21u_1:active{--current-background-color: var( --swui-sidebar-menu-close-button-background-color-active )}._sidebarMenuCloseButton_1j21u_1 ._iconWrapper_1j21u_55{justify-content:center;align-items:center;width:var(--swui-sidebar-menu-item-height);height:var(--swui-sidebar-menu-item-height)}._sidebarMenuCloseButton_1j21u_1 ._icon_1j21u_55{color:var(--swui-sidebar-menu-close-button-text-color)}._label_mnp0f_1{font-size:var(--current-text-size, var(--swui-font-size-medium));line-height:var(--current-line-height, var(--swui-line-height-medium));font-weight:var(--swui-button-font-weight);font-family:var(--swui-font-buttons);color:var(--current-text-color)}._icon_mnp0f_9{color:var(--current-text-color);font-size:1.6rem}._spinner_mnp0f_14{color:var(--current-text-color)}._leftWrapper_mnp0f_18._leftWrapper_mnp0f_18._leftWrapper_mnp0f_18._leftWrapper_mnp0f_18{width:var(--swui-sidebar-menu-item-height);margin-right:0}._button_mnp0f_23{border:0;padding:0;background:var(--current-background-color)}[data-collapsed] [aria-expanded=true] ._button_mnp0f_23,._button_mnp0f_23:hover{background:var(--current-background-color-hover)}._button_mnp0f_23:focus{outline:none}._button_mnp0f_23:focus-visible{background:var(--current-background-color-active)}._button_mnp0f_23:active{background:var(--current-background-color-active)}._button_mnp0f_23._selected_mnp0f_45{background:var(--current-item-selected)}._sidebarMenuHeading_kvpq5_1{--swui-sidebar-menu-heading-text-color: var(--lhds-color-ui-300);text-transform:uppercase}._sidebarMenuCollapsible_1jwhs_1{--swui-collapsible-header-text-color: var(--current-text-color);--swui-collapsible-header-background-color: var(--current-background-color);--swui-collapsible-header-background-color-hover: var( --current-background-color-hover );--swui-collapsible-header-background-color-active: var( --current-background-color-active );--swui-collapsible-header-indicator-color: var(--current-text-color);--swui-collapsible-header-indicator-color-collapsed: var( --current-text-color );--swui-collapsible-header-indicator-color-hover: var(--current-text-color);--swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0 0;--swui-collapsible-header-content-margin: 0;--swui-collapsible-collapsible-link-padding: var(--swui-metrics-indent) var(--swui-metrics-indent) var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 4);--swui-collapsible-header-border-color: transparent;--swui-collapsible-min-height: var(--swui-sidebar-menu-item-height)}")); document.head.appendChild(elementStyle);} catch(e) {console.error('vite-plugin-css-injected-by-js', e);} })();import { ActionMenu, ActionMenuContext, stenaAngleDown, PrimaryButton, SecondaryButton, FlatButton, stenaBell, Icon, stenaSearch, stenaUser, Banner, Spinner, ButtonContent } from "@stenajs-webui/elements";
2
- import * as React from "react";
3
- import { useRef, useMemo, forwardRef, useState } from "react";
4
- import { useBoolean, Column, Box, Row, Indent, Heading, Clickable, Text, Space, SeparatorLine, exhaustSwitchCaseElseThrow } from "@stenajs-webui/core";
5
- import { Popover } from "@stenajs-webui/tooltip";
6
- import { jsx, jsxs, Fragment } from "react/jsx-runtime";
7
- import { Checkbox, TextInput } from "@stenajs-webui/forms";
8
- import cx from "classnames";
9
- import { cssColor } from "@stenajs-webui/theme";
10
- import { formatDistance } from "date-fns";
11
- import { faChevronDown } from "@fortawesome/free-solid-svg-icons";
12
- import { faChevronUp } from "@fortawesome/free-solid-svg-icons/faChevronUp";
13
- import { CSSTransition } from "react-transition-group";
14
- import { faInbox } from "@fortawesome/free-solid-svg-icons/faInbox";
15
- const ActionMenuButton = ({
16
- renderItems,
17
- placement = "bottom",
18
- buttonComponent: Button,
19
- rightIcon = stenaAngleDown,
20
- portalTarget = "parent",
21
- zIndex,
22
- menuWidth,
23
- menuTop,
24
- onClick,
25
- disableArrow = false,
26
- ...buttonProps
1
+ (function(){"use strict";try{var o=document.createElement("style");o.appendChild(document.createTextNode('._navBar_1qp30_1{--swui-navbar-background-color: var(--lhds-color-blue-500);--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 );background-color:var(--swui-navbar-background-color)}._sidebarMenuButton_1x4z8_1{--swui-nav-bar-side-menu-button-text-color: var(--lhds-color-ui-50);--swui-nav-bar-side-menu-button-background-color: var(--lhds-color-blue-500);--swui-nav-bar-side-menu-button-background-color-hover: var( --lhds-color-blue-600 );--swui-nav-bar-side-menu-button-background-color-focus: var( --lhds-color-blue-600 );--swui-nav-bar-side-menu-button-background-color-active: var( --lhds-color-blue-700 );--current-background-color: var( --swui-nav-bar-side-menu-button-background-color );display:flex;align-items:center;justify-content:center;line-height:10px;background-color:var(--current-background-color);color:var(--swui-nav-bar-side-menu-button-text-color);cursor:pointer;height:var(--swui-nav-bar-height);width:var(--swui-nav-bar-height);padding:0;margin:0;box-sizing:border-box;border-radius:0;outline:none;border:none}._sidebarMenuButton_1x4z8_1:hover{--current-background-color: var( --swui-nav-bar-side-menu-button-background-color-hover )}._sidebarMenuButton_1x4z8_1:focus-visible{--current-background-color: var( --swui-nav-bar-side-menu-button-background-color-focus )}._sidebarMenuButton_1x4z8_1:active{--current-background-color: var( --swui-nav-bar-side-menu-button-background-color-active )}._sidebarMenuButton_1x4z8_1 ._icon_1x4z8_55{color:var(--swui-nav-bar-side-menu-button-text-color)}._navBarButton_1xy53_1{--swui-nav-bar-button-text-color: var(--lhds-color-ui-50);--swui-nav-bar-button-background-color: transparent;--swui-nav-bar-button-background-color-hover: var(--lhds-color-blue-900);--swui-nav-bar-button-background-color-focus: var(--lhds-color-blue-700);--swui-nav-bar-button-background-color-active: var(--lhds-color-blue-800);--swui-nav-bar-button-background-color-selected: var(--lhds-color-blue-600);--swui-nav-bar-button-background-color-selected-hover: var( --lhds-color-blue-700 );--swui-nav-bar-button-background-color-selected-focus: var( --lhds-color-blue-700 );--swui-nav-bar-button-background-color-selected-active: var( --lhds-color-blue-800 );--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_1xy53_1._selected_1xy53_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_1wchp_1{--swui-nav-bar-notification-button-text-color: var(--lhds-color-ui-50);--swui-nav-bar-notification-button-background-color: var( --lhds-color-blue-700 );--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-button-border-radius: 16px;--swui-button-border-radius-icon-only: 16px;--swui-nav-bar-notification-shake-count: 3;transition:.5s width;width:32px}._navBarNotificationButton_1wchp_1._hasCount_1wchp_60{width:56px}._navBarNotificationButton_1wchp_1._unread_1wchp_64{--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_1wchp_1._unread_1wchp_64._hasCount_1wchp_60 ._icon_1wchp_79{-webkit-transform-origin:top center;transform-origin:top center;-webkit-animation:_shake_1wchp_1 1.5s ease-in-out var(--swui-nav-bar-notification-shake-count);animation:_shake_1wchp_1 1.5s ease-in-out var(--swui-nav-bar-notification-shake-count)}@-webkit-keyframes _shake_1wchp_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_1wchp_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_4knxd_1{--swui-textinput-line-height: 2.7rem;--swui-textinput-text-color: var(--lhds-color-ui-50)}._navBarSearchFieldInput_4knxd_1:focus{--swui-textinput-text-color: var(--lhds-color-ui-800)}._navBarSearchField_4knxd_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-blue-600);--swui-textinput-border-color: transparent;--swui-textinput-border-color-hover: transparent}._navBarSearchField_4knxd_1:focus-within{--swui-textinput-text-color: var(--lhds-color-ui-800);--swui-field-text-color: var(--swui-field-text-color);--swui-textinput-icon-color: var(--lhds-color-ui-500);--swui-textinput-bg-color: var(--lhds-color-ui-50)}._navBarUserButton_1gxfr_1{--swui-nav-bar-user-button-text-color: var(--lhds-color-ui-50);--swui-nav-bar-user-button-background-color: var(--lhds-color-blue-700);--swui-nav-bar-user-button-background-color-hover: var(--lhds-color-blue-900);--swui-nav-bar-user-button-background-color-focus: var(--lhds-color-blue-700);--swui-nav-bar-user-button-background-color-active: var( --lhds-color-blue-800 );--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_1gxfr_1._initials_1gxfr_33{width:32px}._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_hch18_1{--swui-sidebar-menu-separator-color: var(--lhds-color-blue-700);--swui-sidebar-menu-text-color: var(--swui-white);--swui-sidebar-menu-icon-color: var(--swui-white);--swui-sidebar-menu-background-color: var(--lhds-color-blue-500);--swui-sidebar-menu-background-color-hover: var(--lhds-color-blue-700);--swui-sidebar-menu-background-color-focus: var(--lhds-color-blue-700);--swui-sidebar-menu-background-color-active: var(--lhds-color-blue-600);--swui-sidebar-menu-item-selected: var(--lhds-color-blue-800);--swui-sidebar-menu-content-padding: var(--swui-metrics-indent) var(--swui-metrics-indent) var(--swui-metrics-indent) 0;--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-item-selected: var(--swui-sidebar-menu-item-selected);--current-content-padding: var(--swui-sidebar-menu-content-padding);background-color:var(--current-background-color);height:100vh}._sidebarMenu_hch18_1[data-collapsed]{width:var(--swui-sidebar-menu-item-height)}._sidebarMenu_hch18_1 button{--swui-button-text-color: var(--swui-white);--swui-button-background-color-hover: var( --swui-sidebar-menu-background-color-hover )}._sidebarMenuCloseButton_1j21u_1{--swui-sidebar-menu-close-button-text-color: var(--lhds-color-ui-50);--swui-sidebar-menu-close-button-background-color: var(--lhds-color-blue-500);--swui-sidebar-menu-close-button-background-color-hover: var( --lhds-color-blue-600 );--swui-sidebar-menu-close-button-background-color-focus: var( --lhds-color-blue-600 );--swui-sidebar-menu-close-button-background-color-active: var( --lhds-color-blue-500 );--current-background-color: var( --swui-sidebar-menu-close-button-background-color );display:flex;align-items:center;justify-content:flex-start;line-height:10px;background-color:var(--current-background-color);color:var(--swui-sidebar-menu-close-button-text-color);cursor:pointer;height:var(--swui-sidebar-menu-item-height);padding:0;margin:0;box-sizing:border-box;border-radius:0;outline:none;border:none}._sidebarMenuCloseButton_1j21u_1:hover{--current-background-color: var( --swui-sidebar-menu-close-button-background-color-hover )}._sidebarMenuCloseButton_1j21u_1:focus{--current-background-color: var( --swui-sidebar-menu-close-button-background-color-focus )}._sidebarMenuCloseButton_1j21u_1:active{--current-background-color: var( --swui-sidebar-menu-close-button-background-color-active )}._sidebarMenuCloseButton_1j21u_1 ._iconWrapper_1j21u_55{justify-content:center;align-items:center;width:var(--swui-sidebar-menu-item-height);height:var(--swui-sidebar-menu-item-height)}._sidebarMenuCloseButton_1j21u_1 ._icon_1j21u_55{color:var(--swui-sidebar-menu-close-button-text-color)}._label_mnp0f_1{font-size:var(--current-text-size, var(--swui-font-size-medium));line-height:var(--current-line-height, var(--swui-line-height-medium));font-weight:var(--swui-button-font-weight);font-family:var(--swui-font-buttons);color:var(--current-text-color)}._icon_mnp0f_9{color:var(--current-text-color);font-size:1.6rem}._spinner_mnp0f_14{color:var(--current-text-color)}._leftWrapper_mnp0f_18._leftWrapper_mnp0f_18._leftWrapper_mnp0f_18._leftWrapper_mnp0f_18{width:var(--swui-sidebar-menu-item-height);margin-right:0}._button_mnp0f_23{border:0;padding:0;background:var(--current-background-color)}[data-collapsed] [aria-expanded=true] ._button_mnp0f_23,._button_mnp0f_23:hover{background:var(--current-background-color-hover)}._button_mnp0f_23:focus{outline:none}._button_mnp0f_23:focus-visible{background:var(--current-background-color-active)}._button_mnp0f_23:active{background:var(--current-background-color-active)}._button_mnp0f_23._selected_mnp0f_45{background:var(--current-item-selected)}._sidebarMenuHeading_kvpq5_1{--swui-sidebar-menu-heading-text-color: var(--lhds-color-ui-300);text-transform:uppercase}._sidebarMenuCollapsible_1jwhs_1{--swui-collapsible-header-text-color: var(--current-text-color);--swui-collapsible-header-background-color: var(--current-background-color);--swui-collapsible-header-background-color-hover: var( --current-background-color-hover );--swui-collapsible-header-background-color-active: var( --current-background-color-active );--swui-collapsible-header-indicator-color: var(--current-text-color);--swui-collapsible-header-indicator-color-collapsed: var( --current-text-color );--swui-collapsible-header-indicator-color-hover: var(--current-text-color);--swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0 0;--swui-collapsible-header-content-margin: 0;--swui-collapsible-collapsible-link-padding: var(--swui-metrics-indent) var(--swui-metrics-indent) var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 4);--swui-collapsible-header-border-color: transparent;--swui-collapsible-min-height: var(--swui-sidebar-menu-item-height)}')),document.head.appendChild(o)}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
+ import { ActionMenu as ne, ActionMenuContext as he, stenaAngleDown as te, PrimaryButton as pe, SecondaryButton as me, FlatButton as D, stenaBell as fe, Icon as R, stenaSearch as ge, stenaUser as be, Banner as ve, Spinner as _e, ButtonContent as Ce } from "@stenajs-webui/elements";
3
+ import * as L from "react";
4
+ import { useRef as Be, useMemo as oe, forwardRef as xe, useState as we } from "react";
5
+ import { useBoolean as U, Column as $, Box as d, Row as p, Indent as b, Heading as Z, Clickable as P, Text as C, Space as w, SeparatorLine as re, exhaustSwitchCaseElseThrow as ae } from "@stenajs-webui/core";
6
+ import { Popover as O } from "@stenajs-webui/tooltip";
7
+ import { jsx as e, jsxs as i, Fragment as m } from "react/jsx-runtime";
8
+ import { Checkbox as ie, TextInput as Ne } from "@stenajs-webui/forms";
9
+ import h from "classnames";
10
+ import { cssColor as M } from "@stenajs-webui/theme";
11
+ import { formatDistance as ye } from "date-fns";
12
+ import { faChevronDown as ke } from "@fortawesome/free-solid-svg-icons";
13
+ import { faChevronUp as Me } from "@fortawesome/free-solid-svg-icons/faChevronUp";
14
+ import { CSSTransition as Se } from "react-transition-group";
15
+ import { faInbox as Le } from "@fortawesome/free-solid-svg-icons/faInbox";
16
+ const q = ({
17
+ renderItems: n,
18
+ placement: o = "bottom",
19
+ buttonComponent: t,
20
+ rightIcon: r = te,
21
+ portalTarget: a = "parent",
22
+ zIndex: s,
23
+ menuWidth: c,
24
+ menuTop: u,
25
+ onClick: f,
26
+ disableArrow: v = !1,
27
+ ..._
27
28
  }) => {
28
- const [isOpen, open, close, toggle] = useBoolean(false);
29
- const buttonRef = useRef(null);
30
- const focusManager = {
29
+ const [B, x, g, I] = U(!1), N = Be(null), E = {
31
30
  name: "focusManager",
32
- defaultValue: true,
31
+ defaultValue: !0,
33
32
  fn({
34
- popper
33
+ popper: H
35
34
  }) {
36
- let restoreFocus = false;
37
- const closeOnEscape = (event) => {
38
- if (event.key === "Escape") {
39
- restoreFocus = true;
40
- close();
41
- }
42
- if (event.key === "Enter" || event.key === " ") {
43
- restoreFocus = true;
44
- }
35
+ let j = !1;
36
+ const K = (S) => {
37
+ S.key === "Escape" && (j = !0, g()), (S.key === "Enter" || S.key === " ") && (j = !0);
45
38
  };
46
39
  return {
47
40
  onCreate() {
48
- popper.addEventListener("keydown", closeOnEscape);
41
+ H.addEventListener("keydown", K);
49
42
  },
50
43
  onDestroy() {
51
- popper.removeEventListener("keydown", closeOnEscape);
44
+ H.removeEventListener("keydown", K);
52
45
  },
53
46
  onMount() {
54
- var _a;
55
- restoreFocus = false;
56
- (_a = popper.querySelector("button:not([disabled]), a[href]")) == null ? void 0 : _a.focus();
47
+ var S;
48
+ j = !1, (S = H.querySelector("button:not([disabled]), a[href]")) == null || S.focus();
57
49
  },
58
50
  onHide() {
59
- if (buttonRef.current && restoreFocus) {
60
- buttonRef.current.focus();
61
- }
51
+ N.current && j && N.current.focus();
62
52
  }
63
53
  };
64
54
  }
55
+ }, y = oe(() => ({
56
+ open: x,
57
+ close: g
58
+ }), [x, g]), F = (H) => {
59
+ f == null || f(H), I();
65
60
  };
66
- const contextValue = useMemo(() => ({
67
- open,
68
- close
69
- }), [open, close]);
70
- const handleClick = (event) => {
71
- onClick == null ? void 0 : onClick(event);
72
- toggle();
73
- };
74
- return /* @__PURE__ */ jsx(Popover, {
75
- disablePadding: true,
76
- visible: isOpen,
77
- onClickOutside: close,
78
- placement,
79
- content: isOpen && /* @__PURE__ */ jsx(ActionMenu, {
61
+ return /* @__PURE__ */ e(O, {
62
+ disablePadding: !0,
63
+ visible: B,
64
+ onClickOutside: g,
65
+ placement: o,
66
+ content: B && /* @__PURE__ */ e(ne, {
80
67
  variant: "outlined",
81
- width: menuWidth,
82
- top: menuTop,
83
- trapFocus: true,
84
- children: /* @__PURE__ */ jsx(ActionMenuContext.Provider, {
85
- value: contextValue,
86
- children: renderItems(close)
68
+ width: c,
69
+ top: u,
70
+ trapFocus: !0,
71
+ children: /* @__PURE__ */ e(he.Provider, {
72
+ value: y,
73
+ children: n(g)
87
74
  })
88
75
  }),
89
- arrow: false,
90
- appendTo: portalTarget,
91
- zIndex,
92
- plugins: [focusManager],
93
- lazy: true,
94
- children: /* @__PURE__ */ jsx(Button, {
95
- rightIcon: disableArrow ? void 0 : rightIcon,
96
- ...buttonProps,
97
- ref: buttonRef,
98
- onClick: handleClick
76
+ arrow: !1,
77
+ appendTo: a,
78
+ zIndex: s,
79
+ plugins: [E],
80
+ lazy: !0,
81
+ children: /* @__PURE__ */ e(t, {
82
+ rightIcon: v ? void 0 : r,
83
+ ..._,
84
+ ref: N,
85
+ onClick: F
99
86
  })
100
87
  });
101
- };
102
- const ActionMenuPrimaryButton = (props) => {
103
- return /* @__PURE__ */ jsx(ActionMenuButton, {
104
- buttonComponent: PrimaryButton,
105
- ...props
106
- });
107
- };
108
- const ActionMenuSecondaryButton = (props) => {
109
- return /* @__PURE__ */ jsx(ActionMenuButton, {
110
- buttonComponent: SecondaryButton,
111
- ...props
112
- });
113
- };
114
- const ActionMenuFlatButton = (props) => {
115
- return /* @__PURE__ */ jsx(ActionMenuButton, {
116
- buttonComponent: FlatButton,
117
- ...props
118
- });
119
- };
120
- const border = `1px solid var(--lhds-color-ui-300)`;
121
- const CheckboxMenu = ({
122
- renderMenu,
123
- ...checkboxProps
88
+ }, Vn = (n) => /* @__PURE__ */ e(q, {
89
+ buttonComponent: pe,
90
+ ...n
91
+ }), Gn = (n) => /* @__PURE__ */ e(q, {
92
+ buttonComponent: me,
93
+ ...n
94
+ }), Ie = (n) => /* @__PURE__ */ e(q, {
95
+ buttonComponent: D,
96
+ ...n
97
+ }), Ee = "1px solid var(--lhds-color-ui-300)", Jn = ({
98
+ renderMenu: n,
99
+ ...o
124
100
  }) => {
125
- const [isOpen, open, close] = useBoolean(false);
126
- return /* @__PURE__ */ jsx(Popover, {
127
- onClickOutside: close,
128
- arrow: false,
129
- visible: isOpen,
130
- disablePadding: true,
131
- content: renderMenu ? /* @__PURE__ */ jsx(Column, {
132
- children: /* @__PURE__ */ jsx(ActionMenu, {
133
- children: renderMenu(close)
101
+ const [t, r, a] = U(!1);
102
+ return /* @__PURE__ */ e(O, {
103
+ onClickOutside: a,
104
+ arrow: !1,
105
+ visible: t,
106
+ disablePadding: !0,
107
+ content: n ? /* @__PURE__ */ e($, {
108
+ children: /* @__PURE__ */ e(ne, {
109
+ children: n(a)
134
110
  })
135
111
  }) : void 0,
136
112
  placement: "bottom-start",
137
113
  variant: "outlined",
138
- children: /* @__PURE__ */ jsx(Box, {
114
+ children: /* @__PURE__ */ e(d, {
139
115
  display: "inline-block",
140
- children: /* @__PURE__ */ jsxs(Row, {
116
+ children: /* @__PURE__ */ i(p, {
141
117
  spacing: 0.5,
142
- indent: true,
118
+ indent: !0,
143
119
  alignItems: "center",
144
- border,
120
+ border: Ee,
145
121
  borderRadius: "4px",
146
- children: [/* @__PURE__ */ jsx(Checkbox, {
147
- ...checkboxProps
148
- }), /* @__PURE__ */ jsx(Indent, {
122
+ children: [/* @__PURE__ */ e(ie, {
123
+ ...o
124
+ }), /* @__PURE__ */ e(b, {
149
125
  num: 0.5
150
- }), /* @__PURE__ */ jsx(FlatButton, {
126
+ }), /* @__PURE__ */ e(D, {
151
127
  size: "small",
152
- onClick: open,
153
- leftIcon: stenaAngleDown
128
+ onClick: r,
129
+ leftIcon: te
154
130
  })]
155
131
  })
156
132
  })
157
133
  });
158
- };
159
- const navBar = "_navBar_1qp30_1";
160
- var styles$a = {
161
- navBar
162
- };
163
- const sidebarMenuButton = "_sidebarMenuButton_1x4z8_1";
164
- const icon$3 = "_icon_1x4z8_55";
165
- var styles$9 = {
166
- sidebarMenuButton,
167
- icon: icon$3
168
- };
169
- const SvgBars = (props) => /* @__PURE__ */ React.createElement("svg", {
134
+ }, Fe = "_navBar_1qp30_1", He = {
135
+ navBar: Fe
136
+ }, Ae = "_sidebarMenuButton_1x4z8_1", Re = "_icon_1x4z8_55", Q = {
137
+ sidebarMenuButton: Ae,
138
+ icon: Re
139
+ }, $e = (n) => /* @__PURE__ */ L.createElement("svg", {
170
140
  xmlns: "http://www.w3.org/2000/svg",
171
141
  width: 16,
172
142
  height: 16,
173
143
  viewBox: "0 0 24 24",
174
- ...props
175
- }, /* @__PURE__ */ React.createElement("path", {
144
+ ...n
145
+ }, /* @__PURE__ */ L.createElement("path", {
176
146
  fill: "#FFF",
177
147
  fillRule: "evenodd",
178
148
  d: "M22,5 L2,5 C2.11992373,5 2,4.85076158 2,5 L2,3 C2,3.14923842 2.11992373,3 2,3 L22,3 C21.8800763,3 22,3.14923842 22,3 L22,5 C22,4.85076158 21.8800763,5 22,5 Z M22,13 L2,13 C2.11992373,13 2,12.8507616 2,13 L2,11 C2,11.1492384 2.11992373,11 2,11 L22,11 C21.8800763,11 22,11.1492384 22,11 L22,13 C22,12.8507616 21.8800763,13 22,13 Z M22,21 L2,21 C2.11992373,21 2,20.8507616 2,21 L2,19 C2,19.1492384 2.11992373,19 2,19 L22,19 C21.8800763,19 22,19.1492384 22,19 L22,21 C22,20.8507616 21.8800763,21 22,21 Z"
179
- }));
180
- const NavBarSideMenuButton = ({
181
- className,
182
- onClick
183
- }) => {
184
- return /* @__PURE__ */ jsx("button", {
185
- onClick,
186
- className: cx(styles$9.sidebarMenuButton, className),
187
- children: /* @__PURE__ */ jsx(SvgBars, {
188
- className: styles$9.icon
189
- })
190
- });
191
- };
192
- const variantToHeight = {
149
+ })), se = ({
150
+ className: n,
151
+ onClick: o
152
+ }) => /* @__PURE__ */ e("button", {
153
+ onClick: o,
154
+ className: h(Q.sidebarMenuButton, n),
155
+ children: /* @__PURE__ */ e($e, {
156
+ className: Q.icon
157
+ })
158
+ }), je = {
193
159
  compact: 40,
194
160
  standard: 48,
195
161
  relaxed: 64
196
- };
197
- const getNavbarHeight = (variant) => variantToHeight[variant] + "px";
198
- const NavBar = ({
199
- left,
200
- className,
201
- showMenuButton = false,
202
- menuButtonVisibility = "visible",
203
- children,
204
- right,
205
- center,
206
- variant = "standard",
207
- onClickMenuButton
162
+ }, ce = (n) => je[n] + "px", Kn = ({
163
+ left: n,
164
+ className: o,
165
+ showMenuButton: t = !1,
166
+ menuButtonVisibility: r = "visible",
167
+ children: a,
168
+ right: s,
169
+ center: c,
170
+ variant: u = "standard",
171
+ onClickMenuButton: f
208
172
  }) => {
209
- const currentFlex = center ? 1 : void 0;
210
- const height = getNavbarHeight(variant);
211
- return /* @__PURE__ */ jsxs(Row, {
212
- height,
213
- minHeight: height,
173
+ const v = c ? 1 : void 0, _ = ce(u);
174
+ return /* @__PURE__ */ i(p, {
175
+ height: _,
176
+ minHeight: _,
214
177
  justifyContent: "space-between",
215
178
  style: {
216
- ["--swui-nav-bar-height"]: height
179
+ ["--swui-nav-bar-height"]: _
217
180
  },
218
- className: cx(styles$a.navBar, className),
219
- children: [/* @__PURE__ */ jsxs(Row, {
220
- flex: currentFlex,
181
+ className: h(He.navBar, o),
182
+ children: [/* @__PURE__ */ i(p, {
183
+ flex: v,
221
184
  justifyContent: "flex-start",
222
185
  alignItems: "center",
223
- children: [showMenuButton ? /* @__PURE__ */ jsxs(Fragment, {
224
- children: [menuButtonVisibility === "hidden" ? /* @__PURE__ */ jsx(Box, {
186
+ children: [t ? /* @__PURE__ */ i(m, {
187
+ children: [r === "hidden" ? /* @__PURE__ */ e(d, {
225
188
  width: "var(--swui-nav-bar-height)"
226
- }) : /* @__PURE__ */ jsx(NavBarSideMenuButton, {
227
- onClick: onClickMenuButton
228
- }), /* @__PURE__ */ jsx(Indent, {})]
229
- }) : /* @__PURE__ */ jsx(Indent, {
189
+ }) : /* @__PURE__ */ e(se, {
190
+ onClick: f
191
+ }), /* @__PURE__ */ e(b, {})]
192
+ }) : /* @__PURE__ */ e(b, {
230
193
  num: 2
231
- }), left ? /* @__PURE__ */ jsxs(Fragment, {
232
- children: [left, /* @__PURE__ */ jsx(Indent, {
194
+ }), n ? /* @__PURE__ */ i(m, {
195
+ children: [n, /* @__PURE__ */ e(b, {
233
196
  num: 2
234
197
  })]
235
- }) : /* @__PURE__ */ jsx(Indent, {
198
+ }) : /* @__PURE__ */ e(b, {
236
199
  num: 2
237
- }), children && /* @__PURE__ */ jsx(Fragment, {
238
- children: /* @__PURE__ */ jsx(Row, {
200
+ }), a && /* @__PURE__ */ e(m, {
201
+ children: /* @__PURE__ */ e(p, {
239
202
  justifyContent: "center",
240
203
  alignItems: "center",
241
- children: React.Children.map(children, (child, index) => /* @__PURE__ */ jsxs(Fragment, {
242
- children: [index > 0 && /* @__PURE__ */ jsx(Indent, {}), child]
204
+ children: L.Children.map(a, (B, x) => /* @__PURE__ */ i(m, {
205
+ children: [x > 0 && /* @__PURE__ */ e(b, {}), B]
243
206
  }))
244
207
  })
245
208
  })]
246
- }), center && /* @__PURE__ */ jsx(Row, {
209
+ }), c && /* @__PURE__ */ e(p, {
247
210
  justifyContent: "center",
248
211
  alignItems: "center",
249
- children: center
250
- }), /* @__PURE__ */ jsxs(Row, {
212
+ children: c
213
+ }), /* @__PURE__ */ i(p, {
251
214
  justifyContent: "flex-end",
252
215
  alignItems: "center",
253
- flex: currentFlex,
254
- children: [right, /* @__PURE__ */ jsx(Indent, {
216
+ flex: v,
217
+ children: [s, /* @__PURE__ */ e(b, {
255
218
  num: 2
256
219
  })]
257
220
  })]
258
221
  });
259
- };
260
- const navBarButton = "_navBarButton_1xy53_1";
261
- const selected$1 = "_selected_1xy53_36";
262
- var styles$8 = {
263
- navBarButton,
264
- selected: selected$1
265
- };
266
- const NavBarButton = ({
267
- selected: selected2,
268
- className,
269
- ...buttonProps
222
+ }, De = "_navBarButton_1xy53_1", Pe = "_selected_1xy53_36", X = {
223
+ navBarButton: De,
224
+ selected: Pe
225
+ }, Oe = ({
226
+ selected: n,
227
+ className: o,
228
+ ...t
229
+ }) => /* @__PURE__ */ e(D, {
230
+ ...t,
231
+ className: h(X.navBarButton, n && X.selected, o)
232
+ }), Qn = (n) => /* @__PURE__ */ e(Z, {
233
+ whiteSpace: "nowrap",
234
+ color: "#fff",
235
+ ...n
236
+ }), Xn = ({
237
+ content: n,
238
+ children: o,
239
+ ...t
270
240
  }) => {
271
- return /* @__PURE__ */ jsx(FlatButton, {
272
- ...buttonProps,
273
- className: cx(styles$8.navBarButton, selected2 && styles$8.selected, className)
274
- });
275
- };
276
- const NavBarHeading = (headingProps) => {
277
- return /* @__PURE__ */ jsx(Heading, {
278
- whiteSpace: "nowrap",
279
- color: "#fff",
280
- ...headingProps
281
- });
282
- };
283
- const NavBarPopoverButton = ({
284
- content: content2,
285
- children,
286
- ...navBarButtonProps
287
- }) => {
288
- const [isOpen, open, close] = useBoolean(false);
289
- return /* @__PURE__ */ jsx(Popover, {
290
- onClickOutside: close,
241
+ const [r, a, s] = U(!1);
242
+ return /* @__PURE__ */ e(O, {
243
+ onClickOutside: s,
291
244
  triggerTarget: document.body,
292
- visible: isOpen,
293
- content: /* @__PURE__ */ jsxs(Fragment, {
294
- children: [content2 && content2({
295
- close
296
- }), children]
245
+ visible: r,
246
+ content: /* @__PURE__ */ i(m, {
247
+ children: [n && n({
248
+ close: s
249
+ }), o]
297
250
  }),
298
- children: /* @__PURE__ */ jsx(NavBarButton, {
299
- ...navBarButtonProps,
300
- onClick: open
251
+ children: /* @__PURE__ */ e(Oe, {
252
+ ...t,
253
+ onClick: a
301
254
  })
302
255
  });
303
- };
304
- const navBarNotificationButton = "_navBarNotificationButton_1wchp_1";
305
- const hasCount = "_hasCount_1wchp_60";
306
- const unread = "_unread_1wchp_64";
307
- const icon$2 = "_icon_1wchp_79";
308
- const shake = "_shake_1wchp_1";
309
- var styles$7 = {
310
- navBarNotificationButton,
311
- hasCount,
312
- unread,
313
- icon: icon$2,
314
- shake
315
- };
316
- const NavBarNotificationButton = ({
317
- count,
318
- unread: unread2 = false,
319
- className,
320
- labelClassName,
321
- iconClassName,
322
- icon: icon2 = stenaBell,
323
- ...buttonProps
256
+ }, Te = "_navBarNotificationButton_1wchp_1", We = "_hasCount_1wchp_60", ze = "_unread_1wchp_64", Ue = "_icon_1wchp_79", Ze = "_shake_1wchp_1", A = {
257
+ navBarNotificationButton: Te,
258
+ hasCount: We,
259
+ unread: ze,
260
+ icon: Ue,
261
+ shake: Ze
262
+ }, Yn = ({
263
+ count: n,
264
+ unread: o = !1,
265
+ className: t,
266
+ labelClassName: r,
267
+ iconClassName: a,
268
+ icon: s = fe,
269
+ ...c
324
270
  }) => {
325
- const hasCount2 = count > 0;
326
- return /* @__PURE__ */ jsx(FlatButton, {
327
- ...buttonProps,
328
- leftIcon: icon2,
329
- className: cx({
330
- [styles$7.unread]: unread2
271
+ const u = n > 0;
272
+ return /* @__PURE__ */ e(D, {
273
+ ...c,
274
+ leftIcon: s,
275
+ className: h({
276
+ [A.unread]: o
331
277
  }, {
332
- [styles$7.hasCount]: hasCount2
333
- }, styles$7.navBarNotificationButton, className),
334
- label: hasCount2 ? String(count) : void 0,
335
- labelClassName: cx(labelClassName, styles$7.label),
336
- iconClassName: cx(iconClassName, styles$7.icon)
337
- });
338
- };
339
- const navBarSearchFieldInput = "_navBarSearchFieldInput_4knxd_1";
340
- const navBarSearchField = "_navBarSearchField_4knxd_1";
341
- var styles$6 = {
342
- navBarSearchFieldInput,
343
- navBarSearchField
344
- };
345
- const NavBarSearchField = ({
346
- placeholder = "Search...",
347
- className,
348
- wrapperClassName,
349
- ...textInputProps
350
- }) => {
351
- return /* @__PURE__ */ jsx(TextInput, {
352
- wrapperClassName: cx(styles$6.navBarSearchField, wrapperClassName),
353
- className: cx(styles$6.navBarSearchFieldInput, className),
354
- placeholder,
355
- contentRight: /* @__PURE__ */ jsx(Clickable, {
356
- children: /* @__PURE__ */ jsx(Icon, {
357
- icon: stenaSearch
358
- })
359
- }),
360
- ...textInputProps
361
- });
362
- };
363
- const navBarUserButton = "_navBarUserButton_1gxfr_1";
364
- const initials = "_initials_1gxfr_33";
365
- var styles$5 = {
366
- navBarUserButton,
367
- initials
368
- };
369
- const NavBarUserButton = ({
370
- className,
371
- username,
372
- initials: initials2,
373
- icon: icon2 = stenaUser,
374
- iconClassName,
375
- ...buttonProps
376
- }) => {
377
- return /* @__PURE__ */ jsx(ActionMenuFlatButton, {
378
- ...buttonProps,
379
- className: cx({
380
- [styles$5.initials]: initials2 != null
381
- }, styles$5.navBarUserButton, className),
382
- leftIcon: username != null ? icon2 : void 0,
383
- label: initials2 != null ? initials2 : username,
384
- disableArrow: true
385
- });
386
- };
387
- const defaultNotificationTheme = {
278
+ [A.hasCount]: u
279
+ }, A.navBarNotificationButton, t),
280
+ label: u ? String(n) : void 0,
281
+ labelClassName: h(r, A.label),
282
+ iconClassName: h(a, A.icon)
283
+ });
284
+ }, qe = "_navBarSearchFieldInput_4knxd_1", Ve = "_navBarSearchField_4knxd_1", Y = {
285
+ navBarSearchFieldInput: qe,
286
+ navBarSearchField: Ve
287
+ }, et = ({
288
+ placeholder: n = "Search...",
289
+ className: o,
290
+ wrapperClassName: t,
291
+ ...r
292
+ }) => /* @__PURE__ */ e(Ne, {
293
+ wrapperClassName: h(Y.navBarSearchField, t),
294
+ className: h(Y.navBarSearchFieldInput, o),
295
+ placeholder: n,
296
+ contentRight: /* @__PURE__ */ e(P, {
297
+ children: /* @__PURE__ */ e(R, {
298
+ icon: ge
299
+ })
300
+ }),
301
+ ...r
302
+ }), Ge = "_navBarUserButton_1gxfr_1", Je = "_initials_1gxfr_33", ee = {
303
+ navBarUserButton: Ge,
304
+ initials: Je
305
+ }, nt = ({
306
+ className: n,
307
+ username: o,
308
+ initials: t,
309
+ icon: r = be,
310
+ iconClassName: a,
311
+ ...s
312
+ }) => /* @__PURE__ */ e(Ie, {
313
+ ...s,
314
+ className: h({
315
+ [ee.initials]: t != null
316
+ }, ee.navBarUserButton, n),
317
+ leftIcon: o != null ? r : void 0,
318
+ label: t != null ? t : o,
319
+ disableArrow: !0
320
+ }), Ke = {
388
321
  notificationBg: "#eaeaea",
389
322
  notificationHoverBg: "#eeeeee",
390
323
  notificationDismissedBg: "#ffffff",
391
324
  notificationDismissedHoverBg: "#f4f4f4"
392
- };
393
- const Notification = ({
394
- onClick,
395
- icon: icon2,
396
- iconColor,
397
- title,
398
- text,
399
- content: content2,
400
- date,
401
- dismissed,
402
- theme = defaultNotificationTheme
325
+ }, tt = ({
326
+ onClick: n,
327
+ icon: o,
328
+ iconColor: t,
329
+ title: r,
330
+ text: a,
331
+ content: s,
332
+ date: c,
333
+ dismissed: u,
334
+ theme: f = Ke
403
335
  }) => {
404
- const agoLabel = useMemo(() => {
405
- if (date) {
406
- return `${formatDistance(date, new Date())} ago`;
407
- }
408
- return void 0;
409
- }, [date]);
410
- return /* @__PURE__ */ jsx(Clickable, {
411
- onClick,
336
+ const v = oe(() => {
337
+ if (c)
338
+ return `${ye(c, new Date())} ago`;
339
+ }, [c]);
340
+ return /* @__PURE__ */ e(P, {
341
+ onClick: n,
412
342
  style: {
413
343
  textAlign: "left"
414
344
  },
415
- children: /* @__PURE__ */ jsx(Box, {
416
- background: dismissed ? theme.notificationDismissedBg : theme.notificationBg,
417
- hoverBackground: dismissed ? theme.notificationDismissedHoverBg : theme.notificationHoverBg,
418
- spacing: true,
419
- indent: true,
420
- children: /* @__PURE__ */ jsxs(Row, {
345
+ children: /* @__PURE__ */ e(d, {
346
+ background: u ? f.notificationDismissedBg : f.notificationBg,
347
+ hoverBackground: u ? f.notificationDismissedHoverBg : f.notificationHoverBg,
348
+ spacing: !0,
349
+ indent: !0,
350
+ children: /* @__PURE__ */ i(p, {
421
351
  width: "250px",
422
- children: [icon2 && /* @__PURE__ */ jsx(Row, {
352
+ children: [o && /* @__PURE__ */ e(p, {
423
353
  width: "34px",
424
354
  alignItems: "center",
425
- children: /* @__PURE__ */ jsx(Icon, {
426
- icon: icon2,
427
- color: iconColor
355
+ children: /* @__PURE__ */ e(R, {
356
+ icon: o,
357
+ color: t
428
358
  })
429
- }), /* @__PURE__ */ jsxs(Column, {
359
+ }), /* @__PURE__ */ i($, {
430
360
  flex: 1,
431
- children: [title && /* @__PURE__ */ jsxs(Fragment, {
432
- children: [/* @__PURE__ */ jsx(Text, {
433
- children: title
434
- }), /* @__PURE__ */ jsx(Space, {
435
- half: true
361
+ children: [r && /* @__PURE__ */ i(m, {
362
+ children: [/* @__PURE__ */ e(C, {
363
+ children: r
364
+ }), /* @__PURE__ */ e(w, {
365
+ half: !0
436
366
  })]
437
- }), text && /* @__PURE__ */ jsxs(Fragment, {
438
- children: [/* @__PURE__ */ jsx(Text, {
367
+ }), a && /* @__PURE__ */ i(m, {
368
+ children: [/* @__PURE__ */ e(C, {
439
369
  size: "small",
440
- children: text
441
- }), /* @__PURE__ */ jsx(Space, {
442
- half: true
370
+ children: a
371
+ }), /* @__PURE__ */ e(w, {
372
+ half: !0
443
373
  })]
444
- }), content2 && /* @__PURE__ */ jsxs(Fragment, {
445
- children: [content2, /* @__PURE__ */ jsx(Space, {
446
- half: true
374
+ }), s && /* @__PURE__ */ i(m, {
375
+ children: [s, /* @__PURE__ */ e(w, {
376
+ half: !0
447
377
  })]
448
- }), /* @__PURE__ */ jsx(Text, {
378
+ }), /* @__PURE__ */ e(C, {
449
379
  size: "small",
450
- color: cssColor("--swui-text-disabled-color"),
451
- children: agoLabel
380
+ color: M("--swui-text-disabled-color"),
381
+ children: v
452
382
  })]
453
383
  })]
454
384
  })
455
385
  })
456
386
  });
457
- };
458
- const collapsible = "_collapsible_1nroa_1";
459
- const header = "_header_1nroa_46";
460
- const indicator = "_indicator_1nroa_59";
461
- const headerText = "_headerText_1nroa_103";
462
- const label$1 = "_label_1nroa_114";
463
- const contentLeft = "_contentLeft_1nroa_123";
464
- const contentRight = "_contentRight_1nroa_124";
465
- const content = "_content_1nroa_123";
466
- const groupHeading = "_groupHeading_1nroa_155";
467
- const contentEnter = "_contentEnter_1nroa_180";
468
- const contentEnterActive = "_contentEnterActive_1nroa_184";
469
- const contentExitDone = "_contentExitDone_1nroa_189";
470
- var styles$4 = {
471
- collapsible,
472
- header,
473
- indicator,
474
- headerText,
475
- label: label$1,
476
- contentLeft,
477
- contentRight,
478
- content,
479
- groupHeading,
480
- contentEnter,
481
- contentEnterActive,
482
- contentExitDone
483
- };
484
- const CollapsibleEmptyContent = () => {
485
- return /* @__PURE__ */ jsxs(Column, {
486
- indent: true,
487
- spacing: true,
488
- flex: 1,
489
- alignItems: "center",
490
- children: [/* @__PURE__ */ jsx(Icon, {
491
- icon: faInbox,
492
- color: cssColor("--lhds-color-ui-500")
493
- }), /* @__PURE__ */ jsx(Space, {}), /* @__PURE__ */ jsx(Text, {
494
- size: "small",
495
- color: cssColor("--lhds-color-ui-500"),
496
- children: "No content"
497
- })]
498
- });
499
- };
500
- const CollapsibleContent = ({
501
- contentLeft: contentLeft2,
502
- contentRight: contentRight2,
503
- className,
504
- children,
505
- ...props
506
- }) => {
507
- return /* @__PURE__ */ jsxs("div", {
508
- className: cx(styles$4.content, className),
509
- ...props,
510
- children: [contentLeft2 && /* @__PURE__ */ jsx("div", {
511
- className: styles$4.contentLeft,
512
- children: contentLeft2
513
- }), children != null ? children : /* @__PURE__ */ jsx(CollapsibleEmptyContent, {}), contentRight2 && /* @__PURE__ */ jsx("div", {
514
- className: styles$4.contentRight,
515
- children: contentRight2
516
- })]
517
- });
518
- };
519
- const mapCSSTime = (value) => {
520
- const num = parseFloat(value);
521
- const match = value.match(/m?s/);
522
- switch (match == null ? void 0 : match[0]) {
387
+ }, Qe = "_collapsible_1nroa_1", Xe = "_header_1nroa_46", Ye = "_indicator_1nroa_59", en = "_headerText_1nroa_103", nn = "_label_1nroa_114", tn = "_contentLeft_1nroa_123", on = "_contentRight_1nroa_124", rn = "_content_1nroa_123", an = "_groupHeading_1nroa_155", sn = "_contentEnter_1nroa_180", cn = "_contentEnterActive_1nroa_184", ln = "_contentExitDone_1nroa_189", l = {
388
+ collapsible: Qe,
389
+ header: Xe,
390
+ indicator: Ye,
391
+ headerText: en,
392
+ label: nn,
393
+ contentLeft: tn,
394
+ contentRight: on,
395
+ content: rn,
396
+ groupHeading: an,
397
+ contentEnter: sn,
398
+ contentEnterActive: cn,
399
+ contentExitDone: ln
400
+ }, V = () => /* @__PURE__ */ i($, {
401
+ indent: !0,
402
+ spacing: !0,
403
+ flex: 1,
404
+ alignItems: "center",
405
+ children: [/* @__PURE__ */ e(R, {
406
+ icon: Le,
407
+ color: M("--lhds-color-ui-500")
408
+ }), /* @__PURE__ */ e(w, {}), /* @__PURE__ */ e(C, {
409
+ size: "small",
410
+ color: M("--lhds-color-ui-500"),
411
+ children: "No content"
412
+ })]
413
+ }), G = ({
414
+ contentLeft: n,
415
+ contentRight: o,
416
+ className: t,
417
+ children: r,
418
+ ...a
419
+ }) => /* @__PURE__ */ i("div", {
420
+ className: h(l.content, t),
421
+ ...a,
422
+ children: [n && /* @__PURE__ */ e("div", {
423
+ className: l.contentLeft,
424
+ children: n
425
+ }), r != null ? r : /* @__PURE__ */ e(V, {}), o && /* @__PURE__ */ e("div", {
426
+ className: l.contentRight,
427
+ children: o
428
+ })]
429
+ }), dn = (n) => {
430
+ const o = parseFloat(n), t = n.match(/m?s/);
431
+ switch (t == null ? void 0 : t[0]) {
523
432
  case "s":
524
- return num * 1e3;
433
+ return o * 1e3;
525
434
  case "ms":
526
- return num;
435
+ return o;
527
436
  default:
528
437
  return 0;
529
438
  }
530
- };
531
- const Collapsible = forwardRef(function Collapsible2({
532
- label: label2,
533
- contentLeft: contentLeft2,
534
- contentRight: contentRight2,
535
- collapsed = false,
536
- onClick,
537
- className,
538
- disabled = false,
539
- unmountOnCollapse = false,
540
- mountOnEnter = true,
541
- icon: icon2 = faChevronUp,
542
- iconCollapsed = faChevronDown,
543
- iconSize = 8,
544
- children,
545
- autoFocus = false,
546
- ...divProps
547
- }, ref) {
548
- const divRef = React.useRef(null);
549
- const timeout = divRef.current ? mapCSSTime(getComputedStyle(divRef.current).getPropertyValue("--swui-collapsible-animation-time")) : void 0;
550
- return /* @__PURE__ */ jsxs("div", {
551
- className: cx(styles$4.collapsible, className),
552
- "aria-expanded": !collapsed,
553
- ref: divRef,
554
- ...divProps,
555
- children: [/* @__PURE__ */ jsxs(Clickable, {
556
- disableFocusHighlight: true,
557
- disableOpacityOnClick: true,
558
- className: styles$4.header,
559
- onClick,
560
- disabled,
561
- autoFocus,
562
- ref,
563
- children: [contentLeft2 && /* @__PURE__ */ jsx("div", {
564
- className: styles$4.contentLeft,
565
- children: contentLeft2
566
- }), /* @__PURE__ */ jsx("div", {
567
- className: styles$4.label,
568
- children: /* @__PURE__ */ jsx(Text, {
439
+ }, le = xe(function({
440
+ label: o,
441
+ contentLeft: t,
442
+ contentRight: r,
443
+ collapsed: a = !1,
444
+ onClick: s,
445
+ className: c,
446
+ disabled: u = !1,
447
+ unmountOnCollapse: f = !1,
448
+ mountOnEnter: v = !0,
449
+ icon: _ = Me,
450
+ iconCollapsed: B = ke,
451
+ iconSize: x = 8,
452
+ children: g,
453
+ autoFocus: I = !1,
454
+ ...N
455
+ }, E) {
456
+ const y = L.useRef(null), F = y.current ? dn(getComputedStyle(y.current).getPropertyValue("--swui-collapsible-animation-time")) : void 0;
457
+ return /* @__PURE__ */ i("div", {
458
+ className: h(l.collapsible, c),
459
+ "aria-expanded": !a,
460
+ ref: y,
461
+ ...N,
462
+ children: [/* @__PURE__ */ i(P, {
463
+ disableFocusHighlight: !0,
464
+ disableOpacityOnClick: !0,
465
+ className: l.header,
466
+ onClick: s,
467
+ disabled: u,
468
+ autoFocus: I,
469
+ ref: E,
470
+ children: [t && /* @__PURE__ */ e("div", {
471
+ className: l.contentLeft,
472
+ children: t
473
+ }), /* @__PURE__ */ e("div", {
474
+ className: l.label,
475
+ children: /* @__PURE__ */ e(C, {
569
476
  color: "var(--swui-collapsible-header-text-color)",
570
- className: styles$4.headerText,
571
- children: label2
477
+ className: l.headerText,
478
+ children: o
572
479
  })
573
- }), contentRight2 && /* @__PURE__ */ jsx("div", {
574
- className: styles$4.contentRight,
575
- children: contentRight2
576
- }), /* @__PURE__ */ jsx(Icon, {
577
- icon: collapsed ? iconCollapsed : icon2,
578
- className: styles$4.indicator,
579
- size: iconSize,
580
- fixedWidth: true
480
+ }), r && /* @__PURE__ */ e("div", {
481
+ className: l.contentRight,
482
+ children: r
483
+ }), /* @__PURE__ */ e(R, {
484
+ icon: a ? B : _,
485
+ className: l.indicator,
486
+ size: x,
487
+ fixedWidth: !0
581
488
  })]
582
- }), /* @__PURE__ */ jsx(CSSTransition, {
583
- in: !collapsed,
489
+ }), /* @__PURE__ */ e(Se, {
490
+ in: !a,
584
491
  timeout: {
585
- enter: timeout
492
+ enter: F
586
493
  },
587
494
  classNames: {
588
- enter: styles$4.contentEnter,
589
- enterActive: styles$4.contentEnterActive,
590
- exit: styles$4.contentExit,
591
- exitActive: styles$4.contentExitActive,
592
- exitDone: styles$4.contentExitDone
495
+ enter: l.contentEnter,
496
+ enterActive: l.contentEnterActive,
497
+ exit: l.contentExit,
498
+ exitActive: l.contentExitActive,
499
+ exitDone: l.contentExitDone
593
500
  },
594
- mountOnEnter,
595
- unmountOnExit: unmountOnCollapse,
596
- children: /* @__PURE__ */ jsx("div", {
501
+ mountOnEnter: v,
502
+ unmountOnExit: f,
503
+ children: /* @__PURE__ */ e("div", {
597
504
  role: "region",
598
- children: children != null ? children : /* @__PURE__ */ jsx(CollapsibleContent, {
599
- children: /* @__PURE__ */ jsx(CollapsibleEmptyContent, {})
505
+ children: g != null ? g : /* @__PURE__ */ e(G, {
506
+ children: /* @__PURE__ */ e(V, {})
600
507
  })
601
508
  })
602
509
  })]
603
510
  });
604
- });
605
- const CollapsibleWithCheckbox = ({
606
- value,
607
- onValueChange,
608
- onChange,
609
- indeterminate,
610
- ...collapsibleProps
611
- }) => {
612
- return /* @__PURE__ */ jsx(Collapsible, {
613
- contentLeft: /* @__PURE__ */ jsx(Checkbox, {
614
- value,
615
- indeterminate,
616
- onValueChange,
617
- onChange,
618
- onClick: (ev) => ev.stopPropagation()
619
- }),
620
- ...collapsibleProps
621
- });
622
- };
623
- const CollapsibleClickableContent = ({
624
- contentLeft: contentLeft2,
625
- contentRight: contentRight2,
626
- className,
627
- onClick,
628
- children,
629
- ...props
630
- }) => {
631
- return /* @__PURE__ */ jsxs(Clickable, {
632
- disableFocusHighlight: true,
633
- disableOpacityOnClick: true,
634
- className: cx(styles$4.content, className),
635
- onClick,
636
- ...props,
637
- children: [contentLeft2 && /* @__PURE__ */ jsx("div", {
638
- className: styles$4.contentLeft,
639
- children: contentLeft2
640
- }), children != null ? children : /* @__PURE__ */ jsx(CollapsibleEmptyContent, {}), contentRight2 && /* @__PURE__ */ jsx("div", {
641
- className: styles$4.contentRight,
642
- children: contentRight2
643
- })]
644
- });
645
- };
646
- const CollapsibleGroupHeading = ({
647
- className,
648
- ...props
649
- }) => /* @__PURE__ */ jsx(CollapsibleContent, {
650
- className: cx(styles$4.groupHeading, className),
651
- ...props
652
- });
653
- const ErrorPanel = ({
654
- text = "Something unexpected happened."
655
- }) => {
656
- return /* @__PURE__ */ jsx(Box, {
657
- justifyContent: "center",
658
- alignItems: "center",
659
- children: /* @__PURE__ */ jsx(Banner, {
660
- variant: "error",
661
- headerText: text
662
- })
663
- });
664
- };
665
- const ErrorScreen = (props) => {
666
- return /* @__PURE__ */ jsx(Box, {
667
- width: "100%",
668
- height: "100%",
669
- justifyContent: "center",
670
- alignItems: "center",
671
- children: /* @__PURE__ */ jsx(ErrorPanel, {
672
- ...props
673
- })
674
- });
675
- };
676
- const LoadingPanel = ({
677
- text = "Loading..."
678
- }) => {
679
- return /* @__PURE__ */ jsxs(Box, {
680
- alignItems: "center",
681
- children: [/* @__PURE__ */ jsx(Spinner, {
682
- size: "small"
683
- }), /* @__PURE__ */ jsx(Space, {
684
- num: 4
685
- }), /* @__PURE__ */ jsx(Heading, {
686
- variant: "h4",
687
- children: text
688
- })]
689
- });
690
- };
691
- const LoadingScreen = (props) => {
692
- return /* @__PURE__ */ jsx(Box, {
693
- width: "100%",
694
- height: "100%",
695
- justifyContent: "center",
696
- alignItems: "center",
697
- children: /* @__PURE__ */ jsx(LoadingPanel, {
698
- ...props
699
- })
700
- });
701
- };
702
- const PageHeader = ({
703
- renderBreadCrumbs,
704
- renderPageHeading,
705
- renderTabs,
706
- children
707
- }) => {
708
- return /* @__PURE__ */ jsxs(Box, {
709
- shadow: "box",
710
- background: cssColor("--lhds-color-ui-50"),
711
- children: [/* @__PURE__ */ jsxs(Box, {
712
- indent: 3,
713
- children: [renderBreadCrumbs && /* @__PURE__ */ jsx(Row, {
714
- spacing: 1.25,
715
- children: renderBreadCrumbs()
716
- }), renderPageHeading == null ? void 0 : renderPageHeading(), renderTabs == null ? void 0 : renderTabs()]
717
- }), children && /* @__PURE__ */ jsxs(Fragment, {
718
- children: [!renderTabs && renderBreadCrumbs && /* @__PURE__ */ jsx(Space, {}), /* @__PURE__ */ jsx(SeparatorLine, {}), children]
719
- })]
720
- });
721
- };
722
- const PageHeaderRow = (props) => /* @__PURE__ */ jsx(Row, {
511
+ }), ot = ({
512
+ value: n,
513
+ onValueChange: o,
514
+ onChange: t,
515
+ indeterminate: r,
516
+ ...a
517
+ }) => /* @__PURE__ */ e(le, {
518
+ contentLeft: /* @__PURE__ */ e(ie, {
519
+ value: n,
520
+ indeterminate: r,
521
+ onValueChange: o,
522
+ onChange: t,
523
+ onClick: (s) => s.stopPropagation()
524
+ }),
525
+ ...a
526
+ }), rt = ({
527
+ contentLeft: n,
528
+ contentRight: o,
529
+ className: t,
530
+ onClick: r,
531
+ children: a,
532
+ ...s
533
+ }) => /* @__PURE__ */ i(P, {
534
+ disableFocusHighlight: !0,
535
+ disableOpacityOnClick: !0,
536
+ className: h(l.content, t),
537
+ onClick: r,
538
+ ...s,
539
+ children: [n && /* @__PURE__ */ e("div", {
540
+ className: l.contentLeft,
541
+ children: n
542
+ }), a != null ? a : /* @__PURE__ */ e(V, {}), o && /* @__PURE__ */ e("div", {
543
+ className: l.contentRight,
544
+ children: o
545
+ })]
546
+ }), at = ({
547
+ className: n,
548
+ ...o
549
+ }) => /* @__PURE__ */ e(G, {
550
+ className: h(l.groupHeading, n),
551
+ ...o
552
+ }), un = ({
553
+ text: n = "Something unexpected happened."
554
+ }) => /* @__PURE__ */ e(d, {
555
+ justifyContent: "center",
556
+ alignItems: "center",
557
+ children: /* @__PURE__ */ e(ve, {
558
+ variant: "error",
559
+ headerText: n
560
+ })
561
+ }), it = (n) => /* @__PURE__ */ e(d, {
562
+ width: "100%",
563
+ height: "100%",
564
+ justifyContent: "center",
565
+ alignItems: "center",
566
+ children: /* @__PURE__ */ e(un, {
567
+ ...n
568
+ })
569
+ }), hn = ({
570
+ text: n = "Loading..."
571
+ }) => /* @__PURE__ */ i(d, {
572
+ alignItems: "center",
573
+ children: [/* @__PURE__ */ e(_e, {
574
+ size: "small"
575
+ }), /* @__PURE__ */ e(w, {
576
+ num: 4
577
+ }), /* @__PURE__ */ e(Z, {
578
+ variant: "h4",
579
+ children: n
580
+ })]
581
+ }), st = (n) => /* @__PURE__ */ e(d, {
582
+ width: "100%",
583
+ height: "100%",
584
+ justifyContent: "center",
585
+ alignItems: "center",
586
+ children: /* @__PURE__ */ e(hn, {
587
+ ...n
588
+ })
589
+ }), ct = ({
590
+ renderBreadCrumbs: n,
591
+ renderPageHeading: o,
592
+ renderTabs: t,
593
+ children: r
594
+ }) => /* @__PURE__ */ i(d, {
595
+ shadow: "box",
596
+ background: M("--lhds-color-ui-50"),
597
+ children: [/* @__PURE__ */ i(d, {
598
+ indent: 3,
599
+ children: [n && /* @__PURE__ */ e(p, {
600
+ spacing: 1.25,
601
+ children: n()
602
+ }), o == null ? void 0 : o(), t == null ? void 0 : t()]
603
+ }), r && /* @__PURE__ */ i(m, {
604
+ children: [!t && n && /* @__PURE__ */ e(w, {}), /* @__PURE__ */ e(re, {}), r]
605
+ })]
606
+ }), lt = (n) => /* @__PURE__ */ e(p, {
723
607
  indent: 3,
724
- spacing: true,
725
- ...props
726
- });
727
- const variantToSpacing = {
608
+ spacing: !0,
609
+ ...n
610
+ }), pn = {
728
611
  compact: 1,
729
612
  standard: 1.5,
730
613
  relaxed: 2
731
- };
732
- const PageHeading = ({
733
- heading,
734
- variant = "standard",
735
- contentLeft: contentLeft2,
736
- contentRight: contentRight2
737
- }) => /* @__PURE__ */ jsxs(Row, {
738
- spacing: variantToSpacing[variant],
614
+ }, dt = ({
615
+ heading: n,
616
+ variant: o = "standard",
617
+ contentLeft: t,
618
+ contentRight: r
619
+ }) => /* @__PURE__ */ i(p, {
620
+ spacing: pn[o],
739
621
  alignItems: "center",
740
622
  gap: 2,
741
- children: [/* @__PURE__ */ jsx(Heading, {
623
+ children: [/* @__PURE__ */ e(Z, {
742
624
  variant: "h3",
743
- children: heading
744
- }), /* @__PURE__ */ jsx(Row, {
625
+ children: n
626
+ }), /* @__PURE__ */ e(p, {
745
627
  alignItems: "center",
746
- children: contentLeft2
747
- }), /* @__PURE__ */ jsx(Row, {
628
+ children: t
629
+ }), /* @__PURE__ */ e(p, {
748
630
  style: {
749
631
  marginLeft: "auto"
750
632
  },
751
633
  alignItems: "center",
752
- children: contentRight2
634
+ children: r
753
635
  })]
754
- });
755
- const sidebarMenu = "_sidebarMenu_hch18_1";
756
- var styles$3 = {
757
- sidebarMenu
758
- };
759
- const sidebarMenuCloseButton = "_sidebarMenuCloseButton_1j21u_1";
760
- const iconWrapper = "_iconWrapper_1j21u_55";
761
- const icon$1 = "_icon_1j21u_55";
762
- var styles$2 = {
763
- sidebarMenuCloseButton,
764
- iconWrapper,
765
- icon: icon$1
766
- };
767
- const SvgClose = (props) => /* @__PURE__ */ React.createElement("svg", {
636
+ }), mn = "_sidebarMenu_hch18_1", T = {
637
+ sidebarMenu: mn
638
+ }, fn = "_sidebarMenuCloseButton_1j21u_1", gn = "_iconWrapper_1j21u_55", bn = "_icon_1j21u_55", W = {
639
+ sidebarMenuCloseButton: fn,
640
+ iconWrapper: gn,
641
+ icon: bn
642
+ }, vn = (n) => /* @__PURE__ */ L.createElement("svg", {
768
643
  width: "16px",
769
644
  height: "16px",
770
645
  viewBox: "0 0 16 16",
771
646
  xmlns: "http://www.w3.org/2000/svg",
772
- ...props
773
- }, /* @__PURE__ */ React.createElement("path", {
647
+ ...n
648
+ }, /* @__PURE__ */ L.createElement("path", {
774
649
  d: "M0.928932188,0.928932188 C1.31945648,0.538407896 1.95262146,0.538407896 2.34314575,0.928932188 L2.34314575,0.928932188 L8.00003897,6.58503897 L13.6568542,0.928932188 C14.0473785,0.538407896 14.6805435,0.538407896 15.0710678,0.928932188 C15.4615921,1.31945648 15.4615921,1.95262146 15.0710678,2.34314575 L9.41503897,8.00003897 L15.0710678,13.6568542 C15.4315518,14.0173382 15.4592813,14.5845693 15.1542564,14.9768605 L15.0710678,15.0710678 C14.6805435,15.4615921 14.0473785,15.4615921 13.6568542,15.0710678 L13.6568542,15.0710678 L8.00003897,9.41503897 L2.34314575,15.0710678 C1.95262146,15.4615921 1.31945648,15.4615921 0.928932188,15.0710678 C0.538407896,14.6805435 0.538407896,14.0473785 0.928932188,13.6568542 L6.58503897,8.00003897 L0.928932188,2.34314575 C0.568448227,1.98266179 0.540718691,1.41543073 0.845743582,1.02313953 Z",
775
650
  id: "Combined-Shape",
776
651
  fill: "#FFFFFF"
777
- }));
778
- const SidebarMenuCloseButton = ({
779
- className,
780
- onClick
781
- }) => {
782
- return /* @__PURE__ */ jsx("button", {
783
- onClick,
784
- className: cx(styles$2.sidebarMenuCloseButton, className),
785
- children: /* @__PURE__ */ jsx(Box, {
786
- className: styles$2.iconWrapper,
787
- children: /* @__PURE__ */ jsx(SvgClose, {
788
- className: styles$2.icon
789
- })
652
+ })), _n = ({
653
+ className: n,
654
+ onClick: o
655
+ }) => /* @__PURE__ */ e("button", {
656
+ onClick: o,
657
+ className: h(W.sidebarMenuCloseButton, n),
658
+ children: /* @__PURE__ */ e(d, {
659
+ className: W.iconWrapper,
660
+ children: /* @__PURE__ */ e(vn, {
661
+ className: W.icon
790
662
  })
791
- });
792
- };
793
- const SidebarMenuSeparator = (separatorLineProps) => /* @__PURE__ */ jsx(SeparatorLine, {
794
- color: cssColor("--lhds-color-blue-600"),
795
- ...separatorLineProps
796
- });
797
- const SidebarMenu = ({
798
- className,
799
- children,
800
- onCloseClick,
801
- collapsed = false,
802
- hideCloseButton = false,
803
- variant = "standard",
804
- ...boxProps
663
+ })
664
+ }), J = (n) => /* @__PURE__ */ e(re, {
665
+ color: M("--lhds-color-blue-600"),
666
+ ...n
667
+ }), Cn = ({
668
+ className: n,
669
+ children: o,
670
+ onCloseClick: t,
671
+ collapsed: r = !1,
672
+ hideCloseButton: a = !1,
673
+ variant: s = "standard",
674
+ ...c
805
675
  }) => {
806
- const height = getNavbarHeight(variant);
807
- return /* @__PURE__ */ jsxs(Box, {
808
- className: cx(styles$3.sidebarMenu, collapsed ? styles$3.collapsed : null, className),
676
+ const u = ce(s);
677
+ return /* @__PURE__ */ i(d, {
678
+ className: h(T.sidebarMenu, r ? T.collapsed : null, n),
809
679
  style: {
810
- ["--swui-sidebar-menu-item-height"]: height,
811
- ["--swui-nav-bar-height"]: height
680
+ ["--swui-sidebar-menu-item-height"]: u,
681
+ ["--swui-nav-bar-height"]: u
812
682
  },
813
- "data-collapsed": collapsed || void 0,
814
- ...boxProps,
815
- children: [!hideCloseButton && /* @__PURE__ */ jsxs(Fragment, {
816
- children: [/* @__PURE__ */ jsx(SidebarMenuCloseButton, {
817
- onClick: onCloseClick
818
- }), /* @__PURE__ */ jsx(SidebarMenuSeparator, {}), /* @__PURE__ */ jsx(Space, {})]
819
- }), /* @__PURE__ */ jsx(Box, {
820
- className: styles$3.sidebarMenuContent,
683
+ "data-collapsed": r || void 0,
684
+ ...c,
685
+ children: [!a && /* @__PURE__ */ i(m, {
686
+ children: [/* @__PURE__ */ e(_n, {
687
+ onClick: t
688
+ }), /* @__PURE__ */ e(J, {}), /* @__PURE__ */ e(w, {})]
689
+ }), /* @__PURE__ */ e(d, {
690
+ className: T.sidebarMenuContent,
821
691
  height: "100%",
822
692
  background: "var(--current-background-color)",
823
- children: /* @__PURE__ */ jsx(Column, {
693
+ children: /* @__PURE__ */ e($, {
824
694
  flex: 1,
825
- children
695
+ children: o
826
696
  })
827
697
  })]
828
698
  });
829
- };
830
- const SidebarRailMenu = ({
831
- variant,
832
- onClickMenuButton,
833
- children
699
+ }, ut = ({
700
+ variant: n,
701
+ onClickMenuButton: o,
702
+ children: t
703
+ }) => /* @__PURE__ */ i(Cn, {
704
+ collapsed: !0,
705
+ position: "fixed",
706
+ left: 0,
707
+ top: 0,
708
+ hideCloseButton: !0,
709
+ variant: n,
710
+ children: [/* @__PURE__ */ e(se, {
711
+ onClick: o
712
+ }), t]
713
+ }), Bn = "_label_mnp0f_1", xn = "_icon_mnp0f_9", wn = "_spinner_mnp0f_14", Nn = "_leftWrapper_mnp0f_18", yn = "_button_mnp0f_23", kn = "_selected_mnp0f_45", k = {
714
+ label: Bn,
715
+ icon: xn,
716
+ spinner: wn,
717
+ leftWrapper: Nn,
718
+ button: yn,
719
+ selected: kn
720
+ }, Mn = ({
721
+ activeClassName: n,
722
+ ...o
723
+ }) => /* @__PURE__ */ e("button", {
724
+ ...o
725
+ }), z = ({
726
+ className: n,
727
+ children: o,
728
+ selected: t,
729
+ indent: r,
730
+ label: a,
731
+ loading: s,
732
+ left: c,
733
+ leftIcon: u,
734
+ right: f,
735
+ rightIcon: v,
736
+ success: _,
737
+ width: B,
738
+ renderLink: x = Mn,
739
+ style: g,
740
+ ...I
834
741
  }) => {
835
- return /* @__PURE__ */ jsxs(SidebarMenu, {
836
- collapsed: true,
837
- position: "fixed",
838
- left: 0,
839
- top: 0,
840
- hideCloseButton: true,
841
- variant,
842
- children: [/* @__PURE__ */ jsx(NavBarSideMenuButton, {
843
- onClick: onClickMenuButton
844
- }), children]
845
- });
846
- };
847
- const label = "_label_mnp0f_1";
848
- const icon = "_icon_mnp0f_9";
849
- const spinner = "_spinner_mnp0f_14";
850
- const leftWrapper = "_leftWrapper_mnp0f_18";
851
- const button = "_button_mnp0f_23";
852
- const selected = "_selected_mnp0f_45";
853
- var contentStyles = {
854
- label,
855
- icon,
856
- spinner,
857
- leftWrapper,
858
- button,
859
- selected
860
- };
861
- const defaultRenderLink = ({
862
- activeClassName,
863
- ...props
864
- }) => {
865
- return /* @__PURE__ */ jsx("button", {
866
- ...props
867
- });
868
- };
869
- const SidebarMenuLink = ({
870
- className,
871
- children,
872
- selected: selected2,
873
- indent,
874
- label: label2,
875
- loading,
876
- left,
877
- leftIcon,
878
- right,
879
- rightIcon,
880
- success,
881
- width,
882
- renderLink = defaultRenderLink,
883
- style,
884
- ...buttonProps
885
- }) => {
886
- const hasContentLeft = left || leftIcon || loading || success;
887
- const innerClassName = cx(contentStyles.button, selected2 ? contentStyles.selected : void 0, className);
888
- const innerStyle = {
889
- ...style,
890
- width,
742
+ const N = c || u || s || _, E = h(k.button, t ? k.selected : void 0, n), y = {
743
+ ...g,
744
+ width: B,
891
745
  height: "var(--swui-sidebar-menu-item-height)"
892
- };
893
- const innerChildren = /* @__PURE__ */ jsxs(Row, {
746
+ }, F = /* @__PURE__ */ i(p, {
894
747
  spacing: 1,
895
748
  flex: 1,
896
749
  alignItems: "center",
897
- children: [!hasContentLeft && /* @__PURE__ */ jsx(Indent, {}), indent && /* @__PURE__ */ jsx(Indent, {
750
+ children: [!N && /* @__PURE__ */ e(b, {}), r && /* @__PURE__ */ e(b, {
898
751
  num: 3.5
899
- }), /* @__PURE__ */ jsx(ButtonContent, {
900
- label: label2,
901
- loading,
902
- left,
903
- leftIcon,
904
- right,
905
- rightIcon,
906
- success,
907
- labelClassName: contentStyles.label,
908
- spinnerClassName: contentStyles.spinner,
909
- iconClassName: cx(contentStyles.icon),
910
- leftWrapperClassName: contentStyles.leftWrapper
752
+ }), /* @__PURE__ */ e(Ce, {
753
+ label: a,
754
+ loading: s,
755
+ left: c,
756
+ leftIcon: u,
757
+ right: f,
758
+ rightIcon: v,
759
+ success: _,
760
+ labelClassName: k.label,
761
+ spinnerClassName: k.spinner,
762
+ iconClassName: h(k.icon),
763
+ leftWrapperClassName: k.leftWrapper
911
764
  })]
912
765
  });
913
- return /* @__PURE__ */ jsx(Fragment, {
914
- children: renderLink({
915
- ...buttonProps,
916
- activeClassName: contentStyles.selected,
917
- className: innerClassName,
918
- children: innerChildren,
919
- style: innerStyle
766
+ return /* @__PURE__ */ e(m, {
767
+ children: x({
768
+ ...I,
769
+ activeClassName: k.selected,
770
+ className: E,
771
+ children: F,
772
+ style: y
920
773
  })
921
774
  });
922
- };
923
- const sidebarMenuHeading = "_sidebarMenuHeading_kvpq5_1";
924
- var styles$1 = {
925
- sidebarMenuHeading
926
- };
927
- const SidebarMenuHeading = ({
928
- className,
929
- label: label2,
930
- contentLeft: contentLeft2,
931
- contentRight: contentRight2,
932
- ...textProps
933
- }) => {
934
- return /* @__PURE__ */ jsx(Box, {
935
- spacing: 2,
936
- indent: 2,
937
- children: /* @__PURE__ */ jsx(CollapsibleContent, {
938
- className: styles$1.sidebarMenuHeading,
939
- contentLeft: contentLeft2,
940
- contentRight: contentRight2,
941
- children: /* @__PURE__ */ jsx(Text, {
942
- variant: "overline",
943
- color: "var(--swui-sidebar-menu-heading-text-color)",
944
- ...textProps,
945
- children: label2
946
- })
775
+ }, Sn = "_sidebarMenuHeading_kvpq5_1", Ln = {
776
+ sidebarMenuHeading: Sn
777
+ }, de = ({
778
+ className: n,
779
+ label: o,
780
+ contentLeft: t,
781
+ contentRight: r,
782
+ ...a
783
+ }) => /* @__PURE__ */ e(d, {
784
+ spacing: 2,
785
+ indent: 2,
786
+ children: /* @__PURE__ */ e(G, {
787
+ className: Ln.sidebarMenuHeading,
788
+ contentLeft: t,
789
+ contentRight: r,
790
+ children: /* @__PURE__ */ e(C, {
791
+ variant: "overline",
792
+ color: "var(--swui-sidebar-menu-heading-text-color)",
793
+ ...a,
794
+ children: o
947
795
  })
948
- });
949
- };
950
- const sidebarMenuCollapsible = "_sidebarMenuCollapsible_1jwhs_1";
951
- var styles = {
952
- sidebarMenuCollapsible
953
- };
954
- const SidebarMenuCollapsible = ({
955
- children,
956
- label: label2,
957
- leftIcon
796
+ })
797
+ }), In = "_sidebarMenuCollapsible_1jwhs_1", En = {
798
+ sidebarMenuCollapsible: In
799
+ }, Fn = ({
800
+ children: n,
801
+ label: o,
802
+ leftIcon: t
958
803
  }) => {
959
- const [collapsed, setCollapsed] = useState(false);
960
- return /* @__PURE__ */ jsx(Box, {
804
+ const [r, a] = we(!1);
805
+ return /* @__PURE__ */ e(d, {
961
806
  background: "var(--current-background-color)",
962
- children: /* @__PURE__ */ jsx(Collapsible, {
963
- className: styles.sidebarMenuCollapsible,
964
- label: label2,
965
- collapsed,
966
- onClick: () => setCollapsed(!collapsed),
967
- contentLeft: leftIcon ? /* @__PURE__ */ jsx(Box, {
807
+ children: /* @__PURE__ */ e(le, {
808
+ className: En.sidebarMenuCollapsible,
809
+ label: o,
810
+ collapsed: r,
811
+ onClick: () => a(!r),
812
+ contentLeft: t ? /* @__PURE__ */ e(d, {
968
813
  width: "var(--swui-sidebar-menu-item-height)",
969
814
  alignItems: "center",
970
815
  justifyContent: "center",
971
- children: /* @__PURE__ */ jsx(Icon, {
972
- icon: leftIcon,
816
+ children: /* @__PURE__ */ e(R, {
817
+ icon: t,
973
818
  size: 16,
974
819
  color: "var(--current-text-color)",
975
- "data-hover": true
820
+ "data-hover": !0
976
821
  })
977
- }) : /* @__PURE__ */ jsx(Indent, {
822
+ }) : /* @__PURE__ */ e(b, {
978
823
  num: 1
979
824
  }),
980
- children: /* @__PURE__ */ jsx(Column, {
825
+ children: /* @__PURE__ */ e($, {
981
826
  flex: 1,
982
- children
827
+ children: n
983
828
  })
984
829
  })
985
830
  });
986
- };
987
- const renderItemsExpanded = (items, indent = false) => {
988
- return items.map((item, index) => {
989
- switch (item.type) {
990
- case "heading":
991
- return /* @__PURE__ */ jsx(SidebarMenuHeading, {
992
- label: item.label
993
- }, index);
994
- case "separator":
995
- return /* @__PURE__ */ jsx(SidebarMenuSeparator, {}, index);
996
- case "link": {
997
- const {
998
- type,
999
- ...linkProps
1000
- } = item;
1001
- return /* @__PURE__ */ jsx(SidebarMenuLink, {
1002
- indent,
1003
- ...linkProps
1004
- }, index);
1005
- }
1006
- case "grouped":
1007
- return /* @__PURE__ */ jsx(SidebarMenuCollapsible, {
1008
- leftIcon: item.leftIcon,
1009
- label: item.label,
1010
- children: renderItemsExpanded(item.items, true)
1011
- }, index);
1012
- default:
1013
- return exhaustSwitchCaseElseThrow(item);
831
+ }, ue = (n, o = !1) => n.map((t, r) => {
832
+ switch (t.type) {
833
+ case "heading":
834
+ return /* @__PURE__ */ e(de, {
835
+ label: t.label
836
+ }, r);
837
+ case "separator":
838
+ return /* @__PURE__ */ e(J, {}, r);
839
+ case "link": {
840
+ const {
841
+ type: a,
842
+ ...s
843
+ } = t;
844
+ return /* @__PURE__ */ e(z, {
845
+ indent: o,
846
+ ...s
847
+ }, r);
1014
848
  }
1015
- });
1016
- };
1017
- const renderItemsInRail = (items, {
1018
- popupMinWidth
1019
- }) => {
1020
- return items.map((item, index) => {
1021
- switch (item.type) {
1022
- case "heading":
1023
- return null;
1024
- case "separator":
1025
- return /* @__PURE__ */ jsx(SidebarMenuSeparator, {}, index);
1026
- case "link": {
1027
- const {
1028
- type,
1029
- label: label2,
1030
- ...linkProps
1031
- } = item;
1032
- return /* @__PURE__ */ jsx(SidebarMenuLink, {
1033
- title: label2,
1034
- width: "var(--swui-sidebar-menu-item-height)",
1035
- ...linkProps
1036
- }, index);
1037
- }
1038
- case "grouped":
1039
- return /* @__PURE__ */ jsx("div", {
1040
- children: /* @__PURE__ */ jsx(Popover, {
1041
- appendTo: "parent",
1042
- arrow: false,
1043
- offset: [0, 0],
1044
- placement: "right-start",
1045
- trigger: "focusin mouseenter click",
1046
- disablePadding: true,
1047
- lazy: true,
1048
- content: /* @__PURE__ */ jsxs(Box, {
1049
- minWidth: popupMinWidth,
1050
- background: "var(--lhds-color-blue-500)",
1051
- children: [/* @__PURE__ */ jsx(SidebarMenuHeading, {
1052
- label: item.label
1053
- }), renderItemsExpanded(item.items)]
1054
- }),
1055
- children: /* @__PURE__ */ jsx(SidebarMenuLink, {
1056
- title: item.label,
1057
- width: "var(--swui-sidebar-menu-item-height)",
1058
- leftIcon: item.leftIcon
1059
- })
1060
- })
1061
- }, index);
1062
- default:
1063
- return exhaustSwitchCaseElseThrow(item);
849
+ case "grouped":
850
+ return /* @__PURE__ */ e(Fn, {
851
+ leftIcon: t.leftIcon,
852
+ label: t.label,
853
+ children: ue(t.items, !0)
854
+ }, r);
855
+ default:
856
+ return ae(t);
857
+ }
858
+ }), ht = (n, {
859
+ popupMinWidth: o
860
+ }) => n.map((t, r) => {
861
+ switch (t.type) {
862
+ case "heading":
863
+ return null;
864
+ case "separator":
865
+ return /* @__PURE__ */ e(J, {}, r);
866
+ case "link": {
867
+ const {
868
+ type: a,
869
+ label: s,
870
+ ...c
871
+ } = t;
872
+ return /* @__PURE__ */ e(z, {
873
+ title: s,
874
+ width: "var(--swui-sidebar-menu-item-height)",
875
+ ...c
876
+ }, r);
1064
877
  }
1065
- });
1066
- };
1067
- const borderTop = `1px solid ${cssColor("--lhds-color-orange-400")}`;
1068
- const SelectedItemsActionsPanel = ({
1069
- numItemsSelected,
1070
- label: label2,
1071
- afterLabelContent,
1072
- rightContent
1073
- }) => /* @__PURE__ */ jsxs(Row, {
878
+ case "grouped":
879
+ return /* @__PURE__ */ e("div", {
880
+ children: /* @__PURE__ */ e(O, {
881
+ appendTo: "parent",
882
+ arrow: !1,
883
+ offset: [0, 0],
884
+ placement: "right-start",
885
+ trigger: "focusin mouseenter click",
886
+ disablePadding: !0,
887
+ lazy: !0,
888
+ content: /* @__PURE__ */ i(d, {
889
+ minWidth: o,
890
+ background: "var(--lhds-color-blue-500)",
891
+ children: [/* @__PURE__ */ e(de, {
892
+ label: t.label
893
+ }), ue(t.items)]
894
+ }),
895
+ children: /* @__PURE__ */ e(z, {
896
+ title: t.label,
897
+ width: "var(--swui-sidebar-menu-item-height)",
898
+ leftIcon: t.leftIcon
899
+ })
900
+ })
901
+ }, r);
902
+ default:
903
+ return ae(t);
904
+ }
905
+ }), Hn = `1px solid ${M("--lhds-color-orange-400")}`, pt = ({
906
+ numItemsSelected: n,
907
+ label: o,
908
+ afterLabelContent: t,
909
+ rightContent: r
910
+ }) => /* @__PURE__ */ i(p, {
1074
911
  indent: 3,
1075
- spacing: true,
912
+ spacing: !0,
1076
913
  minHeight: "56px",
1077
914
  justifyContent: "space-between",
1078
915
  alignItems: "center",
1079
- borderTop,
1080
- background: cssColor("--lhds-color-orange-50"),
1081
- children: [/* @__PURE__ */ jsxs(Row, {
916
+ borderTop: Hn,
917
+ background: M("--lhds-color-orange-50"),
918
+ children: [/* @__PURE__ */ i(p, {
1082
919
  alignItems: "center",
1083
- children: [numItemsSelected != null || label2 != null ? /* @__PURE__ */ jsx(Fragment, {
1084
- children: numItemsSelected != null ? /* @__PURE__ */ jsxs(Fragment, {
1085
- children: [/* @__PURE__ */ jsx(Text, {
920
+ children: [n != null || o != null ? /* @__PURE__ */ e(m, {
921
+ children: n != null ? /* @__PURE__ */ i(m, {
922
+ children: [/* @__PURE__ */ e(C, {
1086
923
  variant: "bold",
1087
- children: numItemsSelected
1088
- }), /* @__PURE__ */ jsx(Space, {}), /* @__PURE__ */ jsxs(Text, {
1089
- children: ["item", numItemsSelected === 1 ? "" : "s", " selected"]
924
+ children: n
925
+ }), /* @__PURE__ */ e(w, {}), /* @__PURE__ */ i(C, {
926
+ children: ["item", n === 1 ? "" : "s", " selected"]
1090
927
  })]
1091
- }) : label2 != null ? /* @__PURE__ */ jsx(Fragment, {
1092
- children: typeof label2 === "string" ? /* @__PURE__ */ jsx(Text, {
1093
- children: label2
1094
- }) : label2
928
+ }) : o != null ? /* @__PURE__ */ e(m, {
929
+ children: typeof o == "string" ? /* @__PURE__ */ e(C, {
930
+ children: o
931
+ }) : o
1095
932
  }) : null
1096
- }) : null, afterLabelContent ? /* @__PURE__ */ jsxs(Fragment, {
1097
- children: [/* @__PURE__ */ jsx(Indent, {}), /* @__PURE__ */ jsx(Box, {
1098
- children: afterLabelContent
933
+ }) : null, t ? /* @__PURE__ */ i(m, {
934
+ children: [/* @__PURE__ */ e(b, {}), /* @__PURE__ */ e(d, {
935
+ children: t
1099
936
  })]
1100
937
  }) : null]
1101
- }), /* @__PURE__ */ jsx(Box, {
1102
- children: rightContent
938
+ }), /* @__PURE__ */ e(d, {
939
+ children: r
1103
940
  })]
1104
941
  });
1105
- export { ActionMenuFlatButton, ActionMenuPrimaryButton, ActionMenuSecondaryButton, CheckboxMenu, Collapsible, CollapsibleClickableContent, CollapsibleContent, CollapsibleEmptyContent, CollapsibleGroupHeading, CollapsibleWithCheckbox, ErrorPanel, ErrorScreen, LoadingPanel, LoadingScreen, NavBar, NavBarButton, NavBarHeading, NavBarNotificationButton, NavBarPopoverButton, NavBarSearchField, NavBarUserButton, Notification, PageHeader, PageHeaderRow, PageHeading, SelectedItemsActionsPanel, SidebarMenu, SidebarMenuCollapsible, SidebarMenuHeading, SidebarMenuLink, SidebarMenuSeparator, SidebarRailMenu, defaultNotificationTheme, defaultRenderLink, mapCSSTime, renderItemsExpanded, renderItemsInRail };
942
+ export {
943
+ Ie as ActionMenuFlatButton,
944
+ Vn as ActionMenuPrimaryButton,
945
+ Gn as ActionMenuSecondaryButton,
946
+ Jn as CheckboxMenu,
947
+ le as Collapsible,
948
+ rt as CollapsibleClickableContent,
949
+ G as CollapsibleContent,
950
+ V as CollapsibleEmptyContent,
951
+ at as CollapsibleGroupHeading,
952
+ ot as CollapsibleWithCheckbox,
953
+ un as ErrorPanel,
954
+ it as ErrorScreen,
955
+ hn as LoadingPanel,
956
+ st as LoadingScreen,
957
+ Kn as NavBar,
958
+ Oe as NavBarButton,
959
+ Qn as NavBarHeading,
960
+ Yn as NavBarNotificationButton,
961
+ Xn as NavBarPopoverButton,
962
+ et as NavBarSearchField,
963
+ nt as NavBarUserButton,
964
+ tt as Notification,
965
+ ct as PageHeader,
966
+ lt as PageHeaderRow,
967
+ dt as PageHeading,
968
+ pt as SelectedItemsActionsPanel,
969
+ Cn as SidebarMenu,
970
+ Fn as SidebarMenuCollapsible,
971
+ de as SidebarMenuHeading,
972
+ z as SidebarMenuLink,
973
+ J as SidebarMenuSeparator,
974
+ ut as SidebarRailMenu,
975
+ Ke as defaultNotificationTheme,
976
+ Mn as defaultRenderLink,
977
+ dn as mapCSSTime,
978
+ ue as renderItemsExpanded,
979
+ ht as renderItemsInRail
980
+ };
1106
981
  //# sourceMappingURL=index.es.js.map