@stenajs-webui/panels 15.5.2 → 15.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -179,12 +179,12 @@ function styleInject(css, ref) {
179
179
  }
180
180
  }
181
181
 
182
- var css_248z$9 = ".NavBar-module_navBar__HOrS3 {\n /* Theme vars */\n --swui-navbar-background-color: var(--lhds-color-blue-500);\n --swui-navbar-item-background-color-hover: var(--lhds-color-blue-700);\n --swui-navbar-item-background-color-selected: var(--lhds-color-blue-600);\n --swui-navbar-item-background-color-selected-hover: var(\n --lhds-color-blue-700\n );\n\n --swui-navbar-background-dark-color: var(--lhds-color-blue-800);\n --swui-navbar-dark-item-background-color-hover: var(--lhds-color-blue-600);\n --swui-navbar-dark-item-background-color-focus: var(--lhds-color-blue-600);\n --swui-navbar-dark-item-background-color-active: var(--lhds-color-blue-500);\n --swui-navbar-dark-item-background-color-selected: var(--lhds-color-blue-700);\n --swui-navbar-dark-item-background-color-selected-hover: var(\n --lhds-color-blue-600\n );\n --swui-navbar-dark-item-background-color-selected-focus: var(\n --lhds-color-blue-600\n );\n --swui-navbar-dark-item-background-color-selected-active: var(\n --lhds-color-blue-500\n );\n\n /* Styling */\n background-color: var(--swui-navbar-background-color);\n}\n\n .NavBar-module_navBar__HOrS3.NavBar-module_dark__fYBgM {\n background-color: var(--swui-navbar-background-dark-color);\n /* NavBarButton overrides */\n --swui-nav-bar-button-background-color-hover: var(\n --swui-navbar-dark-item-background-color-hover\n );\n --swui-nav-bar-button-background-color-focus: var(\n --swui-navbar-dark-item-background-color-focus\n );\n --swui-nav-bar-button-background-color-active: var(\n --swui-navbar-dark-item-background-color-active\n );\n --swui-nav-bar-button-background-color-selected: var(\n --swui-navbar-dark-item-background-color-selected\n );\n --swui-nav-bar-button-background-color-selected-hover: var(\n --swui-navbar-dark-item-background-color-selected-hover\n );\n --swui-nav-bar-button-background-color-selected-focus: var(\n --swui-navbar-dark-item-background-color-selected-focus\n );\n --swui-nav-bar-button-background-color-selected-active: var(\n --swui-navbar-dark-item-background-color-selected-active\n );\n }\n";
183
- var styles$8 = {"navBar":"NavBar-module_navBar__HOrS3","dark":"NavBar-module_dark__fYBgM"};
182
+ var css_248z$9 = ".NavBar-module_navBar__HOrS3 {\n /* Theme vars */\n --swui-navbar-background-color: var(--lhds-color-blue-500);\n --swui-navbar-item-background-color-hover: var(--lhds-color-blue-700);\n --swui-navbar-item-background-color-selected: var(--lhds-color-blue-600);\n --swui-navbar-item-background-color-selected-hover: var(\n --lhds-color-blue-700\n );\n\n /* Styling */\n background-color: var(--swui-navbar-background-color);\n}\n";
183
+ var styles$8 = {"navBar":"NavBar-module_navBar__HOrS3"};
184
184
  styleInject(css_248z$9);
185
185
 
186
- var css_248z$8 = ".NavBarSideMenuButton-module_sidebarMenuButton__SlbsU {\n /* Theme vars */\n --swui-nav-bar-side-menu-button-text-color: var(--lhds-color-ui-50);\n --swui-nav-bar-side-menu-button-background-color: var(--lhds-color-blue-500);\n --swui-nav-bar-side-menu-button-background-color-hover: var(\n --lhds-color-blue-600\n );\n --swui-nav-bar-side-menu-button-background-color-focus: var(\n --lhds-color-blue-600\n );\n --swui-nav-bar-side-menu-button-background-color-active: var(\n --lhds-color-blue-700\n );\n --swui-nav-bar-side-menu-button-background-dark-color: var(\n --lhds-color-blue-800\n );\n --swui-nav-bar-side-menu-button-background-dark-color-hover: var(\n --lhds-color-blue-900\n );\n --swui-nav-bar-side-menu-button-background-dark-color-focus: var(\n --lhds-color-blue-700\n );\n --swui-nav-bar-side-menu-button-background-dark-color-active: var(\n --lhds-color-blue-900\n );\n\n /* Current */\n --current-background-color: var(\n --swui-nav-bar-side-menu-button-background-color\n );\n\n /* Styling */\n\n display: -webkit-flex;\n\n display: flex;\n -webkit-align-items: center;\n align-items: center;\n -webkit-justify-content: center;\n justify-content: center;\n line-height: 10px;\n background-color: var(--current-background-color);\n color: var(--swui-nav-bar-side-menu-button-text-color);\n cursor: pointer;\n height: 64px;\n width: 64px;\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n border-radius: 0;\n outline: none;\n border: none;\n}\n\n .NavBarSideMenuButton-module_sidebarMenuButton__SlbsU.NavBarSideMenuButton-module_light__2LbsW {\n --current-background-color: var(\n --swui-nav-bar-side-menu-button-background-color\n );\n }\n\n .NavBarSideMenuButton-module_sidebarMenuButton__SlbsU.NavBarSideMenuButton-module_light__2LbsW:hover {\n --current-background-color: var(\n --swui-nav-bar-side-menu-button-background-color-hover\n );\n }\n\n .NavBarSideMenuButton-module_sidebarMenuButton__SlbsU.NavBarSideMenuButton-module_light__2LbsW:focus {\n --current-background-color: var(\n --swui-nav-bar-side-menu-button-background-color-focus\n );\n }\n\n .NavBarSideMenuButton-module_sidebarMenuButton__SlbsU.NavBarSideMenuButton-module_light__2LbsW:active {\n --current-background-color: var(\n --swui-nav-bar-side-menu-button-background-color-active\n );\n }\n\n .NavBarSideMenuButton-module_sidebarMenuButton__SlbsU.NavBarSideMenuButton-module_dark__QlRe8 {\n --current-background-color: var(\n --swui-nav-bar-side-menu-button-background-dark-color\n );\n }\n\n .NavBarSideMenuButton-module_sidebarMenuButton__SlbsU.NavBarSideMenuButton-module_dark__QlRe8:hover {\n --current-background-color: var(\n --swui-nav-bar-side-menu-button-background-dark-color-hover\n );\n }\n\n .NavBarSideMenuButton-module_sidebarMenuButton__SlbsU.NavBarSideMenuButton-module_dark__QlRe8:focus {\n --current-background-color: var(\n --swui-nav-bar-side-menu-button-background-dark-color-focus\n );\n }\n\n .NavBarSideMenuButton-module_sidebarMenuButton__SlbsU.NavBarSideMenuButton-module_dark__QlRe8:active {\n --current-background-color: var(\n --swui-nav-bar-side-menu-button-background-dark-color-active\n );\n }\n\n .NavBarSideMenuButton-module_sidebarMenuButton__SlbsU .NavBarSideMenuButton-module_icon__Art-L {\n color: var(--swui-nav-bar-side-menu-button-text-color);\n }\n";
187
- var styles$7 = {"sidebarMenuButton":"NavBarSideMenuButton-module_sidebarMenuButton__SlbsU","light":"NavBarSideMenuButton-module_light__2LbsW","dark":"NavBarSideMenuButton-module_dark__QlRe8","icon":"NavBarSideMenuButton-module_icon__Art-L"};
186
+ var css_248z$8 = ".NavBarSideMenuButton-module_sidebarMenuButton__SlbsU {\n /* Theme vars */\n --swui-nav-bar-side-menu-button-text-color: var(--lhds-color-ui-50);\n --swui-nav-bar-side-menu-button-background-color: var(--lhds-color-blue-500);\n --swui-nav-bar-side-menu-button-background-color-hover: var(\n --lhds-color-blue-600\n );\n --swui-nav-bar-side-menu-button-background-color-focus: var(\n --lhds-color-blue-600\n );\n --swui-nav-bar-side-menu-button-background-color-active: var(\n --lhds-color-blue-700\n );\n\n /* State vars */\n --current-background-color: var(\n --swui-nav-bar-side-menu-button-background-color\n );\n\n /* Styling */\n display: flex;\n align-items: center;\n justify-content: center;\n line-height: 10px;\n background-color: var(--current-background-color);\n color: var(--swui-nav-bar-side-menu-button-text-color);\n cursor: pointer;\n height: var(--swui-nav-bar-height);\n width: var(--swui-nav-bar-height);\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n border-radius: 0;\n outline: none;\n border: none;\n}\n\n .NavBarSideMenuButton-module_sidebarMenuButton__SlbsU:hover {\n --current-background-color: var(\n --swui-nav-bar-side-menu-button-background-color-hover\n );\n }\n\n .NavBarSideMenuButton-module_sidebarMenuButton__SlbsU:focus-visible {\n --current-background-color: var(\n --swui-nav-bar-side-menu-button-background-color-focus\n );\n }\n\n .NavBarSideMenuButton-module_sidebarMenuButton__SlbsU:active {\n --current-background-color: var(\n --swui-nav-bar-side-menu-button-background-color-active\n );\n }\n\n .NavBarSideMenuButton-module_sidebarMenuButton__SlbsU .NavBarSideMenuButton-module_icon__Art-L {\n color: var(--swui-nav-bar-side-menu-button-text-color);\n }\n";
187
+ var styles$7 = {"sidebarMenuButton":"NavBarSideMenuButton-module_sidebarMenuButton__SlbsU","icon":"NavBarSideMenuButton-module_icon__Art-L"};
188
188
  styleInject(css_248z$8);
189
189
 
190
190
  function _extends$1() { _extends$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
@@ -198,50 +198,57 @@ var _ref$1 = /*#__PURE__*/React__namespace.createElement("path", {
198
198
  function SvgBars(props) {
199
199
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
200
200
  xmlns: "http://www.w3.org/2000/svg",
201
- width: 24,
202
- height: 24
201
+ width: 16,
202
+ height: 16,
203
+ viewBox: "0 0 24 24"
203
204
  }, props), _ref$1);
204
205
  }
205
206
 
