@thewhatmatters/wmds 0.4.2 → 0.4.4

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.
Files changed (157) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/CONSUMING.md +2 -2
  3. package/bin/wmds-check.mjs +108 -10
  4. package/dist/components/organisms/ChatDock/ChatDock.d.ts +21 -15
  5. package/dist/components/organisms/ChatDock/ChatDock.d.ts.map +1 -1
  6. package/dist/components/organisms/ChatDock/ChatDock.js +418 -423
  7. package/dist/components/organisms/ChatDock/ChatDockGate.d.ts +21 -10
  8. package/dist/components/organisms/ChatDock/ChatDockGate.d.ts.map +1 -1
  9. package/dist/components/organisms/ChatDock/ChatDockGate.js +124 -118
  10. package/dist/components/organisms/ChatDock/chatDockGateContext.d.ts +12 -0
  11. package/dist/components/organisms/ChatDock/chatDockGateContext.d.ts.map +1 -0
  12. package/dist/components/organisms/ChatDock/chatDockGateContext.js +9 -0
  13. package/dist/components/organisms/ChatDock/chatDockGateStyles.d.ts +21 -9
  14. package/dist/components/organisms/ChatDock/chatDockGateStyles.d.ts.map +1 -1
  15. package/dist/components/organisms/ChatDock/chatDockGateStyles.js +2 -3
  16. package/dist/components/organisms/ChatDock/chatDockStyles.d.ts +6 -6
  17. package/dist/components/organisms/ChatDock/chatDockStyles.d.ts.map +1 -1
  18. package/dist/components/organisms/ChatDock/chatDockStyles.js +2 -2
  19. package/dist/components/organisms/ChatDock/chatDockViewport.d.ts +6 -0
  20. package/dist/components/organisms/ChatDock/chatDockViewport.d.ts.map +1 -1
  21. package/dist/components/organisms/ChatDock/chatDockViewport.js +14 -1
  22. package/dist/components/organisms/Toast/Toast.d.ts.map +1 -1
  23. package/dist/components/organisms/Toast/Toast.js +11 -5
  24. package/dist/lib/dialogOverlay.d.ts.map +1 -1
  25. package/dist/lib/dialogOverlay.js +18 -15
  26. package/dist/styles.css +1 -1
  27. package/docs/component-contracts.md +4 -2
  28. package/docs/components.md +5 -5
  29. package/docs/exports.json +1 -1
  30. package/docs/patterns/components-accordion--flush.tsx +1 -1
  31. package/docs/patterns/components-avatar--dropdown-row.tsx +1 -1
  32. package/docs/patterns/components-badge--outline-tags.tsx +1 -1
  33. package/docs/patterns/components-badge--with-avatar.tsx +1 -1
  34. package/docs/patterns/components-breadcrumb--editorial.tsx +1 -1
  35. package/docs/patterns/components-breadcrumb--long-path.tsx +1 -1
  36. package/docs/patterns/components-breadcrumb--path.tsx +1 -1
  37. package/docs/patterns/components-breadcrumb--router-links.tsx +1 -1
  38. package/docs/patterns/components-button-button--copy-button.tsx +1 -1
  39. package/docs/patterns/components-button-button--destructive-action.tsx +1 -1
  40. package/docs/patterns/components-button-button--external-link.tsx +1 -1
  41. package/docs/patterns/components-button-button--ghost-action.tsx +1 -1
  42. package/docs/patterns/components-button-button--inverse-action.tsx +1 -1
  43. package/docs/patterns/components-button-button--link-render.tsx +1 -1
  44. package/docs/patterns/components-button-button--multi-state-badge.tsx +1 -1
  45. package/docs/patterns/components-button-button--outline-mono.tsx +1 -1
  46. package/docs/patterns/components-button-button--primary-action.tsx +1 -1
  47. package/docs/patterns/components-button-button--row-hug.tsx +1 -1
  48. package/docs/patterns/components-button-button--row-layout.tsx +1 -1
  49. package/docs/patterns/components-button-button--secondary-action.tsx +1 -1
  50. package/docs/patterns/components-button-button--suggestion-pills.tsx +1 -1
  51. package/docs/patterns/components-button-button--with-count.tsx +1 -1
  52. package/docs/patterns/components-button-button--with-icon.tsx +1 -1
  53. package/docs/patterns/components-button-floatingactionbutton--vertical-actions.tsx +1 -1
  54. package/docs/patterns/components-calembed--pattern-skip-in-footer.tsx +1 -1
  55. package/docs/patterns/components-card-card--body-slot-occupancy-history.tsx +1 -1
  56. package/docs/patterns/components-card-card--headerless-media.tsx +1 -1
  57. package/docs/patterns/components-card-card--outlined-layout.tsx +1 -1
  58. package/docs/patterns/components-card-card--pinned-height.tsx +1 -1
  59. package/docs/patterns/components-card-selectablecard--selectable-cards-pattern.tsx +1 -1
  60. package/docs/patterns/components-chart--audience-activity-heatmap.tsx +1 -1
  61. package/docs/patterns/components-chart--cartesian-no-data-gaps.tsx +1 -1
  62. package/docs/patterns/components-chart--occupancy-history-in-card.tsx +1 -1
  63. package/docs/patterns/components-chart--occupancy-in-card.tsx +1 -1
  64. package/docs/patterns/components-chart--post-reach-distribution.tsx +1 -1
  65. package/docs/patterns/components-chart--ranked-audience-breakdown.tsx +1 -1
  66. package/docs/patterns/components-chart--unit-grid-composition.tsx +1 -1
  67. package/docs/patterns/components-chatdock--pattern-chat-dock.tsx +3 -2
  68. package/docs/patterns/components-chatdock--pattern-start-project-gate.tsx +54 -11
  69. package/docs/patterns/components-chatqa--pattern-qa-with-reply.tsx +1 -1
  70. package/docs/patterns/components-checkbox-checkbox--default.tsx +1 -1
  71. package/docs/patterns/components-checkbox-checkbox--with-count.tsx +1 -1
  72. package/docs/patterns/components-checkbox-checkbox--with-description.tsx +1 -1
  73. package/docs/patterns/components-checkbox-checkboxgroup--default.tsx +1 -1
  74. package/docs/patterns/components-checkbox-checkboxgroup--option-counts.tsx +1 -1
  75. package/docs/patterns/components-descriptionlist--details.tsx +1 -1
  76. package/docs/patterns/components-descriptionlist--post-metadata.tsx +1 -1
  77. package/docs/patterns/components-dialog--alert-dialog-destructive.tsx +1 -1
  78. package/docs/patterns/components-dialog--default-dialog.tsx +1 -1
  79. package/docs/patterns/components-dialog--form-dialog.tsx +1 -1
  80. package/docs/patterns/components-displaycontrols--page-utilities.tsx +1 -1
  81. package/docs/patterns/components-field--horizontal-input.tsx +1 -1
  82. package/docs/patterns/components-field--horizontal-text-area.tsx +1 -1
  83. package/docs/patterns/components-field--multi-control.tsx +1 -1
  84. package/docs/patterns/components-footerreveal--marketing-hero-pattern.tsx +1 -1
  85. package/docs/patterns/components-footerreveal--marketing-hero-ruled-pattern.tsx +1 -1
  86. package/docs/patterns/components-footerreveal--marketing-hero-with-gallery-intro.tsx +1 -1
  87. package/docs/patterns/components-footerreveal--marketing-page-pattern.tsx +1 -1
  88. package/docs/patterns/components-footerreveal--ruled-grid-footer-pattern.tsx +1 -1
  89. package/docs/patterns/components-footerreveal--sequenced-marketing-hero.tsx +1 -1
  90. package/docs/patterns/components-herointro--two-line-intro.tsx +1 -1
  91. package/docs/patterns/components-herotilestack--marketing-hero-pattern.tsx +1 -1
  92. package/docs/patterns/components-herotilestack--marketing-hero-text-sequence.tsx +1 -1
  93. package/docs/patterns/components-herotilestack--marketing-hero-with-gallery-intro.tsx +1 -1
  94. package/docs/patterns/components-indexlist--post-index.tsx +1 -1
  95. package/docs/patterns/components-intakeconfirmation--booked-pattern.tsx +1 -1
  96. package/docs/patterns/components-intakeconfirmation--emailed-pattern.tsx +1 -1
  97. package/docs/patterns/components-intakeform--about-you-pattern.tsx +1 -1
  98. package/docs/patterns/components-intakemodal--intake-modal-pattern.tsx +1 -1
  99. package/docs/patterns/components-kbd--command-row.tsx +1 -1
  100. package/docs/patterns/components-kbd--numbered-choices.tsx +1 -1
  101. package/docs/patterns/components-kbd--shortcut.tsx +1 -1
  102. package/docs/patterns/components-moremenu--action-menu.tsx +1 -1
  103. package/docs/patterns/components-moremenu--in-card-header.tsx +1 -1
  104. package/docs/patterns/components-navlist--side-nav-settings.tsx +1 -1
  105. package/docs/patterns/components-pageheader--app-header-pattern.tsx +1 -1
  106. package/docs/patterns/components-pageheader--page-section-header.tsx +1 -1
  107. package/docs/patterns/components-pageheader--toolbar-header.tsx +1 -1
  108. package/docs/patterns/components-panel--end-detail-rail.tsx +1 -1
  109. package/docs/patterns/components-pillgroup--pill-group-pattern.tsx +1 -1
  110. package/docs/patterns/components-promptbar--pattern-prompt-bar.tsx +1 -1
  111. package/docs/patterns/components-prose--article-body.tsx +1 -1
  112. package/docs/patterns/components-radio-radiogroup--default.tsx +1 -1
  113. package/docs/patterns/components-scrollhorizontal--project-gallery-pattern.tsx +1 -1
  114. package/docs/patterns/components-scrollhorizontal--with-intro.tsx +1 -1
  115. package/docs/patterns/components-sectioncaption--column-caption.tsx +1 -1
  116. package/docs/patterns/components-sectioncaption--with-action.tsx +1 -1
  117. package/docs/patterns/components-sheet--bottom-sheet.tsx +1 -1
  118. package/docs/patterns/components-sheet--end-sheet.tsx +1 -1
  119. package/docs/patterns/components-sitenav--brand-and-cta.tsx +1 -1
  120. package/docs/patterns/components-sitenav--centered-links.tsx +1 -1
  121. package/docs/patterns/components-sitenav--compact.tsx +1 -1
  122. package/docs/patterns/components-sitenav--marketing-header.tsx +1 -1
  123. package/docs/patterns/components-sitenav--mega-menu.tsx +1 -1
  124. package/docs/patterns/components-stat--insights-row.tsx +1 -1
  125. package/docs/patterns/components-stepprogress--step-progress-pattern.tsx +1 -1
  126. package/docs/patterns/components-switch--default.tsx +1 -1
  127. package/docs/patterns/components-switch--settings-row.tsx +1 -1
  128. package/docs/patterns/components-tab--settings-pages.tsx +1 -1
  129. package/docs/patterns/components-taskrows--action-details.tsx +1 -1
  130. package/docs/patterns/components-taskrows--capsules.tsx +1 -1
  131. package/docs/patterns/components-taskrows--card-with-status-rows.tsx +1 -1
  132. package/docs/patterns/components-taskrows--controlled-expand.tsx +1 -1
  133. package/docs/patterns/components-taskrows--custom-slots.tsx +1 -1
  134. package/docs/patterns/components-taskrows--status-list.tsx +1 -1
  135. package/docs/patterns/components-taskrows--tag-chips.tsx +1 -1
  136. package/docs/patterns/components-textlink--external-destination.tsx +1 -1
  137. package/docs/patterns/components-textlink--inline-prose.tsx +1 -1
  138. package/docs/patterns/components-textlink--quiet-title.tsx +1 -1
  139. package/docs/patterns/components-textlink--supporting-copy.tsx +1 -1
  140. package/docs/patterns/components-textsequence--default.tsx +1 -1
  141. package/docs/patterns/components-textsequence--reduced-motion.tsx +1 -1
  142. package/docs/patterns/components-textsequence--shapes.tsx +1 -1
  143. package/docs/patterns/components-toast--stacked-notifications.tsx +1 -1
  144. package/docs/patterns/components-tooltip--controlled.tsx +1 -1
  145. package/docs/patterns/components-tooltip--disabled-control.tsx +1 -1
  146. package/docs/patterns/components-tooltip--icon-action.tsx +1 -1
  147. package/docs/patterns/components-tooltip--keyboard-shortcut.tsx +1 -1
  148. package/docs/patterns/components-tooltip--placement.tsx +1 -1
  149. package/docs/patterns/foundations-scroll-fade--horizontal-rail.tsx +1 -1
  150. package/docs/patterns/foundations-scroll-fade--overflowing-list.tsx +1 -1
  151. package/docs/patterns/guides-chart-explorations--comparison-gallery.tsx +1 -1
  152. package/docs/patterns/guides-filter-panel--filtered-index.tsx +41 -17
  153. package/docs/patterns/guides-overlay-flows--notification-preferences.tsx +1 -1
  154. package/docs/patterns/guides-post-page--post-page.tsx +34 -4
  155. package/docs/patterns/guides-profile-typography--editorial-profile.tsx +1 -1
  156. package/docs/patterns/index.json +1 -1
  157. package/package.json +1 -1
