@stenajs-webui/panels 19.0.0-next.13 → 19.0.0-next.14

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