@stenajs-webui/panels 19.0.0-next.53 → 19.0.0-next.55

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