@watermarkinsights/ripple 5.31.1-alpha.2 → 5.31.1-alpha.3

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.
@@ -888,17 +888,19 @@
888
888
  }
889
889
 
890
890
  :host {
891
- display: block;
891
+ display: none;
892
892
  position: relative;
893
- inline-size: var(--flyout-width, 45rem);
893
+ inline-size: 0;
894
+ block-size: 0;
895
+ transition: display 250ms allow-discrete;
894
896
  }
895
897
 
896
898
  :host * {
897
899
  color: inherit;
898
900
  }
899
901
 
900
- :host(.collapsed) {
901
- display: none;
902
+ :host(.visible) {
903
+ display: block;
902
904
  }
903
905
 
904
906
  dialog {
@@ -925,6 +927,8 @@ dialog {
925
927
  display: flex;
926
928
  flex-direction: column;
927
929
  overflow: hidden;
930
+ transform: translateX(100%);
931
+ transition: transform 250ms ease-out, overlay 250ms ease-out allow-discrete, display 250ms ease-out allow-discrete;
928
932
  }
929
933
  @media (max-width: 33.375rem) {
930
934
  dialog {
@@ -1053,55 +1057,24 @@ dialog .flyout-footer .button-group {
1053
1057
  }
1054
1058
  dialog::backdrop {
1055
1059
  background: rgba(25, 25, 25, 0.4);
1060
+ opacity: 0;
1061
+ transition: opacity 250ms ease-out, overlay 250ms ease-out allow-discrete, display 250ms ease-out allow-discrete;
1056
1062
  }
1057
1063
  dialog:not([open]) {
1058
1064
  display: none;
1059
1065
  }
1060
- dialog.slide-in {
1061
- transform: translateX(100%);
1062
- animation: slideIn 250ms ease-out forwards;
1063
- animation-delay: 50ms;
1064
- }
1065
- dialog.slide-in::backdrop {
1066
- animation: fadeIn 50ms ease-out forwards;
1066
+ dialog[open] {
1067
+ transform: translateX(0);
1067
1068
  }
1068
- dialog.slide-out {
1069
- animation: slideOut 250ms ease-out forwards;
1070
- }
1071
- dialog.slide-out ::backdrop {
1072
- animation: fadeOut 50ms ease-out forwards;
1073
- animation-delay: 50ms;
1069
+ dialog[open]::backdrop {
1070
+ opacity: 1;
1074
1071
  }
1075
1072
 
1076
- @keyframes slideIn {
1077
- from {
1078
- transform: translateX(100%);
1079
- }
1080
- to {
1081
- transform: translateX(0);
1082
- }
1083
- }
1084
- @keyframes slideOut {
1085
- from {
1086
- transform: translateX(0);
1087
- }
1088
- to {
1073
+ @starting-style {
1074
+ dialog[open] {
1089
1075
  transform: translateX(100%);
1090
1076
  }
1091
- }
1092
- @keyframes fadeIn {
1093
- from {
1094
- opacity: 0;
1095
- }
1096
- to {
1097
- opacity: 1;
1098
- }
1099
- }
1100
- @keyframes fadeOut {
1101
- from {
1102
- opacity: 1;
1103
- }
1104
- to {
1077
+ dialog[open]::backdrop {
1105
1078
  opacity: 0;
1106
1079
  }
1107
1080
  }
@@ -186,9 +186,6 @@ export class Flyout {
186
186
  this.focusOnOpenEl.focus();
187
187
  };
188
188
  this.el.style.setProperty("--flyout-width", this.flyoutWidth);
189
- if (!this.open) {
190
- this.el.classList.add("collapsed");
191
- }
192
189
  }
193
190
  componentDidLoad() {
194
191
  // Initialize and attach resize observer
@@ -241,8 +238,7 @@ export class Flyout {
241
238
  }
242
239
  }
243
240
  showFlyout() {
244
- this.el.classList.remove("collapsed");
245
- this.dialogEl.classList.add("slide-in");
241
+ this.el.classList.add("visible");
246
242
  this.returnFocusEl = document.activeElement;
247
243
  this.initialBodyOverflow = document.body.style.overflow;
248
244
  document.body.style.overflow = "hidden"; // Prevents background scrolling
@@ -251,27 +247,20 @@ export class Flyout {
251
247
  this.checkBreadcrumbOverflow();
252
248
  this.focusOnOpenEl.focus();
253
249
  });
254
- setTimeout(() => {
255
- this.dialogEl.classList.remove("slide-in");
256
- }, 300);
257
250
  }
258
251
  hideFlyout() {
259
- this.dialogEl.classList.add("slide-out");
252
+ this.el.classList.remove("visible");
253
+ document.body.style.overflow = this.initialBodyOverflow; // TypeScript doesn't like that this can be undefined, but we do want to assign undefined if that's what initialBodyOverFlow is set to.
254
+ this.dialogEl.close();
255
+ // Return focus to the trigger once the dialog has closed, if focus fell back to the body.
260
256
  setTimeout(() => {
261
- // Wait for slide out animation to complete before closing
262
- this.dialogEl.classList.remove("slide-out");
263
- document.body.style.overflow = this.initialBodyOverflow; // TypeScript doesn't like that this can be undefined, but we do want to assign undefined if that's what initialBodyOverFlow is set to.
264
- this.dialogEl.close();
265
- this.el.classList.add("collapsed");
266
- setTimeout(() => {
267
- if (this.returnFocusEl && document.activeElement === document.body) {
268
- if (this.returnFocusEl.tagName === "WM-MENUITEM") {
269
- this.returnFocusEl = this.returnFocusEl.parentElement;
270
- }
271
- this.returnFocusEl.focus();
257
+ if (this.returnFocusEl && document.activeElement === document.body) {
258
+ if (this.returnFocusEl.tagName === "WM-MENUITEM") {
259
+ this.returnFocusEl = this.returnFocusEl.parentElement;
272
260
  }
273
- }, 20);
274
- }, 250);
261
+ this.returnFocusEl.focus();
262
+ }
263
+ }, 20);
275
264
  }
276
265
  renderBreadcrumbList() {
277
266
  if (this.breadcrumb) {
@@ -297,7 +286,7 @@ export class Flyout {
297
286
  }
298
287
  }
299
288
  render() {
300
- return (h(Host, { key: 'cee80fe753b00eb2a104d0d61f25e9b2d1988007' }, h("dialog", { key: 'c68eb2bc6d7ab3ea160fa0de0c8f13058e1b21da', ref: (el) => (this.dialogEl = el), class: "flyout", "aria-labelledby": "heading", onClose: () => this.wmFlyoutCloseTriggered.emit(), onKeyDown: (ev) => this.handleKeyDown(ev) }, h("div", { key: '7480babcef43c76c88ea062d9b6a5d56793b6632', tabindex: "0", class: "focus-trap", onFocus: () => this.lastFocusableEl.focus(), "aria-hidden": "true" }), this.renderHeader(), h("div", { key: '9766da450d3f737e2fba67a9cdd0fc5a131bafd2', class: "flyout-content" }, h("slot", { key: '59ef6cc68e566c48bf1fde7fd770d61b4cfe7493' })), this.renderFooter(), h("div", { key: '150dc8cfcff6cd2c6aab27baf0d88c1a58dc0b56', tabindex: "0", class: "focus-trap", onFocus: () => this.handleEndBookendFocus(), "aria-hidden": "true" }))));
289
+ return (h(Host, { key: 'e5a1f831594d2035c2ddd00839fbfe3ce17d09e9' }, h("dialog", { key: '86431cc161af2e84a859b0737d4314f1113201bd', ref: (el) => (this.dialogEl = el), class: "flyout", "aria-labelledby": "heading", onClose: () => this.wmFlyoutCloseTriggered.emit(), onKeyDown: (ev) => this.handleKeyDown(ev) }, h("div", { key: 'd62ec25438efbc9fba42f228ba5857ccd10a0392', tabindex: "0", class: "focus-trap", onFocus: () => this.lastFocusableEl.focus(), "aria-hidden": "true" }), this.renderHeader(), h("div", { key: 'dc2fd559f5636069314e0753857e59884699cf8a', class: "flyout-content" }, h("slot", { key: '063110f8c5f757c5cd34ec0f6f7a2f5cbd235412' })), this.renderFooter(), h("div", { key: '36d90d2ede3d50c6e0246902f253910b6489056f', tabindex: "0", class: "focus-trap", onFocus: () => this.handleEndBookendFocus(), "aria-hidden": "true" }))));
301
290
  }
302
291
  static get is() { return "wm-flyout"; }
303
292
  static get encapsulation() { return "shadow"; }
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2026-07-21T19:56:15",
2
+ "timestamp": "2026-07-21T21:14:02",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.21.0",
@@ -1,6 +1,6 @@
1
1
  import './index-3425d80d.js';
2
2
 
3
- const version = "5.31.1-alpha.2";
3
+ const version = "5.31.1-alpha.3";
4
4
 
5
5
  // PRINT RIPPLE VERSION IN CONSOLE
6
6
  // test envs return 0 for plugin.length
@@ -1,6 +1,6 @@
1
1
  import { b as bootstrapLazy } from './index-3425d80d.js';
2
2
  export { s as setNonce } from './index-3425d80d.js';
3
- import { g as globalScripts } from './app-globals-46d6011b.js';
3
+ import { g as globalScripts } from './app-globals-da7fe8a2.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
@@ -1,6 +1,6 @@
1
1
  import { p as promiseResolve, b as bootstrapLazy } from './index-3425d80d.js';
2
2
  export { s as setNonce } from './index-3425d80d.js';
3
- import { g as globalScripts } from './app-globals-46d6011b.js';
3
+ import { g as globalScripts } from './app-globals-da7fe8a2.js';
4
4
 
5
5
  /*
6
6
  Stencil Client Patch Browser v4.21.0 | MIT Licensed | https://stenciljs.com