@watermarkinsights/ripple 5.32.1-alpha.1 → 5.32.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.
Files changed (29) hide show
  1. package/dist/cjs/{app-globals-6f8f7d34.js → app-globals-2a95ac29.js} +1 -1
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/ripple.cjs.js +1 -1
  4. package/dist/cjs/wm-navigation_3.cjs.entry.js +4 -4
  5. package/dist/cjs/wm-tag-input.cjs.entry.js +2 -3
  6. package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +29 -6
  7. package/dist/collection/components/wm-navigation/wm-navigation-item.js +25 -3
  8. package/dist/collection/components/wm-navigation/wm-navigation.js +94 -33
  9. package/dist/collection/components/wm-tag-input/wm-tag-input.js +2 -3
  10. package/dist/docs/docs.json +27 -11
  11. package/dist/docs/props-reference.json +1 -1
  12. package/dist/docs/skill/index.md +2 -0
  13. package/dist/docs/skill/wm-navigation-hamburger.md +27 -5
  14. package/dist/docs/skill/wm-navigation-item.md +20 -5
  15. package/dist/docs/skill/wm-navigation.md +79 -18
  16. package/dist/esm/{app-globals-668b9d5c.js → app-globals-ef6f887a.js} +1 -1
  17. package/dist/esm/loader.js +1 -1
  18. package/dist/esm/ripple.js +1 -1
  19. package/dist/esm/wm-navigation_3.entry.js +4 -4
  20. package/dist/esm/wm-tag-input.entry.js +2 -3
  21. package/dist/ripple/{p-44c372a6.js → p-2a3e83f9.js} +1 -1
  22. package/dist/ripple/{p-b9a39381.entry.js → p-93706eb1.entry.js} +1 -1
  23. package/dist/ripple/{p-729314c0.entry.js → p-fe0345dd.entry.js} +1 -1
  24. package/dist/ripple/ripple.esm.js +1 -1
  25. package/dist/types/components/wm-navigation/wm-navigation-hamburger.d.ts +28 -5
  26. package/dist/types/components/wm-navigation/wm-navigation-item.d.ts +24 -2
  27. package/dist/types/components/wm-navigation/wm-navigation.d.ts +92 -31
  28. package/dist/types/components.d.ts +500 -100
  29. package/package.json +3 -2
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index-bb947bd5.js');
4
4
 
5
- const version = "5.32.1-alpha.1";
5
+ const version = "5.32.1-alpha.3";
6
6
 
7
7
  // PRINT RIPPLE VERSION IN CONSOLE
8
8
  // test envs return 0 for plugin.length
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-bb947bd5.js');
6
- const appGlobals = require('./app-globals-6f8f7d34.js');
6
+ const appGlobals = require('./app-globals-2a95ac29.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-bb947bd5.js');
6
- const appGlobals = require('./app-globals-6f8f7d34.js');
6
+ const appGlobals = require('./app-globals-2a95ac29.js');
7
7
 
