@getflip/swirl-components 0.297.0 → 0.299.0

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 (113) hide show
  1. package/README.md +4 -4
  2. package/components.json +8 -4
  3. package/dist/cjs/swirl-action-list_2.cjs.entry.js +2 -2
  4. package/dist/cjs/swirl-app-layout_5.cjs.entry.js +7 -7
  5. package/dist/cjs/swirl-banner.cjs.entry.js +2 -2
  6. package/dist/cjs/swirl-button.cjs.entry.js +3 -3
  7. package/dist/cjs/swirl-chip.cjs.entry.js +2 -2
  8. package/dist/cjs/swirl-date-input.cjs.entry.js +2 -2
  9. package/dist/cjs/swirl-icon-check-small_2.cjs.entry.js +3 -3
  10. package/dist/cjs/swirl-icon-error_3.cjs.entry.js +2 -2
  11. package/dist/cjs/swirl-inline-status.cjs.entry.js +2 -2
  12. package/dist/cjs/swirl-lightbox.cjs.entry.js +3 -2
  13. package/dist/cjs/swirl-menu.cjs.entry.js +3 -3
  14. package/dist/cjs/swirl-resource-list-file-item.cjs.entry.js +2 -2
  15. package/dist/cjs/swirl-search.cjs.entry.js +2 -2
  16. package/dist/cjs/swirl-skeleton-box.cjs.entry.js +4 -4
  17. package/dist/cjs/swirl-text-input.cjs.entry.js +2 -2
  18. package/dist/cjs/swirl-time-input.cjs.entry.js +2 -2
  19. package/dist/cjs/swirl-toast.cjs.entry.js +2 -2
  20. package/dist/collection/assets/pdfjs/pdf.worker.min.js +1 -1
  21. package/dist/collection/components/swirl-action-list-item/swirl-action-list-item.js +2 -2
  22. package/dist/collection/components/swirl-app-layout/swirl-app-layout.js +5 -5
  23. package/dist/collection/components/swirl-banner/swirl-banner.js +2 -2
  24. package/dist/collection/components/swirl-button/swirl-button.js +3 -3
  25. package/dist/collection/components/swirl-chip/swirl-chip.js +2 -2
  26. package/dist/collection/components/swirl-date-input/swirl-date-input.js +2 -2
  27. package/dist/collection/components/swirl-inline-error/swirl-inline-error.js +2 -2
  28. package/dist/collection/components/swirl-inline-status/swirl-inline-status.js +2 -2
  29. package/dist/collection/components/swirl-lightbox/swirl-lightbox.js +3 -2
  30. package/dist/collection/components/swirl-lightbox/swirl-lightbox.stories.js +1 -1
  31. package/dist/collection/components/swirl-menu/swirl-menu.js +3 -3
  32. package/dist/collection/components/swirl-option-list-item/swirl-option-list-item.js +3 -3
  33. package/dist/collection/components/swirl-resource-list-file-item/swirl-resource-list-file-item.js +2 -2
  34. package/dist/collection/components/swirl-resource-list-item/swirl-resource-list-item.js +2 -2
  35. package/dist/collection/components/swirl-search/swirl-search.js +2 -2
  36. package/dist/collection/components/swirl-skeleton-box/swirl-skeleton-box.css +4 -0
  37. package/dist/collection/components/swirl-skeleton-box/swirl-skeleton-box.js +4 -4
  38. package/dist/collection/components/swirl-text-input/swirl-text-input.js +2 -2
  39. package/dist/collection/components/swirl-time-input/swirl-time-input.js +2 -2
  40. package/dist/collection/components/swirl-toast/swirl-toast.js +2 -2
  41. package/dist/components/assets/pdfjs/pdf.worker.min.js +1 -1
  42. package/dist/components/swirl-action-list-item2.js +2 -2
  43. package/dist/components/swirl-app-layout2.js +5 -5
  44. package/dist/components/swirl-banner.js +2 -2
  45. package/dist/components/swirl-button2.js +3 -3
  46. package/dist/components/swirl-chip.js +2 -2
  47. package/dist/components/swirl-date-input.js +2 -2
  48. package/dist/components/swirl-inline-error2.js +2 -2
  49. package/dist/components/swirl-inline-status.js +2 -2
  50. package/dist/components/swirl-lightbox.js +3 -2
  51. package/dist/components/swirl-menu.js +3 -3
  52. package/dist/components/swirl-option-list-item2.js +3 -3
  53. package/dist/components/swirl-resource-list-file-item.js +2 -2
  54. package/dist/components/swirl-resource-list-item2.js +2 -2
  55. package/dist/components/swirl-search.js +2 -2
  56. package/dist/components/swirl-skeleton-box.js +4 -4
  57. package/dist/components/swirl-text-input2.js +2 -2
  58. package/dist/components/swirl-time-input.js +2 -2
  59. package/dist/components/swirl-toast2.js +2 -2
  60. package/dist/esm/swirl-action-list_2.entry.js +2 -2
  61. package/dist/esm/swirl-app-layout_5.entry.js +7 -7
  62. package/dist/esm/swirl-banner.entry.js +2 -2
  63. package/dist/esm/swirl-button.entry.js +3 -3
  64. package/dist/esm/swirl-chip.entry.js +2 -2
  65. package/dist/esm/swirl-date-input.entry.js +2 -2
  66. package/dist/esm/swirl-icon-check-small_2.entry.js +3 -3
  67. package/dist/esm/swirl-icon-error_3.entry.js +2 -2
  68. package/dist/esm/swirl-inline-status.entry.js +2 -2
  69. package/dist/esm/swirl-lightbox.entry.js +3 -2
  70. package/dist/esm/swirl-menu.entry.js +3 -3
  71. package/dist/esm/swirl-resource-list-file-item.entry.js +2 -2
  72. package/dist/esm/swirl-search.entry.js +2 -2
  73. package/dist/esm/swirl-skeleton-box.entry.js +4 -4
  74. package/dist/esm/swirl-text-input.entry.js +2 -2
  75. package/dist/esm/swirl-time-input.entry.js +2 -2
  76. package/dist/esm/swirl-toast.entry.js +2 -2
  77. package/dist/swirl-components/p-2d148cf8.entry.js +1 -0
  78. package/dist/swirl-components/p-3c5b114e.entry.js +1 -0
  79. package/dist/swirl-components/p-4372c68d.entry.js +1 -0
  80. package/dist/swirl-components/p-58ab0d31.entry.js +1 -0
  81. package/dist/swirl-components/p-5bea6fd3.entry.js +1 -0
  82. package/dist/swirl-components/p-7800ca4d.entry.js +1 -0
  83. package/dist/swirl-components/p-820fbb17.entry.js +1 -0
  84. package/dist/swirl-components/p-829fff09.entry.js +1 -0
  85. package/dist/swirl-components/p-99889b7b.entry.js +1 -0
  86. package/dist/swirl-components/{p-415a1080.entry.js → p-a36b160c.entry.js} +1 -1
  87. package/dist/swirl-components/p-ca27d895.entry.js +1 -0
  88. package/dist/swirl-components/p-cc758401.entry.js +1 -0
  89. package/dist/swirl-components/p-cd70ba86.entry.js +1 -0
  90. package/dist/swirl-components/p-ce86d711.entry.js +1 -0
  91. package/dist/swirl-components/p-ea76572f.entry.js +1 -0
  92. package/dist/swirl-components/p-f29f30f3.entry.js +1 -0
  93. package/dist/swirl-components/p-f71adfa0.entry.js +1 -0
  94. package/dist/swirl-components/swirl-components.esm.js +1 -1
  95. package/dist/types/components/swirl-skeleton-box/swirl-skeleton-box.d.ts +1 -1
  96. package/package.json +1 -1
  97. package/vscode-data.json +3 -0
  98. package/dist/swirl-components/p-0083a620.entry.js +0 -1
  99. package/dist/swirl-components/p-151d50a5.entry.js +0 -1
  100. package/dist/swirl-components/p-16282e45.entry.js +0 -1
  101. package/dist/swirl-components/p-1abf02f9.entry.js +0 -1
  102. package/dist/swirl-components/p-21bf69e8.entry.js +0 -1
  103. package/dist/swirl-components/p-360a7193.entry.js +0 -1
  104. package/dist/swirl-components/p-68300fb3.entry.js +0 -1
  105. package/dist/swirl-components/p-6dd2c30a.entry.js +0 -1
  106. package/dist/swirl-components/p-7da150e3.entry.js +0 -1
  107. package/dist/swirl-components/p-7e51e859.entry.js +0 -1
  108. package/dist/swirl-components/p-8489a387.entry.js +0 -1
  109. package/dist/swirl-components/p-9122a6b8.entry.js +0 -1
  110. package/dist/swirl-components/p-c88d6162.entry.js +0 -1
  111. package/dist/swirl-components/p-e42f25e9.entry.js +0 -1
  112. package/dist/swirl-components/p-f4975e1f.entry.js +0 -1
  113. package/dist/swirl-components/p-f4c52863.entry.js +0 -1
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Swirl Web Component Library
2
2
 
3
- The Swirl Web Component Library provides a framework-agnostic foundation for UI
4
- development for the Flip App. It implements a set of solid UI components that
5
- are composable, performant, accessible and well-tested, while also satisfying
6
- the UX and UI design requirements of the Swirl Design System.
3
+ The Swirl Web Component library provides a framework-agnostic foundation for UI
4
+ development for the Flip apps and integrations. It implements a set of solid UI
5
+ components that are composable, performant, accessible and well-tested, while
6
+ also satisfying the UX and UI design requirements of the Swirl Design System.
7
7
 
8
8
  [Check the Documentation](https://swirl-storybook.flip-app.dev/)
package/components.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2025-02-24T15:25:58",
2
+ "timestamp": "2025-03-04T09:18:35",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.18.1",
@@ -50982,10 +50982,10 @@
50982
50982
  },
