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

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 +692 -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,757 @@
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 a, 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: i = J,
16
+ portalTarget: r = "parent",
17
+ zIndex: c,
18
+ menuWidth: u,
19
+ menuTop: d,
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: u, top: d, 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 : i,
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, i, 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__ */ a(
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: i, 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
- children: a,
165
- right: i,
166
- center: s,
167
- variant: p = "standard",
168
- onClickMenuButton: _
122
+ children: i,
123
+ right: r,
124
+ center: c,
125
+ onClickMenuButton: u
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 d = c ? 1 : void 0;
128
+ return /* @__PURE__ */ a(
129
+ l,
130
+ {
131
+ justifyContent: "space-between",
132
+ className: h(Rn.navBar, t),
133
+ children: [
134
+ /* @__PURE__ */ a(
135
+ l,
136
+ {
137
+ flex: d,
138
+ justifyContent: "flex-start",
139
+ alignItems: "center",
140
+ children: [
141
+ /* @__PURE__ */ a(l, { width: "86px", alignItems: "center", children: [
142
+ /* @__PURE__ */ n(x, {}),
143
+ o && /* @__PURE__ */ n(Ln, { onClick: u })
144
+ ] }),
145
+ e && /* @__PURE__ */ a(b, { children: [
146
+ e,
147
+ /* @__PURE__ */ n(x, { num: 2 })
148
+ ] }),
149
+ i && /* @__PURE__ */ n(b, { children: /* @__PURE__ */ n(l, { justifyContent: "center", alignItems: "center", children: _n.Children.map(i, (p, g) => /* @__PURE__ */ a(b, { children: [
150
+ g > 0 && /* @__PURE__ */ n(x, {}),
151
+ p
152
+ ] })) }) })
153
+ ]
154
+ }
155
+ ),
156
+ c && /* @__PURE__ */ n(l, { justifyContent: "center", alignItems: "center", children: c }),
157
+ /* @__PURE__ */ a(l, { justifyContent: "flex-end", alignItems: "center", flex: d, children: [
158
+ r,
159
+ /* @__PURE__ */ n(x, { num: 2 })
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 [i, , r, c] = P(!1);
187
+ return /* @__PURE__ */ n(
188
+ M,
189
+ {
190
+ onClickOutside: r,
191
+ triggerTarget: document.body,
192
+ visible: i,
193
+ content: /* @__PURE__ */ a(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: i,
211
+ iconClassName: r,
212
+ icon: c = ln,
213
+ ...u
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 d = e > 0;
216
+ return /* @__PURE__ */ n(
217
+ C,
218
+ {
219
+ ...u,
220
+ leftIcon: c,
221
+ className: h(
222
+ t && I.unread,
223
+ d && I.hasCount,
224
+ I.navBarNotificationButton,
225
+ o
226
+ ),
227
+ label: d ? String(e) : void 0,
228
+ labelClassName: h(i, 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
+ ...i
240
+ }) => /* @__PURE__ */ n(
241
+ Mn,
242
+ {
243
+ wrapperClassName: h(T.navBarSearchField, o),
244
+ className: h(T.navBarSearchFieldInput, t),
245
+ placeholder: e,
246
+ ...i
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: i = dn,
256
+ iconClassName: r,
257
+ ...c
258
+ }) => /* @__PURE__ */ n(
259
+ Sn,
260
+ {
261
+ ...c,
262
+ className: h(
263
+ { [V.initials]: o != null },
264
+ V.navBarUserButton,
265
+ e
266
+ ),
267
+ leftIcon: t != null ? i : void 0,
268
+ label: o != null ? o : t,
269
+ disableArrow: !0
270
+ }
271
+ ), qn = "_unreadDot_l8bni_1", Gn = "_dot_l8bni_4", W = {
272
+ unreadDot: qn,
273
+ dot: Gn
274
+ }, Jn = ({ children: e }) => /* @__PURE__ */ a("div", { className: W.unreadDot, children: [
275
+ e,
276
+ /* @__PURE__ */ n("div", { className: W.dot })
277
+ ] }), nn = ({
278
+ text: e,
315
279
  timestamp: t,
316
280
  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, {
281
+ iconAriaLabel: i,
282
+ contentLeft: r,
283
+ contentRight: c,
284
+ onClose: u,
285
+ unread: d = !1,
286
+ variant: p
287
+ }) => {
288
+ const g = o ? /* @__PURE__ */ n(
289
+ Q,
290
+ {
291
+ size: "small",
337
292
  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,
293
+ "aria-label": i,
294
+ backgroundColor: Kn(d, p)
295
+ }
296
+ ) : void 0;
297
+ return /* @__PURE__ */ a(l, { alignItems: "flex-start", indent: 2, spacing: !0, children: [
298
+ /* @__PURE__ */ a(l, { spacing: !0, gap: 2, flex: 1, alignItems: "flex-start", children: [
299
+ r && /* @__PURE__ */ n(s, { minHeight: 20, justifyContent: "center", children: r }),
300
+ !r && g && (d ? /* @__PURE__ */ n(Jn, { children: g }) : g),
301
+ /* @__PURE__ */ a(s, { minHeight: 20, justifyContent: "center", flex: 1, gap: 0.5, children: [
302
+ /* @__PURE__ */ n(v, { variant: "bold", children: e }),
303
+ t && /* @__PURE__ */ n(
304
+ v,
305
+ {
306
+ size: "small",
307
+ color: m(
308
+ d ? "--lhds-color-blue-600" : "--lhds-color-ui-600"
309
+ ),
310
+ children: t
311
+ }
312
+ )
313
+ ] }),
314
+ c
315
+ ] }),
316
+ u && /* @__PURE__ */ n(
317
+ s,
318
+ {
319
+ flex: "none",
320
+ justifyContent: "center",
321
+ height: "calc(20px + 2 * var(--swui-metrics-spacing))",
322
+ children: /* @__PURE__ */ n(
323
+ C,
324
+ {
325
+ leftIcon: X,
326
+ onClick: u,
327
+ "aria-label": "Close",
328
+ variant: "danger"
329
+ }
330
+ )
331
+ }
332
+ )
333
+ ] });
334
+ }, Kn = (e, t) => {
335
+ if (!(!e && t === "standard"))
336
+ return "--lhds-color-ui-50";
337
+ }, Qn = "_notification_1hao0_1", Xn = "_body_1hao0_7", Yn = "_standard_1hao0_13", Zn = "_unread_1hao0_14", ne = "_danger_1hao0_19", w = {
338
+ notification: Qn,
339
+ body: Xn,
340
+ standard: Yn,
341
+ unread: Zn,
342
+ danger: ne
343
+ }, ze = ({
344
+ variant: e = "standard",
345
+ children: t,
346
+ unread: o,
347
+ ...i
348
+ }) => /* @__PURE__ */ a(
349
+ "div",
350
+ {
351
+ className: h(
352
+ w.notification,
353
+ w[e],
354
+ o && w.unread
355
+ ),
356
+ children: [
357
+ /* @__PURE__ */ n(nn, { ...i, unread: o, variant: e }),
358
+ t && /* @__PURE__ */ n(f, { className: w.body, children: t })
359
+ ]
360
+ }
361
+ ), ee = "_notificationList_1rkvu_1", te = {
362
+ notificationList: ee
363
+ }, $e = ({
364
+ children: e
365
+ }) => /* @__PURE__ */ a("div", { className: te.notificationList, children: [
366
+ e,
367
+ /* @__PURE__ */ n("div", {})
368
+ ] }), oe = "_clickable_1ijxc_1", ie = "_nonClickable_1ijxc_27", F = {
369
+ clickable: oe,
370
+ nonClickable: ie
371
+ }, Ae = ({
372
+ onClick: e,
386
373
  onClickAriaLabel: t,
387
374
  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;
375
+ width: i = 264,
376
+ maxWidth: r,
377
+ ...c
378
+ }) => /* @__PURE__ */ a(
379
+ s,
380
+ {
381
+ borderRadius: 8,
382
+ background: m("--lhds-color-ui-50"),
383
+ shadow: "popover",
384
+ width: i,
385
+ maxWidth: r,
386
+ role: "alert",
387
+ position: "relative",
388
+ children: [
389
+ /* @__PURE__ */ n(s, { className: h({ [F.nonClickable]: e }), children: /* @__PURE__ */ n(nn, { ...c }) }),
390
+ o && /* @__PURE__ */ a(s, { indent: 3, className: h({ [F.nonClickable]: e }), children: [
391
+ o,
392
+ /* @__PURE__ */ n(_, { num: 2 })
393
+ ] }),
394
+ e && /* @__PURE__ */ n(
395
+ "button",
396
+ {
397
+ onClick: e,
398
+ className: F.clickable,
399
+ "aria-label": t
400
+ }
401
+ )
402
+ ]
470
403
  }
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,
404
+ ), ae = () => /* @__PURE__ */ a(f, { indent: !0, spacing: !0, flex: 1, alignItems: "center", children: [
405
+ /* @__PURE__ */ n(un, { icon: hn, color: m("--lhds-color-ui-500") }),
406
+ /* @__PURE__ */ n(_, {}),
407
+ /* @__PURE__ */ n(v, { size: "small", color: m("--lhds-color-ui-500"), children: "No content" })
408
+ ] }), re = xn(
409
+ function({
410
+ label: t,
411
+ contentLeft: o,
412
+ contentRight: i,
413
+ collapsed: r = !1,
414
+ onClick: c,
415
+ disabled: u = !1,
416
+ children: d,
417
+ autoFocus: p = !1,
418
+ ...g
419
+ }, S) {
420
+ return /* @__PURE__ */ n(
421
+ L,
422
+ {
423
+ ...g,
424
+ autoFocus: p,
425
+ ref: S,
426
+ label: t,
427
+ onClick: c,
428
+ disabled: u,
429
+ expandable: !0,
430
+ expanded: !r,
431
+ selected: !r,
432
+ left: o,
433
+ right: i,
434
+ children: d != null ? d : /* @__PURE__ */ n(ae, {})
435
+ }
436
+ );
437
+ }
438
+ ), He = ({
439
+ children: e
440
+ }) => /* @__PURE__ */ n(f, { gap: 1, children: e }), Ee = ({
441
+ value: e,
545
442
  onValueChange: t,
546
443
  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,
444
+ indeterminate: i,
445
+ checkboxDisabled: r,
446
+ ...c
447
+ }) => /* @__PURE__ */ n(
448
+ re,
449
+ {
450
+ contentLeft: /* @__PURE__ */ n(
451
+ Z,
452
+ {
453
+ value: e,
454
+ indeterminate: i,
455
+ onValueChange: t,
456
+ onChange: o,
457
+ disabled: r,
458
+ onClick: (u) => u.stopPropagation()
459
+ }
460
+ ),
461
+ ...c
462
+ }
463
+ ), De = ({ children: e }) => /* @__PURE__ */ n(s, { spacing: !0, indent: !0, children: /* @__PURE__ */ n(v, { variant: "overline", size: "smaller", children: e }) }), ce = ({
464
+ text: e = "Something unexpected happened."
465
+ }) => /* @__PURE__ */ n(s, { justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ n(pn, { variant: "error", headerText: e }) }), Ue = (e) => /* @__PURE__ */ n(
466
+ s,
467
+ {
468
+ width: "100%",
469
+ height: "100%",
470
+ justifyContent: "center",
471
+ alignItems: "center",
472
+ children: /* @__PURE__ */ n(ce, { ...e })
473
+ }
474
+ ), se = ({
475
+ text: e = "Loading..."
476
+ }) => /* @__PURE__ */ a(s, { alignItems: "center", children: [
477
+ /* @__PURE__ */ n(gn, { size: "small" }),
478
+ /* @__PURE__ */ n(_, { num: 4 }),
479
+ /* @__PURE__ */ n(z, { variant: "h4", children: e })
480
+ ] }), Oe = (e) => /* @__PURE__ */ n(
481
+ s,
482
+ {
483
+ width: "100%",
484
+ height: "100%",
485
+ justifyContent: "center",
486
+ alignItems: "center",
487
+ children: /* @__PURE__ */ n(se, { ...e })
488
+ }
489
+ ), Te = ({
490
+ renderBreadCrumbs: e,
625
491
  renderPageHeading: t,
626
492
  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
- },
493
+ children: i
494
+ }) => /* @__PURE__ */ a(s, { shadow: "bottom", background: m("--lhds-color-ui-50"), gap: 2, children: [
495
+ /* @__PURE__ */ a(s, { indent: 3, children: [
496
+ e && /* @__PURE__ */ a(l, { spacing: 1, alignItems: "center", children: [
497
+ /* @__PURE__ */ n(l, { width: "64px", height: "16px" }),
498
+ e()
499
+ ] }),
500
+ t == null ? void 0 : t(),
501
+ o && /* @__PURE__ */ n(_, {}),
502
+ o == null ? void 0 : o()
503
+ ] }),
504
+ i
505
+ ] }), Ve = (e) => /* @__PURE__ */ n(l, { indent: 3, spacing: !0, ...e }), We = ({
506
+ icon: e,
507
+ heading: t,
508
+ headingLevel: o = "h2",
509
+ contentLeft: i,
510
+ contentRight: r
511
+ }) => /* @__PURE__ */ a(l, { alignItems: "center", gap: 2, height: "64px", children: [
512
+ /* @__PURE__ */ a(l, { alignItems: "center", children: [
513
+ /* @__PURE__ */ n(l, { width: "64px", alignItems: "center", children: e && /* @__PURE__ */ n(Q, { icon: e }) }),
514
+ /* @__PURE__ */ n(z, { variant: "h3", as: o, children: t })
515
+ ] }),
516
+ /* @__PURE__ */ n(l, { alignItems: "center", children: i }),
517
+ /* @__PURE__ */ n(l, { style: { marginLeft: "auto" }, alignItems: "center", children: r })
518
+ ] }), le = "_sidebarMenu_iwe92_1", q = {
519
+ sidebarMenu: le
520
+ }, de = "_stenaFlag_108h7_1", ue = {
521
+ stenaFlag: de
522
+ }, he = ({ onClick: e }) => /* @__PURE__ */ a(
523
+ l,
524
+ {
525
+ justifyContent: "space-between",
669
526
  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,
527
+ flex: 1,
528
+ indent: 1,
529
+ minHeight: "48px",
530
+ children: [
531
+ /* @__PURE__ */ n(C, { leftIcon: X, onClick: e, variant: "danger" }),
532
+ /* @__PURE__ */ n(fn, { className: ue.stenaFlag })
533
+ ]
534
+ }
535
+ ), pe = ({
536
+ isPinned: e,
537
+ onClick: t,
538
+ label: o
539
+ }) => {
540
+ const i = e ? "Unpin menu" : "Pin menu", r = o != null ? o : i;
541
+ return /* @__PURE__ */ n(L, { onClick: t, label: r, leftIcon: e ? Y : mn });
542
+ }, qe = ({
543
+ className: e,
692
544
  children: t,
693
545
  onCloseClick: o,
694
- collapsed: r = !1,
695
- hideCloseButton: a = !1,
696
546
  variant: i = "standard",
697
- ...s
698
- }) => {
699
- const p = ce(i);
700
- return /* @__PURE__ */ c(l, {
547
+ pinButtonVisible: r,
548
+ onClickPinButton: c,
549
+ isPinned: u,
550
+ ...d
551
+ }) => /* @__PURE__ */ a(
552
+ s,
553
+ {
701
554
  indent: 1,
702
- className: h(O.sidebarMenu, r ? O.collapsed : null, n),
555
+ className: h(q.sidebarMenu, e),
703
556
  style: {
704
- ["--swui-sidebar-menu-item-height"]: p,
705
- ["--swui-nav-bar-height"]: p
557
+ ["--swui-sidebar-menu-item-height"]: "40px"
706
558
  },
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,
559
+ ...d,
560
+ children: [
561
+ /* @__PURE__ */ n(_, { num: 1 }),
562
+ /* @__PURE__ */ n(he, { onClick: o }),
563
+ /* @__PURE__ */ n(
564
+ s,
565
+ {
566
+ className: q.sidebarMenuContent,
567
+ height: "100%",
568
+ background: "var(--current-background-color)",
569
+ children: /* @__PURE__ */ a(f, { justifyContent: "space-between", flex: 1, gap: 1, children: [
570
+ /* @__PURE__ */ n(f, { gap: 1, children: t }),
571
+ r && /* @__PURE__ */ a(f, { children: [
572
+ /* @__PURE__ */ n(
573
+ pe,
574
+ {
575
+ isPinned: u,
576
+ onClick: c
577
+ }
578
+ ),
579
+ /* @__PURE__ */ n(_, {})
580
+ ] })
581
+ ] })
582
+ }
583
+ )
584
+ ]
585
+ }
586
+ ), A = yn(!1), H = () => kn(A), Ge = ({
587
+ closeButtonVisible: e,
588
+ onClickCloseButton: t,
589
+ onClickMenuButton: o,
590
+ children: i
591
+ }) => /* @__PURE__ */ a(
592
+ s,
593
+ {
594
+ position: "fixed",
595
+ left: 0,
596
+ top: 0,
597
+ bottom: 0,
598
+ indent: 0.5,
599
+ spacing: 1,
600
+ gap: 1,
601
+ shadow: "popover",
602
+ background: m("--lhds-color-ui-50"),
603
+ children: [
604
+ /* @__PURE__ */ n(R, { onClick: o, icon: K }),
605
+ /* @__PURE__ */ a(f, { justifyContent: "space-between", flex: 1, gap: 1, children: [
606
+ /* @__PURE__ */ n(f, { gap: 1, children: /* @__PURE__ */ n(A.Provider, { value: !0, children: i }) }),
607
+ e && /* @__PURE__ */ n(
608
+ R,
609
+ {
610
+ icon: Y,
611
+ onClick: t
612
+ }
613
+ )
614
+ ] })
615
+ ]
616
+ }
617
+ ), ge = ({
618
+ label: e
619
+ }) => H() ? null : /* @__PURE__ */ a(s, { height: "32px", justifyContent: "center", indent: 1, children: [
620
+ /* @__PURE__ */ n(_, {}),
621
+ /* @__PURE__ */ n(v, { variant: "overline", size: "smaller", children: e })
622
+ ] }), fe = ({
623
+ label: e,
624
+ leftIcon: t,
625
+ ...o
626
+ }) => 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 = ({
627
+ children: e,
628
+ label: t,
629
+ icon: o,
630
+ popupMinWidth: i = "200px"
631
+ }) => /* @__PURE__ */ n(
632
+ M,
633
+ {
634
+ appendTo: "parent",
635
+ arrow: !1,
636
+ offset: [0, 0],
637
+ placement: "right-start",
638
+ trigger: "focusin mouseenter click",
639
+ disablePadding: !0,
640
+ lazy: !0,
641
+ content: /* @__PURE__ */ n(
642
+ s,
643
+ {
644
+ minWidth: i,
645
+ shadow: "popover",
646
+ spacing: 1,
647
+ indent: 1,
648
+ gap: 2,
649
+ children: /* @__PURE__ */ a(A.Provider, { value: !1, children: [
650
+ /* @__PURE__ */ n(ge, { label: t }),
651
+ e
652
+ ] })
653
+ }
654
+ ),
655
+ children: /* @__PURE__ */ n(R, { icon: o })
656
+ }
657
+ ), Ke = ({
658
+ children: e,
760
659
  label: t,
761
660
  leftIcon: o,
762
- className: r,
763
- initialExpand: a = !1
661
+ className: i,
662
+ initialExpand: r = !1
764
663
  }) => {
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);
664
+ const [c, u] = In(r);
665
+ return H() ? o == null ? null : /* @__PURE__ */ n(me, { label: t, icon: o, children: e }) : /* @__PURE__ */ n(
666
+ L,
667
+ {
668
+ label: t,
669
+ onClick: () => u(!c),
670
+ leftIcon: o,
671
+ className: i,
672
+ expandable: !0,
673
+ expanded: c,
674
+ selected: c,
675
+ children: e
792
676
  }
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);
677
+ );
678
+ }, Qe = (e) => /* @__PURE__ */ n(
679
+ Nn,
680
+ {
681
+ color: m("--lhds-color-ui-400"),
682
+ ...e
802
683
  }
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);
822
- }
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);
849
- }
850
- }), Nn = `1px solid ${v("--lhds-color-orange-400")}`, rt = ({
851
- numItemsSelected: n,
684
+ ), be = `1px solid ${m("--lhds-color-orange-400")}`, Xe = ({
685
+ numItemsSelected: e,
852
686
  label: t,
853
687
  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, {
688
+ rightContent: i
689
+ }) => /* @__PURE__ */ a(
690
+ l,
691
+ {
692
+ indent: 3,
693
+ spacing: !0,
694
+ minHeight: "56px",
695
+ justifyContent: "space-between",
864
696
  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
- });
697
+ borderTop: be,
698
+ background: m("--lhds-color-orange-50"),
699
+ children: [
700
+ /* @__PURE__ */ a(l, { alignItems: "center", children: [
701
+ e != null || t != null ? /* @__PURE__ */ n(b, { children: e != null ? /* @__PURE__ */ a(b, { children: [
702
+ /* @__PURE__ */ n(v, { variant: "bold", children: e }),
703
+ /* @__PURE__ */ n(_, {}),
704
+ /* @__PURE__ */ a(v, { children: [
705
+ "item",
706
+ e === 1 ? "" : "s",
707
+ " selected"
708
+ ] })
709
+ ] }) : t != null ? /* @__PURE__ */ n(b, { children: typeof t == "string" ? /* @__PURE__ */ n(v, { children: t }) : t }) : null }) : null,
710
+ o ? /* @__PURE__ */ a(b, { children: [
711
+ /* @__PURE__ */ n(x, {}),
712
+ /* @__PURE__ */ n(s, { children: o })
713
+ ] }) : null
714
+ ] }),
715
+ /* @__PURE__ */ n(s, { children: i })
716
+ ]
717
+ }
718
+ );
887
719
  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
720
+ Sn as ActionMenuFlatButton,
721
+ Ne as ActionMenuPrimaryButton,
722
+ we as ActionMenuSecondaryButton,
723
+ Me as CheckboxMenu,
724
+ re as Collapsible,
725
+ ae as CollapsibleEmptyContent,
726
+ De as CollapsibleGroupHeading,
727
+ He as CollapsibleList,
728
+ Ee as CollapsibleWithCheckbox,
729
+ ce as ErrorPanel,
730
+ Ue as ErrorScreen,
731
+ se as LoadingPanel,
732
+ Oe as LoadingScreen,
733
+ Se as NavBar,
734
+ $n as NavBarButton,
735
+ je as NavBarHeading,
736
+ Re as NavBarNotificationButton,
737
+ Fe as NavBarPopoverButton,
738
+ Le as NavBarSearchField,
739
+ Pe as NavBarUserButton,
740
+ ze as Notification,
741
+ nn as NotificationHeader,
742
+ $e as NotificationList,
743
+ Te as PageHeader,
744
+ Ve as PageHeaderRow,
745
+ We as PageHeading,
746
+ Xe as SelectedItemsActionsPanel,
747
+ qe as SidebarMenu,
748
+ Ke as SidebarMenuCollapsible,
749
+ ge as SidebarMenuHeading,
750
+ Je as SidebarMenuLink,
751
+ Qe as SidebarMenuSeparator,
752
+ Ge as SidebarRailMenu,
753
+ Ae as Toast,
754
+ Jn as UnreadDot,
755
+ Kn as getIconBgColor
924
756
  };
925
757
  //# sourceMappingURL=index.es.js.map