206
207
  var NavBarSideMenuButton = function (_a) {
207
- var _b = _a.variant, variant = _b === void 0 ? "light" : _b, className = _a.className, onClick = _a.onClick;
208
- return (React__namespace.createElement("button", { onClick: onClick, className: cx__default["default"](styles$7.sidebarMenuButton, styles$7[variant], className) },
208
+ var className = _a.className, onClick = _a.onClick;
209
+ return (React__namespace.createElement("button", { onClick: onClick, className: cx__default["default"](styles$7.sidebarMenuButton, className) },
209
210
  React__namespace.createElement(SvgBars, { className: styles$7.icon })));
210
211
  };
211
212
 
212
- var NavBarVariantContext = React.createContext("light");
213
- var useNavBarVariant = function () { return React.useContext(NavBarVariantContext); };
213
+ var variantToHeight = {
214
+ compact: 40,
215
+ standard: 48,
216
+ relaxed: 64,
217
+ };
218
+ var getNavbarHeight = function (variant) {
219
+ return variantToHeight[variant] + "px";
220
+ };
214
221
 
215
222
  var NavBar = function (_a) {
216
- var _b = _a.variant, variant = _b === void 0 ? "light" : _b, left = _a.left, className = _a.className, _c = _a.showMenuButton, showMenuButton = _c === void 0 ? false : _c, children = _a.children, right = _a.right, center = _a.center, _d = _a.height, height = _d === void 0 ? "64px" : _d, onClickMenuButton = _a.onClickMenuButton;
223
+ var _b;
224
+ var left = _a.left, className = _a.className, _c = _a.showMenuButton, showMenuButton = _c === void 0 ? false : _c, _d = _a.menuButtonVisibility, menuButtonVisibility = _d === void 0 ? "visible" : _d, children = _a.children, right = _a.right, center = _a.center, _e = _a.variant, variant = _e === void 0 ? "standard" : _e, onClickMenuButton = _a.onClickMenuButton;
217
225
  var currentFlex = center ? 1 : undefined;
218
- return (React__namespace.createElement(NavBarVariantContext.Provider, { value: variant },
219
- React__namespace.createElement(core.Row, { height: height, minHeight: height, justifyContent: "space-between", className: cx__default["default"](styles$8.navBar, styles$8[variant], className) },
220
- React__namespace.createElement(core.Row, { flex: currentFlex, justifyContent: "flex-start", alignItems: "center" },
221
- showMenuButton ? (React__namespace.createElement(React__namespace.Fragment, null,
222
- React__namespace.createElement(NavBarSideMenuButton, { variant: variant, onClick: onClickMenuButton }),
223
- React__namespace.createElement(core.Indent, null))) : (React__namespace.createElement(core.Indent, { num: 2 })),
224
- left ? (React__namespace.createElement(React__namespace.Fragment, null,
225
- left,
226
- React__namespace.createElement(core.Indent, { num: 2 }))) : (React__namespace.createElement(core.Indent, { num: 2 })),
227
- children && (React__namespace.createElement(React__namespace.Fragment, null,
228
- React__namespace.createElement(core.Row, { justifyContent: "center", alignItems: "center" }, React__namespace.Children.map(children, function (child, index) { return (React__namespace.createElement(React__namespace.Fragment, null,
229
- index > 0 && React__namespace.createElement(core.Indent, null),
230
- child)); }))))),
231
- center && (React__namespace.createElement(core.Row, { justifyContent: "center", alignItems: "center" }, center)),
232
- React__namespace.createElement(core.Row, { justifyContent: "flex-end", alignItems: "center", flex: currentFlex },
233
- right,
234
- React__namespace.createElement(core.Indent, { num: 2 })))));
235
- };
236
-
237
- var css_248z$7 = ".NavBarButton-module_navBarButton__3XKjB {\n /* Theme vars */\n --swui-nav-bar-button-text-color: var(--lhds-color-ui-50);\n --swui-nav-bar-button-background-color: transparent;\n}\n\n .NavBarButton-module_navBarButton__3XKjB.NavBarButton-module_light__3lWuW {\n --swui-nav-bar-button-background-color-hover: var(--lhds-color-blue-900);\n --swui-nav-bar-button-background-color-focus: var(--lhds-color-blue-700);\n --swui-nav-bar-button-background-color-active: var(--lhds-color-blue-800);\n --swui-nav-bar-button-background-color-selected: var(--lhds-color-blue-600);\n --swui-nav-bar-button-background-color-selected-hover: var(\n --lhds-color-blue-700\n );\n --swui-nav-bar-button-background-color-selected-focus: var(\n --lhds-color-blue-700\n );\n --swui-nav-bar-button-background-color-selected-active: var(\n --lhds-color-blue-800\n );\n }\n\n .NavBarButton-module_navBarButton__3XKjB.NavBarButton-module_dark__2LCrl {\n --swui-nav-bar-button-background-color-hover: var(--lhds-color-blue-900);\n --swui-nav-bar-button-background-color-focus: var(--lhds-color-blue-700);\n --swui-nav-bar-button-background-color-active: var(--lhds-color-blue-900);\n --swui-nav-bar-button-background-color-selected: var(--lhds-color-blue-700);\n --swui-nav-bar-button-background-color-selected-hover: var(\n --lhds-color-blue-900\n );\n --swui-nav-bar-button-background-color-selected-focus: var(\n --lhds-color-blue-600\n );\n --swui-nav-bar-button-background-color-selected-active: var(\n --lhds-color-blue-900\n );\n }\n\n .NavBarButton-module_navBarButton__3XKjB {\n --swui-flat-button-text-color: var(--swui-nav-bar-button-text-color);\n --swui-flat-button-icon-color: var(--swui-nav-bar-button-text-color);\n --swui-flat-button-text-color-active: var(--swui-nav-bar-button-text-color);\n --swui-flat-button-background-color: var(\n --swui-nav-bar-button-background-color\n );\n --swui-flat-button-background-color-hover: var(\n --swui-nav-bar-button-background-color-hover\n );\n --swui-flat-button-background-color-focus: var(\n --swui-nav-bar-button-background-color-focus\n );\n --swui-flat-button-background-color-active: var(\n --swui-nav-bar-button-background-color-active\n );\n}\n\n /* Flatbutton overrrides */\n\n .NavBarButton-module_navBarButton__3XKjB.NavBarButton-module_selected__1ReDE {\n --swui-flat-button-background-color: var(\n --swui-nav-bar-button-background-color-selected\n );\n --swui-flat-button-background-color-hover: var(\n --swui-nav-bar-button-background-color-selected-hover\n );\n --swui-flat-button-background-color-focus: var(\n --swui-nav-bar-button-background-color-selected-focus\n );\n --swui-flat-button-background-color-active: var(\n --swui-nav-bar-button-background-color-selected-active\n );\n }\n";
238
- var styles$6 = {"navBarButton":"NavBarButton-module_navBarButton__3XKjB","light":"NavBarButton-module_light__3lWuW","dark":"NavBarButton-module_dark__2LCrl","selected":"NavBarButton-module_selected__1ReDE"};
226
+ var height = getNavbarHeight(variant);
227
+ return (React__namespace.createElement(core.Row, { height: height, minHeight: height, justifyContent: "space-between", style: (_b = {}, _b["--swui-nav-bar-height"] = height, _b), className: cx__default["default"](styles$8.navBar, className) },
228
+ React__namespace.createElement(core.Row, { flex: currentFlex, justifyContent: "flex-start", alignItems: "center" },
229
+ showMenuButton ? (React__namespace.createElement(React__namespace.Fragment, null,
230
+ menuButtonVisibility === "hidden" ? (React__namespace.createElement(core.Box, { width: "var(--swui-nav-bar-height)" })) : (React__namespace.createElement(NavBarSideMenuButton, { onClick: onClickMenuButton })),
231
+ React__namespace.createElement(core.Indent, null))) : (React__namespace.createElement(core.Indent, { num: 2 })),
232
+ left ? (React__namespace.createElement(React__namespace.Fragment, null,
233
+ left,
234
+ React__namespace.createElement(core.Indent, { num: 2 }))) : (React__namespace.createElement(core.Indent, { num: 2 })),
235
+ children && (React__namespace.createElement(React__namespace.Fragment, null,
236
+ React__namespace.createElement(core.Row, { justifyContent: "center", alignItems: "center" }, React__namespace.Children.map(children, function (child, index) { return (React__namespace.createElement(React__namespace.Fragment, null,
237
+ index > 0 && React__namespace.createElement(core.Indent, null),
238
+ child)); }))))),
239
+ center && (React__namespace.createElement(core.Row, { justifyContent: "center", alignItems: "center" }, center)),
240
+ React__namespace.createElement(core.Row, { justifyContent: "flex-end", alignItems: "center", flex: currentFlex },
241
+ right,
242
+ React__namespace.createElement(core.Indent, { num: 2 }))));
243
+ };
244
+
245
+ var css_248z$7 = ".NavBarButton-module_navBarButton__3XKjB {\n /* Theme vars */\n --swui-nav-bar-button-text-color: var(--lhds-color-ui-50);\n --swui-nav-bar-button-background-color: transparent;\n --swui-nav-bar-button-background-color-hover: var(--lhds-color-blue-900);\n --swui-nav-bar-button-background-color-focus: var(--lhds-color-blue-700);\n --swui-nav-bar-button-background-color-active: var(--lhds-color-blue-800);\n --swui-nav-bar-button-background-color-selected: var(--lhds-color-blue-600);\n --swui-nav-bar-button-background-color-selected-hover: var(\n --lhds-color-blue-700\n );\n --swui-nav-bar-button-background-color-selected-focus: var(\n --lhds-color-blue-700\n );\n --swui-nav-bar-button-background-color-selected-active: var(\n --lhds-color-blue-800\n );\n\n /* Flatbutton overrrides */\n --swui-flat-button-text-color: var(--swui-nav-bar-button-text-color);\n --swui-flat-button-icon-color: var(--swui-nav-bar-button-text-color);\n --swui-flat-button-text-color-active: var(--swui-nav-bar-button-text-color);\n --swui-flat-button-background-color: var(\n --swui-nav-bar-button-background-color\n );\n --swui-flat-button-background-color-hover: var(\n --swui-nav-bar-button-background-color-hover\n );\n --swui-flat-button-background-color-focus: var(\n --swui-nav-bar-button-background-color-focus\n );\n --swui-flat-button-background-color-active: var(\n --swui-nav-bar-button-background-color-active\n );\n}\n\n .NavBarButton-module_navBarButton__3XKjB.NavBarButton-module_selected__1ReDE {\n --swui-flat-button-background-color: var(\n --swui-nav-bar-button-background-color-selected\n );\n --swui-flat-button-background-color-hover: var(\n --swui-nav-bar-button-background-color-selected-hover\n );\n --swui-flat-button-background-color-focus: var(\n --swui-nav-bar-button-background-color-selected-focus\n );\n --swui-flat-button-background-color-active: var(\n --swui-nav-bar-button-background-color-selected-active\n );\n }\n";
246
+ var styles$6 = {"navBarButton":"NavBarButton-module_navBarButton__3XKjB","selected":"NavBarButton-module_selected__1ReDE"};
239
247
  styleInject(css_248z$7);
240
248
 
241
249
  var NavBarButton = function (_a) {
242
250
  var selected = _a.selected, className = _a.className, buttonProps = __rest(_a, ["selected", "className"]);
243
- var variant = useNavBarVariant();
244
- return (React__namespace.createElement(elements.FlatButton, __assign({}, buttonProps, { className: cx__default["default"](styles$6.navBarButton, styles$6[variant], selected && styles$6.selected, className) })));
251
+ return (React__namespace.createElement(elements.FlatButton, __assign({}, buttonProps, { className: cx__default["default"](styles$6.navBarButton, selected && styles$6.selected, className) })));
245
252
  };
246
253
 
247
254
  var NavBarHeading = function (headingProps) {
@@ -257,14 +264,13 @@ var NavBarPopoverButton = function (_a) {
257
264
  React__namespace.createElement(NavBarButton, __assign({}, navBarButtonProps, { onClick: open }))));
258
265
  };
