@momentum-design/components 0.81.5 → 0.81.6
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/browser/index.js +6 -11
- package/dist/browser/index.js.map +2 -2
- package/dist/components/dialog/dialog.component.js +5 -4
- package/dist/components/dialog/dialog.styles.js +2 -7
- package/dist/custom-elements.json +808 -808
- package/dist/react/index.d.ts +4 -4
- package/dist/react/index.js +4 -4
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -2417,10 +2417,11 @@
|
|
|
2417
2417
|
display: flex;
|
|
2418
2418
|
align-items: center;
|
|
2419
2419
|
gap: 0.25rem;
|
|
2420
|
+
width: 100%
|
|
2420
2421
|
}
|
|
2421
2422
|
|
|
2422
2423
|
:host::part(header-text) {
|
|
2423
|
-
width:
|
|
2424
|
+
width: calc(100% - 2rem);
|
|
2424
2425
|
color: var(--mdc-dialog-header-text-color);
|
|
2425
2426
|
}
|
|
2426
2427
|
|
|
@@ -2442,12 +2443,6 @@
|
|
|
2442
2443
|
justify-content: flex-end;
|
|
2443
2444
|
}
|
|
2444
2445
|
|
|
2445
|
-
::slotted([slot='footer-link']),
|
|
2446
|
-
::slotted([slot='footer-button-primary']),
|
|
2447
|
-
::slotted([slot='footer-button-secondary']){
|
|
2448
|
-
margin-bottom: 0.5rem;
|
|
2449
|
-
}
|
|
2450
|
-
|
|
2451
2446
|
:host::part(dialog-close-btn) {
|
|
2452
2447
|
position: absolute;
|
|
2453
2448
|
top: 1rem;
|
|
@@ -2473,7 +2468,7 @@
|
|
|
2473
2468
|
background: var(--mds-color-theme-common-overlays-secondary-normal);
|
|
2474
2469
|
z-index: ${this.zIndex-1};
|
|
2475
2470
|
}
|
|
2476
|
-
`,e.appendChild(s),(a=this.parentElement)==null||a.appendChild(e),this.backdropElement=e}async isOpenUpdated(e,s){var a,h,m,b,w,F;e!==s&&(s&&!e?(this.lastActiveElement=document.activeElement,this.enabledPreventScroll=!0,this.createBackdrop(),await this.updateComplete,(a=this.activateFocusTrap)==null||a.call(this),(h=this.setInitialFocus)==null||h.call(this),(m=this.triggerElement)==null||m.setAttribute("aria-expanded","true"),Gi.onShowDialog(this)):!s&&e&&((b=this.backdropElement)==null||b.remove(),this.backdropElement=null,(w=this.deactivateFocusTrap)==null||w.call(this),(F=this.triggerElement)==null||F.setAttribute("aria-expanded","false"),this.focusBackToTrigger(),Gi.onHideDialog(this)))}focusBackToTrigger(){this.triggerElement?this.triggerElement.focus():this.lastActiveElement&&this.lastActiveElement.focus&&this.lastActiveElement.focus()}render(){
|
|
2471
|
+
`,e.appendChild(s),(a=this.parentElement)==null||a.appendChild(e),this.backdropElement=e}async isOpenUpdated(e,s){var a,h,m,b,w,F;e!==s&&(s&&!e?(this.lastActiveElement=document.activeElement,this.enabledPreventScroll=!0,this.createBackdrop(),await this.updateComplete,(a=this.activateFocusTrap)==null||a.call(this),(h=this.setInitialFocus)==null||h.call(this),(m=this.triggerElement)==null||m.setAttribute("aria-expanded","true"),Gi.onShowDialog(this)):!s&&e&&((b=this.backdropElement)==null||b.remove(),this.backdropElement=null,(w=this.deactivateFocusTrap)==null||w.call(this),(F=this.triggerElement)==null||F.setAttribute("aria-expanded","false"),this.focusBackToTrigger(),Gi.onHideDialog(this)))}focusBackToTrigger(){this.triggerElement?this.triggerElement.focus():this.lastActiveElement&&this.lastActiveElement.focus&&this.lastActiveElement.focus()}render(){return O`
|
|
2477
2472
|
${this.headerText?O`
|
|
2478
2473
|
<div part="header-section">
|
|
2479
2474
|
<div part="header">
|
|
@@ -2486,13 +2481,13 @@
|
|
|
2486
2481
|
${this.headerText}
|
|
2487
2482
|
</mdc-text>
|
|
2488
2483
|
</div>
|
|
2489
|
-
|
|
2484
|
+
${this.descriptionText?O`<mdc-text
|
|
2490
2485
|
part="description-text"
|
|
2491
2486
|
tagname="${yt[this.descriptionTagName.toUpperCase()]}"
|
|
2492
2487
|
type="${ot.BODY_MIDSIZE_REGULAR}"
|
|
2493
2488
|
>
|
|
2494
|
-
|
|
2495
|
-
</mdc-text
|
|
2489
|
+
${this.descriptionText}
|
|
2490
|
+
</mdc-text>`:Y}
|
|
2496
2491
|
</div>`:Y}
|
|
2497
2492
|
<mdc-button
|
|
2498
2493
|
part="dialog-close-btn"
|