@stenajs-webui/panels 19.0.0-next.9 → 19.0.1

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