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