259
266
 
260
- var css_248z$6 = ".NavBarSearchField-module_navBarSearchFieldInput__2kThv {\n --swui-textinput-line-height: 27px;\n --swui-textinput-text-color: var(--lhds-color-ui-50);\n}\n\n .NavBarSearchField-module_navBarSearchFieldInput__2kThv:focus {\n --swui-textinput-text-color: var(--lhds-color-ui-800);\n }\n\n.NavBarSearchField-module_navBarSearchField__kIe66 {\n --swui-textinput-animation-time: var(--swui-animation-time-fast);\n}\n\n.NavBarSearchField-module_navBarSearchField__kIe66.NavBarSearchField-module_light__jSF_w {\n --swui-textinput-placeholder-color: var(--lhds-color-ui-500);\n --swui-textinput-bg-color: var(--lhds-color-blue-600);\n --swui-textinput-border-color: transparent;\n --swui-textinput-border-color-hover: transparent;\n }\n\n.NavBarSearchField-module_navBarSearchField__kIe66.NavBarSearchField-module_light__jSF_w:focus-within {\n --swui-textinput-text-color: var(--lhds-color-ui-800);\n --swui-field-text-color: var(--swui-field-text-color);\n --swui-textinput-icon-color: var(--lhds-color-ui-500);\n --swui-textinput-bg-color: var(--lhds-color-ui-50);\n }\n\n.NavBarSearchField-module_navBarSearchField__kIe66.NavBarSearchField-module_dark__TNf65 {\n --swui-textinput-placeholder-color: var(--lhds-color-ui-500);\n --swui-textinput-bg-color: var(--lhds-color-blue-900);\n --swui-textinput-border-color: transparent;\n --swui-textinput-border-color-hover: transparent;\n }\n\n.NavBarSearchField-module_navBarSearchField__kIe66.NavBarSearchField-module_dark__TNf65:focus-within {\n --swui-field-text-color: var(--swui-field-text-color);\n --swui-textinput-icon-color: var(--lhds-color-ui-500);\n --swui-textinput-bg-color: var(--lhds-color-ui-50);\n }\n";
261
- var styles$5 = {"navBarSearchFieldInput":"NavBarSearchField-module_navBarSearchFieldInput__2kThv","navBarSearchField":"NavBarSearchField-module_navBarSearchField__kIe66","light":"NavBarSearchField-module_light__jSF_w","dark":"NavBarSearchField-module_dark__TNf65"};
267
+ var css_248z$6 = ".NavBarSearchField-module_navBarSearchFieldInput__2kThv {\n --swui-textinput-line-height: 27px;\n --swui-textinput-text-color: var(--lhds-color-ui-50);\n}\n\n .NavBarSearchField-module_navBarSearchFieldInput__2kThv:focus {\n --swui-textinput-text-color: var(--lhds-color-ui-800);\n }\n\n.NavBarSearchField-module_navBarSearchField__kIe66 {\n --swui-textinput-animation-time: var(--swui-animation-time-fast);\n\n --swui-textinput-placeholder-color: var(--lhds-color-ui-500);\n --swui-textinput-bg-color: var(--lhds-color-blue-600);\n --swui-textinput-border-color: transparent;\n --swui-textinput-border-color-hover: transparent;\n}\n\n.NavBarSearchField-module_navBarSearchField__kIe66:focus-within {\n --swui-textinput-text-color: var(--lhds-color-ui-800);\n --swui-field-text-color: var(--swui-field-text-color);\n --swui-textinput-icon-color: var(--lhds-color-ui-500);\n --swui-textinput-bg-color: var(--lhds-color-ui-50);\n }\n";
268
+ var styles$5 = {"navBarSearchFieldInput":"NavBarSearchField-module_navBarSearchFieldInput__2kThv","navBarSearchField":"NavBarSearchField-module_navBarSearchField__kIe66"};
262
269
  styleInject(css_248z$6);
263
270
 
264
271
  var NavBarSearchField = function (_a) {
265
272
  var _b = _a.placeholder, placeholder = _b === void 0 ? "Search..." : _b, className = _a.className, wrapperClassName = _a.wrapperClassName, textInputProps = __rest(_a, ["placeholder", "className", "wrapperClassName"]);
266
- var variant = useNavBarVariant();
267
- return (React__namespace.createElement(forms.TextInput, __assign({ wrapperClassName: cx__default["default"](styles$5.navBarSearchField, styles$5[variant], wrapperClassName), className: cx__default["default"](styles$5.navBarSearchFieldInput, className), placeholder: placeholder, contentRight: React__namespace.createElement(core.Clickable, null,
273
+ return (React__namespace.createElement(forms.TextInput, __assign({ wrapperClassName: cx__default["default"](styles$5.navBarSearchField, wrapperClassName), className: cx__default["default"](styles$5.navBarSearchFieldInput, className), placeholder: placeholder, contentRight: React__namespace.createElement(core.Clickable, null,
268
274
  React__namespace.createElement(elements.Icon, { icon: elements.stenaSearch })) }, textInputProps)));
269
275
  };
270
276
 
@@ -303,7 +309,7 @@ var Notification = function (_a) {
303
309
  React__namespace.createElement(core.Text, { size: "small", color: theme.cssColor("--swui-text-disabled-color") }, agoLabel))))));
304
310
  };
305
311
 
