@stenajs-webui/panels 19.0.0-next.54 → 19.0.0-next.56
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/components/notifications/NotificationHeader.d.ts +1 -1
- package/dist/index.es.js +245 -267
- 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,11 +1,11 @@
|
|
|
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 G, ActionMenuContext as
|
|
4
|
-
import * as
|
|
5
|
-
import { useRef as
|
|
6
|
-
import { useBoolean as A, Column as g, Box as l, Row as s, Indent as C, Heading as H, Text as
|
|
7
|
-
import { Popover as
|
|
8
|
-
import { Checkbox 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
|
+
import * as Bn from "react";
|
|
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
11
|
const E = ({
|
|
@@ -19,69 +19,69 @@ const E = ({
|
|
|
19
19
|
menuTop: u,
|
|
20
20
|
onClick: p,
|
|
21
21
|
disableArrow: m = !1,
|
|
22
|
-
...
|
|
22
|
+
...j
|
|
23
23
|
}) => {
|
|
24
|
-
const [D, T,
|
|
24
|
+
const [D, T, x, en] = A(!1), w = Cn(null), tn = {
|
|
25
25
|
name: "focusManager",
|
|
26
26
|
defaultValue: !0,
|
|
27
|
-
fn({ popper:
|
|
28
|
-
let
|
|
29
|
-
const O = (
|
|
30
|
-
|
|
27
|
+
fn({ popper: y }) {
|
|
28
|
+
let I = !1;
|
|
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
|
-
|
|
34
|
+
y.addEventListener("keydown", O);
|
|
35
35
|
},
|
|
36
36
|
onDestroy() {
|
|
37
|
-
|
|
37
|
+
y.removeEventListener("keydown", O);
|
|
38
38
|
},
|
|
39
39
|
onMount() {
|
|
40
|
-
var
|
|
41
|
-
|
|
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:
|
|
56
|
-
onClick: (
|
|
57
|
-
p == null || p(
|
|
54
|
+
...j,
|
|
55
|
+
ref: w,
|
|
56
|
+
onClick: (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
65
|
visible: D,
|
|
66
|
-
onClickOutside:
|
|
66
|
+
onClickOutside: x,
|
|
67
67
|
placement: t,
|
|
68
|
-
content: D && /* @__PURE__ */ n(G, { width: d, top: u, trapFocus: !0, children: /* @__PURE__ */ n(
|
|
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
|
-
},
|
|
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
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,
|
|
@@ -95,30 +95,30 @@ const E = ({
|
|
|
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(
|
|
103
|
+
/* @__PURE__ */ n(R, { size: "small", onClick: r, leftIcon: J })
|
|
104
104
|
]
|
|
105
105
|
}
|
|
106
106
|
) })
|
|
107
107
|
}
|
|
108
108
|
);
|
|
109
|
-
},
|
|
110
|
-
navBar:
|
|
111
|
-
},
|
|
109
|
+
}, jn = "_navBar_kzibd_1", Ln = {
|
|
110
|
+
navBar: jn
|
|
111
|
+
}, Pn = ({
|
|
112
112
|
className: e,
|
|
113
113
|
onClick: t
|
|
114
114
|
}) => /* @__PURE__ */ n(
|
|
115
|
-
|
|
115
|
+
R,
|
|
116
116
|
{
|
|
117
117
|
leftIcon: K,
|
|
118
118
|
className: e,
|
|
119
119
|
onClick: t
|
|
120
120
|
}
|
|
121
|
-
),
|
|
121
|
+
), ze = ({
|
|
122
122
|
left: e,
|
|
123
123
|
className: t,
|
|
124
124
|
showMenuButton: o = !1,
|
|
@@ -132,7 +132,7 @@ const E = ({
|
|
|
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,
|
|
@@ -143,13 +143,13 @@ const E = ({
|
|
|
143
143
|
children: [
|
|
144
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
|
] })) }) })
|
|
@@ -164,15 +164,15 @@ const E = ({
|
|
|
164
164
|
]
|
|
165
165
|
}
|
|
166
166
|
);
|
|
167
|
-
},
|
|
168
|
-
navBarButton:
|
|
169
|
-
selected:
|
|
170
|
-
},
|
|
167
|
+
}, zn = "_navBarButton_b3x3w_1", $n = "_selected_b3x3w_14", q = {
|
|
168
|
+
navBarButton: zn,
|
|
169
|
+
selected: $n
|
|
170
|
+
}, An = ({
|
|
171
171
|
selected: e,
|
|
172
172
|
className: t,
|
|
173
173
|
...o
|
|
174
174
|
}) => /* @__PURE__ */ n(
|
|
175
|
-
|
|
175
|
+
R,
|
|
176
176
|
{
|
|
177
177
|
...o,
|
|
178
178
|
className: h(
|
|
@@ -181,63 +181,62 @@ const E = ({
|
|
|
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
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
|
-
}, $e = ({
|
|
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
|
-
icon: c =
|
|
214
|
+
icon: c = sn,
|
|
216
215
|
...d
|
|
217
216
|
}) => {
|
|
218
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
|
-
|
|
226
|
-
t &&
|
|
227
|
-
u &&
|
|
224
|
+
k.navBarNotificationButton,
|
|
225
|
+
t && k.unread,
|
|
226
|
+
u && k.hasCount,
|
|
228
227
|
o
|
|
229
228
|
),
|
|
230
229
|
label: u ? String(e) : void 0,
|
|
231
|
-
labelClassName: h(r,
|
|
232
|
-
iconClassName: h(i,
|
|
230
|
+
labelClassName: h(r, k.label),
|
|
231
|
+
iconClassName: h(i, k.icon)
|
|
233
232
|
}
|
|
234
233
|
);
|
|
235
|
-
},
|
|
236
|
-
navBarSearchFieldInput:
|
|
237
|
-
navBarSearchField:
|
|
238
|
-
withButton:
|
|
239
|
-
clearButton:
|
|
240
|
-
},
|
|
234
|
+
}, Tn = "_navBarSearchFieldInput_q4zl6_1", On = "_navBarSearchField_q4zl6_1", qn = "_withButton_q4zl6_25", Wn = "_clearButton_q4zl6_36", N = {
|
|
235
|
+
navBarSearchFieldInput: Tn,
|
|
236
|
+
navBarSearchField: On,
|
|
237
|
+
withButton: qn,
|
|
238
|
+
clearButton: Wn
|
|
239
|
+
}, Ee = ({
|
|
241
240
|
placeholder: e = "Search",
|
|
242
241
|
className: t,
|
|
243
242
|
wrapperClassName: o,
|
|
@@ -245,54 +244,54 @@ const E = ({
|
|
|
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
|
-
),
|
|
269
|
-
navBarUserButton:
|
|
270
|
-
},
|
|
267
|
+
), Gn = "_navBarUserButton_10f9z_1", Jn = {
|
|
268
|
+
navBarUserButton: Gn
|
|
269
|
+
}, Ue = ({
|
|
271
270
|
className: e,
|
|
272
271
|
username: t,
|
|
273
272
|
initials: o,
|
|
274
|
-
icon: r =
|
|
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
|
-
className: h(
|
|
281
|
+
className: h(Jn.navBarUserButton, e),
|
|
283
282
|
leftIcon: t != null ? r : void 0,
|
|
284
283
|
label: o != null ? o : t,
|
|
285
284
|
forceRound: o != null,
|
|
286
285
|
responsiveIconOnly: c,
|
|
287
286
|
disableArrow: !0
|
|
288
287
|
}
|
|
289
|
-
),
|
|
290
|
-
unreadDot:
|
|
291
|
-
dot:
|
|
292
|
-
},
|
|
288
|
+
), Kn = "_unreadDot_l8bni_1", Qn = "_dot_l8bni_4", W = {
|
|
289
|
+
unreadDot: Kn,
|
|
290
|
+
dot: Qn
|
|
291
|
+
}, Vn = ({ children: e }) => /* @__PURE__ */ a("div", { className: W.unreadDot, children: [
|
|
293
292
|
e,
|
|
294
293
|
/* @__PURE__ */ n("div", { className: W.dot })
|
|
295
|
-
] }),
|
|
294
|
+
] }), nn = ({
|
|
296
295
|
text: e,
|
|
297
296
|
timestamp: t,
|
|
298
297
|
icon: o,
|
|
@@ -309,17 +308,17 @@ const E = ({
|
|
|
309
308
|
size: "small",
|
|
310
309
|
icon: o,
|
|
311
310
|
"aria-label": r,
|
|
312
|
-
backgroundColor:
|
|
311
|
+
backgroundColor: Xn(u, p)
|
|
313
312
|
}
|
|
314
313
|
) : void 0;
|
|
315
314
|
return /* @__PURE__ */ a(s, { alignItems: "flex-start", indent: 2, spacing: !0, children: [
|
|
316
315
|
/* @__PURE__ */ a(s, { spacing: !0, gap: 2, flex: 1, alignItems: "flex-start", children: [
|
|
317
316
|
i && /* @__PURE__ */ n(l, { minHeight: 20, justifyContent: "center", children: i }),
|
|
318
|
-
!i && m && (u ? /* @__PURE__ */ n(
|
|
317
|
+
!i && m && (u ? /* @__PURE__ */ n(Vn, { children: m }) : m),
|
|
319
318
|
/* @__PURE__ */ a(l, { minHeight: 20, justifyContent: "center", flex: 1, gap: 0.5, children: [
|
|
320
|
-
/* @__PURE__ */ n(
|
|
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(
|
|
@@ -337,28 +336,20 @@ const E = ({
|
|
|
337
336
|
flex: "none",
|
|
338
337
|
justifyContent: "center",
|
|
339
338
|
height: "calc(20px + 2 * var(--swui-metrics-spacing))",
|
|
340
|
-
children: /* @__PURE__ */ n(
|
|
341
|
-
x,
|
|
342
|
-
{
|
|
343
|
-
leftIcon: z,
|
|
344
|
-
onClick: d,
|
|
345
|
-
"aria-label": "Close",
|
|
346
|
-
variant: "danger"
|
|
347
|
-
}
|
|
348
|
-
)
|
|
339
|
+
children: /* @__PURE__ */ n(V, { onClick: d })
|
|
349
340
|
}
|
|
350
341
|
)
|
|
351
342
|
] });
|
|
352
|
-
},
|
|
343
|
+
}, Xn = (e, t) => {
|
|
353
344
|
if (!(!e && t === "standard"))
|
|
354
345
|
return "--lhds-color-ui-50";
|
|
355
|
-
},
|
|
356
|
-
notification:
|
|
357
|
-
body:
|
|
358
|
-
standard:
|
|
359
|
-
unread:
|
|
360
|
-
danger:
|
|
361
|
-
},
|
|
346
|
+
}, Yn = "_notification_1hao0_1", Zn = "_body_1hao0_7", ne = "_standard_1hao0_13", ee = "_unread_1hao0_14", te = "_danger_1hao0_19", M = {
|
|
347
|
+
notification: Yn,
|
|
348
|
+
body: Zn,
|
|
349
|
+
standard: ne,
|
|
350
|
+
unread: ee,
|
|
351
|
+
danger: te
|
|
352
|
+
}, De = ({
|
|
362
353
|
variant: e = "standard",
|
|
363
354
|
children: t,
|
|
364
355
|
unread: o,
|
|
@@ -367,26 +358,26 @@ const E = ({
|
|
|
367
358
|
"div",
|
|
368
359
|
{
|
|
369
360
|
className: h(
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
o &&
|
|
361
|
+
M.notification,
|
|
362
|
+
M[e],
|
|
363
|
+
o && M.unread
|
|
373
364
|
),
|
|
374
365
|
children: [
|
|
375
|
-
/* @__PURE__ */ n(
|
|
376
|
-
t && /* @__PURE__ */ n(g, { className:
|
|
366
|
+
/* @__PURE__ */ n(nn, { ...r, unread: o, variant: e }),
|
|
367
|
+
t && /* @__PURE__ */ n(g, { className: M.body, children: t })
|
|
377
368
|
]
|
|
378
369
|
}
|
|
379
|
-
),
|
|
380
|
-
notificationList:
|
|
381
|
-
},
|
|
370
|
+
), oe = "_notificationList_1rkvu_1", re = {
|
|
371
|
+
notificationList: oe
|
|
372
|
+
}, Te = ({
|
|
382
373
|
children: e
|
|
383
|
-
}) => /* @__PURE__ */ a("div", { className:
|
|
374
|
+
}) => /* @__PURE__ */ a("div", { className: re.notificationList, children: [
|
|
384
375
|
e,
|
|
385
376
|
/* @__PURE__ */ n("div", {})
|
|
386
|
-
] }),
|
|
387
|
-
clickable:
|
|
388
|
-
nonClickable:
|
|
389
|
-
},
|
|
377
|
+
] }), ae = "_clickable_1ijxc_1", ie = "_nonClickable_1ijxc_27", L = {
|
|
378
|
+
clickable: ae,
|
|
379
|
+
nonClickable: ie
|
|
380
|
+
}, Oe = ({
|
|
390
381
|
onClick: e,
|
|
391
382
|
onClickAriaLabel: t,
|
|
392
383
|
children: o,
|
|
@@ -404,10 +395,10 @@ const E = ({
|
|
|
404
395
|
role: "alert",
|
|
405
396
|
position: "relative",
|
|
406
397
|
children: [
|
|
407
|
-
/* @__PURE__ */ n(l, { className: h({ [L.nonClickable]: e }), children: /* @__PURE__ */ n(
|
|
398
|
+
/* @__PURE__ */ n(l, { className: h({ [L.nonClickable]: e }), children: /* @__PURE__ */ n(nn, { ...c }) }),
|
|
408
399
|
o && /* @__PURE__ */ a(l, { indent: 3, className: h({ [L.nonClickable]: e }), children: [
|
|
409
400
|
o,
|
|
410
|
-
/* @__PURE__ */ n(
|
|
401
|
+
/* @__PURE__ */ n(_, { num: 2 })
|
|
411
402
|
] }),
|
|
412
403
|
e && /* @__PURE__ */ n(
|
|
413
404
|
"button",
|
|
@@ -419,11 +410,11 @@ const E = ({
|
|
|
419
410
|
)
|
|
420
411
|
]
|
|
421
412
|
}
|
|
422
|
-
),
|
|
423
|
-
/* @__PURE__ */ n(
|
|
424
|
-
/* @__PURE__ */ n(
|
|
425
|
-
/* @__PURE__ */ n(
|
|
426
|
-
] }),
|
|
413
|
+
), ce = () => /* @__PURE__ */ a(g, { indent: !0, spacing: !0, flex: 1, alignItems: "center", children: [
|
|
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(
|
|
427
418
|
function({
|
|
428
419
|
label: t,
|
|
429
420
|
contentLeft: o,
|
|
@@ -434,13 +425,13 @@ const E = ({
|
|
|
434
425
|
children: u,
|
|
435
426
|
autoFocus: p = !1,
|
|
436
427
|
...m
|
|
437
|
-
},
|
|
428
|
+
}, j) {
|
|
438
429
|
return /* @__PURE__ */ n(
|
|
439
|
-
|
|
430
|
+
z,
|
|
440
431
|
{
|
|
441
432
|
...m,
|
|
442
433
|
autoFocus: p,
|
|
443
|
-
ref:
|
|
434
|
+
ref: j,
|
|
444
435
|
label: t,
|
|
445
436
|
onClick: c,
|
|
446
437
|
disabled: d,
|
|
@@ -449,13 +440,13 @@ const E = ({
|
|
|
449
440
|
selected: !i,
|
|
450
441
|
left: o,
|
|
451
442
|
right: r,
|
|
452
|
-
children: u != null ? u : /* @__PURE__ */ n(
|
|
443
|
+
children: u != null ? u : /* @__PURE__ */ n(ce, {})
|
|
453
444
|
}
|
|
454
445
|
);
|
|
455
446
|
}
|
|
456
|
-
),
|
|
447
|
+
), qe = ({
|
|
457
448
|
children: e
|
|
458
|
-
}) => /* @__PURE__ */ n(g, { gap: 1, children: e }),
|
|
449
|
+
}) => /* @__PURE__ */ n(g, { gap: 1, children: e }), We = ({
|
|
459
450
|
value: e,
|
|
460
451
|
onValueChange: t,
|
|
461
452
|
onChange: o,
|
|
@@ -463,10 +454,10 @@ const E = ({
|
|
|
463
454
|
checkboxDisabled: i,
|
|
464
455
|
...c
|
|
465
456
|
}) => /* @__PURE__ */ n(
|
|
466
|
-
|
|
457
|
+
le,
|
|
467
458
|
{
|
|
468
459
|
contentLeft: /* @__PURE__ */ n(
|
|
469
|
-
|
|
460
|
+
Z,
|
|
470
461
|
{
|
|
471
462
|
value: e,
|
|
472
463
|
indeterminate: r,
|
|
@@ -478,33 +469,33 @@ const E = ({
|
|
|
478
469
|
),
|
|
479
470
|
...c
|
|
480
471
|
}
|
|
481
|
-
),
|
|
472
|
+
), Ge = ({ children: e }) => /* @__PURE__ */ n(l, { spacing: !0, indent: !0, children: /* @__PURE__ */ n(v, { variant: "overline", size: "smaller", children: e }) }), se = ({
|
|
482
473
|
text: e = "Something unexpected happened."
|
|
483
|
-
}) => /* @__PURE__ */ n(l, { justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ n(
|
|
474
|
+
}) => /* @__PURE__ */ n(l, { justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ n(gn, { variant: "error", headerText: e }) }), Je = (e) => /* @__PURE__ */ n(
|
|
484
475
|
l,
|
|
485
476
|
{
|
|
486
477
|
width: "100%",
|
|
487
478
|
height: "100%",
|
|
488
479
|
justifyContent: "center",
|
|
489
480
|
alignItems: "center",
|
|
490
|
-
children: /* @__PURE__ */ n(
|
|
481
|
+
children: /* @__PURE__ */ n(se, { ...e })
|
|
491
482
|
}
|
|
492
|
-
),
|
|
483
|
+
), de = ({
|
|
493
484
|
text: e = "Loading..."
|
|
494
485
|
}) => /* @__PURE__ */ a(l, { alignItems: "center", children: [
|
|
495
|
-
/* @__PURE__ */ n(
|
|
496
|
-
/* @__PURE__ */ n(
|
|
486
|
+
/* @__PURE__ */ n(fn, { size: "small" }),
|
|
487
|
+
/* @__PURE__ */ n(_, { num: 4 }),
|
|
497
488
|
/* @__PURE__ */ n(H, { variant: "h4", children: e })
|
|
498
|
-
] }),
|
|
489
|
+
] }), Ke = (e) => /* @__PURE__ */ n(
|
|
499
490
|
l,
|
|
500
491
|
{
|
|
501
492
|
width: "100%",
|
|
502
493
|
height: "100%",
|
|
503
494
|
justifyContent: "center",
|
|
504
495
|
alignItems: "center",
|
|
505
|
-
children: /* @__PURE__ */ n(
|
|
496
|
+
children: /* @__PURE__ */ n(de, { ...e })
|
|
506
497
|
}
|
|
507
|
-
),
|
|
498
|
+
), Qe = ({
|
|
508
499
|
renderBreadCrumbs: e,
|
|
509
500
|
renderPageHeading: t,
|
|
510
501
|
renderTabs: o,
|
|
@@ -516,11 +507,11 @@ const E = ({
|
|
|
516
507
|
e()
|
|
517
508
|
] }),
|
|
518
509
|
t == null ? void 0 : t(),
|
|
519
|
-
o && /* @__PURE__ */ n(
|
|
510
|
+
o && /* @__PURE__ */ n(_, {}),
|
|
520
511
|
o == null ? void 0 : o()
|
|
521
512
|
] }),
|
|
522
513
|
r
|
|
523
|
-
] }),
|
|
514
|
+
] }), Ve = (e) => /* @__PURE__ */ n(s, { indent: 3, spacing: !0, ...e }), Xe = ({
|
|
524
515
|
icon: e,
|
|
525
516
|
heading: t,
|
|
526
517
|
headingLevel: o = "h2",
|
|
@@ -533,12 +524,14 @@ const E = ({
|
|
|
533
524
|
] }),
|
|
534
525
|
/* @__PURE__ */ n(s, { alignItems: "center", children: r }),
|
|
535
526
|
/* @__PURE__ */ n(s, { style: { marginLeft: "auto" }, alignItems: "center", children: i })
|
|
536
|
-
] }),
|
|
537
|
-
sidebarMenu:
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
}, ge =
|
|
541
|
-
|
|
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(_, {}),
|
|
542
535
|
/* @__PURE__ */ a(
|
|
543
536
|
s,
|
|
544
537
|
{
|
|
@@ -548,26 +541,19 @@ const E = ({
|
|
|
548
541
|
indent: 1,
|
|
549
542
|
minHeight: "48px",
|
|
550
543
|
children: [
|
|
551
|
-
/* @__PURE__ */ n(
|
|
552
|
-
|
|
553
|
-
{
|
|
554
|
-
leftIcon: z,
|
|
555
|
-
onClick: e,
|
|
556
|
-
variant: "danger"
|
|
557
|
-
}
|
|
558
|
-
),
|
|
559
|
-
/* @__PURE__ */ n(gn, { className: pe.stenaFlag })
|
|
544
|
+
/* @__PURE__ */ n(V, { onClick: e }),
|
|
545
|
+
/* @__PURE__ */ n(mn, { className: fe.stenaFlag })
|
|
560
546
|
]
|
|
561
547
|
}
|
|
562
548
|
)
|
|
563
|
-
] }),
|
|
549
|
+
] }), be = ({
|
|
564
550
|
isPinned: e,
|
|
565
551
|
onClick: t,
|
|
566
552
|
label: o
|
|
567
553
|
}) => {
|
|
568
554
|
const r = e ? "Unpin menu" : "Pin menu", i = o != null ? o : r;
|
|
569
|
-
return /* @__PURE__ */ n(
|
|
570
|
-
},
|
|
555
|
+
return /* @__PURE__ */ n(z, { onClick: t, label: i, leftIcon: e ? X : bn });
|
|
556
|
+
}, Ye = ({
|
|
571
557
|
className: e,
|
|
572
558
|
children: t,
|
|
573
559
|
onCloseClick: o,
|
|
@@ -577,44 +563,36 @@ const E = ({
|
|
|
577
563
|
bottomItems: d,
|
|
578
564
|
isPinned: u,
|
|
579
565
|
...p
|
|
580
|
-
}) => /* @__PURE__ */ a(
|
|
581
|
-
|
|
582
|
-
{
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
{
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
/* @__PURE__ */ n(B, {})
|
|
608
|
-
] })
|
|
609
|
-
] })
|
|
610
|
-
}
|
|
611
|
-
)
|
|
612
|
-
]
|
|
613
|
-
}
|
|
614
|
-
), R = xn(!1), U = () => yn(R), me = ({
|
|
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 = ({
|
|
615
593
|
label: e,
|
|
616
594
|
...t
|
|
617
|
-
}) => /* @__PURE__ */ n(
|
|
595
|
+
}) => /* @__PURE__ */ n(Y, { label: e, placement: "right", appendTo: document.body, children: /* @__PURE__ */ n($, { ...t }) }), Ze = ({
|
|
618
596
|
closeButtonVisible: e,
|
|
619
597
|
onClickCloseButton: t,
|
|
620
598
|
onClickMenuButton: o,
|
|
@@ -636,13 +614,13 @@ const E = ({
|
|
|
636
614
|
children: [
|
|
637
615
|
/* @__PURE__ */ n($, { onClick: o, icon: K }),
|
|
638
616
|
/* @__PURE__ */ a(g, { justifyContent: "space-between", flex: 1, gap: 1, children: [
|
|
639
|
-
/* @__PURE__ */ n(g, { gap: 1, children: /* @__PURE__ */ n(
|
|
640
|
-
/* @__PURE__ */ n(g, { gap: 1, children: (i || e) && /* @__PURE__ */ a(
|
|
617
|
+
/* @__PURE__ */ n(g, { gap: 1, children: /* @__PURE__ */ n(S.Provider, { value: !0, children: r }) }),
|
|
618
|
+
/* @__PURE__ */ n(g, { gap: 1, children: (i || e) && /* @__PURE__ */ a(S.Provider, { value: !0, children: [
|
|
641
619
|
i,
|
|
642
620
|
e && /* @__PURE__ */ n(
|
|
643
|
-
|
|
621
|
+
ve,
|
|
644
622
|
{
|
|
645
|
-
icon:
|
|
623
|
+
icon: X,
|
|
646
624
|
label: c,
|
|
647
625
|
onClick: t
|
|
648
626
|
}
|
|
@@ -651,22 +629,22 @@ const E = ({
|
|
|
651
629
|
] })
|
|
652
630
|
]
|
|
653
631
|
}
|
|
654
|
-
),
|
|
632
|
+
), _e = ({
|
|
655
633
|
label: e
|
|
656
634
|
}) => U() ? null : /* @__PURE__ */ a(l, { height: "32px", justifyContent: "center", indent: 1, children: [
|
|
657
|
-
/* @__PURE__ */ n(
|
|
658
|
-
/* @__PURE__ */ n(
|
|
659
|
-
] }),
|
|
635
|
+
/* @__PURE__ */ n(_, {}),
|
|
636
|
+
/* @__PURE__ */ n(v, { variant: "overline", size: "smaller", children: e })
|
|
637
|
+
] }), Be = ({
|
|
660
638
|
label: e,
|
|
661
639
|
leftIcon: t,
|
|
662
640
|
...o
|
|
663
|
-
}) => 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 = ({
|
|
664
642
|
children: e,
|
|
665
643
|
label: t,
|
|
666
644
|
icon: o,
|
|
667
645
|
popupMinWidth: r = "200px"
|
|
668
646
|
}) => /* @__PURE__ */ n(
|
|
669
|
-
|
|
647
|
+
F,
|
|
670
648
|
{
|
|
671
649
|
appendTo: "parent",
|
|
672
650
|
arrow: !1,
|
|
@@ -683,24 +661,24 @@ const E = ({
|
|
|
683
661
|
spacing: 1,
|
|
684
662
|
indent: 1,
|
|
685
663
|
gap: 2,
|
|
686
|
-
children: /* @__PURE__ */ a(
|
|
687
|
-
/* @__PURE__ */ n(
|
|
664
|
+
children: /* @__PURE__ */ a(S.Provider, { value: !1, children: [
|
|
665
|
+
/* @__PURE__ */ n(_e, { label: t }),
|
|
688
666
|
e
|
|
689
667
|
] })
|
|
690
668
|
}
|
|
691
669
|
),
|
|
692
670
|
children: /* @__PURE__ */ n($, { icon: o })
|
|
693
671
|
}
|
|
694
|
-
),
|
|
672
|
+
), et = ({
|
|
695
673
|
children: e,
|
|
696
674
|
label: t,
|
|
697
675
|
leftIcon: o,
|
|
698
676
|
className: r,
|
|
699
677
|
initialExpand: i = !1
|
|
700
678
|
}) => {
|
|
701
|
-
const [c, d] =
|
|
702
|
-
return U() ? o == null ? null : /* @__PURE__ */ n(
|
|
703
|
-
|
|
679
|
+
const [c, d] = In(i);
|
|
680
|
+
return U() ? o == null ? null : /* @__PURE__ */ n(Ce, { label: t, icon: o, children: e }) : /* @__PURE__ */ n(
|
|
681
|
+
z,
|
|
704
682
|
{
|
|
705
683
|
label: t,
|
|
706
684
|
onClick: () => d(!c),
|
|
@@ -712,13 +690,13 @@ const E = ({
|
|
|
712
690
|
children: e
|
|
713
691
|
}
|
|
714
692
|
);
|
|
715
|
-
},
|
|
716
|
-
|
|
693
|
+
}, tt = (e) => /* @__PURE__ */ n(
|
|
694
|
+
Nn,
|
|
717
695
|
{
|
|
718
696
|
color: f("--lhds-color-ui-400"),
|
|
719
697
|
...e
|
|
720
698
|
}
|
|
721
|
-
),
|
|
699
|
+
), xe = `1px solid ${f("--lhds-color-orange-400")}`, ot = ({
|
|
722
700
|
numItemsSelected: e,
|
|
723
701
|
label: t,
|
|
724
702
|
afterLabelContent: o,
|
|
@@ -731,20 +709,20 @@ const E = ({
|
|
|
731
709
|
minHeight: "56px",
|
|
732
710
|
justifyContent: "space-between",
|
|
733
711
|
alignItems: "center",
|
|
734
|
-
borderTop:
|
|
712
|
+
borderTop: xe,
|
|
735
713
|
background: f("--lhds-color-orange-50"),
|
|
736
714
|
children: [
|
|
737
715
|
/* @__PURE__ */ a(s, { alignItems: "center", children: [
|
|
738
|
-
e != null || t != null ? /* @__PURE__ */ n(
|
|
739
|
-
/* @__PURE__ */ n(
|
|
740
|
-
/* @__PURE__ */ n(
|
|
741
|
-
/* @__PURE__ */ a(
|
|
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: [
|
|
742
720
|
"item",
|
|
743
721
|
e === 1 ? "" : "s",
|
|
744
722
|
" selected"
|
|
745
723
|
] })
|
|
746
|
-
] }) : t != null ? /* @__PURE__ */ n(
|
|
747
|
-
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: [
|
|
748
726
|
/* @__PURE__ */ n(C, {}),
|
|
749
727
|
/* @__PURE__ */ n(l, { children: o })
|
|
750
728
|
] }) : null
|
|
@@ -754,41 +732,41 @@ const E = ({
|
|
|
754
732
|
}
|
|
755
733
|
);
|
|
756
734
|
export {
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
735
|
+
Rn as ActionMenuFlatButton,
|
|
736
|
+
je as ActionMenuPrimaryButton,
|
|
737
|
+
Le as ActionMenuSecondaryButton,
|
|
738
|
+
Pe as CheckboxMenu,
|
|
739
|
+
le as Collapsible,
|
|
740
|
+
ce as CollapsibleEmptyContent,
|
|
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,
|
|
748
|
+
ze as NavBar,
|
|
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,
|
|
769
|
+
Vn as UnreadDot,
|
|
770
|
+
Xn as getIconBgColor
|
|
793
771
|
};
|
|
794
772
|
//# sourceMappingURL=index.es.js.map
|