@stenajs-webui/panels 19.0.0-next.7 → 19.0.0-next.8
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 +123 -125
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
(function(){"use strict";try{var o=document.createElement("style");o.appendChild(document.createTextNode('._navBar_kzibd_1{--swui-navbar-background-color: var(--lhds-color-ui-50);--swui-navbar-item-background-color-hover: var(--lhds-color-blue-700);--swui-navbar-item-background-color-selected: var(--lhds-color-blue-600);--swui-navbar-item-background-color-selected-hover: var( --lhds-color-blue-700 );--swui-nav-bar-height: 48px;background-color:var(--swui-navbar-background-color);height:var(--swui-nav-bar-height);min-height:var(--swui-nav-bar-height)}._navBarButton_18iz9_1{--swui-nav-bar-button-text-color: var(--lhds-color-blue-600);--swui-nav-bar-button-background-color: transparent;--swui-nav-bar-button-background-color-hover: var(--lhds-color-ui-100);--swui-nav-bar-button-background-color-focus: var(--lhds-color-ui-200);--swui-nav-bar-button-background-color-active: var(--lhds-color-ui-200);--swui-nav-bar-button-background-color-selected: var(--lhds-color-blue-200);--swui-nav-bar-button-background-color-selected-hover: var( --lhds-color-blue-100 );--swui-nav-bar-button-background-color-selected-focus: var( --lhds-color-blue-300 );--swui-nav-bar-button-background-color-selected-active: var( --lhds-color-blue-200 );--swui-flat-button-text-color: var(--swui-nav-bar-button-text-color);--swui-flat-button-icon-color: var(--swui-nav-bar-button-text-color);--swui-flat-button-text-color-active: var(--swui-nav-bar-button-text-color);--swui-flat-button-background-color: var( --swui-nav-bar-button-background-color );--swui-flat-button-background-color-hover: var( --swui-nav-bar-button-background-color-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-button-background-color-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-button-background-color-active )}._navBarButton_18iz9_1._selected_18iz9_36{--swui-flat-button-background-color: var( --swui-nav-bar-button-background-color-selected );--swui-flat-button-background-color-hover: var( --swui-nav-bar-button-background-color-selected-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-button-background-color-selected-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-button-background-color-selected-active )}._navBarNotificationButton_8ej1j_1{--swui-nav-bar-notification-button-text-color: var(--lhds-color-ui-50);--swui-nav-bar-notification-button-background-color: var(--lhds-color-ui-400);--swui-nav-bar-notification-button-background-color-hover: var( --lhds-color-blue-900 );--swui-nav-bar-notification-button-background-color-focus: var( --lhds-color-blue-700 );--swui-nav-bar-notification-button-background-color-active: var( --lhds-color-blue-800 );--swui-nav-bar-notification-button-background-color-unread: var( --lhds-color-red-500 );--swui-nav-bar-notification-button-background-color-unread-hover: var( --lhds-color-red-700 );--swui-nav-bar-notification-button-background-color-unread-focus: var( --lhds-color-red-700 );--swui-nav-bar-notification-button-background-color-unread-active: var( --lhds-color-red-800 );--swui-flat-button-text-color: var( --swui-nav-bar-notification-button-text-color );--swui-flat-button-icon-color: var( --swui-nav-bar-notification-button-text-color );--swui-flat-button-text-color-active: var( --swui-nav-bar-notification-button-text-color );--swui-flat-button-background-color: var( --swui-nav-bar-notification-button-background-color );--swui-flat-button-background-color-hover: var( --swui-nav-bar-notification-button-background-color-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-notification-button-background-color-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-notification-button-background-color-active );--swui-nav-bar-notification-shake-count: 3;transition:.5s width}._navBarNotificationButton_8ej1j_1._unread_8ej1j_54{--swui-flat-button-background-color: var( --swui-nav-bar-notification-button-background-color-unread );--swui-flat-button-background-color-hover: var( --swui-nav-bar-notification-button-background-color-unread-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-notification-button-background-color-unread-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-notification-button-background-color-unread-active )}._navBarNotificationButton_8ej1j_1._unread_8ej1j_54._hasCount_8ej1j_68 ._icon_8ej1j_69{-webkit-transform-origin:top center;transform-origin:top center;-webkit-animation:_shake_8ej1j_1 1.5s ease-in-out var(--swui-nav-bar-notification-shake-count);animation:_shake_8ej1j_1 1.5s ease-in-out var(--swui-nav-bar-notification-shake-count)}@-webkit-keyframes _shake_8ej1j_1{0%{-webkit-transform:rotate(0);transform:rotate(0)}7%{-webkit-transform:rotate(20deg);transform:rotate(20deg)}15%{-webkit-transform:rotate(-20deg);transform:rotate(-20deg)}22%{-webkit-transform:rotate(16deg);transform:rotate(16deg)}30%{-webkit-transform:rotate(-16deg);transform:rotate(-16deg)}38%{-webkit-transform:rotate(6deg);transform:rotate(6deg)}42%{-webkit-transform:rotate(-6deg);transform:rotate(-6deg)}46%{-webkit-transform:rotate(2deg);transform:rotate(2deg)}to{-webkit-transform:rotate(0);transform:rotate(0)}}@keyframes _shake_8ej1j_1{0%{-webkit-transform:rotate(0);transform:rotate(0)}7%{-webkit-transform:rotate(20deg);transform:rotate(20deg)}15%{-webkit-transform:rotate(-20deg);transform:rotate(-20deg)}22%{-webkit-transform:rotate(16deg);transform:rotate(16deg)}30%{-webkit-transform:rotate(-16deg);transform:rotate(-16deg)}38%{-webkit-transform:rotate(6deg);transform:rotate(6deg)}42%{-webkit-transform:rotate(-6deg);transform:rotate(-6deg)}46%{-webkit-transform:rotate(2deg);transform:rotate(2deg)}to{-webkit-transform:rotate(0);transform:rotate(0)}}._navBarSearchFieldInput_rcj0j_1{--swui-textinput-line-height: 2.7rem;--swui-textinput-text-color: var(--lhds-color-ui-50)}._navBarSearchFieldInput_rcj0j_1:focus{--swui-textinput-text-color: var(--lhds-color-ui-800)}._navBarSearchField_rcj0j_1{--swui-textinput-animation-time: var(--swui-animation-time-fast);--swui-textinput-placeholder-color: var(--lhds-color-ui-500);--swui-textinput-bg-color: var(--lhds-color-blue-50);--swui-textinput-border-color: transparent;--swui-textinput-border-color-hover: transparent}._navBarSearchField_rcj0j_1:focus-within{--swui-textinput-text-color: var(--lhds-color-ui-800);--swui-field-text-color: var(--swui-field-text-color);--swui-textinput-icon-color: var(--lhds-color-ui-500);--swui-textinput-bg-color: var(--lhds-color-ui-50)}._navBarUserButton_1cwhm_1{--swui-nav-bar-user-button-text-color: var(--lhds-color-blue-600);--swui-nav-bar-user-button-background-color: var(--lhds-color-ui-50);--swui-nav-bar-user-button-background-color-hover: var(--lhds-color-ui-100);--swui-nav-bar-user-button-background-color-focus: var(--lhds-color-ui-100);--swui-nav-bar-user-button-background-color-active: var(--lhds-color-ui-200);--swui-flat-button-text-color: var(--swui-nav-bar-user-button-text-color);--swui-flat-button-icon-color: var(--swui-nav-bar-user-button-text-color);--swui-flat-button-text-color-active: var( --swui-nav-bar-user-button-text-color );--swui-flat-button-background-color: var( --swui-nav-bar-user-button-background-color );--swui-flat-button-background-color-hover: var( --swui-nav-bar-user-button-background-color-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-user-button-background-color-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-user-button-background-color-active );--swui-button-border-radius: 16px;--swui-button-border-radius-icon-only: 16px}._navBarUserButton_1cwhm_1._initials_1cwhm_31{width:32px}._clickable_1ijxc_1{--swui-toast-border-color: transparent;--swui-toast-item-border-color-hover: var(--lhds-color-blue-500);--current-border-color: var(--swui-toast-border-color);border-width:1px;border-style:solid;border-color:var(--current-border-color);position:absolute;top:0;left:0;right:0;bottom:0;border-radius:8px;background-color:transparent;width:100%;cursor:pointer}._clickable_1ijxc_1:hover{--current-border-color: var(--swui-toast-item-border-color-hover)}._nonClickable_1ijxc_27{position:relative;z-index:1;pointer-events:none}._nonClickable_1ijxc_27 a,._nonClickable_1ijxc_27 button{pointer-events:auto}._collapsible_1nroa_1{--swui-collapsible-animation-time: var(--swui-animation-time-fast);--swui-collapsible-expanded-line-background-color: var( --swui-primary-action-color );--swui-collapsible-header-text-color: var(--lhds-color-ui-900);--swui-collapsible-header-background-color: var(--swui-white);--swui-collapsible-header-background-color-hover: var(--lhds-color-blue-100);--swui-collapsible-header-background-color-active: var(--lhds-color-blue-100);--swui-collapsible-header-border-color: var(--lhds-color-ui-300);--swui-collapsible-header-border-color-focus: var( --swui-primary-action-color );--swui-collapsible-header-focus-shadow: var(--swui-field-focus-shadow);--swui-collapsible-header-content-margin: calc( var(--swui-metrics-indent) * 2 );--swui-collapsible-header-font-weight: var(--swui-font-weight-text-bold);--swui-collapsible-header-indicator-color: var(--swui-primary-action-color);--swui-collapsible-header-indicator-color-collapsed: var(--lhds-color-ui-500);--swui-collapsible-header-indicator-color-hover: var( --swui-primary-action-color );--swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0;--swui-collapsible-content-background-color: var(--lhds-color-ui-100);--swui-collapsible-content-border-color: var(--lhds-color-ui-300);--swui-collapsible-content-padding: var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 2);--swui-collapsible-groupheading-font-size: var(--swui-font-size-smaller);--swui-collapsible-groupheading-text-color: var(--lhds-color-ui-600);--swui-collapsible-min-height: 40px}._collapsible_1nroa_1 ._header_1nroa_46{background-color:var(--swui-collapsible-header-background-color);width:100%;text-align:left;min-height:var(--swui-collapsible-min-height);box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--swui-collapsible-header-border-color);padding:var(--swui-collapsible-header-padding)}._collapsible_1nroa_1 ._header_1nroa_46 ._indicator_1nroa_59{transition:all var(--swui-collapsible-animation-time) ease-in-out;margin-left:var(--swui-collapsible-header-content-margin);color:var(--swui-collapsible-header-indicator-color)}._collapsible_1nroa_1 ._header_1nroa_46:not(:disabled):hover:not(:active){background-color:var(--swui-collapsible-header-background-color-hover)}._collapsible_1nroa_1 ._header_1nroa_46:not(:disabled):hover:not(:active) ._indicator_1nroa_59{color:var(--swui-collapsible-header-indicator-color-hover)}._collapsible_1nroa_1 ._header_1nroa_46:focus-visible{outline:1px solid var(--swui-collapsible-header-border-color-focus);outline-offset:-1px;box-shadow:var(--swui-collapsible-header-focus-shadow)}._collapsible_1nroa_1 ._header_1nroa_46:active{background:var(--swui-collapsible-header-background-color-active)}._collapsible_1nroa_1 ._header_1nroa_46:disabled{cursor:not-allowed}._collapsible_1nroa_1{position:relative}._collapsible_1nroa_1:before{content:"";position:absolute;width:2px;background:var(--swui-collapsible-expanded-line-background-color);top:0;bottom:0;left:0;z-index:1}._collapsible_1nroa_1 ._headerText_1nroa_103{font-weight:var(--swui-collapsible-header-font-weight)}._collapsible_1nroa_1[aria-expanded=false]{--swui-collapsible-expanded-line-background-color: transparent}._collapsible_1nroa_1[aria-expanded=false] ._indicator_1nroa_59{color:var(--swui-collapsible-header-indicator-color-collapsed)}._collapsible_1nroa_1 ._label_1nroa_114{margin-right:auto}._collapsible_1nroa_1 ._label_1nroa_114 span{--current-line-height: 1;font-weight:var(--swui-collapsible-header-font-weight)}._collapsible_1nroa_1 ._contentLeft_1nroa_123,._collapsible_1nroa_1 ._contentRight_1nroa_124{display:flex}._collapsible_1nroa_1 ._contentLeft_1nroa_123 button,._collapsible_1nroa_1 ._contentRight_1nroa_124 button{cursor:pointer}._collapsible_1nroa_1 ._contentLeft_1nroa_123{margin-right:var(--swui-collapsible-header-content-margin)}._collapsible_1nroa_1 ._contentRight_1nroa_124{margin-left:auto}._collapsible_1nroa_1 ._content_1nroa_123{display:flex;align-items:center;justify-content:stretch;background:var(--swui-collapsible-content-background-color);padding:var(--swui-collapsible-content-padding);min-height:var(--swui-collapsible-min-height);box-sizing:border-box}._collapsible_1nroa_1 ._content_1nroa_123:last-child{border-bottom:1px solid var(--swui-collapsible-content-border-color)}._collapsible_1nroa_1 ._content_1nroa_123._groupHeading_1nroa_155{border:none;font-size:var(--swui-collapsible-groupheading-font-size);font-family:var(--swui-font-primary);color:var(--swui-collapsible-groupheading-text-color);text-transform:uppercase;font-weight:var(--swui-font-weight-text-bold);letter-spacing:.1rem}._collapsible_1nroa_1 ._content_1nroa_123 [data-hidden=true]{display:none}._collapsible_1nroa_1 ._content_1nroa_123:hover [data-hidden=true]{display:inherit}._collapsible_1nroa_1 ._content_1nroa_123:hover [data-hover=true]{color:var(--swui-collapsible-header-indicator-color-hover)}._collapsible_1nroa_1 ._contentEnter_1nroa_180{opacity:0}._collapsible_1nroa_1 ._contentEnterActive_1nroa_184{opacity:1;transition:opacity var(--swui-collapsible-animation-time) ease-in-out}._collapsible_1nroa_1 ._contentExitDone_1nroa_189{display:none}._collapsible_1nroa_1 button._content_1nroa_123{font-family:var(--swui-font-primary);font-size:inherit;width:100%;text-align:left}._collapsible_1nroa_1 button._content_1nroa_123:focus-visible{outline:1px solid var(--swui-collapsible-header-border-color-focus);outline-offset:-1px;box-shadow:var(--swui-collapsible-header-focus-shadow)}._collapsible_1nroa_1 button._content_1nroa_123:not(:disabled):hover{background-color:var(--swui-collapsible-header-background-color-hover)}._collapsible_1nroa_1 button._content_1nroa_123:disabled{cursor:not-allowed}._collapsible_1nroa_1 button._content_1nroa_123:focus-within [data-hidden=true]{display:inherit}._collapsible_1nroa_1 ._collapsible_1nroa_1{--swui-collapsible-header-background-color: var( --swui-collapsible-content-background-color );--swui-collapsible-header-font-weight: normal}._collapsible_1nroa_1 ._collapsible_1nroa_1{--swui-collapsible-content-padding: var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 2) var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 4)}._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1{--swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0 calc(var(--swui-metrics-indent) * 4);--swui-collapsible-content-padding: var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 2) var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 6)}._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1{--swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0 calc(var(--swui-metrics-indent) * 6);--swui-collapsible-content-padding: var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 2) var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 8)}._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1{--swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0 calc(var(--swui-metrics-indent) * 8);--swui-collapsible-content-padding: var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 2) var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 10)}._sidebarMenu_tg9i7_1{--swui-sidebar-menu-separator-color: var(--swui-white);--swui-sidebar-menu-text-color: var(--lhds-color-ui-900);--swui-sidebar-menu-icon-color: var(--lhds-color-ui-900);--swui-sidebar-menu-background-color: transparent;--swui-sidebar-menu-background-color-hover: var(--lhds-color-ui-400);--swui-sidebar-menu-background-color-focus: var(--lhds-color-ui-400);--swui-sidebar-menu-background-color-active: var(--lhds-color-ui-300);--swui-sidebar-menu-background-selected: var(--lhds-color-blue-100);--swui-sidebar-menu-background-selected-hover: var(--lhds-color-blue-200);--swui-sidebar-menu-background-selected-focus: var(--lhds-color-blue-200);--swui-sidebar-menu-background-selected-active: var(--lhds-color-blue-100);--current-separator-color: var(--swui-sidebar-menu-separator-color);--current-text-color: var(--swui-sidebar-menu-text-color);--current-icon-color: var(--swui-sidebar-menu-icon-color);--current-background-color: var(--swui-sidebar-menu-background-color);--current-background-color-hover: var( --swui-sidebar-menu-background-color-hover );--current-background-color-focus: var( --swui-sidebar-menu-background-color-focus );--current-background-color-active: var( --swui-sidebar-menu-background-color-active );--current-background-selected: var(--swui-sidebar-menu-background-selected);--current-background-selected-hover: var( --swui-sidebar-menu-background-selected-hover );--current-background-selected-focus: var( --swui-sidebar-menu-background-selected-focus );--current-background-selected-active: var( --swui-sidebar-menu-background-selected-active );background-color:var(--current-background-color);height:100vh}._sidebarMenu_tg9i7_1[data-collapsed]{width:var(--swui-sidebar-menu-item-height)}._sidebarMenu_tg9i7_1 button{--swui-button-text-color: var(--swui-white);--swui-button-background-color-hover: var( --swui-sidebar-menu-background-color-hover )}._stenaFlag_108h7_1{height:32px}')),document.head.appendChild(o)}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
-
import { ActionMenu as Y, ActionMenuContext as
|
|
2
|
+
import { ActionMenu as Y, ActionMenuContext as se, stenaAngleDown as $, PrimaryButton as de, SecondaryButton as ue, FlatButton as _, stenaHamburger as he, stenaBellFilled as pe, Icon as F, stenaSearch as ge, stenaUserCircle as me, stenaTimes as Z, stenaMail as fe, stenaAngleUp as be, Banner as ve, Spinner as _e, CircledIcon as Ce, StenaFlag as xe, MenuButtonLink as Be, MenuButton as ye } from "@stenajs-webui/elements";
|
|
3
3
|
import * as ee from "react";
|
|
4
|
-
import { useRef as
|
|
5
|
-
import { useBoolean as D, Column as S, Box as d, Row as i, Indent as x, Heading as U, Clickable as V, Txt as J, Space as b, Text as B, SeparatorLine as
|
|
4
|
+
import { useRef as ke, useMemo as Ne, forwardRef as Ie, useState as we } from "react";
|
|
5
|
+
import { useBoolean as D, Column as S, Box as d, Row as i, Indent as x, Heading as U, Clickable as V, Txt as J, Space as b, Text as B, SeparatorLine as Se, exhaustSwitchCaseElseThrow as ne } from "@stenajs-webui/core";
|
|
6
6
|
import { Popover as R } from "@stenajs-webui/tooltip";
|
|
7
|
-
import { jsx as e, jsxs as
|
|
8
|
-
import { Checkbox as
|
|
7
|
+
import { jsx as e, jsxs as l, Fragment as m } from "react/jsx-runtime";
|
|
8
|
+
import { Checkbox as te, TextInput as je } from "@stenajs-webui/forms";
|
|
9
9
|
import h from "classnames";
|
|
10
10
|
import { cssColor as f } from "@stenajs-webui/theme";
|
|
11
11
|
import { CSSTransition as Ee } from "react-transition-group";
|
|
@@ -14,7 +14,7 @@ const W = ({
|
|
|
14
14
|
placement: t = "bottom",
|
|
15
15
|
buttonComponent: r,
|
|
16
16
|
rightIcon: a = $,
|
|
17
|
-
portalTarget:
|
|
17
|
+
portalTarget: o = "parent",
|
|
18
18
|
zIndex: c,
|
|
19
19
|
menuWidth: u,
|
|
20
20
|
menuTop: p,
|
|
@@ -22,7 +22,7 @@ const W = ({
|
|
|
22
22
|
disableArrow: y = !1,
|
|
23
23
|
...A
|
|
24
24
|
}) => {
|
|
25
|
-
const [j, E, g, H] = D(!1), k =
|
|
25
|
+
const [j, E, g, H] = D(!1), k = ke(null), P = {
|
|
26
26
|
name: "focusManager",
|
|
27
27
|
defaultValue: !0,
|
|
28
28
|
fn({
|
|
@@ -48,7 +48,7 @@ const W = ({
|
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
}, N =
|
|
51
|
+
}, N = Ne(() => ({
|
|
52
52
|
open: E,
|
|
53
53
|
close: g
|
|
54
54
|
}), [E, g]), z = (I) => {
|
|
@@ -63,13 +63,13 @@ const W = ({
|
|
|
63
63
|
width: u,
|
|
64
64
|
top: p,
|
|
65
65
|
trapFocus: !0,
|
|
66
|
-
children: /* @__PURE__ */ e(
|
|
66
|
+
children: /* @__PURE__ */ e(se.Provider, {
|
|
67
67
|
value: N,
|
|
68
68
|
children: n(g)
|
|
69
69
|
})
|
|
70
70
|
}),
|
|
71
71
|
arrow: !1,
|
|
72
|
-
appendTo:
|
|
72
|
+
appendTo: o,
|
|
73
73
|
zIndex: c,
|
|
74
74
|
plugins: [P],
|
|
75
75
|
lazy: !0,
|
|
@@ -81,10 +81,10 @@ const W = ({
|
|
|
81
81
|
})
|
|
82
82
|
});
|
|
83
83
|
}, Sn = (n) => /* @__PURE__ */ e(W, {
|
|
84
|
-
buttonComponent:
|
|
84
|
+
buttonComponent: de,
|
|
85
85
|
...n
|
|
86
86
|
}), jn = (n) => /* @__PURE__ */ e(W, {
|
|
87
|
-
buttonComponent:
|
|
87
|
+
buttonComponent: ue,
|
|
88
88
|
...n
|
|
89
89
|
}), Me = (n) => /* @__PURE__ */ e(W, {
|
|
90
90
|
buttonComponent: _,
|
|
@@ -93,27 +93,27 @@ const W = ({
|
|
|
93
93
|
renderMenu: n,
|
|
94
94
|
...t
|
|
95
95
|
}) => {
|
|
96
|
-
const [r, a,
|
|
96
|
+
const [r, a, o] = D(!1);
|
|
97
97
|
return /* @__PURE__ */ e(R, {
|
|
98
|
-
onClickOutside:
|
|
98
|
+
onClickOutside: o,
|
|
99
99
|
arrow: !1,
|
|
100
100
|
visible: r,
|
|
101
101
|
disablePadding: !0,
|
|
102
102
|
content: n ? /* @__PURE__ */ e(S, {
|
|
103
103
|
children: /* @__PURE__ */ e(Y, {
|
|
104
|
-
children: n(
|
|
104
|
+
children: n(o)
|
|
105
105
|
})
|
|
106
106
|
}) : void 0,
|
|
107
107
|
placement: "bottom-start",
|
|
108
108
|
children: /* @__PURE__ */ e(d, {
|
|
109
109
|
display: "inline-block",
|
|
110
|
-
children: /* @__PURE__ */
|
|
110
|
+
children: /* @__PURE__ */ l(i, {
|
|
111
111
|
spacing: 0.5,
|
|
112
112
|
indent: !0,
|
|
113
113
|
alignItems: "center",
|
|
114
114
|
border: Fe,
|
|
115
115
|
borderRadius: "4px",
|
|
116
|
-
children: [/* @__PURE__ */ e(
|
|
116
|
+
children: [/* @__PURE__ */ e(te, {
|
|
117
117
|
...t
|
|
118
118
|
}), /* @__PURE__ */ e(x, {
|
|
119
119
|
num: 0.5
|
|
@@ -127,11 +127,11 @@ const W = ({
|
|
|
127
127
|
});
|
|
128
128
|
}, Re = "_navBar_kzibd_1", Ae = {
|
|
129
129
|
navBar: Re
|
|
130
|
-
},
|
|
130
|
+
}, re = ({
|
|
131
131
|
className: n,
|
|
132
132
|
onClick: t
|
|
133
133
|
}) => /* @__PURE__ */ e(_, {
|
|
134
|
-
leftIcon:
|
|
134
|
+
leftIcon: he,
|
|
135
135
|
className: n,
|
|
136
136
|
onClick: t
|
|
137
137
|
}), Mn = ({
|
|
@@ -139,25 +139,25 @@ const W = ({
|
|
|
139
139
|
className: t,
|
|
140
140
|
showMenuButton: r = !1,
|
|
141
141
|
children: a,
|
|
142
|
-
right:
|
|
142
|
+
right: o,
|
|
143
143
|
center: c,
|
|
144
144
|
onClickMenuButton: u
|
|
145
145
|
}) => {
|
|
146
146
|
const p = c ? 1 : void 0;
|
|
147
|
-
return /* @__PURE__ */
|
|
147
|
+
return /* @__PURE__ */ l(i, {
|
|
148
148
|
justifyContent: "space-between",
|
|
149
149
|
className: h(Ae.navBar, t),
|
|
150
|
-
children: [/* @__PURE__ */
|
|
150
|
+
children: [/* @__PURE__ */ l(i, {
|
|
151
151
|
flex: p,
|
|
152
152
|
justifyContent: "flex-start",
|
|
153
153
|
alignItems: "center",
|
|
154
|
-
children: [/* @__PURE__ */
|
|
154
|
+
children: [/* @__PURE__ */ l(i, {
|
|
155
155
|
width: "86px",
|
|
156
156
|
alignItems: "center",
|
|
157
|
-
children: [/* @__PURE__ */ e(x, {}), r && /* @__PURE__ */ e(
|
|
157
|
+
children: [/* @__PURE__ */ e(x, {}), r && /* @__PURE__ */ e(re, {
|
|
158
158
|
onClick: u
|
|
159
159
|
})]
|
|
160
|
-
}), n && /* @__PURE__ */
|
|
160
|
+
}), n && /* @__PURE__ */ l(m, {
|
|
161
161
|
children: [n, /* @__PURE__ */ e(x, {
|
|
162
162
|
num: 2
|
|
163
163
|
})]
|
|
@@ -165,7 +165,7 @@ const W = ({
|
|
|
165
165
|
children: /* @__PURE__ */ e(i, {
|
|
166
166
|
justifyContent: "center",
|
|
167
167
|
alignItems: "center",
|
|
168
|
-
children: ee.Children.map(a, (v, y) => /* @__PURE__ */
|
|
168
|
+
children: ee.Children.map(a, (v, y) => /* @__PURE__ */ l(m, {
|
|
169
169
|
children: [y > 0 && /* @__PURE__ */ e(x, {}), v]
|
|
170
170
|
}))
|
|
171
171
|
})
|
|
@@ -174,11 +174,11 @@ const W = ({
|
|
|
174
174
|
justifyContent: "center",
|
|
175
175
|
alignItems: "center",
|
|
176
176
|
children: c
|
|
177
|
-
}), /* @__PURE__ */
|
|
177
|
+
}), /* @__PURE__ */ l(i, {
|
|
178
178
|
justifyContent: "flex-end",
|
|
179
179
|
alignItems: "center",
|
|
180
180
|
flex: p,
|
|
181
|
-
children: [
|
|
181
|
+
children: [o, /* @__PURE__ */ e(x, {
|
|
182
182
|
num: 2
|
|
183
183
|
})]
|
|
184
184
|
})]
|
|
@@ -203,14 +203,14 @@ const W = ({
|
|
|
203
203
|
children: t,
|
|
204
204
|
...r
|
|
205
205
|
}) => {
|
|
206
|
-
const [a, ,
|
|
206
|
+
const [a, , o, c] = D(!1);
|
|
207
207
|
return /* @__PURE__ */ e(R, {
|
|
208
|
-
onClickOutside:
|
|
208
|
+
onClickOutside: o,
|
|
209
209
|
triggerTarget: document.body,
|
|
210
210
|
visible: a,
|
|
211
|
-
content: /* @__PURE__ */
|
|
211
|
+
content: /* @__PURE__ */ l(m, {
|
|
212
212
|
children: [n && n({
|
|
213
|
-
close:
|
|
213
|
+
close: o
|
|
214
214
|
}), t]
|
|
215
215
|
}),
|
|
216
216
|
children: /* @__PURE__ */ e(ze, {
|
|
@@ -229,8 +229,8 @@ const W = ({
|
|
|
229
229
|
unread: t = !1,
|
|
230
230
|
className: r,
|
|
231
231
|
labelClassName: a,
|
|
232
|
-
iconClassName:
|
|
233
|
-
icon: c =
|
|
232
|
+
iconClassName: o,
|
|
233
|
+
icon: c = pe,
|
|
234
234
|
...u
|
|
235
235
|
}) => {
|
|
236
236
|
const p = n > 0;
|
|
@@ -240,7 +240,7 @@ const W = ({
|
|
|
240
240
|
className: h(t && w.unread, p && w.hasCount, w.navBarNotificationButton, r),
|
|
241
241
|
label: p ? String(n) : void 0,
|
|
242
242
|
labelClassName: h(a, w.label),
|
|
243
|
-
iconClassName: h(
|
|
243
|
+
iconClassName: h(o, w.icon)
|
|
244
244
|
});
|
|
245
245
|
}, Ue = "_navBarSearchFieldInput_rcj0j_1", Ve = "_navBarSearchField_rcj0j_1", Q = {
|
|
246
246
|
navBarSearchFieldInput: Ue,
|
|
@@ -256,7 +256,7 @@ const W = ({
|
|
|
256
256
|
placeholder: n,
|
|
257
257
|
contentRight: /* @__PURE__ */ e(V, {
|
|
258
258
|
children: /* @__PURE__ */ e(F, {
|
|
259
|
-
icon:
|
|
259
|
+
icon: ge
|
|
260
260
|
})
|
|
261
261
|
}),
|
|
262
262
|
...a
|
|
@@ -267,8 +267,8 @@ const W = ({
|
|
|
267
267
|
className: n,
|
|
268
268
|
username: t,
|
|
269
269
|
initials: r,
|
|
270
|
-
icon: a =
|
|
271
|
-
iconClassName:
|
|
270
|
+
icon: a = me,
|
|
271
|
+
iconClassName: o,
|
|
272
272
|
...c
|
|
273
273
|
}) => /* @__PURE__ */ e(Me, {
|
|
274
274
|
...c,
|
|
@@ -278,20 +278,20 @@ const W = ({
|
|
|
278
278
|
leftIcon: t != null ? a : void 0,
|
|
279
279
|
label: r != null ? r : t,
|
|
280
280
|
disableArrow: !0
|
|
281
|
-
}),
|
|
281
|
+
}), ae = ({
|
|
282
282
|
text: n,
|
|
283
283
|
timestamp: t,
|
|
284
284
|
icon: r,
|
|
285
285
|
iconAriaLabel: a,
|
|
286
|
-
iconColor:
|
|
286
|
+
iconColor: o,
|
|
287
287
|
contentLeft: c,
|
|
288
288
|
contentRight: u,
|
|
289
289
|
onClose: p
|
|
290
|
-
}) => /* @__PURE__ */
|
|
290
|
+
}) => /* @__PURE__ */ l(i, {
|
|
291
291
|
alignItems: "flex-start",
|
|
292
292
|
indent: !0,
|
|
293
293
|
spacing: !0,
|
|
294
|
-
children: [/* @__PURE__ */
|
|
294
|
+
children: [/* @__PURE__ */ l(i, {
|
|
295
295
|
indent: 2,
|
|
296
296
|
spacing: !0,
|
|
297
297
|
gap: 2,
|
|
@@ -304,9 +304,9 @@ const W = ({
|
|
|
304
304
|
}), !c && r && /* @__PURE__ */ e(F, {
|
|
305
305
|
icon: r,
|
|
306
306
|
size: 20,
|
|
307
|
-
color:
|
|
307
|
+
color: o,
|
|
308
308
|
"aria-label": a
|
|
309
|
-
}), /* @__PURE__ */
|
|
309
|
+
}), /* @__PURE__ */ l(d, {
|
|
310
310
|
minHeight: 20,
|
|
311
311
|
justifyContent: "center",
|
|
312
312
|
flex: 1,
|
|
@@ -335,12 +335,12 @@ const W = ({
|
|
|
335
335
|
}), zn = ({
|
|
336
336
|
children: n,
|
|
337
337
|
...t
|
|
338
|
-
}) => /* @__PURE__ */
|
|
338
|
+
}) => /* @__PURE__ */ l(S, {
|
|
339
339
|
background: "var(--lhds-color-ui-50)",
|
|
340
340
|
borderRadius: "var(--swui-border-radius)",
|
|
341
|
-
children: [/* @__PURE__ */ e(
|
|
341
|
+
children: [/* @__PURE__ */ e(ae, {
|
|
342
342
|
...t
|
|
343
|
-
}), n && /* @__PURE__ */
|
|
343
|
+
}), n && /* @__PURE__ */ l(S, {
|
|
344
344
|
indent: 3,
|
|
345
345
|
children: [n, /* @__PURE__ */ e(b, {
|
|
346
346
|
num: 2
|
|
@@ -354,24 +354,24 @@ const W = ({
|
|
|
354
354
|
onClickAriaLabel: t,
|
|
355
355
|
children: r,
|
|
356
356
|
width: a = 264,
|
|
357
|
-
maxWidth:
|
|
357
|
+
maxWidth: o,
|
|
358
358
|
...c
|
|
359
|
-
}) => /* @__PURE__ */
|
|
359
|
+
}) => /* @__PURE__ */ l(d, {
|
|
360
360
|
borderRadius: 8,
|
|
361
361
|
background: f("--lhds-color-ui-50"),
|
|
362
362
|
shadow: "popover",
|
|
363
363
|
width: a,
|
|
364
|
-
maxWidth:
|
|
364
|
+
maxWidth: o,
|
|
365
365
|
role: "alert",
|
|
366
366
|
position: "relative",
|
|
367
367
|
children: [/* @__PURE__ */ e(d, {
|
|
368
368
|
className: h({
|
|
369
369
|
[O.nonClickable]: n
|
|
370
370
|
}),
|
|
371
|
-
children: /* @__PURE__ */ e(
|
|
371
|
+
children: /* @__PURE__ */ e(ae, {
|
|
372
372
|
...c
|
|
373
373
|
})
|
|
374
|
-
}), r && /* @__PURE__ */
|
|
374
|
+
}), r && /* @__PURE__ */ l(d, {
|
|
375
375
|
indent: 3,
|
|
376
376
|
className: h({
|
|
377
377
|
[O.nonClickable]: n
|
|
@@ -397,28 +397,28 @@ const W = ({
|
|
|
397
397
|
contentEnter: an,
|
|
398
398
|
contentEnterActive: on,
|
|
399
399
|
contentExitDone: ln
|
|
400
|
-
}, q = () => /* @__PURE__ */
|
|
400
|
+
}, q = () => /* @__PURE__ */ l(S, {
|
|
401
401
|
indent: !0,
|
|
402
402
|
spacing: !0,
|
|
403
403
|
flex: 1,
|
|
404
404
|
alignItems: "center",
|
|
405
405
|
children: [/* @__PURE__ */ e(F, {
|
|
406
|
-
icon:
|
|
406
|
+
icon: fe,
|
|
407
407
|
color: f("--lhds-color-ui-500")
|
|
408
408
|
}), /* @__PURE__ */ e(b, {}), /* @__PURE__ */ e(B, {
|
|
409
409
|
size: "small",
|
|
410
410
|
color: f("--lhds-color-ui-500"),
|
|
411
411
|
children: "No content"
|
|
412
412
|
})]
|
|
413
|
-
}),
|
|
413
|
+
}), oe = ({
|
|
414
414
|
contentLeft: n,
|
|
415
415
|
contentRight: t,
|
|
416
416
|
className: r,
|
|
417
417
|
children: a,
|
|
418
|
-
...
|
|
419
|
-
}) => /* @__PURE__ */
|
|
418
|
+
...o
|
|
419
|
+
}) => /* @__PURE__ */ l("div", {
|
|
420
420
|
className: h(s.content, r),
|
|
421
|
-
...
|
|
421
|
+
...o,
|
|
422
422
|
children: [n && /* @__PURE__ */ e("div", {
|
|
423
423
|
className: s.contentLeft,
|
|
424
424
|
children: n
|
|
@@ -436,17 +436,17 @@ const W = ({
|
|
|
436
436
|
default:
|
|
437
437
|
return 0;
|
|
438
438
|
}
|
|
439
|
-
}, sn =
|
|
439
|
+
}, sn = Ie(function({
|
|
440
440
|
label: t,
|
|
441
441
|
contentLeft: r,
|
|
442
442
|
contentRight: a,
|
|
443
|
-
collapsed:
|
|
443
|
+
collapsed: o = !1,
|
|
444
444
|
onClick: c,
|
|
445
445
|
className: u,
|
|
446
446
|
disabled: p = !1,
|
|
447
447
|
unmountOnCollapse: v = !1,
|
|
448
448
|
mountOnEnter: y = !0,
|
|
449
|
-
icon: A =
|
|
449
|
+
icon: A = be,
|
|
450
450
|
iconCollapsed: j = $,
|
|
451
451
|
iconSize: E = 16,
|
|
452
452
|
children: g,
|
|
@@ -454,12 +454,12 @@ const W = ({
|
|
|
454
454
|
...k
|
|
455
455
|
}, P) {
|
|
456
456
|
const N = ee.useRef(null), z = N.current ? cn(getComputedStyle(N.current).getPropertyValue("--swui-collapsible-animation-time")) : void 0;
|
|
457
|
-
return /* @__PURE__ */
|
|
457
|
+
return /* @__PURE__ */ l("div", {
|
|
458
458
|
className: h(s.collapsible, u),
|
|
459
|
-
"aria-expanded": !
|
|
459
|
+
"aria-expanded": !o,
|
|
460
460
|
ref: N,
|
|
461
461
|
...k,
|
|
462
|
-
children: [/* @__PURE__ */
|
|
462
|
+
children: [/* @__PURE__ */ l(V, {
|
|
463
463
|
disableFocusHighlight: !0,
|
|
464
464
|
disableOpacityOnClick: !0,
|
|
465
465
|
className: s.header,
|
|
@@ -481,13 +481,13 @@ const W = ({
|
|
|
481
481
|
className: s.contentRight,
|
|
482
482
|
children: a
|
|
483
483
|
}), /* @__PURE__ */ e(F, {
|
|
484
|
-
icon:
|
|
484
|
+
icon: o ? j : A,
|
|
485
485
|
className: s.indicator,
|
|
486
486
|
size: E,
|
|
487
487
|
fixedWidth: !0
|
|
488
488
|
})]
|
|
489
489
|
}), /* @__PURE__ */ e(Ee, {
|
|
490
|
-
in: !
|
|
490
|
+
in: !o,
|
|
491
491
|
timeout: {
|
|
492
492
|
enter: z
|
|
493
493
|
},
|
|
@@ -502,7 +502,7 @@ const W = ({
|
|
|
502
502
|
unmountOnExit: v,
|
|
503
503
|
children: /* @__PURE__ */ e("div", {
|
|
504
504
|
role: "region",
|
|
505
|
-
children: g != null ? g : /* @__PURE__ */ e(
|
|
505
|
+
children: g != null ? g : /* @__PURE__ */ e(oe, {
|
|
506
506
|
children: /* @__PURE__ */ e(q, {})
|
|
507
507
|
})
|
|
508
508
|
})
|
|
@@ -513,15 +513,15 @@ const W = ({
|
|
|
513
513
|
onValueChange: t,
|
|
514
514
|
onChange: r,
|
|
515
515
|
indeterminate: a,
|
|
516
|
-
checkboxDisabled:
|
|
516
|
+
checkboxDisabled: o,
|
|
517
517
|
...c
|
|
518
518
|
}) => /* @__PURE__ */ e(sn, {
|
|
519
|
-
contentLeft: /* @__PURE__ */ e(
|
|
519
|
+
contentLeft: /* @__PURE__ */ e(te, {
|
|
520
520
|
value: n,
|
|
521
521
|
indeterminate: a,
|
|
522
522
|
onValueChange: t,
|
|
523
523
|
onChange: r,
|
|
524
|
-
disabled:
|
|
524
|
+
disabled: o,
|
|
525
525
|
onClick: (u) => u.stopPropagation()
|
|
526
526
|
}),
|
|
527
527
|
...c
|
|
@@ -530,9 +530,9 @@ const W = ({
|
|
|
530
530
|
contentRight: t,
|
|
531
531
|
className: r,
|
|
532
532
|
onClick: a,
|
|
533
|
-
children:
|
|
533
|
+
children: o,
|
|
534
534
|
...c
|
|
535
|
-
}) => /* @__PURE__ */
|
|
535
|
+
}) => /* @__PURE__ */ l(V, {
|
|
536
536
|
disableFocusHighlight: !0,
|
|
537
537
|
disableOpacityOnClick: !0,
|
|
538
538
|
className: h(s.content, r),
|
|
@@ -541,14 +541,14 @@ const W = ({
|
|
|
541
541
|
children: [n && /* @__PURE__ */ e("div", {
|
|
542
542
|
className: s.contentLeft,
|
|
543
543
|
children: n
|
|
544
|
-
}),
|
|
544
|
+
}), o != null ? o : /* @__PURE__ */ e(q, {}), t && /* @__PURE__ */ e("div", {
|
|
545
545
|
className: s.contentRight,
|
|
546
546
|
children: t
|
|
547
547
|
})]
|
|
548
548
|
}), $n = ({
|
|
549
549
|
className: n,
|
|
550
550
|
...t
|
|
551
|
-
}) => /* @__PURE__ */ e(
|
|
551
|
+
}) => /* @__PURE__ */ e(oe, {
|
|
552
552
|
className: h(s.groupHeading, n),
|
|
553
553
|
...t
|
|
554
554
|
}), dn = ({
|
|
@@ -556,7 +556,7 @@ const W = ({
|
|
|
556
556
|
}) => /* @__PURE__ */ e(d, {
|
|
557
557
|
justifyContent: "center",
|
|
558
558
|
alignItems: "center",
|
|
559
|
-
children: /* @__PURE__ */ e(
|
|
559
|
+
children: /* @__PURE__ */ e(ve, {
|
|
560
560
|
variant: "error",
|
|
561
561
|
headerText: n
|
|
562
562
|
})
|
|
@@ -570,9 +570,9 @@ const W = ({
|
|
|
570
570
|
})
|
|
571
571
|
}), un = ({
|
|
572
572
|
text: n = "Loading..."
|
|
573
|
-
}) => /* @__PURE__ */
|
|
573
|
+
}) => /* @__PURE__ */ l(d, {
|
|
574
574
|
alignItems: "center",
|
|
575
|
-
children: [/* @__PURE__ */ e(
|
|
575
|
+
children: [/* @__PURE__ */ e(_e, {
|
|
576
576
|
size: "small"
|
|
577
577
|
}), /* @__PURE__ */ e(b, {
|
|
578
578
|
num: 4
|
|
@@ -593,23 +593,21 @@ const W = ({
|
|
|
593
593
|
renderPageHeading: t,
|
|
594
594
|
renderTabs: r,
|
|
595
595
|
children: a
|
|
596
|
-
}) => /* @__PURE__ */
|
|
597
|
-
shadow: "
|
|
596
|
+
}) => /* @__PURE__ */ l(d, {
|
|
597
|
+
shadow: "bottom",
|
|
598
598
|
background: f("--lhds-color-ui-50"),
|
|
599
599
|
gap: 2,
|
|
600
|
-
children: [/* @__PURE__ */
|
|
600
|
+
children: [/* @__PURE__ */ l(d, {
|
|
601
601
|
indent: 3,
|
|
602
|
-
children: [n && /* @__PURE__ */
|
|
602
|
+
children: [n && /* @__PURE__ */ l(i, {
|
|
603
603
|
spacing: 1,
|
|
604
604
|
alignItems: "center",
|
|
605
605
|
children: [/* @__PURE__ */ e(i, {
|
|
606
606
|
width: "64px",
|
|
607
607
|
height: "16px"
|
|
608
608
|
}), n()]
|
|
609
|
-
}), t == null ? void 0 : t(), r == null ? void 0 : r()]
|
|
610
|
-
}), a
|
|
611
|
-
children: [!r && n && /* @__PURE__ */ e(b, {}), /* @__PURE__ */ e(ne, {}), a]
|
|
612
|
-
})]
|
|
609
|
+
}), t == null ? void 0 : t(), r && /* @__PURE__ */ e(b, {}), r == null ? void 0 : r()]
|
|
610
|
+
}), a]
|
|
613
611
|
}), Wn = (n) => /* @__PURE__ */ e(i, {
|
|
614
612
|
indent: 3,
|
|
615
613
|
spacing: !0,
|
|
@@ -619,17 +617,17 @@ const W = ({
|
|
|
619
617
|
heading: t,
|
|
620
618
|
headingLevel: r = "h2",
|
|
621
619
|
contentLeft: a,
|
|
622
|
-
contentRight:
|
|
623
|
-
}) => /* @__PURE__ */
|
|
620
|
+
contentRight: o
|
|
621
|
+
}) => /* @__PURE__ */ l(i, {
|
|
624
622
|
alignItems: "center",
|
|
625
623
|
gap: 2,
|
|
626
624
|
height: "64px",
|
|
627
|
-
children: [/* @__PURE__ */
|
|
625
|
+
children: [/* @__PURE__ */ l(i, {
|
|
628
626
|
alignItems: "center",
|
|
629
627
|
children: [/* @__PURE__ */ e(i, {
|
|
630
628
|
width: "64px",
|
|
631
629
|
alignItems: "center",
|
|
632
|
-
children: n && /* @__PURE__ */ e(
|
|
630
|
+
children: n && /* @__PURE__ */ e(Ce, {
|
|
633
631
|
icon: n
|
|
634
632
|
})
|
|
635
633
|
}), /* @__PURE__ */ e(U, {
|
|
@@ -645,7 +643,7 @@ const W = ({
|
|
|
645
643
|
marginLeft: "auto"
|
|
646
644
|
},
|
|
647
645
|
alignItems: "center",
|
|
648
|
-
children:
|
|
646
|
+
children: o
|
|
649
647
|
})]
|
|
650
648
|
}), hn = "_sidebarMenu_tg9i7_1", T = {
|
|
651
649
|
sidebarMenu: hn
|
|
@@ -653,7 +651,7 @@ const W = ({
|
|
|
653
651
|
stenaFlag: pn
|
|
654
652
|
}, mn = ({
|
|
655
653
|
onClick: n
|
|
656
|
-
}) => /* @__PURE__ */
|
|
654
|
+
}) => /* @__PURE__ */ l(i, {
|
|
657
655
|
justifyContent: "space-between",
|
|
658
656
|
alignItems: "center",
|
|
659
657
|
flex: 1,
|
|
@@ -663,7 +661,7 @@ const W = ({
|
|
|
663
661
|
leftIcon: Z,
|
|
664
662
|
onClick: n,
|
|
665
663
|
variant: "danger"
|
|
666
|
-
}), /* @__PURE__ */ e(
|
|
664
|
+
}), /* @__PURE__ */ e(xe, {
|
|
667
665
|
className: gn.stenaFlag
|
|
668
666
|
})]
|
|
669
667
|
}), fn = ({
|
|
@@ -671,9 +669,9 @@ const W = ({
|
|
|
671
669
|
children: t,
|
|
672
670
|
onCloseClick: r,
|
|
673
671
|
collapsed: a = !1,
|
|
674
|
-
variant:
|
|
672
|
+
variant: o = "standard",
|
|
675
673
|
...c
|
|
676
|
-
}) => /* @__PURE__ */
|
|
674
|
+
}) => /* @__PURE__ */ l(d, {
|
|
677
675
|
indent: 1,
|
|
678
676
|
className: h(T.sidebarMenu, a ? T.collapsed : null, n),
|
|
679
677
|
style: {
|
|
@@ -699,20 +697,20 @@ const W = ({
|
|
|
699
697
|
variant: n,
|
|
700
698
|
onClickMenuButton: t,
|
|
701
699
|
children: r
|
|
702
|
-
}) => /* @__PURE__ */
|
|
700
|
+
}) => /* @__PURE__ */ l(fn, {
|
|
703
701
|
collapsed: !0,
|
|
704
702
|
position: "fixed",
|
|
705
703
|
left: 0,
|
|
706
704
|
top: 0,
|
|
707
705
|
variant: n,
|
|
708
|
-
children: [/* @__PURE__ */ e(
|
|
706
|
+
children: [/* @__PURE__ */ e(re, {
|
|
709
707
|
onClick: t
|
|
710
708
|
}), r]
|
|
711
|
-
}), L = (n) => /* @__PURE__ */ e(
|
|
709
|
+
}), L = (n) => /* @__PURE__ */ e(Be, {
|
|
712
710
|
...n
|
|
713
|
-
}),
|
|
711
|
+
}), le = ({
|
|
714
712
|
label: n
|
|
715
|
-
}) => /* @__PURE__ */
|
|
713
|
+
}) => /* @__PURE__ */ l(d, {
|
|
716
714
|
height: "32px",
|
|
717
715
|
justifyContent: "center",
|
|
718
716
|
indent: 1,
|
|
@@ -721,7 +719,7 @@ const W = ({
|
|
|
721
719
|
size: "smaller",
|
|
722
720
|
children: n
|
|
723
721
|
})]
|
|
724
|
-
}),
|
|
722
|
+
}), ce = (n) => /* @__PURE__ */ e(Se, {
|
|
725
723
|
color: f("--lhds-color-ui-400"),
|
|
726
724
|
...n
|
|
727
725
|
}), bn = ({
|
|
@@ -729,10 +727,10 @@ const W = ({
|
|
|
729
727
|
label: t,
|
|
730
728
|
leftIcon: r,
|
|
731
729
|
className: a,
|
|
732
|
-
initialExpand:
|
|
730
|
+
initialExpand: o = !1
|
|
733
731
|
}) => {
|
|
734
|
-
const [c, u] =
|
|
735
|
-
return /* @__PURE__ */ e(
|
|
732
|
+
const [c, u] = we(o);
|
|
733
|
+
return /* @__PURE__ */ e(ye, {
|
|
736
734
|
label: t,
|
|
737
735
|
onClick: () => u(!c),
|
|
738
736
|
leftIcon: r,
|
|
@@ -742,21 +740,21 @@ const W = ({
|
|
|
742
740
|
selected: c,
|
|
743
741
|
children: n
|
|
744
742
|
});
|
|
745
|
-
},
|
|
743
|
+
}, ie = (n) => n.map((t, r) => {
|
|
746
744
|
switch (t.type) {
|
|
747
745
|
case "heading":
|
|
748
|
-
return /* @__PURE__ */ e(
|
|
746
|
+
return /* @__PURE__ */ e(le, {
|
|
749
747
|
label: t.label
|
|
750
748
|
}, r);
|
|
751
749
|
case "separator":
|
|
752
|
-
return /* @__PURE__ */ e(
|
|
750
|
+
return /* @__PURE__ */ e(ce, {}, r);
|
|
753
751
|
case "link": {
|
|
754
752
|
const {
|
|
755
753
|
type: a,
|
|
756
|
-
...
|
|
754
|
+
...o
|
|
757
755
|
} = t;
|
|
758
756
|
return /* @__PURE__ */ e(L, {
|
|
759
|
-
...
|
|
757
|
+
...o
|
|
760
758
|
}, r);
|
|
761
759
|
}
|
|
762
760
|
case "grouped":
|
|
@@ -764,10 +762,10 @@ const W = ({
|
|
|
764
762
|
leftIcon: t.leftIcon,
|
|
765
763
|
label: t.label,
|
|
766
764
|
initialExpand: !0,
|
|
767
|
-
children:
|
|
765
|
+
children: ie(t.items)
|
|
768
766
|
}, r);
|
|
769
767
|
default:
|
|
770
|
-
return
|
|
768
|
+
return ne(t);
|
|
771
769
|
}
|
|
772
770
|
}), Jn = (n, {
|
|
773
771
|
popupMinWidth: t
|
|
@@ -776,10 +774,10 @@ const W = ({
|
|
|
776
774
|
case "heading":
|
|
777
775
|
return null;
|
|
778
776
|
case "separator":
|
|
779
|
-
return /* @__PURE__ */ e(
|
|
777
|
+
return /* @__PURE__ */ e(ce, {}, a);
|
|
780
778
|
case "link": {
|
|
781
779
|
const {
|
|
782
|
-
type:
|
|
780
|
+
type: o,
|
|
783
781
|
label: c,
|
|
784
782
|
...u
|
|
785
783
|
} = r;
|
|
@@ -799,12 +797,12 @@ const W = ({
|
|
|
799
797
|
trigger: "focusin mouseenter click",
|
|
800
798
|
disablePadding: !0,
|
|
801
799
|
lazy: !0,
|
|
802
|
-
content: /* @__PURE__ */
|
|
800
|
+
content: /* @__PURE__ */ l(d, {
|
|
803
801
|
minWidth: t,
|
|
804
802
|
background: "var(--lhds-color-blue-500)",
|
|
805
|
-
children: [/* @__PURE__ */ e(
|
|
803
|
+
children: [/* @__PURE__ */ e(le, {
|
|
806
804
|
label: r.label
|
|
807
|
-
}),
|
|
805
|
+
}), ie(r.items)]
|
|
808
806
|
}),
|
|
809
807
|
children: /* @__PURE__ */ e(L, {
|
|
810
808
|
title: r.label,
|
|
@@ -814,14 +812,14 @@ const W = ({
|
|
|
814
812
|
})
|
|
815
813
|
}, a);
|
|
816
814
|
default:
|
|
817
|
-
return
|
|
815
|
+
return ne(r);
|
|
818
816
|
}
|
|
819
817
|
}), vn = `1px solid ${f("--lhds-color-orange-400")}`, Kn = ({
|
|
820
818
|
numItemsSelected: n,
|
|
821
819
|
label: t,
|
|
822
820
|
afterLabelContent: r,
|
|
823
821
|
rightContent: a
|
|
824
|
-
}) => /* @__PURE__ */
|
|
822
|
+
}) => /* @__PURE__ */ l(i, {
|
|
825
823
|
indent: 3,
|
|
826
824
|
spacing: !0,
|
|
827
825
|
minHeight: "56px",
|
|
@@ -829,14 +827,14 @@ const W = ({
|
|
|
829
827
|
alignItems: "center",
|
|
830
828
|
borderTop: vn,
|
|
831
829
|
background: f("--lhds-color-orange-50"),
|
|
832
|
-
children: [/* @__PURE__ */
|
|
830
|
+
children: [/* @__PURE__ */ l(i, {
|
|
833
831
|
alignItems: "center",
|
|
834
832
|
children: [n != null || t != null ? /* @__PURE__ */ e(m, {
|
|
835
|
-
children: n != null ? /* @__PURE__ */
|
|
833
|
+
children: n != null ? /* @__PURE__ */ l(m, {
|
|
836
834
|
children: [/* @__PURE__ */ e(B, {
|
|
837
835
|
variant: "bold",
|
|
838
836
|
children: n
|
|
839
|
-
}), /* @__PURE__ */ e(b, {}), /* @__PURE__ */
|
|
837
|
+
}), /* @__PURE__ */ e(b, {}), /* @__PURE__ */ l(B, {
|
|
840
838
|
children: ["item", n === 1 ? "" : "s", " selected"]
|
|
841
839
|
})]
|
|
842
840
|
}) : t != null ? /* @__PURE__ */ e(m, {
|
|
@@ -844,7 +842,7 @@ const W = ({
|
|
|
844
842
|
children: t
|
|
845
843
|
}) : t
|
|
846
844
|
}) : null
|
|
847
|
-
}) : null, r ? /* @__PURE__ */
|
|
845
|
+
}) : null, r ? /* @__PURE__ */ l(m, {
|
|
848
846
|
children: [/* @__PURE__ */ e(x, {}), /* @__PURE__ */ e(d, {
|
|
849
847
|
children: r
|
|
850
848
|
})]
|
|
@@ -860,7 +858,7 @@ export {
|
|
|
860
858
|
En as CheckboxMenu,
|
|
861
859
|
sn as Collapsible,
|
|
862
860
|
Ln as CollapsibleClickableContent,
|
|
863
|
-
|
|
861
|
+
oe as CollapsibleContent,
|
|
864
862
|
q as CollapsibleEmptyContent,
|
|
865
863
|
$n as CollapsibleGroupHeading,
|
|
866
864
|
Tn as CollapsibleWithCheckbox,
|
|
@@ -882,13 +880,13 @@ export {
|
|
|
882
880
|
Kn as SelectedItemsActionsPanel,
|
|
883
881
|
fn as SidebarMenu,
|
|
884
882
|
bn as SidebarMenuCollapsible,
|
|
885
|
-
|
|
883
|
+
le as SidebarMenuHeading,
|
|
886
884
|
L as SidebarMenuLink,
|
|
887
|
-
|
|
885
|
+
ce as SidebarMenuSeparator,
|
|
888
886
|
Gn as SidebarRailMenu,
|
|
889
887
|
On as Toast,
|
|
890
888
|
cn as mapCSSTime,
|
|
891
|
-
|
|
889
|
+
ie as renderItemsExpanded,
|
|
892
890
|
Jn as renderItemsInRail
|
|
893
891
|
};
|
|
894
892
|
//# sourceMappingURL=index.es.js.map
|