306
- var css_248z$5 = ".Collapsible-module_collapsible__2Nn8K {\n --swui-collapsible-animation-time: var(--swui-animation-time-fast);\n\n --swui-collapsible-expanded-line-background-color: var(\n --swui-primary-action-color\n );\n\n /*\n * Header\n */\n --swui-collapsible-header-text-color: var(--lhds-color-ui-900);\n --swui-collapsible-header-background-color: var(--swui-white);\n --swui-collapsible-header-background-color-hover: var(--lhds-color-blue-100);\n --swui-collapsible-header-background-color-active: var(--lhds-color-blue-100);\n --swui-collapsible-header-border-color: var(--lhds-color-ui-300);\n --swui-collapsible-header-border-color-focus: var(\n --swui-primary-action-color\n );\n --swui-collapsible-header-focus-shadow: var(--swui-field-focus-shadow);\n --swui-collapsible-header-content-margin: calc(\n var(--swui-metrics-indent) * 2\n );\n --swui-collapsible-header-font-weight: var(--swui-font-weight-text-bold);\n --swui-collapsible-header-indicator-color: var(--swui-primary-action-color);\n --swui-collapsible-header-indicator-color-collapsed: var(--lhds-color-ui-500);\n --swui-collapsible-header-indicator-color-hover: var(\n --swui-primary-action-color\n );\n --swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0;\n\n /*\n * Content\n */\n --swui-collapsible-content-background-color: var(--lhds-color-ui-100);\n --swui-collapsible-content-border-color: var(--lhds-color-ui-300);\n --swui-collapsible-content-padding: var(--swui-metrics-indent)\n calc(var(--swui-metrics-indent) * 2);\n\n --swui-collapsible-groupheading-font-size: var(--swui-font-size-smaller);\n --swui-collapsible-groupheading-text-color: var(--lhds-color-ui-600);\n\n --swui-collapsible-min-height: 40px;\n}\n\n /* Header */\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_header__IZx0y {\n background-color: var(--swui-collapsible-header-background-color);\n width: 100%;\n text-align: left;\n\n min-height: var(--swui-collapsible-min-height);\n box-sizing: border-box;\n display: -webkit-flex;\n display: flex;\n -webkit-justify-content: space-between;\n justify-content: space-between;\n -webkit-align-items: center;\n align-items: center;\n border-bottom: 1px solid var(--swui-collapsible-header-border-color);\n padding: var(--swui-collapsible-header-padding);\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_header__IZx0y .Collapsible-module_indicator__3YBhK {\n transition: all var(--swui-collapsible-animation-time) ease-in-out;\n margin-left: var(--swui-collapsible-header-content-margin);\n color: var(--swui-collapsible-header-indicator-color);\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_header__IZx0y:not(:disabled):hover:not(:active) {\n background-color: var(--swui-collapsible-header-background-color-hover);\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_header__IZx0y:not(:disabled):hover:not(:active) .Collapsible-module_indicator__3YBhK {\n color: var(--swui-collapsible-header-indicator-color-hover);\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_header__IZx0y:focus-visible {\n outline: 1px solid var(--swui-collapsible-header-border-color-focus);\n outline-offset: -1px;\n box-shadow: var(--swui-collapsible-header-focus-shadow);\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_header__IZx0y:active {\n background: var(--swui-collapsible-header-background-color-active);\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_header__IZx0y:disabled {\n cursor: not-allowed;\n }\n\n .Collapsible-module_collapsible__2Nn8K {\n\n position: relative;\n}\n\n .Collapsible-module_collapsible__2Nn8K::before {\n content: \"\";\n position: absolute;\n width: 2px;\n background: var(--swui-collapsible-expanded-line-background-color);\n top: 0;\n bottom: 0;\n left: 0;\n z-index: 1;\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_headerText__2qjzx {\n font-weight: var(--swui-collapsible-header-font-weight);\n }\n\n .Collapsible-module_collapsible__2Nn8K[aria-expanded=\"false\"] {\n --swui-collapsible-expanded-line-background-color: transparent;\n }\n\n .Collapsible-module_collapsible__2Nn8K[aria-expanded=\"false\"] .Collapsible-module_indicator__3YBhK {\n color: var(--swui-collapsible-header-indicator-color-collapsed);\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_label__Hpp-R {\n margin-right: auto;\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_label__Hpp-R span {\n --current-line-height: 1;\n font-weight: var(--swui-collapsible-header-font-weight);\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_contentLeft__2gPpu,\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_contentRight__bTr59 {\n display: -webkit-flex;\n display: flex;\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_contentLeft__2gPpu button, .Collapsible-module_collapsible__2Nn8K .Collapsible-module_contentRight__bTr59 button {\n cursor: pointer;\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_contentLeft__2gPpu {\n margin-right: var(--swui-collapsible-header-content-margin);\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_contentRight__bTr59 {\n margin-left: auto;\n }\n\n /* Content */\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_content__1e1C8 {\n display: -webkit-flex;\n display: flex;\n -webkit-align-items: center;\n align-items: center;\n -webkit-justify-content: stretch;\n justify-content: stretch;\n background: var(--swui-collapsible-content-background-color);\n padding: var(--swui-collapsible-content-padding);\n min-height: var(--swui-collapsible-min-height);\n box-sizing: border-box;\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_content__1e1C8:last-child {\n border-bottom: 1px solid var(--swui-collapsible-content-border-color);\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_content__1e1C8.Collapsible-module_groupHeading__3BK-5 {\n border: none;\n font-size: var(--swui-collapsible-groupheading-font-size);\n font-family: var(--swui-font-primary);\n color: var(--swui-collapsible-groupheading-text-color);\n text-transform: uppercase;\n font-weight: var(--swui-font-weight-text-bold);\n letter-spacing: 1px;\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_content__1e1C8 [data-hidden=\"true\"] {\n display: none;\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_content__1e1C8:hover [data-hidden=\"true\"] {\n display: inherit;\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_content__1e1C8:hover [data-hover=\"true\"] {\n color: var(--swui-collapsible-header-indicator-color-hover);\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_contentEnter__GWHoW {\n opacity: 0;\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_contentEnterActive__1YdNi {\n opacity: 1;\n transition: opacity var(--swui-collapsible-animation-time) ease-in-out;\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_contentExitDone__35Iht {\n display: none;\n }\n\n /** Clickable content */\n\n .Collapsible-module_collapsible__2Nn8K button.Collapsible-module_content__1e1C8 {\n font-family: var(--swui-font-primary);\n font-size: inherit;\n width: 100%;\n text-align: left;\n }\n\n .Collapsible-module_collapsible__2Nn8K button.Collapsible-module_content__1e1C8:focus-visible {\n outline: 1px solid var(--swui-collapsible-header-border-color-focus);\n outline-offset: -1px;\n box-shadow: var(--swui-collapsible-header-focus-shadow);\n }\n\n .Collapsible-module_collapsible__2Nn8K button.Collapsible-module_content__1e1C8:not(:disabled):hover {\n background-color: var(--swui-collapsible-header-background-color-hover);\n }\n\n .Collapsible-module_collapsible__2Nn8K button.Collapsible-module_content__1e1C8:disabled {\n cursor: not-allowed;\n }\n\n .Collapsible-module_collapsible__2Nn8K button.Collapsible-module_content__1e1C8:focus-within [data-hidden=\"true\"] {\n display: inherit;\n }\n\n /* Remove header background color if not at the highest level */\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_collapsible__2Nn8K {\n --swui-collapsible-header-background-color: var(\n --swui-collapsible-content-background-color\n );\n --swui-collapsible-header-font-weight: normal;\n }\n\n /* Increase padding with depth */\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_collapsible__2Nn8K {\n --swui-collapsible-content-padding: var(--swui-metrics-indent)\n calc(var(--swui-metrics-indent) * 2) var(--swui-metrics-indent)\n calc(var(--swui-metrics-indent) * 4);\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_collapsible__2Nn8K .Collapsible-module_collapsible__2Nn8K {\n --swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0\n calc(var(--swui-metrics-indent) * 4);\n --swui-collapsible-content-padding: var(--swui-metrics-indent)\n calc(var(--swui-metrics-indent) * 2) var(--swui-metrics-indent)\n calc(var(--swui-metrics-indent) * 6);\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_collapsible__2Nn8K .Collapsible-module_collapsible__2Nn8K .Collapsible-module_collapsible__2Nn8K {\n --swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0\n calc(var(--swui-metrics-indent) * 6);\n --swui-collapsible-content-padding: var(--swui-metrics-indent)\n calc(var(--swui-metrics-indent) * 2) var(--swui-metrics-indent)\n calc(var(--swui-metrics-indent) * 8);\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_collapsible__2Nn8K .Collapsible-module_collapsible__2Nn8K .Collapsible-module_collapsible__2Nn8K .Collapsible-module_collapsible__2Nn8K {\n --swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0\n calc(var(--swui-metrics-indent) * 8);\n --swui-collapsible-content-padding: var(--swui-metrics-indent)\n calc(var(--swui-metrics-indent) * 2) var(--swui-metrics-indent)\n calc(var(--swui-metrics-indent) * 10);\n }\n";
312
+ var css_248z$5 = ".Collapsible-module_collapsible__2Nn8K {\n --swui-collapsible-animation-time: var(--swui-animation-time-fast);\n\n --swui-collapsible-expanded-line-background-color: var(\n --swui-primary-action-color\n );\n\n /*\n * Header\n */\n --swui-collapsible-header-text-color: var(--lhds-color-ui-900);\n --swui-collapsible-header-background-color: var(--swui-white);\n --swui-collapsible-header-background-color-hover: var(--lhds-color-blue-100);\n --swui-collapsible-header-background-color-active: var(--lhds-color-blue-100);\n --swui-collapsible-header-border-color: var(--lhds-color-ui-300);\n --swui-collapsible-header-border-color-focus: var(\n --swui-primary-action-color\n );\n --swui-collapsible-header-focus-shadow: var(--swui-field-focus-shadow);\n --swui-collapsible-header-content-margin: calc(\n var(--swui-metrics-indent) * 2\n );\n --swui-collapsible-header-font-weight: var(--swui-font-weight-text-bold);\n --swui-collapsible-header-indicator-color: var(--swui-primary-action-color);\n --swui-collapsible-header-indicator-color-collapsed: var(--lhds-color-ui-500);\n --swui-collapsible-header-indicator-color-hover: var(\n --swui-primary-action-color\n );\n --swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0;\n\n /*\n * Content\n */\n --swui-collapsible-content-background-color: var(--lhds-color-ui-100);\n --swui-collapsible-content-border-color: var(--lhds-color-ui-300);\n --swui-collapsible-content-padding: var(--swui-metrics-indent)\n calc(var(--swui-metrics-indent) * 2);\n\n --swui-collapsible-groupheading-font-size: var(--swui-font-size-smaller);\n --swui-collapsible-groupheading-text-color: var(--lhds-color-ui-600);\n\n --swui-collapsible-min-height: 40px;\n}\n\n /* Header */\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_header__IZx0y {\n background-color: var(--swui-collapsible-header-background-color);\n width: 100%;\n text-align: left;\n\n min-height: var(--swui-collapsible-min-height);\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n align-items: center;\n border-bottom: 1px solid var(--swui-collapsible-header-border-color);\n padding: var(--swui-collapsible-header-padding);\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_header__IZx0y .Collapsible-module_indicator__3YBhK {\n transition: all var(--swui-collapsible-animation-time) ease-in-out;\n margin-left: var(--swui-collapsible-header-content-margin);\n color: var(--swui-collapsible-header-indicator-color);\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_header__IZx0y:not(:disabled):hover:not(:active) {\n background-color: var(--swui-collapsible-header-background-color-hover);\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_header__IZx0y:not(:disabled):hover:not(:active) .Collapsible-module_indicator__3YBhK {\n color: var(--swui-collapsible-header-indicator-color-hover);\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_header__IZx0y:focus-visible {\n outline: 1px solid var(--swui-collapsible-header-border-color-focus);\n outline-offset: -1px;\n box-shadow: var(--swui-collapsible-header-focus-shadow);\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_header__IZx0y:active {\n background: var(--swui-collapsible-header-background-color-active);\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_header__IZx0y:disabled {\n cursor: not-allowed;\n }\n\n .Collapsible-module_collapsible__2Nn8K {\n\n position: relative;\n}\n\n .Collapsible-module_collapsible__2Nn8K::before {\n content: \"\";\n position: absolute;\n width: 2px;\n background: var(--swui-collapsible-expanded-line-background-color);\n top: 0;\n bottom: 0;\n left: 0;\n z-index: 1;\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_headerText__2qjzx {\n font-weight: var(--swui-collapsible-header-font-weight);\n }\n\n .Collapsible-module_collapsible__2Nn8K[aria-expanded=\"false\"] {\n --swui-collapsible-expanded-line-background-color: transparent;\n }\n\n .Collapsible-module_collapsible__2Nn8K[aria-expanded=\"false\"] .Collapsible-module_indicator__3YBhK {\n color: var(--swui-collapsible-header-indicator-color-collapsed);\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_label__Hpp-R {\n margin-right: auto;\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_label__Hpp-R span {\n --current-line-height: 1;\n font-weight: var(--swui-collapsible-header-font-weight);\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_contentLeft__2gPpu,\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_contentRight__bTr59 {\n display: flex;\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_contentLeft__2gPpu button, .Collapsible-module_collapsible__2Nn8K .Collapsible-module_contentRight__bTr59 button {\n cursor: pointer;\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_contentLeft__2gPpu {\n margin-right: var(--swui-collapsible-header-content-margin);\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_contentRight__bTr59 {\n margin-left: auto;\n }\n\n /* Content */\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_content__1e1C8 {\n display: flex;\n align-items: center;\n justify-content: stretch;\n background: var(--swui-collapsible-content-background-color);\n padding: var(--swui-collapsible-content-padding);\n min-height: var(--swui-collapsible-min-height);\n box-sizing: border-box;\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_content__1e1C8:last-child {\n border-bottom: 1px solid var(--swui-collapsible-content-border-color);\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_content__1e1C8.Collapsible-module_groupHeading__3BK-5 {\n border: none;\n font-size: var(--swui-collapsible-groupheading-font-size);\n font-family: var(--swui-font-primary);\n color: var(--swui-collapsible-groupheading-text-color);\n text-transform: uppercase;\n font-weight: var(--swui-font-weight-text-bold);\n letter-spacing: 1px;\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_content__1e1C8 [data-hidden=\"true\"] {\n display: none;\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_content__1e1C8:hover [data-hidden=\"true\"] {\n display: inherit;\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_content__1e1C8:hover [data-hover=\"true\"] {\n color: var(--swui-collapsible-header-indicator-color-hover);\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_contentEnter__GWHoW {\n opacity: 0;\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_contentEnterActive__1YdNi {\n opacity: 1;\n transition: opacity var(--swui-collapsible-animation-time) ease-in-out;\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_contentExitDone__35Iht {\n display: none;\n }\n\n /** Clickable content */\n\n .Collapsible-module_collapsible__2Nn8K button.Collapsible-module_content__1e1C8 {\n font-family: var(--swui-font-primary);\n font-size: inherit;\n width: 100%;\n text-align: left;\n }\n\n .Collapsible-module_collapsible__2Nn8K button.Collapsible-module_content__1e1C8:focus-visible {\n outline: 1px solid var(--swui-collapsible-header-border-color-focus);\n outline-offset: -1px;\n box-shadow: var(--swui-collapsible-header-focus-shadow);\n }\n\n .Collapsible-module_collapsible__2Nn8K button.Collapsible-module_content__1e1C8:not(:disabled):hover {\n background-color: var(--swui-collapsible-header-background-color-hover);\n }\n\n .Collapsible-module_collapsible__2Nn8K button.Collapsible-module_content__1e1C8:disabled {\n cursor: not-allowed;\n }\n\n .Collapsible-module_collapsible__2Nn8K button.Collapsible-module_content__1e1C8:focus-within [data-hidden=\"true\"] {\n display: inherit;\n }\n\n /* Remove header background color if not at the highest level */\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_collapsible__2Nn8K {\n --swui-collapsible-header-background-color: var(\n --swui-collapsible-content-background-color\n );\n --swui-collapsible-header-font-weight: normal;\n }\n\n /* Increase padding with depth */\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_collapsible__2Nn8K {\n --swui-collapsible-content-padding: var(--swui-metrics-indent)\n calc(var(--swui-metrics-indent) * 2) var(--swui-metrics-indent)\n calc(var(--swui-metrics-indent) * 4);\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_collapsible__2Nn8K .Collapsible-module_collapsible__2Nn8K {\n --swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0\n calc(var(--swui-metrics-indent) * 4);\n --swui-collapsible-content-padding: var(--swui-metrics-indent)\n calc(var(--swui-metrics-indent) * 2) var(--swui-metrics-indent)\n calc(var(--swui-metrics-indent) * 6);\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_collapsible__2Nn8K .Collapsible-module_collapsible__2Nn8K .Collapsible-module_collapsible__2Nn8K {\n --swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0\n calc(var(--swui-metrics-indent) * 6);\n --swui-collapsible-content-padding: var(--swui-metrics-indent)\n calc(var(--swui-metrics-indent) * 2) var(--swui-metrics-indent)\n calc(var(--swui-metrics-indent) * 8);\n }\n\n .Collapsible-module_collapsible__2Nn8K .Collapsible-module_collapsible__2Nn8K .Collapsible-module_collapsible__2Nn8K .Collapsible-module_collapsible__2Nn8K .Collapsible-module_collapsible__2Nn8K {\n --swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0\n calc(var(--swui-metrics-indent) * 8);\n --swui-collapsible-content-padding: var(--swui-metrics-indent)\n calc(var(--swui-metrics-indent) * 2) var(--swui-metrics-indent)\n calc(var(--swui-metrics-indent) * 10);\n }\n";
307
313
  var styles$4 = {"collapsible":"Collapsible-module_collapsible__2Nn8K","header":"Collapsible-module_header__IZx0y","indicator":"Collapsible-module_indicator__3YBhK","headerText":"Collapsible-module_headerText__2qjzx","label":"Collapsible-module_label__Hpp-R","contentLeft":"Collapsible-module_contentLeft__2gPpu","contentRight":"Collapsible-module_contentRight__bTr59","content":"Collapsible-module_content__1e1C8","groupHeading":"Collapsible-module_groupHeading__3BK-5","contentEnter":"Collapsible-module_contentEnter__GWHoW","contentEnterActive":"Collapsible-module_contentEnterActive__1YdNi","contentExitDone":"Collapsible-module_contentExitDone__35Iht"};
