@stenajs-webui/panels 19.0.0-next.7 → 19.0.0-next.70

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 +742 -842
  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,894 +1,794 @@
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";
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_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 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 gn, CircledIcon as $, CloseButton as Q, Icon as mn, 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 kn } from "@stenajs-webui/elements";
4
+ import * as wn 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 m, 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 Ee } from "react-transition-group";
12
- const W = ({
13
- renderItems: n,
11
+ const T = ({
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: l,
19
+ menuTop: s,
20
+ onClick: g,
21
+ disableArrow: v = !1,
22
+ buttonRef: x,
23
+ ...en
24
24
  }) => {
25
- const [j, E, g, H] = D(!1), k = Ne(null), P = {
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 G = (C) => {
33
- C.key === "Escape" && (M = !0, g()), (C.key === "Enter" || C.key === " ") && (M = !0);
28
+ fn({ popper: k }) {
29
+ let N = !1;
30
+ const q = (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", G);
35
+ k.addEventListener("keydown", q);
38
36
  },
39
37
  onDestroy() {
40
- I.removeEventListener("keydown", G);
38
+ k.removeEventListener("keydown", q);
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 = k.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 = 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,
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: (k) => {
58
+ g == null || g(k), 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 }), zn = (e) => /* @__PURE__ */ n(T, { buttonComponent: j, ...e }), Pn = "1px solid var(--lhds-color-ui-300)", He = ({
80
+ renderMenu: e,
94
81
  ...t
95
82
  }) => {
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,
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: Pn,
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
- }), Mn = ({
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: l,
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__ */ 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,
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: wn.Children.map(r, (g, v) => /* @__PURE__ */ a(b, { children: [
154
+ v > 0 && /* @__PURE__ */ n(C, {}),
155
+ g
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", W = {
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(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,
174
+ ...o
175
+ }) => /* @__PURE__ */ n(
176
+ j,
177
+ {
178
+ ...o,
179
+ className: p(
180
+ W.navBarButton,
181
+ e && W.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, , 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,
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", qn = "_icon_1wt3y_23", Wn = "_shake_1wt3y_1", w = {
205
+ navBarNotificationButton: Dn,
206
+ unread: On,
207
+ icon: qn,
208
+ shake: Wn
209
+ }, De = ({
210
+ count: e,
229
211
  unread: t = !1,
230
- className: r,
231
- labelClassName: a,
232
- iconClassName: l,
233
- icon: c = ge,
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(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...",
218
+ const s = e > 1;
219
+ return /* @__PURE__ */ n(
220
+ dn,
221
+ {
222
+ ...l,
223
+ leftIcon: c,
224
+ className: p(
225
+ w.navBarNotificationButton,
226
+ t && w.unread,
227
+ s && w.hasCount,
228
+ o
229
+ ),
230
+ label: s ? String(e) : void 0,
231
+ labelClassName: p(r, w.label),
232
+ iconClassName: p(i, w.icon)
233
+ }
234
+ );
235
+ }, Gn = "_navBarSearchFieldInput_q4zl6_1", Xn = "_navBarSearchField_q4zl6_1", Jn = "_withButton_q4zl6_25", Kn = "_clearButton_q4zl6_36", M = {
236
+ navBarSearchFieldInput: Gn,
237
+ navBarSearchField: 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(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,
243
+ wrapperClassName: o,
244
+ showClearButton: r,
245
+ onClickClearButton: i,
272
246
  ...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,
247
+ }) => /* @__PURE__ */ n(
248
+ Ln,
249
+ {
250
+ wrapperClassName: p(
251
+ M.navBarSearchField,
252
+ r ? M.withButton : void 0,
253
+ o
254
+ ),
255
+ className: p(M.navBarSearchFieldInput, t),
256
+ placeholder: e,
257
+ buttonRight: r ? /* @__PURE__ */ n(
258
+ hn,
259
+ {
260
+ className: M.clearButton,
261
+ icon: pn,
262
+ variant: "error",
263
+ onClick: i
264
+ }
265
+ ) : void 0,
266
+ ...c
267
+ }
268
+ ), Qn = "_navBarUserButton_10f9z_1", Vn = {
269
+ navBarUserButton: Qn
270
+ }, qe = ({
271
+ className: e,
272
+ username: t,
273
+ initials: o,
274
+ icon: r = gn,
275
+ iconClassName: i,
276
+ responsiveIconOnly: c = o == null,
277
+ ...l
278
+ }) => /* @__PURE__ */ n(
279
+ zn,
280
+ {
281
+ ...l,
282
+ className: p(Vn.navBarUserButton, e),
283
+ leftIcon: t != null ? r : void 0,
284
+ label: o != null ? o : t,
285
+ forceRound: o != null,
286
+ responsiveIconOnly: c,
287
+ disableArrow: !0
288
+ }
289
+ ), Yn = "_unreadDot_l8bni_1", Zn = "_dot_l8bni_4", G = {
290
+ unreadDot: Yn,
291
+ dot: Zn
292
+ }, ne = ({ children: e }) => /* @__PURE__ */ a("div", { className: G.unreadDot, children: [
293
+ e,
294
+ /* @__PURE__ */ n("div", { className: G.dot })
295
+ ] }), nn = ({
296
+ text: e,
283
297
  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,
298
+ icon: o,
299
+ iconAriaLabel: r,
300
+ contentLeft: i,
301
+ contentRight: c,
302
+ onClose: l,
303
+ unread: s = !1,
304
+ variant: g
305
+ }) => {
306
+ const v = o ? /* @__PURE__ */ n(
307
+ $,
308
+ {
309
+ size: "small",
310
+ icon: o,
311
+ "aria-label": r,
312
+ backgroundColor: ee(s, g)
313
+ }
314
+ ) : void 0;
315
+ return /* @__PURE__ */ a(u, { alignItems: "flex-start", indent: 2, spacing: !0, children: [
316
+ /* @__PURE__ */ a(u, { spacing: !0, gap: 2, flex: 1, alignItems: "flex-start", children: [
317
+ i && /* @__PURE__ */ n(d, { minHeight: 20, justifyContent: "center", children: i }),
318
+ !i && v && (s ? /* @__PURE__ */ n(ne, { children: v }) : v),
319
+ /* @__PURE__ */ a(d, { minHeight: 20, justifyContent: "center", flex: 1, gap: 0.5, children: [
320
+ /* @__PURE__ */ n(_, { variant: "bold", children: e }),
321
+ t && /* @__PURE__ */ n(
322
+ _,
323
+ {
324
+ size: "small",
325
+ color: f(
326
+ s ? "--lhds-color-blue-600" : "--lhds-color-ui-600"
327
+ ),
328
+ children: t
329
+ }
330
+ )
331
+ ] }),
332
+ c
333
+ ] }),
334
+ l && /* @__PURE__ */ n(
335
+ d,
336
+ {
337
+ flex: "none",
338
+ justifyContent: "center",
339
+ height: "calc(20px + 2 * var(--swui-metrics-spacing))",
340
+ children: /* @__PURE__ */ n(Q, { onClick: l })
341
+ }
342
+ )
343
+ ] });
344
+ }, ee = (e, t) => {
345
+ if (!(!e && t === "standard"))
346
+ return "--lhds-color-ui-50";
347
+ }, te = "_notification_1hao0_1", oe = "_body_1hao0_7", re = "_standard_1hao0_13", ae = "_unread_1hao0_14", ie = "_danger_1hao0_19", S = {
348
+ notification: te,
349
+ body: oe,
350
+ standard: re,
351
+ unread: ae,
352
+ danger: ie
353
+ }, We = ({
354
+ variant: e = "standard",
355
+ children: t,
356
+ unread: o,
357
+ ...r
358
+ }) => /* @__PURE__ */ a(
359
+ "div",
360
+ {
361
+ className: p(
362
+ S.notification,
363
+ S[e],
364
+ o && S.unread
365
+ ),
366
+ children: [
367
+ /* @__PURE__ */ n(nn, { ...r, unread: o, variant: e }),
368
+ t && /* @__PURE__ */ n(h, { className: S.body, children: t })
369
+ ]
370
+ }
371
+ ), ce = "_notificationList_1rkvu_1", le = {
372
+ notificationList: ce
373
+ }, Ge = ({
374
+ children: e
375
+ }) => /* @__PURE__ */ a("div", { className: le.notificationList, children: [
376
+ e,
377
+ /* @__PURE__ */ n("div", {})
378
+ ] }), se = "_clickable_1ijxc_1", de = "_nonClickable_1ijxc_27", z = {
379
+ clickable: se,
380
+ nonClickable: de
381
+ }, Xe = ({
382
+ onClick: e,
354
383
  onClickAriaLabel: t,
355
- children: r,
356
- width: a = 264,
357
- maxWidth: l,
384
+ children: o,
385
+ width: r = 264,
386
+ maxWidth: i,
358
387
  ...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;
388
+ }) => /* @__PURE__ */ a(
389
+ d,
390
+ {
391
+ borderRadius: 8,
392
+ background: f("--lhds-color-ui-50"),
393
+ shadow: "popover",
394
+ width: r,
395
+ maxWidth: i,
396
+ role: "alert",
397
+ position: "relative",
398
+ children: [
399
+ /* @__PURE__ */ n(d, { className: p({ [z.nonClickable]: e }), children: /* @__PURE__ */ n(nn, { ...c }) }),
400
+ o && /* @__PURE__ */ a(d, { indent: 3, className: p({ [z.nonClickable]: e }), children: [
401
+ o,
402
+ /* @__PURE__ */ n(m, { num: 2 })
403
+ ] }),
404
+ e && /* @__PURE__ */ n(
405
+ "button",
406
+ {
407
+ onClick: e,
408
+ className: z.clickable,
409
+ "aria-label": t
410
+ }
411
+ )
412
+ ]
438
413
  }
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,
414
+ ), ue = () => /* @__PURE__ */ a(h, { indent: !0, spacing: !0, flex: 1, alignItems: "center", children: [
415
+ /* @__PURE__ */ n(mn, { icon: fn, color: f("--lhds-color-ui-500") }),
416
+ /* @__PURE__ */ n(m, {}),
417
+ /* @__PURE__ */ n(_, { size: "small", color: f("--lhds-color-ui-500"), children: "No content" })
418
+ ] }), he = Mn(
419
+ function({
420
+ label: t,
421
+ contentLeft: o,
422
+ contentRight: r,
423
+ collapsed: i = !1,
424
+ onClick: c,
425
+ disabled: l = !1,
426
+ children: s,
427
+ autoFocus: g = !1,
428
+ ...v
429
+ }, x) {
430
+ return /* @__PURE__ */ n(
431
+ A,
432
+ {
433
+ ...v,
434
+ autoFocus: g,
435
+ ref: x,
436
+ label: t,
437
+ onClick: c,
438
+ disabled: l,
439
+ expandable: !0,
440
+ expanded: !i,
441
+ selected: !i,
442
+ left: o,
443
+ right: r,
444
+ children: s != null ? s : /* @__PURE__ */ n(ue, {})
445
+ }
446
+ );
447
+ }
448
+ ), Je = ({
449
+ children: e
450
+ }) => /* @__PURE__ */ n(h, { gap: 1, children: e }), Ke = ({
451
+ value: e,
513
452
  onValueChange: t,
514
- onChange: r,
515
- indeterminate: a,
516
- checkboxDisabled: l,
453
+ onChange: o,
454
+ indeterminate: r,
455
+ checkboxDisabled: i,
517
456
  ...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,
534
- ...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,
593
- 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,
457
+ }) => /* @__PURE__ */ n(
458
+ he,
459
+ {
460
+ contentLeft: /* @__PURE__ */ n(
461
+ Z,
462
+ {
463
+ value: e,
464
+ indeterminate: r,
465
+ onValueChange: t,
466
+ onChange: o,
467
+ disabled: i,
468
+ onClick: (l) => l.stopPropagation()
469
+ }
470
+ ),
471
+ ...c
472
+ }
473
+ ), Qe = ({ children: e }) => /* @__PURE__ */ n(d, { spacing: !0, indent: !0, children: /* @__PURE__ */ n(_, { variant: "overline", size: "smaller", children: e }) }), pe = ({
474
+ text: e,
619
475
  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",
631
- 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, {
476
+ children: o,
477
+ buttons: r,
478
+ icon: i = _n,
479
+ headingLevel: c = "h3",
480
+ ...l
481
+ }) => {
482
+ const s = !e && !t ? "Something unexpected happened." : e;
483
+ return /* @__PURE__ */ n(vn, { ...l, children: /* @__PURE__ */ n(bn, { children: /* @__PURE__ */ a(h, { spacing: 1, gap: 3, alignItems: "center", children: [
484
+ /* @__PURE__ */ a(h, { alignItems: "center", children: [
485
+ /* @__PURE__ */ n(m, { num: 1 }),
486
+ /* @__PURE__ */ n($, { icon: i, size: "xl" })
487
+ ] }),
488
+ t && /* @__PURE__ */ n(R, { as: c, children: t }),
489
+ s && /* @__PURE__ */ n(_, { children: s }),
490
+ o,
491
+ r && /* @__PURE__ */ a(d, { children: [
492
+ /* @__PURE__ */ n(m, { num: 2 }),
493
+ r
494
+ ] })
495
+ ] }) }) });
496
+ }, Ve = (e) => /* @__PURE__ */ n(
497
+ d,
498
+ {
499
+ width: "100%",
500
+ height: "100%",
501
+ justifyContent: "center",
641
502
  alignItems: "center",
642
- children: a
643
- }), /* @__PURE__ */ e(i, {
644
- style: {
645
- marginLeft: "auto"
646
- },
503
+ children: /* @__PURE__ */ n(pe, { ...e })
504
+ }
505
+ ), ge = ({
506
+ text: e = "Loading..."
507
+ }) => /* @__PURE__ */ a(d, { alignItems: "center", children: [
508
+ /* @__PURE__ */ n(Bn, { size: "small" }),
509
+ /* @__PURE__ */ n(m, { num: 4 }),
510
+ /* @__PURE__ */ n(R, { variant: "h4", children: e })
511
+ ] }), Ye = (e) => /* @__PURE__ */ n(
512
+ d,
513
+ {
514
+ width: "100%",
515
+ height: "100%",
516
+ justifyContent: "center",
647
517
  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,
518
+ children: /* @__PURE__ */ n(ge, { ...e })
519
+ }
520
+ ), Ze = ({
521
+ renderBreadCrumbs: e,
522
+ renderPageHeading: t,
523
+ renderTabs: o,
524
+ children: r
525
+ }) => /* @__PURE__ */ a(d, { shadow: "bottom", background: f("--lhds-color-ui-50"), gap: 2, children: [
526
+ /* @__PURE__ */ a(d, { indent: 3, children: [
527
+ e && /* @__PURE__ */ a(u, { spacing: 1, alignItems: "center", children: [
528
+ /* @__PURE__ */ n(u, { width: "64px", height: "16px" }),
529
+ e()
530
+ ] }),
531
+ t == null ? void 0 : t(),
532
+ o && /* @__PURE__ */ n(m, {}),
533
+ o == null ? void 0 : o()
534
+ ] }),
535
+ r
536
+ ] }), nt = (e) => /* @__PURE__ */ n(u, { indent: 3, spacing: !0, ...e }), et = ({
537
+ icon: e,
538
+ heading: t,
539
+ headingLevel: o = "h2",
540
+ contentLeft: r,
541
+ contentRight: i
542
+ }) => /* @__PURE__ */ a(u, { alignItems: "center", gap: 2, height: "64px", children: [
543
+ /* @__PURE__ */ a(u, { alignItems: "center", children: [
544
+ /* @__PURE__ */ n(u, { width: "64px", alignItems: "center", children: e && /* @__PURE__ */ n($, { icon: e }) }),
545
+ /* @__PURE__ */ n(R, { variant: "h3", as: o, children: t })
546
+ ] }),
547
+ /* @__PURE__ */ n(u, { alignItems: "center", children: r }),
548
+ /* @__PURE__ */ n(u, { style: { marginLeft: "auto" }, alignItems: "center", children: i })
549
+ ] }), me = "_sidebarMenu_1bx5w_1", fe = "_sidebarItems_1bx5w_38", ve = "_scrollContainer_1bx5w_48", P = {
550
+ sidebarMenu: me,
551
+ sidebarItems: fe,
552
+ scrollContainer: ve
553
+ }, be = "_stenaFlag_108h7_1", _e = {
554
+ stenaFlag: be
555
+ }, Be = ({ onClick: e }) => /* @__PURE__ */ a(h, { background: f("--lhds-color-ui-50"), children: [
556
+ /* @__PURE__ */ n(m, {}),
557
+ /* @__PURE__ */ a(
558
+ u,
559
+ {
560
+ justifyContent: "space-between",
561
+ alignItems: "center",
562
+ flex: 1,
563
+ indent: 1,
564
+ minHeight: "48px",
565
+ children: [
566
+ /* @__PURE__ */ n(Q, { onClick: e }),
567
+ /* @__PURE__ */ n(Cn, { className: _e.stenaFlag })
568
+ ]
569
+ }
570
+ )
571
+ ] }), Ce = ({
572
+ isPinned: e,
573
+ onClick: t,
574
+ label: o
575
+ }) => {
576
+ const r = e ? "Unpin menu" : "Pin menu", i = o != null ? o : r;
577
+ return /* @__PURE__ */ n(A, { onClick: t, label: i, leftIcon: e ? V : xn });
578
+ }, tt = ({
579
+ className: e,
671
580
  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, {
581
+ onCloseClick: o,
582
+ variant: r = "standard",
583
+ pinButtonVisible: i,
584
+ onClickPinButton: c,
585
+ bottomItems: l,
586
+ isPinned: s,
587
+ ...g
588
+ }) => /* @__PURE__ */ a(d, { ...g, className: p(P.sidebarMenu, e), children: [
589
+ /* @__PURE__ */ n(Be, { onClick: o }),
590
+ /* @__PURE__ */ n(d, { className: P.scrollContainer, children: /* @__PURE__ */ a(
591
+ h,
592
+ {
593
+ className: P.sidebarItems,
594
+ justifyContent: "space-between",
693
595
  flex: 1,
694
596
  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);
597
+ indent: 1,
598
+ children: [
599
+ /* @__PURE__ */ n(h, { gap: 1, children: t }),
600
+ (l || i) && /* @__PURE__ */ a(h, { gap: 1, children: [
601
+ l,
602
+ i && /* @__PURE__ */ n(
603
+ Ce,
604
+ {
605
+ isPinned: s,
606
+ onClick: c
607
+ }
608
+ ),
609
+ /* @__PURE__ */ n(m, {})
610
+ ] })
611
+ ]
761
612
  }
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);
613
+ ) })
614
+ ] }), F = Sn(!1), U = () => Fn(F), xe = ({
615
+ label: e,
616
+ ...t
617
+ }) => /* @__PURE__ */ n(Y, { label: e, placement: "right", appendTo: document.body, children: /* @__PURE__ */ n(H, { ...t }) }), ot = ({
618
+ closeButtonVisible: e,
619
+ onClickCloseButton: t,
620
+ onClickMenuButton: o,
621
+ children: r,
622
+ bottomItems: i,
623
+ closeButtonTitle: c = "Unpin menu"
624
+ }) => /* @__PURE__ */ a(
625
+ d,
626
+ {
627
+ position: "fixed",
628
+ left: 0,
629
+ top: 0,
630
+ bottom: 0,
631
+ indent: 0.5,
632
+ spacing: 1,
633
+ gap: 1,
634
+ shadow: "popover",
635
+ background: f("--lhds-color-ui-50"),
636
+ children: [
637
+ /* @__PURE__ */ n(H, { onClick: o, icon: K }),
638
+ /* @__PURE__ */ a(h, { justifyContent: "space-between", flex: 1, gap: 1, children: [
639
+ /* @__PURE__ */ n(h, { gap: 1, children: /* @__PURE__ */ n(F.Provider, { value: !0, children: r }) }),
640
+ /* @__PURE__ */ n(h, { gap: 1, children: (i || e) && /* @__PURE__ */ a(F.Provider, { value: !0, children: [
641
+ i,
642
+ e && /* @__PURE__ */ n(
643
+ xe,
644
+ {
645
+ icon: V,
646
+ label: c,
647
+ onClick: t
648
+ }
649
+ )
650
+ ] }) })
651
+ ] })
652
+ ]
771
653
  }
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);
654
+ ), ye = ({
655
+ label: e
656
+ }) => U() ? null : /* @__PURE__ */ a(d, { height: "32px", justifyContent: "center", indent: 1, children: [
657
+ /* @__PURE__ */ n(m, {}),
658
+ /* @__PURE__ */ n(_, { variant: "overline", size: "smaller", children: e })
659
+ ] }), ke = ({
660
+ label: e,
661
+ leftIcon: t,
662
+ ...o
663
+ }) => 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(ke, { ...e }) : /* @__PURE__ */ n(kn, { ...e }), we = ({
664
+ children: e,
665
+ label: t,
666
+ icon: o,
667
+ popupMinWidth: r = "200px"
668
+ }) => /* @__PURE__ */ n(
669
+ L,
670
+ {
671
+ appendTo: "parent",
672
+ arrow: !1,
673
+ offset: [0, 0],
674
+ placement: "right-start",
675
+ trigger: "focusin mouseenter click",
676
+ disablePadding: !0,
677
+ lazy: !0,
678
+ content: /* @__PURE__ */ n(
679
+ d,
680
+ {
681
+ minWidth: r,
682
+ shadow: "popover",
683
+ spacing: 1,
684
+ indent: 1,
685
+ gap: 2,
686
+ children: /* @__PURE__ */ a(F.Provider, { value: !1, children: [
687
+ /* @__PURE__ */ n(ye, { label: t }),
688
+ e
689
+ ] })
690
+ }
691
+ ),
692
+ children: /* @__PURE__ */ n(H, { icon: o })
693
+ }
694
+ ), at = ({
695
+ children: e,
696
+ label: t,
697
+ leftIcon: o,
698
+ className: r,
699
+ initialExpand: i = !1
700
+ }) => {
701
+ const [c, l] = jn(i);
702
+ return U() ? o == null ? null : /* @__PURE__ */ n(we, { label: t, icon: o, children: e }) : /* @__PURE__ */ n(
703
+ A,
704
+ {
705
+ label: t,
706
+ onClick: () => l(!c),
707
+ leftIcon: o,
708
+ className: r,
709
+ expandable: !0,
710
+ expanded: c,
711
+ selected: c,
712
+ children: e
791
713
  }
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);
714
+ );
715
+ }, it = (e) => /* @__PURE__ */ n(
716
+ Rn,
717
+ {
718
+ color: f("--lhds-color-ui-400"),
719
+ ...e
818
720
  }
819
- }), vn = `1px solid ${f("--lhds-color-orange-400")}`, Kn = ({
820
- numItemsSelected: n,
721
+ ), Ie = `1px solid ${f("--lhds-color-orange-400")}`, ct = ({
722
+ numItemsSelected: e,
821
723
  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, {
724
+ afterLabelContent: o,
725
+ rightContent: r
726
+ }) => /* @__PURE__ */ a(
727
+ u,
728
+ {
729
+ indent: 3,
730
+ spacing: !0,
731
+ minHeight: "56px",
732
+ justifyContent: "space-between",
833
733
  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
- });
734
+ borderTop: Ie,
735
+ background: f("--lhds-color-orange-50"),
736
+ children: [
737
+ /* @__PURE__ */ a(u, { alignItems: "center", children: [
738
+ e != null || t != null ? /* @__PURE__ */ n(b, { children: e != null ? /* @__PURE__ */ a(b, { children: [
739
+ /* @__PURE__ */ n(_, { variant: "bold", children: e }),
740
+ /* @__PURE__ */ n(m, {}),
741
+ /* @__PURE__ */ a(_, { children: [
742
+ "item",
743
+ e === 1 ? "" : "s",
744
+ " selected"
745
+ ] })
746
+ ] }) : t != null ? /* @__PURE__ */ n(b, { children: typeof t == "string" ? /* @__PURE__ */ n(_, { children: t }) : t }) : null }) : null,
747
+ o ? /* @__PURE__ */ a(b, { children: [
748
+ /* @__PURE__ */ n(C, {}),
749
+ /* @__PURE__ */ n(d, { children: o })
750
+ ] }) : null
751
+ ] }),
752
+ /* @__PURE__ */ n(d, { children: r })
753
+ ]
754
+ }
755
+ );
856
756
  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
757
+ zn as ActionMenuFlatButton,
758
+ $e as ActionMenuPrimaryButton,
759
+ Ae as ActionMenuSecondaryButton,
760
+ He as CheckboxMenu,
761
+ he as Collapsible,
762
+ ue as CollapsibleEmptyContent,
763
+ Qe as CollapsibleGroupHeading,
764
+ Je as CollapsibleList,
765
+ Ke as CollapsibleWithCheckbox,
766
+ pe as ErrorPanel,
767
+ Ve as ErrorScreen,
768
+ ge as LoadingPanel,
769
+ Ye as LoadingScreen,
770
+ Ee as NavBar,
771
+ Un as NavBarButton,
772
+ Te as NavBarHeading,
773
+ De as NavBarNotificationButton,
774
+ Ue as NavBarPopoverButton,
775
+ Oe as NavBarSearchField,
776
+ qe as NavBarUserButton,
777
+ We as Notification,
778
+ nn as NotificationHeader,
779
+ Ge as NotificationList,
780
+ Ze as PageHeader,
781
+ nt as PageHeaderRow,
782
+ et as PageHeading,
783
+ ct as SelectedItemsActionsPanel,
784
+ tt as SidebarMenu,
785
+ at as SidebarMenuCollapsible,
786
+ ye as SidebarMenuHeading,
787
+ rt as SidebarMenuLink,
788
+ it as SidebarMenuSeparator,
789
+ ot as SidebarRailMenu,
790
+ Xe as Toast,
791
+ ne as UnreadDot,
792
+ ee as getIconBgColor
893
793
  };
894
794
  //# sourceMappingURL=index.es.js.map