@fluentui/web-components 3.0.0-rc.24 → 3.0.0-rc.25
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 +11 -2
- package/custom-elements.json +16 -16
- package/dist/esm/dialog/dialog.template.d.ts +5 -0
- package/dist/esm/dialog/dialog.template.html +1 -0
- package/dist/esm/dialog/dialog.template.js +6 -0
- package/dist/esm/dialog/dialog.template.js.map +1 -1
- package/dist/web-components-all.js +1 -1
- package/dist/web-components-all.min.js +1 -1
- package/dist/web-components.d.ts +5 -0
- package/dist/web-components.js +1 -1
- package/dist/web-components.min.js +1 -1
- package/package.json +1 -1
package/dist/web-components.d.ts
CHANGED
|
@@ -6853,6 +6853,11 @@ export declare const DialogStyles: ElementStyles;
|
|
|
6853
6853
|
|
|
6854
6854
|
/**
|
|
6855
6855
|
* Template for the Dialog component
|
|
6856
|
+
*
|
|
6857
|
+
* Note: The empty `<div tabindex="-1">` element above the `<slot>` element is
|
|
6858
|
+
* for working around a dialog focus issue, learn more at
|
|
6859
|
+
* https://github.com/microsoft/fluentui/pull/36278
|
|
6860
|
+
*
|
|
6856
6861
|
* @public
|
|
6857
6862
|
*/
|
|
6858
6863
|
export declare const DialogTemplate: ElementViewTemplate<Dialog>;
|
package/dist/web-components.js
CHANGED
|
@@ -7063,7 +7063,7 @@ __decorateClass$B([
|
|
|
7063
7063
|
volatile
|
|
7064
7064
|
], Dialog.prototype, "dialogRole", 1);
|
|
7065
7065
|
|
|
7066
|
-
const template$w = html`<dialog class=dialog part=dialog aria-modal=${(x) => x.dialogModal} aria-describedby=${(x) => x.dialogDescribedby} aria-labelledby=${(x) => x.dialogLabelledby} aria-label=${(x) => x.dialogLabel} role=${(x) => x.dialogRole} @click=${(x, c) => x.clickHandler(c.event)} @cancel=${(x) => x.hide()} ${ref("dialog")}><slot></slot></dialog>`;
|
|
7066
|
+
const template$w = html`<dialog class=dialog part=dialog aria-modal=${(x) => x.dialogModal} aria-describedby=${(x) => x.dialogDescribedby} aria-labelledby=${(x) => x.dialogLabelledby} aria-label=${(x) => x.dialogLabel} role=${(x) => x.dialogRole} @click=${(x, c) => x.clickHandler(c.event)} @cancel=${(x) => x.hide()} ${ref("dialog")}><div tabindex=-1></div><slot></slot></dialog>`;
|
|
7067
7067
|
|
|
7068
7068
|
const styles$w = css`@layer base{:host{--dialog-backdrop:${colorBackgroundOverlay};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${colorNeutralBackground1};border-radius:${borderRadiusXLarge};border:none;box-shadow:${shadow64};color:${colorNeutralForeground1};max-height:100vh;padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;z-index:2;overflow:auto}@supports (max-height:1dvh){dialog{max-height:100dvh}}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${durationGentle};transition-timing-function:${curveDecelerateMid};opacity:0}::backdrop{transition-timing-function:${curveLinear}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${curveAccelerateMid}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}@media (forced-colors:active){@layer base{dialog{border:${strokeWidthThin} solid ${colorTransparentStroke}}}}`;
|
|
7069
7069
|
|