8
8
  /*
9
9
  Stencil Client Patch Browser v4.21.0 | MIT Licensed | https://stenciljs.com
@@ -106,9 +106,9 @@ const Navigation = class {
106
106
  } }));
107
107
  }
108
108
  render() {
109
- return (index.h(index.Host, { key: '96933040f7f88edf4e52c5e0480712e1f15e8db6', role: "navigation", "aria-expanded": this.ariaExpanded, "aria-label": this.mainNavigationMessage }, this.open ? this.renderOverlay() : "", this.isCollapsible && (index.h("div", { key: '4658a3e22aa96a55dfb5b0211912805b683e26d2', class: "trapfocus", tabindex: this.open ? 0 : undefined, onFocus: () => this.focusLastItem() })), index.h("div", { key: 'cb3ae13600538706292ed27eeff3f70e33015975', class: "tray" }, index.h("div", { key: 'df934dfeb30d54294656dde2cfc78c95c6140e65', class: "toggle-wrapper" }, index.h("wm-button", { key: '478b6428b08703302a21f64d7adc58e6788e1803', ref: (el) => (this.toggleEl = el), class: "toggle", "button-type": "navigational", icon: this.open ? "#close" : "#menu", "icon-size": "2rem", tooltip: this.open ? intl.globalMessages.close : intl.globalMessages.open, "tooltip-position": "right", tabIndex: this.open ? undefined : -1, onClick: () => {
109
+ return (index.h(index.Host, { key: 'a15b95ca5769e6a996542f3fb0f1edf8928ed4ea', role: "navigation", "aria-expanded": this.ariaExpanded, "aria-label": this.mainNavigationMessage }, this.open ? this.renderOverlay() : "", this.isCollapsible && (index.h("div", { key: 'add1bb58939e3d076c7890aa1cb3efd932f977dc', class: "trapfocus", tabindex: this.open ? 0 : undefined, onFocus: () => this.focusLastItem() })), index.h("div", { key: '98491d3d97807417a13b677894ee452e89e9cea8', class: "tray" }, index.h("div", { key: 'cf058b8b33a07598f19318977e26e652304faf4f', class: "toggle-wrapper" }, index.h("wm-button", { key: '7e8d936e3fdc9c718bf9442b6840464a6caddcab', ref: (el) => (this.toggleEl = el), class: "toggle", "button-type": "navigational", icon: this.open ? "#close" : "#menu", "icon-size": "2rem", tooltip: this.open ? intl.globalMessages.close : intl.globalMessages.open, "tooltip-position": "right", tabIndex: this.open ? undefined : -1, onClick: () => {
110
110
  this.open = !this.open;
111
- } })), index.h("ul", { key: '32035dea4487af347ec5e56c3010bdf8b84d2c12', class: "navlist" }, index.h("slot", { key: 'a3512e42e16da5ad5591fa1f1f5211dc5b1576ee' }))), this.isCollapsible && (index.h("div", { key: '8e77d6376ccc683560ec214d2ec7d694aa417789', class: "trapfocus", tabindex: this.open ? 0 : undefined, onFocus: () => this.toggleEl.focus() }))));
111
+ } })), index.h("ul", { key: 'e90219ba02e6a2330095e12ee4793ac82100fc5d', class: "navlist" }, index.h("slot", { key: '83e672cf048480abbef358f8249cb1622e2fad3c' }))), this.isCollapsible && (index.h("div", { key: '3c16362bebb241d693aa6aa8fd7226a34039901d', class: "trapfocus", tabindex: this.open ? 0 : undefined, onFocus: () => this.toggleEl.focus() }))));
112
112
  }
113
113
  static get delegatesFocus() { return true; }
114
114
  get el() { return index.getElement(this); }
@@ -157,7 +157,7 @@ const NavigationHamburger = class {
157
157
  this.wmNavigationHamburgerClicked.emit();
158
158
  }
159
159
  render() {
160
- return (index.h(index.Host, { key: '966bcd988f8ee460899519969a759ffb16459baa', class: `hamburger ${this.open ? "nav-open" : "nav-closed"}` }, index.h("button", { key: 'b1e5c3cd46106943102bf5509a9251953b164c56', "aria-expanded": this.open, "aria-label": this.showNavMessage, onMouseEnter: () => functions.showTooltip("right", this.el, this.showNavMessage), onMouseLeave: () => functions.hideTooltip(), onFocus: () => this.isTabbing && functions.showTooltip("right", this.el, this.showNavMessage), onBlur: () => functions.hideTooltip(), onClick: () => this.handleClick() }, index.h("span", { key: 'a50f398cbdde9271cab48e6bc4eb9013fe8b4ba4', class: "svg-icon svg-menu" }))));
160
+ return (index.h(index.Host, { key: '6f135919a43b55f7c4fca79d79e9a5c201d84fdd', class: `hamburger ${this.open ? "nav-open" : "nav-closed"}` }, index.h("button", { key: '8d930f77ea878a4f7757084fe45178004cc8a74e', "aria-expanded": this.open, "aria-label": this.showNavMessage, onMouseEnter: () => functions.showTooltip("right", this.el, this.showNavMessage), onMouseLeave: () => functions.hideTooltip(), onFocus: () => this.isTabbing && functions.showTooltip("right", this.el, this.showNavMessage), onBlur: () => functions.hideTooltip(), onClick: () => this.handleClick() }, index.h("span", { key: '798de550cd68d4d3b2ce78036206175e3901e1c0', class: "svg-icon svg-menu" }))));
161
161
  }
162
162
  static get delegatesFocus() { return true; }
163
163
  get el() { return index.getElement(this); }
@@ -176,7 +176,7 @@ const NavigationItem = class {
176
176
  this.active = undefined;
177
177
  }
178
178
  render() {
179
- return (index.h(index.Host, { key: '5c37c39e27b4602bcc53f2a1e118fb427b7a9a1a', role: "listitem" }, index.h("a", { key: 'ba3e7216ba1a5e7cb8d61dff61b353eeaaddee34', class: `link ${this.active ? "active" : ""}`, href: this.href, onClick: () => this.wmNavigationItemClicked.emit() }, index.h("div", { key: '9a35a2bd7f3474a182e187f8fe4b35904cb00862', class: "icon", "aria-hidden": "true" }, index.h("slot", { key: 'fb6858dafb750fcee200e57757dd86bbfc05cd23' })), index.h("div", { key: '6b2c933f73fd07746c3f3bcb656f9fc9563e88cd', class: "text" }, this.text))));
179
+ return (index.h(index.Host, { key: 'bbe3c0a165b8d7d4bf036e5a80b23eb11446b90e', role: "listitem" }, index.h("a", { key: '7f4ef86559f368dca39bd7a72ed05daafb539648', class: `link ${this.active ? "active" : ""}`, href: this.href, onClick: () => this.wmNavigationItemClicked.emit() }, index.h("div", { key: '8ae1aae920abe64829e87f2a107f1bf3eb752e50', class: "icon", "aria-hidden": "true" }, index.h("slot", { key: '1da830a8aae16100d5c99b5bfe7e80086f8a7baa' })), index.h("div", { key: '876286ffd8f555d840538a088051faeede3882ae', class: "text" }, this.text))));
180
180
  }
181
181
  static get delegatesFocus() { return true; }
182
182
  get el() { return index.getElement(this); }
@@ -327,7 +327,6 @@ const TagInput = class {
327
327
  const addedNodes = Array.from(record.addedNodes);
328
328
  if (addedNodes.length > 0) {
329
329
  this.assignOptionIds();
330
- // reassign rather than push: Stencil only re-renders on a state reference change
331
330
  const newNodes = addedNodes.filter((n) => !this.tagsList.includes(n));
332
331
  if (newNodes.length > 0) {
333
332
  this.tagsList = [...this.tagsList, ...newNodes];
@@ -970,10 +969,10 @@ const TagInput = class {
970
969
  }
971
970
  }
972
971
  render() {
973
- return (index.h("div", { key: '0506ec7b7255034f0fa8132d813727a72895b86a', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, index.h("div", { key: '8f8726c6d9e1a524b6c9b9aa90dee9748fc93635', class: "label-wrapper" }, index.h("label", { key: '1f9b00a496fcd9923800471cc77e8c9c65111a8b', class: "label", htmlFor: "input", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => functions.hideTooltip() }, this.label), this.labelPosition !== "none" && this.requiredField && (index.h("div", { key: '3109f9ca0c4dbdfdde971b9c30c65e90a3d2c573', class: "required", "aria-hidden": "true" }, "*"))), index.h("div", { key: 'a3bfc9d17aa1df1ff84e807cd21bfb52dd3690de', class: `field-wrapper ${this.el.shadowRoot.activeElement === this.inputEl ? "focused" : ""} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.fieldWrapperEl = el) }, index.h("div", { key: 'be11a9727d97017988960d9458bf018e27f25c3b', class: "upper-row" }, index.h("div", { key: '9ae64eac0452889a0dbc49630a731f297c92c8c5', class: "svg-icon svg-search" }), index.h("div", { key: '07372a530d3bd24b8ae783d0bed5a3e095dbeeeb', class: `tags-and-input-wrapper` }, index.h("ul", { key: '2b16ed13429d52b1ad44b1aea45087f34e05997f', ref: (el) => (this.tagAreaEl = el), class: `tag-area ${this.taggedOptions.length === 0 && "empty"} ${this.isKeying ? "user-is-keying" : ""}`, role: "listbox", "aria-activedescendant": this.focusedTag ? this.focusedTag.id : null, "aria-orientation": "horizontal", "aria-labelledby": "sr-instructions", tabindex: this._tagEls.length > 0 ? 0 : -1, "aria-describedby": `info max-tags`, onFocus: (ev) => this.handleTagAreaFocus(ev), onBlur: (ev) => {
972
+ return (index.h("div", { key: 'dea9ac53c8001429751e759746085ebb7f9bcc98', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, index.h("div", { key: 'd3956d7ac5042bf4e0629173cebe2e46ea7e9a3b', class: "label-wrapper" }, index.h("label", { key: '83e407057a18e0e6d21af52a35e7c57af40bf147', class: "label", htmlFor: "input", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => functions.hideTooltip() }, this.label), this.labelPosition !== "none" && this.requiredField && (index.h("div", { key: '70d92671c54ad690834de1f6873aec20e5f4fd80', class: "required", "aria-hidden": "true" }, "*"))), index.h("div", { key: '79dba949ca7f4e73d8275e6e8c07e7737c4cef43', class: `field-wrapper ${this.el.shadowRoot.activeElement === this.inputEl ? "focused" : ""} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.fieldWrapperEl = el) }, index.h("div", { key: '24179f798549b936c2e2a90b43c377d5c7df155b', class: "upper-row" }, index.h("div", { key: '799d830b6ff63dec947f776cdcebce017f83f9bb', class: "svg-icon svg-search" }), index.h("div", { key: 'eb31ec918a327e87176db9bdda33e160eb40cf29', class: `tags-and-input-wrapper` }, index.h("ul", { key: 'cb5a56da3f08bac148853ec9e6bbf0f755cc8643', ref: (el) => (this.tagAreaEl = el), class: `tag-area ${this.taggedOptions.length === 0 && "empty"} ${this.isKeying ? "user-is-keying" : ""}`, role: "listbox", "aria-activedescendant": this.focusedTag ? this.focusedTag.id : null, "aria-orientation": "horizontal", "aria-labelledby": "sr-instructions", tabindex: this._tagEls.length > 0 ? 0 : -1, "aria-describedby": `info max-tags`, onFocus: (ev) => this.handleTagAreaFocus(ev), onBlur: (ev) => {
974
973
  this.focusedTagIndex = undefined;
975
974
  this.handleBlur(ev);
976
- }, onKeyDown: (ev) => this.handleTagAreaKeyDown(ev) }, this.renderTags()), index.h("div", { key: '3888229daf857f5c86ee4112d0762b9be5b3b099', class: "sr-only", id: "sr-instructions" }, this.label, ". ", this.tagAreaInstructions), this.isDropdown && this.renderDropdownInput(), this.isTable && this.renderTableInput()), this.isDropdown && (index.h("div", { key: 'fce52fa11fb5403c1dd7ac9c2dca11bbe9402665', class: "character-count" }, this.charCount, "/", this.characterLimit))), this.renderTagCounter(), this.isDropdown && this.renderDropdown()), this.info && (index.h("div", { key: '1befdf76851f651878ade4110d8aec2e0238cdbe', id: "info", class: "info-text" }, this.info)), index.h("div", { key: '4bcd00c2fa6d4f00c79fc8a752a3dd57594ce9a1', id: "error" }, this.errorMessage), index.h("div", { key: '9d6da4e7accb62f9ad05dbdf0c5827ea18ade783', class: "sr-only", "aria-live": "polite", ref: (el) => (this.liveRegionEl = el), "aria-atomic": "true" }, this.liveRegionMessage), this.isTable && this.renderTable()));
975
+ }, onKeyDown: (ev) => this.handleTagAreaKeyDown(ev) }, this.renderTags()), index.h("div", { key: 'eb39838bb6fa30ed96864d605e58d8d28291bb09', class: "sr-only", id: "sr-instructions" }, this.label, ". ", this.tagAreaInstructions), this.isDropdown && this.renderDropdownInput(), this.isTable && this.renderTableInput()), this.isDropdown && (index.h("div", { key: '988f231710b140862bf4ff637611b3e7172e7e80', class: "character-count" }, this.charCount, "/", this.characterLimit))), this.renderTagCounter(), this.isDropdown && this.renderDropdown()), this.info && (index.h("div", { key: '6826b1f0620e14e7e921314085523cf1c3623164', id: "info", class: "info-text" }, this.info)), index.h("div", { key: '28632b831feb09801e7036f7b458303a5daee980', id: "error" }, this.errorMessage), index.h("div", { key: '339b33e97121b8abb5115e516e61a2fa56e4a34e', class: "sr-only", "aria-live": "polite", ref: (el) => (this.liveRegionEl = el), "aria-atomic": "true" }, this.liveRegionMessage), this.isTable && this.renderTable()));
977
976
  }
978
977
  static get delegatesFocus() { return true; }
979
978
  get el() { return index.getElement(this); }
@@ -2,8 +2,11 @@ import { h, Host } from "@stencil/core";
2
2
  import { intl, showTooltip, hideTooltip } from "../../global/functions";
3
3
  /**
4
4
  * Toggle button for the collapsible wm-navigation sidebar. Renders a hamburger/menu icon
5
- * button that communicates with wm-navigation via window events. Place immediately before
6
- * the associated wm-navigation element in the DOM.
5
+ * button that communicates with wm-navigation via a window event and a document-wide lookup,
6
+ * not DOM adjacency — place it wherever the page's header needs it, typically at the header's
7
+ * leading edge, before the logo.
8
+ *
9
+ * @category Navigation
7
10
  *
8
11
  * @keyboardInteraction
9
12
  * - **Enter / Space**: Toggles the navigation open/closed.
@@ -15,15 +18,35 @@ import { intl, showTooltip, hideTooltip } from "../../global/functions";
15
18
  *
16
19
  * @usageNotes
17
20
  * - `nav-id` is required; it must match the `id` on the associated wm-navigation element.
18
- * - Place this component immediately before the wm-navigation element in the DOM.
21
+ * - Renders nothing and takes no layout space on viewports 1024px and wider (its internal
22
+ * button is hidden there). On narrower viewports the host is exactly a 60x60px box with the
23
+ * icon centered inside; that sizing already satisfies touch-target minimums, so don't add
24
+ * further leading margin or padding on the host for that — doing so stacks on top of the
25
+ * component's own and opens a visible gap at the header's outer edge. The box reserves no
26
+ * space on its trailing side, though — spacing between it and the next header element
27
+ * (typically a logo) is still up to the app's own header layout to provide.
28
+ * - This component must be the header's true first child at its true leading edge, so don't
29
+ * give the header uniform padding (or `padding-inline-start`) for breathing room — that
30
+ * inset falls on this component the same way padding on its own host would. If the header
31
+ * needs padding for its other content, use `padding-inline-end` instead.
32
+ * - The example below only illustrates the `nav-id`/`id` contract. For the full page
33
+ * placement — header, logo, and the `<main>` sidebar layout — see wm-navigation's
34
+ * "Basic navigation" example.
19
35
  *
20
- * @example {html} Basic hamburger
36
+ * @example {html} nav-id / id pairing
21
37
  * <wm-navigation-hamburger nav-id="main-nav"></wm-navigation-hamburger>
22
38
  * <wm-navigation id="main-nav">...</wm-navigation>
23
39
  *
24
- * @example {react} Basic hamburger
40
+ * @example {react} navId / id pairing
25
41
  * <WmNavigationHamburger navId="main-nav" />
26
42
  * <WmNavigation id="main-nav">...</WmNavigation>
43
+ *
44
+ * @requiredSetup
45
+ * - `wm-navigation` — required companion; this component's `nav-id` (required) must match
46
+ * that element's `id`. No handler is needed for the toggle itself — clicking this button
47
+ * emits `wmNavigationHamburgerClicked` on `window`, which wm-navigation listens for and
48
+ * toggles its own `open` state — but without a matching `nav-id`/`id` pair, `aria-controls`
49
+ * and the toggle both silently fail to connect.
27
50
  */
