@stenajs-webui/panels 18.12.0 → 19.0.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/notifications/Notification.d.ts +3 -2
- package/dist/components/sidebar-menu/SidebarMenu.d.ts +2 -2
- package/dist/components/sidebar-menu/SidebarMenuCloseButtonRow.d.ts +5 -0
- package/dist/components/sidebar-menu/SidebarMenuCollapsible.d.ts +2 -0
- package/dist/components/sidebar-menu/SidebarMenuHeading.d.ts +2 -4
- package/dist/components/sidebar-menu/SidebarMenuLink.d.ts +2 -14
- package/dist/components/sidebar-menu/rail/renderer/RailRenderer.d.ts +1 -1
- package/dist/components/sidebar-menu/rail/renderer/types.d.ts +2 -2
- package/dist/index.es.js +573 -671
- 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/components/sidebar-menu/SidebarMenuCloseButton.d.ts +0 -5
package/dist/index.es.js
CHANGED
|
@@ -1,533 +1,527 @@
|
|
|
1
|
-
(function(){"use strict";try{var o=document.createElement("style");o.appendChild(document.createTextNode('._navBar_1qp30_1{--swui-navbar-background-color: var(--lhds-color-blue-500);--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 );background-color:var(--swui-navbar-background-color)}._sidebarMenuButton_1x4z8_1{--swui-nav-bar-side-menu-button-text-color: var(--lhds-color-ui-50);--swui-nav-bar-side-menu-button-background-color: var(--lhds-color-blue-500);--swui-nav-bar-side-menu-button-background-color-hover: var( --lhds-color-blue-600 );--swui-nav-bar-side-menu-button-background-color-focus: var( --lhds-color-blue-600 );--swui-nav-bar-side-menu-button-background-color-active: var( --lhds-color-blue-700 );--current-background-color: var( --swui-nav-bar-side-menu-button-background-color );display:flex;align-items:center;justify-content:center;line-height:10px;background-color:var(--current-background-color);color:var(--swui-nav-bar-side-menu-button-text-color);cursor:pointer;height:var(--swui-nav-bar-height);width:var(--swui-nav-bar-height);padding:0;margin:0;box-sizing:border-box;border-radius:0;outline:none;border:none}._sidebarMenuButton_1x4z8_1:hover{--current-background-color: var( --swui-nav-bar-side-menu-button-background-color-hover )}._sidebarMenuButton_1x4z8_1:focus-visible{--current-background-color: var( --swui-nav-bar-side-menu-button-background-color-focus )}._sidebarMenuButton_1x4z8_1:active{--current-background-color: var( --swui-nav-bar-side-menu-button-background-color-active )}._sidebarMenuButton_1x4z8_1 ._icon_1x4z8_55{color:var(--swui-nav-bar-side-menu-button-text-color)}._navBarButton_1xy53_1{--swui-nav-bar-button-text-color: var(--lhds-color-ui-50);--swui-nav-bar-button-background-color: transparent;--swui-nav-bar-button-background-color-hover: var(--lhds-color-blue-900);--swui-nav-bar-button-background-color-focus: var(--lhds-color-blue-700);--swui-nav-bar-button-background-color-active: var(--lhds-color-blue-800);--swui-nav-bar-button-background-color-selected: var(--lhds-color-blue-600);--swui-nav-bar-button-background-color-selected-hover: var( --lhds-color-blue-700 );--swui-nav-bar-button-background-color-selected-focus: var( --lhds-color-blue-700 );--swui-nav-bar-button-background-color-selected-active: var( --lhds-color-blue-800 );--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_1xy53_1._selected_1xy53_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_1wchp_1{--swui-nav-bar-notification-button-text-color: var(--lhds-color-ui-50);--swui-nav-bar-notification-button-background-color: var( --lhds-color-blue-700 );--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-button-border-radius: 16px;--swui-button-border-radius-icon-only: 16px;--swui-nav-bar-notification-shake-count: 3;transition:.5s width;width:32px}._navBarNotificationButton_1wchp_1._hasCount_1wchp_60{width:56px}._navBarNotificationButton_1wchp_1._unread_1wchp_64{--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_1wchp_1._unread_1wchp_64._hasCount_1wchp_60 ._icon_1wchp_79{-webkit-transform-origin:top center;transform-origin:top center;-webkit-animation:_shake_1wchp_1 1.5s ease-in-out var(--swui-nav-bar-notification-shake-count);animation:_shake_1wchp_1 1.5s ease-in-out var(--swui-nav-bar-notification-shake-count)}@-webkit-keyframes _shake_1wchp_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_1wchp_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_4knxd_1{--swui-textinput-line-height: 2.7rem;--swui-textinput-text-color: var(--lhds-color-ui-50)}._navBarSearchFieldInput_4knxd_1:focus{--swui-textinput-text-color: var(--lhds-color-ui-800)}._navBarSearchField_4knxd_1{--swui-textinput-animation-time: var(--swui-animation-time-fast);--swui-textinput-placeholder-color: var(--lhds-color-ui-500);--swui-textinput-bg-color: var(--lhds-color-blue-600);--swui-textinput-border-color: transparent;--swui-textinput-border-color-hover: transparent}._navBarSearchField_4knxd_1:focus-within{--swui-textinput-text-color: var(--lhds-color-ui-800);--swui-field-text-color: var(--swui-field-text-color);--swui-textinput-icon-color: var(--lhds-color-ui-500);--swui-textinput-bg-color: var(--lhds-color-ui-50)}._navBarUserButton_1gxfr_1{--swui-nav-bar-user-button-text-color: var(--lhds-color-ui-50);--swui-nav-bar-user-button-background-color: var(--lhds-color-blue-700);--swui-nav-bar-user-button-background-color-hover: var(--lhds-color-blue-900);--swui-nav-bar-user-button-background-color-focus: var(--lhds-color-blue-700);--swui-nav-bar-user-button-background-color-active: var( --lhds-color-blue-800 );--swui-flat-button-text-color: var(--swui-nav-bar-user-button-text-color);--swui-flat-button-icon-color: var(--swui-nav-bar-user-button-text-color);--swui-flat-button-text-color-active: var( --swui-nav-bar-user-button-text-color );--swui-flat-button-background-color: var( --swui-nav-bar-user-button-background-color );--swui-flat-button-background-color-hover: var( --swui-nav-bar-user-button-background-color-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-user-button-background-color-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-user-button-background-color-active );--swui-button-border-radius: 16px;--swui-button-border-radius-icon-only: 16px}._navBarUserButton_1gxfr_1._initials_1gxfr_33{width:32px}._clickable_1ijxc_1{--swui-toast-border-color: transparent;--swui-toast-item-border-color-hover: var(--lhds-color-blue-500);--current-border-color: var(--swui-toast-border-color);border-width:1px;border-style:solid;border-color:var(--current-border-color);position:absolute;top:0;left:0;right:0;bottom:0;border-radius:8px;background-color:transparent;width:100%;cursor:pointer}._clickable_1ijxc_1:hover{--current-border-color: var(--swui-toast-item-border-color-hover)}._nonClickable_1ijxc_27{position:relative;z-index:1;pointer-events:none}._nonClickable_1ijxc_27 a,._nonClickable_1ijxc_27 button{pointer-events:auto}._collapsible_1nroa_1{--swui-collapsible-animation-time: var(--swui-animation-time-fast);--swui-collapsible-expanded-line-background-color: var( --swui-primary-action-color );--swui-collapsible-header-text-color: var(--lhds-color-ui-900);--swui-collapsible-header-background-color: var(--swui-white);--swui-collapsible-header-background-color-hover: var(--lhds-color-blue-100);--swui-collapsible-header-background-color-active: var(--lhds-color-blue-100);--swui-collapsible-header-border-color: var(--lhds-color-ui-300);--swui-collapsible-header-border-color-focus: var( --swui-primary-action-color );--swui-collapsible-header-focus-shadow: var(--swui-field-focus-shadow);--swui-collapsible-header-content-margin: calc( var(--swui-metrics-indent) * 2 );--swui-collapsible-header-font-weight: var(--swui-font-weight-text-bold);--swui-collapsible-header-indicator-color: var(--swui-primary-action-color);--swui-collapsible-header-indicator-color-collapsed: var(--lhds-color-ui-500);--swui-collapsible-header-indicator-color-hover: var( --swui-primary-action-color );--swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0;--swui-collapsible-content-background-color: var(--lhds-color-ui-100);--swui-collapsible-content-border-color: var(--lhds-color-ui-300);--swui-collapsible-content-padding: var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 2);--swui-collapsible-groupheading-font-size: var(--swui-font-size-smaller);--swui-collapsible-groupheading-text-color: var(--lhds-color-ui-600);--swui-collapsible-min-height: 40px}._collapsible_1nroa_1 ._header_1nroa_46{background-color:var(--swui-collapsible-header-background-color);width:100%;text-align:left;min-height:var(--swui-collapsible-min-height);box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--swui-collapsible-header-border-color);padding:var(--swui-collapsible-header-padding)}._collapsible_1nroa_1 ._header_1nroa_46 ._indicator_1nroa_59{transition:all var(--swui-collapsible-animation-time) ease-in-out;margin-left:var(--swui-collapsible-header-content-margin);color:var(--swui-collapsible-header-indicator-color)}._collapsible_1nroa_1 ._header_1nroa_46:not(:disabled):hover:not(:active){background-color:var(--swui-collapsible-header-background-color-hover)}._collapsible_1nroa_1 ._header_1nroa_46:not(:disabled):hover:not(:active) ._indicator_1nroa_59{color:var(--swui-collapsible-header-indicator-color-hover)}._collapsible_1nroa_1 ._header_1nroa_46:focus-visible{outline:1px solid var(--swui-collapsible-header-border-color-focus);outline-offset:-1px;box-shadow:var(--swui-collapsible-header-focus-shadow)}._collapsible_1nroa_1 ._header_1nroa_46:active{background:var(--swui-collapsible-header-background-color-active)}._collapsible_1nroa_1 ._header_1nroa_46:disabled{cursor:not-allowed}._collapsible_1nroa_1{position:relative}._collapsible_1nroa_1:before{content:"";position:absolute;width:2px;background:var(--swui-collapsible-expanded-line-background-color);top:0;bottom:0;left:0;z-index:1}._collapsible_1nroa_1 ._headerText_1nroa_103{font-weight:var(--swui-collapsible-header-font-weight)}._collapsible_1nroa_1[aria-expanded=false]{--swui-collapsible-expanded-line-background-color: transparent}._collapsible_1nroa_1[aria-expanded=false] ._indicator_1nroa_59{color:var(--swui-collapsible-header-indicator-color-collapsed)}._collapsible_1nroa_1 ._label_1nroa_114{margin-right:auto}._collapsible_1nroa_1 ._label_1nroa_114 span{--current-line-height: 1;font-weight:var(--swui-collapsible-header-font-weight)}._collapsible_1nroa_1 ._contentLeft_1nroa_123,._collapsible_1nroa_1 ._contentRight_1nroa_124{display:flex}._collapsible_1nroa_1 ._contentLeft_1nroa_123 button,._collapsible_1nroa_1 ._contentRight_1nroa_124 button{cursor:pointer}._collapsible_1nroa_1 ._contentLeft_1nroa_123{margin-right:var(--swui-collapsible-header-content-margin)}._collapsible_1nroa_1 ._contentRight_1nroa_124{margin-left:auto}._collapsible_1nroa_1 ._content_1nroa_123{display:flex;align-items:center;justify-content:stretch;background:var(--swui-collapsible-content-background-color);padding:var(--swui-collapsible-content-padding);min-height:var(--swui-collapsible-min-height);box-sizing:border-box}._collapsible_1nroa_1 ._content_1nroa_123:last-child{border-bottom:1px solid var(--swui-collapsible-content-border-color)}._collapsible_1nroa_1 ._content_1nroa_123._groupHeading_1nroa_155{border:none;font-size:var(--swui-collapsible-groupheading-font-size);font-family:var(--swui-font-primary);color:var(--swui-collapsible-groupheading-text-color);text-transform:uppercase;font-weight:var(--swui-font-weight-text-bold);letter-spacing:.1rem}._collapsible_1nroa_1 ._content_1nroa_123 [data-hidden=true]{display:none}._collapsible_1nroa_1 ._content_1nroa_123:hover [data-hidden=true]{display:inherit}._collapsible_1nroa_1 ._content_1nroa_123:hover [data-hover=true]{color:var(--swui-collapsible-header-indicator-color-hover)}._collapsible_1nroa_1 ._contentEnter_1nroa_180{opacity:0}._collapsible_1nroa_1 ._contentEnterActive_1nroa_184{opacity:1;transition:opacity var(--swui-collapsible-animation-time) ease-in-out}._collapsible_1nroa_1 ._contentExitDone_1nroa_189{display:none}._collapsible_1nroa_1 button._content_1nroa_123{font-family:var(--swui-font-primary);font-size:inherit;width:100%;text-align:left}._collapsible_1nroa_1 button._content_1nroa_123:focus-visible{outline:1px solid var(--swui-collapsible-header-border-color-focus);outline-offset:-1px;box-shadow:var(--swui-collapsible-header-focus-shadow)}._collapsible_1nroa_1 button._content_1nroa_123:not(:disabled):hover{background-color:var(--swui-collapsible-header-background-color-hover)}._collapsible_1nroa_1 button._content_1nroa_123:disabled{cursor:not-allowed}._collapsible_1nroa_1 button._content_1nroa_123:focus-within [data-hidden=true]{display:inherit}._collapsible_1nroa_1 ._collapsible_1nroa_1{--swui-collapsible-header-background-color: var( --swui-collapsible-content-background-color );--swui-collapsible-header-font-weight: normal}._collapsible_1nroa_1 ._collapsible_1nroa_1{--swui-collapsible-content-padding: var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 2) var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 4)}._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1{--swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0 calc(var(--swui-metrics-indent) * 4);--swui-collapsible-content-padding: var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 2) var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 6)}._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1{--swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0 calc(var(--swui-metrics-indent) * 6);--swui-collapsible-content-padding: var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 2) var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 8)}._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1{--swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0 calc(var(--swui-metrics-indent) * 8);--swui-collapsible-content-padding: var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 2) var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 10)}._sidebarMenu_hch18_1{--swui-sidebar-menu-separator-color: var(--lhds-color-blue-700);--swui-sidebar-menu-text-color: var(--swui-white);--swui-sidebar-menu-icon-color: var(--swui-white);--swui-sidebar-menu-background-color: var(--lhds-color-blue-500);--swui-sidebar-menu-background-color-hover: var(--lhds-color-blue-700);--swui-sidebar-menu-background-color-focus: var(--lhds-color-blue-700);--swui-sidebar-menu-background-color-active: var(--lhds-color-blue-600);--swui-sidebar-menu-item-selected: var(--lhds-color-blue-800);--swui-sidebar-menu-content-padding: var(--swui-metrics-indent) var(--swui-metrics-indent) var(--swui-metrics-indent) 0;--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-item-selected: var(--swui-sidebar-menu-item-selected);--current-content-padding: var(--swui-sidebar-menu-content-padding);background-color:var(--current-background-color);height:100vh}._sidebarMenu_hch18_1[data-collapsed]{width:var(--swui-sidebar-menu-item-height)}._sidebarMenu_hch18_1 button{--swui-button-text-color: var(--swui-white);--swui-button-background-color-hover: var( --swui-sidebar-menu-background-color-hover )}._sidebarMenuCloseButton_1j21u_1{--swui-sidebar-menu-close-button-text-color: var(--lhds-color-ui-50);--swui-sidebar-menu-close-button-background-color: var(--lhds-color-blue-500);--swui-sidebar-menu-close-button-background-color-hover: var( --lhds-color-blue-600 );--swui-sidebar-menu-close-button-background-color-focus: var( --lhds-color-blue-600 );--swui-sidebar-menu-close-button-background-color-active: var( --lhds-color-blue-500 );--current-background-color: var( --swui-sidebar-menu-close-button-background-color );display:flex;align-items:center;justify-content:flex-start;line-height:10px;background-color:var(--current-background-color);color:var(--swui-sidebar-menu-close-button-text-color);cursor:pointer;height:var(--swui-sidebar-menu-item-height);padding:0;margin:0;box-sizing:border-box;border-radius:0;outline:none;border:none}._sidebarMenuCloseButton_1j21u_1:hover{--current-background-color: var( --swui-sidebar-menu-close-button-background-color-hover )}._sidebarMenuCloseButton_1j21u_1:focus{--current-background-color: var( --swui-sidebar-menu-close-button-background-color-focus )}._sidebarMenuCloseButton_1j21u_1:active{--current-background-color: var( --swui-sidebar-menu-close-button-background-color-active )}._sidebarMenuCloseButton_1j21u_1 ._iconWrapper_1j21u_55{justify-content:center;align-items:center;width:var(--swui-sidebar-menu-item-height);height:var(--swui-sidebar-menu-item-height)}._sidebarMenuCloseButton_1j21u_1 ._icon_1j21u_55{color:var(--swui-sidebar-menu-close-button-text-color)}._label_mnp0f_1{font-size:var(--current-text-size, var(--swui-font-size-medium));line-height:var(--current-line-height, var(--swui-line-height-medium));font-weight:var(--swui-button-font-weight);font-family:var(--swui-font-buttons);color:var(--current-text-color)}._icon_mnp0f_9{color:var(--current-text-color);font-size:1.6rem}._spinner_mnp0f_14{color:var(--current-text-color)}._leftWrapper_mnp0f_18._leftWrapper_mnp0f_18._leftWrapper_mnp0f_18._leftWrapper_mnp0f_18{width:var(--swui-sidebar-menu-item-height);margin-right:0}._button_mnp0f_23{border:0;padding:0;background:var(--current-background-color)}[data-collapsed] [aria-expanded=true] ._button_mnp0f_23,._button_mnp0f_23:hover{background:var(--current-background-color-hover)}._button_mnp0f_23:focus{outline:none}._button_mnp0f_23:focus-visible{background:var(--current-background-color-active)}._button_mnp0f_23:active{background:var(--current-background-color-active)}._button_mnp0f_23._selected_mnp0f_45{background:var(--current-item-selected)}._sidebarMenuHeading_kvpq5_1{--swui-sidebar-menu-heading-text-color: var(--lhds-color-ui-300);text-transform:uppercase}._sidebarMenuCollapsible_1jwhs_1{--swui-collapsible-header-text-color: var(--current-text-color);--swui-collapsible-header-background-color: var(--current-background-color);--swui-collapsible-header-background-color-hover: var( --current-background-color-hover );--swui-collapsible-header-background-color-active: var( --current-background-color-active );--swui-collapsible-header-indicator-color: var(--current-text-color);--swui-collapsible-header-indicator-color-collapsed: var( --current-text-color );--swui-collapsible-header-indicator-color-hover: var(--current-text-color);--swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0 0;--swui-collapsible-header-content-margin: 0;--swui-collapsible-collapsible-link-padding: var(--swui-metrics-indent) var(--swui-metrics-indent) var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 4);--swui-collapsible-header-border-color: transparent;--swui-collapsible-min-height: var(--swui-sidebar-menu-item-height)}')),document.head.appendChild(o)}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
-
import { ActionMenu as
|
|
3
|
-
import * as
|
|
4
|
-
import { useRef as
|
|
5
|
-
import { useBoolean as
|
|
6
|
-
import { Popover as
|
|
7
|
-
import { jsx as e, jsxs as
|
|
8
|
-
import { Checkbox as
|
|
9
|
-
import
|
|
10
|
-
import { cssColor as
|
|
1
|
+
(function(){"use strict";try{var o=document.createElement("style");o.appendChild(document.createTextNode('._navBar_1bafw_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 );background-color:var(--swui-navbar-background-color)}._sidebarMenuButton_d43s4_1{--swui-nav-bar-side-menu-button-text-color: var(--lhds-color-blue-600);--swui-nav-bar-side-menu-button-background-color: var(--lhds-color-ui-50);--swui-nav-bar-side-menu-button-background-color-hover: var( --lhds-color-ui-100 );--swui-nav-bar-side-menu-button-background-color-focus: var( --lhds-color-ui-200 );--swui-nav-bar-side-menu-button-background-color-active: var( --lhds-color-ui-200 );--current-background-color: var( --swui-nav-bar-side-menu-button-background-color );display:flex;align-items:center;justify-content:center;line-height:10px;background-color:var(--current-background-color);color:var(--swui-nav-bar-side-menu-button-text-color);cursor:pointer;height:var(--swui-nav-bar-height);width:var(--swui-nav-bar-height);padding:0;margin:0;box-sizing:border-box;border-radius:0;outline:none;border:none}._sidebarMenuButton_d43s4_1:hover{--current-background-color: var( --swui-nav-bar-side-menu-button-background-color-hover )}._sidebarMenuButton_d43s4_1:focus-visible{--current-background-color: var( --swui-nav-bar-side-menu-button-background-color-focus )}._sidebarMenuButton_d43s4_1:active{--current-background-color: var( --swui-nav-bar-side-menu-button-background-color-active )}._sidebarMenuButton_d43s4_1 ._icon_d43s4_55 path{fill:var(--swui-nav-bar-side-menu-button-text-color)}._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_17zoz_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-button-border-radius: 16px;--swui-button-border-radius-icon-only: 16px;--swui-nav-bar-notification-shake-count: 3;transition:.5s width;width:32px}._navBarNotificationButton_17zoz_1._hasCount_17zoz_58{width:56px}._navBarNotificationButton_17zoz_1._unread_17zoz_62{--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_17zoz_1._unread_17zoz_62._hasCount_17zoz_58 ._icon_17zoz_77{-webkit-transform-origin:top center;transform-origin:top center;-webkit-animation:_shake_17zoz_1 1.5s ease-in-out var(--swui-nav-bar-notification-shake-count);animation:_shake_17zoz_1 1.5s ease-in-out var(--swui-nav-bar-notification-shake-count)}@-webkit-keyframes _shake_17zoz_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_17zoz_1{0%{-webkit-transform:rotate(0);transform:rotate(0)}7%{-webkit-transform:rotate(20deg);transform:rotate(20deg)}15%{-webkit-transform:rotate(-20deg);transform:rotate(-20deg)}22%{-webkit-transform:rotate(16deg);transform:rotate(16deg)}30%{-webkit-transform:rotate(-16deg);transform:rotate(-16deg)}38%{-webkit-transform:rotate(6deg);transform:rotate(6deg)}42%{-webkit-transform:rotate(-6deg);transform:rotate(-6deg)}46%{-webkit-transform:rotate(2deg);transform:rotate(2deg)}to{-webkit-transform:rotate(0);transform:rotate(0)}}._navBarSearchFieldInput_rcj0j_1{--swui-textinput-line-height: 2.7rem;--swui-textinput-text-color: var(--lhds-color-ui-50)}._navBarSearchFieldInput_rcj0j_1:focus{--swui-textinput-text-color: var(--lhds-color-ui-800)}._navBarSearchField_rcj0j_1{--swui-textinput-animation-time: var(--swui-animation-time-fast);--swui-textinput-placeholder-color: var(--lhds-color-ui-500);--swui-textinput-bg-color: var(--lhds-color-blue-50);--swui-textinput-border-color: transparent;--swui-textinput-border-color-hover: transparent}._navBarSearchField_rcj0j_1:focus-within{--swui-textinput-text-color: var(--lhds-color-ui-800);--swui-field-text-color: var(--swui-field-text-color);--swui-textinput-icon-color: var(--lhds-color-ui-500);--swui-textinput-bg-color: var(--lhds-color-ui-50)}._navBarUserButton_1cwhm_1{--swui-nav-bar-user-button-text-color: var(--lhds-color-blue-600);--swui-nav-bar-user-button-background-color: var(--lhds-color-ui-50);--swui-nav-bar-user-button-background-color-hover: var(--lhds-color-ui-100);--swui-nav-bar-user-button-background-color-focus: var(--lhds-color-ui-100);--swui-nav-bar-user-button-background-color-active: var(--lhds-color-ui-200);--swui-flat-button-text-color: var(--swui-nav-bar-user-button-text-color);--swui-flat-button-icon-color: var(--swui-nav-bar-user-button-text-color);--swui-flat-button-text-color-active: var( --swui-nav-bar-user-button-text-color );--swui-flat-button-background-color: var( --swui-nav-bar-user-button-background-color );--swui-flat-button-background-color-hover: var( --swui-nav-bar-user-button-background-color-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-user-button-background-color-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-user-button-background-color-active );--swui-button-border-radius: 16px;--swui-button-border-radius-icon-only: 16px}._navBarUserButton_1cwhm_1._initials_1cwhm_31{width:32px}._clickable_1ijxc_1{--swui-toast-border-color: transparent;--swui-toast-item-border-color-hover: var(--lhds-color-blue-500);--current-border-color: var(--swui-toast-border-color);border-width:1px;border-style:solid;border-color:var(--current-border-color);position:absolute;top:0;left:0;right:0;bottom:0;border-radius:8px;background-color:transparent;width:100%;cursor:pointer}._clickable_1ijxc_1:hover{--current-border-color: var(--swui-toast-item-border-color-hover)}._nonClickable_1ijxc_27{position:relative;z-index:1;pointer-events:none}._nonClickable_1ijxc_27 a,._nonClickable_1ijxc_27 button{pointer-events:auto}._collapsible_1nroa_1{--swui-collapsible-animation-time: var(--swui-animation-time-fast);--swui-collapsible-expanded-line-background-color: var( --swui-primary-action-color );--swui-collapsible-header-text-color: var(--lhds-color-ui-900);--swui-collapsible-header-background-color: var(--swui-white);--swui-collapsible-header-background-color-hover: var(--lhds-color-blue-100);--swui-collapsible-header-background-color-active: var(--lhds-color-blue-100);--swui-collapsible-header-border-color: var(--lhds-color-ui-300);--swui-collapsible-header-border-color-focus: var( --swui-primary-action-color );--swui-collapsible-header-focus-shadow: var(--swui-field-focus-shadow);--swui-collapsible-header-content-margin: calc( var(--swui-metrics-indent) * 2 );--swui-collapsible-header-font-weight: var(--swui-font-weight-text-bold);--swui-collapsible-header-indicator-color: var(--swui-primary-action-color);--swui-collapsible-header-indicator-color-collapsed: var(--lhds-color-ui-500);--swui-collapsible-header-indicator-color-hover: var( --swui-primary-action-color );--swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0;--swui-collapsible-content-background-color: var(--lhds-color-ui-100);--swui-collapsible-content-border-color: var(--lhds-color-ui-300);--swui-collapsible-content-padding: var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 2);--swui-collapsible-groupheading-font-size: var(--swui-font-size-smaller);--swui-collapsible-groupheading-text-color: var(--lhds-color-ui-600);--swui-collapsible-min-height: 40px}._collapsible_1nroa_1 ._header_1nroa_46{background-color:var(--swui-collapsible-header-background-color);width:100%;text-align:left;min-height:var(--swui-collapsible-min-height);box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--swui-collapsible-header-border-color);padding:var(--swui-collapsible-header-padding)}._collapsible_1nroa_1 ._header_1nroa_46 ._indicator_1nroa_59{transition:all var(--swui-collapsible-animation-time) ease-in-out;margin-left:var(--swui-collapsible-header-content-margin);color:var(--swui-collapsible-header-indicator-color)}._collapsible_1nroa_1 ._header_1nroa_46:not(:disabled):hover:not(:active){background-color:var(--swui-collapsible-header-background-color-hover)}._collapsible_1nroa_1 ._header_1nroa_46:not(:disabled):hover:not(:active) ._indicator_1nroa_59{color:var(--swui-collapsible-header-indicator-color-hover)}._collapsible_1nroa_1 ._header_1nroa_46:focus-visible{outline:1px solid var(--swui-collapsible-header-border-color-focus);outline-offset:-1px;box-shadow:var(--swui-collapsible-header-focus-shadow)}._collapsible_1nroa_1 ._header_1nroa_46:active{background:var(--swui-collapsible-header-background-color-active)}._collapsible_1nroa_1 ._header_1nroa_46:disabled{cursor:not-allowed}._collapsible_1nroa_1{position:relative}._collapsible_1nroa_1:before{content:"";position:absolute;width:2px;background:var(--swui-collapsible-expanded-line-background-color);top:0;bottom:0;left:0;z-index:1}._collapsible_1nroa_1 ._headerText_1nroa_103{font-weight:var(--swui-collapsible-header-font-weight)}._collapsible_1nroa_1[aria-expanded=false]{--swui-collapsible-expanded-line-background-color: transparent}._collapsible_1nroa_1[aria-expanded=false] ._indicator_1nroa_59{color:var(--swui-collapsible-header-indicator-color-collapsed)}._collapsible_1nroa_1 ._label_1nroa_114{margin-right:auto}._collapsible_1nroa_1 ._label_1nroa_114 span{--current-line-height: 1;font-weight:var(--swui-collapsible-header-font-weight)}._collapsible_1nroa_1 ._contentLeft_1nroa_123,._collapsible_1nroa_1 ._contentRight_1nroa_124{display:flex}._collapsible_1nroa_1 ._contentLeft_1nroa_123 button,._collapsible_1nroa_1 ._contentRight_1nroa_124 button{cursor:pointer}._collapsible_1nroa_1 ._contentLeft_1nroa_123{margin-right:var(--swui-collapsible-header-content-margin)}._collapsible_1nroa_1 ._contentRight_1nroa_124{margin-left:auto}._collapsible_1nroa_1 ._content_1nroa_123{display:flex;align-items:center;justify-content:stretch;background:var(--swui-collapsible-content-background-color);padding:var(--swui-collapsible-content-padding);min-height:var(--swui-collapsible-min-height);box-sizing:border-box}._collapsible_1nroa_1 ._content_1nroa_123:last-child{border-bottom:1px solid var(--swui-collapsible-content-border-color)}._collapsible_1nroa_1 ._content_1nroa_123._groupHeading_1nroa_155{border:none;font-size:var(--swui-collapsible-groupheading-font-size);font-family:var(--swui-font-primary);color:var(--swui-collapsible-groupheading-text-color);text-transform:uppercase;font-weight:var(--swui-font-weight-text-bold);letter-spacing:.1rem}._collapsible_1nroa_1 ._content_1nroa_123 [data-hidden=true]{display:none}._collapsible_1nroa_1 ._content_1nroa_123:hover [data-hidden=true]{display:inherit}._collapsible_1nroa_1 ._content_1nroa_123:hover [data-hover=true]{color:var(--swui-collapsible-header-indicator-color-hover)}._collapsible_1nroa_1 ._contentEnter_1nroa_180{opacity:0}._collapsible_1nroa_1 ._contentEnterActive_1nroa_184{opacity:1;transition:opacity var(--swui-collapsible-animation-time) ease-in-out}._collapsible_1nroa_1 ._contentExitDone_1nroa_189{display:none}._collapsible_1nroa_1 button._content_1nroa_123{font-family:var(--swui-font-primary);font-size:inherit;width:100%;text-align:left}._collapsible_1nroa_1 button._content_1nroa_123:focus-visible{outline:1px solid var(--swui-collapsible-header-border-color-focus);outline-offset:-1px;box-shadow:var(--swui-collapsible-header-focus-shadow)}._collapsible_1nroa_1 button._content_1nroa_123:not(:disabled):hover{background-color:var(--swui-collapsible-header-background-color-hover)}._collapsible_1nroa_1 button._content_1nroa_123:disabled{cursor:not-allowed}._collapsible_1nroa_1 button._content_1nroa_123:focus-within [data-hidden=true]{display:inherit}._collapsible_1nroa_1 ._collapsible_1nroa_1{--swui-collapsible-header-background-color: var( --swui-collapsible-content-background-color );--swui-collapsible-header-font-weight: normal}._collapsible_1nroa_1 ._collapsible_1nroa_1{--swui-collapsible-content-padding: var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 2) var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 4)}._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1{--swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0 calc(var(--swui-metrics-indent) * 4);--swui-collapsible-content-padding: var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 2) var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 6)}._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1{--swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0 calc(var(--swui-metrics-indent) * 6);--swui-collapsible-content-padding: var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 2) var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 8)}._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1 ._collapsible_1nroa_1{--swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0 calc(var(--swui-metrics-indent) * 8);--swui-collapsible-content-padding: var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 2) var(--swui-metrics-indent) calc(var(--swui-metrics-indent) * 10)}._sidebarMenu_tg9i7_1{--swui-sidebar-menu-separator-color: var(--swui-white);--swui-sidebar-menu-text-color: var(--lhds-color-ui-900);--swui-sidebar-menu-icon-color: var(--lhds-color-ui-900);--swui-sidebar-menu-background-color: transparent;--swui-sidebar-menu-background-color-hover: var(--lhds-color-ui-400);--swui-sidebar-menu-background-color-focus: var(--lhds-color-ui-400);--swui-sidebar-menu-background-color-active: var(--lhds-color-ui-300);--swui-sidebar-menu-background-selected: var(--lhds-color-blue-100);--swui-sidebar-menu-background-selected-hover: var(--lhds-color-blue-200);--swui-sidebar-menu-background-selected-focus: var(--lhds-color-blue-200);--swui-sidebar-menu-background-selected-active: var(--lhds-color-blue-100);--current-separator-color: var(--swui-sidebar-menu-separator-color);--current-text-color: var(--swui-sidebar-menu-text-color);--current-icon-color: var(--swui-sidebar-menu-icon-color);--current-background-color: var(--swui-sidebar-menu-background-color);--current-background-color-hover: var( --swui-sidebar-menu-background-color-hover );--current-background-color-focus: var( --swui-sidebar-menu-background-color-focus );--current-background-color-active: var( --swui-sidebar-menu-background-color-active );--current-background-selected: var(--swui-sidebar-menu-background-selected);--current-background-selected-hover: var( --swui-sidebar-menu-background-selected-hover );--current-background-selected-focus: var( --swui-sidebar-menu-background-selected-focus );--current-background-selected-active: var( --swui-sidebar-menu-background-selected-active );background-color:var(--current-background-color);height:100vh}._sidebarMenu_tg9i7_1[data-collapsed]{width:var(--swui-sidebar-menu-item-height)}._sidebarMenu_tg9i7_1 button{--swui-button-text-color: var(--swui-white);--swui-button-background-color-hover: var( --swui-sidebar-menu-background-color-hover )}._stenaFlag_108h7_1{height:32px}')),document.head.appendChild(o)}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
+
import { ActionMenu as Y, ActionMenuContext as he, stenaAngleDown as ee, PrimaryButton as pe, SecondaryButton as me, FlatButton as k, stenaBellFilled as ge, Icon as z, stenaSearch as fe, stenaUserCircle as be, stenaTimes as ne, Banner as ve, Spinner as _e, StenaFlag as Ce, MenuButtonLink as Be, MenuButton as xe } from "@stenajs-webui/elements";
|
|
3
|
+
import * as L from "react";
|
|
4
|
+
import { useRef as ye, useMemo as Ne, forwardRef as we, useState as ke } from "react";
|
|
5
|
+
import { useBoolean as D, Column as F, Box as l, Row as u, Indent as b, Heading as U, Clickable as V, Txt as G, Space as f, Text as w, SeparatorLine as te, exhaustSwitchCaseElseThrow as oe } from "@stenajs-webui/core";
|
|
6
|
+
import { Popover as R } from "@stenajs-webui/tooltip";
|
|
7
|
+
import { jsx as e, jsxs as c, Fragment as m } from "react/jsx-runtime";
|
|
8
|
+
import { Checkbox as re, TextInput as Se } from "@stenajs-webui/forms";
|
|
9
|
+
import h from "classnames";
|
|
10
|
+
import { cssColor as v } from "@stenajs-webui/theme";
|
|
11
11
|
import { faChevronDown as Ie } from "@fortawesome/free-solid-svg-icons";
|
|
12
|
-
import { faChevronUp as
|
|
12
|
+
import { faChevronUp as Me } from "@fortawesome/free-solid-svg-icons/faChevronUp";
|
|
13
13
|
import { CSSTransition as Ee } from "react-transition-group";
|
|
14
14
|
import { faInbox as Fe } from "@fortawesome/free-solid-svg-icons/faInbox";
|
|
15
|
-
const
|
|
15
|
+
const W = ({
|
|
16
16
|
renderItems: n,
|
|
17
|
-
placement:
|
|
18
|
-
buttonComponent:
|
|
19
|
-
rightIcon:
|
|
20
|
-
portalTarget:
|
|
21
|
-
zIndex:
|
|
22
|
-
menuWidth:
|
|
23
|
-
menuTop:
|
|
17
|
+
placement: t = "bottom",
|
|
18
|
+
buttonComponent: o,
|
|
19
|
+
rightIcon: r = ee,
|
|
20
|
+
portalTarget: a = "parent",
|
|
21
|
+
zIndex: i,
|
|
22
|
+
menuWidth: s,
|
|
23
|
+
menuTop: p,
|
|
24
24
|
onClick: _,
|
|
25
|
-
disableArrow:
|
|
26
|
-
...
|
|
25
|
+
disableArrow: B = !1,
|
|
26
|
+
...C
|
|
27
27
|
}) => {
|
|
28
|
-
const [
|
|
28
|
+
const [x, y, g, H] = D(!1), S = ye(null), A = {
|
|
29
29
|
name: "focusManager",
|
|
30
30
|
defaultValue: !0,
|
|
31
31
|
fn({
|
|
32
|
-
popper:
|
|
32
|
+
popper: M
|
|
33
33
|
}) {
|
|
34
|
-
let
|
|
35
|
-
const
|
|
36
|
-
|
|
34
|
+
let j = !1;
|
|
35
|
+
const q = (N) => {
|
|
36
|
+
N.key === "Escape" && (j = !0, g()), (N.key === "Enter" || N.key === " ") && (j = !0);
|
|
37
37
|
};
|
|
38
38
|
return {
|
|
39
39
|
onCreate() {
|
|
40
|
-
|
|
40
|
+
M.addEventListener("keydown", q);
|
|
41
41
|
},
|
|
42
42
|
onDestroy() {
|
|
43
|
-
|
|
43
|
+
M.removeEventListener("keydown", q);
|
|
44
44
|
},
|
|
45
45
|
onMount() {
|
|
46
|
-
var
|
|
47
|
-
|
|
46
|
+
var N;
|
|
47
|
+
j = !1, (N = M.querySelector("button:not([disabled]), a[href]")) == null || N.focus();
|
|
48
48
|
},
|
|
49
49
|
onHide() {
|
|
50
|
-
|
|
50
|
+
S.current && j && S.current.focus();
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
-
},
|
|
55
|
-
open:
|
|
56
|
-
close:
|
|
57
|
-
}), [
|
|
58
|
-
_ == null || _(
|
|
54
|
+
}, I = Ne(() => ({
|
|
55
|
+
open: y,
|
|
56
|
+
close: g
|
|
57
|
+
}), [y, g]), P = (M) => {
|
|
58
|
+
_ == null || _(M), H();
|
|
59
59
|
};
|
|
60
|
-
return /* @__PURE__ */ e(
|
|
60
|
+
return /* @__PURE__ */ e(R, {
|
|
61
61
|
disablePadding: !0,
|
|
62
|
-
visible:
|
|
63
|
-
onClickOutside:
|
|
64
|
-
placement:
|
|
65
|
-
content:
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
top: h,
|
|
62
|
+
visible: x,
|
|
63
|
+
onClickOutside: g,
|
|
64
|
+
placement: t,
|
|
65
|
+
content: x && /* @__PURE__ */ e(Y, {
|
|
66
|
+
width: s,
|
|
67
|
+
top: p,
|
|
69
68
|
trapFocus: !0,
|
|
70
|
-
children: /* @__PURE__ */ e(
|
|
71
|
-
value:
|
|
72
|
-
children: n(
|
|
69
|
+
children: /* @__PURE__ */ e(he.Provider, {
|
|
70
|
+
value: I,
|
|
71
|
+
children: n(g)
|
|
73
72
|
})
|
|
74
73
|
}),
|
|
75
74
|
arrow: !1,
|
|
76
|
-
appendTo:
|
|
77
|
-
zIndex:
|
|
78
|
-
plugins: [
|
|
75
|
+
appendTo: a,
|
|
76
|
+
zIndex: i,
|
|
77
|
+
plugins: [A],
|
|
79
78
|
lazy: !0,
|
|
80
|
-
children: /* @__PURE__ */ e(
|
|
81
|
-
rightIcon:
|
|
82
|
-
...
|
|
83
|
-
ref:
|
|
84
|
-
onClick:
|
|
79
|
+
children: /* @__PURE__ */ e(o, {
|
|
80
|
+
rightIcon: B ? void 0 : r,
|
|
81
|
+
...C,
|
|
82
|
+
ref: S,
|
|
83
|
+
onClick: P
|
|
85
84
|
})
|
|
86
85
|
});
|
|
87
|
-
},
|
|
88
|
-
buttonComponent:
|
|
86
|
+
}, An = (n) => /* @__PURE__ */ e(W, {
|
|
87
|
+
buttonComponent: pe,
|
|
89
88
|
...n
|
|
90
|
-
}),
|
|
91
|
-
buttonComponent:
|
|
89
|
+
}), Pn = (n) => /* @__PURE__ */ e(W, {
|
|
90
|
+
buttonComponent: me,
|
|
92
91
|
...n
|
|
93
|
-
}), je = (n) => /* @__PURE__ */ e(
|
|
94
|
-
buttonComponent:
|
|
92
|
+
}), je = (n) => /* @__PURE__ */ e(W, {
|
|
93
|
+
buttonComponent: k,
|
|
95
94
|
...n
|
|
96
|
-
}),
|
|
95
|
+
}), Le = "1px solid var(--lhds-color-ui-300)", Tn = ({
|
|
97
96
|
renderMenu: n,
|
|
98
|
-
...
|
|
97
|
+
...t
|
|
99
98
|
}) => {
|
|
100
|
-
const [
|
|
101
|
-
return /* @__PURE__ */ e(
|
|
102
|
-
onClickOutside:
|
|
99
|
+
const [o, r, a] = D(!1);
|
|
100
|
+
return /* @__PURE__ */ e(R, {
|
|
101
|
+
onClickOutside: a,
|
|
103
102
|
arrow: !1,
|
|
104
|
-
visible:
|
|
103
|
+
visible: o,
|
|
105
104
|
disablePadding: !0,
|
|
106
|
-
content: n ? /* @__PURE__ */ e(
|
|
107
|
-
children: /* @__PURE__ */ e(
|
|
108
|
-
children: n(
|
|
105
|
+
content: n ? /* @__PURE__ */ e(F, {
|
|
106
|
+
children: /* @__PURE__ */ e(Y, {
|
|
107
|
+
children: n(a)
|
|
109
108
|
})
|
|
110
109
|
}) : void 0,
|
|
111
110
|
placement: "bottom-start",
|
|
112
|
-
|
|
113
|
-
children: /* @__PURE__ */ e(c, {
|
|
111
|
+
children: /* @__PURE__ */ e(l, {
|
|
114
112
|
display: "inline-block",
|
|
115
|
-
children: /* @__PURE__ */
|
|
113
|
+
children: /* @__PURE__ */ c(u, {
|
|
116
114
|
spacing: 0.5,
|
|
117
115
|
indent: !0,
|
|
118
116
|
alignItems: "center",
|
|
119
|
-
border:
|
|
117
|
+
border: Le,
|
|
120
118
|
borderRadius: "4px",
|
|
121
|
-
children: [/* @__PURE__ */ e(
|
|
122
|
-
...
|
|
123
|
-
}), /* @__PURE__ */ e(
|
|
119
|
+
children: [/* @__PURE__ */ e(re, {
|
|
120
|
+
...t
|
|
121
|
+
}), /* @__PURE__ */ e(b, {
|
|
124
122
|
num: 0.5
|
|
125
|
-
}), /* @__PURE__ */ e(
|
|
123
|
+
}), /* @__PURE__ */ e(k, {
|
|
126
124
|
size: "small",
|
|
127
|
-
onClick:
|
|
128
|
-
leftIcon:
|
|
125
|
+
onClick: r,
|
|
126
|
+
leftIcon: ee
|
|
129
127
|
})]
|
|
130
128
|
})
|
|
131
129
|
})
|
|
132
130
|
});
|
|
133
|
-
},
|
|
134
|
-
navBar:
|
|
135
|
-
},
|
|
136
|
-
sidebarMenuButton:
|
|
137
|
-
icon:
|
|
138
|
-
},
|
|
131
|
+
}, ze = "_navBar_1bafw_1", Re = {
|
|
132
|
+
navBar: ze
|
|
133
|
+
}, He = "_sidebarMenuButton_d43s4_1", Ae = "_icon_d43s4_55", J = {
|
|
134
|
+
sidebarMenuButton: He,
|
|
135
|
+
icon: Ae
|
|
136
|
+
}, Pe = (n) => /* @__PURE__ */ L.createElement("svg", {
|
|
139
137
|
xmlns: "http://www.w3.org/2000/svg",
|
|
140
138
|
width: 16,
|
|
141
139
|
height: 16,
|
|
142
140
|
viewBox: "0 0 24 24",
|
|
143
141
|
...n
|
|
144
|
-
}, /* @__PURE__ */
|
|
142
|
+
}, /* @__PURE__ */ L.createElement("path", {
|
|
145
143
|
fill: "#FFF",
|
|
146
144
|
fillRule: "evenodd",
|
|
147
145
|
d: "M22,5 L2,5 C2.11992373,5 2,4.85076158 2,5 L2,3 C2,3.14923842 2.11992373,3 2,3 L22,3 C21.8800763,3 22,3.14923842 22,3 L22,5 C22,4.85076158 21.8800763,5 22,5 Z M22,13 L2,13 C2.11992373,13 2,12.8507616 2,13 L2,11 C2,11.1492384 2.11992373,11 2,11 L22,11 C21.8800763,11 22,11.1492384 22,11 L22,13 C22,12.8507616 21.8800763,13 22,13 Z M22,21 L2,21 C2.11992373,21 2,20.8507616 2,21 L2,19 C2,19.1492384 2.11992373,19 2,19 L22,19 C21.8800763,19 22,19.1492384 22,19 L22,21 C22,20.8507616 21.8800763,21 22,21 Z"
|
|
148
|
-
})),
|
|
146
|
+
})), ae = ({
|
|
149
147
|
className: n,
|
|
150
|
-
onClick:
|
|
148
|
+
onClick: t
|
|
151
149
|
}) => /* @__PURE__ */ e("button", {
|
|
152
|
-
onClick:
|
|
153
|
-
className:
|
|
154
|
-
children: /* @__PURE__ */ e(
|
|
155
|
-
className:
|
|
150
|
+
onClick: t,
|
|
151
|
+
className: h(J.sidebarMenuButton, n),
|
|
152
|
+
children: /* @__PURE__ */ e(Pe, {
|
|
153
|
+
className: J.icon
|
|
156
154
|
})
|
|
157
|
-
}),
|
|
158
|
-
compact:
|
|
159
|
-
standard:
|
|
155
|
+
}), Te = {
|
|
156
|
+
compact: 32,
|
|
157
|
+
standard: 40,
|
|
160
158
|
relaxed: 64
|
|
161
|
-
},
|
|
159
|
+
}, ce = (n) => Te[n] + "px", On = ({
|
|
162
160
|
left: n,
|
|
163
|
-
className:
|
|
164
|
-
showMenuButton:
|
|
165
|
-
menuButtonVisibility:
|
|
166
|
-
children:
|
|
167
|
-
right:
|
|
168
|
-
center:
|
|
169
|
-
variant:
|
|
161
|
+
className: t,
|
|
162
|
+
showMenuButton: o = !1,
|
|
163
|
+
menuButtonVisibility: r = "visible",
|
|
164
|
+
children: a,
|
|
165
|
+
right: i,
|
|
166
|
+
center: s,
|
|
167
|
+
variant: p = "standard",
|
|
170
168
|
onClickMenuButton: _
|
|
171
169
|
}) => {
|
|
172
|
-
const
|
|
173
|
-
return /* @__PURE__ */
|
|
174
|
-
height:
|
|
175
|
-
minHeight:
|
|
170
|
+
const B = s ? 1 : void 0, C = ce(p);
|
|
171
|
+
return /* @__PURE__ */ c(u, {
|
|
172
|
+
height: C,
|
|
173
|
+
minHeight: C,
|
|
176
174
|
justifyContent: "space-between",
|
|
177
175
|
style: {
|
|
178
|
-
["--swui-nav-bar-height"]:
|
|
176
|
+
["--swui-nav-bar-height"]: C
|
|
179
177
|
},
|
|
180
|
-
className:
|
|
181
|
-
children: [/* @__PURE__ */
|
|
182
|
-
flex:
|
|
178
|
+
className: h(Re.navBar, t),
|
|
179
|
+
children: [/* @__PURE__ */ c(u, {
|
|
180
|
+
flex: B,
|
|
183
181
|
justifyContent: "flex-start",
|
|
184
182
|
alignItems: "center",
|
|
185
|
-
children: [
|
|
186
|
-
children: [
|
|
183
|
+
children: [o ? /* @__PURE__ */ c(m, {
|
|
184
|
+
children: [r === "hidden" ? /* @__PURE__ */ e(l, {
|
|
187
185
|
width: "var(--swui-nav-bar-height)"
|
|
188
|
-
}) : /* @__PURE__ */ e(
|
|
186
|
+
}) : /* @__PURE__ */ e(ae, {
|
|
189
187
|
onClick: _
|
|
190
|
-
}), /* @__PURE__ */ e(
|
|
191
|
-
}) : /* @__PURE__ */ e(
|
|
188
|
+
}), /* @__PURE__ */ e(b, {})]
|
|
189
|
+
}) : /* @__PURE__ */ e(b, {
|
|
192
190
|
num: 2
|
|
193
|
-
}), n ? /* @__PURE__ */
|
|
194
|
-
children: [n, /* @__PURE__ */ e(
|
|
191
|
+
}), n ? /* @__PURE__ */ c(m, {
|
|
192
|
+
children: [n, /* @__PURE__ */ e(b, {
|
|
195
193
|
num: 2
|
|
196
194
|
})]
|
|
197
|
-
}) : /* @__PURE__ */ e(
|
|
195
|
+
}) : /* @__PURE__ */ e(b, {
|
|
198
196
|
num: 2
|
|
199
|
-
}),
|
|
200
|
-
children: /* @__PURE__ */ e(
|
|
197
|
+
}), a && /* @__PURE__ */ e(m, {
|
|
198
|
+
children: /* @__PURE__ */ e(u, {
|
|
201
199
|
justifyContent: "center",
|
|
202
200
|
alignItems: "center",
|
|
203
|
-
children:
|
|
204
|
-
children: [
|
|
201
|
+
children: L.Children.map(a, (x, y) => /* @__PURE__ */ c(m, {
|
|
202
|
+
children: [y > 0 && /* @__PURE__ */ e(b, {}), x]
|
|
205
203
|
}))
|
|
206
204
|
})
|
|
207
205
|
})]
|
|
208
|
-
}),
|
|
206
|
+
}), s && /* @__PURE__ */ e(u, {
|
|
209
207
|
justifyContent: "center",
|
|
210
208
|
alignItems: "center",
|
|
211
|
-
children:
|
|
212
|
-
}), /* @__PURE__ */
|
|
209
|
+
children: s
|
|
210
|
+
}), /* @__PURE__ */ c(u, {
|
|
213
211
|
justifyContent: "flex-end",
|
|
214
212
|
alignItems: "center",
|
|
215
|
-
flex:
|
|
216
|
-
children: [
|
|
213
|
+
flex: B,
|
|
214
|
+
children: [i, /* @__PURE__ */ e(b, {
|
|
217
215
|
num: 2
|
|
218
216
|
})]
|
|
219
217
|
})]
|
|
220
218
|
});
|
|
221
|
-
},
|
|
222
|
-
navBarButton:
|
|
223
|
-
selected:
|
|
219
|
+
}, Oe = "_navBarButton_18iz9_1", $e = "_selected_18iz9_36", K = {
|
|
220
|
+
navBarButton: Oe,
|
|
221
|
+
selected: $e
|
|
224
222
|
}, De = ({
|
|
225
223
|
selected: n,
|
|
226
|
-
className:
|
|
227
|
-
...
|
|
228
|
-
}) => /* @__PURE__ */ e(
|
|
229
|
-
...
|
|
230
|
-
className:
|
|
231
|
-
}),
|
|
224
|
+
className: t,
|
|
225
|
+
...o
|
|
226
|
+
}) => /* @__PURE__ */ e(k, {
|
|
227
|
+
...o,
|
|
228
|
+
className: h(K.navBarButton, n && K.selected, t)
|
|
229
|
+
}), $n = (n) => /* @__PURE__ */ e(U, {
|
|
232
230
|
whiteSpace: "nowrap",
|
|
233
231
|
color: "#fff",
|
|
234
232
|
...n
|
|
235
|
-
}),
|
|
233
|
+
}), Dn = ({
|
|
236
234
|
content: n,
|
|
237
|
-
children:
|
|
238
|
-
...
|
|
235
|
+
children: t,
|
|
236
|
+
...o
|
|
239
237
|
}) => {
|
|
240
|
-
const [
|
|
241
|
-
return /* @__PURE__ */ e(
|
|
242
|
-
onClickOutside:
|
|
238
|
+
const [r, , a, i] = D(!1);
|
|
239
|
+
return /* @__PURE__ */ e(R, {
|
|
240
|
+
onClickOutside: a,
|
|
243
241
|
triggerTarget: document.body,
|
|
244
|
-
visible:
|
|
245
|
-
content: /* @__PURE__ */
|
|
242
|
+
visible: r,
|
|
243
|
+
content: /* @__PURE__ */ c(m, {
|
|
246
244
|
children: [n && n({
|
|
247
|
-
close:
|
|
248
|
-
}),
|
|
245
|
+
close: a
|
|
246
|
+
}), t]
|
|
249
247
|
}),
|
|
250
248
|
children: /* @__PURE__ */ e(De, {
|
|
251
|
-
...
|
|
252
|
-
onClick:
|
|
249
|
+
...o,
|
|
250
|
+
onClick: i
|
|
253
251
|
})
|
|
254
252
|
});
|
|
255
|
-
}, Ue = "
|
|
253
|
+
}, Ue = "_navBarNotificationButton_17zoz_1", Ve = "_hasCount_17zoz_58", We = "_unread_17zoz_62", Ze = "_icon_17zoz_77", qe = "_shake_17zoz_1", E = {
|
|
256
254
|
navBarNotificationButton: Ue,
|
|
257
|
-
hasCount:
|
|
258
|
-
unread:
|
|
259
|
-
icon:
|
|
260
|
-
shake:
|
|
261
|
-
},
|
|
255
|
+
hasCount: Ve,
|
|
256
|
+
unread: We,
|
|
257
|
+
icon: Ze,
|
|
258
|
+
shake: qe
|
|
259
|
+
}, Un = ({
|
|
262
260
|
count: n,
|
|
263
|
-
unread:
|
|
264
|
-
className:
|
|
265
|
-
labelClassName:
|
|
266
|
-
iconClassName:
|
|
267
|
-
icon:
|
|
268
|
-
...
|
|
261
|
+
unread: t = !1,
|
|
262
|
+
className: o,
|
|
263
|
+
labelClassName: r,
|
|
264
|
+
iconClassName: a,
|
|
265
|
+
icon: i = ge,
|
|
266
|
+
...s
|
|
269
267
|
}) => {
|
|
270
|
-
const
|
|
271
|
-
return /* @__PURE__ */ e(
|
|
272
|
-
...
|
|
273
|
-
leftIcon:
|
|
274
|
-
className:
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
}, R.navBarNotificationButton, t),
|
|
279
|
-
label: h ? String(n) : void 0,
|
|
280
|
-
labelClassName: u(a, R.label),
|
|
281
|
-
iconClassName: u(o, R.icon)
|
|
268
|
+
const p = n > 0;
|
|
269
|
+
return /* @__PURE__ */ e(k, {
|
|
270
|
+
...s,
|
|
271
|
+
leftIcon: i,
|
|
272
|
+
className: h(t && E.unread, p && E.hasCount, E.navBarNotificationButton, o),
|
|
273
|
+
label: p ? String(n) : void 0,
|
|
274
|
+
labelClassName: h(r, E.label),
|
|
275
|
+
iconClassName: h(a, E.icon)
|
|
282
276
|
});
|
|
283
|
-
},
|
|
284
|
-
navBarSearchFieldInput:
|
|
285
|
-
navBarSearchField:
|
|
286
|
-
},
|
|
277
|
+
}, Ge = "_navBarSearchFieldInput_rcj0j_1", Je = "_navBarSearchField_rcj0j_1", Q = {
|
|
278
|
+
navBarSearchFieldInput: Ge,
|
|
279
|
+
navBarSearchField: Je
|
|
280
|
+
}, Vn = ({
|
|
287
281
|
placeholder: n = "Search...",
|
|
288
|
-
className:
|
|
289
|
-
wrapperClassName:
|
|
290
|
-
...
|
|
282
|
+
className: t,
|
|
283
|
+
wrapperClassName: o,
|
|
284
|
+
...r
|
|
291
285
|
}) => /* @__PURE__ */ e(Se, {
|
|
292
|
-
wrapperClassName:
|
|
293
|
-
className:
|
|
286
|
+
wrapperClassName: h(Q.navBarSearchField, o),
|
|
287
|
+
className: h(Q.navBarSearchFieldInput, t),
|
|
294
288
|
placeholder: n,
|
|
295
|
-
contentRight: /* @__PURE__ */ e(
|
|
296
|
-
children: /* @__PURE__ */ e(
|
|
297
|
-
icon:
|
|
289
|
+
contentRight: /* @__PURE__ */ e(V, {
|
|
290
|
+
children: /* @__PURE__ */ e(z, {
|
|
291
|
+
icon: fe
|
|
298
292
|
})
|
|
299
293
|
}),
|
|
300
|
-
...
|
|
301
|
-
}),
|
|
302
|
-
navBarUserButton:
|
|
303
|
-
initials:
|
|
304
|
-
},
|
|
294
|
+
...r
|
|
295
|
+
}), Ke = "_navBarUserButton_1cwhm_1", Qe = "_initials_1cwhm_31", X = {
|
|
296
|
+
navBarUserButton: Ke,
|
|
297
|
+
initials: Qe
|
|
298
|
+
}, Wn = ({
|
|
305
299
|
className: n,
|
|
306
|
-
username:
|
|
307
|
-
initials:
|
|
308
|
-
icon:
|
|
309
|
-
iconClassName:
|
|
310
|
-
...
|
|
300
|
+
username: t,
|
|
301
|
+
initials: o,
|
|
302
|
+
icon: r = be,
|
|
303
|
+
iconClassName: a,
|
|
304
|
+
...i
|
|
311
305
|
}) => /* @__PURE__ */ e(je, {
|
|
312
|
-
...
|
|
313
|
-
className:
|
|
314
|
-
[
|
|
315
|
-
},
|
|
316
|
-
leftIcon:
|
|
317
|
-
label:
|
|
306
|
+
...i,
|
|
307
|
+
className: h({
|
|
308
|
+
[X.initials]: o != null
|
|
309
|
+
}, X.navBarUserButton, n),
|
|
310
|
+
leftIcon: t != null ? r : void 0,
|
|
311
|
+
label: o != null ? o : t,
|
|
318
312
|
disableArrow: !0
|
|
319
|
-
}),
|
|
313
|
+
}), ie = ({
|
|
320
314
|
text: n,
|
|
321
|
-
timestamp:
|
|
322
|
-
icon:
|
|
323
|
-
iconAriaLabel:
|
|
324
|
-
iconColor:
|
|
325
|
-
contentLeft:
|
|
326
|
-
contentRight:
|
|
327
|
-
onClose:
|
|
328
|
-
}) => /* @__PURE__ */
|
|
315
|
+
timestamp: t,
|
|
316
|
+
icon: o,
|
|
317
|
+
iconAriaLabel: r,
|
|
318
|
+
iconColor: a,
|
|
319
|
+
contentLeft: i,
|
|
320
|
+
contentRight: s,
|
|
321
|
+
onClose: p
|
|
322
|
+
}) => /* @__PURE__ */ c(u, {
|
|
329
323
|
alignItems: "flex-start",
|
|
330
324
|
indent: !0,
|
|
331
325
|
spacing: !0,
|
|
332
|
-
children: [/* @__PURE__ */
|
|
326
|
+
children: [/* @__PURE__ */ c(u, {
|
|
333
327
|
indent: 2,
|
|
334
328
|
spacing: !0,
|
|
335
329
|
gap: 2,
|
|
336
330
|
flex: 1,
|
|
337
331
|
alignItems: "flex-start",
|
|
338
|
-
children: [
|
|
332
|
+
children: [i && /* @__PURE__ */ e(l, {
|
|
339
333
|
minHeight: 20,
|
|
340
334
|
justifyContent: "center",
|
|
341
|
-
children:
|
|
342
|
-
}), !
|
|
343
|
-
icon:
|
|
335
|
+
children: i
|
|
336
|
+
}), !i && o && /* @__PURE__ */ e(z, {
|
|
337
|
+
icon: o,
|
|
344
338
|
size: 20,
|
|
345
|
-
color:
|
|
346
|
-
"aria-label":
|
|
347
|
-
}), /* @__PURE__ */
|
|
339
|
+
color: a,
|
|
340
|
+
"aria-label": r
|
|
341
|
+
}), /* @__PURE__ */ c(l, {
|
|
348
342
|
minHeight: 20,
|
|
349
343
|
justifyContent: "center",
|
|
350
344
|
flex: 1,
|
|
351
345
|
gap: 0.5,
|
|
352
|
-
children: [/* @__PURE__ */ e(
|
|
346
|
+
children: [/* @__PURE__ */ e(G, {
|
|
353
347
|
variant: "bold",
|
|
354
348
|
children: n
|
|
355
|
-
}),
|
|
349
|
+
}), t && /* @__PURE__ */ e(G, {
|
|
356
350
|
size: "small",
|
|
357
|
-
color:
|
|
358
|
-
children:
|
|
351
|
+
color: v("--lhds-color-ui-600"),
|
|
352
|
+
children: t
|
|
359
353
|
})]
|
|
360
|
-
}),
|
|
361
|
-
}),
|
|
354
|
+
}), s]
|
|
355
|
+
}), p && /* @__PURE__ */ e(l, {
|
|
362
356
|
flex: "none",
|
|
363
357
|
justifyContent: "center",
|
|
364
358
|
style: {
|
|
365
359
|
height: "calc(20px + 2 * var(--swui-metrics-spacing))"
|
|
366
360
|
},
|
|
367
|
-
children: /* @__PURE__ */ e(
|
|
368
|
-
leftIcon:
|
|
369
|
-
onClick:
|
|
361
|
+
children: /* @__PURE__ */ e(k, {
|
|
362
|
+
leftIcon: ne,
|
|
363
|
+
onClick: p,
|
|
370
364
|
"aria-label": "Close"
|
|
371
365
|
})
|
|
372
366
|
})]
|
|
373
|
-
}),
|
|
367
|
+
}), Zn = ({
|
|
374
368
|
children: n,
|
|
375
|
-
background: r,
|
|
376
369
|
...t
|
|
377
|
-
}) => /* @__PURE__ */
|
|
378
|
-
background:
|
|
379
|
-
|
|
370
|
+
}) => /* @__PURE__ */ c(F, {
|
|
371
|
+
background: "var(--lhds-color-ui-50)",
|
|
372
|
+
borderRadius: "var(--swui-border-radius)",
|
|
373
|
+
children: [/* @__PURE__ */ e(ie, {
|
|
380
374
|
...t
|
|
381
|
-
}), n && /* @__PURE__ */
|
|
375
|
+
}), n && /* @__PURE__ */ c(F, {
|
|
382
376
|
indent: 3,
|
|
383
|
-
children: [n, /* @__PURE__ */ e(
|
|
377
|
+
children: [n, /* @__PURE__ */ e(f, {
|
|
384
378
|
num: 2
|
|
385
379
|
})]
|
|
386
380
|
})]
|
|
387
|
-
}),
|
|
388
|
-
clickable:
|
|
389
|
-
nonClickable:
|
|
390
|
-
},
|
|
381
|
+
}), Xe = "_clickable_1ijxc_1", Ye = "_nonClickable_1ijxc_27", T = {
|
|
382
|
+
clickable: Xe,
|
|
383
|
+
nonClickable: Ye
|
|
384
|
+
}, qn = ({
|
|
391
385
|
onClick: n,
|
|
392
|
-
onClickAriaLabel:
|
|
393
|
-
children:
|
|
394
|
-
width:
|
|
395
|
-
maxWidth:
|
|
396
|
-
...
|
|
397
|
-
}) => /* @__PURE__ */
|
|
386
|
+
onClickAriaLabel: t,
|
|
387
|
+
children: o,
|
|
388
|
+
width: r = 264,
|
|
389
|
+
maxWidth: a,
|
|
390
|
+
...i
|
|
391
|
+
}) => /* @__PURE__ */ c(l, {
|
|
398
392
|
borderRadius: 8,
|
|
399
|
-
background:
|
|
393
|
+
background: v("--lhds-color-ui-50"),
|
|
400
394
|
shadow: "popover",
|
|
401
|
-
width:
|
|
402
|
-
maxWidth:
|
|
395
|
+
width: r,
|
|
396
|
+
maxWidth: a,
|
|
403
397
|
role: "alert",
|
|
404
398
|
position: "relative",
|
|
405
|
-
children: [/* @__PURE__ */ e(
|
|
406
|
-
className:
|
|
407
|
-
[
|
|
399
|
+
children: [/* @__PURE__ */ e(l, {
|
|
400
|
+
className: h({
|
|
401
|
+
[T.nonClickable]: n
|
|
408
402
|
}),
|
|
409
|
-
children: /* @__PURE__ */ e(
|
|
410
|
-
...
|
|
403
|
+
children: /* @__PURE__ */ e(ie, {
|
|
404
|
+
...i
|
|
411
405
|
})
|
|
412
|
-
}),
|
|
406
|
+
}), o && /* @__PURE__ */ c(l, {
|
|
413
407
|
indent: 3,
|
|
414
|
-
className:
|
|
415
|
-
[
|
|
408
|
+
className: h({
|
|
409
|
+
[T.nonClickable]: n
|
|
416
410
|
}),
|
|
417
|
-
children: [
|
|
411
|
+
children: [o, /* @__PURE__ */ e(f, {
|
|
418
412
|
num: 2
|
|
419
413
|
})]
|
|
420
414
|
}), n && /* @__PURE__ */ e("button", {
|
|
421
415
|
onClick: n,
|
|
422
|
-
className:
|
|
423
|
-
"aria-label":
|
|
416
|
+
className: T.clickable,
|
|
417
|
+
"aria-label": t
|
|
424
418
|
})]
|
|
425
|
-
}),
|
|
426
|
-
collapsible:
|
|
427
|
-
header:
|
|
428
|
-
indicator:
|
|
429
|
-
headerText:
|
|
430
|
-
label:
|
|
431
|
-
contentLeft:
|
|
419
|
+
}), en = "_collapsible_1nroa_1", nn = "_header_1nroa_46", tn = "_indicator_1nroa_59", on = "_headerText_1nroa_103", rn = "_label_1nroa_114", an = "_contentLeft_1nroa_123", cn = "_contentRight_1nroa_124", ln = "_content_1nroa_123", sn = "_groupHeading_1nroa_155", dn = "_contentEnter_1nroa_180", un = "_contentEnterActive_1nroa_184", hn = "_contentExitDone_1nroa_189", d = {
|
|
420
|
+
collapsible: en,
|
|
421
|
+
header: nn,
|
|
422
|
+
indicator: tn,
|
|
423
|
+
headerText: on,
|
|
424
|
+
label: rn,
|
|
425
|
+
contentLeft: an,
|
|
432
426
|
contentRight: cn,
|
|
433
427
|
content: ln,
|
|
434
|
-
groupHeading:
|
|
435
|
-
contentEnter:
|
|
436
|
-
contentEnterActive:
|
|
437
|
-
contentExitDone:
|
|
438
|
-
},
|
|
428
|
+
groupHeading: sn,
|
|
429
|
+
contentEnter: dn,
|
|
430
|
+
contentEnterActive: un,
|
|
431
|
+
contentExitDone: hn
|
|
432
|
+
}, Z = () => /* @__PURE__ */ c(F, {
|
|
439
433
|
indent: !0,
|
|
440
434
|
spacing: !0,
|
|
441
435
|
flex: 1,
|
|
442
436
|
alignItems: "center",
|
|
443
|
-
children: [/* @__PURE__ */ e(
|
|
437
|
+
children: [/* @__PURE__ */ e(z, {
|
|
444
438
|
icon: Fe,
|
|
445
|
-
color:
|
|
446
|
-
}), /* @__PURE__ */ e(
|
|
439
|
+
color: v("--lhds-color-ui-500")
|
|
440
|
+
}), /* @__PURE__ */ e(f, {}), /* @__PURE__ */ e(w, {
|
|
447
441
|
size: "small",
|
|
448
|
-
color:
|
|
442
|
+
color: v("--lhds-color-ui-500"),
|
|
449
443
|
children: "No content"
|
|
450
444
|
})]
|
|
451
|
-
}),
|
|
445
|
+
}), le = ({
|
|
452
446
|
contentLeft: n,
|
|
453
|
-
contentRight:
|
|
454
|
-
className:
|
|
455
|
-
children:
|
|
456
|
-
...
|
|
457
|
-
}) => /* @__PURE__ */
|
|
458
|
-
className:
|
|
459
|
-
...
|
|
447
|
+
contentRight: t,
|
|
448
|
+
className: o,
|
|
449
|
+
children: r,
|
|
450
|
+
...a
|
|
451
|
+
}) => /* @__PURE__ */ c("div", {
|
|
452
|
+
className: h(d.content, o),
|
|
453
|
+
...a,
|
|
460
454
|
children: [n && /* @__PURE__ */ e("div", {
|
|
461
455
|
className: d.contentLeft,
|
|
462
456
|
children: n
|
|
463
|
-
}),
|
|
457
|
+
}), r != null ? r : /* @__PURE__ */ e(Z, {}), t && /* @__PURE__ */ e("div", {
|
|
464
458
|
className: d.contentRight,
|
|
465
|
-
children:
|
|
459
|
+
children: t
|
|
466
460
|
})]
|
|
467
|
-
}),
|
|
468
|
-
const
|
|
469
|
-
switch (
|
|
461
|
+
}), pn = (n) => {
|
|
462
|
+
const t = parseFloat(n), o = n.match(/m?s/);
|
|
463
|
+
switch (o == null ? void 0 : o[0]) {
|
|
470
464
|
case "s":
|
|
471
|
-
return
|
|
465
|
+
return t * 1e3;
|
|
472
466
|
case "ms":
|
|
473
|
-
return
|
|
467
|
+
return t;
|
|
474
468
|
default:
|
|
475
469
|
return 0;
|
|
476
470
|
}
|
|
477
|
-
},
|
|
478
|
-
label:
|
|
479
|
-
contentLeft:
|
|
480
|
-
contentRight:
|
|
481
|
-
collapsed:
|
|
482
|
-
onClick:
|
|
483
|
-
className:
|
|
484
|
-
disabled:
|
|
471
|
+
}, mn = we(function({
|
|
472
|
+
label: t,
|
|
473
|
+
contentLeft: o,
|
|
474
|
+
contentRight: r,
|
|
475
|
+
collapsed: a = !1,
|
|
476
|
+
onClick: i,
|
|
477
|
+
className: s,
|
|
478
|
+
disabled: p = !1,
|
|
485
479
|
unmountOnCollapse: _ = !1,
|
|
486
|
-
mountOnEnter:
|
|
487
|
-
icon:
|
|
488
|
-
iconCollapsed:
|
|
489
|
-
iconSize:
|
|
490
|
-
children:
|
|
491
|
-
autoFocus:
|
|
492
|
-
...
|
|
493
|
-
},
|
|
494
|
-
const
|
|
495
|
-
return /* @__PURE__ */
|
|
496
|
-
className:
|
|
497
|
-
"aria-expanded": !
|
|
498
|
-
ref:
|
|
499
|
-
...
|
|
500
|
-
children: [/* @__PURE__ */
|
|
480
|
+
mountOnEnter: B = !0,
|
|
481
|
+
icon: C = Me,
|
|
482
|
+
iconCollapsed: x = Ie,
|
|
483
|
+
iconSize: y = 8,
|
|
484
|
+
children: g,
|
|
485
|
+
autoFocus: H = !1,
|
|
486
|
+
...S
|
|
487
|
+
}, A) {
|
|
488
|
+
const I = L.useRef(null), P = I.current ? pn(getComputedStyle(I.current).getPropertyValue("--swui-collapsible-animation-time")) : void 0;
|
|
489
|
+
return /* @__PURE__ */ c("div", {
|
|
490
|
+
className: h(d.collapsible, s),
|
|
491
|
+
"aria-expanded": !a,
|
|
492
|
+
ref: I,
|
|
493
|
+
...S,
|
|
494
|
+
children: [/* @__PURE__ */ c(V, {
|
|
501
495
|
disableFocusHighlight: !0,
|
|
502
496
|
disableOpacityOnClick: !0,
|
|
503
497
|
className: d.header,
|
|
504
|
-
onClick:
|
|
505
|
-
disabled:
|
|
506
|
-
autoFocus:
|
|
507
|
-
ref:
|
|
508
|
-
children: [
|
|
498
|
+
onClick: i,
|
|
499
|
+
disabled: p,
|
|
500
|
+
autoFocus: H,
|
|
501
|
+
ref: A,
|
|
502
|
+
children: [o && /* @__PURE__ */ e("div", {
|
|
509
503
|
className: d.contentLeft,
|
|
510
|
-
children:
|
|
504
|
+
children: o
|
|
511
505
|
}), /* @__PURE__ */ e("div", {
|
|
512
506
|
className: d.label,
|
|
513
|
-
children: /* @__PURE__ */ e(
|
|
507
|
+
children: /* @__PURE__ */ e(w, {
|
|
514
508
|
color: "var(--swui-collapsible-header-text-color)",
|
|
515
509
|
className: d.headerText,
|
|
516
|
-
children:
|
|
510
|
+
children: t
|
|
517
511
|
})
|
|
518
|
-
}),
|
|
512
|
+
}), r && /* @__PURE__ */ e("div", {
|
|
519
513
|
className: d.contentRight,
|
|
520
|
-
children:
|
|
521
|
-
}), /* @__PURE__ */ e(
|
|
522
|
-
icon:
|
|
514
|
+
children: r
|
|
515
|
+
}), /* @__PURE__ */ e(z, {
|
|
516
|
+
icon: a ? x : C,
|
|
523
517
|
className: d.indicator,
|
|
524
|
-
size:
|
|
518
|
+
size: y,
|
|
525
519
|
fixedWidth: !0
|
|
526
520
|
})]
|
|
527
521
|
}), /* @__PURE__ */ e(Ee, {
|
|
528
|
-
in: !
|
|
522
|
+
in: !a,
|
|
529
523
|
timeout: {
|
|
530
|
-
enter:
|
|
524
|
+
enter: P
|
|
531
525
|
},
|
|
532
526
|
classNames: {
|
|
533
527
|
enter: d.contentEnter,
|
|
@@ -536,390 +530,299 @@ const V = ({
|
|
|
536
530
|
exitActive: d.contentExitActive,
|
|
537
531
|
exitDone: d.contentExitDone
|
|
538
532
|
},
|
|
539
|
-
mountOnEnter:
|
|
533
|
+
mountOnEnter: B,
|
|
540
534
|
unmountOnExit: _,
|
|
541
535
|
children: /* @__PURE__ */ e("div", {
|
|
542
536
|
role: "region",
|
|
543
|
-
children:
|
|
544
|
-
children: /* @__PURE__ */ e(
|
|
537
|
+
children: g != null ? g : /* @__PURE__ */ e(le, {
|
|
538
|
+
children: /* @__PURE__ */ e(Z, {})
|
|
545
539
|
})
|
|
546
540
|
})
|
|
547
541
|
})]
|
|
548
542
|
});
|
|
549
|
-
}),
|
|
543
|
+
}), Gn = ({
|
|
550
544
|
value: n,
|
|
551
|
-
onValueChange:
|
|
552
|
-
onChange:
|
|
553
|
-
indeterminate:
|
|
554
|
-
checkboxDisabled:
|
|
555
|
-
...
|
|
556
|
-
}) => /* @__PURE__ */ e(
|
|
557
|
-
contentLeft: /* @__PURE__ */ e(
|
|
545
|
+
onValueChange: t,
|
|
546
|
+
onChange: o,
|
|
547
|
+
indeterminate: r,
|
|
548
|
+
checkboxDisabled: a,
|
|
549
|
+
...i
|
|
550
|
+
}) => /* @__PURE__ */ e(mn, {
|
|
551
|
+
contentLeft: /* @__PURE__ */ e(re, {
|
|
558
552
|
value: n,
|
|
559
|
-
indeterminate:
|
|
560
|
-
onValueChange:
|
|
561
|
-
onChange:
|
|
562
|
-
disabled:
|
|
563
|
-
onClick: (
|
|
553
|
+
indeterminate: r,
|
|
554
|
+
onValueChange: t,
|
|
555
|
+
onChange: o,
|
|
556
|
+
disabled: a,
|
|
557
|
+
onClick: (s) => s.stopPropagation()
|
|
564
558
|
}),
|
|
565
|
-
...
|
|
566
|
-
}),
|
|
559
|
+
...i
|
|
560
|
+
}), Jn = ({
|
|
567
561
|
contentLeft: n,
|
|
568
|
-
contentRight:
|
|
569
|
-
className:
|
|
570
|
-
onClick:
|
|
571
|
-
children:
|
|
572
|
-
...
|
|
573
|
-
}) => /* @__PURE__ */
|
|
562
|
+
contentRight: t,
|
|
563
|
+
className: o,
|
|
564
|
+
onClick: r,
|
|
565
|
+
children: a,
|
|
566
|
+
...i
|
|
567
|
+
}) => /* @__PURE__ */ c(V, {
|
|
574
568
|
disableFocusHighlight: !0,
|
|
575
569
|
disableOpacityOnClick: !0,
|
|
576
|
-
className:
|
|
577
|
-
onClick:
|
|
578
|
-
...
|
|
570
|
+
className: h(d.content, o),
|
|
571
|
+
onClick: r,
|
|
572
|
+
...i,
|
|
579
573
|
children: [n && /* @__PURE__ */ e("div", {
|
|
580
574
|
className: d.contentLeft,
|
|
581
575
|
children: n
|
|
582
|
-
}),
|
|
576
|
+
}), a != null ? a : /* @__PURE__ */ e(Z, {}), t && /* @__PURE__ */ e("div", {
|
|
583
577
|
className: d.contentRight,
|
|
584
|
-
children:
|
|
578
|
+
children: t
|
|
585
579
|
})]
|
|
586
|
-
}),
|
|
580
|
+
}), Kn = ({
|
|
587
581
|
className: n,
|
|
588
|
-
...
|
|
589
|
-
}) => /* @__PURE__ */ e(
|
|
590
|
-
className:
|
|
591
|
-
...
|
|
592
|
-
}),
|
|
582
|
+
...t
|
|
583
|
+
}) => /* @__PURE__ */ e(le, {
|
|
584
|
+
className: h(d.groupHeading, n),
|
|
585
|
+
...t
|
|
586
|
+
}), gn = ({
|
|
593
587
|
text: n = "Something unexpected happened."
|
|
594
|
-
}) => /* @__PURE__ */ e(
|
|
588
|
+
}) => /* @__PURE__ */ e(l, {
|
|
595
589
|
justifyContent: "center",
|
|
596
590
|
alignItems: "center",
|
|
597
|
-
children: /* @__PURE__ */ e(
|
|
591
|
+
children: /* @__PURE__ */ e(ve, {
|
|
598
592
|
variant: "error",
|
|
599
593
|
headerText: n
|
|
600
594
|
})
|
|
601
|
-
}),
|
|
595
|
+
}), Qn = (n) => /* @__PURE__ */ e(l, {
|
|
602
596
|
width: "100%",
|
|
603
597
|
height: "100%",
|
|
604
598
|
justifyContent: "center",
|
|
605
599
|
alignItems: "center",
|
|
606
|
-
children: /* @__PURE__ */ e(
|
|
600
|
+
children: /* @__PURE__ */ e(gn, {
|
|
607
601
|
...n
|
|
608
602
|
})
|
|
609
|
-
}),
|
|
603
|
+
}), fn = ({
|
|
610
604
|
text: n = "Loading..."
|
|
611
|
-
}) => /* @__PURE__ */
|
|
605
|
+
}) => /* @__PURE__ */ c(l, {
|
|
612
606
|
alignItems: "center",
|
|
613
|
-
children: [/* @__PURE__ */ e(
|
|
607
|
+
children: [/* @__PURE__ */ e(_e, {
|
|
614
608
|
size: "small"
|
|
615
|
-
}), /* @__PURE__ */ e(
|
|
609
|
+
}), /* @__PURE__ */ e(f, {
|
|
616
610
|
num: 4
|
|
617
|
-
}), /* @__PURE__ */ e(
|
|
611
|
+
}), /* @__PURE__ */ e(U, {
|
|
618
612
|
variant: "h4",
|
|
619
613
|
children: n
|
|
620
614
|
})]
|
|
621
|
-
}),
|
|
615
|
+
}), Xn = (n) => /* @__PURE__ */ e(l, {
|
|
622
616
|
width: "100%",
|
|
623
617
|
height: "100%",
|
|
624
618
|
justifyContent: "center",
|
|
625
619
|
alignItems: "center",
|
|
626
|
-
children: /* @__PURE__ */ e(
|
|
620
|
+
children: /* @__PURE__ */ e(fn, {
|
|
627
621
|
...n
|
|
628
622
|
})
|
|
629
|
-
}),
|
|
623
|
+
}), Yn = ({
|
|
630
624
|
renderBreadCrumbs: n,
|
|
631
|
-
renderPageHeading:
|
|
632
|
-
renderTabs:
|
|
633
|
-
children:
|
|
634
|
-
}) => /* @__PURE__ */
|
|
625
|
+
renderPageHeading: t,
|
|
626
|
+
renderTabs: o,
|
|
627
|
+
children: r
|
|
628
|
+
}) => /* @__PURE__ */ c(l, {
|
|
635
629
|
shadow: "box",
|
|
636
|
-
background:
|
|
637
|
-
children: [/* @__PURE__ */
|
|
630
|
+
background: v("--lhds-color-ui-50"),
|
|
631
|
+
children: [/* @__PURE__ */ c(l, {
|
|
638
632
|
indent: 3,
|
|
639
|
-
children: [n && /* @__PURE__ */ e(
|
|
633
|
+
children: [n && /* @__PURE__ */ e(u, {
|
|
640
634
|
spacing: 1.25,
|
|
641
635
|
children: n()
|
|
642
|
-
}),
|
|
643
|
-
}),
|
|
644
|
-
children: [!
|
|
636
|
+
}), t == null ? void 0 : t(), o == null ? void 0 : o()]
|
|
637
|
+
}), r && /* @__PURE__ */ c(m, {
|
|
638
|
+
children: [!o && n && /* @__PURE__ */ e(f, {}), /* @__PURE__ */ e(te, {}), r]
|
|
645
639
|
})]
|
|
646
|
-
}),
|
|
640
|
+
}), et = (n) => /* @__PURE__ */ e(u, {
|
|
647
641
|
indent: 3,
|
|
648
642
|
spacing: !0,
|
|
649
643
|
...n
|
|
650
|
-
}),
|
|
644
|
+
}), bn = {
|
|
651
645
|
compact: 1,
|
|
652
646
|
standard: 1.5,
|
|
653
647
|
relaxed: 2
|
|
654
|
-
},
|
|
648
|
+
}, nt = ({
|
|
655
649
|
heading: n,
|
|
656
|
-
headingLevel:
|
|
657
|
-
variant:
|
|
658
|
-
contentLeft:
|
|
659
|
-
contentRight:
|
|
660
|
-
}) => /* @__PURE__ */
|
|
661
|
-
spacing:
|
|
650
|
+
headingLevel: t = "h1",
|
|
651
|
+
variant: o = "standard",
|
|
652
|
+
contentLeft: r,
|
|
653
|
+
contentRight: a
|
|
654
|
+
}) => /* @__PURE__ */ c(u, {
|
|
655
|
+
spacing: bn[o],
|
|
662
656
|
alignItems: "center",
|
|
663
657
|
gap: 2,
|
|
664
|
-
children: [/* @__PURE__ */ e(
|
|
658
|
+
children: [/* @__PURE__ */ e(U, {
|
|
665
659
|
variant: "h3",
|
|
666
|
-
as:
|
|
660
|
+
as: t,
|
|
667
661
|
children: n
|
|
668
|
-
}), /* @__PURE__ */ e(
|
|
662
|
+
}), /* @__PURE__ */ e(u, {
|
|
669
663
|
alignItems: "center",
|
|
670
|
-
children:
|
|
671
|
-
}), /* @__PURE__ */ e(
|
|
664
|
+
children: r
|
|
665
|
+
}), /* @__PURE__ */ e(u, {
|
|
672
666
|
style: {
|
|
673
667
|
marginLeft: "auto"
|
|
674
668
|
},
|
|
675
669
|
alignItems: "center",
|
|
676
|
-
children:
|
|
670
|
+
children: a
|
|
677
671
|
})]
|
|
678
|
-
}),
|
|
679
|
-
sidebarMenu:
|
|
680
|
-
},
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
}) => /* @__PURE__ */ e("button", {
|
|
698
|
-
onClick: r,
|
|
699
|
-
className: u(z.sidebarMenuCloseButton, n),
|
|
700
|
-
children: /* @__PURE__ */ e(c, {
|
|
701
|
-
className: z.iconWrapper,
|
|
702
|
-
children: /* @__PURE__ */ e(Bn, {
|
|
703
|
-
className: z.icon
|
|
704
|
-
})
|
|
705
|
-
})
|
|
706
|
-
}), K = (n) => /* @__PURE__ */ e(oe, {
|
|
707
|
-
color: B("--lhds-color-blue-600"),
|
|
708
|
-
...n
|
|
709
|
-
}), wn = ({
|
|
672
|
+
}), vn = "_sidebarMenu_tg9i7_1", O = {
|
|
673
|
+
sidebarMenu: vn
|
|
674
|
+
}, _n = "_stenaFlag_108h7_1", Cn = {
|
|
675
|
+
stenaFlag: _n
|
|
676
|
+
}, Bn = ({
|
|
677
|
+
onClick: n
|
|
678
|
+
}) => /* @__PURE__ */ c(u, {
|
|
679
|
+
justifyContent: "space-between",
|
|
680
|
+
alignItems: "center",
|
|
681
|
+
flex: 1,
|
|
682
|
+
indent: 1,
|
|
683
|
+
children: [/* @__PURE__ */ e(k, {
|
|
684
|
+
leftIcon: ne,
|
|
685
|
+
onClick: n,
|
|
686
|
+
variant: "danger"
|
|
687
|
+
}), /* @__PURE__ */ e(Ce, {
|
|
688
|
+
className: Cn.stenaFlag
|
|
689
|
+
})]
|
|
690
|
+
}), xn = ({
|
|
710
691
|
className: n,
|
|
711
|
-
children:
|
|
712
|
-
onCloseClick:
|
|
713
|
-
collapsed:
|
|
714
|
-
hideCloseButton:
|
|
715
|
-
variant:
|
|
716
|
-
...
|
|
692
|
+
children: t,
|
|
693
|
+
onCloseClick: o,
|
|
694
|
+
collapsed: r = !1,
|
|
695
|
+
hideCloseButton: a = !1,
|
|
696
|
+
variant: i = "standard",
|
|
697
|
+
...s
|
|
717
698
|
}) => {
|
|
718
|
-
const
|
|
719
|
-
return /* @__PURE__ */
|
|
720
|
-
|
|
699
|
+
const p = ce(i);
|
|
700
|
+
return /* @__PURE__ */ c(l, {
|
|
701
|
+
indent: 1,
|
|
702
|
+
className: h(O.sidebarMenu, r ? O.collapsed : null, n),
|
|
721
703
|
style: {
|
|
722
|
-
["--swui-sidebar-menu-item-height"]:
|
|
723
|
-
["--swui-nav-bar-height"]:
|
|
704
|
+
["--swui-sidebar-menu-item-height"]: p,
|
|
705
|
+
["--swui-nav-bar-height"]: p
|
|
724
706
|
},
|
|
725
|
-
"data-collapsed":
|
|
726
|
-
...
|
|
727
|
-
children: [
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
707
|
+
"data-collapsed": r || void 0,
|
|
708
|
+
...s,
|
|
709
|
+
children: [/* @__PURE__ */ e(f, {
|
|
710
|
+
num: 1.5
|
|
711
|
+
}), !a && /* @__PURE__ */ c(m, {
|
|
712
|
+
children: [/* @__PURE__ */ e(Bn, {
|
|
713
|
+
onClick: o
|
|
714
|
+
}), /* @__PURE__ */ e(f, {
|
|
715
|
+
num: 1.5
|
|
716
|
+
})]
|
|
717
|
+
}), /* @__PURE__ */ e(l, {
|
|
718
|
+
className: O.sidebarMenuContent,
|
|
733
719
|
height: "100%",
|
|
734
720
|
background: "var(--current-background-color)",
|
|
735
|
-
children: /* @__PURE__ */ e(
|
|
721
|
+
children: /* @__PURE__ */ e(F, {
|
|
736
722
|
flex: 1,
|
|
737
|
-
|
|
723
|
+
gap: 1,
|
|
724
|
+
children: t
|
|
738
725
|
})
|
|
739
726
|
})]
|
|
740
727
|
});
|
|
741
|
-
},
|
|
728
|
+
}, tt = ({
|
|
742
729
|
variant: n,
|
|
743
|
-
onClickMenuButton:
|
|
744
|
-
children:
|
|
745
|
-
}) => /* @__PURE__ */
|
|
730
|
+
onClickMenuButton: t,
|
|
731
|
+
children: o
|
|
732
|
+
}) => /* @__PURE__ */ c(xn, {
|
|
746
733
|
collapsed: !0,
|
|
747
734
|
position: "fixed",
|
|
748
735
|
left: 0,
|
|
749
736
|
top: 0,
|
|
750
737
|
hideCloseButton: !0,
|
|
751
738
|
variant: n,
|
|
752
|
-
children: [/* @__PURE__ */ e(
|
|
753
|
-
onClick:
|
|
754
|
-
}),
|
|
755
|
-
}),
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
})
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
label: o,
|
|
773
|
-
loading: s,
|
|
774
|
-
left: l,
|
|
775
|
-
leftIcon: h,
|
|
776
|
-
right: _,
|
|
777
|
-
rightIcon: v,
|
|
778
|
-
success: f,
|
|
779
|
-
width: C,
|
|
780
|
-
renderLink: x = En,
|
|
781
|
-
style: b,
|
|
782
|
-
...E
|
|
783
|
-
}) => {
|
|
784
|
-
const N = l || h || s || f, F = u(y.button, t ? y.selected : void 0, n), w = {
|
|
785
|
-
...b,
|
|
786
|
-
width: C,
|
|
787
|
-
height: "var(--swui-sidebar-menu-item-height)"
|
|
788
|
-
}, j = /* @__PURE__ */ i(p, {
|
|
789
|
-
spacing: 1,
|
|
790
|
-
flex: 1,
|
|
791
|
-
alignItems: "center",
|
|
792
|
-
children: [!N && /* @__PURE__ */ e(g, {}), a && /* @__PURE__ */ e(g, {
|
|
793
|
-
num: 3.5
|
|
794
|
-
}), /* @__PURE__ */ e(Ne, {
|
|
795
|
-
label: o,
|
|
796
|
-
loading: s,
|
|
797
|
-
left: l,
|
|
798
|
-
leftIcon: h,
|
|
799
|
-
right: _,
|
|
800
|
-
rightIcon: v,
|
|
801
|
-
success: f,
|
|
802
|
-
labelClassName: y.label,
|
|
803
|
-
spinnerClassName: y.spinner,
|
|
804
|
-
iconClassName: u(y.icon),
|
|
805
|
-
leftWrapperClassName: y.leftWrapper
|
|
806
|
-
})]
|
|
807
|
-
});
|
|
808
|
-
return /* @__PURE__ */ e(m, {
|
|
809
|
-
children: x({
|
|
810
|
-
...E,
|
|
811
|
-
activeClassName: y.selected,
|
|
812
|
-
className: F,
|
|
813
|
-
children: j,
|
|
814
|
-
style: w
|
|
815
|
-
})
|
|
816
|
-
});
|
|
817
|
-
}, Fn = "_sidebarMenuHeading_kvpq5_1", jn = {
|
|
818
|
-
sidebarMenuHeading: Fn
|
|
819
|
-
}, he = ({
|
|
820
|
-
className: n,
|
|
821
|
-
label: r,
|
|
822
|
-
contentLeft: t,
|
|
823
|
-
contentRight: a,
|
|
824
|
-
...o
|
|
825
|
-
}) => /* @__PURE__ */ e(c, {
|
|
826
|
-
spacing: 2,
|
|
827
|
-
indent: 2,
|
|
828
|
-
children: /* @__PURE__ */ e(J, {
|
|
829
|
-
className: jn.sidebarMenuHeading,
|
|
830
|
-
contentLeft: t,
|
|
831
|
-
contentRight: a,
|
|
832
|
-
children: /* @__PURE__ */ e(S, {
|
|
833
|
-
variant: "overline",
|
|
834
|
-
color: "var(--swui-sidebar-menu-heading-text-color)",
|
|
835
|
-
...o,
|
|
836
|
-
children: r
|
|
837
|
-
})
|
|
838
|
-
})
|
|
839
|
-
}), Hn = "_sidebarMenuCollapsible_1jwhs_1", Rn = {
|
|
840
|
-
sidebarMenuCollapsible: Hn
|
|
841
|
-
}, $n = ({
|
|
739
|
+
children: [/* @__PURE__ */ e(ae, {
|
|
740
|
+
onClick: t
|
|
741
|
+
}), o]
|
|
742
|
+
}), $ = (n) => /* @__PURE__ */ e(Be, {
|
|
743
|
+
...n
|
|
744
|
+
}), se = ({
|
|
745
|
+
label: n
|
|
746
|
+
}) => /* @__PURE__ */ c(l, {
|
|
747
|
+
height: "32px",
|
|
748
|
+
justifyContent: "center",
|
|
749
|
+
indent: 1,
|
|
750
|
+
children: [/* @__PURE__ */ e(f, {}), /* @__PURE__ */ e(w, {
|
|
751
|
+
variant: "overline",
|
|
752
|
+
size: "smaller",
|
|
753
|
+
children: n
|
|
754
|
+
})]
|
|
755
|
+
}), de = (n) => /* @__PURE__ */ e(te, {
|
|
756
|
+
color: v("--lhds-color-ui-400"),
|
|
757
|
+
...n
|
|
758
|
+
}), yn = ({
|
|
842
759
|
children: n,
|
|
843
|
-
label:
|
|
844
|
-
leftIcon:
|
|
760
|
+
label: t,
|
|
761
|
+
leftIcon: o,
|
|
762
|
+
className: r,
|
|
763
|
+
initialExpand: a = !1
|
|
845
764
|
}) => {
|
|
846
|
-
const [
|
|
847
|
-
return /* @__PURE__ */ e(
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
alignItems: "center",
|
|
857
|
-
justifyContent: "center",
|
|
858
|
-
children: /* @__PURE__ */ e(A, {
|
|
859
|
-
icon: t,
|
|
860
|
-
size: 16,
|
|
861
|
-
color: "var(--current-text-color)",
|
|
862
|
-
"data-hover": !0
|
|
863
|
-
})
|
|
864
|
-
}) : /* @__PURE__ */ e(g, {
|
|
865
|
-
num: 1
|
|
866
|
-
}),
|
|
867
|
-
children: /* @__PURE__ */ e(L, {
|
|
868
|
-
flex: 1,
|
|
869
|
-
children: n
|
|
870
|
-
})
|
|
871
|
-
})
|
|
765
|
+
const [i, s] = ke(a);
|
|
766
|
+
return /* @__PURE__ */ e(xe, {
|
|
767
|
+
label: t,
|
|
768
|
+
onClick: () => s(!i),
|
|
769
|
+
leftIcon: o,
|
|
770
|
+
className: r,
|
|
771
|
+
expandable: !0,
|
|
772
|
+
expanded: i,
|
|
773
|
+
selected: i,
|
|
774
|
+
children: n
|
|
872
775
|
});
|
|
873
|
-
},
|
|
776
|
+
}, ue = (n) => n.map((t, o) => {
|
|
874
777
|
switch (t.type) {
|
|
875
778
|
case "heading":
|
|
876
|
-
return /* @__PURE__ */ e(
|
|
779
|
+
return /* @__PURE__ */ e(se, {
|
|
877
780
|
label: t.label
|
|
878
|
-
},
|
|
781
|
+
}, o);
|
|
879
782
|
case "separator":
|
|
880
|
-
return /* @__PURE__ */ e(
|
|
783
|
+
return /* @__PURE__ */ e(de, {}, o);
|
|
881
784
|
case "link": {
|
|
882
785
|
const {
|
|
883
|
-
type:
|
|
884
|
-
...
|
|
786
|
+
type: r,
|
|
787
|
+
...a
|
|
885
788
|
} = t;
|
|
886
|
-
return /* @__PURE__ */ e(
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
}, a);
|
|
789
|
+
return /* @__PURE__ */ e($, {
|
|
790
|
+
...a
|
|
791
|
+
}, o);
|
|
890
792
|
}
|
|
891
793
|
case "grouped":
|
|
892
|
-
return /* @__PURE__ */ e(
|
|
794
|
+
return /* @__PURE__ */ e(yn, {
|
|
893
795
|
leftIcon: t.leftIcon,
|
|
894
796
|
label: t.label,
|
|
895
|
-
|
|
896
|
-
|
|
797
|
+
initialExpand: !0,
|
|
798
|
+
children: ue(t.items)
|
|
799
|
+
}, o);
|
|
897
800
|
default:
|
|
898
|
-
return
|
|
801
|
+
return oe(t);
|
|
899
802
|
}
|
|
900
|
-
}),
|
|
901
|
-
popupMinWidth:
|
|
902
|
-
}) => n.map((
|
|
903
|
-
switch (
|
|
803
|
+
}), ot = (n, {
|
|
804
|
+
popupMinWidth: t
|
|
805
|
+
}) => n.map((o, r) => {
|
|
806
|
+
switch (o.type) {
|
|
904
807
|
case "heading":
|
|
905
808
|
return null;
|
|
906
809
|
case "separator":
|
|
907
|
-
return /* @__PURE__ */ e(
|
|
810
|
+
return /* @__PURE__ */ e(de, {}, r);
|
|
908
811
|
case "link": {
|
|
909
812
|
const {
|
|
910
|
-
type:
|
|
911
|
-
label:
|
|
912
|
-
...
|
|
913
|
-
} =
|
|
914
|
-
return /* @__PURE__ */ e(
|
|
915
|
-
title:
|
|
916
|
-
|
|
917
|
-
...
|
|
918
|
-
},
|
|
813
|
+
type: a,
|
|
814
|
+
label: i,
|
|
815
|
+
...s
|
|
816
|
+
} = o;
|
|
817
|
+
return /* @__PURE__ */ e($, {
|
|
818
|
+
title: i,
|
|
819
|
+
label: i,
|
|
820
|
+
...s
|
|
821
|
+
}, r);
|
|
919
822
|
}
|
|
920
823
|
case "grouped":
|
|
921
824
|
return /* @__PURE__ */ e("div", {
|
|
922
|
-
children: /* @__PURE__ */ e(
|
|
825
|
+
children: /* @__PURE__ */ e(R, {
|
|
923
826
|
appendTo: "parent",
|
|
924
827
|
arrow: !1,
|
|
925
828
|
offset: [0, 0],
|
|
@@ -927,97 +830,96 @@ const V = ({
|
|
|
927
830
|
trigger: "focusin mouseenter click",
|
|
928
831
|
disablePadding: !0,
|
|
929
832
|
lazy: !0,
|
|
930
|
-
content: /* @__PURE__ */
|
|
931
|
-
minWidth:
|
|
833
|
+
content: /* @__PURE__ */ c(l, {
|
|
834
|
+
minWidth: t,
|
|
932
835
|
background: "var(--lhds-color-blue-500)",
|
|
933
|
-
children: [/* @__PURE__ */ e(
|
|
934
|
-
label:
|
|
935
|
-
}),
|
|
836
|
+
children: [/* @__PURE__ */ e(se, {
|
|
837
|
+
label: o.label
|
|
838
|
+
}), ue(o.items)]
|
|
936
839
|
}),
|
|
937
|
-
children: /* @__PURE__ */ e(
|
|
938
|
-
title:
|
|
939
|
-
|
|
940
|
-
leftIcon:
|
|
840
|
+
children: /* @__PURE__ */ e($, {
|
|
841
|
+
title: o.label,
|
|
842
|
+
label: o.label,
|
|
843
|
+
leftIcon: o.leftIcon
|
|
941
844
|
})
|
|
942
845
|
})
|
|
943
|
-
},
|
|
846
|
+
}, r);
|
|
944
847
|
default:
|
|
945
|
-
return
|
|
848
|
+
return oe(o);
|
|
946
849
|
}
|
|
947
|
-
}),
|
|
850
|
+
}), Nn = `1px solid ${v("--lhds-color-orange-400")}`, rt = ({
|
|
948
851
|
numItemsSelected: n,
|
|
949
|
-
label:
|
|
950
|
-
afterLabelContent:
|
|
951
|
-
rightContent:
|
|
952
|
-
}) => /* @__PURE__ */
|
|
852
|
+
label: t,
|
|
853
|
+
afterLabelContent: o,
|
|
854
|
+
rightContent: r
|
|
855
|
+
}) => /* @__PURE__ */ c(u, {
|
|
953
856
|
indent: 3,
|
|
954
857
|
spacing: !0,
|
|
955
858
|
minHeight: "56px",
|
|
956
859
|
justifyContent: "space-between",
|
|
957
860
|
alignItems: "center",
|
|
958
|
-
borderTop:
|
|
959
|
-
background:
|
|
960
|
-
children: [/* @__PURE__ */
|
|
861
|
+
borderTop: Nn,
|
|
862
|
+
background: v("--lhds-color-orange-50"),
|
|
863
|
+
children: [/* @__PURE__ */ c(u, {
|
|
961
864
|
alignItems: "center",
|
|
962
|
-
children: [n != null ||
|
|
963
|
-
children: n != null ? /* @__PURE__ */
|
|
964
|
-
children: [/* @__PURE__ */ e(
|
|
865
|
+
children: [n != null || t != null ? /* @__PURE__ */ e(m, {
|
|
866
|
+
children: n != null ? /* @__PURE__ */ c(m, {
|
|
867
|
+
children: [/* @__PURE__ */ e(w, {
|
|
965
868
|
variant: "bold",
|
|
966
869
|
children: n
|
|
967
|
-
}), /* @__PURE__ */ e(
|
|
870
|
+
}), /* @__PURE__ */ e(f, {}), /* @__PURE__ */ c(w, {
|
|
968
871
|
children: ["item", n === 1 ? "" : "s", " selected"]
|
|
969
872
|
})]
|
|
970
|
-
}) :
|
|
971
|
-
children: typeof
|
|
972
|
-
children:
|
|
973
|
-
}) :
|
|
873
|
+
}) : t != null ? /* @__PURE__ */ e(m, {
|
|
874
|
+
children: typeof t == "string" ? /* @__PURE__ */ e(w, {
|
|
875
|
+
children: t
|
|
876
|
+
}) : t
|
|
974
877
|
}) : null
|
|
975
|
-
}) : null,
|
|
976
|
-
children: [/* @__PURE__ */ e(
|
|
977
|
-
children:
|
|
878
|
+
}) : null, o ? /* @__PURE__ */ c(m, {
|
|
879
|
+
children: [/* @__PURE__ */ e(b, {}), /* @__PURE__ */ e(l, {
|
|
880
|
+
children: o
|
|
978
881
|
})]
|
|
979
882
|
}) : null]
|
|
980
|
-
}), /* @__PURE__ */ e(
|
|
981
|
-
children:
|
|
883
|
+
}), /* @__PURE__ */ e(l, {
|
|
884
|
+
children: r
|
|
982
885
|
})]
|
|
983
886
|
});
|
|
984
887
|
export {
|
|
985
888
|
je as ActionMenuFlatButton,
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
889
|
+
An as ActionMenuPrimaryButton,
|
|
890
|
+
Pn as ActionMenuSecondaryButton,
|
|
891
|
+
Tn as CheckboxMenu,
|
|
892
|
+
mn as Collapsible,
|
|
893
|
+
Jn as CollapsibleClickableContent,
|
|
894
|
+
le as CollapsibleContent,
|
|
895
|
+
Z as CollapsibleEmptyContent,
|
|
896
|
+
Kn as CollapsibleGroupHeading,
|
|
897
|
+
Gn as CollapsibleWithCheckbox,
|
|
898
|
+
gn as ErrorPanel,
|
|
899
|
+
Qn as ErrorScreen,
|
|
900
|
+
fn as LoadingPanel,
|
|
901
|
+
Xn as LoadingScreen,
|
|
902
|
+
On as NavBar,
|
|
1000
903
|
De as NavBarButton,
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
gt as renderItemsInRail
|
|
904
|
+
$n as NavBarHeading,
|
|
905
|
+
Un as NavBarNotificationButton,
|
|
906
|
+
Dn as NavBarPopoverButton,
|
|
907
|
+
Vn as NavBarSearchField,
|
|
908
|
+
Wn as NavBarUserButton,
|
|
909
|
+
Zn as Notification,
|
|
910
|
+
Yn as PageHeader,
|
|
911
|
+
et as PageHeaderRow,
|
|
912
|
+
nt as PageHeading,
|
|
913
|
+
rt as SelectedItemsActionsPanel,
|
|
914
|
+
xn as SidebarMenu,
|
|
915
|
+
yn as SidebarMenuCollapsible,
|
|
916
|
+
se as SidebarMenuHeading,
|
|
917
|
+
$ as SidebarMenuLink,
|
|
918
|
+
de as SidebarMenuSeparator,
|
|
919
|
+
tt as SidebarRailMenu,
|
|
920
|
+
qn as Toast,
|
|
921
|
+
pn as mapCSSTime,
|
|
922
|
+
ue as renderItemsExpanded,
|
|
923
|
+
ot as renderItemsInRail
|
|
1022
924
|
};
|
|
1023
925
|
//# sourceMappingURL=index.es.js.map
|