308
314
  styleInject(css_248z$5);
309
315
 
@@ -400,7 +406,6 @@ var LoadingScreen = function (props) {
400
406
  React__namespace.createElement(LoadingPanel, __assign({}, props))));
401
407
  };
402
408
 
403
- var PageHeaderRow = function (props) { return (React__namespace.createElement(core.Row, __assign({ indent: 3, spacing: true }, props))); };
404
409
  var PageHeader = function (_a) {
405
410
  var renderBreadCrumbs = _a.renderBreadCrumbs, renderPageHeading = _a.renderPageHeading, renderTabs = _a.renderTabs, children = _a.children;
406
411
  return (React__namespace.createElement(core.Box, { shadow: "box" },
@@ -409,73 +414,102 @@ var PageHeader = function (_a) {
409
414
  renderPageHeading(), renderTabs === null || renderTabs === void 0 ? void 0 :
410
415
  renderTabs()),
411
416
  children && (React__namespace.createElement(React__namespace.Fragment, null,
417
+ !renderTabs && React__namespace.createElement(core.Space, null),
412
418
  React__namespace.createElement(core.SeparatorLine, null),
413
419
  children))));
414
420
  };
415
421
 
422
+ var PageHeaderRow = function (props) { return (React__namespace.createElement(core.Row, __assign({ indent: 3, spacing: true }, props))); };
423
+
416
424
  var variantToSpacing = {
417
425
  compact: 1,
418
- default: 1.5,
426
+ standard: 1.5,
419
427
  relaxed: 2,
420
428
  };
421
429
  var PageHeading = function (_a) {
422
- var heading = _a.heading, _b = _a.variant, variant = _b === void 0 ? "default" : _b, contentLeft = _a.contentLeft, contentRight = _a.contentRight;
430
+ var heading = _a.heading, _b = _a.variant, variant = _b === void 0 ? "standard" : _b, contentLeft = _a.contentLeft, contentRight = _a.contentRight;
423
431
  return (React__namespace.createElement(core.Row, { spacing: variantToSpacing[variant], alignItems: "center", gap: 2 },
424
432
  React__namespace.createElement(core.Heading, { variant: "h3" }, heading),
425
433
  React__namespace.createElement(core.Row, { alignItems: "center" }, contentLeft),
426
434
  React__namespace.createElement(core.Row, { style: { marginLeft: "auto" }, alignItems: "center" }, contentRight)));
427
435
  };
428
436
 
429
- var css_248z$4 = ".SidebarMenu-module_sidebarMenu__3IOkS {\n /* Theme vars */\n --swui-sidebar-menu-separator-color: var(--lhds-color-blue-700);\n --swui-sidebar-menu-text-color: var(--swui-white);\n --swui-sidebar-menu-icon-color: var(--swui-white);\n --swui-sidebar-menu-background-color: var(--lhds-color-blue-900);\n --swui-sidebar-menu-background-color-hover: var(--lhds-color-blue-800);\n --swui-sidebar-menu-background-color-active: var(--lhds-color-blue-800);\n --swui-sidebar-menu-item-selected: var(--lhds-color-blue-500);\n --swui-sidebar-menu-content-padding: var(--swui-metrics-indent)\n var(--swui-metrics-indent) var(--swui-metrics-indent) 0;\n\n /* Current */\n --current-separator-color: var(--swui-sidebar-menu-separator-color);\n --current-text-color: var(--swui-sidebar-menu-text-color);\n --current-icon-color: var(--swui-sidebar-menu-icon-color);\n --current-background-color: var(--swui-sidebar-menu-background-color);\n --current-background-color-hover: var(\n --swui-sidebar-menu-background-color-hover\n );\n --current-background-color-active: var(\n --swui-sidebar-menu-background-color-active\n );\n --current-item-selected: var(--swui-sidebar-menu-item-selected);\n --current-content-padding: var(--swui-sidebar-menu-content-padding);\n\n background-color: var(--current-background-color);\n\n height: 100vh;\n}\n\n .SidebarMenu-module_sidebarMenu__3IOkS button {\n --swui-button-text-color: var(--swui-white);\n --swui-button-background-color-hover: var(--lhds-color-blue-800);\n }\n";
437
+ var css_248z$4 = ".SidebarMenu-module_sidebarMenu__3IOkS {\n /* Theme vars */\n --swui-sidebar-menu-separator-color: var(--lhds-color-blue-700);\n --swui-sidebar-menu-text-color: var(--swui-white);\n --swui-sidebar-menu-icon-color: var(--swui-white);\n --swui-sidebar-menu-background-color: var(--lhds-color-blue-500);\n --swui-sidebar-menu-background-color-hover: var(--lhds-color-blue-700);\n --swui-sidebar-menu-background-color-focus: var(--lhds-color-blue-700);\n --swui-sidebar-menu-background-color-active: var(--lhds-color-blue-600);\n --swui-sidebar-menu-item-selected: var(--lhds-color-blue-800);\n --swui-sidebar-menu-content-padding: var(--swui-metrics-indent)\n var(--swui-metrics-indent) var(--swui-metrics-indent) 0;\n\n /* State vars */\n --current-separator-color: var(--swui-sidebar-menu-separator-color);\n --current-text-color: var(--swui-sidebar-menu-text-color);\n --current-icon-color: var(--swui-sidebar-menu-icon-color);\n --current-background-color: var(--swui-sidebar-menu-background-color);\n --current-background-color-hover: var(\n --swui-sidebar-menu-background-color-hover\n );\n --current-background-color-focus: var(\n --swui-sidebar-menu-background-color-focus\n );\n --current-background-color-active: var(\n --swui-sidebar-menu-background-color-active\n );\n --current-item-selected: var(--swui-sidebar-menu-item-selected);\n --current-content-padding: var(--swui-sidebar-menu-content-padding);\n\n /* Styling */\n\n background-color: var(--current-background-color);\n height: 100vh;\n}\n\n .SidebarMenu-module_sidebarMenu__3IOkS[data-collapsed] {\n width: var(--swui-sidebar-menu-item-height);\n }\n\n .SidebarMenu-module_sidebarMenu__3IOkS button {\n --swui-button-text-color: var(--swui-white);\n --swui-button-background-color-hover: var(\n --swui-sidebar-menu-background-color-hover\n );\n }\n";
430
438
  var styles$3 = {"sidebarMenu":"SidebarMenu-module_sidebarMenu__3IOkS"};
