@stenajs-webui/panels 19.0.0-next.1 → 19.0.0-next.12

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