@brightspace-ui/core 3.325.0 → 3.326.1

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.
@@ -393,12 +393,17 @@ export const DialogMixin = superclass => class extends superclass {
393
393
  ));
394
394
  }
395
395
 
396
- _handleDialogClose(e) {
396
+ _handleDialogCloseWithinNative(e) {
397
+ // prevent close event from bubbling and closing parent dialogs
398
+ e.stopPropagation();
399
+ }
400
+
401
+ _handleDialogCloseWithinNonNative(e) {
397
402
  this._nestedShowing = false;
398
403
  e.stopPropagation();
399
404
  }
400
405
 
401
- _handleDialogOpen(e) {
406
+ _handleDialogOpenWithinNonNative(e) {
402
407
  this._nestedShowing = true;
403
408
  e.stopPropagation();
404
409
  }
@@ -559,6 +564,7 @@ export const DialogMixin = superclass => class extends superclass {
559
564
  class="${classMap(dialogOuterClasses)}"
560
565
  @click="${this._handleClick}"
561
566
  @close="${this._handleClose}"
567
+ @d2l-dialog-close="${this._handleDialogCloseWithinNative}"
562
568
  @d2l-fullscreen-within="${this._handleFullscreenWithin}"
563
569
  id="${this._dialogId}"
564
570
  @keydown="${this._handleKeyDown}"
@@ -571,8 +577,8 @@ export const DialogMixin = superclass => class extends superclass {
571
577
  aria-labelledby="${info.labelId}"
572
578
  class="${classMap(dialogOuterClasses)}"
573
579
  @click="${this._handleClick}"
574
- @d2l-dialog-close="${this._handleDialogClose}"
575
- @d2l-dialog-open="${this._handleDialogOpen}"
580
+ @d2l-dialog-close="${this._handleDialogCloseWithinNonNative}"
581
+ @d2l-dialog-open="${this._handleDialogOpenWithinNonNative}"
576
582
  @d2l-fullscreen-within="${this._handleFullscreenWithin}"
577
583
  id="${this._dialogId}"
578
584
  role="${info.role}"
@@ -46,8 +46,8 @@ export const toolbarButtonStyles = css`
46
46
  border-radius: 4px;
47
47
  height: 100%;
48
48
  position: absolute;
49
- transform: scale(0.1, 0.1);
50
- transition: background-color 150ms linear, transform 150ms linear;
49
+ transform: scale(0.89, 0.89);
50
+ transition: background-color 100ms linear, transform 100ms linear;
51
51
  width: 100%;
52
52
  z-index: -1;
53
53
  }
@@ -0,0 +1,32 @@
1
+ import '../colors/colors.js';
2
+ import { css, html, LitElement } from 'lit';
3
+ import { ThemeMixin } from '../../mixins/theme/theme-mixin.js';
4
+
5
+ /**
6
+ * A toolbar item separator
7
+ */
8
+ class ToolbarSeparator extends ThemeMixin(LitElement) {
9
+
10
+ static styles = css`
11
+ :host {
12
+ display: inline-block;
13
+ }
14
+ :host([hidden]) {
15
+ display: none;
16
+ }
17
+ div {
18
+ border-inline-start: 1px solid var(--d2l-theme-border-color-standard);
19
+ min-height: 34px;
20
+ }
21
+ :host([theme="dark"]) div {
22
+ border-inline-start: 1px solid var(--d2l-color-tungsten);
23
+ }
24
+ `;
25
+
26
+ render() {
27
+ return html`<div></div>`;
28
+ }
29
+
30
+ }
31
+
32
+ customElements.define('d2l-toolbar-separator', ToolbarSeparator);
@@ -17526,6 +17526,17 @@
17526
17526
  }
17527
17527
  ]
17528
17528
  },
17529
+ {
17530
+ "name": "d2l-toolbar-separator",
17531
+ "path": "./components/toolbar/toolbar-separator.js",
17532
+ "description": "A toolbar item separator",
17533
+ "properties": [
17534
+ {
17535
+ "name": "styles",
17536
+ "default": "\"css`\\n\\t\\t:host {\\n\\t\\t\\tdisplay: inline-block;\\n\\t\\t}\\n\\t\\t:host([hidden]) {\\n\\t\\t\\tdisplay: none;\\n\\t\\t}\\n\\t\\tdiv {\\n\\t\\t\\tborder-inline-start: 1px solid var(--d2l-theme-border-color-standard);\\n\\t\\t\\tmin-height: 34px;\\n\\t\\t}\\n\\t\\t:host([theme=\\\"dark\\\"]) div {\\n\\t\\t\\tborder-inline-start: 1px solid var(--d2l-color-tungsten);\\n\\t\\t}\\n\\t`\""
17537
+ }
17538
+ ]
17539
+ },
17529
17540
  {
17530
17541
  "name": "d2l-toolbar",
17531
17542
  "path": "./components/toolbar/toolbar.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.325.0",
3
+ "version": "3.326.1",
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",