@stenajs-webui/panels 19.0.0-next.6 → 19.0.0-next.61

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