@getflip/swirl-components 0.116.0 → 0.117.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 (107) hide show
  1. package/components.json +371 -69
  2. package/dist/cjs/focus-trap.esm-21561e09.js +1145 -0
  3. package/dist/cjs/index-506fe4ea.js +14 -26
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/swirl-app-bar.cjs.entry.js +2 -1
  6. package/dist/cjs/swirl-app-icon.cjs.entry.js +1 -3
  7. package/dist/cjs/swirl-app-layout_6.cjs.entry.js +1 -1
  8. package/dist/cjs/swirl-badge.cjs.entry.js +1 -1
  9. package/dist/cjs/swirl-components.cjs.js +1 -1
  10. package/dist/cjs/swirl-icon-arrow-back_5.cjs.entry.js +87 -0
  11. package/dist/cjs/swirl-icon-dock-left.cjs.entry.js +23 -0
  12. package/dist/cjs/swirl-modal.cjs.entry.js +2 -1143
  13. package/dist/cjs/swirl-shell-layout.cjs.entry.js +87 -75
  14. package/dist/cjs/swirl-shell-navigation-item.cjs.entry.js +1 -1
  15. package/dist/cjs/swirl-visually-hidden.cjs.entry.js +1 -1
  16. package/dist/collection/assets/pdfjs/pdf.worker.min.js +1 -1
  17. package/dist/collection/collection-manifest.json +1 -0
  18. package/dist/collection/components/swirl-app-bar/swirl-app-bar.js +20 -1
  19. package/dist/collection/components/swirl-app-icon/swirl-app-icon.css +3 -22
  20. package/dist/collection/components/swirl-app-icon/swirl-app-icon.js +0 -20
  21. package/dist/collection/components/swirl-app-layout/swirl-app-layout.css +38 -4
  22. package/dist/collection/components/swirl-badge/swirl-badge.css +18 -1
  23. package/dist/collection/components/swirl-badge/swirl-badge.js +1 -1
  24. package/dist/collection/components/swirl-icon/icons/swirl-icon-dock-left.js +52 -0
  25. package/dist/collection/components/swirl-shell-layout/swirl-shell-layout.css +353 -132
  26. package/dist/collection/components/swirl-shell-layout/swirl-shell-layout.js +322 -95
  27. package/dist/collection/components/swirl-shell-layout/swirl-shell-layout.spec.js +8 -58
  28. package/dist/collection/components/swirl-shell-layout/swirl-shell-layout.stories.js +81 -102
  29. package/dist/collection/components/swirl-shell-navigation-item/swirl-shell-navigation-item.css +46 -35
  30. package/dist/collection/components/swirl-visually-hidden/swirl-visually-hidden.js +1 -1
  31. package/dist/collection/components/swirl-visually-hidden/swirl-visually-hidden.spec.js +0 -3
  32. package/dist/components/assets/images/flip-logo.png +0 -0
  33. package/dist/components/assets/pdfjs/pdf.worker.min.js +1 -1
  34. package/dist/components/focus-trap.esm.js +1143 -0
  35. package/dist/components/swirl-app-bar.js +3 -1
  36. package/dist/components/swirl-app-icon.js +1 -4
  37. package/dist/components/swirl-app-layout2.js +1 -1
  38. package/dist/components/swirl-badge2.js +1 -1
  39. package/dist/components/swirl-icon-arrow-back.js +1 -35
  40. package/dist/{esm/swirl-icon-arrow-back.entry.js → components/swirl-icon-arrow-back2.js} +26 -8
  41. package/dist/components/swirl-icon-arrow-forward.js +1 -35
  42. package/dist/{esm/swirl-icon-arrow-forward.entry.js → components/swirl-icon-arrow-forward2.js} +26 -8
  43. package/dist/components/swirl-icon-dock-left.d.ts +11 -0
  44. package/dist/components/swirl-icon-dock-left.js +40 -0
  45. package/dist/components/swirl-icon-double-arrow-left.js +1 -35
  46. package/dist/{esm/swirl-icon-double-arrow-left.entry.js → components/swirl-icon-double-arrow-left2.js} +26 -8
  47. package/dist/components/swirl-icon-double-arrow-right.js +1 -35
  48. package/dist/{esm/swirl-icon-double-arrow-right.entry.js → components/swirl-icon-double-arrow-right2.js} +26 -8
  49. package/dist/components/swirl-icon-menu.js +1 -35
  50. package/dist/{esm/swirl-icon-menu.entry.js → components/swirl-icon-menu2.js} +26 -8
  51. package/dist/components/swirl-modal.js +1 -1142
  52. package/dist/components/swirl-shell-layout.js +150 -89
  53. package/dist/components/swirl-shell-navigation-item.js +1 -1
  54. package/dist/components/swirl-visually-hidden2.js +2 -3
  55. package/dist/esm/focus-trap.esm-37cd2d2b.js +1143 -0
  56. package/dist/esm/index-99d0060d.js +14 -26
  57. package/dist/esm/loader.js +1 -1
  58. package/dist/esm/swirl-app-bar.entry.js +2 -1
  59. package/dist/esm/swirl-app-icon.entry.js +1 -3
  60. package/dist/esm/swirl-app-layout_6.entry.js +1 -1
  61. package/dist/esm/swirl-badge.entry.js +1 -1
  62. package/dist/esm/swirl-components.js +1 -1
  63. package/dist/esm/swirl-icon-arrow-back_5.entry.js +79 -0
  64. package/dist/esm/swirl-icon-dock-left.entry.js +19 -0
  65. package/dist/esm/swirl-modal.entry.js +1 -1142
  66. package/dist/esm/swirl-shell-layout.entry.js +88 -76
  67. package/dist/esm/swirl-shell-navigation-item.entry.js +1 -1
  68. package/dist/esm/swirl-visually-hidden.entry.js +1 -1
  69. package/dist/swirl-components/p-08fd60a5.entry.js +1 -0
  70. package/dist/swirl-components/p-0ac2eb84.entry.js +1 -0
  71. package/dist/swirl-components/p-11c6c9ba.entry.js +1 -0
  72. package/dist/swirl-components/p-25b4973d.entry.js +1 -0
  73. package/dist/swirl-components/p-262771e5.entry.js +1 -0
  74. package/dist/swirl-components/p-3795fbb4.entry.js +1 -0
  75. package/dist/swirl-components/p-40ee5f22.entry.js +1 -0
  76. package/dist/swirl-components/p-4a69e7f3.entry.js +1 -0
  77. package/dist/swirl-components/p-76c36ee9.entry.js +1 -0
  78. package/dist/swirl-components/p-7c4a4b66.entry.js +1 -0
  79. package/dist/swirl-components/p-c2e1dfdb.js +10 -0
  80. package/dist/swirl-components/swirl-components.esm.js +1 -1
  81. package/dist/types/components/swirl-app-bar/swirl-app-bar.d.ts +1 -0
  82. package/dist/types/components/swirl-app-icon/swirl-app-icon.d.ts +0 -1
  83. package/dist/types/components/swirl-badge/swirl-badge.d.ts +1 -1
  84. package/dist/types/components/swirl-icon/icons/swirl-icon-dock-left.d.ts +5 -0
  85. package/dist/types/components/swirl-shell-layout/swirl-shell-layout.d.ts +42 -25
  86. package/dist/types/components.d.ts +50 -11
  87. package/icons.json +1 -1
  88. package/package.json +2 -2
  89. package/vscode-data.json +58 -6
  90. package/dist/cjs/swirl-icon-arrow-back.cjs.entry.js +0 -23
  91. package/dist/cjs/swirl-icon-arrow-forward.cjs.entry.js +0 -23
  92. package/dist/cjs/swirl-icon-double-arrow-left.cjs.entry.js +0 -23
  93. package/dist/cjs/swirl-icon-double-arrow-right.cjs.entry.js +0 -23
  94. package/dist/cjs/swirl-icon-menu.cjs.entry.js +0 -23
  95. package/dist/swirl-components/p-3a2abee9.entry.js +0 -1
  96. package/dist/swirl-components/p-441c8210.entry.js +0 -1
  97. package/dist/swirl-components/p-4a84e63d.entry.js +0 -1
  98. package/dist/swirl-components/p-54e4ff0b.entry.js +0 -1
  99. package/dist/swirl-components/p-5da3a9a8.entry.js +0 -1
  100. package/dist/swirl-components/p-645a878c.entry.js +0 -1
  101. package/dist/swirl-components/p-79be22ea.entry.js +0 -10
  102. package/dist/swirl-components/p-97668c59.entry.js +0 -1
  103. package/dist/swirl-components/p-be2cf7ee.entry.js +0 -1
  104. package/dist/swirl-components/p-c4d4a99d.entry.js +0 -1
  105. package/dist/swirl-components/p-ca78767e.entry.js +0 -1
  106. package/dist/swirl-components/p-d2fc7935.entry.js +0 -1
  107. package/dist/swirl-components/p-f83a0b0f.entry.js +0 -1
