@stenajs-webui/panels 19.0.0-next.2 → 19.0.0-next.21

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