431
439
  styleInject(css_248z$4);
432
440
 
433
- var css_248z$3 = ".SidebarMenuCloseButton-module_sidebarMenuCloseButton__1h_pt {\n /* Theme vars */\n --swui-sidebar-menu-close-button-text-color: var(--lhds-color-ui-50);\n --swui-sidebar-menu-close-button-background-color: var(--lhds-color-blue-500);\n --swui-sidebar-menu-close-button-background-color-hover: var(\n --lhds-color-blue-600\n );\n --swui-sidebar-menu-close-button-background-color-focus: var(\n --lhds-color-blue-600\n );\n --swui-sidebar-menu-close-button-background-color-active: var(\n --lhds-color-blue-500\n );\n --swui-sidebar-menu-close-button-background-dark-color: var(\n --lhds-color-blue-900\n );\n --swui-sidebar-menu-close-button-background-dark-color-hover: var(\n --lhds-color-blue-700\n );\n --swui-sidebar-menu-close-button-background-dark-color-focus: var(\n --lhds-color-blue-700\n );\n --swui-sidebar-menu-close-button-background-dark-color-active: var(\n --lhds-color-blue-600\n );\n\n /* Current */\n --current-background-color: var(\n --swui-sidebar-menu-close-button-background-color\n );\n\n /* Styling */\n\n display: -webkit-flex;\n\n display: flex;\n -webkit-align-items: center;\n align-items: center;\n -webkit-justify-content: center;\n justify-content: center;\n line-height: 10px;\n background-color: var(--current-background-color);\n color: var(--swui-sidebar-menu-close-button-text-color);\n cursor: pointer;\n height: 64px;\n width: 64px;\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n border-radius: 0;\n outline: none;\n border: none;\n}\n\n .SidebarMenuCloseButton-module_sidebarMenuCloseButton__1h_pt.SidebarMenuCloseButton-module_light__2cy3r {\n --current-background-color: var(\n --swui-sidebar-menu-close-button-background-color\n );\n }\n\n .SidebarMenuCloseButton-module_sidebarMenuCloseButton__1h_pt.SidebarMenuCloseButton-module_light__2cy3r:hover {\n --current-background-color: var(\n --swui-sidebar-menu-close-button-background-color-hover\n );\n }\n\n .SidebarMenuCloseButton-module_sidebarMenuCloseButton__1h_pt.SidebarMenuCloseButton-module_light__2cy3r:focus {\n --current-background-color: var(\n --swui-sidebar-menu-close-button-background-color-focus\n );\n }\n\n .SidebarMenuCloseButton-module_sidebarMenuCloseButton__1h_pt.SidebarMenuCloseButton-module_light__2cy3r:active {\n --current-background-color: var(\n --swui-sidebar-menu-close-button-background-color-active\n );\n }\n\n .SidebarMenuCloseButton-module_sidebarMenuCloseButton__1h_pt.SidebarMenuCloseButton-module_dark__2Illi {\n --current-background-color: var(\n --swui-sidebar-menu-close-button-background-dark-color\n );\n }\n\n .SidebarMenuCloseButton-module_sidebarMenuCloseButton__1h_pt.SidebarMenuCloseButton-module_dark__2Illi:hover {\n --current-background-color: var(\n --swui-sidebar-menu-close-button-background-dark-color-hover\n );\n }\n\n .SidebarMenuCloseButton-module_sidebarMenuCloseButton__1h_pt.SidebarMenuCloseButton-module_dark__2Illi:focus {\n --current-background-color: var(\n --swui-sidebar-menu-close-button-background-dark-color-focus\n );\n }\n\n .SidebarMenuCloseButton-module_sidebarMenuCloseButton__1h_pt.SidebarMenuCloseButton-module_dark__2Illi:active {\n --current-background-color: var(\n --swui-sidebar-menu-close-button-background-dark-color-active\n );\n }\n\n .SidebarMenuCloseButton-module_sidebarMenuCloseButton__1h_pt .SidebarMenuCloseButton-module_icon__1lPJE {\n color: var(--swui-sidebar-menu-close-button-text-color);\n }\n";
434
- var styles$2 = {"sidebarMenuCloseButton":"SidebarMenuCloseButton-module_sidebarMenuCloseButton__1h_pt","light":"SidebarMenuCloseButton-module_light__2cy3r","dark":"SidebarMenuCloseButton-module_dark__2Illi","icon":"SidebarMenuCloseButton-module_icon__1lPJE"};
441
+ var css_248z$3 = ".SidebarMenuCloseButton-module_sidebarMenuCloseButton__1h_pt {\n /* Theme vars */\n --swui-sidebar-menu-close-button-text-color: var(--lhds-color-ui-50);\n --swui-sidebar-menu-close-button-background-color: var(--lhds-color-blue-500);\n --swui-sidebar-menu-close-button-background-color-hover: var(\n --lhds-color-blue-600\n );\n --swui-sidebar-menu-close-button-background-color-focus: var(\n --lhds-color-blue-600\n );\n --swui-sidebar-menu-close-button-background-color-active: var(\n --lhds-color-blue-500\n );\n\n /* Current */\n --current-background-color: var(\n --swui-sidebar-menu-close-button-background-color\n );\n\n /* Styling */\n\n display: flex;\n align-items: center;\n justify-content: flex-start;\n line-height: 10px;\n background-color: var(--current-background-color);\n color: var(--swui-sidebar-menu-close-button-text-color);\n cursor: pointer;\n height: var(--swui-sidebar-menu-item-height);\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n border-radius: 0;\n outline: none;\n border: none;\n}\n\n .SidebarMenuCloseButton-module_sidebarMenuCloseButton__1h_pt:hover {\n --current-background-color: var(\n --swui-sidebar-menu-close-button-background-color-hover\n );\n }\n\n .SidebarMenuCloseButton-module_sidebarMenuCloseButton__1h_pt:focus {\n --current-background-color: var(\n --swui-sidebar-menu-close-button-background-color-focus\n );\n }\n\n .SidebarMenuCloseButton-module_sidebarMenuCloseButton__1h_pt:active {\n --current-background-color: var(\n --swui-sidebar-menu-close-button-background-color-active\n );\n }\n\n .SidebarMenuCloseButton-module_sidebarMenuCloseButton__1h_pt .SidebarMenuCloseButton-module_iconWrapper__2nLkY {\n justify-content: center;\n align-items: center;\n width: var(--swui-sidebar-menu-item-height);\n height: var(--swui-sidebar-menu-item-height);\n }\n\n .SidebarMenuCloseButton-module_sidebarMenuCloseButton__1h_pt .SidebarMenuCloseButton-module_icon__1lPJE {\n color: var(--swui-sidebar-menu-close-button-text-color);\n }\n";
442
+ var styles$2 = {"sidebarMenuCloseButton":"SidebarMenuCloseButton-module_sidebarMenuCloseButton__1h_pt","iconWrapper":"SidebarMenuCloseButton-module_iconWrapper__2nLkY","icon":"SidebarMenuCloseButton-module_icon__1lPJE"};
435
443
  styleInject(css_248z$3);
436
444
 
437
445
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
438
446
 
439
- var _ref = /*#__PURE__*/React__namespace.createElement("g", {
440
- fill: "#FFF",
441
- fillRule: "evenodd"
442
- }, /*#__PURE__*/React__namespace.createElement("path", {
443
- d: "M18.364 19.778L4.222 5.636c.085.085.105-.105 0 0l1.414-1.414c-.105.105.085.085 0 0l14.142 14.142c-.085-.085-.105.105 0 0l-1.414 1.414c.105-.105-.085-.085 0 0z"
444
- }), /*#__PURE__*/React__namespace.createElement("path", {
445
- d: "M19.778 5.636L5.636 19.778c.085-.085-.105-.105 0 0l-1.414-1.414c.105.105.085-.085 0 0L18.364 4.222c-.085.085.105.105 0 0l1.414 1.414c-.105-.105-.085.085 0 0z"
446
- }));
447
+ var _ref = /*#__PURE__*/React__namespace.createElement("path", {
448
+ d: "M.929.929a1 1 0 011.414 0L8 6.585 13.657.929a1 1 0 011.414 1.414L9.415 8l5.656 5.657a1 1 0 01.083 1.32l-.083.094a1 1 0 01-1.414 0L8 9.415l-5.657 5.656A1 1 0 11.93 13.657L6.585 8 .929 2.343a1 1 0 01-.083-1.32z",
449
+ fill: "#FFF"
450
+ });
447
451
 
448
452
  function SvgClose(props) {
449
453
  return /*#__PURE__*/React__namespace.createElement("svg", _extends({
450
- xmlns: "http://www.w3.org/2000/svg",
451
- width: 24,
452
- height: 24
454
+ width: 16,
455
+ height: 16,
456
+ xmlns: "http://www.w3.org/2000/svg"
453
457
  }, props), _ref);
454
458
  }