@@ -1,130 +1,191 @@
1
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
1
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
2
  import { c as classnames } from './index2.js';
3
- import { g as getDesktopMediaQuery, b as getActiveElement } from './utils.js';
4
- import { d as defineCustomElement$2 } from './swirl-button2.js';
3
+ import { c as createFocusTrap } from './focus-trap.esm.js';
4
+ import { d as defineCustomElement$9 } from './swirl-badge2.js';
5
+ import { d as defineCustomElement$8 } from './swirl-icon2.js';
6
+ import { d as defineCustomElement$7 } from './swirl-icon-arrow-back2.js';
7
+ import { d as defineCustomElement$6 } from './swirl-icon-arrow-forward2.js';
8
+ import { d as defineCustomElement$5 } from './swirl-icon-double-arrow-left2.js';
9
+ import { d as defineCustomElement$4 } from './swirl-icon-double-arrow-right2.js';
10
+ import { d as defineCustomElement$3 } from './swirl-icon-menu2.js';
11
+ import { d as defineCustomElement$2 } from './swirl-visually-hidden2.js';
5
12
 
6
- const swirlShellLayoutCss = ":host{--extended-sidebar-width:17rem;--collapsed-sidebar-width:4rem;display:flex;width:100%;height:100%}:host *{box-sizing:border-box}.shell-layout{display:grid;width:100%;min-height:100%;transition:grid-template-columns 0.2s;grid-template-columns:0 1fr;grid-template-rows:auto 1fr;grid-template-areas:\"banner banner\"\n \"sidebar main\"}@media (min-width: 992px){.shell-layout{grid-template-columns:var(--extended-sidebar-width) 1fr}}.shell-layout--collapsed-sidebar{grid-template-columns:0 1fr}@media (min-width: 992px){.shell-layout--collapsed-sidebar:not(.shell-layout--collapsing) .shell-layout__sidebar-wrapper.shell-layout__sidebar-wrapper--hovered .shell-layout__sidebar,.shell-layout--collapsed-sidebar:not(.shell-layout--collapsing) .shell-layout__sidebar-wrapper:focus-within .shell-layout__sidebar{width:var(--extended-sidebar-width);box-shadow:0 0.75rem 2rem rgba(25, 26, 28, 0.12),\n 0 0.25rem 0.75rem rgba(25, 26, 28, 0.08)}}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper{transform:translate3d(-100%, 0, 0)}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper .shell-layout__sidebar{width:100%;box-shadow:none}@media (min-width: 992px){.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper{max-width:var(--collapsed-sidebar-width);flex-basis:var(--collapsed-sidebar-width);transform:none}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper:not(.shell-layout__sidebar-wrapper--hovered):not(:focus-within) .shell-layout__sidebar{box-shadow:none}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper:not(.shell-layout__sidebar-wrapper--hovered):not(:focus-within) .shell-layout__collapsed-logo{display:inline-flex;justify-content:center;align-items:center}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper:not(.shell-layout__sidebar-wrapper--hovered):not(:focus-within) .shell-layout__expanded-logo{display:none}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper:not(.shell-layout__sidebar-wrapper--hovered):not(:focus-within) .shell-layout__toggle{display:none}}@media (min-width: 992px){.shell-layout--collapsed-sidebar{grid-template-columns:var(--collapsed-sidebar-width) 1fr}}.shell-layout--hide-sidebar{grid-template-columns:1fr;grid-template-areas:\"banner\"\n \"main\"}@media (min-width: 992px){.shell-layout--hide-sidebar{grid-template-columns:1fr}}.shell-layout__banner{grid-area:banner}.shell-layout__sidebar-wrapper{position:absolute;z-index:2;top:0;bottom:0;left:0;width:100%;max-width:var(--extended-sidebar-width);min-height:0;flex-basis:var(--extended-sidebar-width);flex-shrink:0;transition:max-width 0.2s, transform 0.2s;grid-area:sidebar}@media (min-width: 992px){.shell-layout__sidebar-wrapper{position:relative;inset:auto}}.shell-layout__sidebar{display:flex;width:var(--extended-sidebar-width);height:100%;border-right:var(--s-border-width-default) solid var(--s-border-default);flex-direction:column;transition:box-shadow 0.2s, width 0.2s;box-shadow:0 0.75rem 2rem rgba(25, 26, 28, 0.12),\n 0 0.25rem 0.75rem rgba(25, 26, 28, 0.08)}@media (min-width: 992px){.shell-layout__sidebar{box-shadow:none}}.shell-layout__header{flex-shrink:0;border-bottom:var(--s-border-width-default) solid var(--s-border-default);background-color:var(--s-background-default)}.shell-layout__logo-bar{display:flex;overflow:hidden;align-items:center;height:4.5rem}.shell-layout__expanded-logo{padding-right:var(--s-space-12);padding-left:var(--s-space-12);flex-grow:1}.shell-layout__collapsed-logo{display:none;padding-right:var(--s-space-12);padding-left:var(--s-space-12);flex-grow:1}.shell-layout__toggle{padding-right:var(--s-space-16);padding-left:var(--s-space-12);flex-grow:0;flex-shrink:0}.shell-layout__mobile-toggle{position:absolute;z-index:2;top:var(--s-space-12);left:calc(100% + var(--s-space-16))}@media (min-width: 992px){.shell-layout__mobile-toggle{display:none}}.shell-layout__main-navigation{overflow:auto;flex-grow:1;background-color:var(--s-background-default)}.shell-layout__main{min-height:0;background-color:var(--s-background-default);grid-area:main}.shell-layout__main>*,.shell-layout__main ::slotted(*){height:100%}.shell-layout__backdrop{position:fixed;z-index:1;background-color:rgba(0, 0, 0, 0.4);animation:shell-layout-backdrop-fade-in 0.1s;inset:0}@media (min-width: 992px){.shell-layout__backdrop{display:none}}.shell-layout__backdrop--fading{animation:shell-layout-backdrop-fade-out 0.2s}@keyframes shell-layout-backdrop-fade-in{from{opacity:0}to{opacity:1}}@keyframes shell-layout-backdrop-fade-out{from{opacity:1}to{opacity:0}}";
13
+ const swirlShellLayoutCss = ".sc-swirl-shell-layout-h{--swirl-shell-background:var(--s-surface-sunken-default);--swirl-shell-text-color:var(--s-text-default);--swirl-shell-header-height:3.25rem;--swirl-shell-collapsed-nav-width:3.75rem;--swirl-shell-extended-nav-width:14rem;--swirl-shell-sidebar-width:21rem;display:flex;width:100%;height:100%}.sc-swirl-shell-layout-h *.sc-swirl-shell-layout{box-sizing:border-box}.shell-layout.sc-swirl-shell-layout{display:grid;width:100%;min-height:100%;background-color:var(--swirl-shell-background);transition:grid-template-columns 0.2s;grid-template-columns:0 1fr 0;grid-template-rows:1fr;grid-template-areas:\"nav main\"}@media (min-width: 992px){.shell-layout.sc-swirl-shell-layout{padding-right:var(--s-space-8);padding-bottom:var(--s-space-8);gap:var(--s-space-8);grid-template-columns:var(--swirl-shell-extended-nav-width) 1fr 0;grid-template-rows:var(--swirl-shell-header-height) 1fr;grid-template-areas:\"header header header\"\n \"nav main sidebar\"}}.shell-layout--branded-header.sc-swirl-shell-layout .shell-layout__header.sc-swirl-shell-layout{border-bottom:none;color:var(--s-text-on-action-primary);background-color:var(--s-action-primary-default)}.shell-layout--branded-header.sc-swirl-shell-layout .shell-layout__header.sc-swirl-shell-layout .shell-layout__header-tool.sc-swirl-shell-layout{color:var(--s-text-on-action-primary);background-color:var(--s-action-primary-default)}.shell-layout--branded-header.sc-swirl-shell-layout .shell-layout__header.sc-swirl-shell-layout .shell-layout__header-tool.sc-swirl-shell-layout:hover{background-color:var(--s-action-primary-hovered)}.shell-layout--branded-header.sc-swirl-shell-layout .shell-layout__header.sc-swirl-shell-layout .shell-layout__header-tool.sc-swirl-shell-layout:active{background-color:var(--s-action-primary-pressed)}.shell-layout--branded-header.sc-swirl-shell-layout .shell-layout__header.sc-swirl-shell-layout .shell-layout__header-tool.sc-swirl-shell-layout swirl-badge.sc-swirl-shell-layout{--swirl-badge-border-color:var(--s-action-primary-default)}.shell-layout--navigation-collapsed.sc-swirl-shell-layout .shell-layout__navigation-toggle.sc-swirl-shell-layout:hover swirl-icon-double-arrow-left.sc-swirl-shell-layout{display:none}.shell-layout--navigation-collapsed.sc-swirl-shell-layout .shell-layout__navigation-toggle.sc-swirl-shell-layout:hover swirl-icon-double-arrow-right.sc-swirl-shell-layout{display:inline-flex}@media (min-width: 992px){.shell-layout--navigation-collapsed.sc-swirl-shell-layout{grid-template-columns:var(--swirl-shell-collapsed-nav-width) 1fr 0}}@media (min-width: 1440px){.shell-layout--sidebar-active.shell-layout--navigation-collapsed.sc-swirl-shell-layout{grid-template-columns:var(--swirl-shell-collapsed-nav-width) 1fr var(\n --swirl-shell-sidebar-width\n )}}@media (min-width: 1440px){.shell-layout--sidebar-active.sc-swirl-shell-layout .shell-layout__main.sc-swirl-shell-layout{width:100%}}@media (min-width: 992px){.shell-layout--sidebar-active.sc-swirl-shell-layout .shell-layout__sidebar-body.sc-swirl-shell-layout{border:0.0625rem solid var(--s-border-default);transform:translate3d(0, 0, 0)}}@media (min-width: 1440px){.shell-layout--sidebar-active.sc-swirl-shell-layout{grid-template-columns:var(--swirl-shell-extended-nav-width) 1fr var(\n --swirl-shell-sidebar-width\n )}}.shell-layout--mobile-navigation-active.sc-swirl-shell-layout .shell-layout__nav.sc-swirl-shell-layout{transform:translate3d(0, 0, 0);box-shadow:var(--s-shadow-level-3)}@media (min-width: 992px){.shell-layout--mobile-navigation-active.sc-swirl-shell-layout .shell-layout__nav.sc-swirl-shell-layout{transform:none;box-shadow:none}}.shell-layout--mobile-navigation-active.sc-swirl-shell-layout .shell-layout__mobile-nav-backdrop.sc-swirl-shell-layout{display:block}@media (min-width: 992px){.shell-layout--mobile-navigation-active.sc-swirl-shell-layout .shell-layout__mobile-nav-backdrop.sc-swirl-shell-layout{display:none}}.shell-layout__header.sc-swirl-shell-layout{position:relative;display:none;width:calc(100% + var(--s-space-8));padding-top:var(--s-space-8);padding-right:var(--s-space-16);padding-bottom:var(--s-space-8);padding-left:var(--s-space-16);justify-content:space-between;align-items:center;border-bottom:0.0625rem solid var(--s-border-default);color:var(--swirl-shell-text-color);grid-area:header}@media (min-width: 992px){.shell-layout__header.sc-swirl-shell-layout{display:flex}}.shell-layout__skip-link.sc-swirl-shell-layout{position:absolute;z-index:9;top:0;left:0;padding:var(--s-space-4);border:none;color:var(--swirl-shell-text-color);background-color:var(--swirl-shell-background);font:inherit;cursor:pointer}.shell-layout__skip-link.sc-swirl-shell-layout:not(:focus):not(:active){position:absolute;overflow:hidden;width:1px;height:1px;white-space:nowrap;clip:rect(0 0 0 0);-webkit-clip-path:inset(50%);clip-path:inset(50%)}.shell-layout__header-left.sc-swirl-shell-layout{display:flex;flex-basis:8rem;flex-shrink:0;gap:var(--s-space-8)}.shell-layout__header-right.sc-swirl-shell-layout{display:flex;flex-basis:8rem;flex-shrink:0;justify-content:flex-end;align-items:center;gap:var(--s-space-8)}.shell-layout__logo.sc-swirl-shell-layout{display:flex;flex-grow:1;justify-content:center;align-items:center}.shell-layout__logo.sc-swirl-shell-layout-s>img{max-height:1.75rem}.shell-layout__header-tool.sc-swirl-shell-layout{position:relative;width:2.25rem;height:2.25rem;padding:var(--s-space-8);border:none;border-radius:var(--s-border-radius-sm);color:var(--swirl-shell-text-color);background-color:var(--s-surface-sunken-default);font:inherit;cursor:pointer}.shell-layout__header-tool.sc-swirl-shell-layout:hover{background-color:var(--s-surface-sunken-hovered)}.shell-layout__header-tool.sc-swirl-shell-layout:active{background-color:var(--s-surface-sunken-pressed)}.shell-layout__header-tool.sc-swirl-shell-layout:focus{outline:none}.shell-layout__header-tool.sc-swirl-shell-layout:focus-visible{box-shadow:0 0 0 0.125rem var(--s-focus-default)}.shell-layout__header-tool.sc-swirl-shell-layout swirl-badge.sc-swirl-shell-layout{--swirl-badge-border-color:var(--s-surface-sunken-default);position:absolute;right:0;bottom:0;transform:translate3d(0.1875rem, 0, 0)}.shell-layout__sidebar-toggle.sc-swirl-shell-layout{display:none}@media (min-width: 992px){.shell-layout__sidebar-toggle.sc-swirl-shell-layout{display:block}}.shell-layout__navigation-toggle.sc-swirl-shell-layout:hover swirl-icon-menu.sc-swirl-shell-layout{display:none}.shell-layout__navigation-toggle.sc-swirl-shell-layout:hover swirl-icon-double-arrow-left.sc-swirl-shell-layout{display:inline-flex}.shell-layout__navigation-toggle.sc-swirl-shell-layout swirl-icon-double-arrow-right.sc-swirl-shell-layout,.shell-layout__navigation-toggle.sc-swirl-shell-layout swirl-icon-double-arrow-left.sc-swirl-shell-layout{display:none}.shell-layout__nav.sc-swirl-shell-layout{position:fixed;z-index:9;top:0;bottom:0;left:0;overflow:auto;width:100%;max-width:18.75rem;color:var(--swirl-shell-text-color);background-color:var(--s-surface-overlay-default);transition:transform 0.2s, box-shadow 0.2s;transform:translate3d(-100%, 0, 0);grid-area:nav}@media (min-width: 992px){.shell-layout__nav.sc-swirl-shell-layout{position:static;max-width:none;padding-top:0;padding-right:var(--s-space-4);padding-bottom:var(--s-space-8);padding-left:var(--s-space-12);background-color:var(--swirl-shell-background);transform:none;box-shadow:none;inset:auto}}.shell-layout__mobile-header.sc-swirl-shell-layout{display:flex;min-height:3.5rem;margin-bottom:var(--s-space-8);padding-top:var(--s-space-8);padding-right:var(--s-space-16);padding-bottom:var(--s-space-8);padding-left:var(--s-space-16);justify-content:space-between;align-items:center;border-bottom:0.0625rem solid var(--s-border-default)}.shell-layout__mobile-header.sc-swirl-shell-layout-s>img{max-height:1.75rem}.shell-layout__mobile-header.sc-swirl-shell-layout .shell-layout__header-tool.sc-swirl-shell-layout{background-color:var(--s-surface-overlay-default)}.shell-layout__mobile-header.sc-swirl-shell-layout .shell-layout__header-tool.sc-swirl-shell-layout:hover{background-color:var(--s-surface-overlay-hovered)}.shell-layout__mobile-header.sc-swirl-shell-layout .shell-layout__header-tool.sc-swirl-shell-layout:active{background-color:var(--s-surface-overlay-pressed)}@media (min-width: 992px){.shell-layout__mobile-header.sc-swirl-shell-layout{display:none}}.shell-layout__mobile-header-tools.sc-swirl-shell-layout{display:flex;justify-content:flex-end;align-items:center;gap:var(--s-space-8)}.shell-layout__nav-body.sc-swirl-shell-layout{padding:var(--s-space-8)}.shell-layout__nav-body.sc-swirl-shell-layout-s ul{margin:0;padding:0;list-style:none}.shell-layout__nav-body.sc-swirl-shell-layout-s li{display:flex}@media (min-width: 992px){.shell-layout__nav-body.sc-swirl-shell-layout{padding:0}}.shell-layout__mobile-nav-backdrop.sc-swirl-shell-layout{position:fixed;z-index:8;display:none;background-color:rgba(0, 0, 0, 0.25);animation:shell-layout-backdrop-fade-in 0.2s;inset:0}.shell-layout__main.sc-swirl-shell-layout{overflow:hidden;grid-area:main}@media (min-width: 992px){.shell-layout__main.sc-swirl-shell-layout{width:calc(100% + var(--s-space-8));border:0.0625rem solid var(--s-border-default);border-radius:var(--s-border-radius-sm)}}.shell-layout__sidebar.sc-swirl-shell-layout{position:relative;display:none;grid-area:sidebar}@media (min-width: 992px){.shell-layout__sidebar.sc-swirl-shell-layout{display:block}}@media (min-width: 1440px){.shell-layout__sidebar.sc-swirl-shell-layout{overflow:hidden}}.shell-layout__sidebar-body.sc-swirl-shell-layout{z-index:1;display:flex;width:var(--swirl-shell-sidebar-width);height:100%;border-radius:var(--s-border-radius-sm);background-color:var(--s-background-default);flex-direction:column}@media (min-width: 992px){.shell-layout__sidebar-body.sc-swirl-shell-layout{position:absolute;top:0;right:0;bottom:0;transition:transform 0.2s;transform:translate3d(calc(100% + var(--s-space-24)), 0, 0);box-shadow:var(--s-shadow-level-3)}}@media (min-width: 1440px){.shell-layout__sidebar-body.sc-swirl-shell-layout{position:relative;transform:none;box-shadow:none;inset:auto}}.shell-layout__sidebar-app-bar.sc-swirl-shell-layout{flex-grow:0;flex-shrink:0;border-bottom:var(--s-border-width-default) solid var(--s-border-default)}.shell-layout__sidebar-content.sc-swirl-shell-layout{overflow:auto;flex-grow:1}@keyframes shell-layout-backdrop-fade-in{from{opacity:0}to{opacity:1}}";
7
14
 
