@stenajs-webui/panels 19.0.0-next.3 → 19.0.0-next.31

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