@brightspace-ui/core 3.283.0 → 3.284.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,6 +13,10 @@ const DRAWER_MIN_HEIGHT = 200; // TO DO: Confirm
13
13
  const MAIN_MIN_WIDTH = 600; // TO DO: Confirm
14
14
  const PANEL_MIN_WIDTH = 320;
15
15
 
16
+ export const SIDE_NAV_DEFAULT_WIDTH = 334;
17
+ export const supportingDefaultWidth = contentWidth => Math.floor(contentWidth / 3);
18
+ export const supportingMobileDefaultHeight = fullHeight => Math.floor(fullHeight / 2);
19
+
16
20
  class PanelStateController {
17
21
  constructor(host, panelConfigs) {
18
22
  this.#host = host;
@@ -428,13 +432,10 @@ class Page extends ProviderMixin(LocalizeCoreElement(LitElement)) {
428
432
  }
429
433
 
430
434
  #initializePanelSizes() {
431
- const defaultWidth = Math.floor(this._contentWidth / 3);
432
- const defaultHeight = Math.floor(window.innerHeight / 2);
433
-
434
435
  this._panelState.initialize({
435
- 'side-nav': defaultWidth,
436
- 'supporting': defaultWidth,
437
- 'supporting-mobile': defaultHeight
436
+ 'side-nav': SIDE_NAV_DEFAULT_WIDTH,
437
+ 'supporting': supportingDefaultWidth(this._contentWidth),
438
+ 'supporting-mobile': supportingMobileDefaultHeight(window.innerHeight)
438
439
  });
439
440
  }
440
441
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.283.0",
3
+ "version": "3.284.0",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/BrightspaceUI/core.git",