15
+ const NAVIGATION_COLLAPSE_STORAGE_KEY = "SWIRL_SHELL_NAVIGATION_COLLAPSE_STATE";
16
+ const SIDEBAR_STORAGE_KEY = "SWIRL_SHELL_SIDEBAR_STATE";
8
17
  const SwirlShellLayout$1 = /*@__PURE__*/ proxyCustomElement(class SwirlShellLayout extends HTMLElement {
9
18
  constructor() {
10
19
  super();
11
20
  this.__registerHost();
12
- this.__attachShadow();
13
- this.desktopMediaQuery = getDesktopMediaQuery();
14
- this.desktopMediaQueryHandler = (event) => {
15
- if (event.matches) {
16
- this.expandLeftSidebar();
17
- }
18
- else {
19
- this.collapseLeftSidebar();
20
- }
21
- };
22
- this.collapseLeftSidebar = () => {
23
- this.collapsedSidebar = true;
24
- this.collapsing = true;
25
- setTimeout(() => {
26
- this.collapsing = false;
27
- // Some browsers don't update the hovered state of an element correctly,
28
- // if the element was moved and is no longer underneath the cursor.
29
- // https://bugs.chromium.org/p/chromium/issues/detail?id=276329
30
- this.sidebarHovered = false;
31
- }, 200);
32
- };
33
- this.expandLeftSidebar = () => {
34
- if (this.hideSidebar) {
35
- return;
36
- }
37
- this.collapsedSidebar = false;
38
- };
39
- this.toggleSidebar = () => {
40
- if (this.collapsedSidebar) {
41
- this.expandLeftSidebar();
42
- }
43
- else {
44
- this.collapseLeftSidebar();
45
- }
46
- };
47
- this.onBackdropClick = () => {
48
- if (!this.collapsedSidebar) {
49
- this.collapseLeftSidebar();
50
- }
21
+ this.sidebarToggleClick = createEvent(this, "sidebarToggleClick", 7);
22
+ this.skipLinkClick = createEvent(this, "skipLinkClick", 7);
23
+ this.onBrowserBackClick = () => {
24
+ history.back();
51
25
  };
52
- this.onSidebarClick = () => {
53
- if (this.collapsedSidebar) {
54
- document.activeElement?.blur();
55
- getActiveElement()?.blur();
56
- }
26
+ this.onBrowserForwardClick = () => {
27
+ history.forward();
57
28
  };
58
- this.onSidebarMouseEnter = () => {
59
- this.sidebarHovered = true;
29
+ this.onNavigationToggleClick = () => {
30
+ this.navigationCollapsed = !this.navigationCollapsed;
60
31
  };
61
- this.onSidebarMouseLeave = () => {
62
- this.sidebarHovered = false;
32
+ this.onNavigationClick = () => {
33
+ this.hideMobileNavigation();
63
34
  };
64
- this.hideSidebar = undefined;
65
- this.mainNavigationLabel = "Main";
35
+ this.brandedHeader = undefined;
36
+ this.browserBackButtonLabel = "Navigate back";
37
+ this.browserForwardButtonLabel = "Navigate forward";
38
+ this.hideMobileNavigationButtonLabel = "Close navigation";
39
+ this.navigationLabel = "Main";
40
+ this.navigationToggleLabel = "Toggle navigation";
41
+ this.sidebarActive = undefined;
42
+ this.sidebarToggleBadge = undefined;
43
+ this.sidebarToggleBadgeAriaLabel = undefined;
44
+ this.sidebarToggleIcon = "notifications";
66
45
  this.sidebarToggleLabel = "Toggle sidebar";
67
- this.collapsedSidebar = undefined;
68
- this.collapsing = undefined;
69
- this.sidebarHovered = undefined;
46
+ this.skipLinkLabel = "Skip to main content";
47
+ this.mobileNavigationActive = undefined;
48
+ this.navigationCollapsed = undefined;
70
49
  }
71
50
  componentWillLoad() {
72
- if (!this.desktopMediaQuery.matches) {
73
- this.collapseLeftSidebar();
51
+ const restoredSidebarState = localStorage.getItem(SIDEBAR_STORAGE_KEY) === "true";
52
+ this.sidebarActive =
53
+ this.sidebarActive === undefined
54
+ ? restoredSidebarState
55
+ : this.sidebarActive;
56
+ const restoredNavigationCollapseState = localStorage.getItem(NAVIGATION_COLLAPSE_STORAGE_KEY) === "true";
57
+ this.navigationCollapsed = restoredNavigationCollapseState;
58
+ }
59
+ componentDidLoad() {
60
+ this.focusTrap = createFocusTrap(this.navElement, {
61
+ allowOutsideClick: true,
62
+ tabbableOptions: {
63
+ getShadowRoot: (node) => {
64
+ return node.shadowRoot;
65
+ },
66
+ },
67
+ });
68
+ }
69
+ componentDidRender() {
70
+ this.focusTrap?.updateContainerElements(this.navElement);
71
+ }
72
+ disconnectedCallback() {
73
+ this.focusTrap?.deactivate();
74
+ }
75
+ onWindowKeyDown(event) {
76
+ if (event.key === "Escape" && this.mobileNavigationActive) {
77
+ this.hideMobileNavigation();
74
78
  }
75
- this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler;
79
+ }
80
+ watchMobileNavigationState() {
81
+ if (this.mobileNavigationActive) {
82
+ // wait for animation
83
+ setTimeout(() => {
84
+ this.focusTrap.activate();
85
+ }, 200);
86
+ }
87
+ else {
88
+ this.focusTrap.deactivate();
89
+ }
90
+ }
91
+ watchNavigationCollapsed() {
92
+ localStorage.setItem(NAVIGATION_COLLAPSE_STORAGE_KEY, String(this.navigationCollapsed));
93
+ }
94
+ watchSidebarActive() {
95
+ localStorage.setItem(SIDEBAR_STORAGE_KEY, String(this.sidebarActive));
76
96
  }
77
97
  /**
78
- * Collapse the left sidebar.
98
+ * Opens the mobile navigation.
79
99
  */
80
- async collapseSidebar() {
81
- this.collapseLeftSidebar();
100
+ async showMobileNavigation() {
101
+ this.mobileNavigationActive = true;
82
102
  }
83
103
  /**
84
- * Extend the left sidebar.
104
+ * Hides the mobile navigation.
85
105
  */
86
- async extendSidebar() {
87
- this.expandLeftSidebar();
106
+ async hideMobileNavigation() {
107
+ this.mobileNavigationActive = false;
88
108
  }
89
109
  render() {
90
110
  const className = classnames("shell-layout", {
91
- "shell-layout--collapsed-sidebar": this.collapsedSidebar,
92
- "shell-layout--collapsing": this.collapsing,
93
- "shell-layout--hide-sidebar": this.hideSidebar,
94
- });
95
- const sidebarWrapperClassName = classnames("shell-layout__sidebar-wrapper", {
96
- "shell-layout__sidebar-wrapper--hovered": this.sidebarHovered,
97
- });
98
- const backdropClassName = classnames("shell-layout__backdrop", {
99
- "shell-layout__backdrop--fading": this.collapsing,
111
+ "shell-layout--branded-header": this.brandedHeader,
112
+ "shell-layout--mobile-navigation-active": this.mobileNavigationActive,
113
+ "shell-layout--navigation-collapsed": this.navigationCollapsed,
114
+ "shell-layout--sidebar-active": this.sidebarActive,
100
115
  });
101
- return (h(Host, null, h("div", { class: className }, h("div", { class: "shell-layout__banner" }, h("slot", { name: "banner" })), h("div", { class: sidebarWrapperClassName, onClick: this.onSidebarClick, onMouseEnter: this.onSidebarMouseEnter, onMouseLeave: this.onSidebarMouseLeave }, !this.hideSidebar && (h("div", { class: "shell-layout__sidebar" }, h("header", { class: "shell-layout__header" }, h("div", { class: "shell-layout__logo-bar" }, h("div", { class: "shell-layout__expanded-logo" }, h("slot", { name: "logo-expanded" })), h("div", { class: "shell-layout__collapsed-logo" }, h("slot", { name: "logo-collapsed" })), h("div", { class: "shell-layout__toggle" }, h("swirl-button", { swirlAriaExpanded: String(!this.collapsedSidebar), hideLabel: true, icon: this.collapsedSidebar
102
- ? "<swirl-icon-double-arrow-right></swirl-icon-double-arrow-right>"
103
- : "<swirl-icon-double-arrow-left></swirl-icon-double-arrow-left>", label: this.sidebarToggleLabel, onClick: this.toggleSidebar }))), h("div", { class: "shell-layout__tools" }, h("slot", { name: "tools" }))), h("nav", { "aria-label": this.mainNavigationLabel, class: "shell-layout__main-navigation" }, h("slot", { name: "main-navigation" }))))), h("main", { class: "shell-layout__main" }, h("slot", { name: "main" })), (!this.collapsedSidebar || this.collapsing) && (h("div", { class: backdropClassName, onClick: this.onBackdropClick })))));
116
+ return (h(Host, null, h("div", { class: className }, h("header", { class: "shell-layout__header", "data-tauri-drag-region": "true" }, h("button", { class: "shell-layout__skip-link", onClick: this.skipLinkClick.emit, type: "button" }, this.skipLinkLabel), h("div", { class: "shell-layout__header-left" }, h("button", { class: "shell-layout__header-tool shell-layout__navigation-toggle", onClick: this.onNavigationToggleClick, type: "button" }, h("swirl-icon-menu", { size: 20 }), h("swirl-icon-double-arrow-left", { size: 20 }), h("swirl-icon-double-arrow-right", { size: 20 }), h("swirl-visually-hidden", null, this.navigationToggleLabel)), h("button", { class: "shell-layout__header-tool", onClick: this.onBrowserBackClick, type: "button" }, h("swirl-icon-arrow-back", { size: 20 }), h("swirl-visually-hidden", null, this.browserBackButtonLabel)), h("button", { class: "shell-layout__header-tool", onClick: this.onBrowserForwardClick, type: "button" }, h("swirl-icon-arrow-forward", { size: 20 }), h("swirl-visually-hidden", null, this.browserForwardButtonLabel))), h("div", { class: "shell-layout__logo" }, h("slot", { name: "logo" })), h("div", { class: "shell-layout__header-right" }, h("button", { class: "shell-layout__header-tool shell-layout__sidebar-toggle", onClick: this.sidebarToggleClick.emit, type: "button" }, h("swirl-icon", { glyph: this.sidebarToggleIcon, size: 20 }), h("swirl-visually-hidden", null, this.sidebarToggleLabel), this.sidebarToggleBadge && (h("swirl-badge", { "aria-label": this.sidebarToggleBadgeAriaLabel, label: this.sidebarToggleBadge, size: "xs" }))), h("slot", { name: "header-tools" }))), h("div", { class: "shell-layout__mobile-nav-backdrop", onClick: this.onNavigationClick }), h("nav", { "aria-labelledby": "main-navigation-label", class: "shell-layout__nav", onClick: this.onNavigationClick, ref: (el) => (this.navElement = el) }, h("div", { class: "shell-layout__mobile-header" }, h("slot", { name: "mobile-logo" }), h("div", { class: "shell-layout__mobile-header-tools" }, h("slot", { name: "mobile-header-tools" }), h("button", { class: "shell-layout__header-tool", type: "button" }, h("swirl-icon-double-arrow-left", { size: 20 }), h("swirl-visually-hidden", null, this.hideMobileNavigationButtonLabel)))), h("div", { class: "shell-layout__nav-body" }, h("swirl-visually-hidden", null, h("span", { id: "main-navigation-label" }, this.navigationLabel)), h("slot", { name: "nav" }))), h("main", { class: "shell-layout__main", id: "main-content" }, h("slot", null)), h("aside", { class: "shell-layout__sidebar" }, h("div", { class: "shell-layout__sidebar-body" }, h("div", { class: "shell-layout__sidebar-app-bar" }, h("slot", { name: "sidebar-app-bar" })), h("div", { class: "shell-layout__sidebar-content" }, h("slot", { name: "sidebar" })))))));
104
117
  }
118
+ static get watchers() { return {
119
+ "mobileNavigationActive": ["watchMobileNavigationState"],
120
+ "navigationCollapsed": ["watchNavigationCollapsed"],
121
+ "sidebarActive": ["watchSidebarActive"]
122
+ }; }
105
123
  static get style() { return swirlShellLayoutCss; }
106
- }, [1, "swirl-shell-layout", {
107
- "hideSidebar": [4, "hide-sidebar"],
108
- "mainNavigationLabel": [1, "main-navigation-label"],
124
+ }, [6, "swirl-shell-layout", {
125
+ "brandedHeader": [4, "branded-header"],
126
+ "browserBackButtonLabel": [1, "browser-back-button-label"],
127
+ "browserForwardButtonLabel": [1, "browser-forward-button-label"],
128
+ "hideMobileNavigationButtonLabel": [1, "hide-mobile-navigation-button-label"],
129
+ "navigationLabel": [1, "navigation-label"],
130
+ "navigationToggleLabel": [1, "navigation-toggle-label"],
131
+ "sidebarActive": [1028, "sidebar-active"],
132
+ "sidebarToggleBadge": [1, "sidebar-toggle-badge"],
133
+ "sidebarToggleBadgeAriaLabel": [1, "sidebar-toggle-badge-aria-label"],
134
+ "sidebarToggleIcon": [1, "sidebar-toggle-icon"],
109
135
  "sidebarToggleLabel": [1, "sidebar-toggle-label"],
110
- "collapsedSidebar": [32],
111
- "collapsing": [32],
112
- "sidebarHovered": [32],
113
- "collapseSidebar": [64],
114
- "extendSidebar": [64]
115
- }]);
136
+ "skipLinkLabel": [1, "skip-link-label"],
137
+ "mobileNavigationActive": [32],
138
+ "navigationCollapsed": [32],
139
+ "showMobileNavigation": [64],
140
+ "hideMobileNavigation": [64]
141
+ }, [[8, "keydown", "onWindowKeyDown"]]]);
116
142
  function defineCustomElement$1() {
117
143
  if (typeof customElements === "undefined") {
118
144
  return;
119
145
  }
120
- const components = ["swirl-shell-layout", "swirl-button"];
146
+ const components = ["swirl-shell-layout", "swirl-badge", "swirl-icon", "swirl-icon-arrow-back", "swirl-icon-arrow-forward", "swirl-icon-double-arrow-left", "swirl-icon-double-arrow-right", "swirl-icon-menu", "swirl-visually-hidden"];
121
147
  components.forEach(tagName => { switch (tagName) {
122
148
  case "swirl-shell-layout":
123
149
  if (!customElements.get(tagName)) {
124
150
  customElements.define(tagName, SwirlShellLayout$1);
125
151
  }
126
152
  break;
127
- case "swirl-button":
153
+ case "swirl-badge":
154
+ if (!customElements.get(tagName)) {
155
+ defineCustomElement$9();
156
+ }
157
+ break;
158
+ case "swirl-icon":
159
+ if (!customElements.get(tagName)) {
160
+ defineCustomElement$8();
161
+ }
162
+ break;
163
+ case "swirl-icon-arrow-back":
164
+ if (!customElements.get(tagName)) {
165
+ defineCustomElement$7();
166
+ }
167
+ break;
168
+ case "swirl-icon-arrow-forward":
169
+ if (!customElements.get(tagName)) {
170
+ defineCustomElement$6();
171
+ }
172
+ break;
173
+ case "swirl-icon-double-arrow-left":
174
+ if (!customElements.get(tagName)) {
175
+ defineCustomElement$5();
176
+ }
177
+ break;
178
+ case "swirl-icon-double-arrow-right":
179
+ if (!customElements.get(tagName)) {
180
+ defineCustomElement$4();
181
+ }
182
+ break;
183
+ case "swirl-icon-menu":
184
+ if (!customElements.get(tagName)) {
185
+ defineCustomElement$3();
186
+ }
187
+ break;
188
+ case "swirl-visually-hidden":
128
189
  if (!customElements.get(tagName)) {
129
190
  defineCustomElement$2();
130
191
  }
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal
2
2
  import { c as classnames } from './index2.js';
3
3
  import { d as defineCustomElement$2 } from './swirl-badge2.js';
4
4
 
5
- const swirlShellNavigationItemCss = "/**\n* seems the container query does not work as expected\n*/\n\n:host {\n container-type: inline-size;\n position: relative;\n display: inline-flex;\n width: 100%;\n height: 3.5rem;\n padding-right: var(--s-space-12);\n padding-left: var(--s-space-12);\n flex-shrink: 0;\n justify-content: flex-start;\n align-items: center;\n color: var(--s-text-default);\n background-color: var(--s-background-default);\n font-size: var(--s-font-size-sm);\n font-weight: var(--s-font-weight-medium);\n line-height: var(--s-line-height-sm);\n cursor: pointer;\n gap: var(--s-space-12);\n}\n\n:host(:hover) {\n background-color: var(--s-background-hovered);\n }\n\n:host(:active) {\n background-color: var(--s-background-pressed);\n color: var(--s-text-highlight);\n }\n\n:host(:focus) {\n outline: none;\n }\n\n:host(:focus-visible) .shell-navigation-item__label {\n border-radius: var(--s-border-radius-xs);\n box-shadow: 0 0 0 0.125rem var(--s-focus-default);\n }\n\n:host(.shell-navigation-item--active) {\n color: var(--s-text-highlight);\n background-color: var(--s-surface-raised-default);\n }\n\n:host(.shell-navigation-item--active:hover) {\n background-color: var(--s-surface-raised-hovered);\n }\n\n:host(.shell-navigation-item--active:active) {\n background-color: var(--s-surface-raised-pressed);\n color: var(--s-text-highlight);\n }\n\n:host * {\n box-sizing: border-box;\n }\n\n:host:before {\n content: \"\";\n display: none;\n position: absolute;\n left: 0;\n height: 2.5rem;\n width: 4px;\n background-color: var(--s-icon-highlight);\n border-top-right-radius: 4px;\n border-bottom-right-radius: 4px;\n}\n\n:host(.shell-navigation-item--active):before {\n display: block;\n}\n\n.shell-navigation-item__icon {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n min-width: 2.5rem;\n min-height: 2.5rem;\n}\n\n.shell-navigation-item__label {\n overflow: hidden;\n min-width: 0;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n@container (max-width: 4rem) {\n .shell-navigation-item__label {\n display: none;\n }\n\n .shell-navigation-item__badge {\n position: absolute;\n bottom: 0;\n right: var(--s-space-4);\n }\n}\n\n@container (min-width: 14rem) {\n .shell-navigation-item__badge {\n margin-left: auto;\n padding-right: var(--s-space-4);\n }\n}\n";
5
+ const swirlShellNavigationItemCss = "/**\n* seems the container query does not work as expected\n*/\n\n:host {\n position: relative;\n display: inline-flex;\n width: 100%;\n height: 2.75rem;\n padding: var(--s-space-12);\n flex-shrink: 0;\n justify-content: flex-start;\n align-items: center;\n border-radius: var(--s-border-radius-sm);\n background-color: var(--s-surface-overlay-default);\n font-size: var(--s-font-size-sm);\n font-weight: var(--s-font-weight-medium);\n line-height: var(--s-line-height-sm);\n cursor: pointer;\n container-type: inline-size;\n gap: var(--s-space-16);\n}\n\n:host(:hover) {\n background-color: var(--s-surface-sunken-hovered);\n }\n\n:host(:hover) .shell-navigation-item__badge {\n --swirl-badge-border-color: var(--s-surface-sunken-hovered);\n }\n\n:host(:active) {\n background-color: var(--s-surface-sunken-pressed);\n }\n\n:host(:active) .shell-navigation-item__badge {\n --swirl-badge-border-color: var(--s-surface-sunken-pressed);\n }\n\n:host(:focus) {\n outline: none;\n }\n\n:host(:focus-visible) {\n z-index: 1;\n box-shadow: 0 0 0 0.125rem var(--s-focus-default);\n }\n\n:host(.shell-navigation-item--active) {\n background-color: var(--s-surface-sunken-hovered);\n }\n\n:host(.shell-navigation-item--active) .shell-navigation-item__badge {\n --swirl-badge-border-color: var(--s-surface-sunken-hovered);\n }\n\n:host(.shell-navigation-item--active:hover) {\n background-color: var(--s-surface-sunken-hovered);\n }\n\n:host(.shell-navigation-item--active:hover) .shell-navigation-item__badge {\n --swirl-badge-border-color: var(--s-surface-sunken-hovered);\n }\n\n:host(.shell-navigation-item--active:active) {\n background-color: var(--s-surface-sunken-pressed);\n }\n\n:host(.shell-navigation-item--active:active) .shell-navigation-item__badge {\n --swirl-badge-border-color: var(--s-surface-sunken-pressed);\n }\n\n:host * {\n box-sizing: border-box;\n }\n\n@media (min-width: 992px) {\n\n:host {\n background-color: var(--s-surface-sunken-default)\n}\n }\n\n.shell-navigation-item__icon {\n display: inline-flex;\n min-width: 1.25rem;\n min-height: 1.25rem;\n justify-content: center;\n align-items: center;\n}\n\n.shell-navigation-item__label {\n overflow: hidden;\n min-width: 0;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.shell-navigation-item__badge {\n --swirl-badge-border-color: var(--swirl-shell-background);\n}\n\n@container (max-width: 4rem) {\n .shell-navigation-item__label {\n display: none;\n }\n\n .shell-navigation-item__badge {\n position: absolute;\n right: var(--s-space-4);\n bottom: 0;\n }\n}\n\n@container (min-width: 14rem) {\n .shell-navigation-item__badge {\n margin-left: auto;\n padding-right: var(--s-space-4);\n }\n}\n";
6
6
 
7
7
  const SwirlShellNavigationItem$1 = /*@__PURE__*/ proxyCustomElement(class SwirlShellNavigationItem extends HTMLElement {
8
8
  constructor() {
@@ -1,18 +1,17 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
2
 
3
- const swirlVisuallyHiddenCss = ":host{position:absolute;display:inline;overflow:hidden;width:1px;height:1px;margin:-1px;padding:0;border:0;white-space:nowrap;word-wrap:normal;clip:rect(0, 0, 0, 0)}";
3
+ const swirlVisuallyHiddenCss = ".sc-swirl-visually-hidden-h{position:absolute;display:inline;overflow:hidden;width:1px;height:1px;margin:-1px;padding:0;border:0;white-space:nowrap;word-wrap:normal;clip:rect(0, 0, 0, 0)}";
4
4
 
5
5
  const SwirlVisuallyHidden = /*@__PURE__*/ proxyCustomElement(class SwirlVisuallyHidden extends HTMLElement {
6
6
  constructor() {
7
7
  super();
8
8
  this.__registerHost();
9
- this.__attachShadow();
10
9
  }
11
10
  render() {
12
11
  return (h(Host, null, h("slot", null)));
13
12
  }
14
13
  static get style() { return swirlVisuallyHiddenCss; }
15
- }, [1, "swirl-visually-hidden"]);
14
+ }, [6, "swirl-visually-hidden"]);
16
15
  function defineCustomElement() {
17
16
  if (typeof customElements === "undefined") {
18
17
  return;