455
459
 
456
460
  var SidebarMenuCloseButton = function (_a) {
457
- var className = _a.className, onClick = _a.onClick, _b = _a.variant, variant = _b === void 0 ? "light" : _b;
458
- return (React__namespace.createElement("button", { onClick: onClick, className: cx__default["default"](styles$2.sidebarMenuCloseButton, className, styles$2[variant]) },
459
- React__namespace.createElement(SvgClose, { className: styles$2.icon })));
461
+ var className = _a.className, onClick = _a.onClick;
462
+ return (React__namespace.createElement("button", { onClick: onClick, className: cx__default["default"](styles$2.sidebarMenuCloseButton, className) },
463
+ React__namespace.createElement(core.Box, { className: styles$2.iconWrapper },
464
+ React__namespace.createElement(SvgClose, { className: styles$2.icon }))));
460
465
  };
461
466
 
462
- // TODO Add variant
467
+ var SidebarMenuSeparator = function (separatorLineProps) { return (React__namespace.createElement(core.SeparatorLine, __assign({ color: theme.cssColor("--lhds-color-blue-600") }, separatorLineProps))); };
468
+
463
469
  var SidebarMenu = function (_a) {
464
- var className = _a.className, children = _a.children, onCloseClick = _a.onCloseClick, _b = _a.hideCloseButton, hideCloseButton = _b === void 0 ? false : _b, boxProps = __rest(_a, ["className", "children", "onCloseClick", "hideCloseButton"]);
465
- return (React__namespace.createElement(core.Box, __assign({ className: cx__default["default"](styles$3.sidebarMenu, className) }, boxProps),
470
+ var _b;
471
+ var className = _a.className, children = _a.children, onCloseClick = _a.onCloseClick, _c = _a.collapsed, collapsed = _c === void 0 ? false : _c, _d = _a.hideCloseButton, hideCloseButton = _d === void 0 ? false : _d, _e = _a.variant, variant = _e === void 0 ? "standard" : _e, boxProps = __rest(_a, ["className", "children", "onCloseClick", "collapsed", "hideCloseButton", "variant"]);
472
+ var height = getNavbarHeight(variant);
473
+ return (React__namespace.createElement(core.Box, __assign({ className: cx__default["default"](styles$3.sidebarMenu, collapsed ? styles$3.collapsed : null, className), style: (_b = {},
474
+ _b["--swui-sidebar-menu-item-height"] = height,
475
+ _b["--swui-nav-bar-height"] = height,
476
+ _b), "data-collapsed": collapsed || undefined }, boxProps),
466
477
  !hideCloseButton && (React__namespace.createElement(React__namespace.Fragment, null,
467
- React__namespace.createElement(core.Box, { alignItems: "flex-start", justifyContent: "center" },
468
- React__namespace.createElement(SidebarMenuCloseButton, { onClick: onCloseClick, variant: "dark" })),
469
- React__namespace.createElement(core.SeparatorLine, { color: theme.cssColor("--lhds-color-blue-700") }),
478
+ React__namespace.createElement(SidebarMenuCloseButton, { onClick: onCloseClick }),
479
+ React__namespace.createElement(SidebarMenuSeparator, null),
470
480
  React__namespace.createElement(core.Space, null))),
471
- React__namespace.createElement(core.Box, { className: styles$3.sidebarMenuContent, background: "var(--swui-sidebar-menu-background-color)" },
472
- React__namespace.createElement(core.Column, { flexGrow: 1 }, children))));
481
+ React__namespace.createElement(core.Box, { className: styles$3.sidebarMenuContent, height: "100%", background: "var(--current-background-color)" },
482
+ React__namespace.createElement(core.Column, { flex: 1 }, children))));
473
483
  };
474
484
 
475
- var css_248z$2 = ".SidebarMenuHeading-module_sidebarMenuHeading__2Z8R_ {\n --swui-sidebar-menu-heading-text-color: var(--lhds-color-ui-300);\n\n /* Styling */\n\n text-transform: uppercase;\n}\n";
476
- var styles$1 = {"sidebarMenuHeading":"SidebarMenuHeading-module_sidebarMenuHeading__2Z8R_"};
485
+ var SidebarRailMenu = function (_a) {
486
+ var variant = _a.variant, children = _a.children;
487
+ return (React__namespace.createElement(SidebarMenu, { collapsed: true, position: "fixed", left: 0, top: 0, hideCloseButton: true, variant: variant }, children));
488
+ };
489
+
490
+ var css_248z$2 = ".SidebarMenuContent-module_label__3NyDU {\n font-size: var(--current-text-size, var(--swui-font-size-medium));\n line-height: var(--current-line-height, var(--swui-line-height-medium));\n font-weight: var(--swui-button-font-weight);\n font-family: var(--swui-font-buttons);\n color: var(--current-text-color);\n}\n\n.SidebarMenuContent-module_icon__1kQOa {\n color: var(--current-text-color);\n font-size: 16px;\n}\n\n.SidebarMenuContent-module_spinner__K0lsy {\n color: var(--current-text-color);\n}\n\n.SidebarMenuContent-module_leftWrapper__2sA9a.SidebarMenuContent-module_leftWrapper__2sA9a.SidebarMenuContent-module_leftWrapper__2sA9a.SidebarMenuContent-module_leftWrapper__2sA9a {\n width: var(--swui-sidebar-menu-item-height);\n margin-right: 0;\n}\n\n.SidebarMenuContent-module_button__3x5IE {\n border: 0;\n padding: 0;\n background: var(--current-background-color);\n}\n\n[data-collapsed] [aria-expanded=\"true\"] .SidebarMenuContent-module_button__3x5IE,\n .SidebarMenuContent-module_button__3x5IE:hover {\n background: var(--current-background-color-hover);\n }\n\n.SidebarMenuContent-module_button__3x5IE:focus {\n outline: none;\n }\n\n.SidebarMenuContent-module_button__3x5IE:focus-visible {\n background: var(--current-background-color-active);\n }\n\n.SidebarMenuContent-module_button__3x5IE:active {\n background: var(--current-background-color-active);\n }\n\n.SidebarMenuContent-module_button__3x5IE.SidebarMenuContent-module_selected__aeI_K {\n background: var(--current-item-selected);\n }\n";
491
+ var contentStyles = {"label":"SidebarMenuContent-module_label__3NyDU","icon":"SidebarMenuContent-module_icon__1kQOa","spinner":"SidebarMenuContent-module_spinner__K0lsy","leftWrapper":"SidebarMenuContent-module_leftWrapper__2sA9a","button":"SidebarMenuContent-module_button__3x5IE","selected":"SidebarMenuContent-module_selected__aeI_K"};
477
492
  styleInject(css_248z$2);
478
493
 
494
+ var defaultRenderLink = function (props) {
495
+ return React__namespace.createElement("button", __assign({}, props));
496
+ };
497
+ var SidebarMenuLink = function (_a) {
498
+ var className = _a.className; _a.children; var selected = _a.selected, indent = _a.indent, label = _a.label, loading = _a.loading, left = _a.left, leftIcon = _a.leftIcon, right = _a.right, rightIcon = _a.rightIcon, success = _a.success, width = _a.width, _b = _a.renderLink, renderLink = _b === void 0 ? defaultRenderLink : _b, style = _a.style, buttonProps = __rest(_a, ["className", "children", "selected", "indent", "label", "loading", "left", "leftIcon", "right", "rightIcon", "success", "width", "renderLink", "style"]);
499
+ var hasContentLeft = left || leftIcon || loading || success;
500
+ var innerClassName = cx__default["default"](contentStyles.button, selected ? contentStyles.selected : undefined, className);
501
+ var innerStyle = __assign(__assign({}, style), { width: width, height: "var(--swui-sidebar-menu-item-height)" });
502
+ var innerChildren = (React__namespace.createElement(core.Row, { spacing: 1, flex: 1, alignItems: "center" },
503
+ !hasContentLeft && React__namespace.createElement(core.Indent, null),
504
+ indent && React__namespace.createElement(core.Indent, { num: 3.5 }),
505
+ React__namespace.createElement(elements.ButtonContent, { label: label, loading: loading, left: left, leftIcon: leftIcon, right: right, rightIcon: rightIcon, success: success, labelClassName: contentStyles.label, spinnerClassName: contentStyles.spinner, iconClassName: cx__default["default"](contentStyles.icon), leftWrapperClassName: contentStyles.leftWrapper })));
506
+ return (React__namespace.createElement(React__namespace.Fragment, null, renderLink(__assign(__assign({}, buttonProps), { activeClassName: contentStyles.selected, className: innerClassName, children: innerChildren, style: innerStyle }))));
507
+ };
508
+
509
+ var css_248z$1 = ".SidebarMenuHeading-module_sidebarMenuHeading__2Z8R_ {\n --swui-sidebar-menu-heading-text-color: var(--lhds-color-ui-300);\n\n /* Styling */\n\n text-transform: uppercase;\n}\n";
510
+ var styles$1 = {"sidebarMenuHeading":"SidebarMenuHeading-module_sidebarMenuHeading__2Z8R_"};
511
+ styleInject(css_248z$1);
512
+
479
513
  var SidebarMenuHeading = function (_a) {
480
514
  _a.className; var label = _a.label, contentLeft = _a.contentLeft, contentRight = _a.contentRight, textProps = __rest(_a, ["className", "label", "contentLeft", "contentRight"]);
481
515
  return (React__namespace.createElement(core.Box, { spacing: 2, indent: 2 },
@@ -483,37 +517,60 @@ var SidebarMenuHeading = function (_a) {
483
517
  React__namespace.createElement(core.Text, __assign({ variant: "overline", color: "var(--swui-sidebar-menu-heading-text-color)" }, textProps), label))));
484
518
  };
485
519
 