@@ -1,33 +1,36 @@
1
1
  "use client";
2
2
  //#region src/lib/dialogOverlay.ts
3
3
  var e = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
4
- function t(t) {
5
- function n(n) {
6
- if (n.key !== "Tab") return;
7
- let r = Array.from(t.querySelectorAll(e)).filter((e) => e.offsetParent !== null || e === document.activeElement);
8
- if (r.length === 0) {
9
- n.preventDefault();
4
+ function t(e) {
5
+ return e.closest("[inert]") == null ? typeof e.checkVisibility == "function" ? e.checkVisibility({ visibilityProperty: !0 }) : e.offsetParent !== null && getComputedStyle(e).visibility !== "hidden" : !1;
6
+ }
7
+ function n(n) {
8
+ function r(r) {
9
+ if (r.key !== "Tab") return;
10
+ let i = Array.from(n.querySelectorAll(e)).filter((e) => t(e) || e === document.activeElement);
11
+ if (i.length === 0) {
12
+ r.preventDefault();
10
13
  return;
11
14
  }
12
- let i = r[0], a = r[r.length - 1], o = document.activeElement;
13
- if (n.shiftKey) {
14
- (o === i || !t.contains(o)) && (n.preventDefault(), a.focus());
15
+ let a = i[0], o = i[i.length - 1], s = document.activeElement;
16
+ if (r.shiftKey) {
17
+ (s === a || !n.contains(s)) && (r.preventDefault(), o.focus());
15
18
  return;
16
19
  }
17
- o === a && (n.preventDefault(), i.focus());
20
+ s === o && (r.preventDefault(), a.focus());
18
21
  }
19
- return t.addEventListener("keydown", n), () => {
20
- t.removeEventListener("keydown", n);
22
+ return n.addEventListener("keydown", r), () => {
23
+ n.removeEventListener("keydown", r);
21
24
  };
22
25
  }
23
- function n() {
26
+ function r() {
24
27
  if (typeof document > "u") return () => void 0;
25
28
  let { body: e } = document, t = e.style.overflow;
26
29
  return e.style.overflow = "hidden", () => {
27
30
  e.style.overflow = t;
28
31
  };
29
32
  }
30
- function r(t, n) {
33
+ function i(t, n) {
31
34
  if (n) {
32
35
  let e = t.querySelector(n);
33
36
  if (e != null) {
@@ -38,4 +41,4 @@ function r(t, n) {
38
41
  t.querySelector(e)?.focus();
39
42
  }
40
43
  //#endregion
41
- export { r as focusInitialElement, n as lockBodyScroll, t as trapFocus };
44
+ export { i as focusInitialElement, r as lockBodyScroll, n as trapFocus };