@stenajs-webui/panels 19.0.0-next.5 → 19.0.0-next.51

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