486
- var css_248z$1 = ".SidebarMenuContent-module_label__3NyDU {\n font-size: var(--current-text-size, var(--swui-button-text-size));\n line-height: var(--current-line-height, var(--swui-button-line-height));\n font-weight: var(--swui-button-font-weight);\n font-family: var(--swui-font-buttons);\n color: var(--swui-sidebar-menu-text-color);\n}\n\n.SidebarMenuContent-module_icon__1kQOa {\n color: var(--swui-sidebar-menu-text-color);\n}\n\n.SidebarMenuContent-module_spinner__K0lsy {\n color: var(--swui-sidebar-menu-text-color);\n}\n\n.SidebarMenuContent-module_leftWrapper__2sA9a.SidebarMenuContent-module_leftWrapper__2sA9a.SidebarMenuContent-module_leftWrapper__2sA9a.SidebarMenuContent-module_leftWrapper__2sA9a {\n width: 56px;\n margin-right: 0;\n}\n";
487
- var contentStyles = {"label":"SidebarMenuContent-module_label__3NyDU","icon":"SidebarMenuContent-module_icon__1kQOa","spinner":"SidebarMenuContent-module_spinner__K0lsy","leftWrapper":"SidebarMenuContent-module_leftWrapper__2sA9a"};
488
- styleInject(css_248z$1);
489
-
490
- var selectedBorder = "4px solid var(--swui-sidebar-menu-item-selected)";
491
- var SidebarMenuLink = function (_a) {
492
- _a.className; _a.children; var selected = _a.selected, indent = _a.indent, label = _a.label, loading = _a.loading, left = _a.left, leftIcon = _a.leftIcon, right = _a.right, rightIcon = _a.rightIcon, success = _a.success, clickableProps = __rest(_a, ["className", "children", "selected", "indent", "label", "loading", "left", "leftIcon", "right", "rightIcon", "success"]);
493
- var hasContentLeft = left || leftIcon || loading || success;
494
- return (React__namespace.createElement(core.Clickable, __assign({ background: "var(--swui-sidebar-menu-background-color)", hoverBackground: "var(--swui-sidebar-menu-background-color-hover)", style: { borderRight: selected ? selectedBorder : undefined } }, clickableProps),
495
- React__namespace.createElement(core.Row, { spacing: 1, flex: 1, alignItems: "center", height: "40px" },
496
- !hasContentLeft && React__namespace.createElement(core.Indent, null),
497
- indent && React__namespace.createElement(core.Indent, { num: 3.5 }),
498
- React__namespace.createElement(elements.ButtonContent, { label: label, loading: loading, left: left, leftIcon: leftIcon, right: right, rightIcon: rightIcon, success: success, labelClassName: contentStyles.label, spinnerClassName: contentStyles.spinner, iconClassName: contentStyles.icon, leftWrapperClassName: contentStyles.leftWrapper }))));
499
- };
500
-
501
- var css_248z = ".SidebarMenuCollapsible-module_sidebarMenuCollapsible__3g5N3 {\n --swui-collapsible-header-text-color: var(--swui-sidebar-menu-text-color);\n --swui-collapsible-header-background-color: var(\n --swui-sidebar-menu-background-color\n );\n --swui-collapsible-header-background-color-hover: var(\n --swui-sidebar-menu-background-color-hover\n );\n --swui-collapsible-header-background-color-active: var(\n --swui-sidebar-menu-background-color-active\n );\n --swui-collapsible-header-indicator-color: var(\n --swui-sidebar-menu-text-color\n );\n --swui-collapsible-header-indicator-color-collapsed: var(\n --swui-sidebar-menu-text-color\n );\n --swui-collapsible-header-indicator-color-hover: var(\n --swui-sidebar-menu-text-color\n );\n --swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0 0;\n --swui-collapsible-header-content-margin: 0;\n --swui-collapsible-collapsible-link-padding: var(--swui-metrics-indent)\n var(--swui-metrics-indent) var(--swui-metrics-indent)\n calc(var(--swui-metrics-indent) * 4);\n --swui-collapsible-header-border-color: transparent;\n}\n";
520
+ var css_248z = ".SidebarMenuCollapsible-module_sidebarMenuCollapsible__3g5N3 {\n --swui-collapsible-header-text-color: var(--current-text-color);\n --swui-collapsible-header-background-color: var(--current-background-color);\n --swui-collapsible-header-background-color-hover: var(\n --current-background-color-hover\n );\n --swui-collapsible-header-background-color-active: var(\n --current-background-color-active\n );\n --swui-collapsible-header-indicator-color: var(--current-text-color);\n --swui-collapsible-header-indicator-color-collapsed: var(\n --current-text-color\n );\n --swui-collapsible-header-indicator-color-hover: var(--current-text-color);\n --swui-collapsible-header-padding: 0 calc(var(--swui-metrics-indent) * 2) 0 0;\n --swui-collapsible-header-content-margin: 0;\n --swui-collapsible-collapsible-link-padding: var(--swui-metrics-indent)\n var(--swui-metrics-indent) var(--swui-metrics-indent)\n calc(var(--swui-metrics-indent) * 4);\n --swui-collapsible-header-border-color: transparent;\n\n --swui-collapsible-min-height: var(--swui-sidebar-menu-item-height);\n}\n";
502
521
  var styles = {"sidebarMenuCollapsible":"SidebarMenuCollapsible-module_sidebarMenuCollapsible__3g5N3"};
503
522
  styleInject(css_248z);
504
523
 
505
524
  var SidebarMenuCollapsible = function (_a) {
506
525
  var children = _a.children, label = _a.label, leftIcon = _a.leftIcon;
507
526
  var _b = React.useState(false), collapsed = _b[0], setCollapsed = _b[1];
508
- return (React__namespace.createElement(core.Box, { background: "var(--swui-sidebar-menu-background-color)" },
509
- React__namespace.createElement(Collapsible, { className: styles.sidebarMenuCollapsible, label: label, collapsed: collapsed, onClick: function () { return setCollapsed(!collapsed); }, contentLeft: leftIcon ? (React__namespace.createElement(core.Box, { width: "56px", alignItems: "center", justifyContent: "center" },
510
- React__namespace.createElement(elements.Icon, { icon: leftIcon, size: 18, color: "var(--swui-sidebar-menu-text-color)", "data-hover": true }))) : (React__namespace.createElement(core.Indent, { num: 1 })) },
527
+ return (React__namespace.createElement(core.Box, { background: "var(--current-background-color)" },
528
+ React__namespace.createElement(Collapsible, { className: styles.sidebarMenuCollapsible, label: label, collapsed: collapsed, onClick: function () { return setCollapsed(!collapsed); }, contentLeft: leftIcon ? (React__namespace.createElement(core.Box, { width: "var(--swui-sidebar-menu-item-height)", alignItems: "center", justifyContent: "center" },
529
+ React__namespace.createElement(elements.Icon, { icon: leftIcon, size: 16, color: "var(--current-text-color)", "data-hover": true }))) : (React__namespace.createElement(core.Indent, { num: 1 })) },
511
530
  React__namespace.createElement(core.Column, { flex: 1 }, children))));
512
531
  };
513
532
 
514
- var SidebarMenuSeparator = function (separatorLineProps) {
515
- return (React__namespace.createElement(core.Spacing, null,
516
- React__namespace.createElement(core.SeparatorLine, __assign({ color: theme.cssColor("--lhds-color-blue-700") }, separatorLineProps))));
533
+ var renderItemsExpanded = function (items, indent) {
534
+ if (indent === void 0) { indent = false; }
535
+ return items.map(function (item) {
536
+ switch (item.type) {
537
+ case "heading":
538
+ return React__namespace.createElement(SidebarMenuHeading, { label: item.label });
539
+ case "separator":
540
+ return React__namespace.createElement(SidebarMenuSeparator, null);
541
+ case "link": {
542
+ item.type; var linkProps = __rest(item, ["type"]);
543
+ return React__namespace.createElement(SidebarMenuLink, __assign({ indent: indent }, linkProps));
544
+ }
545
+ case "grouped":
546
+ return (React__namespace.createElement(SidebarMenuCollapsible, { leftIcon: item.leftIcon, label: item.label }, renderItemsExpanded(item.items, true)));
547
+ default:
548
+ return core.exhaustSwitchCaseElseThrow(item);
549
+ }
550
+ });
551
+ };
552
+ var renderItemsInRail = function (items, _a) {
553
+ var popupMinWidth = _a.popupMinWidth;
554
+ return items.map(function (item) {
555
+ switch (item.type) {
556
+ case "heading":
557
+ return null;
558
+ case "separator":
559
+ return React__namespace.createElement(SidebarMenuSeparator, null);
560
+ case "link": {
561
+ item.type; var label = item.label, linkProps = __rest(item, ["type", "label"]);
562
+ return (React__namespace.createElement(SidebarMenuLink, __assign({ title: label, width: "var(--swui-sidebar-menu-item-height)" }, linkProps)));
563
+ }
564
+ case "grouped":
565
+ return (React__namespace.createElement("div", null,
566
+ React__namespace.createElement(tooltip.Popover, { appendTo: "parent", arrow: false, offset: [0, 0], placement: "right-start", trigger: "focusin mouseenter click", disablePadding: true, lazy: true, content: React__namespace.createElement(core.Box, { minWidth: popupMinWidth, background: "var(--lhds-color-blue-500)" },
567
+ React__namespace.createElement(SidebarMenuHeading, { label: item.label }),
568
+ renderItemsExpanded(item.items)) },
569
+ React__namespace.createElement(SidebarMenuLink, { title: item.label, width: "var(--swui-sidebar-menu-item-height)", leftIcon: item.leftIcon }))));
570
+ default:
571
+ return core.exhaustSwitchCaseElseThrow(item);
572
+ }
573
+ });
517
574
  };
518
575
 
519
576
  exports.ActionMenuFlatButton = ActionMenuFlatButton;
@@ -544,6 +601,10 @@ exports.SidebarMenuCollapsible = SidebarMenuCollapsible;
544
601
  exports.SidebarMenuHeading = SidebarMenuHeading;
545
602
  exports.SidebarMenuLink = SidebarMenuLink;
546
603
  exports.SidebarMenuSeparator = SidebarMenuSeparator;
604
+ exports.SidebarRailMenu = SidebarRailMenu;
547
605
  exports.defaultNotificationTheme = defaultNotificationTheme;
606
+ exports.defaultRenderLink = defaultRenderLink;
548
607
  exports.mapCSSTime = mapCSSTime;
608
+ exports.renderItemsExpanded = renderItemsExpanded;
609
+ exports.renderItemsInRail = renderItemsInRail;
549
610
  //# sourceMappingURL=index.js.map