28
51
  export class NavigationHamburger {
29
52
  constructor() {
@@ -59,7 +82,7 @@ export class NavigationHamburger {
59
82
  this.wmNavigationHamburgerClicked.emit();
60
83
  }
61
84
  render() {
62
- return (h(Host, { key: '966bcd988f8ee460899519969a759ffb16459baa', class: `hamburger ${this.open ? "nav-open" : "nav-closed"}` }, h("button", { key: 'b1e5c3cd46106943102bf5509a9251953b164c56', "aria-expanded": this.open, "aria-label": this.showNavMessage, onMouseEnter: () => showTooltip("right", this.el, this.showNavMessage), onMouseLeave: () => hideTooltip(), onFocus: () => this.isTabbing && showTooltip("right", this.el, this.showNavMessage), onBlur: () => hideTooltip(), onClick: () => this.handleClick() }, h("span", { key: 'a50f398cbdde9271cab48e6bc4eb9013fe8b4ba4', class: "svg-icon svg-menu" }))));
85
+ return (h(Host, { key: '6f135919a43b55f7c4fca79d79e9a5c201d84fdd', class: `hamburger ${this.open ? "nav-open" : "nav-closed"}` }, h("button", { key: '8d930f77ea878a4f7757084fe45178004cc8a74e', "aria-expanded": this.open, "aria-label": this.showNavMessage, onMouseEnter: () => showTooltip("right", this.el, this.showNavMessage), onMouseLeave: () => hideTooltip(), onFocus: () => this.isTabbing && showTooltip("right", this.el, this.showNavMessage), onBlur: () => hideTooltip(), onClick: () => this.handleClick() }, h("span", { key: '798de550cd68d4d3b2ce78036206175e3901e1c0', class: "svg-icon svg-menu" }))));
63
86
  }
64
87
  static get is() { return "wm-navigation-hamburger"; }
65
88
  static get encapsulation() { return "shadow"; }
@@ -3,12 +3,30 @@ import { h, Host } from "@stencil/core";
3
3
  * A single navigation link inside a wm-navigation. Renders as an anchor element with an
4
4
  * optional icon slot. Always used as a direct child of wm-navigation.
5
5
  *
6
+ * @category Navigation
7
+ *
6
8
  * @slot - Optional icon element displayed before the link text.
7
9
  *
10
+ * @accessibility
11
+ * - Rendered with `role="listitem"`.
12
+ * - The icon slot's wrapper carries `aria-hidden="true"`, so whatever is slotted there (an
13
+ * SVG, an icon-font element, an `<img>`) is already hidden from assistive tech — no need to
14
+ * add `aria-hidden` to it yourself.
15
+ *
8
16
  * @usageNotes
9
17
  * - Set `active` on the item that corresponds to the current route.
10
18
  * - Clicking an item emits `wmNavigationItemClicked`, which the parent wm-navigation listens
11
19
  * to in order to close the collapsible menu on narrow viewports.
20
+ * - Preferred, for an icon not already in Ripple's own set: an inline SVG referencing a shared
21
+ * sprite — `<svg width="1.5rem" height="1.5rem"><use href="...#icon-id"
22
+ * fill="currentColor"></use></svg>`. 24px (`1.5rem`) is the standard icon size for this slot.
23
+ * `fill="currentColor"` must be set explicitly — omitting it renders a fixed black icon
24
+ * instead of the active/hover color, since SVG's own default fill is black, not the
25
+ * inherited text color.
26
+ * - Ripple's bundled icon set is also available for icons it already includes (the
27
+ * `svg-icon svg-<name>` classes in Ripple's global styles). Avoid an icon font (e.g.
28
+ * Material Design Icons) or an `<img>` — neither can pick up the active/hover recoloring
29
+ * the way an SVG using `fill="currentColor"` can.
12
30
  *