50983
50983
  {
50984
50984
  "name": "borderRadius",
50985
- "type": "\"base\" | \"pill\" | \"s\" | \"sm\"",
50985
+ "type": "\"base\" | \"none\" | \"pill\" | \"s\" | \"sm\"",
50986
50986
  "complexType": {
50987
50987
  "original": "SwirlSkeletonBoxBorderRadius",
50988
- "resolved": "\"base\" | \"pill\" | \"s\" | \"sm\"",
50988
+ "resolved": "\"base\" | \"none\" | \"pill\" | \"s\" | \"sm\"",
50989
50989
  "references": {
50990
50990
  "SwirlSkeletonBoxBorderRadius": {
50991
50991
  "location": "local",
@@ -51005,6 +51005,10 @@
51005
51005
  "value": "base",
51006
51006
  "type": "string"
51007
51007
  },
51008
+ {
51009
+ "value": "none",
51010
+ "type": "string"
51011
+ },
51008
51012
  {
51009
51013
  "value": "pill",
51010
51014
  "type": "string"
@@ -62188,7 +62192,7 @@
62188
62192
  "path": "src/components/swirl-shell-navigation-item/swirl-shell-navigation-item.tsx"
62189
62193
  },
62190
62194
  "src/components/swirl-skeleton-box/swirl-skeleton-box.tsx::SwirlSkeletonBoxBorderRadius": {
62191
- "declaration": "export type SwirlSkeletonBoxBorderRadius = \"s\" | \"sm\" | \"base\" | \"pill\";",
62195
+ "declaration": "export type SwirlSkeletonBoxBorderRadius =\n | \"s\"\n | \"sm\"\n | \"base\"\n | \"pill\"\n | \"none\";",
62192
62196
  "docstring": "",
62193
62197
  "path": "src/components/swirl-skeleton-box/swirl-skeleton-box.tsx"
62194
62198
  },
@@ -127,7 +127,7 @@ const SwirlActionListItem = class {
127
127
  }
128
128
  componentDidLoad() {
129
129
  this.forceIconProps(this.desktopMediaQuery.matches);
130
- this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler;
130
+ this.desktopMediaQuery.addEventListener("change", this.desktopMediaQueryHandler);
131
131
  }
132
132
  componentDidRender() {
133
133
  this.forceIconProps(this.desktopMediaQuery.matches);
@@ -152,7 +152,7 @@ const SwirlActionListItem = class {
152
152
  const showSuffixSlot = Boolean(this.el.querySelector('[slot="suffix"]'));
153
153
  const showSuffix = (Boolean(this.suffix) || showSuffixSlot) && !this.disabled;
154
154
  const className = index$1.classnames("action-list-item", `action-list-item--intent-${this.intent}`, `action-list-item--size-${this.size}`);
155
- return (index.h(index.Host, { key: '7b4f52c16da4f4f5c2c9a51856c9aae7e9c04f23' }, index.h("button", { key: 'a74a9c60edc2a183c04f93e9030554c551ceba67', "aria-expanded": this.swirlAriaExpanded, "aria-haspopup": this.swirlAriaHaspopup, class: className, disabled: this.disabled, part: "action-list-item", role: "menuitem", tabIndex: -1, type: "button" }, index.h("slot", { key: '9bb61a72d80c55a35e0dc3c809d8bebb7ff30437', name: "avatar" }), this.icon && (index.h("span", { key: 'ba49170992a1dc9e6d8b68e64af781273bf4b7e8', class: "action-list-item__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) }, showIconBadge && (index.h("span", { key: '3284724f84d3d6e018f244cde0a7ddc233f7459d', class: "action-list-item__icon-badge", innerHTML: this.iconBadge, ref: (el) => (this.iconBadgeEl = el) })))), index.h("span", { key: '2084ba440fee7881921d10781ab0100c8aef26d6', class: "action-list-item__label-container" }, index.h("span", { key: '81d4f0652172c6e468b7a6d5c2381d05905d5e22', class: "action-list-item__label" }, this.label), this.description && (index.h("span", { key: 'f09d273290bfc00630c592ed45013b565845eb5a', class: "action-list-item__description" }, this.description))), showBadge && (index.h("span", { key: '06cfa9c3a1af2b53a472b472529267549b4926de', class: "action-list-item__badge", innerHTML: this.badge })), showSuffix && (index.h("span", { key: '7ab7dd54bb3f1e2c9cac00dbf98775e18f66ab98', class: "action-list-item__suffix", innerHTML: !showSuffixSlot ? this.suffix : undefined, ref: (el) => (this.suffixEl = el) }, index.h("slot", { key: 'f2bd1ae7bf49c5e22757dbdb23fada915ab13e2a', name: "suffix" }))))));
155
+ return (index.h(index.Host, { key: 'cf72c77a7238b89ac5737fbd26a4f9c5fb8d2aaf' }, index.h("button", { key: 'b883df9fba48c6f1e3fa18cb2acbddcb1c4f7903', "aria-expanded": this.swirlAriaExpanded, "aria-haspopup": this.swirlAriaHaspopup, class: className, disabled: this.disabled, part: "action-list-item", role: "menuitem", tabIndex: -1, type: "button" }, index.h("slot", { key: '2903ffa6a0b97a9d1f30a3ab485a5f4625016893', name: "avatar" }), this.icon && (index.h("span", { key: '687e8b468e26a239a45829f5448e3f4fae991a18', class: "action-list-item__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) }, showIconBadge && (index.h("span", { key: 'db6fa0aa9ee28b495febd9278f464add1d195295', class: "action-list-item__icon-badge", innerHTML: this.iconBadge, ref: (el) => (this.iconBadgeEl = el) })))), index.h("span", { key: 'd64137da6c8345faf3fb14f6963b267e2bc83f91', class: "action-list-item__label-container" }, index.h("span", { key: 'a7e623ccfdaef36bd426f4e0121337926a04132c', class: "action-list-item__label" }, this.label), this.description && (index.h("span", { key: 'eae257be5f0974019afdd7a1517c2efed55d397c', class: "action-list-item__description" }, this.description))), showBadge && (index.h("span", { key: 'f6837cf900a859145f4360ec9d407ea51659c0f0', class: "action-list-item__badge", innerHTML: this.badge })), showSuffix && (index.h("span", { key: '4aa5cd117be445a278cefcd6c7ffaea2e72a642e', class: "action-list-item__suffix", innerHTML: !showSuffixSlot ? this.suffix : undefined, ref: (el) => (this.suffixEl = el) }, index.h("slot", { key: 'c496345eea881fc5d6742710a053aa45cd4d94e6', name: "suffix" }))))));
156
156
  }
157
157
  get el() { return index.getElement(this); }
158
158
  };
@@ -115,7 +115,7 @@ const SwirlAppLayout = class {
115
115
  });
116
116
  }
117
117
  componentDidLoad() {
118
- this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler;
118
+ this.desktopMediaQuery.addEventListener("change", this.desktopMediaQueryHandler);
119
119
  queueMicrotask(() => {
120
120
  this.isDesktop = this.desktopMediaQuery.matches;
121
121
  this.restoreNavExpansionState();
@@ -351,14 +351,14 @@ const SwirlAppLayout = class {
351
351
  "app-layout--sidebar-scrollable": this.sidebarScrollState.scrollable,
352
352
  "app-layout--sidebar-scrolled-to-top": this.sidebarScrollState.scrolledToTop,
353
353
  });
354
- return (index.h(index.Host, { key: 'bd1757d198f8e629b2e9754b47c30ebe5dc419a9' }, index.h("section", { key: '28b25940f98881967f1b39fabec35a839751159c', "aria-labelledby": "app-name", class: className }, index.h("div", { key: '52a19dc00ab90f4d0b774f84501e3eece9b4f42e', class: "app-layout__grid" }, index.h("header", { key: '820a3e03ad0c622e73df292141e78ffc5196f968', class: "app-layout__header", ref: (el) => (this.headerEl = el) }, index.h("span", { key: 'b3706641288a68f18319f0e4e5ba3ef47d6f398c', class: "app-layout__navigation-mobile-menu-button" }, index.h("slot", { key: 'e5cacf0ebf353dd1760ef0b7dc124b0160554b12', name: "navigation-mobile-menu-button" })), this.collapsibleNavigation && (index.h("span", { key: '1e5e367858b4ae2ff731d96c9274c2dc580f47aa', class: "app-layout__nav-overlay-toggle" }, index.h("swirl-button", { key: '50d53650575d35d0fa744371e4b1b66b8c34632f', hideLabel: true, icon: this.navExpansionState !== "expanded"
354
+ return (index.h(index.Host, { key: 'e9ce1a534b9acff55e07b798afb306e07a619a81' }, index.h("section", { key: '4d328d6707d7dff74ad9c6016af1ada8f1384e28', "aria-labelledby": "app-name", class: className }, index.h("div", { key: '2b7e59a9abf6c8d1379136e1446ce7e708974f43', class: "app-layout__grid" }, index.h("header", { key: 'e3e8a94655fa12bc7daa7b9ae984217654d5d8d0', class: "app-layout__header", ref: (el) => (this.headerEl = el) }, index.h("span", { key: '4842de5ed8cb9d055f75426f09d4c4221ce3248c', class: "app-layout__navigation-mobile-menu-button" }, index.h("slot", { key: '24607acca33855b93dba77e0cab7b43cc19dbf6f', name: "navigation-mobile-menu-button" })), this.collapsibleNavigation && (index.h("span", { key: 'b5e0b5c1ab49c9a77de1e6d8c9157cf907a5d331', class: "app-layout__nav-overlay-toggle" }, index.h("swirl-button", { key: 'de84a867b3b81da15a8a1a91feaf3d555b05d830', hideLabel: true, icon: this.navExpansionState !== "expanded"
355
355
  ? "<swirl-icon-dock-left-expand></swirl-icon-dock-left-expand>"
356
- : "<swirl-icon-dock-left-collapse></swirl-icon-dock-left-collapse>", label: this.navigationToggleLabel, onClick: this.toggleNavigation }))), this.showNavigationBackButton && (index.h("span", { key: 'c7ee551266b168aac662963dba75667cf201a48e', class: "app-layout__navigation-back-button" }, index.h("swirl-button", { key: '448cbde3919cdd986b7b49933d6afa8e96646db6', hideLabel: true, icon: "<swirl-icon-arrow-back></swirl-icon-arrow-back>", label: this.navigationBackButtonLabel, onClick: this.onNavigationBackButtonClick }))), index.h("swirl-heading", { key: '3c467742d3c0f80fe5aa56987c868a3b4e253988', as: "h1", class: "app-layout__app-name", headingId: "app-name", level: 3, text: this.appName }), navigationActive && (index.h("span", { key: '80c04d971369df12490ae87d86664622aeb601b7', class: "app-layout__navigation-controls" }, index.h("slot", { key: '8e732928e682abe5eef49fc22614907f0fec0a91', name: "navigation-controls" })))), index.h("nav", { key: '71c3dc8235d56ce5c9cbfa5b701e020a735d6a22', "aria-label": this.navigationLabel, class: "app-layout__navigation", onScroll: this.onNavScroll, ref: (el) => (this.navEl = el), inert: this.isDesktop &&
356
+ : "<swirl-icon-dock-left-collapse></swirl-icon-dock-left-collapse>", label: this.navigationToggleLabel, onClick: this.toggleNavigation }))), this.showNavigationBackButton && (index.h("span", { key: '7a146162ce324567d3bd9ac1e94fb4270e841491', class: "app-layout__navigation-back-button" }, index.h("swirl-button", { key: '01e4e8588d68a858b3199883255a4de4a5890bf3', hideLabel: true, icon: "<swirl-icon-arrow-back></swirl-icon-arrow-back>", label: this.navigationBackButtonLabel, onClick: this.onNavigationBackButtonClick }))), index.h("swirl-heading", { key: '89125641f790dfc3134265a212768b6aa8f17f25', as: "h1", class: "app-layout__app-name", headingId: "app-name", level: 3, text: this.appName }), navigationActive && (index.h("span", { key: '695f0de46afd902d3d69bd85d74ef9915a5a9c75', class: "app-layout__navigation-controls" }, index.h("slot", { key: '2f239735632860d0edfe5fb967bac05b21f14452', name: "navigation-controls" })))), index.h("nav", { key: '3bc5df6af2555a12164b8695f2b1b637ec2d086d', "aria-label": this.navigationLabel, class: "app-layout__navigation", onScroll: this.onNavScroll, ref: (el) => (this.navEl = el), inert: this.isDesktop &&
357
357
  this.collapsibleNavigation &&
358
- this.navExpansionState === "collapsed" }, index.h("slot", { key: 'f6a8b3b5bf48ca9a00017f907c7e1e4c245a129e', name: "navigation" })), index.h("section", { key: 'e44e1e6b08465e000378c80339b11680a1a8e725', "aria-labelledby": "app-name", class: "app-layout__body" }, !this.hideAppBar && (index.h("header", { key: '3e0019dd933bc095980a871010a8723ebf95c89d', class: "app-layout__app-bar" }, index.h("span", { key: '1d2437a685cbba57563aa942c6dea4f5dc7ad728', class: "app-layout__app-bar-mobile-menu-button" }, index.h("slot", { key: 'a6f8147d45b2cc9aa877cb549f2e52e47a02975b', name: "app-bar-mobile-menu-button" })), showBackToNavigationButton && (index.h("span", { key: '7678ad0057afab1ec8845940271a5e19d659c976', class: "app-layout__back-to-navigation-button" }, index.h("swirl-button", { key: '920ad1ff5b75f93179c4bf07ab56f3d042dd58ba', hideLabel: true, icon: this.transitionStyle === "dialog"
358
+ this.navExpansionState === "collapsed" }, index.h("slot", { key: 'd5e1ac3dc3187e1b4761b83d66d4fa98c7c4e3b4', name: "navigation" })), index.h("section", { key: '422313cc9de344ef4b66a37f0f69b709b6f71687', "aria-labelledby": "app-name", class: "app-layout__body" }, !this.hideAppBar && (index.h("header", { key: '46ea9b5669da12d8e78151977dc55b1e197e8dcb', class: "app-layout__app-bar" }, index.h("span", { key: 'b35d5938aadcdffa64b8927c096bb3f5b87fa349', class: "app-layout__app-bar-mobile-menu-button" }, index.h("slot", { key: '2be2762f6d1cfdf8f569006557b5c51b8fc28b36', name: "app-bar-mobile-menu-button" })), showBackToNavigationButton && (index.h("span", { key: 'edfb91e719c8b77c73e945ca138f334fca56540b', class: "app-layout__back-to-navigation-button" }, index.h("swirl-button", { key: 'e8cc48db20975a04dd63a8dc86c39b86bbb5630f', hideLabel: true, icon: this.transitionStyle === "dialog"
359
359
  ? "<swirl-icon-close></swirl-icon-close>"
360
360
  : "<swirl-icon-arrow-back></swirl-icon-arrow-back>", label: this.backToNavigationViewButtonLabel, onClick: this.onBackToNavigationViewButtonClick }))), this.collapsibleNavigation &&
361
- this.navExpansionState !== "expanded" && (index.h("span", { key: '4356a054ba73b43ab719983f5e28f08618187c87', class: "app-layout__nav-expansion-toggle" }, index.h("swirl-button", { key: '0dcc0b5175f72e651e9ba8fc54343bb8b10f044b', hideLabel: true, icon: "<swirl-icon-hamburger-menu></swirl-icon-hamburger-menu>", label: this.navigationOverlayLabel, onClick: this.overlayNavigation }))), index.h("span", { key: 'c409377d66e5d9653c3a4edacd00a7d1c36d41d8', class: "app-layout__custom-app-bar-back-button" }, index.h("slot", { key: '19f1249cca6eb3d297c1bfb5c1237adf0563615d', name: "custom-app-bar-back-button" })), index.h("div", { key: '4d8ffb803fd1d60aeedc3abb27c2b587126b0809', class: "app-layout__app-bar-content" }, index.h("slot", { key: 'aa9769d6902c0dcea2873ed874d9efd39bcfdccb', name: "app-bar" })), index.h("div", { key: '87956c0906c878a60ba38a32ddd84b62e64c341d', class: "app-layout__app-bar-controls" }, index.h("slot", { key: 'de90973e95f87d557659269036fe3ba2ff841514', name: "app-bar-controls" })))), index.h("div", { key: '9092cbe26316ae42d16271d12ca0e22dba5f1d2d', class: "app-layout__banner" }, index.h("slot", { key: '442bba275cb42942e1f0910d9c02dda2a9af682f', name: "banner" })), index.h("div", { key: '924a188b2bbe99a0e75c70f1c7f5625995f1a099', class: "app-layout__content", onScroll: this.onContentScroll, ref: (el) => (this.contentEl = el) }, index.h("slot", { key: '94d6c1a191484f78595cc39eab5ff8229603d75d', name: "content" })), index.h("div", { key: '7c6aea10fad5a2852e7dd7c1faf2537e561ca7f7', class: "app-layout__bottom-bar" }, index.h("slot", { key: '425f8d91ec4c6970224cb8384ffa40c5f3242bec', name: "bottom-bar" }))), index.h("aside", { key: '7849759ec39060fa137dba9b466211568cd0746a', class: "app-layout__sidebar" }, index.h("header", { key: 'aaa9d7aaf245afee95d5b10bbe6cdd0fc3b0467f', class: "app-layout__custom-sidebar-header" }, index.h("slot", { key: '9d215a803a91fe07e6f819a19ee44ff87e279fe4', name: "custom-sidebar-header" })), index.h("header", { key: '4c148f600be258693004721d74cfeacce295a54b', class: "app-layout__sidebar-header" }, index.h("swirl-button", { key: 'f4b0155f52a24d448fe3215d765bd5c6984f100e', class: "app-layout__sidebar-close-button", hideLabel: true, icon: "<swirl-icon-close></swirl-icon-close>", label: this.sidebarCloseButtonLabel, onClick: this.onSidebarCloseButtonClick }), index.h("swirl-heading", { key: '69992a92cd4ec148de847b7235ec35b50d28beae', as: "h3", class: "app-layout__sidebar-heading", headingId: "sidebar-heading", level: 3, text: this.sidebarHeading })), index.h("div", { key: 'efba1faaebfc7fe100b0d53a1c5a5de79f5b7a29', class: "app-layout__sidebar-content", onScroll: this.onSidebarScroll, ref: (el) => (this.sidebarEl = el) }, index.h("slot", { key: 'f297a2f2db5bdafd7a88d7fea6fec50b8bac8e75', name: "sidebar" }))), index.h("span", { key: '4e87773e33eacaa27710a018e9f07803dc267ae9', class: "app-layout__floating-action-button" }, this.ctaLabel && (index.h("swirl-button", { key: '704b7695fd2ece0c20f971f158e04cec95ffdb4f', hideLabel: Boolean(this.ctaIcon), icon: this.ctaIcon, intent: "primary", label: this.ctaLabel, onClick: this.onCtaClick, variant: "floating" })), index.h("slot", { key: 'a4c4bcfb8f498c7c6b878016ca84a29c7443c3d1', name: "floating-action-button" }))))));
361
+ this.navExpansionState !== "expanded" && (index.h("span", { key: '8c96a9e2f67470bd86c72d66272306901585d81e', class: "app-layout__nav-expansion-toggle" }, index.h("swirl-button", { key: '36b26a023643f6fc3f43d2df344583004ee60b78', hideLabel: true, icon: "<swirl-icon-hamburger-menu></swirl-icon-hamburger-menu>", label: this.navigationOverlayLabel, onClick: this.overlayNavigation }))), index.h("span", { key: 'b005af6a600db164a8251478d8d6f0b63dad6d48', class: "app-layout__custom-app-bar-back-button" }, index.h("slot", { key: '829e1e1145543dbb9658566051e69d28095ed4ee', name: "custom-app-bar-back-button" })), index.h("div", { key: 'e25d3fe097657c6ce637d075d7f886faebb8dcde', class: "app-layout__app-bar-content" }, index.h("slot", { key: '7913c7ce6ca420a4ea5c6640e57e8718c5b8cdc5', name: "app-bar" })), index.h("div", { key: '5f6df0102cebfcaaa4e2bde25e218e6a506c81ca', class: "app-layout__app-bar-controls" }, index.h("slot", { key: 'b4b19bf2bb4a51732f9ea647758b42721169aa5e', name: "app-bar-controls" })))), index.h("div", { key: 'a1cbbdffab4675813ee104abcdcf5722ad33242e', class: "app-layout__banner" }, index.h("slot", { key: '0fc317305b8d94dc2670f2731ab7ac841ddad69e', name: "banner" })), index.h("div", { key: '6c434829a6c78aeaea9f084735122d685b1ca636', class: "app-layout__content", onScroll: this.onContentScroll, ref: (el) => (this.contentEl = el) }, index.h("slot", { key: '5ab35d69d738ac114725661f296f89624ce5aa21', name: "content" })), index.h("div", { key: '14a299ef135a30d6f8975db14bdb668e79c39b7b', class: "app-layout__bottom-bar" }, index.h("slot", { key: 'b6f039e3ca95a896c38bfa97943b46f21d0688e4', name: "bottom-bar" }))), index.h("aside", { key: '403077f3384c185e97eb0205f11a932e4c1ad76c', class: "app-layout__sidebar" }, index.h("header", { key: 'a951e471e8363a025b4ba1ce377e7e1ef17d7e79', class: "app-layout__custom-sidebar-header" }, index.h("slot", { key: 'f6e9ca768e57b30b3faa072250fe9c0cba196b5c', name: "custom-sidebar-header" })), index.h("header", { key: '1ff00d0311949b3bdacb38ebef268a5b6e3aa00d', class: "app-layout__sidebar-header" }, index.h("swirl-button", { key: 'cc5a33cb40af30a16fdd9442fc34de516022c15d', class: "app-layout__sidebar-close-button", hideLabel: true, icon: "<swirl-icon-close></swirl-icon-close>", label: this.sidebarCloseButtonLabel, onClick: this.onSidebarCloseButtonClick }), index.h("swirl-heading", { key: '96241a517463e025991a2c376e450e5128086209', as: "h3", class: "app-layout__sidebar-heading", headingId: "sidebar-heading", level: 3, text: this.sidebarHeading })), index.h("div", { key: 'a0f11ec60312ab95b56ae4465f23cd0e60f8c3e9', class: "app-layout__sidebar-content", onScroll: this.onSidebarScroll, ref: (el) => (this.sidebarEl = el) }, index.h("slot", { key: 'ed6139ae751d7701098e441d9bde7faa10d6ea1c', name: "sidebar" }))), index.h("span", { key: 'ea00d4875343af4d76c96c3591931b342098c0e4', class: "app-layout__floating-action-button" }, this.ctaLabel && (index.h("swirl-button", { key: 'd29b393a6ac566bf7b3eac1b6080f7da67e25b7f', hideLabel: Boolean(this.ctaIcon), icon: this.ctaIcon, intent: "primary", label: this.ctaLabel, onClick: this.onCtaClick, variant: "floating" })), index.h("slot", { key: '7952de1a32de0b06d50911abcd9267ccb323e819', name: "floating-action-button" }))))));
362
362
  }
363
363
  get el() { return index.getElement(this); }
364
364
  static get watchers() { return {
@@ -744,7 +744,7 @@ const SwirlResourceListItem = class {
744
744
  componentDidLoad() {
745
745
  this.forceIconProps(this.desktopMediaQuery.matches);
746
746
  this.updateIconSize(this.desktopMediaQuery.matches);
747
- this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler;
747
+ this.desktopMediaQuery.addEventListener("change", this.desktopMediaQueryHandler);
748
748
  this.makeControlUnfocusable();
749
749
  if (Boolean(this.menuTriggerId)) {
750
750
  console.warn('[Swirl] The "menu-trigger-id" prop of swirl-resource-list-item is deprecated and will be removed with the next major release. Please use the "control" slot to add a menu button instead. https://swirl-storybook.flip-app.dev/?path=/docs/components-swirlresourcelistitem--docs');
@@ -824,7 +824,7 @@ const SwirlResourceListItem = class {
824
824
  "resource-list-item--wrap-description": this.descriptionWrap,
825
825
  "resource-list-item--wrap-label": this.labelWrap,
826
826
  });
827
- return (index.h(index.Host, { key: '9c6fbe47aad6cc3b8c64ff69f2908c39579382e1', role: "row" }, index.h("div", { key: 'a697f193501c11256a8f14bee06e8ae361ecd7d2', class: className, role: "gridcell" }, index.h(Tag, { key: '7ccaf53c57e8e025ae6a4f93ab1c1a2509b81f4e', "aria-checked": ariaChecked, "aria-disabled": disabled ? "true" : undefined, "aria-label": ariaLabel, "aria-labelledby": Boolean(this.swirlAriaLabel) ? undefined : this.elementId, class: "resource-list-item__content", href: href, disabled: disabled, onClick: this.onClick, onBlur: this.onBlur, onFocus: this.onFocus, part: "resource-list-item__content", role: role, tabIndex: 0, type: Tag === "button" ? "button" : undefined }, this.hasMedia && (index.h("span", { key: '1c99b371c6b4452c1302c4879a1c5b6946e2c8b1', class: "resource-list-item__media" }, index.h("slot", { key: '6b98cb9d04c7a361fe2668029d006d1e828a4e39', name: "media" }))), index.h("span", { key: '8ebcb1d3314724c5896d9f7ba356b2c52e95a8a1', class: "resource-list-item__label-container", style: labelContainerStyles }, index.h("span", { key: '593f64efd0fb0188c1f988b27056c829d1679d09', class: "resource-list-item__label", id: this.elementId, innerHTML: this.allowHtml ? this.label : undefined }, !this.allowHtml && this.label), this.description && (index.h("span", { key: 'c154c1d55e6933037643da9d0131b946b2dee4f3', class: "resource-list-item__description", innerHTML: this.allowHtml ? this.description : undefined }, !this.allowHtml && this.description))), showMeta && (index.h("span", { key: '5725705f0f20319d239805508d3b1d95f74e1147', class: "resource-list-item__meta" }, index.h("span", { key: '017c7cfe50539312d4d26383171fb6a7a20e6aea', class: "resource-list-item__meta-text" }, this.meta), index.h("span", { key: '67ae39458d0f21c7100481c6aa68f9455e468d86', class: "resource-list-item__badges" }, index.h("slot", { key: '14903c0b7742a843c77f2a4625cb7265aafa6f5b', name: "badges" }))))), this.selectable && (index.h("span", { key: '6077b4ada3640c6d5c66466c7fcb602f571bd846', "aria-hidden": "true", class: "resource-list-item__checkbox" }, index.h("span", { key: 'f3695886c4bc18a9c0105592a66e1bcb6970e133', class: "resource-list-item__checkbox-icon" }, this.checked && (index.h("swirl-icon-check-strong", { key: '6aefe6e5c14c3ed7704f9771b8cf5800d10addcb' }))))), index.h("span", { key: '8a25575b17dba502cf8ab76a9da951630c4afc74', class: "resource-list-item__control", onClick: this.onControlClick, ref: (el) => (this.controlContainer = el) }, index.h("slot", { key: 'ec9be5986f7bdc3e9054d5ff62f55b59b8a6108b', name: "control" })), showMenu && (index.h("swirl-popover-trigger", { key: '135faa65c00fc1a6af38b8159ccf7f074847d4f5', swirlPopover: this.menuTriggerId }, index.h("swirl-button", { key: '704ec57f5be74557cfb9bf56e2641faff8fe79a4', "aria-disabled": disabled ? "true" : undefined, class: "resource-list-item__menu-trigger", disabled: disabled, hideLabel: true, icon: "<swirl-icon-more-horizontal></swirl-icon-more-horizontal>", intent: "primary", label: this.menuTriggerLabel, onClick: this.onMenuTriggerClick })))), this.allowDrag && (index.h("button", { key: '3e9e5926918fc8c5839e8c19accc716ca81aed96', "aria-describedby": this.dragHandleDescription, "aria-label": `${this.dragHandleLabel} "${this.label}"`, class: "resource-list-item__drag-handle", onKeyDown: this.onDragHandleKeyDown, type: "button" }, index.h("swirl-icon-drag-handle", { key: 'd1f9c9cef19f4dfccaef48269f9cdf6265bd143c', size: this.iconSize })))));
827
+ return (index.h(index.Host, { key: '9ab8d5b6c71f699ada0554534d05231bcab05b4f', role: "row" }, index.h("div", { key: 'f1e3b59de7165503220e230256fe0dbaf584dbf1', class: className, role: "gridcell" }, index.h(Tag, { key: 'c018cd666438e26be62cceb14fc5b659298cb66c', "aria-checked": ariaChecked, "aria-disabled": disabled ? "true" : undefined, "aria-label": ariaLabel, "aria-labelledby": Boolean(this.swirlAriaLabel) ? undefined : this.elementId, class: "resource-list-item__content", href: href, disabled: disabled, onClick: this.onClick, onBlur: this.onBlur, onFocus: this.onFocus, part: "resource-list-item__content", role: role, tabIndex: 0, type: Tag === "button" ? "button" : undefined }, this.hasMedia && (index.h("span", { key: 'eb0648775d1a8d3f6279aaba67df5fc69078bc14', class: "resource-list-item__media" }, index.h("slot", { key: 'f9eed6eee88cfd13484830592bcde5ec9a8ff2fd', name: "media" }))), index.h("span", { key: 'abdf852d91330d353b3fa0d79ef286f8a654ed17', class: "resource-list-item__label-container", style: labelContainerStyles }, index.h("span", { key: '31d2e2095cfa5fa6d8c0ff6c9cd74352215bf31b', class: "resource-list-item__label", id: this.elementId, innerHTML: this.allowHtml ? this.label : undefined }, !this.allowHtml && this.label), this.description && (index.h("span", { key: 'bba851aebfc9ae97d8e86bc377b2645f2c008f40', class: "resource-list-item__description", innerHTML: this.allowHtml ? this.description : undefined }, !this.allowHtml && this.description))), showMeta && (index.h("span", { key: '1b92b21080990b5cd922becbca08ef8d491470e3', class: "resource-list-item__meta" }, index.h("span", { key: '87ddd62278eaded6e154af605dca7f568b1c1b24', class: "resource-list-item__meta-text" }, this.meta), index.h("span", { key: '74e13c780b46e097e429289f343855010abd262a', class: "resource-list-item__badges" }, index.h("slot", { key: '2684ae7f3771da2c15a91abe11e5376c092b5418', name: "badges" }))))), this.selectable && (index.h("span", { key: 'da36e0f78c70ef6639bc5969fed63e8e7191f69b', "aria-hidden": "true", class: "resource-list-item__checkbox" }, index.h("span", { key: 'a28270546758f11d38a4503b566d93b26cdbe8c5', class: "resource-list-item__checkbox-icon" }, this.checked && (index.h("swirl-icon-check-strong", { key: 'a302ecfae71661cd95adfee5a4a1479288b90131' }))))), index.h("span", { key: '3e85d9ed06e4d6dceee9db5c67799b83ef3e6701', class: "resource-list-item__control", onClick: this.onControlClick, ref: (el) => (this.controlContainer = el) }, index.h("slot", { key: '59321aba61fd5c10732db1281afc7d3487822bff', name: "control" })), showMenu && (index.h("swirl-popover-trigger", { key: '9f9d329b6be6921cc2a346462d6191e306ab8f6a', swirlPopover: this.menuTriggerId }, index.h("swirl-button", { key: '3171ea36c90c935bc9e3dcfd5227d4953a87a899', "aria-disabled": disabled ? "true" : undefined, class: "resource-list-item__menu-trigger", disabled: disabled, hideLabel: true, icon: "<swirl-icon-more-horizontal></swirl-icon-more-horizontal>", intent: "primary", label: this.menuTriggerLabel, onClick: this.onMenuTriggerClick })))), this.allowDrag && (index.h("button", { key: 'f2326a36dd18d5084fbc2c328649fdf806e81135', "aria-describedby": this.dragHandleDescription, "aria-label": `${this.dragHandleLabel} "${this.label}"`, class: "resource-list-item__drag-handle", onKeyDown: this.onDragHandleKeyDown, type: "button" }, index.h("swirl-icon-drag-handle", { key: '295742018c703c5a7c8da55c9e3c93f3be723407', size: this.iconSize })))));
828
828
  }
829
829
  get el() { return index.getElement(this); }
830
830
  };
@@ -43,7 +43,7 @@ const SwirlBanner = class {
43
43
  }
44
44
  componentDidLoad() {
45
45
  this.forceIconProps(this.desktopMediaQuery.matches);
46
- this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler;
46
+ this.desktopMediaQuery.addEventListener("change", this.desktopMediaQueryHandler);
47
47
  }
48
48
  disconnectedCallback() {
49
49
  this.desktopMediaQuery.removeEventListener?.("change", this.desktopMediaQueryHandler);
@@ -64,7 +64,7 @@ const SwirlBanner = class {
64
64
  const className = index$1.classnames("banner", `banner--intent-${this.intent}`, `banner--size-${this.size}`, {
65
65
  "banner--has-icon": showIcon,
66
66
  });
67
- return (index.h(index.Host, { key: '2b926334556876ce750c890243dac923d8ae5b75' }, index.h("div", { key: 'f7aefa810673bd5e18a5c14aac01a078298df404', "aria-describedby": "content", class: className, role: this.importance, tabIndex: 0 }, index.h("div", { key: '9712a2db49d78fc6228e91f696e442c316b62231', class: "banner__content", id: "content", part: "banner__content" }, showIcon && (index.h("span", { key: '5632af1834cd2ffd0918628e53dcbc766fc0c29c', "aria-hidden": "true", class: "banner__icon", innerHTML: icon, ref: (el) => (this.iconEl = el) })), index.h("span", { key: 'f5bfc1bf786936873522b8c42763166b9bb4b22a', class: "banner__text" }, this.content)), showControls && (index.h("div", { key: '18b8931ee8cfdbecca4ac7330049321023f3f1fb', class: "banner__controls" }, this.actionLabel && (index.h("button", { key: 'b6c7913a77b3872a74ba8c2770803379d268e5c3', class: "banner__action-button", onClick: this.onAction, part: "banner__action-button", type: "button" }, this.actionLabel)), this.dismissable && (index.h("button", { key: '9119dad3a6d3526e5aebbd0ede243373b7072252', "aria-label": this.dismissLabel, class: "banner__dismiss-button", onClick: this.onDismiss, part: "banner__dismiss-button", ref: (el) => (this.dismissButtonEl = el), type: "button" }, index.h("swirl-icon-close", { key: 'b0a59c1a5104ee71bc31be6c2f5648afbf1748f1' }))))))));
67
+ return (index.h(index.Host, { key: 'be4bdebb17f5f9611c21c9eded65510ce2cf8427' }, index.h("div", { key: '2153f4b7cc6565e5a525f1131ce48b74ee2ebc7a', "aria-describedby": "content", class: className, role: this.importance, tabIndex: 0 }, index.h("div", { key: '010865c0f43d00bfff18d7c510f48b191bb5b025', class: "banner__content", id: "content", part: "banner__content" }, showIcon && (index.h("span", { key: 'e33800d612c9bf594e3db60acf599357b0851383', "aria-hidden": "true", class: "banner__icon", innerHTML: icon, ref: (el) => (this.iconEl = el) })), index.h("span", { key: '03e082a2db918623b06b1487fd2bdfc6f270e08e', class: "banner__text" }, this.content)), showControls && (index.h("div", { key: 'a2041ef90d239380260e150581b7b06ed5dbc4b2', class: "banner__controls" }, this.actionLabel && (index.h("button", { key: 'c8a469c6d1ac12a9ba66fc1b3a4fdf252aeb8c52', class: "banner__action-button", onClick: this.onAction, part: "banner__action-button", type: "button" }, this.actionLabel)), this.dismissable && (index.h("button", { key: 'a49e1ac3a5188b0344794fd93f7d5d56f3a520d1', "aria-label": this.dismissLabel, class: "banner__dismiss-button", onClick: this.onDismiss, part: "banner__dismiss-button", ref: (el) => (this.dismissButtonEl = el), type: "button" }, index.h("swirl-icon-close", { key: '95f2d21a48eeb6c5cc845d1dc674502ed89a0467' }))))))));
68
68
  }
69
69
  get element() { return index.getElement(this); }
70
70
  };
@@ -45,7 +45,7 @@ const SwirlButton = class {
45
45
  componentDidLoad() {
46
46
  this.forceIconProps(this.desktopMediaQuery.matches);
47
47
  this.updateFormAttribute();
48
- this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler;
48
+ this.desktopMediaQuery.addEventListener("change", this.desktopMediaQueryHandler);
49
49
  }
50
50
  componentDidRender() {
51
51
  this.forceIconProps(this.desktopMediaQuery.matches);
@@ -100,9 +100,9 @@ const SwirlButton = class {
100
100
  "button--pressed": this.pressed,
101
101
  });
102
102
  const Tag = isLink ? "a" : "button";
103
- return (index.h(index.Host, { key: '644f280827046e78c58e7c45647c5c0552e95463', style: { pointerEvents: this.disabled ? "none" : "" } }, index.h(Tag, { key: '23a5862e91f6f7d9fd6a2dd85e9c75bc90c559a1', "aria-controls": this.swirlAriaControls, "aria-current": this.swirlAriaCurrent, "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled && !isLink ? "true" : undefined, "aria-expanded": this.swirlAriaExpanded, "aria-haspopup": this.swirlAriaHaspopup, "aria-label": ariaLabel, "aria-pressed": this.pressed ? "true" : undefined, class: className, disabled: isLink ? undefined : this.disabled, download: isLink ? undefined : this.download, form: isLink ? undefined : this.form, href: this.href, name: isLink ? undefined : this.name, ref: (el) => (this.buttonEl = el), target: isLink ? this.target : undefined, type: isLink ? undefined : this.type, value: isLink ? undefined : this.value, style: this.inheritFontSize
103
+ return (index.h(index.Host, { key: '9c5a6973ea658678167f384b99703c2a5cc932e6', style: { pointerEvents: this.disabled ? "none" : "" } }, index.h(Tag, { key: 'd8d39728274e53aef4a028478ecc6834539c975f', "aria-controls": this.swirlAriaControls, "aria-current": this.swirlAriaCurrent, "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled && !isLink ? "true" : undefined, "aria-expanded": this.swirlAriaExpanded, "aria-haspopup": this.swirlAriaHaspopup, "aria-label": ariaLabel, "aria-pressed": this.pressed ? "true" : undefined, class: className, disabled: isLink ? undefined : this.disabled, download: isLink ? undefined : this.download, form: isLink ? undefined : this.form, href: this.href, name: isLink ? undefined : this.name, ref: (el) => (this.buttonEl = el), target: isLink ? this.target : undefined, type: isLink ? undefined : this.type, value: isLink ? undefined : this.value, style: this.inheritFontSize
104
104
  ? { fontSize: "inherit", lineHeight: "inherit" }
105
- : {} }, Boolean(this.icon) && (index.h("span", { key: '37948fe0cb6315080a42a0a0e9d7f14df87db473', class: "button__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) })), !Boolean(this.icon) && (index.h("span", { key: '39cb7279f339fc9b102edc990202adc71424cca0', class: "button__icon", ref: (el) => (this.iconEl = el) }, index.h("slot", { key: '9b176cfb970a3eabc3de0222cdb2dcc09a74017e', name: "icon" }))), !hideLabel && index.h("span", { key: '2784fc9b630954936434165b537358d5950083ae', class: "button__label" }, this.label), hasTag && (index.h("span", { key: '8e2335251d17103e3f79200090be9af69e4420e3', class: "button__tag" }, index.h("slot", { key: '101ab368afa228413d9aac05caa7b77ddbcc858d', name: "tag" }))))));
105
+ : {} }, Boolean(this.icon) && (index.h("span", { key: 'f8c59b55181804a88e7fbea215955394581085d0', class: "button__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) })), !Boolean(this.icon) && (index.h("span", { key: 'f10549e0f2a5a0ad195bf7a9622dd6764f22074d', class: "button__icon", ref: (el) => (this.iconEl = el) }, index.h("slot", { key: 'd20e1abea1853532c4db9285554e08c01bbd2110', name: "icon" }))), !hideLabel && index.h("span", { key: '1953a32f75eab8d16f8d8b370869b58d7293b83d', class: "button__label" }, this.label), hasTag && (index.h("span", { key: 'ba2fd1ab2514f309dbe41b07440a1e034173756b', class: "button__tag" }, index.h("slot", { key: '79d7921baa4f8744ee3f1328f73f7427c4bf89ba', name: "tag" }))))));
106
106
  }
107
107
  get el() { return index.getElement(this); }
108
108
  };
@@ -34,7 +34,7 @@ const SwirlChip = class {
34
34
  }
35
35
  componentDidLoad() {
36
36
  this.forceIconProps(this.desktopMediaQuery.matches);
37
- this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler;
37
+ this.desktopMediaQuery.addEventListener("change", this.desktopMediaQueryHandler);
38
38
  }
39
39
  disconnectedCallback() {
40
40
  this.desktopMediaQuery.removeEventListener?.("change", this.desktopMediaQueryHandler);
@@ -57,7 +57,7 @@ const SwirlChip = class {
57
57
  "chip--interactive": this.interactive || this.pressed !== undefined,
58
58
  "chip--removable": this.removable,
59
59
  });
60
- return (index.h(index.Host, { key: '9b1e52461918edbaac63ee90bf5a3e553f9d310e' }, index.h(Tag, { key: 'dcbc86988cd9e4227c8d567c84daa76b9ac739cd', "aria-pressed": this.pressed !== undefined ? String(this.pressed) : undefined, class: className, onClick: this.chipClick.emit, type: this.interactive ? "button" : undefined }, index.h("span", { key: '04997af02a853a3baa62a1f26bcc2a6d7f0d0e23', class: "chip__inner" }, showAvatar && (index.h("span", { key: 'd58d29238444cdd44a7a4d1fc8e1f1dcba15c6d7', class: "chip__avatar" }, index.h("slot", { key: '59705540be0270d9c03dc282d0b95323baddc4fc', name: "avatar" }))), showIcon && (index.h("span", { key: '8d568bc86288170c642834787f6f62d14385cfe1', class: "chip__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) })), index.h("span", { key: 'b8242740bd0becbd22b2569a9dee60ac46146f46', class: "chip__label" }, this.label)), this.progress !== undefined && (index.h("span", { key: '8dab74c41f4521d82cdc1aa7abac3d0a12c76af9', class: "chip__progress-indicator" }, index.h("swirl-progress-indicator", { key: '9ba51b553551ff5c0d2e163fc9c5b7106089bca7', label: this.progressBarLabel, value: this.progress })))), this.removable && (index.h("button", { key: '730613d93c56281943e0a036cc2afad9e967b1f0', "aria-label": this.removeButtonLabel, class: "chip__remove-button", onClick: this.removeChip.emit, type: "button" }, index.h("swirl-icon-close", { key: '06051a334307deb3d0e0b4de1b4fa23a986c4a17', size: 20 })))));
60
+ return (index.h(index.Host, { key: '3fa170e58fcdd39a85afb56ec10f8f77615eb9b9' }, index.h(Tag, { key: '4e96ce9cd653f9afa6a335734a25c10f92c42edc', "aria-pressed": this.pressed !== undefined ? String(this.pressed) : undefined, class: className, onClick: this.chipClick.emit, type: this.interactive ? "button" : undefined }, index.h("span", { key: '9b6107cc84794c069d0ff46031b886b3f0d4b78e', class: "chip__inner" }, showAvatar && (index.h("span", { key: 'd8a1a42f5ddede7223b78b617171eff7dd065906', class: "chip__avatar" }, index.h("slot", { key: '1bc65807864057fca37fcfec7599bf3606e9384f', name: "avatar" }))), showIcon && (index.h("span", { key: '0baa6dc9f1241a05a11882a4bc748963241e681d', class: "chip__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) })), index.h("span", { key: 'd215f1a4d64e8b41648aaa19571f23c90e8a1fc1', class: "chip__label" }, this.label)), this.progress !== undefined && (index.h("span", { key: '173af6fba33eb25cc8d07a24e38757dd5738138b', class: "chip__progress-indicator" }, index.h("swirl-progress-indicator", { key: '46bc43fcc5da5d003bfb71991941fa758d8bae36', label: this.progressBarLabel, value: this.progress })))), this.removable && (index.h("button", { key: 'eb8945c1ca5f26d8d95776c6cb6de10b1b9d985a', "aria-label": this.removeButtonLabel, class: "chip__remove-button", onClick: this.removeChip.emit, type: "button" }, index.h("swirl-icon-close", { key: 'c554907b6bcbfbf0b35da2091209b9256e60e545', size: 20 })))));
61
61
  }
62
62
  get el() { return index.getElement(this); }
63
63
  };
@@ -100,7 +100,7 @@ const SwirlDateInput = class {
100
100
  componentDidLoad() {
101
101
  this.setupMask();
102
102
  this.updateIconSize(this.desktopMediaQuery.matches);
103
- this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler;
103
+ this.desktopMediaQuery.addEventListener("change", this.desktopMediaQueryHandler);
104
104
  // see https://stackoverflow.com/a/27314017
105
105
  if (this.autoFocus) {
106
106
  this.focus();
@@ -159,7 +159,7 @@ const SwirlDateInput = class {
159
159
  const className = index$1.classnames("date-input", {
160
160
  "date-input--inline": this.inline,
161
161
  });
162
- return (index.h(index.Host, { key: '8c8bf188577829729309ee11a4de95303f72fcfe' }, index.h("div", { key: '9c2593938d02edaa8139ecc0476a9b0b3f50c909', class: className }, index.h("input", { key: '89f21a6cfc56b79f5898d088117f175d81b5e055', "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled ? "true" : undefined, "aria-invalid": ariaInvalid, autoFocus: this.autoFocus, class: "date-input__input", disabled: this.disabled, readonly: this.readonly, id: this.id, inputmode: "numeric", onClick: this.onClick, onMouseDown: this.onMouseDown, onFocus: this.onFocus, onBlur: this.onBlur, onInput: this.onInput, placeholder: this.placeholder, ref: (el) => (this.inputEl = el), required: this.required, type: "text", value: displayValue }), index.h("swirl-popover-trigger", { key: '0ce0f0b42b837a5ee839a03373dce8b604c85420', swirlPopover: `popover-${this.id}` }, index.h("button", { key: '01c8c8125a6941e800da12938f8b36abc4d095eb', "aria-label": this.datePickerTriggerLabel, class: "date-input__date-picker-button", disabled: this.disabled, type: "button" }, index.h("swirl-icon-today", { key: '395679e33fecef4d7a949b80e8e5f345b4cdedef', size: this.iconSize })))), !this.disabled && (index.h("swirl-popover", { key: 'c939e2811538e1e3e9ca74e9159a282fa06449ca', animation: "scale-in-y", class: "date-input__date-picker-popover", id: `popover-${this.id}`, label: this.datePickerLabel, placement: "bottom-end", ref: (el) => (this.pickerPopover = el) }, index.h("swirl-date-picker", { key: '73375240299d16518e12ee97eeeafeda6946bb1b', disableDate: this.datePickerDisableDate, firstDayOfWeek: this.firstDayOfWeek, labels: this.labels, locale: this.locale, onValueChange: this.onPickDate, value: dateValue, startDate: dateValue })))));
162
+ return (index.h(index.Host, { key: '40aee0ed18df588c7e7de56ac15d2a899229240d' }, index.h("div", { key: 'ec0931b258f5de0aed8f4bb474ee7fafdb6f015b', class: className }, index.h("input", { key: 'e167d4115c27b58cdb35b135dcbd90c048063cb2', "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled ? "true" : undefined, "aria-invalid": ariaInvalid, autoFocus: this.autoFocus, class: "date-input__input", disabled: this.disabled, readonly: this.readonly, id: this.id, inputmode: "numeric", onClick: this.onClick, onMouseDown: this.onMouseDown, onFocus: this.onFocus, onBlur: this.onBlur, onInput: this.onInput, placeholder: this.placeholder, ref: (el) => (this.inputEl = el), required: this.required, type: "text", value: displayValue }), index.h("swirl-popover-trigger", { key: '8935b2ae6de652d302dacf729a1d10c1e98b1a83', swirlPopover: `popover-${this.id}` }, index.h("button", { key: '1f409c2f827c813b76e06aa7c10204c5e5984dc4', "aria-label": this.datePickerTriggerLabel, class: "date-input__date-picker-button", disabled: this.disabled, type: "button" }, index.h("swirl-icon-today", { key: '0ae84ce7a870a5a6ccb6de23db3f90aaeedafc7d', size: this.iconSize })))), !this.disabled && (index.h("swirl-popover", { key: '8770b10b3bee1fffd7a71afad25cc889882b17f4', animation: "scale-in-y", class: "date-input__date-picker-popover", id: `popover-${this.id}`, label: this.datePickerLabel, placement: "bottom-end", ref: (el) => (this.pickerPopover = el) }, index.h("swirl-date-picker", { key: '26269ce9a256f6dfedceeab811a427dd642a8aab', disableDate: this.datePickerDisableDate, firstDayOfWeek: this.firstDayOfWeek, labels: this.labels, locale: this.locale, onValueChange: this.onPickDate, value: dateValue, startDate: dateValue })))));
163
163
  }
164
164
  get el() { return index.getElement(this); }
165
165
  static get watchers() { return {
@@ -71,7 +71,7 @@ const SwirlOptionListItem = class {
71
71
  componentDidLoad() {
72
72
  this.forceIconProps(this.desktopMediaQuery.matches);
73
73
  this.updateIconSize(this.desktopMediaQuery.matches);
74
- this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler;
74
+ this.desktopMediaQuery.addEventListener("change", this.desktopMediaQueryHandler);
75
75
  }
76
76
  disconnectedCallback() {
77
77
  this.desktopMediaQuery.removeEventListener?.("change", this.desktopMediaQueryHandler);
@@ -98,9 +98,9 @@ const SwirlOptionListItem = class {
98
98
  "option-list-item--selected": this.selected,
99
99
  "option-list-item--show-avatar": showAvatar,
100
100
  });
101
- return (index.h(index.Host, { key: 'c352b994be2cdbfc53d0ff57905043b0995c0b63' }, index.h("div", { key: 'a5df3557b909367a719645cf06ba8d0d56e35878', "aria-checked": this.swirlAriaRole === "menuitemradio" ? ariaSelected : undefined, "aria-describedby": Boolean(this.description)
101
+ return (index.h(index.Host, { key: 'af019b6745db50086125eafef092fefec4529d9b' }, index.h("div", { key: 'e5fae098a7c87f3fcd569971e5befe1e937e6187', "aria-checked": this.swirlAriaRole === "menuitemradio" ? ariaSelected : undefined, "aria-describedby": Boolean(this.description)
102
102
  ? `option-list-item-${this.elementId}-description`
103
- : undefined, "aria-disabled": ariaDisabled, "aria-labelledby": `option-list-item-${this.elementId}-label`, "aria-selected": this.swirlAriaRole === "option" ? ariaSelected : undefined, class: className, id: `option-list-item-${this.elementId}`, onBlur: this.onBlur, onFocus: this.onFocus, part: "option-list-item", role: this.swirlAriaRole }, showIcon && (index.h("span", { key: '9d4ce11a38b414d2a41bc6aa5a6aa64aabb4e114', class: "option-list-item__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) }, showIconBadge && (index.h("span", { key: 'ed49ec954b74e0b617ca32d497eb8f24c3d18a5e', class: "option-list-item__icon-badge", innerHTML: this.iconBadge })))), showCheckbox && (index.h("span", { key: '8373d6ee0216266bda8d029a1a57cef1cfd98c43', class: "option-list-item__checkbox" }, index.h("span", { key: 'f14ed6dc6d445f7ecc6229e1310a78afe088c639', class: "option-list-item__checkbox-box" }, this.selected && (index.h("swirl-icon-check-strong", { key: 'adb91bda6f6f5c92277b6b47c595e608547759b0', class: "option-list-item__checkbox-icon", size: 16 }))))), index.h("span", { key: 'a0ea9adae0c92d7a38d69bdd30f37cbb5165d818', class: "option-list-item__avatar" }, index.h("slot", { key: 'cea3a84e3cb09c522c1fa1ad34d07ab66275cde1', name: "avatar" })), index.h("span", { key: '09480c168be263a8944974e91d7b98569260a74c', class: "option-list-item__label-container" }, index.h("span", { key: '450b0a356a9efd8a459a5df511223ab2c3a216c5', class: "option-list-item__label", id: `option-list-item-${this.elementId}-label`, part: "option-list-item__label" }, this.label), this.description && (index.h("span", { key: 'ed46cdaf3865dc8cf075597c8e305207e648ff10', class: "option-list-item__description", id: `option-list-item-${this.elementId}-description` }, this.description))), showSelectionIcon && (index.h("span", { key: 'e21954a823dead666a192351c874750756b715c2', class: "option-list-item__selection-icon" }, index.h("swirl-icon-check-small", { key: 'bfc5f344a391aec9923d73302963b435c6648e8c', size: this.iconSize })))), this.allowDrag && (index.h("button", { key: '7037a0ef7a3e8c1c994bcb5134cc7dfa07c87f48', "aria-describedby": this.dragHandleDescription, "aria-label": `${this.dragHandleLabel} "${this.label}"`, class: "option-list-item__drag-handle", onKeyDown: this.onDragHandleKeyDown, tabIndex: this.focused ? 0 : -1, type: "button" }, index.h("swirl-icon-drag-handle", { key: '9b7d3b7697e726223053a6d7995a6dbd56769c66', size: this.iconSize })))));
103
+ : undefined, "aria-disabled": ariaDisabled, "aria-labelledby": `option-list-item-${this.elementId}-label`, "aria-selected": this.swirlAriaRole === "option" ? ariaSelected : undefined, class: className, id: `option-list-item-${this.elementId}`, onBlur: this.onBlur, onFocus: this.onFocus, part: "option-list-item", role: this.swirlAriaRole }, showIcon && (index.h("span", { key: '4bb4605bec790297e858dc191ce739ca7a7fc15f', class: "option-list-item__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) }, showIconBadge && (index.h("span", { key: '187934100efed7d64177dab42dfb2cf8f4fa3bcd', class: "option-list-item__icon-badge", innerHTML: this.iconBadge })))), showCheckbox && (index.h("span", { key: '73383423f4318beb554d29d19d3c084e644f2d9c', class: "option-list-item__checkbox" }, index.h("span", { key: '9d39a8728e8d3d349df5f29b8064ad3991e7c69a', class: "option-list-item__checkbox-box" }, this.selected && (index.h("swirl-icon-check-strong", { key: '19835649797e70c0163cef6ad77373141aa17ffb', class: "option-list-item__checkbox-icon", size: 16 }))))), index.h("span", { key: '6deeb6c90a6c65c26a8af36973ad4562cc86c06f', class: "option-list-item__avatar" }, index.h("slot", { key: '733db89be34cbcdd32c3831ef910628ff4da1e0a', name: "avatar" })), index.h("span", { key: '103881477943772f336b9e86e54ded03a66e7a42', class: "option-list-item__label-container" }, index.h("span", { key: 'fe86bafe56b7f9f66cf846a4b8fb49174b5aaca7', class: "option-list-item__label", id: `option-list-item-${this.elementId}-label`, part: "option-list-item__label" }, this.label), this.description && (index.h("span", { key: '0242394567de7fcd7f05c3827dac275b2159a60f', class: "option-list-item__description", id: `option-list-item-${this.elementId}-description` }, this.description))), showSelectionIcon && (index.h("span", { key: '665b080344e85b02111ebd390acc3e46a26cf054', class: "option-list-item__selection-icon" }, index.h("swirl-icon-check-small", { key: '112f73e489c034a85264fcc47d8bb89104b8ba53', size: this.iconSize })))), this.allowDrag && (index.h("button", { key: 'c8e74ab1c619b02008b5012ecc3369b4c23c1584', "aria-describedby": this.dragHandleDescription, "aria-label": `${this.dragHandleLabel} "${this.label}"`, class: "option-list-item__drag-handle", onKeyDown: this.onDragHandleKeyDown, tabIndex: this.focused ? 0 : -1, type: "button" }, index.h("swirl-icon-drag-handle", { key: '8b45eb82b6616f811a3b54384cca5843ad8adc2c', size: this.iconSize })))));
104
104
  }
105
105
  get el() { return index.getElement(this); }
106
106
  };
@@ -41,7 +41,7 @@ const SwirlInlineError = class {
41
41
  }
42
42
  componentDidLoad() {
43
43
  this.forceIconProps(this.desktopMediaQuery.matches);
44
- this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler;
44
+ this.desktopMediaQuery.addEventListener("change", this.desktopMediaQueryHandler);
45
45
  }
46
46
  disconnectedCallback() {
47
47
  this.desktopMediaQuery.removeEventListener?.("change", this.desktopMediaQueryHandler);
@@ -62,7 +62,7 @@ const SwirlInlineError = class {
62
62
  }
63
63
  render() {
64
64
  const className = index$1.classnames("inline-error", `inline-error--size-${this.size}`);
65
- return (index.h(index.Host, { key: '3f568bd195f0a6eabc82ad6a402434f3d7bcf3b8' }, index.h("span", { key: 'fc7e9ac9e6b5a6dc401737cdd6b9babf71811e95', class: className, part: "inline-error" }, index.h("span", { key: '88e7db779d383a22385a9fcfcfbd9a39319e803a', class: "inline-error__icon", ref: (el) => (this.iconEl = el) }, index.h("swirl-icon-error", { key: '712fd1796cda54600076d02e37a1fbc3380c71ba' })), index.h("span", { key: 'a17404c64edd76af0d83f273da947a82700402da', class: "inline-error__message" }, this.message))));
65
+ return (index.h(index.Host, { key: '03ae6eed446e44d9298186c4c4290636e77677b5' }, index.h("span", { key: 'a15e36cd1849e826a6cd578d50d3582e34bf1144', class: className, part: "inline-error" }, index.h("span", { key: 'c81ca9d7f26de1c5cd4d70a806b7e58b0baa3f6d', class: "inline-error__icon", ref: (el) => (this.iconEl = el) }, index.h("swirl-icon-error", { key: 'c2b57b25a9219581521dfe043e54c2580f2b198f' })), index.h("span", { key: '0709c36c7aa4b4bb6c415b1175d3f7d2564bd0d6', class: "inline-error__message" }, this.message))));
66
66
  }
67
67
  };
68
68
  SwirlInlineError.style = SwirlInlineErrorStyle0;
@@ -24,7 +24,7 @@ const SwirlInlineStatus = class {
24
24
  }
25
25
  componentDidLoad() {
26
26
  this.forceIconProps(this.desktopMediaQuery.matches);
27
- this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler;
27
+ this.desktopMediaQuery.addEventListener("change", this.desktopMediaQueryHandler);
28
28
  }
29
29
  disconnectedCallback() {
30
30
  this.desktopMediaQuery.removeEventListener?.("change", this.desktopMediaQueryHandler);
@@ -48,7 +48,7 @@ const SwirlInlineStatus = class {
48
48
  }
49
49
  render() {
50
50
  const className = index$1.classnames("inline-status", `inline-status--intent-${this.intent}`, `inline-status--size-${this.size}`);
51
- return (index.h(index.Host, { key: 'de620abe220b2a927c34fe15dc6c8e3fe8aa82f0' }, index.h("span", { key: 'f79711de79ff44b1582a3b037b22f2de9d287570', class: className, part: "inline-status" }, this.icon && (index.h("span", { key: '30ab76c74939d3a02d52ee4185dc59fff105e7d7', class: "inline-status__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) })), index.h("span", { key: 'ec78edfd8460477db52a29c8998fe31cc21c9eaa', class: "inline-status__message" }, this.message))));
51
+ return (index.h(index.Host, { key: 'b89c28933bfaf10abc6df61372f46cc8d2e3deb1' }, index.h("span", { key: '26877b4b62596a851d4e01f0b646d9fa528ef8cb', class: className, part: "inline-status" }, this.icon && (index.h("span", { key: 'dfb79bb2dd83a3d1966de73079517dd2dabbfd95', class: "inline-status__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) })), index.h("span", { key: 'ff61f8fed2c5c17cd0822fb3e92e5f1441a5f342', class: "inline-status__message" }, this.message))));
52
52
  }
53
53
  };
54
54
  SwirlInlineStatus.style = SwirlInlineStatusStyle0;
@@ -255,7 +255,8 @@ const SwirlLightbox = class {
255
255
  });
256
256
  }
257
257
  getCurrentFileName() {
258
- return this.slides[this.activeSlideIndex]?.file?.split("/").pop();
258
+ const activeSlide = this.slides[this.activeSlideIndex];
259
+ return activeSlide?.fileName || activeSlide?.file?.split("/").pop();
259
260
  }
260
261
  getCurrentFileType() {
261
262
  return this.slides[this.activeSlideIndex]?.type;
@@ -297,7 +298,7 @@ const SwirlLightbox = class {
297
298
  "lightbox--hide-menu": !hasMenuItems,
298
299
  "lightbox--hide-toolbar": !hasToolbar,
299
300
  });
300
- return (index.h(index.Host, { key: 'fd749b5440311691c5759cbb3e0c316fd780044a', onKeydown: this.onKeyDown }, index.h("section", { key: 'c1b73075fbd5b8ea0e5902fe2572507062661d3a', "aria-hidden": String(!this.isOpen), "aria-label": this.label, "aria-modal": "true", class: className, id: "lightbox", onMouseDown: this.onPointerDown, onMouseMove: this.onPointerMove, onMouseOut: this.onPointerUp, onMouseUp: this.onPointerUp, onTouchEnd: this.onPointerUp, onTouchMove: this.onPointerMove, onTouchStart: this.onPointerDown, ref: (el) => (this.modalEl = el), role: "dialog", tabIndex: this.isOpen ? 0 : -1 }, index.h("div", { key: '40bff6fe51a55333aa8f9f846dc063772d673a14', class: "lightbox__body", role: "document" }, index.h("header", { key: 'd873218685bda8f5daf3f9f3e3a55026327c06e6', class: "lightbox__header" }, index.h("button", { key: '4f64b484563822ba8c8cdd3a54840bb9a8b905c4', "aria-label": this.closeButtonLabel, class: "lightbox__close-button", onClick: this.onCloseButtonClick }, index.h("swirl-icon-close", { key: 'ee46955a46ed6d4af310008773b562a59d461e27' })), index.h("div", { key: '0cb0e8b5c571214583c3480fd8b36c85338b4927', class: "lightbox__toolbar" }, index.h("slot", { key: '74eaa0012e2f2dadd0a09ee26b5921e4ddaf66f2', name: "toolbar" })), !this.hideMenu && (index.h("swirl-popover-trigger", { key: 'd4d0ac20646efdad6107a94a389972833924e328', swirlPopover: this.menu }, index.h("button", { key: '065bd64bdc562dd700133923b01f510857deda1b', "aria-label": this.menuTriggerLabel, class: "lightbox__menu-button" }, index.h("swirl-icon-more-vertikal", { key: '824e1f561dbe29483eab64c3575015a42c9a2cd1' }))))), index.h("div", { key: '7c6a9fc512afcfd567f12134368474edb353f823', "aria-roledescription": "carousel", class: "lightbox__content", role: "group" }, index.h("div", { key: 'e010d72cd7e03ec2cf66c2c25987e7d0c9654e6e', "aria-atomic": "false", "aria-live": "polite", class: "lightbox__slides", onClick: this.onBackdropClick, onContextMenu: this.onContextMenu, ref: (el) => (this.slidesContainer = el) }, index.h("slot", { key: 'e33c56f24ec2ffa6e0db22759e1a49a8803c310c', onSlotchange: this.registerSlides }))), index.h("div", { key: '288ab30b0ebeeebb6def666420f8d8112ce09825', class: "lightbox__controls" }, index.h("button", { key: 'cfa61cce95fd3a40199c11d730f0c6ac16c67e84', "aria-label": this.previousSlideButtonLabel, class: "lightbox__previous-slide-button", disabled: this.activeSlideIndex === 0, onClick: this.onPreviousSlideClick }, index.h("swirl-icon-arrow-left", { key: '4f59b0f21ae4904cbe89f0d56b02507cdbc2e560' })), index.h("button", { key: 'abbb750db277657a0d4cb08dab1e04d56b563e93', "aria-label": this.nextSlideButtonLabel, class: "lightbox__next-slide-button", disabled: this.activeSlideIndex === this.slides.length - 1, onClick: this.onNextSlideClick }, index.h("swirl-icon-arrow-right", { key: '29040991baf79195b2d9c3be534d643501109f07' }))), showPagination && (index.h("span", { key: '1c74102a6b6e44928411dd580e566ba00f1467ff', class: "lightbox__pagination" }, index.h("span", { key: 'e8f61205db2dd2f663ba41519eec1f80dcf33813', "aria-current": "page" }, this.activeSlideIndex + 1), " /", " ", this.slides.length))), !this.hideMenu && (index.h("swirl-popover", { key: '5c5e917aa0664ae2be453317d2bc8130140c3d63', animation: "scale-in-y", disableScrollLock: true, id: "slide-menu", label: this.menuLabel, placement: "bottom-end", ref: (el) => (this.menu = el) }, index.h("swirl-stack", { key: 'a9932821bb418ef810d3322a8eb7c3d6938f2a4d' }, index.h("div", { key: 'cc7994ab0d5c02ac53a581c6b6336ae2445f06e4', class: "lightbox__meta" }, currentThumbnailUrl && (index.h("div", { key: 'a9851fa2896b04275d849e30fc2445f833a5f342', class: "lightbox__thumbnail" }, index.h("swirl-thumbnail", { key: '7fba70275ebf5101332d1427b09ce9c692a30a0c', alt: "", src: currentThumbnailUrl }))), index.h("div", { key: '16575c201b1ef6fcd4832396a9105c87ee439a10', class: "lightbox__file-info" }, index.h("swirl-text", { key: '9e8adf46120676a184d8329a715fd634354a1e39', truncate: true, weight: "semibold" }, currentFileName), index.h("swirl-text", { key: '2c932779b2583d0f680f372397fa58b043593d83', color: "subdued", size: "sm", truncate: true }, currentFileType))), hasMenuItems && index.h("swirl-separator", { key: '35b8ace5c92822db36085179fe49cb947069c630' }), index.h("swirl-action-list", { key: 'e772be614a9837e9b92a006fe2c38da4f90869bd' }, this.downloadButtonEnabled && (index.h("swirl-action-list-item", { key: 'bfdaade1004852fe7dd11e494dca441b84d5b97b', icon: "<swirl-icon-download></swirl-icon-download>", label: this.downloadButtonLabel, onClick: this.onDownloadButtonClick })), index.h("slot", { key: '29e86174c4ecbb04657372d6d686867563354747', name: "menu-items" }))))))));
301
+ return (index.h(index.Host, { key: 'd3d03598de6bc850b14983c65f50c4956f337db4', onKeydown: this.onKeyDown }, index.h("section", { key: '035520946bc86d9fd39f69a929429155f39128ac', "aria-hidden": String(!this.isOpen), "aria-label": this.label, "aria-modal": "true", class: className, id: "lightbox", onMouseDown: this.onPointerDown, onMouseMove: this.onPointerMove, onMouseOut: this.onPointerUp, onMouseUp: this.onPointerUp, onTouchEnd: this.onPointerUp, onTouchMove: this.onPointerMove, onTouchStart: this.onPointerDown, ref: (el) => (this.modalEl = el), role: "dialog", tabIndex: this.isOpen ? 0 : -1 }, index.h("div", { key: '924c6ddcf773f739a02f3eac40a85bebb05b00d8', class: "lightbox__body", role: "document" }, index.h("header", { key: 'abde93a32e109d23045b60ef021b5a6e395c5106', class: "lightbox__header" }, index.h("button", { key: 'cd106ff12b26c1cd4f20eff9b9b606c1eb3c2b0c', "aria-label": this.closeButtonLabel, class: "lightbox__close-button", onClick: this.onCloseButtonClick }, index.h("swirl-icon-close", { key: '3daadf28b1572117fd80ef2ee5a01c9a5bf553a1' })), index.h("div", { key: '09faa1918dd1d158fb8db1ac62c92e9b7ef18dfc', class: "lightbox__toolbar" }, index.h("slot", { key: '494edef3a0449c2605b55abde0be66f92ad1191b', name: "toolbar" })), !this.hideMenu && (index.h("swirl-popover-trigger", { key: '48d9ea9f7fb0a8a56a402d2f52b72d82e2fafb0b', swirlPopover: this.menu }, index.h("button", { key: '4f8a369b128d508bd720e0fa66a8a45114d762d4', "aria-label": this.menuTriggerLabel, class: "lightbox__menu-button" }, index.h("swirl-icon-more-vertikal", { key: '882646fcab72ca10537c6a42b8109bdd38eb8283' }))))), index.h("div", { key: 'bb96acbb12f5cc7fa2fa7769bf2ee0257f1c2461', "aria-roledescription": "carousel", class: "lightbox__content", role: "group" }, index.h("div", { key: '60d4900f96d5833894267c2ad07c9880425ff010', "aria-atomic": "false", "aria-live": "polite", class: "lightbox__slides", onClick: this.onBackdropClick, onContextMenu: this.onContextMenu, ref: (el) => (this.slidesContainer = el) }, index.h("slot", { key: 'd29256b029b979ff95c214577cfedc1791a16b28', onSlotchange: this.registerSlides }))), index.h("div", { key: '6413fa0b0c71cfc02e53297f8593cc094bcc3bfe', class: "lightbox__controls" }, index.h("button", { key: 'fc77b0028b862e949d007b34c2e19e6beea7ed59', "aria-label": this.previousSlideButtonLabel, class: "lightbox__previous-slide-button", disabled: this.activeSlideIndex === 0, onClick: this.onPreviousSlideClick }, index.h("swirl-icon-arrow-left", { key: 'a577e41ca07cdfce79f1800f34b6ad55f0fd4fe0' })), index.h("button", { key: '69dca0c03facabd87f06a684c2f9cd5b634c67a9', "aria-label": this.nextSlideButtonLabel, class: "lightbox__next-slide-button", disabled: this.activeSlideIndex === this.slides.length - 1, onClick: this.onNextSlideClick }, index.h("swirl-icon-arrow-right", { key: '43672103b69379f241dfb29dd136d4b44415af1e' }))), showPagination && (index.h("span", { key: '59c60639d329faa44bbcd9c3aaee602c8bc2a4ed', class: "lightbox__pagination" }, index.h("span", { key: '40fcf4e2a7a9363811aaa7ee68830d4f560f2d8d', "aria-current": "page" }, this.activeSlideIndex + 1), " /", " ", this.slides.length))), !this.hideMenu && (index.h("swirl-popover", { key: '12c4c54e98cf2e3f26f97b9a5cc772e1ebc65eb6', animation: "scale-in-y", disableScrollLock: true, id: "slide-menu", label: this.menuLabel, placement: "bottom-end", ref: (el) => (this.menu = el) }, index.h("swirl-stack", { key: 'a02a33c1b7691396289aadb12fdc19086f13f72d' }, index.h("div", { key: 'dfe31fde3473c57810bdaf2b6c0e203bbe1fc588', class: "lightbox__meta" }, currentThumbnailUrl && (index.h("div", { key: '93539bc099e182a312b4d33e5bb75edd1a5acd2e', class: "lightbox__thumbnail" }, index.h("swirl-thumbnail", { key: '7bb1a238d96e2f85784703539e2201a3092f8c9e', alt: "", src: currentThumbnailUrl }))), index.h("div", { key: '59e97cd3a4dcee146524968816b45be44c8707a3', class: "lightbox__file-info" }, index.h("swirl-text", { key: '5e54b16cd8f73a15831d481f2d2067e1f0104f58', truncate: true, weight: "semibold" }, currentFileName), index.h("swirl-text", { key: 'd910adcec06527a16a7af587e7318b339ba89141', color: "subdued", size: "sm", truncate: true }, currentFileType))), hasMenuItems && index.h("swirl-separator", { key: '09b367a3dc2d06a3c5cfc80b436b1ddd747cca79' }), index.h("swirl-action-list", { key: '62cd42d711c2efe345c2f71ee0afe0f78b9b806b' }, this.downloadButtonEnabled && (index.h("swirl-action-list-item", { key: '7a93b6d1de3eac5d1af132d1feedae7912b61498', icon: "<swirl-icon-download></swirl-icon-download>", label: this.downloadButtonLabel, onClick: this.onDownloadButtonClick })), index.h("slot", { key: 'ef2f9c8e826085094737fec86b19526bc7ee1c7b', name: "menu-items" }))))))));
301
302
  }
302
303
  get el() { return index.getElement(this); }
303
304
  static get watchers() { return {
@@ -114,7 +114,7 @@ const SwirlMenu = class {
114
114
  this.observeSlotChanges();
115
115
  }
116
116
  componentDidLoad() {
117
- this.mobileMediaQuery.onchange = this.mediaQueryHandler;
117
+ this.mobileMediaQuery.addEventListener("change", this.mediaQueryHandler);
118
118
  this.parentMenu = utils.closestPassShadow(this.el.parentElement, "swirl-menu");
119
119
  this.swirlPopover = utils.closestPassShadow(this.el, "swirl-popover");
120
120
  this.rootMenu = utils.parentsPassShadow(this.el, "swirl-menu").pop();
@@ -298,7 +298,7 @@ const SwirlMenu = class {
298
298
  "menu--mobile": this.mobile,
299
299
  "menu--root": isTopLevelMenu,
300
300
  });
301
- return (index.h(index.Host, { key: 'f52fc57208c3860eb77be73bd242295c75e6dbb7' }, index.h("div", { key: 'b9acb6b584781ff85dab0848fe29d110b9363042', class: className }, this.mobile && isTopLevelMenu && (index.h("div", { key: '9226d13aa366e2bf5dd6db87eb34547e5f0bd331', class: "menu__mobile-header" }, this.activeLevel === 0 && (index.h("swirl-button", { key: 'e30ebeb2bd890289b5b458af6adb6ccd9c7cef75', hideLabel: true, icon: "<swirl-icon-close></swirl-icon-close>", label: this.mobileCloseMenuButtonLabel, onClick: this.onClose, variant: "plain" })), this.activeLevel > 0 && (index.h("swirl-button", { key: '9b67869307a99c48cd8ce7f28cace23e826cafe1', hideLabel: true, icon: "<swirl-icon-chevron-left></swirl-icon-chevron-left>", label: this.mobileBackButtonLabel, onClick: this.onGoBack, variant: "plain" })), index.h("span", { key: 'c1430a02e8ea197f3ac01bc343196c9ce8b7e7b6', class: "menu__title", id: "menu-title" }, index.h("swirl-heading", { key: '43dcb02b643accee22d6ddd24f7ae0c3a41aeef9', align: "center", as: "span", level: 4, text: this.label, truncate: true })), index.h("swirl-button", { key: '8137cb7fbbaa8884fe4f45b8a15dbc478dc73048', class: "menu__done-button", intent: "primary", label: this.mobileDoneButtonLabel, onClick: this.onDone }))), index.h("div", { key: 'e6f39a87523179133cea6cf88171a7beaba0337b', "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-orientation": "vertical", class: "menu__menu", onKeyDown: this.onKeyDown, ref: (el) => (this.menuContainer = el), role: role, style: !this.mobile && this.level > 0
301
+ return (index.h(index.Host, { key: '6902b3173cdb663accf161ccbae6ef7e6e7bcf5a' }, index.h("div", { key: '33fecf3dcb700082b1ca08ae37125a6c3d50ab2a', class: className }, this.mobile && isTopLevelMenu && (index.h("div", { key: '10a3926fdb1caf2726df95a4ee4a783dcd61ee19', class: "menu__mobile-header" }, this.activeLevel === 0 && (index.h("swirl-button", { key: '425ae346854eb859d46b028ba72501d6e14ee605', hideLabel: true, icon: "<swirl-icon-close></swirl-icon-close>", label: this.mobileCloseMenuButtonLabel, onClick: this.onClose, variant: "plain" })), this.activeLevel > 0 && (index.h("swirl-button", { key: 'add7164401a23532b6e618207d61c868f5455230', hideLabel: true, icon: "<swirl-icon-chevron-left></swirl-icon-chevron-left>", label: this.mobileBackButtonLabel, onClick: this.onGoBack, variant: "plain" })), index.h("span", { key: '8e13f2cb97b571d2e0568ebcff34b0ea8bd55571', class: "menu__title", id: "menu-title" }, index.h("swirl-heading", { key: '7c5a5e3cc7ad96969e4bf7452e0bdb3bb7b97ea5', align: "center", as: "span", level: 4, text: this.label, truncate: true })), index.h("swirl-button", { key: '0bc062508d7f2c31e6bbf1e9bb0cffed63756f9e', class: "menu__done-button", intent: "primary", label: this.mobileDoneButtonLabel, onClick: this.onDone }))), index.h("div", { key: '2b0e92f3446b2b9699247d4473bf64ac2a1e25f5', "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-orientation": "vertical", class: "menu__menu", onKeyDown: this.onKeyDown, ref: (el) => (this.menuContainer = el), role: role, style: !this.mobile && this.level > 0
302
302
  ? {
303
303
  top: Boolean(this.position) ? `${this.position?.y}px` : "",
304
304
  left: Boolean(this.position) ? `${this.position?.x}px` : "",
@@ -309,7 +309,7 @@ const SwirlMenu = class {
309
309
  ? `calc(-100% * ${this.activeLevel})`
310
310
  : "100%",
311
311
  }
312
- : undefined }, index.h("slot", { key: '508ba36bb2f62d00041ac086fe6bf2d2244f1a7f' })))));
312
+ : undefined }, index.h("slot", { key: '0458992fd30bde4b5b3a5fa89322aae6617be081' })))));
313
313
  }
314
314
  get el() { return index.getElement(this); }
315
315
  static get watchers() { return {
@@ -27,7 +27,7 @@ const SwirlResourceListFileItem = class {
27
27
  }
28
28
  componentDidLoad() {
29
29
  this.forceIconProps(this.desktopMediaQuery.matches);
30
- this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler;
30
+ this.desktopMediaQuery.addEventListener("change", this.desktopMediaQueryHandler);
31
31
  }
32
32
  disconnectedCallback() {
33
33
  this.desktopMediaQuery.removeEventListener?.("change", this.desktopMediaQueryHandler);
@@ -47,7 +47,7 @@ const SwirlResourceListFileItem = class {
47
47
  const className = index$1.classnames("resource-list-file-item", {
48
48
  "resource-list-file-item--has-control": showSpinner || showRemoveButton,
49
49
  });
50
- return (index.h(index.Host, { key: '434bfc015f37e68282c37a2d550bca0495ce465c', role: "row" }, index.h("div", { key: 'b38c5c3fc3db14591f105b4ce115576a1b177dd8', class: className, part: "resource-list-file-item", role: "gridcell" }, index.h("span", { key: '4c6c3e868fd3798aed17cf68270d9aae5ca0bb06', class: "resource-list-file-item__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) }), index.h("span", { key: '6ae763f864856bfa26fdd6e7b24aa3d0ec5d5af6', class: "resource-list-file-item__label-container" }, index.h("span", { key: '06a77d786a0b15cb62d5baaa5c115c0068e3ee14', class: "resource-list-file-item__label", id: "label" }, this.label), showDescription && (index.h("span", { key: '8e9369ef52c81dabb749114e026fb48fe297ea47', class: "resource-list-file-item__description" }, this.description)), showError && (index.h("span", { key: '99a0c4c38bcef61ae816c5f0ee730f29442ded01', "aria-live": "polite", class: "resource-list-file-item__error-message" }, index.h("swirl-inline-error", { key: '04e57c429b3d2837236f32e5e308a9ca3d125bf6', message: this.errorMessage, size: "s" })))), showSpinner && (index.h("span", { key: 'f474d849b849655d92c4ff5922c19ed80c83db8e', class: "resource-list-file-item__spinner" }, index.h("swirl-spinner", { key: '14fbfd17f9d7c8f36b372e61a42fdd99cce73aa2', size: "s" }))), showRemoveButton && (index.h("span", { key: 'fc55a25dd2890c62cbd228e1a5aaa43d157b356c', class: "resource-list-file-item__remove-button" }, index.h("swirl-button", { key: 'fac36e13c2c85c26a2beb9183312350b7b3907e3', hideLabel: true, icon: "<swirl-icon-close></swirl-icon-close>", label: this.removeButtonLabel, onClick: this.remove.emit }))))));
50
+ return (index.h(index.Host, { key: 'd77b3a45aff46139e8af03ccdbeb81e9da91370b', role: "row" }, index.h("div", { key: '53df0ea414c05513cee0a17b661767a06442a954', class: className, part: "resource-list-file-item", role: "gridcell" }, index.h("span", { key: '4a72d58087710540e5c74f3cee050f91d48bc6f6', class: "resource-list-file-item__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) }), index.h("span", { key: '33d67a51ce845f06f873b1ce61f3b6887ff9637b', class: "resource-list-file-item__label-container" }, index.h("span", { key: 'b080aa30dbb7b99c1fc888d90a2b69ab021cdd93', class: "resource-list-file-item__label", id: "label" }, this.label), showDescription && (index.h("span", { key: 'b6c86787f6f8dbe4fb22f30b2027f63d7d9d8d8c', class: "resource-list-file-item__description" }, this.description)), showError && (index.h("span", { key: 'f55cafd40457a920047a80f9d537aed786134d18', "aria-live": "polite", class: "resource-list-file-item__error-message" }, index.h("swirl-inline-error", { key: 'ccf0276e67f9d87ef36ede6f74f9e25b5ff6618e', message: this.errorMessage, size: "s" })))), showSpinner && (index.h("span", { key: 'd04e7bbaafbb626c891c3afdb02b20f2362c459d', class: "resource-list-file-item__spinner" }, index.h("swirl-spinner", { key: '2fa064bbfa49c90c45f8106aaac2ae4fe1f1b26d', size: "s" }))), showRemoveButton && (index.h("span", { key: '53ae0a5d63299d4367735ca297d9dd7406c82176', class: "resource-list-file-item__remove-button" }, index.h("swirl-button", { key: 'a7298dfdae92ef380516d5dadac8d7fdff8c7e6a', hideLabel: true, icon: "<swirl-icon-close></swirl-icon-close>", label: this.removeButtonLabel, onClick: this.remove.emit }))))));
51
51
  }
52
52
  };
53
53
  SwirlResourceListFileItem.style = SwirlResourceListFileItemStyle0;
@@ -49,7 +49,7 @@ const SwirlSearch = class {
49
49
  }
50
50
  componentDidLoad() {
51
51
  this.forceIconProps(this.desktopMediaQuery.matches);
52
- this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler;
52
+ this.desktopMediaQuery.addEventListener("change", this.desktopMediaQueryHandler);
53
53
  // see https://stackoverflow.com/a/27314017
54
54
  if (this.autoFocus) {
55
55
  setTimeout(() => {
@@ -77,7 +77,7 @@ const SwirlSearch = class {
77
77
  const className = index$1.classnames("search", `search--variant-${this.variant}`, {
78
78
  "search--disabled": this.disabled,
79
79
  });
80
- return (index.h(index.Host, { key: '043278fda8230b27446918e58293149e6fb4a39e' }, index.h("span", { key: '7f6ca1b136f77f95cb8c1eeab173fcbb70edb780', class: className, ref: (el) => (this.iconEl = el) }, index.h("swirl-icon-search", { key: 'f9a344e4e851a119da3b39bf4cf3d782e4bb3bc6', "aria-hidden": "true", class: "search__icon" }), index.h("input", { key: '5f1a760cebbe980d48a25b60a8326c6d13c3dee7', "aria-disabled": this.disabled ? "true" : undefined, "aria-label": this.label, autoComplete: "off", autoFocus: this.autoFocus, class: "search__input", disabled: this.disabled, id: this.inputId, inputMode: "search", name: this.inputName, onBlur: this.onBlur, onChange: this.onChange, onFocus: this.onFocus, onInput: this.onInput, placeholder: this.placeholder, ref: (el) => (this.input = el), type: "search", value: this.value }), !this.disabled && (index.h("button", { key: 'c5e2d40efe21e15d83b46a1c3f6f4453108aa0a5', "aria-label": this.clearButtonLabel, class: "search__clear-button", onClick: this.clear, type: "button" }, index.h("swirl-icon-cancel", { key: 'a14f40e6264922d010c08ae717d50985491b6dbc' }))))));
80
+ return (index.h(index.Host, { key: 'f867baa30dafa694e189375973b69ee3827799ad' }, index.h("span", { key: '62bb2ef944cb42d3d2bec75c5ab1dd5cd5475bc9', class: className, ref: (el) => (this.iconEl = el) }, index.h("swirl-icon-search", { key: 'a96176fe032074b18d6dff234eb22cb9dd64a060', "aria-hidden": "true", class: "search__icon" }), index.h("input", { key: 'a4844bcc0b4841327500b0ea716e7de4134692d4', "aria-disabled": this.disabled ? "true" : undefined, "aria-label": this.label, autoComplete: "off", autoFocus: this.autoFocus, class: "search__input", disabled: this.disabled, id: this.inputId, inputMode: "search", name: this.inputName, onBlur: this.onBlur, onChange: this.onChange, onFocus: this.onFocus, onInput: this.onInput, placeholder: this.placeholder, ref: (el) => (this.input = el), type: "search", value: this.value }), !this.disabled && (index.h("button", { key: '7d45015ee44044bdf388606f77b37593e27f001a', "aria-label": this.clearButtonLabel, class: "search__clear-button", onClick: this.clear, type: "button" }, index.h("swirl-icon-cancel", { key: '2fa532b767afe00feaf1d7c31999ae1a266476c6' }))))));
81
81
  }
82
82
  };
83
83
  SwirlSearch.style = SwirlSearchStyle0;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-1a9a1551.js');
6
6
  const index$1 = require('./index-9f94303c.js');
7
7
 
8
- const swirlSkeletonBoxCss = ":host{display:block}:host *{box-sizing:border-box}.skeleton-box{position:relative;overflow:hidden;min-height:var(--s-font-size-sm);background-color:var(--s-surface-raised-hovered)}.skeleton-box:before{position:relative;z-index:1;display:block;width:100%;height:100%;background-image:linear-gradient(\n 90deg,\n rgba(255, 255, 255, 0) 0,\n rgba(255, 255, 255, 0) 12%,\n var(--s-surface-raised-default) 50%,\n rgba(255, 255, 255, 0) 88%,\n rgba(255, 255, 255, 0) 100%\n );content:\"\";transform:translateX(-100%);animation:skeleton-box-shimmer 3s infinite}@keyframes skeleton-box-shimmer{100%{transform:translateX(100%)}}.skeleton-box--static:before{display:none}.skeleton-box--border-radius-pill{border-radius:100rem}";
8
+ const swirlSkeletonBoxCss = ":host{display:block}:host *{box-sizing:border-box}.skeleton-box{position:relative;overflow:hidden;min-height:var(--s-font-size-sm);background-color:var(--s-surface-raised-hovered)}.skeleton-box:before{position:relative;z-index:1;display:block;width:100%;height:100%;background-image:linear-gradient(\n 90deg,\n rgba(255, 255, 255, 0) 0,\n rgba(255, 255, 255, 0) 12%,\n var(--s-surface-raised-default) 50%,\n rgba(255, 255, 255, 0) 88%,\n rgba(255, 255, 255, 0) 100%\n );content:\"\";transform:translateX(-100%);animation:skeleton-box-shimmer 3s infinite}@keyframes skeleton-box-shimmer{100%{transform:translateX(100%)}}.skeleton-box--static:before{display:none}.skeleton-box--border-radius-pill{border-radius:100rem}.skeleton-box--border-radius-none{border-radius:0}";
9
9
  const SwirlSkeletonBoxStyle0 = swirlSkeletonBoxCss;
10
10
 
11
11
  const SwirlSkeletonBox = class {
@@ -19,13 +19,13 @@ const SwirlSkeletonBox = class {
19
19
  }
20
20
  render() {
21
21
  const className = index$1.classnames("skeleton-box", `skeleton-box--border-radius-${this.borderRadius}`, { "skeleton-box--static": !this.animated });
22
- return (index.h(index.Host, { key: 'e5902a0a40b2349da2248f713d57b677e9c643d0', style: {
22
+ return (index.h(index.Host, { key: '23da455bc33e38b34976684865dc0051585c3040', style: {
23
23
  width: !Boolean(this.width) && !Boolean(this.aspectRatio)
24
24
  ? "100%"
25
25
  : undefined,
26
- } }, index.h("div", { key: 'fb4b6daa18f4ce93c44285e4493ed3c7fa065b42', class: className, style: {
26
+ } }, index.h("div", { key: 'a7226d23181a3e1ea3a824cc37e9ce6e7b2f34cb', class: className, style: {
27
27
  aspectRatio: this.aspectRatio,
28
- borderRadius: this.borderRadius !== "pill"
28
+ borderRadius: this.borderRadius !== "pill" && this.borderRadius !== "none"
29
29
  ? `var(--s-border-radius-${this.borderRadius})`
30
30
  : undefined,
31
31
  height: this.height,
@@ -113,7 +113,7 @@ const SwirlTextInput = class {
113
113
  }
114
114
  componentDidLoad() {
115
115
  this.updateIconSize(this.desktopMediaQuery.matches);
116
- this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler;
116
+ this.desktopMediaQuery.addEventListener("change", this.desktopMediaQueryHandler);
117
117
  // see https://stackoverflow.com/a/27314017
118
118
  if (this.autoFocus) {
119
119
  setTimeout(() => {
@@ -189,7 +189,7 @@ const SwirlTextInput = class {
189
189
  "text-input--inline": this.inline,
190
190
  "text-input--show-password": this.type === "password" && this.showPassword,
191
191
  });
192
- return (index.h(index.Host, { key: '0b8eede30ea9a577bfebda81539cc5e1e4b5fe95' }, index.h("div", { key: 'bc2a3ab889a8419636c393f9092ab3ed4a56f11c', class: className }, this.prefixLabel && (index.h("span", { key: 'a01095f25187269a58a9cc5cae28975b8d6365a3', class: "text-input__prefix" }, this.prefixLabel)), index.h(Tag, { key: '3dbf1ce0097b57977a49a989eb2e4c842e990d79', "aria-autocomplete": this.swirlAriaAutocomplete, "aria-controls": this.swirlAriaControls, "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled ? "true" : undefined, "aria-expanded": this.swirlAriaExpanded, "aria-invalid": ariaInvalid, autoComplete: this.autoComplete, autoFocus: this.autoFocus, class: "text-input__input", disabled: this.disabled, inputMode: this.mode, maxLength: this.maxLength, max: this.type === "number" ? this.max : undefined, min: this.type === "number" ? this.min : undefined, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput, onKeyPress: this.onKeyPress, placeholder: !Boolean(this.suffixLabel) ? this.placeholder : undefined, ref: (el) => (this.inputEl = el), required: this.required, role: this.swirlRole, rows: this.rows > 1 ? this.rows : this.autoGrow ? 1 : undefined, spellcheck: this.spellCheck, step: this.type === "number" ? this.step : undefined, type: type, value: this.value }, this.rows > 1 && this.value), this.suffixLabel && (index.h("span", { key: '3da40cda2b2f392da53a10797cc96fd726f48ef2', class: "text-input__suffix" }, this.suffixLabel)), showClearButton && (index.h("button", { key: '38cc8425b91dc70a26013a600e49da131db868cd', "aria-label": this.clearButtonLabel, class: "text-input__clear-button", onClick: this.clear, part: "text-input__clear-button", type: "button" }, index.h("swirl-icon-cancel", { key: 'aa9e6a263886a5447b4af70bc0156b74ac74ff46', size: this.iconSize }))), showPasswordToggle && (index.h("button", { key: 'fa338b9f668a7a2ce80c827a4a529a41f129a441', "aria-label": this.passwordToggleLabel, class: "text-input__password-toggle", onClick: this.togglePassword, type: "button" }, this.showPassword ? (index.h("swirl-icon-visibility-off", { size: this.iconSize })) : (index.h("swirl-icon-visibility", { size: this.iconSize })))), showStepper && (index.h("span", { key: 'b113f02d036be11655038a48c5ed649d82b240a3', class: "text-input__stepper" }, index.h("button", { key: '61efb8ca9aebaacdeb8b1aac4e1bc96389a97487', "aria-hidden": "true", class: "text-input__step-button", onClick: this.increaseValue, tabIndex: -1, type: "button" }, index.h("swirl-icon-expand-less", { key: 'd04ce617e500fe49751f0def355124c8a6913872', size: this.iconSize })), index.h("button", { key: 'dd2a2d378be0b6149332dcc49faca360cd96260a', "aria-hidden": "true", class: "text-input__step-button", onClick: this.decreaseValue, tabIndex: -1, type: "button" }, index.h("swirl-icon-expand-more", { key: '0615ab4dfe50d8ca22864e016df8634e8d47ffb8', size: this.iconSize })))), this.showCharacterCounter && (index.h("span", { key: '2d0ad8c0e8a8f894165ed20013a3e7429a93230c', class: "text-input__character-counter" }, this.value?.length || 0, " ", Boolean(this.maxLength) ? `/ ${this.maxLength}` : "")))));
192
+ return (index.h(index.Host, { key: 'e57f2ddeb2239ceffd449efacbc6bddf17777e2c' }, index.h("div", { key: '62eb95ad562fe4cbe7fd56cc9ac0b8d07b97afdf', class: className }, this.prefixLabel && (index.h("span", { key: 'c7d38898067ec7fdd924167e037323bacef742e3', class: "text-input__prefix" }, this.prefixLabel)), index.h(Tag, { key: 'ea0fff8fe61f6323d39dea8490fb722587e58080', "aria-autocomplete": this.swirlAriaAutocomplete, "aria-controls": this.swirlAriaControls, "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled ? "true" : undefined, "aria-expanded": this.swirlAriaExpanded, "aria-invalid": ariaInvalid, autoComplete: this.autoComplete, autoFocus: this.autoFocus, class: "text-input__input", disabled: this.disabled, inputMode: this.mode, maxLength: this.maxLength, max: this.type === "number" ? this.max : undefined, min: this.type === "number" ? this.min : undefined, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput, onKeyPress: this.onKeyPress, placeholder: !Boolean(this.suffixLabel) ? this.placeholder : undefined, ref: (el) => (this.inputEl = el), required: this.required, role: this.swirlRole, rows: this.rows > 1 ? this.rows : this.autoGrow ? 1 : undefined, spellcheck: this.spellCheck, step: this.type === "number" ? this.step : undefined, type: type, value: this.value }, this.rows > 1 && this.value), this.suffixLabel && (index.h("span", { key: '2ae0f456126a27f0256b5dfd851da830ea379018', class: "text-input__suffix" }, this.suffixLabel)), showClearButton && (index.h("button", { key: 'ea47c05178f0ce61188ca8ed15f3bbe6f132b1dc', "aria-label": this.clearButtonLabel, class: "text-input__clear-button", onClick: this.clear, part: "text-input__clear-button", type: "button" }, index.h("swirl-icon-cancel", { key: 'd419f462f82b28bc6c8602f3d4cf65d2649d0234', size: this.iconSize }))), showPasswordToggle && (index.h("button", { key: '565f3c92ef3fd90d1d43c673b94feec9bcf213cf', "aria-label": this.passwordToggleLabel, class: "text-input__password-toggle", onClick: this.togglePassword, type: "button" }, this.showPassword ? (index.h("swirl-icon-visibility-off", { size: this.iconSize })) : (index.h("swirl-icon-visibility", { size: this.iconSize })))), showStepper && (index.h("span", { key: 'ec02752a5258a06827fc156fd4b4cd5a0e712751', class: "text-input__stepper" }, index.h("button", { key: 'c698d2fda7bf64b338920410ef0c894955cf6372', "aria-hidden": "true", class: "text-input__step-button", onClick: this.increaseValue, tabIndex: -1, type: "button" }, index.h("swirl-icon-expand-less", { key: '0f662dd62d1a315d288622a31e4f0dfb0ee530e0', size: this.iconSize })), index.h("button", { key: '49fc4ece3d4b67e3b6fa38ecdb681edf5e2e0791', "aria-hidden": "true", class: "text-input__step-button", onClick: this.decreaseValue, tabIndex: -1, type: "button" }, index.h("swirl-icon-expand-more", { key: '49de410032a3f513ba78e7f6a986645441db80eb', size: this.iconSize })))), this.showCharacterCounter && (index.h("span", { key: 'c2e4a3b9e5dc0c1eb4ef0ee686a7dd2cd2c1a6d7', class: "text-input__character-counter" }, this.value?.length || 0, " ", Boolean(this.maxLength) ? `/ ${this.maxLength}` : "")))));
193
193
  }
194
194
  static get watchers() { return {
195
195
  "value": ["watchValue"]
@@ -86,7 +86,7 @@ const SwirlTimeInput = class {
86
86
  componentDidLoad() {
87
87
  this.setupMask();
88
88
  this.updateIconSize(this.desktopMediaQuery.matches);
89
- this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler;
89
+ this.desktopMediaQuery.addEventListener("change", this.desktopMediaQueryHandler);
90
90
  // see https://stackoverflow.com/a/27314017
91
91
  if (this.autoFocus) {
92
92
  setTimeout(() => {
@@ -129,7 +129,7 @@ const SwirlTimeInput = class {
129
129
  const className = index$1.classnames("time-input", {
130
130
  "time-input--inline": this.inline,
131
131
  });
132
- return (index.h(index.Host, { key: '19d6ea6fee406249c4ae1220f966cd2a157e72bb' }, index.h("div", { key: '3a59905a0e5ec9e6591fd7467ede76511a8c9902', class: className }, index.h("input", { key: '621cc10e8441af59e22d26ebbeabbee3fb7f4f95', "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled ? "true" : undefined, "aria-invalid": ariaInvalid, autoFocus: this.autoFocus, class: "time-input__input", disabled: this.disabled, id: this.id, inputmode: "numeric", onBlur: this.onBlur, onClick: this.onClick, onFocus: this.onFocus, onInput: this.onInput, placeholder: this.placeholder, ref: (el) => (this.inputEl = el), required: this.required, type: "text", value: displayValue }), index.h("span", { key: '2c52f9937ba29729b2019bb11ebe8b5fdd18d1fa', class: "time-input__icon" }, index.h("swirl-icon-time-outlined", { key: '6d04cabe2577d1bf98686be52b2657acff08e604', size: this.iconSize })))));
132
+ return (index.h(index.Host, { key: '2c4924715b04c0e77299b48a29fe7ec044229884' }, index.h("div", { key: 'b8bceee82f8ee07a206515e8f3bf3ba6c7fd6320', class: className }, index.h("input", { key: 'd06d11faf603e2c8526ab780ac64bbe10b61d562', "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled ? "true" : undefined, "aria-invalid": ariaInvalid, autoFocus: this.autoFocus, class: "time-input__input", disabled: this.disabled, id: this.id, inputmode: "numeric", onBlur: this.onBlur, onClick: this.onClick, onFocus: this.onFocus, onInput: this.onInput, placeholder: this.placeholder, ref: (el) => (this.inputEl = el), required: this.required, type: "text", value: displayValue }), index.h("span", { key: 'b84dd53cb89b2532904f0978c951dcab01996d33', class: "time-input__icon" }, index.h("swirl-icon-time-outlined", { key: '0c6df7dcd4388bfd2b06c6e70e2a30e36474ea3a', size: this.iconSize })))));
133
133
  }
134
134
  get el() { return index.getElement(this); }
135
135
  static get watchers() { return {