@stenajs-webui/panels 19.0.0-next.53 → 19.0.0-next.54
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 +81 -85
- 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,18 +1,18 @@
|
|
|
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)}})();
|
|
1
|
+
(function(){"use strict";try{var r=document.createElement("style");r.appendChild(document.createTextNode("._navBar_kzibd_1{--swui-navbar-background-color: var(--lhds-color-ui-50);--swui-navbar-item-background-color-hover: var(--lhds-color-blue-700);--swui-navbar-item-background-color-selected: var(--lhds-color-blue-600);--swui-navbar-item-background-color-selected-hover: var( --lhds-color-blue-700 );--swui-nav-bar-height: 48px;background-color:var(--swui-navbar-background-color);height:var(--swui-nav-bar-height);min-height:var(--swui-nav-bar-height)}._navBarButton_18iz9_1{--swui-nav-bar-button-text-color: var(--lhds-color-blue-600);--swui-nav-bar-button-background-color: transparent;--swui-nav-bar-button-background-color-hover: var(--lhds-color-ui-100);--swui-nav-bar-button-background-color-focus: var(--lhds-color-ui-200);--swui-nav-bar-button-background-color-active: var(--lhds-color-ui-200);--swui-nav-bar-button-background-color-selected: var(--lhds-color-blue-200);--swui-nav-bar-button-background-color-selected-hover: var( --lhds-color-blue-100 );--swui-nav-bar-button-background-color-selected-focus: var( --lhds-color-blue-300 );--swui-nav-bar-button-background-color-selected-active: var( --lhds-color-blue-200 );--swui-flat-button-text-color: var(--swui-nav-bar-button-text-color);--swui-flat-button-icon-color: var(--swui-nav-bar-button-text-color);--swui-flat-button-text-color-active: var(--swui-nav-bar-button-text-color);--swui-flat-button-background-color: var( --swui-nav-bar-button-background-color );--swui-flat-button-background-color-hover: var( --swui-nav-bar-button-background-color-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-button-background-color-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-button-background-color-active )}._navBarButton_18iz9_1._selected_18iz9_36{--swui-flat-button-background-color: var( --swui-nav-bar-button-background-color-selected );--swui-flat-button-background-color-hover: var( --swui-nav-bar-button-background-color-selected-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-button-background-color-selected-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-button-background-color-selected-active )}._navBarNotificationButton_asssm_1{--current-background-color: var(--lhds-color-ui-400);--current-outline-color: var(--modern-blue);background-color:var(--current-background-color);border-color:transparent;color:var(--lhds-color-ui-50);--swui-nav-bar-notification-shake-count: 3;transition:.5s width}._navBarNotificationButton_asssm_1._unread_asssm_13,._navBarNotificationButton_asssm_1:hover{--current-background-color: var(--lhds-color-red-500);--current-outline-color: var(--lhds-color-red-500)}._navBarNotificationButton_asssm_1._unread_asssm_13:active,._navBarNotificationButton_asssm_1:hover:active{--current-background-color: var(--lhds-color-red-600);--current-outline-color: var(--lhds-color-red-600)}._navBarNotificationButton_asssm_1._unread_asssm_13 ._icon_asssm_24{-webkit-transform-origin:top center;transform-origin:top center;-webkit-animation:_shake_asssm_1 1.5s ease-in-out var(--swui-nav-bar-notification-shake-count);animation:_shake_asssm_1 1.5s ease-in-out var(--swui-nav-bar-notification-shake-count)}._navBarNotificationButton_asssm_1._unread_asssm_13._hasCount_asssm_30{--current-background-color: var(--lhds-color-red-600);--current-outline-color: var(--lhds-color-red-600)}._navBarNotificationButton_asssm_1._unread_asssm_13._hasCount_asssm_30:hover{--current-background-color: var(--lhds-color-red-700);--current-outline-color: var(--lhds-color-red-700)}._navBarNotificationButton_asssm_1._unread_asssm_13._hasCount_asssm_30:active{--current-background-color: var(--lhds-color-red-800);--current-outline-color: var(--lhds-color-red-800)}._navBarNotificationButton_asssm_1:focus-visible{outline:var(--swui-focus-outline);outline-color:var(--current-outline-color);outline-offset:var(--swui-focus-outline-width)}@-webkit-keyframes _shake_asssm_1{0%{-webkit-transform:rotate(0);transform:rotate(0)}7%{-webkit-transform:rotate(20deg);transform:rotate(20deg)}15%{-webkit-transform:rotate(-20deg);transform:rotate(-20deg)}22%{-webkit-transform:rotate(16deg);transform:rotate(16deg)}30%{-webkit-transform:rotate(-16deg);transform:rotate(-16deg)}38%{-webkit-transform:rotate(6deg);transform:rotate(6deg)}42%{-webkit-transform:rotate(-6deg);transform:rotate(-6deg)}46%{-webkit-transform:rotate(2deg);transform:rotate(2deg)}to{-webkit-transform:rotate(0);transform:rotate(0)}}@keyframes _shake_asssm_1{0%{-webkit-transform:rotate(0);transform:rotate(0)}7%{-webkit-transform:rotate(20deg);transform:rotate(20deg)}15%{-webkit-transform:rotate(-20deg);transform:rotate(-20deg)}22%{-webkit-transform:rotate(16deg);transform:rotate(16deg)}30%{-webkit-transform:rotate(-16deg);transform:rotate(-16deg)}38%{-webkit-transform:rotate(6deg);transform:rotate(6deg)}42%{-webkit-transform:rotate(-6deg);transform:rotate(-6deg)}46%{-webkit-transform:rotate(2deg);transform:rotate(2deg)}to{-webkit-transform:rotate(0);transform:rotate(0)}}._navBarSearchFieldInput_q4zl6_1._navBarSearchFieldInput_q4zl6_1{--swui-textinput-line-height: 2.7rem;--swui-textinput-text-color: var(--lhds-color-ui-50);--swui-textinput-placeholder-color: var(--lhds-color-blue-800);padding:0 var(--swui-metrics-indent)}._navBarSearchFieldInput_q4zl6_1._navBarSearchFieldInput_q4zl6_1:focus{--swui-textinput-text-color: var(--lhds-color-ui-800)}._navBarSearchField_q4zl6_1{--swui-textinput-animation-time: var(--swui-animation-time-fast);--swui-textinput-placeholder-color: var(--lhds-color-ui-500);--swui-textinput-bg-color: var(--lhds-color-ui-200);--swui-textinput-border-color: transparent;--swui-textinput-border-color-hover: transparent;padding:0 var(--swui-metrics-indent);border-radius:var(--swui-max-border-radius)}._navBarSearchField_q4zl6_1._withButton_q4zl6_25{padding-right:1px}._navBarSearchField_q4zl6_1:focus-within{--swui-textinput-text-color: var(--lhds-color-ui-800);--swui-field-text-color: var(--swui-field-text-color);--swui-textinput-bg-color: var(--lhds-color-ui-50)}._clearButton_q4zl6_36{border-radius:var(--swui-max-border-radius)}._navBarUserButton_1yjji_1{--swui-nav-bar-user-button-text-color: var(--lhds-color-blue-600);--swui-nav-bar-user-button-background-color: var(--lhds-color-ui-50);--swui-nav-bar-user-button-background-color-hover: var(--lhds-color-ui-100);--swui-nav-bar-user-button-background-color-focus: var(--lhds-color-ui-100);--swui-nav-bar-user-button-background-color-active: var(--lhds-color-ui-200);--swui-flat-button-text-color: var(--swui-nav-bar-user-button-text-color);--swui-flat-button-icon-color: var(--swui-nav-bar-user-button-text-color);--swui-flat-button-text-color-active: var( --swui-nav-bar-user-button-text-color );--swui-flat-button-background-color: var( --swui-nav-bar-user-button-background-color );--swui-flat-button-background-color-hover: var( --swui-nav-bar-user-button-background-color-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-user-button-background-color-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-user-button-background-color-active )}._unreadDot_l8bni_1{position:relative}._unreadDot_l8bni_1 ._dot_l8bni_4{top:1px;right:1px;position:absolute;width:8px;height:8px;border-radius:var(--swui-max-border-radius);background:var(--lhds-color-blue-500)}._notification_1hao0_1{display:flex;flex-direction:column;width:100%;background:var(--lhds-color-ui-50)}._notification_1hao0_1 ._body_1hao0_7{padding-left:64px;padding-right:24px;padding-bottom:16px}._notification_1hao0_1._standard_1hao0_13._unread_1hao0_14{background:var(--lhds-color-blue-50)}._notification_1hao0_1._danger_1hao0_19{background:var(--lhds-color-red-100)}._notificationList_1rkvu_1{display:flex;flex-direction:column;gap:2px;background:var(--lhds-color-ui-200)}._clickable_1ijxc_1{--swui-toast-border-color: transparent;--swui-toast-item-border-color-hover: var(--lhds-color-blue-500);--current-border-color: var(--swui-toast-border-color);border-width:1px;border-style:solid;border-color:var(--current-border-color);position:absolute;top:0;left:0;right:0;bottom:0;border-radius:8px;background-color:transparent;width:100%;cursor:pointer}._clickable_1ijxc_1:hover{--current-border-color: var(--swui-toast-item-border-color-hover)}._nonClickable_1ijxc_27{position:relative;z-index:1;pointer-events:none}._nonClickable_1ijxc_27 a,._nonClickable_1ijxc_27 button{pointer-events:auto}._sidebarMenu_11tso_1{--swui-sidebar-menu-separator-color: var(--swui-white);--swui-sidebar-menu-text-color: var(--lhds-color-ui-900);--swui-sidebar-menu-icon-color: var(--lhds-color-ui-900);--swui-sidebar-menu-background-color: transparent;--swui-sidebar-menu-background-color-hover: var(--lhds-color-ui-400);--swui-sidebar-menu-background-color-focus: var(--lhds-color-ui-400);--swui-sidebar-menu-background-color-active: var(--lhds-color-ui-300);--swui-sidebar-menu-background-selected: var(--lhds-color-blue-100);--swui-sidebar-menu-background-selected-hover: var(--lhds-color-blue-200);--swui-sidebar-menu-background-selected-focus: var(--lhds-color-blue-200);--swui-sidebar-menu-background-selected-active: var(--lhds-color-blue-100);--current-separator-color: var(--swui-sidebar-menu-separator-color);--current-text-color: var(--swui-sidebar-menu-text-color);--current-icon-color: var(--swui-sidebar-menu-icon-color);--current-background-color: var(--swui-sidebar-menu-background-color);--current-background-color-hover: var( --swui-sidebar-menu-background-color-hover );--current-background-color-focus: var( --swui-sidebar-menu-background-color-focus );--current-background-color-active: var( --swui-sidebar-menu-background-color-active );--current-background-selected: var(--swui-sidebar-menu-background-selected);--current-background-selected-hover: var( --swui-sidebar-menu-background-selected-hover );--current-background-selected-focus: var( --swui-sidebar-menu-background-selected-focus );--current-background-selected-active: var( --swui-sidebar-menu-background-selected-active );background-color:var(--current-background-color);height:100dvh}._stenaFlag_108h7_1{height:32px}")),document.head.appendChild(r)}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
2
|
import { jsxs as a, Fragment as v, jsx as n } from "react/jsx-runtime";
|
|
3
|
-
import { ActionMenu as
|
|
3
|
+
import { ActionMenu as G, ActionMenuContext as on, stenaAngleDown as J, PrimaryButton as rn, SecondaryButton as an, FlatButton as x, stenaHamburger as K, BaseButton as cn, stenaBellFilled as ln, stenaTimes as z, stenaUserCircle as sn, CircledIcon as Q, Icon as dn, stenaMail as un, MenuButton as P, Banner as hn, Spinner as pn, StenaFlag as gn, stenaAngleLeftDouble as V, stenaPin as fn, IconMenuButton as $, IconMenuButtonLink as mn, MenuButtonLink as vn } from "@stenajs-webui/elements";
|
|
4
4
|
import * as bn from "react";
|
|
5
|
-
import { useRef as
|
|
6
|
-
import { useBoolean as A, Column as g, Box as l, Row as s, Indent as
|
|
7
|
-
import { Popover as
|
|
8
|
-
import { Checkbox as
|
|
5
|
+
import { useRef as Bn, useMemo as _n, forwardRef as Cn, createContext as xn, useContext as yn, useState as kn } from "react";
|
|
6
|
+
import { useBoolean as A, Column as g, Box as l, Row as s, Indent as C, Heading as H, Text as b, Space as B, SeparatorLine as In } from "@stenajs-webui/core";
|
|
7
|
+
import { Popover as j, Tooltip as X } 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
11
|
const E = ({
|
|
12
12
|
renderItems: e,
|
|
13
13
|
placement: t = "bottom",
|
|
14
14
|
buttonComponent: o,
|
|
15
|
-
rightIcon: r =
|
|
15
|
+
rightIcon: r = J,
|
|
16
16
|
portalTarget: i = "parent",
|
|
17
17
|
zIndex: c,
|
|
18
18
|
menuWidth: d,
|
|
@@ -21,13 +21,13 @@ const E = ({
|
|
|
21
21
|
disableArrow: m = !1,
|
|
22
22
|
...F
|
|
23
23
|
}) => {
|
|
24
|
-
const [D, T, y,
|
|
24
|
+
const [D, T, y, nn] = A(!1), N = Bn(null), en = {
|
|
25
25
|
name: "focusManager",
|
|
26
26
|
defaultValue: !0,
|
|
27
27
|
fn({ popper: k }) {
|
|
28
28
|
let w = !1;
|
|
29
|
-
const O = (
|
|
30
|
-
|
|
29
|
+
const O = (_) => {
|
|
30
|
+
_.key === "Escape" && (w = !0, y()), (_.key === "Enter" || _.key === " ") && (w = !0);
|
|
31
31
|
};
|
|
32
32
|
return {
|
|
33
33
|
onCreate() {
|
|
@@ -37,15 +37,15 @@ const E = ({
|
|
|
37
37
|
k.removeEventListener("keydown", O);
|
|
38
38
|
},
|
|
39
39
|
onMount() {
|
|
40
|
-
var
|
|
41
|
-
w = !1, (
|
|
40
|
+
var _;
|
|
41
|
+
w = !1, (_ = k.querySelector("button:not([disabled]), a[href]")) == null || _.focus();
|
|
42
42
|
},
|
|
43
43
|
onHide() {
|
|
44
44
|
N.current && w && N.current.focus();
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
},
|
|
48
|
+
}, tn = _n(() => ({ open: T, close: y }), [T, y]);
|
|
49
49
|
return /* @__PURE__ */ a(v, { children: [
|
|
50
50
|
/* @__PURE__ */ n(
|
|
51
51
|
o,
|
|
@@ -54,40 +54,40 @@ const E = ({
|
|
|
54
54
|
...F,
|
|
55
55
|
ref: N,
|
|
56
56
|
onClick: (k) => {
|
|
57
|
-
p == null || p(k),
|
|
57
|
+
p == null || p(k), nn();
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
),
|
|
61
61
|
/* @__PURE__ */ n(
|
|
62
|
-
|
|
62
|
+
j,
|
|
63
63
|
{
|
|
64
64
|
disablePadding: !0,
|
|
65
65
|
visible: D,
|
|
66
66
|
onClickOutside: y,
|
|
67
67
|
placement: t,
|
|
68
|
-
content: D && /* @__PURE__ */ n(
|
|
68
|
+
content: D && /* @__PURE__ */ n(G, { width: d, top: u, trapFocus: !0, children: /* @__PURE__ */ n(on.Provider, { value: tn, children: e(y) }) }),
|
|
69
69
|
arrow: !1,
|
|
70
70
|
appendTo: i,
|
|
71
71
|
zIndex: c,
|
|
72
|
-
plugins: [
|
|
72
|
+
plugins: [en],
|
|
73
73
|
lazy: !0,
|
|
74
74
|
reference: N
|
|
75
75
|
}
|
|
76
76
|
)
|
|
77
77
|
] });
|
|
78
|
-
},
|
|
78
|
+
}, Re = (e) => /* @__PURE__ */ n(E, { buttonComponent: rn, ...e }), je = (e) => /* @__PURE__ */ n(E, { buttonComponent: an, ...e }), Mn = (e) => /* @__PURE__ */ n(E, { buttonComponent: x, ...e }), Sn = "1px solid var(--lhds-color-ui-300)", Fe = ({
|
|
79
79
|
renderMenu: e,
|
|
80
80
|
...t
|
|
81
81
|
}) => {
|
|
82
82
|
const [o, r, i] = A(!1);
|
|
83
83
|
return /* @__PURE__ */ n(
|
|
84
|
-
|
|
84
|
+
j,
|
|
85
85
|
{
|
|
86
86
|
onClickOutside: i,
|
|
87
87
|
arrow: !1,
|
|
88
88
|
visible: o,
|
|
89
89
|
disablePadding: !0,
|
|
90
|
-
content: e ? /* @__PURE__ */ n(g, { children: /* @__PURE__ */ n(
|
|
90
|
+
content: e ? /* @__PURE__ */ n(g, { children: /* @__PURE__ */ n(G, { children: e(i) }) }) : void 0,
|
|
91
91
|
placement: "bottom-start",
|
|
92
92
|
children: /* @__PURE__ */ n(l, { display: "inline-block", children: /* @__PURE__ */ a(
|
|
93
93
|
s,
|
|
@@ -98,23 +98,23 @@ const E = ({
|
|
|
98
98
|
border: Sn,
|
|
99
99
|
borderRadius: "4px",
|
|
100
100
|
children: [
|
|
101
|
-
/* @__PURE__ */ n(
|
|
102
|
-
/* @__PURE__ */ n(
|
|
103
|
-
/* @__PURE__ */ n(
|
|
101
|
+
/* @__PURE__ */ n(Y, { ...t }),
|
|
102
|
+
/* @__PURE__ */ n(C, { num: 0.5 }),
|
|
103
|
+
/* @__PURE__ */ n(x, { size: "small", onClick: r, leftIcon: J })
|
|
104
104
|
]
|
|
105
105
|
}
|
|
106
106
|
) })
|
|
107
107
|
}
|
|
108
108
|
);
|
|
109
|
-
},
|
|
110
|
-
navBar:
|
|
109
|
+
}, Rn = "_navBar_kzibd_1", jn = {
|
|
110
|
+
navBar: Rn
|
|
111
111
|
}, Fn = ({
|
|
112
112
|
className: e,
|
|
113
113
|
onClick: t
|
|
114
114
|
}) => /* @__PURE__ */ n(
|
|
115
|
-
|
|
115
|
+
x,
|
|
116
116
|
{
|
|
117
|
-
leftIcon:
|
|
117
|
+
leftIcon: K,
|
|
118
118
|
className: e,
|
|
119
119
|
onClick: t
|
|
120
120
|
}
|
|
@@ -132,7 +132,7 @@ const E = ({
|
|
|
132
132
|
s,
|
|
133
133
|
{
|
|
134
134
|
justifyContent: "space-between",
|
|
135
|
-
className: h(
|
|
135
|
+
className: h(jn.navBar, t),
|
|
136
136
|
children: [
|
|
137
137
|
/* @__PURE__ */ a(
|
|
138
138
|
s,
|
|
@@ -142,15 +142,15 @@ const E = ({
|
|
|
142
142
|
alignItems: "center",
|
|
143
143
|
children: [
|
|
144
144
|
/* @__PURE__ */ a(s, { width: "86px", alignItems: "center", children: [
|
|
145
|
-
/* @__PURE__ */ n(
|
|
145
|
+
/* @__PURE__ */ n(C, {}),
|
|
146
146
|
o && /* @__PURE__ */ n(Fn, { onClick: d })
|
|
147
147
|
] }),
|
|
148
148
|
e && /* @__PURE__ */ a(v, { children: [
|
|
149
149
|
e,
|
|
150
|
-
/* @__PURE__ */ n(
|
|
150
|
+
/* @__PURE__ */ n(C, { num: 2 })
|
|
151
151
|
] }),
|
|
152
152
|
r && /* @__PURE__ */ n(v, { children: /* @__PURE__ */ n(s, { justifyContent: "center", alignItems: "center", children: bn.Children.map(r, (p, m) => /* @__PURE__ */ a(v, { children: [
|
|
153
|
-
m > 0 && /* @__PURE__ */ n(
|
|
153
|
+
m > 0 && /* @__PURE__ */ n(C, {}),
|
|
154
154
|
p
|
|
155
155
|
] })) }) })
|
|
156
156
|
]
|
|
@@ -159,7 +159,7 @@ const E = ({
|
|
|
159
159
|
c && /* @__PURE__ */ n(s, { justifyContent: "center", alignItems: "center", children: c }),
|
|
160
160
|
/* @__PURE__ */ a(s, { justifyContent: "flex-end", alignItems: "center", flex: u, children: [
|
|
161
161
|
i,
|
|
162
|
-
/* @__PURE__ */ n(
|
|
162
|
+
/* @__PURE__ */ n(C, { num: 2 })
|
|
163
163
|
] })
|
|
164
164
|
]
|
|
165
165
|
}
|
|
@@ -172,7 +172,7 @@ const E = ({
|
|
|
172
172
|
className: t,
|
|
173
173
|
...o
|
|
174
174
|
}) => /* @__PURE__ */ n(
|
|
175
|
-
|
|
175
|
+
x,
|
|
176
176
|
{
|
|
177
177
|
...o,
|
|
178
178
|
className: h(
|
|
@@ -188,7 +188,7 @@ const E = ({
|
|
|
188
188
|
}) => {
|
|
189
189
|
const [r, , i, c] = A(!1);
|
|
190
190
|
return /* @__PURE__ */ n(
|
|
191
|
-
|
|
191
|
+
j,
|
|
192
192
|
{
|
|
193
193
|
onClickOutside: i,
|
|
194
194
|
triggerTarget: document.body,
|
|
@@ -200,12 +200,12 @@ const E = ({
|
|
|
200
200
|
children: /* @__PURE__ */ n(Pn, { ...o, onClick: c })
|
|
201
201
|
}
|
|
202
202
|
);
|
|
203
|
-
}, $n = "
|
|
203
|
+
}, $n = "_navBarNotificationButton_asssm_1", An = "_unread_asssm_13", Hn = "_icon_asssm_24", En = "_shake_asssm_1", Un = "_hasCount_asssm_30", I = {
|
|
204
204
|
navBarNotificationButton: $n,
|
|
205
205
|
unread: An,
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
206
|
+
icon: Hn,
|
|
207
|
+
shake: En,
|
|
208
|
+
hasCount: Un
|
|
209
209
|
}, $e = ({
|
|
210
210
|
count: e,
|
|
211
211
|
unread: t = !1,
|
|
@@ -215,16 +215,16 @@ const E = ({
|
|
|
215
215
|
icon: c = ln,
|
|
216
216
|
...d
|
|
217
217
|
}) => {
|
|
218
|
-
const u = e >
|
|
218
|
+
const u = e > 1;
|
|
219
219
|
return /* @__PURE__ */ n(
|
|
220
|
-
|
|
220
|
+
cn,
|
|
221
221
|
{
|
|
222
222
|
...d,
|
|
223
223
|
leftIcon: c,
|
|
224
224
|
className: h(
|
|
225
|
+
I.navBarNotificationButton,
|
|
225
226
|
t && I.unread,
|
|
226
227
|
u && I.hasCount,
|
|
227
|
-
I.navBarNotificationButton,
|
|
228
228
|
o
|
|
229
229
|
),
|
|
230
230
|
label: u ? String(e) : void 0,
|
|
@@ -265,9 +265,8 @@ const E = ({
|
|
|
265
265
|
) : void 0,
|
|
266
266
|
...c
|
|
267
267
|
}
|
|
268
|
-
), Wn = "
|
|
269
|
-
navBarUserButton: Wn
|
|
270
|
-
initials: Gn
|
|
268
|
+
), Wn = "_navBarUserButton_1yjji_1", Gn = {
|
|
269
|
+
navBarUserButton: Wn
|
|
271
270
|
}, He = ({
|
|
272
271
|
className: e,
|
|
273
272
|
username: t,
|
|
@@ -280,23 +279,20 @@ const E = ({
|
|
|
280
279
|
Mn,
|
|
281
280
|
{
|
|
282
281
|
...d,
|
|
283
|
-
className: h(
|
|
284
|
-
{ [W.initials]: o != null },
|
|
285
|
-
W.navBarUserButton,
|
|
286
|
-
e
|
|
287
|
-
),
|
|
282
|
+
className: h(Gn.navBarUserButton, e),
|
|
288
283
|
leftIcon: t != null ? r : void 0,
|
|
289
284
|
label: o != null ? o : t,
|
|
285
|
+
forceRound: o != null,
|
|
290
286
|
responsiveIconOnly: c,
|
|
291
287
|
disableArrow: !0
|
|
292
288
|
}
|
|
293
|
-
), Jn = "_unreadDot_l8bni_1", Kn = "_dot_l8bni_4",
|
|
289
|
+
), Jn = "_unreadDot_l8bni_1", Kn = "_dot_l8bni_4", W = {
|
|
294
290
|
unreadDot: Jn,
|
|
295
291
|
dot: Kn
|
|
296
|
-
}, Qn = ({ children: e }) => /* @__PURE__ */ a("div", { className:
|
|
292
|
+
}, Qn = ({ children: e }) => /* @__PURE__ */ a("div", { className: W.unreadDot, children: [
|
|
297
293
|
e,
|
|
298
|
-
/* @__PURE__ */ n("div", { className:
|
|
299
|
-
] }),
|
|
294
|
+
/* @__PURE__ */ n("div", { className: W.dot })
|
|
295
|
+
] }), Z = ({
|
|
300
296
|
text: e,
|
|
301
297
|
timestamp: t,
|
|
302
298
|
icon: o,
|
|
@@ -308,7 +304,7 @@ const E = ({
|
|
|
308
304
|
variant: p
|
|
309
305
|
}) => {
|
|
310
306
|
const m = o ? /* @__PURE__ */ n(
|
|
311
|
-
|
|
307
|
+
Q,
|
|
312
308
|
{
|
|
313
309
|
size: "small",
|
|
314
310
|
icon: o,
|
|
@@ -342,7 +338,7 @@ const E = ({
|
|
|
342
338
|
justifyContent: "center",
|
|
343
339
|
height: "calc(20px + 2 * var(--swui-metrics-spacing))",
|
|
344
340
|
children: /* @__PURE__ */ n(
|
|
345
|
-
|
|
341
|
+
x,
|
|
346
342
|
{
|
|
347
343
|
leftIcon: z,
|
|
348
344
|
onClick: d,
|
|
@@ -376,7 +372,7 @@ const E = ({
|
|
|
376
372
|
o && S.unread
|
|
377
373
|
),
|
|
378
374
|
children: [
|
|
379
|
-
/* @__PURE__ */ n(
|
|
375
|
+
/* @__PURE__ */ n(Z, { ...r, unread: o, variant: e }),
|
|
380
376
|
t && /* @__PURE__ */ n(g, { className: S.body, children: t })
|
|
381
377
|
]
|
|
382
378
|
}
|
|
@@ -408,10 +404,10 @@ const E = ({
|
|
|
408
404
|
role: "alert",
|
|
409
405
|
position: "relative",
|
|
410
406
|
children: [
|
|
411
|
-
/* @__PURE__ */ n(l, { className: h({ [L.nonClickable]: e }), children: /* @__PURE__ */ n(
|
|
407
|
+
/* @__PURE__ */ n(l, { className: h({ [L.nonClickable]: e }), children: /* @__PURE__ */ n(Z, { ...c }) }),
|
|
412
408
|
o && /* @__PURE__ */ a(l, { indent: 3, className: h({ [L.nonClickable]: e }), children: [
|
|
413
409
|
o,
|
|
414
|
-
/* @__PURE__ */ n(
|
|
410
|
+
/* @__PURE__ */ n(B, { num: 2 })
|
|
415
411
|
] }),
|
|
416
412
|
e && /* @__PURE__ */ n(
|
|
417
413
|
"button",
|
|
@@ -425,7 +421,7 @@ const E = ({
|
|
|
425
421
|
}
|
|
426
422
|
), ie = () => /* @__PURE__ */ a(g, { indent: !0, spacing: !0, flex: 1, alignItems: "center", children: [
|
|
427
423
|
/* @__PURE__ */ n(dn, { icon: un, color: f("--lhds-color-ui-500") }),
|
|
428
|
-
/* @__PURE__ */ n(
|
|
424
|
+
/* @__PURE__ */ n(B, {}),
|
|
429
425
|
/* @__PURE__ */ n(b, { size: "small", color: f("--lhds-color-ui-500"), children: "No content" })
|
|
430
426
|
] }), ce = Cn(
|
|
431
427
|
function({
|
|
@@ -470,7 +466,7 @@ const E = ({
|
|
|
470
466
|
ce,
|
|
471
467
|
{
|
|
472
468
|
contentLeft: /* @__PURE__ */ n(
|
|
473
|
-
|
|
469
|
+
Y,
|
|
474
470
|
{
|
|
475
471
|
value: e,
|
|
476
472
|
indeterminate: r,
|
|
@@ -497,7 +493,7 @@ const E = ({
|
|
|
497
493
|
text: e = "Loading..."
|
|
498
494
|
}) => /* @__PURE__ */ a(l, { alignItems: "center", children: [
|
|
499
495
|
/* @__PURE__ */ n(pn, { size: "small" }),
|
|
500
|
-
/* @__PURE__ */ n(
|
|
496
|
+
/* @__PURE__ */ n(B, { num: 4 }),
|
|
501
497
|
/* @__PURE__ */ n(H, { variant: "h4", children: e })
|
|
502
498
|
] }), Ge = (e) => /* @__PURE__ */ n(
|
|
503
499
|
l,
|
|
@@ -520,7 +516,7 @@ const E = ({
|
|
|
520
516
|
e()
|
|
521
517
|
] }),
|
|
522
518
|
t == null ? void 0 : t(),
|
|
523
|
-
o && /* @__PURE__ */ n(
|
|
519
|
+
o && /* @__PURE__ */ n(B, {}),
|
|
524
520
|
o == null ? void 0 : o()
|
|
525
521
|
] }),
|
|
526
522
|
r
|
|
@@ -532,7 +528,7 @@ const E = ({
|
|
|
532
528
|
contentRight: i
|
|
533
529
|
}) => /* @__PURE__ */ a(s, { alignItems: "center", gap: 2, height: "64px", children: [
|
|
534
530
|
/* @__PURE__ */ a(s, { alignItems: "center", children: [
|
|
535
|
-
/* @__PURE__ */ n(s, { width: "64px", alignItems: "center", children: e && /* @__PURE__ */ n(
|
|
531
|
+
/* @__PURE__ */ n(s, { width: "64px", alignItems: "center", children: e && /* @__PURE__ */ n(Q, { icon: e }) }),
|
|
536
532
|
/* @__PURE__ */ n(H, { variant: "h3", as: o, children: t })
|
|
537
533
|
] }),
|
|
538
534
|
/* @__PURE__ */ n(s, { alignItems: "center", children: r }),
|
|
@@ -542,7 +538,7 @@ const E = ({
|
|
|
542
538
|
}, he = "_stenaFlag_108h7_1", pe = {
|
|
543
539
|
stenaFlag: he
|
|
544
540
|
}, ge = ({ onClick: e }) => /* @__PURE__ */ a(g, { background: f("--lhds-color-ui-50"), children: [
|
|
545
|
-
/* @__PURE__ */ n(
|
|
541
|
+
/* @__PURE__ */ n(B, {}),
|
|
546
542
|
/* @__PURE__ */ a(
|
|
547
543
|
s,
|
|
548
544
|
{
|
|
@@ -553,7 +549,7 @@ const E = ({
|
|
|
553
549
|
minHeight: "48px",
|
|
554
550
|
children: [
|
|
555
551
|
/* @__PURE__ */ n(
|
|
556
|
-
|
|
552
|
+
x,
|
|
557
553
|
{
|
|
558
554
|
leftIcon: z,
|
|
559
555
|
onClick: e,
|
|
@@ -570,7 +566,7 @@ const E = ({
|
|
|
570
566
|
label: o
|
|
571
567
|
}) => {
|
|
572
568
|
const r = e ? "Unpin menu" : "Pin menu", i = o != null ? o : r;
|
|
573
|
-
return /* @__PURE__ */ n(P, { onClick: t, label: i, leftIcon: e ?
|
|
569
|
+
return /* @__PURE__ */ n(P, { onClick: t, label: i, leftIcon: e ? V : fn });
|
|
574
570
|
}, Ve = ({
|
|
575
571
|
className: e,
|
|
576
572
|
children: t,
|
|
@@ -608,17 +604,17 @@ const E = ({
|
|
|
608
604
|
onClick: c
|
|
609
605
|
}
|
|
610
606
|
),
|
|
611
|
-
/* @__PURE__ */ n(
|
|
607
|
+
/* @__PURE__ */ n(B, {})
|
|
612
608
|
] })
|
|
613
609
|
] })
|
|
614
610
|
}
|
|
615
611
|
)
|
|
616
612
|
]
|
|
617
613
|
}
|
|
618
|
-
),
|
|
614
|
+
), R = xn(!1), U = () => yn(R), me = ({
|
|
619
615
|
label: e,
|
|
620
616
|
...t
|
|
621
|
-
}) => /* @__PURE__ */ n(
|
|
617
|
+
}) => /* @__PURE__ */ n(X, { label: e, placement: "right", appendTo: document.body, children: /* @__PURE__ */ n($, { ...t }) }), Xe = ({
|
|
622
618
|
closeButtonVisible: e,
|
|
623
619
|
onClickCloseButton: t,
|
|
624
620
|
onClickMenuButton: o,
|
|
@@ -638,15 +634,15 @@ const E = ({
|
|
|
638
634
|
shadow: "popover",
|
|
639
635
|
background: f("--lhds-color-ui-50"),
|
|
640
636
|
children: [
|
|
641
|
-
/* @__PURE__ */ n($, { onClick: o, icon:
|
|
637
|
+
/* @__PURE__ */ n($, { onClick: o, icon: K }),
|
|
642
638
|
/* @__PURE__ */ a(g, { justifyContent: "space-between", flex: 1, gap: 1, children: [
|
|
643
|
-
/* @__PURE__ */ n(g, { gap: 1, children: /* @__PURE__ */ n(
|
|
644
|
-
/* @__PURE__ */ n(g, { gap: 1, children: (i || e) && /* @__PURE__ */ a(
|
|
639
|
+
/* @__PURE__ */ n(g, { gap: 1, children: /* @__PURE__ */ n(R.Provider, { value: !0, children: r }) }),
|
|
640
|
+
/* @__PURE__ */ n(g, { gap: 1, children: (i || e) && /* @__PURE__ */ a(R.Provider, { value: !0, children: [
|
|
645
641
|
i,
|
|
646
642
|
e && /* @__PURE__ */ n(
|
|
647
643
|
me,
|
|
648
644
|
{
|
|
649
|
-
icon:
|
|
645
|
+
icon: V,
|
|
650
646
|
label: c,
|
|
651
647
|
onClick: t
|
|
652
648
|
}
|
|
@@ -658,19 +654,19 @@ const E = ({
|
|
|
658
654
|
), ve = ({
|
|
659
655
|
label: e
|
|
660
656
|
}) => U() ? null : /* @__PURE__ */ a(l, { height: "32px", justifyContent: "center", indent: 1, children: [
|
|
661
|
-
/* @__PURE__ */ n(
|
|
657
|
+
/* @__PURE__ */ n(B, {}),
|
|
662
658
|
/* @__PURE__ */ n(b, { variant: "overline", size: "smaller", children: e })
|
|
663
659
|
] }), be = ({
|
|
664
660
|
label: e,
|
|
665
661
|
leftIcon: t,
|
|
666
662
|
...o
|
|
667
|
-
}) => t == null ? null : /* @__PURE__ */ n(
|
|
663
|
+
}) => t == null ? null : /* @__PURE__ */ n(X, { label: e, placement: "right", appendTo: document.body, children: /* @__PURE__ */ n(mn, { icon: t, ...o }) }), Ye = (e) => U() ? /* @__PURE__ */ n(be, { ...e }) : /* @__PURE__ */ n(vn, { ...e }), Be = ({
|
|
668
664
|
children: e,
|
|
669
665
|
label: t,
|
|
670
666
|
icon: o,
|
|
671
667
|
popupMinWidth: r = "200px"
|
|
672
668
|
}) => /* @__PURE__ */ n(
|
|
673
|
-
|
|
669
|
+
j,
|
|
674
670
|
{
|
|
675
671
|
appendTo: "parent",
|
|
676
672
|
arrow: !1,
|
|
@@ -687,7 +683,7 @@ const E = ({
|
|
|
687
683
|
spacing: 1,
|
|
688
684
|
indent: 1,
|
|
689
685
|
gap: 2,
|
|
690
|
-
children: /* @__PURE__ */ a(
|
|
686
|
+
children: /* @__PURE__ */ a(R.Provider, { value: !1, children: [
|
|
691
687
|
/* @__PURE__ */ n(ve, { label: t }),
|
|
692
688
|
e
|
|
693
689
|
] })
|
|
@@ -703,7 +699,7 @@ const E = ({
|
|
|
703
699
|
initialExpand: i = !1
|
|
704
700
|
}) => {
|
|
705
701
|
const [c, d] = kn(i);
|
|
706
|
-
return U() ? o == null ? null : /* @__PURE__ */ n(
|
|
702
|
+
return U() ? o == null ? null : /* @__PURE__ */ n(Be, { label: t, icon: o, children: e }) : /* @__PURE__ */ n(
|
|
707
703
|
P,
|
|
708
704
|
{
|
|
709
705
|
label: t,
|
|
@@ -722,7 +718,7 @@ const E = ({
|
|
|
722
718
|
color: f("--lhds-color-ui-400"),
|
|
723
719
|
...e
|
|
724
720
|
}
|
|
725
|
-
),
|
|
721
|
+
), _e = `1px solid ${f("--lhds-color-orange-400")}`, et = ({
|
|
726
722
|
numItemsSelected: e,
|
|
727
723
|
label: t,
|
|
728
724
|
afterLabelContent: o,
|
|
@@ -735,13 +731,13 @@ const E = ({
|
|
|
735
731
|
minHeight: "56px",
|
|
736
732
|
justifyContent: "space-between",
|
|
737
733
|
alignItems: "center",
|
|
738
|
-
borderTop:
|
|
734
|
+
borderTop: _e,
|
|
739
735
|
background: f("--lhds-color-orange-50"),
|
|
740
736
|
children: [
|
|
741
737
|
/* @__PURE__ */ a(s, { alignItems: "center", children: [
|
|
742
738
|
e != null || t != null ? /* @__PURE__ */ n(v, { children: e != null ? /* @__PURE__ */ a(v, { children: [
|
|
743
739
|
/* @__PURE__ */ n(b, { variant: "bold", children: e }),
|
|
744
|
-
/* @__PURE__ */ n(
|
|
740
|
+
/* @__PURE__ */ n(B, {}),
|
|
745
741
|
/* @__PURE__ */ a(b, { children: [
|
|
746
742
|
"item",
|
|
747
743
|
e === 1 ? "" : "s",
|
|
@@ -749,7 +745,7 @@ const E = ({
|
|
|
749
745
|
] })
|
|
750
746
|
] }) : t != null ? /* @__PURE__ */ n(v, { children: typeof t == "string" ? /* @__PURE__ */ n(b, { children: t }) : t }) : null }) : null,
|
|
751
747
|
o ? /* @__PURE__ */ a(v, { children: [
|
|
752
|
-
/* @__PURE__ */ n(
|
|
748
|
+
/* @__PURE__ */ n(C, {}),
|
|
753
749
|
/* @__PURE__ */ n(l, { children: o })
|
|
754
750
|
] }) : null
|
|
755
751
|
] }),
|
|
@@ -759,8 +755,8 @@ const E = ({
|
|
|
759
755
|
);
|
|
760
756
|
export {
|
|
761
757
|
Mn as ActionMenuFlatButton,
|
|
762
|
-
|
|
763
|
-
|
|
758
|
+
Re as ActionMenuPrimaryButton,
|
|
759
|
+
je as ActionMenuSecondaryButton,
|
|
764
760
|
Fe as CheckboxMenu,
|
|
765
761
|
ce as Collapsible,
|
|
766
762
|
ie as CollapsibleEmptyContent,
|
|
@@ -779,7 +775,7 @@ export {
|
|
|
779
775
|
Ae as NavBarSearchField,
|
|
780
776
|
He as NavBarUserButton,
|
|
781
777
|
Ee as Notification,
|
|
782
|
-
|
|
778
|
+
Z as NotificationHeader,
|
|
783
779
|
Ue as NotificationList,
|
|
784
780
|
Je as PageHeader,
|
|
785
781
|
Ke as PageHeaderRow,
|