@stenajs-webui/panels 18.0.1 → 18.0.3
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/CHANGELOG.md +16 -0
- package/dist/components/page-header/PageHeading.d.ts +3 -1
- package/dist/index.es.js +101 -99
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
# v18.0.3 (Mon Feb 27 2023)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- Add headingLevel to PageHeading, default being h1 [#561](https://github.com/StenaIT/stenajs-webui/pull/561) ([@juiceit](https://github.com/juiceit))
|
|
6
|
+
|
|
7
|
+
#### 📝 Documentation
|
|
8
|
+
|
|
9
|
+
- Use NavBarSearchField in center content story [#503](https://github.com/StenaIT/stenajs-webui/pull/503) ([@juiceit](https://github.com/juiceit))
|
|
10
|
+
|
|
11
|
+
#### Authors: 1
|
|
12
|
+
|
|
13
|
+
- Josefina Andreasson ([@juiceit](https://github.com/juiceit))
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
1
17
|
# v18.0.0 (Mon Feb 13 2023)
|
|
2
18
|
|
|
3
19
|
#### 💥 Breaking Change
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
|
+
import { HeadingVariant } from "@stenajs-webui/core";
|
|
3
4
|
export declare type PageHeadingVariant = "compact" | "standard" | "relaxed";
|
|
4
5
|
interface PageHeadingProps {
|
|
5
6
|
contentLeft?: ReactNode;
|
|
6
7
|
contentRight?: ReactNode;
|
|
7
8
|
heading: string;
|
|
9
|
+
headingLevel?: HeadingVariant;
|
|
8
10
|
variant?: PageHeadingVariant;
|
|
9
11
|
}
|
|
10
|
-
export declare const PageHeading: React.
|
|
12
|
+
export declare const PageHeading: React.FC<PageHeadingProps>;
|
|
11
13
|
export {};
|
package/dist/index.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
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 re, ActionMenuContext as me, stenaAngleDown as
|
|
2
|
+
import { ActionMenu as re, ActionMenuContext as me, stenaAngleDown as ae, PrimaryButton as be, SecondaryButton as ge, FlatButton as $, stenaBell as fe, Icon as A, stenaSearch as _e, stenaUserCircle as ve, stenaTimes as Ce, Banner as xe, Spinner as Be, ButtonContent as Ne } from "@stenajs-webui/elements";
|
|
3
3
|
import * as I from "react";
|
|
4
4
|
import { useRef as we, useMemo as ye, forwardRef as ke, useState as Me } from "react";
|
|
5
|
-
import { useBoolean as U, Column as L, Box as c, Row as p, Indent as g, Heading as Z, Clickable as q, Txt as X, Space as k, Text as S, SeparatorLine as
|
|
5
|
+
import { useBoolean as U, Column as L, Box as c, Row as p, Indent as g, Heading as Z, Clickable as q, Txt as X, Space as k, Text as S, SeparatorLine as oe, exhaustSwitchCaseElseThrow as ie } from "@stenajs-webui/core";
|
|
6
6
|
import { Popover as T } from "@stenajs-webui/tooltip";
|
|
7
7
|
import { jsx as e, jsxs as i, Fragment as m } from "react/jsx-runtime";
|
|
8
8
|
import { Checkbox as se, TextInput as Se } from "@stenajs-webui/forms";
|
|
@@ -16,8 +16,8 @@ const V = ({
|
|
|
16
16
|
renderItems: n,
|
|
17
17
|
placement: r = "bottom",
|
|
18
18
|
buttonComponent: t,
|
|
19
|
-
rightIcon:
|
|
20
|
-
portalTarget:
|
|
19
|
+
rightIcon: a = ae,
|
|
20
|
+
portalTarget: o = "parent",
|
|
21
21
|
zIndex: s,
|
|
22
22
|
menuWidth: u,
|
|
23
23
|
menuTop: h,
|
|
@@ -73,12 +73,12 @@ const V = ({
|
|
|
73
73
|
})
|
|
74
74
|
}),
|
|
75
75
|
arrow: !1,
|
|
76
|
-
appendTo:
|
|
76
|
+
appendTo: o,
|
|
77
77
|
zIndex: s,
|
|
78
78
|
plugins: [F],
|
|
79
79
|
lazy: !0,
|
|
80
80
|
children: /* @__PURE__ */ e(t, {
|
|
81
|
-
rightIcon: v ? void 0 :
|
|
81
|
+
rightIcon: v ? void 0 : a,
|
|
82
82
|
...f,
|
|
83
83
|
ref: N,
|
|
84
84
|
onClick: j
|
|
@@ -97,15 +97,15 @@ const V = ({
|
|
|
97
97
|
renderMenu: n,
|
|
98
98
|
...r
|
|
99
99
|
}) => {
|
|
100
|
-
const [t,
|
|
100
|
+
const [t, a, o] = U(!1);
|
|
101
101
|
return /* @__PURE__ */ e(T, {
|
|
102
|
-
onClickOutside:
|
|
102
|
+
onClickOutside: o,
|
|
103
103
|
arrow: !1,
|
|
104
104
|
visible: t,
|
|
105
105
|
disablePadding: !0,
|
|
106
106
|
content: n ? /* @__PURE__ */ e(L, {
|
|
107
107
|
children: /* @__PURE__ */ e(re, {
|
|
108
|
-
children: n(
|
|
108
|
+
children: n(o)
|
|
109
109
|
})
|
|
110
110
|
}) : void 0,
|
|
111
111
|
placement: "bottom-start",
|
|
@@ -124,8 +124,8 @@ const V = ({
|
|
|
124
124
|
num: 0.5
|
|
125
125
|
}), /* @__PURE__ */ e($, {
|
|
126
126
|
size: "small",
|
|
127
|
-
onClick:
|
|
128
|
-
leftIcon:
|
|
127
|
+
onClick: a,
|
|
128
|
+
leftIcon: ae
|
|
129
129
|
})]
|
|
130
130
|
})
|
|
131
131
|
})
|
|
@@ -162,8 +162,8 @@ const V = ({
|
|
|
162
162
|
left: n,
|
|
163
163
|
className: r,
|
|
164
164
|
showMenuButton: t = !1,
|
|
165
|
-
menuButtonVisibility:
|
|
166
|
-
children:
|
|
165
|
+
menuButtonVisibility: a = "visible",
|
|
166
|
+
children: o,
|
|
167
167
|
right: s,
|
|
168
168
|
center: u,
|
|
169
169
|
variant: h = "standard",
|
|
@@ -183,7 +183,7 @@ const V = ({
|
|
|
183
183
|
justifyContent: "flex-start",
|
|
184
184
|
alignItems: "center",
|
|
185
185
|
children: [t ? /* @__PURE__ */ i(m, {
|
|
186
|
-
children: [
|
|
186
|
+
children: [a === "hidden" ? /* @__PURE__ */ e(c, {
|
|
187
187
|
width: "var(--swui-nav-bar-height)"
|
|
188
188
|
}) : /* @__PURE__ */ e(ce, {
|
|
189
189
|
onClick: _
|
|
@@ -196,11 +196,11 @@ const V = ({
|
|
|
196
196
|
})]
|
|
197
197
|
}) : /* @__PURE__ */ e(g, {
|
|
198
198
|
num: 2
|
|
199
|
-
}),
|
|
199
|
+
}), o && /* @__PURE__ */ e(m, {
|
|
200
200
|
children: /* @__PURE__ */ e(p, {
|
|
201
201
|
justifyContent: "center",
|
|
202
202
|
alignItems: "center",
|
|
203
|
-
children: I.Children.map(
|
|
203
|
+
children: I.Children.map(o, (C, x) => /* @__PURE__ */ i(m, {
|
|
204
204
|
children: [x > 0 && /* @__PURE__ */ e(g, {}), C]
|
|
205
205
|
}))
|
|
206
206
|
})
|
|
@@ -237,11 +237,11 @@ const V = ({
|
|
|
237
237
|
children: r,
|
|
238
238
|
...t
|
|
239
239
|
}) => {
|
|
240
|
-
const [
|
|
240
|
+
const [a, o, s] = U(!1);
|
|
241
241
|
return /* @__PURE__ */ e(T, {
|
|
242
242
|
onClickOutside: s,
|
|
243
243
|
triggerTarget: document.body,
|
|
244
|
-
visible:
|
|
244
|
+
visible: a,
|
|
245
245
|
content: /* @__PURE__ */ i(m, {
|
|
246
246
|
children: [n && n({
|
|
247
247
|
close: s
|
|
@@ -249,7 +249,7 @@ const V = ({
|
|
|
249
249
|
}),
|
|
250
250
|
children: /* @__PURE__ */ e(De, {
|
|
251
251
|
...t,
|
|
252
|
-
onClick:
|
|
252
|
+
onClick: o
|
|
253
253
|
})
|
|
254
254
|
});
|
|
255
255
|
}, Ue = "_navBarNotificationButton_1wchp_1", Ze = "_hasCount_1wchp_60", qe = "_unread_1wchp_64", Ve = "_icon_1wchp_79", Ge = "_shake_1wchp_1", R = {
|
|
@@ -262,8 +262,8 @@ const V = ({
|
|
|
262
262
|
count: n,
|
|
263
263
|
unread: r = !1,
|
|
264
264
|
className: t,
|
|
265
|
-
labelClassName:
|
|
266
|
-
iconClassName:
|
|
265
|
+
labelClassName: a,
|
|
266
|
+
iconClassName: o,
|
|
267
267
|
icon: s = fe,
|
|
268
268
|
...u
|
|
269
269
|
}) => {
|
|
@@ -277,8 +277,8 @@ const V = ({
|
|
|
277
277
|
[R.hasCount]: h
|
|
278
278
|
}, R.navBarNotificationButton, t),
|
|
279
279
|
label: h ? String(n) : void 0,
|
|
280
|
-
labelClassName: d(
|
|
281
|
-
iconClassName: d(
|
|
280
|
+
labelClassName: d(a, R.label),
|
|
281
|
+
iconClassName: d(o, R.icon)
|
|
282
282
|
});
|
|
283
283
|
}, Je = "_navBarSearchFieldInput_4knxd_1", Ke = "_navBarSearchField_4knxd_1", ne = {
|
|
284
284
|
navBarSearchFieldInput: Je,
|
|
@@ -287,7 +287,7 @@ const V = ({
|
|
|
287
287
|
placeholder: n = "Search...",
|
|
288
288
|
className: r,
|
|
289
289
|
wrapperClassName: t,
|
|
290
|
-
...
|
|
290
|
+
...a
|
|
291
291
|
}) => /* @__PURE__ */ e(Se, {
|
|
292
292
|
wrapperClassName: d(ne.navBarSearchField, t),
|
|
293
293
|
className: d(ne.navBarSearchFieldInput, r),
|
|
@@ -297,31 +297,31 @@ const V = ({
|
|
|
297
297
|
icon: _e
|
|
298
298
|
})
|
|
299
299
|
}),
|
|
300
|
-
...
|
|
300
|
+
...a
|
|
301
301
|
}), Qe = "_navBarUserButton_1gxfr_1", Xe = "_initials_1gxfr_33", te = {
|
|
302
302
|
navBarUserButton: Qe,
|
|
303
303
|
initials: Xe
|
|
304
|
-
},
|
|
304
|
+
}, at = ({
|
|
305
305
|
className: n,
|
|
306
306
|
username: r,
|
|
307
307
|
initials: t,
|
|
308
|
-
icon:
|
|
309
|
-
iconClassName:
|
|
308
|
+
icon: a = ve,
|
|
309
|
+
iconClassName: o,
|
|
310
310
|
...s
|
|
311
311
|
}) => /* @__PURE__ */ e(je, {
|
|
312
312
|
...s,
|
|
313
313
|
className: d({
|
|
314
314
|
[te.initials]: t != null
|
|
315
315
|
}, te.navBarUserButton, n),
|
|
316
|
-
leftIcon: r != null ?
|
|
316
|
+
leftIcon: r != null ? a : void 0,
|
|
317
317
|
label: t != null ? t : r,
|
|
318
318
|
disableArrow: !0
|
|
319
319
|
}), de = ({
|
|
320
320
|
text: n,
|
|
321
321
|
timestamp: r,
|
|
322
322
|
icon: t,
|
|
323
|
-
iconAriaLabel:
|
|
324
|
-
iconColor:
|
|
323
|
+
iconAriaLabel: a,
|
|
324
|
+
iconColor: o,
|
|
325
325
|
contentLeft: s,
|
|
326
326
|
contentRight: u,
|
|
327
327
|
onClose: h
|
|
@@ -342,8 +342,8 @@ const V = ({
|
|
|
342
342
|
}), !s && t && /* @__PURE__ */ e(A, {
|
|
343
343
|
icon: t,
|
|
344
344
|
size: 20,
|
|
345
|
-
color:
|
|
346
|
-
"aria-label":
|
|
345
|
+
color: o,
|
|
346
|
+
"aria-label": a
|
|
347
347
|
}), /* @__PURE__ */ i(c, {
|
|
348
348
|
minHeight: 20,
|
|
349
349
|
justifyContent: "center",
|
|
@@ -370,7 +370,7 @@ const V = ({
|
|
|
370
370
|
"aria-label": "Close"
|
|
371
371
|
})
|
|
372
372
|
})]
|
|
373
|
-
}),
|
|
373
|
+
}), ot = ({
|
|
374
374
|
children: n,
|
|
375
375
|
background: r,
|
|
376
376
|
...t
|
|
@@ -391,15 +391,15 @@ const V = ({
|
|
|
391
391
|
onClick: n,
|
|
392
392
|
onClickAriaLabel: r,
|
|
393
393
|
children: t,
|
|
394
|
-
width:
|
|
395
|
-
maxWidth:
|
|
394
|
+
width: a = 264,
|
|
395
|
+
maxWidth: o,
|
|
396
396
|
...s
|
|
397
397
|
}) => /* @__PURE__ */ i(c, {
|
|
398
398
|
borderRadius: 8,
|
|
399
399
|
background: B("--lhds-color-ui-50"),
|
|
400
400
|
shadow: "popover",
|
|
401
|
-
width:
|
|
402
|
-
maxWidth:
|
|
401
|
+
width: a,
|
|
402
|
+
maxWidth: o,
|
|
403
403
|
role: "alert",
|
|
404
404
|
position: "relative",
|
|
405
405
|
children: [/* @__PURE__ */ e(c, {
|
|
@@ -422,12 +422,12 @@ const V = ({
|
|
|
422
422
|
className: O.clickable,
|
|
423
423
|
"aria-label": r
|
|
424
424
|
})]
|
|
425
|
-
}), nn = "_collapsible_1nroa_1", tn = "_header_1nroa_46", rn = "_indicator_1nroa_59",
|
|
425
|
+
}), nn = "_collapsible_1nroa_1", tn = "_header_1nroa_46", rn = "_indicator_1nroa_59", an = "_headerText_1nroa_103", on = "_label_1nroa_114", sn = "_contentLeft_1nroa_123", cn = "_contentRight_1nroa_124", ln = "_content_1nroa_123", dn = "_groupHeading_1nroa_155", un = "_contentEnter_1nroa_180", hn = "_contentEnterActive_1nroa_184", pn = "_contentExitDone_1nroa_189", l = {
|
|
426
426
|
collapsible: nn,
|
|
427
427
|
header: tn,
|
|
428
428
|
indicator: rn,
|
|
429
|
-
headerText:
|
|
430
|
-
label:
|
|
429
|
+
headerText: an,
|
|
430
|
+
label: on,
|
|
431
431
|
contentLeft: sn,
|
|
432
432
|
contentRight: cn,
|
|
433
433
|
content: ln,
|
|
@@ -452,15 +452,15 @@ const V = ({
|
|
|
452
452
|
contentLeft: n,
|
|
453
453
|
contentRight: r,
|
|
454
454
|
className: t,
|
|
455
|
-
children:
|
|
456
|
-
...
|
|
455
|
+
children: a,
|
|
456
|
+
...o
|
|
457
457
|
}) => /* @__PURE__ */ i("div", {
|
|
458
458
|
className: d(l.content, t),
|
|
459
|
-
...
|
|
459
|
+
...o,
|
|
460
460
|
children: [n && /* @__PURE__ */ e("div", {
|
|
461
461
|
className: l.contentLeft,
|
|
462
462
|
children: n
|
|
463
|
-
}),
|
|
463
|
+
}), a != null ? a : /* @__PURE__ */ e(G, {}), r && /* @__PURE__ */ e("div", {
|
|
464
464
|
className: l.contentRight,
|
|
465
465
|
children: r
|
|
466
466
|
})]
|
|
@@ -477,8 +477,8 @@ const V = ({
|
|
|
477
477
|
}, ue = ke(function({
|
|
478
478
|
label: r,
|
|
479
479
|
contentLeft: t,
|
|
480
|
-
contentRight:
|
|
481
|
-
collapsed:
|
|
480
|
+
contentRight: a,
|
|
481
|
+
collapsed: o = !1,
|
|
482
482
|
onClick: s,
|
|
483
483
|
className: u,
|
|
484
484
|
disabled: h = !1,
|
|
@@ -494,7 +494,7 @@ const V = ({
|
|
|
494
494
|
const w = I.useRef(null), j = w.current ? mn(getComputedStyle(w.current).getPropertyValue("--swui-collapsible-animation-time")) : void 0;
|
|
495
495
|
return /* @__PURE__ */ i("div", {
|
|
496
496
|
className: d(l.collapsible, u),
|
|
497
|
-
"aria-expanded": !
|
|
497
|
+
"aria-expanded": !o,
|
|
498
498
|
ref: w,
|
|
499
499
|
...N,
|
|
500
500
|
children: [/* @__PURE__ */ i(q, {
|
|
@@ -515,17 +515,17 @@ const V = ({
|
|
|
515
515
|
className: l.headerText,
|
|
516
516
|
children: r
|
|
517
517
|
})
|
|
518
|
-
}),
|
|
518
|
+
}), a && /* @__PURE__ */ e("div", {
|
|
519
519
|
className: l.contentRight,
|
|
520
|
-
children:
|
|
520
|
+
children: a
|
|
521
521
|
}), /* @__PURE__ */ e(A, {
|
|
522
|
-
icon:
|
|
522
|
+
icon: o ? C : f,
|
|
523
523
|
className: l.indicator,
|
|
524
524
|
size: x,
|
|
525
525
|
fixedWidth: !0
|
|
526
526
|
})]
|
|
527
527
|
}), /* @__PURE__ */ e(Ee, {
|
|
528
|
-
in: !
|
|
528
|
+
in: !o,
|
|
529
529
|
timeout: {
|
|
530
530
|
enter: j
|
|
531
531
|
},
|
|
@@ -550,34 +550,34 @@ const V = ({
|
|
|
550
550
|
value: n,
|
|
551
551
|
onValueChange: r,
|
|
552
552
|
onChange: t,
|
|
553
|
-
indeterminate:
|
|
554
|
-
...
|
|
553
|
+
indeterminate: a,
|
|
554
|
+
...o
|
|
555
555
|
}) => /* @__PURE__ */ e(ue, {
|
|
556
556
|
contentLeft: /* @__PURE__ */ e(se, {
|
|
557
557
|
value: n,
|
|
558
|
-
indeterminate:
|
|
558
|
+
indeterminate: a,
|
|
559
559
|
onValueChange: r,
|
|
560
560
|
onChange: t,
|
|
561
561
|
onClick: (s) => s.stopPropagation()
|
|
562
562
|
}),
|
|
563
|
-
...
|
|
563
|
+
...o
|
|
564
564
|
}), ct = ({
|
|
565
565
|
contentLeft: n,
|
|
566
566
|
contentRight: r,
|
|
567
567
|
className: t,
|
|
568
|
-
onClick:
|
|
569
|
-
children:
|
|
568
|
+
onClick: a,
|
|
569
|
+
children: o,
|
|
570
570
|
...s
|
|
571
571
|
}) => /* @__PURE__ */ i(q, {
|
|
572
572
|
disableFocusHighlight: !0,
|
|
573
573
|
disableOpacityOnClick: !0,
|
|
574
574
|
className: d(l.content, t),
|
|
575
|
-
onClick:
|
|
575
|
+
onClick: a,
|
|
576
576
|
...s,
|
|
577
577
|
children: [n && /* @__PURE__ */ e("div", {
|
|
578
578
|
className: l.contentLeft,
|
|
579
579
|
children: n
|
|
580
|
-
}),
|
|
580
|
+
}), o != null ? o : /* @__PURE__ */ e(G, {}), r && /* @__PURE__ */ e("div", {
|
|
581
581
|
className: l.contentRight,
|
|
582
582
|
children: r
|
|
583
583
|
})]
|
|
@@ -628,7 +628,7 @@ const V = ({
|
|
|
628
628
|
renderBreadCrumbs: n,
|
|
629
629
|
renderPageHeading: r,
|
|
630
630
|
renderTabs: t,
|
|
631
|
-
children:
|
|
631
|
+
children: a
|
|
632
632
|
}) => /* @__PURE__ */ i(c, {
|
|
633
633
|
shadow: "box",
|
|
634
634
|
background: B("--lhds-color-ui-50"),
|
|
@@ -638,8 +638,8 @@ const V = ({
|
|
|
638
638
|
spacing: 1.25,
|
|
639
639
|
children: n()
|
|
640
640
|
}), r == null ? void 0 : r(), t == null ? void 0 : t()]
|
|
641
|
-
}),
|
|
642
|
-
children: [!t && n && /* @__PURE__ */ e(k, {}), /* @__PURE__ */ e(
|
|
641
|
+
}), a && /* @__PURE__ */ i(m, {
|
|
642
|
+
children: [!t && n && /* @__PURE__ */ e(k, {}), /* @__PURE__ */ e(oe, {}), a]
|
|
643
643
|
})]
|
|
644
644
|
}), pt = (n) => /* @__PURE__ */ e(p, {
|
|
645
645
|
indent: 3,
|
|
@@ -651,19 +651,21 @@ const V = ({
|
|
|
651
651
|
relaxed: 2
|
|
652
652
|
}, mt = ({
|
|
653
653
|
heading: n,
|
|
654
|
-
|
|
655
|
-
|
|
654
|
+
headingLevel: r = "h1",
|
|
655
|
+
variant: t = "standard",
|
|
656
|
+
contentLeft: a,
|
|
656
657
|
contentRight: o
|
|
657
658
|
}) => /* @__PURE__ */ i(p, {
|
|
658
|
-
spacing: fn[
|
|
659
|
+
spacing: fn[t],
|
|
659
660
|
alignItems: "center",
|
|
660
661
|
gap: 2,
|
|
661
662
|
children: [/* @__PURE__ */ e(Z, {
|
|
662
663
|
variant: "h3",
|
|
664
|
+
as: r,
|
|
663
665
|
children: n
|
|
664
666
|
}), /* @__PURE__ */ e(p, {
|
|
665
667
|
alignItems: "center",
|
|
666
|
-
children:
|
|
668
|
+
children: a
|
|
667
669
|
}), /* @__PURE__ */ e(p, {
|
|
668
670
|
style: {
|
|
669
671
|
marginLeft: "auto"
|
|
@@ -699,28 +701,28 @@ const V = ({
|
|
|
699
701
|
className: z.icon
|
|
700
702
|
})
|
|
701
703
|
})
|
|
702
|
-
}), K = (n) => /* @__PURE__ */ e(
|
|
704
|
+
}), K = (n) => /* @__PURE__ */ e(oe, {
|
|
703
705
|
color: B("--lhds-color-blue-600"),
|
|
704
706
|
...n
|
|
705
707
|
}), wn = ({
|
|
706
708
|
className: n,
|
|
707
709
|
children: r,
|
|
708
710
|
onCloseClick: t,
|
|
709
|
-
collapsed:
|
|
710
|
-
hideCloseButton:
|
|
711
|
+
collapsed: a = !1,
|
|
712
|
+
hideCloseButton: o = !1,
|
|
711
713
|
variant: s = "standard",
|
|
712
714
|
...u
|
|
713
715
|
}) => {
|
|
714
716
|
const h = le(s);
|
|
715
717
|
return /* @__PURE__ */ i(c, {
|
|
716
|
-
className: d(W.sidebarMenu,
|
|
718
|
+
className: d(W.sidebarMenu, a ? W.collapsed : null, n),
|
|
717
719
|
style: {
|
|
718
720
|
["--swui-sidebar-menu-item-height"]: h,
|
|
719
721
|
["--swui-nav-bar-height"]: h
|
|
720
722
|
},
|
|
721
|
-
"data-collapsed":
|
|
723
|
+
"data-collapsed": a || void 0,
|
|
722
724
|
...u,
|
|
723
|
-
children: [!
|
|
725
|
+
children: [!o && /* @__PURE__ */ i(m, {
|
|
724
726
|
children: [/* @__PURE__ */ e(Nn, {
|
|
725
727
|
onClick: t
|
|
726
728
|
}), /* @__PURE__ */ e(K, {}), /* @__PURE__ */ e(k, {})]
|
|
@@ -764,8 +766,8 @@ const V = ({
|
|
|
764
766
|
className: n,
|
|
765
767
|
children: r,
|
|
766
768
|
selected: t,
|
|
767
|
-
indent:
|
|
768
|
-
label:
|
|
769
|
+
indent: a,
|
|
770
|
+
label: o,
|
|
769
771
|
loading: s,
|
|
770
772
|
left: u,
|
|
771
773
|
leftIcon: h,
|
|
@@ -785,10 +787,10 @@ const V = ({
|
|
|
785
787
|
spacing: 1,
|
|
786
788
|
flex: 1,
|
|
787
789
|
alignItems: "center",
|
|
788
|
-
children: [!N && /* @__PURE__ */ e(g, {}),
|
|
790
|
+
children: [!N && /* @__PURE__ */ e(g, {}), a && /* @__PURE__ */ e(g, {
|
|
789
791
|
num: 3.5
|
|
790
792
|
}), /* @__PURE__ */ e(Ne, {
|
|
791
|
-
label:
|
|
793
|
+
label: o,
|
|
792
794
|
loading: s,
|
|
793
795
|
left: u,
|
|
794
796
|
leftIcon: h,
|
|
@@ -816,19 +818,19 @@ const V = ({
|
|
|
816
818
|
className: n,
|
|
817
819
|
label: r,
|
|
818
820
|
contentLeft: t,
|
|
819
|
-
contentRight:
|
|
820
|
-
...
|
|
821
|
+
contentRight: a,
|
|
822
|
+
...o
|
|
821
823
|
}) => /* @__PURE__ */ e(c, {
|
|
822
824
|
spacing: 2,
|
|
823
825
|
indent: 2,
|
|
824
826
|
children: /* @__PURE__ */ e(J, {
|
|
825
827
|
className: jn.sidebarMenuHeading,
|
|
826
828
|
contentLeft: t,
|
|
827
|
-
contentRight:
|
|
829
|
+
contentRight: a,
|
|
828
830
|
children: /* @__PURE__ */ e(S, {
|
|
829
831
|
variant: "overline",
|
|
830
832
|
color: "var(--swui-sidebar-menu-heading-text-color)",
|
|
831
|
-
...
|
|
833
|
+
...o,
|
|
832
834
|
children: r
|
|
833
835
|
})
|
|
834
836
|
})
|
|
@@ -839,14 +841,14 @@ const V = ({
|
|
|
839
841
|
label: r,
|
|
840
842
|
leftIcon: t
|
|
841
843
|
}) => {
|
|
842
|
-
const [
|
|
844
|
+
const [a, o] = Me(!1);
|
|
843
845
|
return /* @__PURE__ */ e(c, {
|
|
844
846
|
background: "var(--current-background-color)",
|
|
845
847
|
children: /* @__PURE__ */ e(ue, {
|
|
846
848
|
className: Rn.sidebarMenuCollapsible,
|
|
847
849
|
label: r,
|
|
848
|
-
collapsed:
|
|
849
|
-
onClick: () =>
|
|
850
|
+
collapsed: a,
|
|
851
|
+
onClick: () => o(!a),
|
|
850
852
|
contentLeft: t ? /* @__PURE__ */ e(c, {
|
|
851
853
|
width: "var(--swui-sidebar-menu-item-height)",
|
|
852
854
|
alignItems: "center",
|
|
@@ -866,44 +868,44 @@ const V = ({
|
|
|
866
868
|
})
|
|
867
869
|
})
|
|
868
870
|
});
|
|
869
|
-
}, pe = (n, r = !1) => n.map((t,
|
|
871
|
+
}, pe = (n, r = !1) => n.map((t, a) => {
|
|
870
872
|
switch (t.type) {
|
|
871
873
|
case "heading":
|
|
872
874
|
return /* @__PURE__ */ e(he, {
|
|
873
875
|
label: t.label
|
|
874
|
-
},
|
|
876
|
+
}, a);
|
|
875
877
|
case "separator":
|
|
876
|
-
return /* @__PURE__ */ e(K, {},
|
|
878
|
+
return /* @__PURE__ */ e(K, {}, a);
|
|
877
879
|
case "link": {
|
|
878
880
|
const {
|
|
879
|
-
type:
|
|
881
|
+
type: o,
|
|
880
882
|
...s
|
|
881
883
|
} = t;
|
|
882
884
|
return /* @__PURE__ */ e(D, {
|
|
883
885
|
indent: r,
|
|
884
886
|
...s
|
|
885
|
-
},
|
|
887
|
+
}, a);
|
|
886
888
|
}
|
|
887
889
|
case "grouped":
|
|
888
890
|
return /* @__PURE__ */ e($n, {
|
|
889
891
|
leftIcon: t.leftIcon,
|
|
890
892
|
label: t.label,
|
|
891
893
|
children: pe(t.items, !0)
|
|
892
|
-
},
|
|
894
|
+
}, a);
|
|
893
895
|
default:
|
|
894
896
|
return ie(t);
|
|
895
897
|
}
|
|
896
898
|
}), gt = (n, {
|
|
897
899
|
popupMinWidth: r
|
|
898
|
-
}) => n.map((t,
|
|
900
|
+
}) => n.map((t, a) => {
|
|
899
901
|
switch (t.type) {
|
|
900
902
|
case "heading":
|
|
901
903
|
return null;
|
|
902
904
|
case "separator":
|
|
903
|
-
return /* @__PURE__ */ e(K, {},
|
|
905
|
+
return /* @__PURE__ */ e(K, {}, a);
|
|
904
906
|
case "link": {
|
|
905
907
|
const {
|
|
906
|
-
type:
|
|
908
|
+
type: o,
|
|
907
909
|
label: s,
|
|
908
910
|
...u
|
|
909
911
|
} = t;
|
|
@@ -911,7 +913,7 @@ const V = ({
|
|
|
911
913
|
title: s,
|
|
912
914
|
width: "var(--swui-sidebar-menu-item-height)",
|
|
913
915
|
...u
|
|
914
|
-
},
|
|
916
|
+
}, a);
|
|
915
917
|
}
|
|
916
918
|
case "grouped":
|
|
917
919
|
return /* @__PURE__ */ e("div", {
|
|
@@ -936,7 +938,7 @@ const V = ({
|
|
|
936
938
|
leftIcon: t.leftIcon
|
|
937
939
|
})
|
|
938
940
|
})
|
|
939
|
-
},
|
|
941
|
+
}, a);
|
|
940
942
|
default:
|
|
941
943
|
return ie(t);
|
|
942
944
|
}
|
|
@@ -944,7 +946,7 @@ const V = ({
|
|
|
944
946
|
numItemsSelected: n,
|
|
945
947
|
label: r,
|
|
946
948
|
afterLabelContent: t,
|
|
947
|
-
rightContent:
|
|
949
|
+
rightContent: a
|
|
948
950
|
}) => /* @__PURE__ */ i(p, {
|
|
949
951
|
indent: 3,
|
|
950
952
|
spacing: !0,
|
|
@@ -974,7 +976,7 @@ const V = ({
|
|
|
974
976
|
})]
|
|
975
977
|
}) : null]
|
|
976
978
|
}), /* @__PURE__ */ e(c, {
|
|
977
|
-
children:
|
|
979
|
+
children: a
|
|
978
980
|
})]
|
|
979
981
|
});
|
|
980
982
|
export {
|
|
@@ -998,8 +1000,8 @@ export {
|
|
|
998
1000
|
tt as NavBarNotificationButton,
|
|
999
1001
|
nt as NavBarPopoverButton,
|
|
1000
1002
|
rt as NavBarSearchField,
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
+
at as NavBarUserButton,
|
|
1004
|
+
ot as Notification,
|
|
1003
1005
|
ht as PageHeader,
|
|
1004
1006
|
pt as PageHeaderRow,
|
|
1005
1007
|
mt as PageHeading,
|