13
31
  * @example {html} Basic navigation item
14
32
  * <wm-navigation-item href="/dashboard" text="Dashboard" active></wm-navigation-item>
@@ -18,12 +36,16 @@ import { h, Host } from "@stencil/core";
18
36
  *
19
37
  * @example {html} Navigation item with icon
20
38
  * <wm-navigation-item href="/reports" text="Reports">
21
- * <span class="svg-icon svg-chart"></span>
39
+ * <svg width="1.5rem" height="1.5rem">
40
+ * <use href="/images/icons.svg#chart" fill="currentColor"></use>
41
+ * </svg>
22
42
  * </wm-navigation-item>
23
43
  *
24
44
  * @example {react} Navigation item with icon
25
45
  * <WmNavigationItem href="/reports" text="Reports">
26
- * <span className="svg-icon svg-chart" />
46
+ * <svg width="1.5rem" height="1.5rem">
47
+ * <use href="/images/icons.svg#chart" fill="currentColor" />
48
+ * </svg>
27
49
  * </WmNavigationItem>
28
50
  */
29
51
  export class NavigationItem {
@@ -33,7 +55,7 @@ export class NavigationItem {
33
55
  this.active = undefined;
34
56
  }
35
57
  render() {
36
- return (h(Host, { key: '5c37c39e27b4602bcc53f2a1e118fb427b7a9a1a', role: "listitem" }, h("a", { key: 'ba3e7216ba1a5e7cb8d61dff61b353eeaaddee34', class: `link ${this.active ? "active" : ""}`, href: this.href, onClick: () => this.wmNavigationItemClicked.emit() }, h("div", { key: '9a35a2bd7f3474a182e187f8fe4b35904cb00862', class: "icon", "aria-hidden": "true" }, h("slot", { key: 'fb6858dafb750fcee200e57757dd86bbfc05cd23' })), h("div", { key: '6b2c933f73fd07746c3f3bcb656f9fc9563e88cd', class: "text" }, this.text))));
58
+ return (h(Host, { key: 'bbe3c0a165b8d7d4bf036e5a80b23eb11446b90e', role: "listitem" }, h("a", { key: '7f4ef86559f368dca39bd7a72ed05daafb539648', class: `link ${this.active ? "active" : ""}`, href: this.href, onClick: () => this.wmNavigationItemClicked.emit() }, h("div", { key: '8ae1aae920abe64829e87f2a107f1bf3eb752e50', class: "icon", "aria-hidden": "true" }, h("slot", { key: '1da830a8aae16100d5c99b5bfe7e80086f8a7baa' })), h("div", { key: '876286ffd8f555d840538a088051faeede3882ae', class: "text" }, this.text))));
37
59
  }
38
60
  static get is() { return "wm-navigation-item"; }
39
61
  static get encapsulation() { return "shadow"; }
@@ -26,50 +26,111 @@ import { globalMessages } from "../../global/intl";
26
26
  *
27
27
  * @usageNotes
28
28
  * - Use `wm-navigation-hamburger` (a separate component) as the external toggle. It communicates
29
- * with wm-navigation via the `wmNavigationHamburgerClicked` window event and a document-wide
30
- * lookup, so it does not need to be a DOM sibling of wm-navigation — place it in the page
31
- * header instead, at the leading edge before the logo, with room around it so it isn't flush
32
- * against neighboring header content.
29
+ * with wm-navigation via the `wmNavigationHamburgerClicked` window event, so it does not need
30
+ * to be a DOM sibling of wm-navigation — place it in the page header instead, at the leading
31
+ * edge before the logo. It already reserves its own touch-target padding on narrower
32
+ * viewports, so don't add further leading margin or padding on the host for that — but the
33
+ * gap between it and the logo is still the header's own layout to provide; the hamburger's
34
+ * box reserves no trailing space of its own (see wm-navigation-hamburger's docs).
33
35
  * - `open` can be set initially to `true` to start the navigation expanded.
34
- * - Navigation and main content scroll independently — no additional overflow handling is needed.
36
+ * - wm-navigation-item accepts an icon in its default slot — see its own docs for the
37
+ * preferred SVG-sprite pattern.
35
38
  *
36
39
  * Required host setup:
37
40
  * - Never set `display: none` or `visibility: hidden` on the host element or its wrapper
38
41
  * container. The component manages its own visibility internally, and hiding the container
39
42
  * from the outside blocks the overlay from appearing when the hamburger is triggered.
40
43
  * - Give the element that wraps wm-navigation and the page content (commonly `<main>`) a flex
41
- * or grid layout. Without one, the navigation and content stack instead of sitting side by
42
- * side as a sidebar on viewports 1024px and wider.
44
+ * or grid layout, and leave cross-axis alignment at its default (`align-items: stretch`,
45
+ * the default for both). This component's elevated surface, including its box-shadow, is
46
+ * sized to the host element's own height — overriding the default (e.g. `align-items:
47
+ * flex-start` or `center`) shrinks the host down to its item list's height, so the shadow
48
+ * clips partway down the page instead of running full height.
49
+ * - That flex/grid wrapper also needs a bounded height for real independent scrolling —
50
+ * `display: flex; align-items: stretch` alone does not create one, it only makes the
51
+ * navigation match whatever height the wrapper happens to end up. Give an ancestor
52
+ * (typically an app-shell wrapping the header and this wrapper) a fixed height such as
53
+ * `100vh`, make the wrapper itself `flex: 1; min-height: 0` within that shell, and give the
54
+ * actual content pane its own `overflow-y: auto; min-height: 0`. Skip it and the wrapper just
55
+ * grows to fit its tallest child, the whole document scrolls as one long page, and this
56
+ * component's own item list loses its independent scroll too.
43
57
  *
44
58
  * @example {html} Basic navigation
45
- * <header class="app-header">
46
- * <div class="app-header__hamburger">
59
+ * <style>
60
+ * .app-shell {
61
+ * display: flex;
62
+ * flex-direction: column;
63
+ * height: 100vh;
64
+ * }
65
+ * .app-header {
66
+ * flex: 0 0 auto;
67
+ * display: flex;
68
+ * align-items: center;
69
+ * padding-inline-end: 1.5rem;
70
+ * }
71
+ * .app-main {
72
+ * display: flex;
73
+ * align-items: stretch;
74
+ * flex: 1 1 auto;
75
+ * min-height: 0;
76
+ * }
77
+ * .app-main__content {
78
+ * overflow-y: auto;
79
+ * min-height: 0;
80
+ * }
81
+ * </style>
82
+ * <div class="app-shell">
83
+ * <header class="app-header">
47
84
  * <wm-navigation-hamburger nav-id="main-nav"></wm-navigation-hamburger>
48
- * </div>
49
- * <a class="app-header__logo" href="/">App Name</a>
50
- * </header>
51
- * <main class="app-main">
52
- * <wm-navigation id="main-nav">
53
- * <wm-navigation-item href="/dashboard" text="Dashboard" active></wm-navigation-item>
54
- * <wm-navigation-item href="/reports" text="Reports"></wm-navigation-item>
55
- * </wm-navigation>
56
- * <div class="app-main__content">Page content</div>
57
- * </main>
85
+ * <a class="app-header__logo" href="/">App Name</a>
86
+ * </header>
87
+ * <main class="app-main">
88
+ * <wm-navigation id="main-nav">
89
+ * <wm-navigation-item href="/dashboard" text="Dashboard" active>
90
+ * <svg width="1.5rem" height="1.5rem">
91
+ * <use href="/images/icons.svg#dashboard" fill="currentColor"></use>
92
+ * </svg>
93
+ * </wm-navigation-item>
94
+ * <wm-navigation-item href="/reports" text="Reports">
95
+ * <svg width="1.5rem" height="1.5rem">
96
+ * <use href="/images/icons.svg#chart" fill="currentColor"></use>
97
+ * </svg>
98
+ * </wm-navigation-item>
99
+ * </wm-navigation>
100
+ * <div class="app-main__content">Page content</div>
101
+ * </main>
102
+ * </div>
58
103
  *
59
104
  * @example {react} Basic navigation
60
- * <header className="app-header">
61
- * <div className="app-header__hamburger">
105
+ * <div style={{ display: "flex", flexDirection: "column", height: "100vh" }}>
106
+ * <header
107
+ * className="app-header"
108
+ * style={{ display: "flex", alignItems: "center", paddingInlineEnd: "1.5rem" }}
109
+ * >
62
110
  * <WmNavigationHamburger navId="main-nav" />
63
- * </div>
64
- * <a className="app-header__logo" href="/">App Name</a>
65
- * </header>
66
- * <main className="app-main">
67
- * <WmNavigation id="main-nav">
68
- * <WmNavigationItem href="/dashboard" text="Dashboard" active={true} />
69
- * <WmNavigationItem href="/reports" text="Reports" />
70
- * </WmNavigation>
71
- * <div className="app-main__content">Page content</div>
72
- * </main>
111
+ * <a className="app-header__logo" href="/">App Name</a>
112
+ * </header>
113
+ * <main
114
+ * className="app-main"
115
+ * style={{ display: "flex", alignItems: "stretch", flex: "1 1 auto", minHeight: 0 }}
116
+ * >
117
+ * <WmNavigation id="main-nav">
118
+ * <WmNavigationItem href="/dashboard" text="Dashboard" active={true}>
119
+ * <svg width="1.5rem" height="1.5rem">
120
+ * <use href="/images/icons.svg#dashboard" fill="currentColor" />
121
+ * </svg>
122
+ * </WmNavigationItem>
123
+ * <WmNavigationItem href="/reports" text="Reports">
124
+ * <svg width="1.5rem" height="1.5rem">
125
+ * <use href="/images/icons.svg#chart" fill="currentColor" />
126
+ * </svg>
127
+ * </WmNavigationItem>
128
+ * </WmNavigation>
129
+ * <div className="app-main__content" style={{ overflowY: "auto", minHeight: 0 }}>
130
+ * Page content
131
+ * </div>
132
+ * </main>
133
+ * </div>
73
134
  *
74
135
  * @requiredSetup
75
136
  * - `wm-navigation-item` — slot at least one as a child; each supplies a link the collapsible
@@ -176,9 +237,9 @@ export class Navigation {
176
237
  } }));
177
238
  }
178
239
  render() {
179
- return (h(Host, { key: '96933040f7f88edf4e52c5e0480712e1f15e8db6', role: "navigation", "aria-expanded": this.ariaExpanded, "aria-label": this.mainNavigationMessage }, this.open ? this.renderOverlay() : "", this.isCollapsible && (h("div", { key: '4658a3e22aa96a55dfb5b0211912805b683e26d2', class: "trapfocus", tabindex: this.open ? 0 : undefined, onFocus: () => this.focusLastItem() })), h("div", { key: 'cb3ae13600538706292ed27eeff3f70e33015975', class: "tray" }, h("div", { key: 'df934dfeb30d54294656dde2cfc78c95c6140e65', class: "toggle-wrapper" }, h("wm-button", { key: '478b6428b08703302a21f64d7adc58e6788e1803', ref: (el) => (this.toggleEl = el), class: "toggle", "button-type": "navigational", icon: this.open ? "#close" : "#menu", "icon-size": "2rem", tooltip: this.open ? globalMessages.close : globalMessages.open, "tooltip-position": "right", tabIndex: this.open ? undefined : -1, onClick: () => {
240
+ return (h(Host, { key: 'a15b95ca5769e6a996542f3fb0f1edf8928ed4ea', role: "navigation", "aria-expanded": this.ariaExpanded, "aria-label": this.mainNavigationMessage }, this.open ? this.renderOverlay() : "", this.isCollapsible && (h("div", { key: 'add1bb58939e3d076c7890aa1cb3efd932f977dc', class: "trapfocus", tabindex: this.open ? 0 : undefined, onFocus: () => this.focusLastItem() })), h("div", { key: '98491d3d97807417a13b677894ee452e89e9cea8', class: "tray" }, h("div", { key: 'cf058b8b33a07598f19318977e26e652304faf4f', class: "toggle-wrapper" }, h("wm-button", { key: '7e8d936e3fdc9c718bf9442b6840464a6caddcab', ref: (el) => (this.toggleEl = el), class: "toggle", "button-type": "navigational", icon: this.open ? "#close" : "#menu", "icon-size": "2rem", tooltip: this.open ? globalMessages.close : globalMessages.open, "tooltip-position": "right", tabIndex: this.open ? undefined : -1, onClick: () => {
180
241
  this.open = !this.open;
181
- } })), h("ul", { key: '32035dea4487af347ec5e56c3010bdf8b84d2c12', class: "navlist" }, h("slot", { key: 'a3512e42e16da5ad5591fa1f1f5211dc5b1576ee' }))), this.isCollapsible && (h("div", { key: '8e77d6376ccc683560ec214d2ec7d694aa417789', class: "trapfocus", tabindex: this.open ? 0 : undefined, onFocus: () => this.toggleEl.focus() }))));
242
+ } })), h("ul", { key: 'e90219ba02e6a2330095e12ee4793ac82100fc5d', class: "navlist" }, h("slot", { key: '83e672cf048480abbef358f8249cb1622e2fad3c' }))), this.isCollapsible && (h("div", { key: '3c16362bebb241d693aa6aa8fd7226a34039901d', class: "trapfocus", tabindex: this.open ? 0 : undefined, onFocus: () => this.toggleEl.focus() }))));
182
243
  }
183
244
  static get is() { return "wm-navigation"; }
184
245
  static get encapsulation() { return "shadow"; }
@@ -434,7 +434,6 @@ export class TagInput {
434
434
  const addedNodes = Array.from(record.addedNodes);
435
435
  if (addedNodes.length > 0) {
436
436
  this.assignOptionIds();
437
- // reassign rather than push: Stencil only re-renders on a state reference change
438
437
  const newNodes = addedNodes.filter((n) => !this.tagsList.includes(n));
439
438
  if (newNodes.length > 0) {
440
439
  this.tagsList = [...this.tagsList, ...newNodes];
@@ -1077,10 +1076,10 @@ export class TagInput {
1077
1076
  }
1078
1077
  }
1079
1078
  render() {
1080
- return (h("div", { key: '0506ec7b7255034f0fa8132d813727a72895b86a', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '8f8726c6d9e1a524b6c9b9aa90dee9748fc93635', class: "label-wrapper" }, h("label", { key: '1f9b00a496fcd9923800471cc77e8c9c65111a8b', class: "label", htmlFor: "input", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label), this.labelPosition !== "none" && this.requiredField && (h("div", { key: '3109f9ca0c4dbdfdde971b9c30c65e90a3d2c573', class: "required", "aria-hidden": "true" }, "*"))), h("div", { key: 'a3bfc9d17aa1df1ff84e807cd21bfb52dd3690de', class: `field-wrapper ${this.el.shadowRoot.activeElement === this.inputEl ? "focused" : ""} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.fieldWrapperEl = el) }, h("div", { key: 'be11a9727d97017988960d9458bf018e27f25c3b', class: "upper-row" }, h("div", { key: '9ae64eac0452889a0dbc49630a731f297c92c8c5', class: "svg-icon svg-search" }), h("div", { key: '07372a530d3bd24b8ae783d0bed5a3e095dbeeeb', class: `tags-and-input-wrapper` }, h("ul", { key: '2b16ed13429d52b1ad44b1aea45087f34e05997f', ref: (el) => (this.tagAreaEl = el), class: `tag-area ${this.taggedOptions.length === 0 && "empty"} ${this.isKeying ? "user-is-keying" : ""}`, role: "listbox", "aria-activedescendant": this.focusedTag ? this.focusedTag.id : null, "aria-orientation": "horizontal", "aria-labelledby": "sr-instructions", tabindex: this._tagEls.length > 0 ? 0 : -1, "aria-describedby": `info max-tags`, onFocus: (ev) => this.handleTagAreaFocus(ev), onBlur: (ev) => {
1079
+ return (h("div", { key: 'dea9ac53c8001429751e759746085ebb7f9bcc98', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: 'd3956d7ac5042bf4e0629173cebe2e46ea7e9a3b', class: "label-wrapper" }, h("label", { key: '83e407057a18e0e6d21af52a35e7c57af40bf147', class: "label", htmlFor: "input", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label), this.labelPosition !== "none" && this.requiredField && (h("div", { key: '70d92671c54ad690834de1f6873aec20e5f4fd80', class: "required", "aria-hidden": "true" }, "*"))), h("div", { key: '79dba949ca7f4e73d8275e6e8c07e7737c4cef43', class: `field-wrapper ${this.el.shadowRoot.activeElement === this.inputEl ? "focused" : ""} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.fieldWrapperEl = el) }, h("div", { key: '24179f798549b936c2e2a90b43c377d5c7df155b', class: "upper-row" }, h("div", { key: '799d830b6ff63dec947f776cdcebce017f83f9bb', class: "svg-icon svg-search" }), h("div", { key: 'eb31ec918a327e87176db9bdda33e160eb40cf29', class: `tags-and-input-wrapper` }, h("ul", { key: 'cb5a56da3f08bac148853ec9e6bbf0f755cc8643', ref: (el) => (this.tagAreaEl = el), class: `tag-area ${this.taggedOptions.length === 0 && "empty"} ${this.isKeying ? "user-is-keying" : ""}`, role: "listbox", "aria-activedescendant": this.focusedTag ? this.focusedTag.id : null, "aria-orientation": "horizontal", "aria-labelledby": "sr-instructions", tabindex: this._tagEls.length > 0 ? 0 : -1, "aria-describedby": `info max-tags`, onFocus: (ev) => this.handleTagAreaFocus(ev), onBlur: (ev) => {
1081
1080
  this.focusedTagIndex = undefined;
1082
1081
  this.handleBlur(ev);
1083
- }, onKeyDown: (ev) => this.handleTagAreaKeyDown(ev) }, this.renderTags()), h("div", { key: '3888229daf857f5c86ee4112d0762b9be5b3b099', class: "sr-only", id: "sr-instructions" }, this.label, ". ", this.tagAreaInstructions), this.isDropdown && this.renderDropdownInput(), this.isTable && this.renderTableInput()), this.isDropdown && (h("div", { key: 'fce52fa11fb5403c1dd7ac9c2dca11bbe9402665', class: "character-count" }, this.charCount, "/", this.characterLimit))), this.renderTagCounter(), this.isDropdown && this.renderDropdown()), this.info && (h("div", { key: '1befdf76851f651878ade4110d8aec2e0238cdbe', id: "info", class: "info-text" }, this.info)), h("div", { key: '4bcd00c2fa6d4f00c79fc8a752a3dd57594ce9a1', id: "error" }, this.errorMessage), h("div", { key: '9d6da4e7accb62f9ad05dbdf0c5827ea18ade783', class: "sr-only", "aria-live": "polite", ref: (el) => (this.liveRegionEl = el), "aria-atomic": "true" }, this.liveRegionMessage), this.isTable && this.renderTable()));
1082
+ }, onKeyDown: (ev) => this.handleTagAreaKeyDown(ev) }, this.renderTags()), h("div", { key: 'eb39838bb6fa30ed96864d605e58d8d28291bb09', class: "sr-only", id: "sr-instructions" }, this.label, ". ", this.tagAreaInstructions), this.isDropdown && this.renderDropdownInput(), this.isTable && this.renderTableInput()), this.isDropdown && (h("div", { key: '988f231710b140862bf4ff637611b3e7172e7e80', class: "character-count" }, this.charCount, "/", this.characterLimit))), this.renderTagCounter(), this.isDropdown && this.renderDropdown()), this.info && (h("div", { key: '6826b1f0620e14e7e921314085523cf1c3623164', id: "info", class: "info-text" }, this.info)), h("div", { key: '28632b831feb09801e7036f7b458303a5daee980', id: "error" }, this.errorMessage), h("div", { key: '339b33e97121b8abb5115e516e61a2fa56e4a34e', class: "sr-only", "aria-live": "polite", ref: (el) => (this.liveRegionEl = el), "aria-atomic": "true" }, this.liveRegionMessage), this.isTable && this.renderTable()));
1084
1083
  }
1085
1084
  static get is() { return "wm-tag-input"; }
1086
1085
  static get encapsulation() { return "shadow"; }
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2026-09-08T13:22:53",
2
+ "timestamp": "2026-09-15T19:20:00",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.21.0",
@@ -7683,15 +7683,15 @@
7683
7683
  },
7684
7684
  {
7685
7685
  "name": "usageNotes",
7686
- "text": "- Use `wm-navigation-hamburger` (a separate component) as the external toggle. It communicates\n with wm-navigation via the `wmNavigationHamburgerClicked` window event and a document-wide\n lookup, so it does not need to be a DOM sibling of wm-navigation — place it in the page\n header instead, at the leading edge before the logo, with room around it so it isn't flush\n against neighboring header content.\n- `open` can be set initially to `true` to start the navigation expanded.\n- Navigation and main content scroll independently — no additional overflow handling is needed.\n\nRequired host setup:\n- Never set `display: none` or `visibility: hidden` on the host element or its wrapper\n container. The component manages its own visibility internally, and hiding the container\n from the outside blocks the overlay from appearing when the hamburger is triggered.\n- Give the element that wraps wm-navigation and the page content (commonly `<main>`) a flex\n or grid layout. Without one, the navigation and content stack instead of sitting side by\n side as a sidebar on viewports 1024px and wider."
7686
+ "text": "- Use `wm-navigation-hamburger` (a separate component) as the external toggle. It communicates\n with wm-navigation via the `wmNavigationHamburgerClicked` window event, so it does not need\n to be a DOM sibling of wm-navigation — place it in the page header instead, at the leading\n edge before the logo. It already reserves its own touch-target padding on narrower\n viewports, so don't add further leading margin or padding on the host for that — but the\n gap between it and the logo is still the header's own layout to provide; the hamburger's\n box reserves no trailing space of its own (see wm-navigation-hamburger's docs).\n- `open` can be set initially to `true` to start the navigation expanded.\n- wm-navigation-item accepts an icon in its default slot — see its own docs for the\n preferred SVG-sprite pattern.\n\nRequired host setup:\n- Never set `display: none` or `visibility: hidden` on the host element or its wrapper\n container. The component manages its own visibility internally, and hiding the container\n from the outside blocks the overlay from appearing when the hamburger is triggered.\n- Give the element that wraps wm-navigation and the page content (commonly `<main>`) a flex\n or grid layout, and leave cross-axis alignment at its default (`align-items: stretch`,\n the default for both). This component's elevated surface, including its box-shadow, is\n sized to the host element's own height — overriding the default (e.g. `align-items:\n flex-start` or `center`) shrinks the host down to its item list's height, so the shadow\n clips partway down the page instead of running full height.\n- That flex/grid wrapper also needs a bounded height for real independent scrolling —\n `display: flex; align-items: stretch` alone does not create one, it only makes the\n navigation match whatever height the wrapper happens to end up. Give an ancestor\n (typically an app-shell wrapping the header and this wrapper) a fixed height such as\n `100vh`, make the wrapper itself `flex: 1; min-height: 0` within that shell, and give the\n actual content pane its own `overflow-y: auto; min-height: 0`. Skip it and the wrapper just\n grows to fit its tallest child, the whole document scrolls as one long page, and this\n component's own item list loses its independent scroll too."
7687
7687
  },
7688
7688
  {
7689
7689
  "name": "example",
7690
- "text": "{html} Basic navigation\n<header class=\"app-header\">\n<div class=\"app-header__hamburger\">\n<wm-navigation-hamburger nav-id=\"main-nav\"></wm-navigation-hamburger>\n</div>\n<a class=\"app-header__logo\" href=\"/\">App Name</a>\n</header>\n<main class=\"app-main\">\n<wm-navigation id=\"main-nav\">\n<wm-navigation-item href=\"/dashboard\" text=\"Dashboard\" active></wm-navigation-item>\n<wm-navigation-item href=\"/reports\" text=\"Reports\"></wm-navigation-item>\n</wm-navigation>\n<div class=\"app-main__content\">Page content</div>\n</main>"
7690
+ "text": "{html} Basic navigation\n<style>\n.app-shell {\ndisplay: flex;\nflex-direction: column;\nheight: 100vh;\n}\n.app-header {\nflex: 0 0 auto;\ndisplay: flex;\nalign-items: center;\npadding-inline-end: 1.5rem;\n}\n.app-main {\ndisplay: flex;\nalign-items: stretch;\nflex: 1 1 auto;\nmin-height: 0;\n}\n.app-main__content {\noverflow-y: auto;\nmin-height: 0;\n}\n</style>\n<div class=\"app-shell\">\n<header class=\"app-header\">\n<wm-navigation-hamburger nav-id=\"main-nav\"></wm-navigation-hamburger>\n<a class=\"app-header__logo\" href=\"/\">App Name</a>\n</header>\n<main class=\"app-main\">\n<wm-navigation id=\"main-nav\">\n<wm-navigation-item href=\"/dashboard\" text=\"Dashboard\" active>\n<svg width=\"1.5rem\" height=\"1.5rem\">\n <use href=\"/images/icons.svg#dashboard\" fill=\"currentColor\"></use>\n</svg>\n</wm-navigation-item>\n<wm-navigation-item href=\"/reports\" text=\"Reports\">\n<svg width=\"1.5rem\" height=\"1.5rem\">\n <use href=\"/images/icons.svg#chart\" fill=\"currentColor\"></use>\n</svg>\n</wm-navigation-item>\n</wm-navigation>\n<div class=\"app-main__content\">Page content</div>\n</main>\n</div>"
7691
7691
  },
7692
7692
  {
7693
7693
  "name": "example",
7694
- "text": "{react} Basic navigation\n<header className=\"app-header\">\n<div className=\"app-header__hamburger\">\n<WmNavigationHamburger navId=\"main-nav\" />\n</div>\n<a className=\"app-header__logo\" href=\"/\">App Name</a>\n</header>\n<main className=\"app-main\">\n<WmNavigation id=\"main-nav\">\n<WmNavigationItem href=\"/dashboard\" text=\"Dashboard\" active={true} />\n<WmNavigationItem href=\"/reports\" text=\"Reports\" />\n</WmNavigation>\n<div className=\"app-main__content\">Page content</div>\n</main>"
7694
+ "text": "{react} Basic navigation\n<div style={{ display: \"flex\", flexDirection: \"column\", height: \"100vh\" }}>\n<header\nclassName=\"app-header\"\nstyle={{ display: \"flex\", alignItems: \"center\", paddingInlineEnd: \"1.5rem\" }}\n>\n<WmNavigationHamburger navId=\"main-nav\" />\n<a className=\"app-header__logo\" href=\"/\">App Name</a>\n</header>\n<main\nclassName=\"app-main\"\nstyle={{ display: \"flex\", alignItems: \"stretch\", flex: \"1 1 auto\", minHeight: 0 }}\n>\n<WmNavigation id=\"main-nav\">\n<WmNavigationItem href=\"/dashboard\" text=\"Dashboard\" active={true}>\n<svg width=\"1.5rem\" height=\"1.5rem\">\n <use href=\"/images/icons.svg#dashboard\" fill=\"currentColor\" />\n</svg>\n</WmNavigationItem>\n<WmNavigationItem href=\"/reports\" text=\"Reports\">\n<svg width=\"1.5rem\" height=\"1.5rem\">\n <use href=\"/images/icons.svg#chart\" fill=\"currentColor\" />\n</svg>\n</WmNavigationItem>\n</WmNavigation>\n<div className=\"app-main__content\" style={{ overflowY: \"auto\", minHeight: 0 }}>\nPage content\n</div>\n</main>\n</div>"
7695
7695
  },
7696
7696
  {
7697
7697
  "name": "requiredSetup",
@@ -7800,8 +7800,12 @@
7800
7800
  "filePath": "src/components/wm-navigation/wm-navigation-hamburger.tsx",
7801
7801
  "encapsulation": "shadow",
7802
7802
  "tag": "wm-navigation-hamburger",
7803
- "docs": "Toggle button for the collapsible wm-navigation sidebar. Renders a hamburger/menu icon\nbutton that communicates with wm-navigation via window events. Place immediately before\nthe associated wm-navigation element in the DOM.",
7803
+ "docs": "Toggle button for the collapsible wm-navigation sidebar. Renders a hamburger/menu icon\nbutton that communicates with wm-navigation via a window event and a document-wide lookup,\nnot DOM adjacency — place it wherever the page's header needs it, typically at the header's\nleading edge, before the logo.",
7804
7804
  "docsTags": [
7805
+ {
7806
+ "name": "category",
7807
+ "text": "Navigation"
7808
+ },
7805
7809
  {
7806
7810
  "name": "keyboardInteraction",
7807
7811
  "text": "- **Enter / Space**: Toggles the navigation open/closed."
@@ -7812,15 +7816,19 @@
7812
7816
  },
7813
7817
  {
7814
7818
  "name": "usageNotes",
7815
- "text": "- `nav-id` is required; it must match the `id` on the associated wm-navigation element.\n- Place this component immediately before the wm-navigation element in the DOM."
7819
+ "text": "- `nav-id` is required; it must match the `id` on the associated wm-navigation element.\n- Renders nothing and takes no layout space on viewports 1024px and wider (its internal\n button is hidden there). On narrower viewports the host is exactly a 60x60px box with the\n icon centered inside; that sizing already satisfies touch-target minimums, so don't add\n further leading margin or padding on the host for that — doing so stacks on top of the\n component's own and opens a visible gap at the header's outer edge. The box reserves no\n space on its trailing side, though — spacing between it and the next header element\n (typically a logo) is still up to the app's own header layout to provide.\n- This component must be the header's true first child at its true leading edge, so don't\n give the header uniform padding (or `padding-inline-start`) for breathing room — that\n inset falls on this component the same way padding on its own host would. If the header\n needs padding for its other content, use `padding-inline-end` instead.\n- The example below only illustrates the `nav-id`/`id` contract. For the full page\n placement — header, logo, and the `<main>` sidebar layout — see wm-navigation's\n \"Basic navigation\" example."
7816
7820
  },
7817
7821
  {
7818
7822
  "name": "example",
7819
- "text": "{html} Basic hamburger\n<wm-navigation-hamburger nav-id=\"main-nav\"></wm-navigation-hamburger>\n<wm-navigation id=\"main-nav\">...</wm-navigation>"
7823
+ "text": "{html} nav-id / id pairing\n<wm-navigation-hamburger nav-id=\"main-nav\"></wm-navigation-hamburger>\n<wm-navigation id=\"main-nav\">...</wm-navigation>"
7820
7824
  },
7821
7825
  {
7822
7826
  "name": "example",
7823
- "text": "{react} Basic hamburger\n<WmNavigationHamburger navId=\"main-nav\" />\n<WmNavigation id=\"main-nav\">...</WmNavigation>"
7827
+ "text": "{react} navId / id pairing\n<WmNavigationHamburger navId=\"main-nav\" />\n<WmNavigation id=\"main-nav\">...</WmNavigation>"
7828
+ },
7829
+ {
7830
+ "name": "requiredSetup",
7831
+ "text": "- `wm-navigation` — required companion; this component's `nav-id` (required) must match\n that element's `id`. No handler is needed for the toggle itself — clicking this button\n emits `wmNavigationHamburgerClicked` on `window`, which wm-navigation listens for and\n toggles its own `open` state — but without a matching `nav-id`/`id` pair, `aria-controls`\n and the toggle both silently fail to connect."
7824
7832
  }
7825
7833
  ],
7826
7834
  "usage": {},
@@ -7913,13 +7921,21 @@
7913
7921
  "tag": "wm-navigation-item",
7914
7922
  "docs": "A single navigation link inside a wm-navigation. Renders as an anchor element with an\noptional icon slot. Always used as a direct child of wm-navigation.",
7915
7923
  "docsTags": [
7924
+ {
7925
+ "name": "category",
7926
+ "text": "Navigation"
7927
+ },
7916
7928
  {
7917
7929
  "name": "slot",
7918
7930
  "text": "- Optional icon element displayed before the link text."
7919
7931
  },
7932
+ {
7933
+ "name": "accessibility",
7934
+ "text": "- Rendered with `role=\"listitem\"`.\n- The icon slot's wrapper carries `aria-hidden=\"true\"`, so whatever is slotted there (an\n SVG, an icon-font element, an `<img>`) is already hidden from assistive tech — no need to\n add `aria-hidden` to it yourself."
7935
+ },
7920
7936
  {
7921
7937
  "name": "usageNotes",
7922
- "text": "- Set `active` on the item that corresponds to the current route.\n- Clicking an item emits `wmNavigationItemClicked`, which the parent wm-navigation listens\n to in order to close the collapsible menu on narrow viewports."
7938
+ "text": "- Set `active` on the item that corresponds to the current route.\n- Clicking an item emits `wmNavigationItemClicked`, which the parent wm-navigation listens\n to in order to close the collapsible menu on narrow viewports.\n- Preferred, for an icon not already in Ripple's own set: an inline SVG referencing a shared\n sprite — `<svg width=\"1.5rem\" height=\"1.5rem\"><use href=\"...#icon-id\"\n fill=\"currentColor\"></use></svg>`. 24px (`1.5rem`) is the standard icon size for this slot.\n `fill=\"currentColor\"` must be set explicitly — omitting it renders a fixed black icon\n instead of the active/hover color, since SVG's own default fill is black, not the\n inherited text color.\n- Ripple's bundled icon set is also available for icons it already includes (the\n `svg-icon svg-<name>` classes in Ripple's global styles). Avoid an icon font (e.g.\n Material Design Icons) or an `<img>` — neither can pick up the active/hover recoloring\n the way an SVG using `fill=\"currentColor\"` can."
7923
7939
  },
7924
7940
  {
7925
7941
  "name": "example",
@@ -7931,11 +7947,11 @@
7931
7947
  },
7932
7948
  {
7933
7949
  "name": "example",
7934
- "text": "{html} Navigation item with icon\n<wm-navigation-item href=\"/reports\" text=\"Reports\">\n<span class=\"svg-icon svg-chart\"></span>\n</wm-navigation-item>"
7950
+ "text": "{html} Navigation item with icon\n<wm-navigation-item href=\"/reports\" text=\"Reports\">\n<svg width=\"1.5rem\" height=\"1.5rem\">\n<use href=\"/images/icons.svg#chart\" fill=\"currentColor\"></use>\n</svg>\n</wm-navigation-item>"
7935
7951
  },
7936
7952
  {
7937
7953
  "name": "example",
7938
- "text": "{react} Navigation item with icon\n<WmNavigationItem href=\"/reports\" text=\"Reports\">\n<span className=\"svg-icon svg-chart\" />\n</WmNavigationItem>"
7954
+ "text": "{react} Navigation item with icon\n<WmNavigationItem href=\"/reports\" text=\"Reports\">\n<svg width=\"1.5rem\" height=\"1.5rem\">\n<use href=\"/images/icons.svg#chart\" fill=\"currentColor\" />\n</svg>\n</WmNavigationItem>"
7939
7955
  }
7940
7956
  ],
7941
7957
  "usage": {},
@@ -1098,7 +1098,7 @@
1098
1098
  },
1099
1099
  {
1100
1100
  "tag": "wm-navigation-hamburger",
1101
- "description": "Toggle button for the collapsible wm-navigation sidebar. Renders a hamburger/menu icon\nbutton that communicates with wm-navigation via window events. Place immediately before\nthe associated wm-navigation element in the DOM.",
1101
+ "description": "Toggle button for the collapsible wm-navigation sidebar. Renders a hamburger/menu icon\nbutton that communicates with wm-navigation via a window event and a document-wide lookup,\nnot DOM adjacency — place it wherever the page's header needs it, typically at the header's\nleading edge, before the logo.",
1102
1102
  "props": [
1103
1103
  {
1104
1104
  "name": "navId",
@@ -27,6 +27,8 @@
27
27
  | **Timepicker** | `wm-timepicker` | `wm-timepicker.md` | Form Inputs |
28
28
  | **Uploader** | `wm-uploader` | `wm-uploader.md` | Form Inputs |
29
29
  | **Navigation** | `wm-navigation` | `wm-navigation.md` | Navigation |
30
+ | **Navigation Hamburger** | `wm-navigation-hamburger` | `wm-navigation-hamburger.md` | Navigation |
31
+ | **Navigation Item** | `wm-navigation-item` | `wm-navigation-item.md` | Navigation |
30
32
  | **Navigator** | `wm-navigator` | `wm-navigator.md` | Navigation |
31
33
  | **Pagination** | `wm-pagination` | `wm-pagination.md` | Navigation |
32
34
  | **Tabs** | `wm-tab-list` | `wm-tab-list.md` | Navigation |