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