scb-wc 0.1.78 → 0.1.80

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 (180) hide show
  1. package/README.md +41 -22
  2. package/all.js +0 -2
  3. package/index.js +88 -90
  4. package/mvc/components/all.js +0 -2
  5. package/mvc/components/scb-accordion/scb-accordion-item.js +3 -173
  6. package/mvc/components/scb-accordion/scb-accordion.js +4 -33
  7. package/mvc/components/scb-app-bar/scb-app-bar.js +2 -110
  8. package/mvc/components/scb-avatar/scb-avatar.js +2 -94
  9. package/mvc/components/scb-badge/scb-badge.js +2 -72
  10. package/mvc/components/scb-breadcrumb/scb-breadcrumb-item.js +2 -12
  11. package/mvc/components/scb-breadcrumb/scb-breadcrumb.js +4 -91
  12. package/mvc/components/scb-button/scb-button.js +47 -309
  13. package/mvc/components/scb-calendar/scb-calendar-event.js +2 -6
  14. package/mvc/components/scb-calendar/scb-calendar.js +6 -120
  15. package/mvc/components/scb-calendar-card/scb-calendar-card.js +21 -350
  16. package/mvc/components/scb-card/scb-card.js +54 -819
  17. package/mvc/components/scb-checkbox/scb-checkbox-group.js +3 -31
  18. package/mvc/components/scb-checkbox/scb-checkbox.js +5 -127
  19. package/mvc/components/scb-chip/scb-chip.js +2 -76
  20. package/mvc/components/scb-collapse/scb-collapse.js +2 -44
  21. package/mvc/components/scb-cookies-consent/scb-cookies-consent.js +7 -73
  22. package/mvc/components/scb-dialog/scb-dialog.js +2 -213
  23. package/mvc/components/scb-divider/scb-divider.js +1 -69
  24. package/mvc/components/scb-drawer/scb-drawer.js +6 -102
  25. package/mvc/components/scb-drop-zone/scb-drop-zone.js +2 -410
  26. package/mvc/components/scb-dropdown/scb-dropdown.js +17 -222
  27. package/mvc/components/scb-fab/scb-fab.js +7 -95
  28. package/mvc/components/scb-fact-card/scb-fact-card-content.js +2 -69
  29. package/mvc/components/scb-fact-card/scb-fact-card.js +2 -214
  30. package/mvc/components/scb-footer/scb-footer-section.js +1 -3
  31. package/mvc/components/scb-footer/scb-footer.js +3 -172
  32. package/mvc/components/scb-gallery-grid/scb-gallery-grid.js +2 -112
  33. package/mvc/components/scb-grid/scb-grid-item.js +1 -32
  34. package/mvc/components/scb-grid/scb-grid.js +1 -99
  35. package/mvc/components/scb-grid/scb-stack.js +1 -33
  36. package/mvc/components/scb-header/scb-header-menu-item.js +1 -5
  37. package/mvc/components/scb-header/scb-header-tab.js +1 -5
  38. package/mvc/components/scb-header/scb-header.js +75 -888
  39. package/mvc/components/scb-horizontal-scroller/scb-horizontal-scroller.js +43 -168
  40. package/mvc/components/scb-icon-button/scb-icon-button.js +59 -171
  41. package/mvc/components/scb-keyfigure-card/scb-keyfigure-card.js +17 -218
  42. package/mvc/components/scb-link/scb-link.js +4 -55
  43. package/mvc/components/scb-list/scb-list-item.js +23 -126
  44. package/mvc/components/scb-list/scb-list.js +5 -26
  45. package/mvc/components/scb-menu/scb-menu-item.js +16 -190
  46. package/mvc/components/scb-menu/scb-menu-section.js +4 -36
  47. package/mvc/components/scb-menu/scb-menu.js +5 -69
  48. package/mvc/components/scb-menu/scb-sub-menu.js +2 -7
  49. package/mvc/components/scb-nav/scb-nav-item.js +1 -28
  50. package/mvc/components/scb-nav/scb-nav.js +5 -98
  51. package/mvc/components/scb-notification-card/scb-notification-card.js +7 -364
  52. package/mvc/components/scb-options-menu/scb-options-menu-item.js +3 -50
  53. package/mvc/components/scb-options-menu/scb-options-menu.js +2 -82
  54. package/mvc/components/scb-options-menu/scb-options-sub-menu.js +2 -31
  55. package/mvc/components/scb-overlay/scb-overlay.js +3 -43
  56. package/mvc/components/scb-pagination/scb-pagination.js +19 -221
  57. package/mvc/components/scb-progress-indicator/scb-progress-indicator.js +2 -67
  58. package/mvc/components/scb-progress-stepper/scb-progress-step.js +4 -121
  59. package/mvc/components/scb-progress-stepper/scb-progress-stepper.js +2 -56
  60. package/mvc/components/scb-radio-button/scb-radio-button.js +5 -116
  61. package/mvc/components/scb-radio-button/scb-radio-group.js +2 -32
  62. package/mvc/components/scb-scrollspy/scb-scrollspy.js +2 -61
  63. package/mvc/components/scb-search/scb-search.js +5 -249
  64. package/mvc/components/scb-segmented-button/scb-segmented-button.js +1 -32
  65. package/mvc/components/scb-segmented-button/scb-segmented-item.js +2 -70
  66. package/mvc/components/scb-select/scb-select-option.js +2 -54
  67. package/mvc/components/scb-select/scb-select.js +4 -244
  68. package/mvc/components/scb-skeleton/scb-skeleton.js +2 -35
  69. package/mvc/components/scb-slider/scb-slider.js +5 -9
  70. package/mvc/components/scb-snackbar/scb-snackbar.js +9 -84
  71. package/mvc/components/scb-status-pill/scb-status-pill.js +2 -43
  72. package/mvc/components/scb-stepper/scb-step.js +8 -186
  73. package/mvc/components/scb-stepper/scb-stepper.js +2 -130
  74. package/mvc/components/scb-switch/scb-switch.js +4 -49
  75. package/mvc/components/scb-table/scb-table.js +2 -48
  76. package/mvc/components/scb-table-advanced/scb-table-advanced.js +2 -53
  77. package/mvc/components/scb-tabs/scb-primary-tab.js +2 -7
  78. package/mvc/components/scb-tabs/scb-secondary-tab.js +2 -7
  79. package/mvc/components/scb-tabs/scb-tabs.js +4 -31
  80. package/mvc/components/scb-textfield/scb-textfield.js +142 -388
  81. package/mvc/components/scb-toc/scb-toc-item.js +3 -251
  82. package/mvc/components/scb-toc/scb-toc.js +2 -16
  83. package/mvc/components/scb-tooltip/scb-tooltip.js +8 -155
  84. package/mvc/components/scb-viz/scb-viz.js +4 -619
  85. package/mvc/scb-wc-core.css +1 -1
  86. package/mvc/scb-wc-selfhost.css +1 -1
  87. package/mvc/scb-wc.css +1 -1
  88. package/mvc/vendor/assist-chip.js +3 -3
  89. package/mvc/vendor/chip-set.js +1 -1
  90. package/mvc/vendor/chip.js +2 -2
  91. package/mvc/vendor/elevation.js +2 -2
  92. package/mvc/vendor/filter-chip.js +1 -1
  93. package/mvc/vendor/focusable.js +1 -1
  94. package/mvc/vendor/form-associated.js +1 -1
  95. package/mvc/vendor/icon.js +2 -2
  96. package/mvc/vendor/lazy-focus-ring.js +2 -0
  97. package/mvc/vendor/lazy-ripple.js +2 -0
  98. package/mvc/vendor/md-focus-ring.js +2 -2
  99. package/mvc/vendor/ripple.js +2 -2
  100. package/mvc/vendor/scb-card-variants.internal.js +284 -0
  101. package/mvc/vendor/scb-chevron.js +10 -0
  102. package/mvc/vendor/scb-header-drawer.internal.js +71 -0
  103. package/mvc/vendor/shared-styles.js +1 -1
  104. package/mvc/vendor/tab-styles.js +3 -3
  105. package/mvc/vendor/validator.js +1 -1
  106. package/mvc/vendor/vendor.js +3 -4
  107. package/package.json +2 -2
  108. package/scb-accordion/scb-accordion-item.js +33 -32
  109. package/scb-app-bar/scb-app-bar.js +1 -1
  110. package/scb-button/scb-button.js +287 -259
  111. package/scb-calendar/scb-calendar.js +49 -49
  112. package/scb-calendar-card/scb-calendar-card.js +105 -59
  113. package/scb-card/scb-card-variants.internal.js +230 -0
  114. package/scb-card/scb-card.js +387 -528
  115. package/scb-checkbox/scb-checkbox.js +0 -1
  116. package/scb-chevron/scb-chevron.js +0 -1
  117. package/scb-components/scb-button/scb-button.d.ts +14 -2
  118. package/scb-components/scb-calendar/scb-calendar.d.ts +1 -0
  119. package/scb-components/scb-calendar-card/scb-calendar-card.d.ts +16 -4
  120. package/scb-components/scb-card/scb-card-variants.internal.d.ts +15 -0
  121. package/scb-components/scb-card/scb-card.d.ts +26 -9
  122. package/scb-components/scb-cookies-consent/scb-cookies-consent.d.ts +3 -0
  123. package/scb-components/scb-header/scb-header-drawer.internal.d.ts +31 -0
  124. package/scb-components/scb-header/scb-header.d.ts +1 -2
  125. package/scb-components/scb-horizontal-scroller/scb-horizontal-scroller.d.ts +6 -1
  126. package/scb-components/scb-icon-button/scb-icon-button.d.ts +28 -29
  127. package/scb-components/scb-keyfigure-card/scb-keyfigure-card.d.ts +13 -4
  128. package/scb-components/scb-list/scb-list-item.d.ts +20 -2
  129. package/scb-components/scb-list/scb-list.d.ts +1 -2
  130. package/scb-components/scb-nav/scb-nav.d.ts +2 -0
  131. package/scb-components/scb-segmented-button/scb-segmented-item.d.ts +1 -0
  132. package/scb-components/scb-select/scb-select-option.d.ts +2 -0
  133. package/scb-components/scb-toc/scb-toc-item.d.ts +1 -0
  134. package/scb-components/scb-tooltip/scb-tooltip.d.ts +2 -0
  135. package/scb-cookies-consent/scb-cookies-consent.js +43 -31
  136. package/scb-datepicker/scb-datepicker.js +27 -25
  137. package/scb-dialog/scb-dialog.js +1 -1
  138. package/scb-dropdown/scb-dropdown.js +29 -28
  139. package/scb-header/scb-header-drawer.internal.js +78 -0
  140. package/scb-header/scb-header.js +41 -89
  141. package/scb-horizontal-scroller/scb-horizontal-scroller.js +181 -88
  142. package/scb-icon-button/scb-icon-button.js +293 -205
  143. package/scb-keyfigure-card/scb-keyfigure-card.js +96 -43
  144. package/scb-list/scb-list-item.js +117 -52
  145. package/scb-list/scb-list.js +9 -9
  146. package/scb-nav/scb-nav.js +26 -23
  147. package/scb-notification-card/scb-notification-card.js +0 -2
  148. package/scb-options-menu/scb-options-menu-item.js +20 -20
  149. package/scb-pagination/scb-pagination.js +0 -1
  150. package/scb-progress-stepper/scb-progress-step.js +19 -17
  151. package/scb-radio-button/scb-radio-button.js +0 -1
  152. package/scb-search/scb-search.js +29 -28
  153. package/scb-segmented-button/scb-segmented-item.js +22 -19
  154. package/scb-select/scb-select-option.js +20 -14
  155. package/scb-select/scb-select.js +26 -26
  156. package/scb-stepper/scb-step.js +34 -31
  157. package/scb-textfield/scb-textfield.js +39 -39
  158. package/scb-toc/scb-toc-item.js +26 -26
  159. package/scb-tooltip/scb-tooltip.js +5 -4
  160. package/scb-viz/scb-viz.js +1 -1
  161. package/scb-wc-core.css +1 -1
  162. package/scb-wc-public-entry/index.d.ts +97 -0
  163. package/scb-wc-selfhost.css +1 -1
  164. package/scb-wc.bundle.js +1873 -1476
  165. package/scb-wc.css +1 -1
  166. package/scb-wc.d.ts +194 -198
  167. package/mvc/components/scb-chevron/scb-chevron.js +0 -41
  168. package/mvc/components/scb-datepicker/scb-datepicker.js +0 -296
  169. package/mvc/vendor/element-internals.js +0 -1
  170. package/mvc/vendor/filled-icon-button.js +0 -2
  171. package/mvc/vendor/filled-tonal-icon-button.js +0 -2
  172. package/mvc/vendor/form-label-activation.js +0 -1
  173. package/mvc/vendor/form-submitter.js +0 -1
  174. package/mvc/vendor/icon-button.js +0 -2
  175. package/mvc/vendor/list.js +0 -8
  176. package/mvc/vendor/outlined-icon-button.js +0 -2
  177. package/mvc/vendor/shared-styles2.js +0 -30
  178. package/scb-components/index.d.ts +0 -99
  179. package/scb-components/scb-chevron/scb-chevron.d.ts +0 -11
  180. package/scb-components/scb-datepicker/scb-datepicker.d.ts +0 -39
@@ -1,106 +1,13 @@
1
- import{_ as h,b as g,g as f,h as o,y as m}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import"../../vendor/md-focus-ring.js";import"../../vendor/ripple.js";import{t as r}from"../../vendor/decorate.js";import"./scb-nav-item.js";(function(){try{var p=typeof globalThis<"u"?globalThis:window;if(!p.__scb_ce_guard_installed__){p.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(e,i,s){try{customElements.get(e)||t(e,i,s)}catch(c){var a=String(c||"");if(a.indexOf("already been used")===-1&&a.indexOf("NotSupportedError")===-1)throw c}}}}catch{}})();var b,_={fromAttribute(p){return p===null?!1:p.toLowerCase()!=="false"}},n=(b=class extends h{constructor(...t){super(...t),this.label="",this.activeHref="",this.activateOnClick=!0,this.sticky=!1,this.stickyTop="0px",this.stickyZIndex=5,this.stickyBackground="",this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,this.__autoAriaLabel=!1,this.__itemIdPrefix=`scb-nav-${Math.random().toString(36).slice(2)}`,this.__itemIdCounter=0,this.__onSlotChange=async()=>{await this.__decorateItems(),this.__applyActiveHref()},this.__onClick=e=>{const i=e.composedPath().find(a=>a instanceof HTMLElement&&(a.tagName==="A"||a.tagName==="BUTTON"||a.tagName==="SCB-NAV-ITEM"));if(!i)return;const s=this.__getItemHref(i);this.dispatchEvent(new CustomEvent("scb-nav-select",{bubbles:!0,composed:!0,detail:{item:i,href:s}})),this.dispatchEvent(new CustomEvent("scbnavselect",{bubbles:!0,composed:!0,detail:{item:i,href:s}})),this.activateOnClick&&s&&(this.activeHref=s)}}mapSpacingToken(t){if(!t)return;const e=String(t).trim();if(e)return/^\d+$/.test(e)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(e,10)))})`:e}__applySpacing(){const t=this.mapSpacingToken(this.spacing),e=this.mapSpacingToken(this.spacingTop)??t,i=this.mapSpacingToken(this.spacingBottom)??t,s=this.mapSpacingToken(this.spacingLeft),a=this.mapSpacingToken(this.spacingRight);e?this.style.setProperty("--scb-nav-spacing-block-start",e):this.style.removeProperty("--scb-nav-spacing-block-start"),i?this.style.setProperty("--scb-nav-spacing-block-end",i):this.style.removeProperty("--scb-nav-spacing-block-end"),s?this.style.setProperty("--scb-nav-spacing-inline-start",s):this.style.removeProperty("--scb-nav-spacing-inline-start"),a?this.style.setProperty("--scb-nav-spacing-inline-end",a):this.style.removeProperty("--scb-nav-spacing-inline-end")}__syncStickyStyles(){if(!this.sticky){this.style.removeProperty("--_scb-nav-sticky-top"),this.style.removeProperty("--_scb-nav-sticky-z-index"),this.style.removeProperty("--_scb-nav-sticky-background");return}const t=(this.stickyTop||"").trim()||"0px";this.style.setProperty("--_scb-nav-sticky-top",t);const e=Number.isFinite(this.stickyZIndex)?this.stickyZIndex:5;this.style.setProperty("--_scb-nav-sticky-z-index",String(e));const i=(this.stickyBackground||"").trim();if(!i){this.style.removeProperty("--_scb-nav-sticky-background");return}const s=i.startsWith("--")?`var(${i})`:i;this.style.setProperty("--_scb-nav-sticky-background",s)}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","navigation"),this.__syncStickyStyles(),this.__syncAriaLabel()}async firstUpdated(){await this.__decorateItems(),this.__applyActiveHref(),this.__applySpacing()}updated(t){t.has("label")&&this.__syncAriaLabel(),(t.has("sticky")||t.has("stickyTop")||t.has("stickyZIndex")||t.has("stickyBackground"))&&this.__syncStickyStyles(),t.has("activeHref")&&this.__applyActiveHref(),(t.has("spacing")||t.has("spacingTop")||t.has("spacingBottom")||t.has("spacingLeft")||t.has("spacingRight"))&&this.__applySpacing()}__syncAriaLabel(){if(this.hasAttribute("aria-label")){this.__autoAriaLabel=!1;return}const t=(this.label||"").trim();if(!t){this.__autoAriaLabel&&(this.removeAttribute("aria-label"),this.__autoAriaLabel=!1);return}this.setAttribute("aria-label",t),this.__autoAriaLabel=!0}async __decorateItems(){const t=this.__getSlottedItems();if(t.some(e=>e.tagName==="A"||e.tagName==="BUTTON"||e.tagName==="SCB-NAV-ITEM"))for(const e of t){const i=e instanceof HTMLAnchorElement,s=e instanceof HTMLButtonElement,a=e.tagName==="SCB-NAV-ITEM";if(!i&&!s&&!a||(s&&!e.hasAttribute("type")&&e.setAttribute("type","button"),e.getAttribute("data-scb-nav-decorated")==="true"))continue;e.id||(this.__itemIdCounter+=1,e.id=`${this.__itemIdPrefix}-${this.__itemIdCounter}`);const c=u=>{const v=e.querySelector(u);if(v instanceof HTMLElement)return v;const y=document.createElement(u);return e.appendChild(y),y},d=c("md-ripple");d&&d.style.setProperty("--md-ripple-focus-opacity","0");const l=c("md-focus-ring");l&&(l.setAttribute("inward",""),l.setAttribute("for",e.id),l.style.position="absolute",l.style.inset="0",l.style.pointerEvents="none",l.style.borderRadius="24px"),e.setAttribute("data-scb-nav-decorated","true")}}__getSlottedItems(){const t=this.renderRoot.querySelector("slot");return t?t.assignedElements({flatten:!0}).filter(e=>e instanceof HTMLElement):[]}__getItemHref(t){return t instanceof HTMLAnchorElement?(t.getAttribute("href")||"").trim():t.tagName==="SCB-NAV-ITEM"?(t.getAttribute("href")||t.getAttribute("data-href")||t.href||t.dataHref||"").trim():(t.getAttribute("data-href")||"").trim()}__applyActiveHref(){const t=(this.activeHref||"").trim(),e=this.__getSlottedItems();for(const i of e){const s=i instanceof HTMLAnchorElement,a=i instanceof HTMLButtonElement,c=i.tagName==="SCB-NAV-ITEM";if(!s&&!a&&!c)continue;a&&!i.hasAttribute("type")&&i.setAttribute("type","button");const d=this.__getItemHref(i);t&&d===t?(i.setAttribute("aria-current","location"),i.setAttribute("data-scb-nav-managed","true"),i.setAttribute("data-active","true")):(i.getAttribute("data-scb-nav-managed")==="true"&&(i.removeAttribute("aria-current"),i.removeAttribute("data-scb-nav-managed")),i.removeAttribute("data-active"))}}render(){return m`
1
+ import{h,m as g,p as o,v as m,y as f}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import"../../vendor/ripple.js";import{t as _}from"../../vendor/lazy-focus-ring.js";import{t as r}from"../../vendor/decorate.js";import"./scb-nav-item.js";(function(){try{var p=typeof globalThis<"u"?globalThis:window;if(!p.__scb_ce_guard_installed__){p.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(e,i,s){try{customElements.get(e)||t(e,i,s)}catch(c){var a=String(c||"");if(a.indexOf("already been used")===-1&&a.indexOf("NotSupportedError")===-1)throw c}}}}catch{}})();var b,k={fromAttribute(p){return p===null?!1:p.toLowerCase()!=="false"}},n=(b=class extends h{constructor(...t){super(...t),this.label="",this.activeHref="",this.activateOnClick=!0,this.sticky=!1,this.stickyTop="0px",this.stickyZIndex=5,this.stickyBackground="",this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,this.__autoAriaLabel=!1,this.__itemIdPrefix=`scb-nav-${Math.random().toString(36).slice(2)}`,this.__itemIdCounter=0,this.__onSlotChange=async()=>{await this.__decorateItems(),this.__applyActiveHref()},this.__onClick=e=>{const i=e.composedPath().find(a=>a instanceof HTMLElement&&(a.tagName==="A"||a.tagName==="BUTTON"||a.tagName==="SCB-NAV-ITEM"));if(!i)return;const s=this.__getItemHref(i);this.dispatchEvent(new CustomEvent("scb-nav-select",{bubbles:!0,composed:!0,detail:{item:i,href:s}})),this.dispatchEvent(new CustomEvent("scbnavselect",{bubbles:!0,composed:!0,detail:{item:i,href:s}})),this.activateOnClick&&s&&(this.activeHref=s)}}mapSpacingToken(t){if(!t)return;const e=String(t).trim();if(e)return/^\d+$/.test(e)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(e,10)))})`:e}__applySpacing(){const t=this.mapSpacingToken(this.spacing),e=this.mapSpacingToken(this.spacingTop)??t,i=this.mapSpacingToken(this.spacingBottom)??t,s=this.mapSpacingToken(this.spacingLeft),a=this.mapSpacingToken(this.spacingRight);e?this.style.setProperty("--scb-nav-spacing-block-start",e):this.style.removeProperty("--scb-nav-spacing-block-start"),i?this.style.setProperty("--scb-nav-spacing-block-end",i):this.style.removeProperty("--scb-nav-spacing-block-end"),s?this.style.setProperty("--scb-nav-spacing-inline-start",s):this.style.removeProperty("--scb-nav-spacing-inline-start"),a?this.style.setProperty("--scb-nav-spacing-inline-end",a):this.style.removeProperty("--scb-nav-spacing-inline-end")}__syncStickyStyles(){if(!this.sticky){this.style.removeProperty("--_scb-nav-sticky-top"),this.style.removeProperty("--_scb-nav-sticky-z-index"),this.style.removeProperty("--_scb-nav-sticky-background");return}const t=(this.stickyTop||"").trim()||"0px";this.style.setProperty("--_scb-nav-sticky-top",t);const e=Number.isFinite(this.stickyZIndex)?this.stickyZIndex:5;this.style.setProperty("--_scb-nav-sticky-z-index",String(e));const i=(this.stickyBackground||"").trim();if(!i){this.style.removeProperty("--_scb-nav-sticky-background");return}const s=i.startsWith("--")?`var(${i})`:i;this.style.setProperty("--_scb-nav-sticky-background",s)}connectedCallback(){super.connectedCallback(),this.__removeLazyFocusRingListeners=_(this,this.renderRoot),this.hasAttribute("role")||this.setAttribute("role","navigation"),this.__syncStickyStyles(),this.__syncAriaLabel()}disconnectedCallback(){this.__removeLazyFocusRingListeners?.(),this.__removeLazyFocusRingListeners=void 0,super.disconnectedCallback()}async firstUpdated(){await this.__decorateItems(),this.__applyActiveHref(),this.__applySpacing()}updated(t){t.has("label")&&this.__syncAriaLabel(),(t.has("sticky")||t.has("stickyTop")||t.has("stickyZIndex")||t.has("stickyBackground"))&&this.__syncStickyStyles(),t.has("activeHref")&&this.__applyActiveHref(),(t.has("spacing")||t.has("spacingTop")||t.has("spacingBottom")||t.has("spacingLeft")||t.has("spacingRight"))&&this.__applySpacing()}__syncAriaLabel(){if(this.hasAttribute("aria-label")){this.__autoAriaLabel=!1;return}const t=(this.label||"").trim();if(!t){this.__autoAriaLabel&&(this.removeAttribute("aria-label"),this.__autoAriaLabel=!1);return}this.setAttribute("aria-label",t),this.__autoAriaLabel=!0}async __decorateItems(){const t=this.__getSlottedItems();if(t.some(e=>e.tagName==="A"||e.tagName==="BUTTON"||e.tagName==="SCB-NAV-ITEM"))for(const e of t){const i=e instanceof HTMLAnchorElement,s=e instanceof HTMLButtonElement,a=e.tagName==="SCB-NAV-ITEM";if(!i&&!s&&!a||(s&&!e.hasAttribute("type")&&e.setAttribute("type","button"),e.getAttribute("data-scb-nav-decorated")==="true"))continue;e.id||(this.__itemIdCounter+=1,e.id=`${this.__itemIdPrefix}-${this.__itemIdCounter}`);const c=u=>{const v=e.querySelector(u);if(v instanceof HTMLElement)return v;const y=document.createElement(u);return e.appendChild(y),y},d=c("md-ripple");d&&d.style.setProperty("--md-ripple-focus-opacity","0");const l=c("md-focus-ring");l&&(l.setAttribute("inward",""),l.setAttribute("for",e.id),l.style.position="absolute",l.style.inset="0",l.style.pointerEvents="none",l.style.borderRadius="24px"),e.setAttribute("data-scb-nav-decorated","true")}}__getSlottedItems(){const t=this.renderRoot.querySelector("slot");return t?t.assignedElements({flatten:!0}).filter(e=>e instanceof HTMLElement):[]}__getItemHref(t){return t instanceof HTMLAnchorElement?(t.getAttribute("href")||"").trim():t.tagName==="SCB-NAV-ITEM"?(t.getAttribute("href")||t.getAttribute("data-href")||t.href||t.dataHref||"").trim():(t.getAttribute("data-href")||"").trim()}__applyActiveHref(){const t=(this.activeHref||"").trim(),e=this.__getSlottedItems();for(const i of e){const s=i instanceof HTMLAnchorElement,a=i instanceof HTMLButtonElement,c=i.tagName==="SCB-NAV-ITEM";if(!s&&!a&&!c)continue;a&&!i.hasAttribute("type")&&i.setAttribute("type","button");const d=this.__getItemHref(i);t&&d===t?(i.setAttribute("aria-current","location"),i.setAttribute("data-scb-nav-managed","true"),i.setAttribute("data-active","true")):(i.getAttribute("data-scb-nav-managed")==="true"&&(i.removeAttribute("aria-current"),i.removeAttribute("data-scb-nav-managed")),i.removeAttribute("data-active"))}}render(){return m`
2
2
  <div class="scb-nav">
3
3
  <div class="scb-nav__items" @click=${this.__onClick}>
4
4
  <slot @slotchange=${this.__onSlotChange}></slot>
5
5
  </div>
6
6
  </div>
7
- `}},b.styles=g`
8
- :host {
9
- display: block;
10
- color: var(--md-sys-color-on-surface);
11
- font-family: var(--brand-font, Inter);
12
- margin-block-start: var(--scb-nav-spacing-block-start, 0);
13
- margin-block-end: var(--scb-nav-spacing-block-end, 0);
14
- margin-inline-start: var(--scb-nav-spacing-inline-start, 0);
15
- margin-inline-end: var(--scb-nav-spacing-inline-end, 0);
16
- overflow-x: auto;
17
- }
18
-
19
- :host([sticky]) {
20
- position: sticky;
21
- inset-block-start: var(
22
- --_scb-nav-sticky-top,
7
+ `}},b.styles=f`:host{display:block;color:var(--md-sys-color-on-surface);font-family:var(--brand-font, Inter);margin-block-start:var(--scb-nav-spacing-block-start, 0);margin-block-end:var(--scb-nav-spacing-block-end, 0);margin-inline-start:var(--scb-nav-spacing-inline-start, 0);margin-inline-end:var(--scb-nav-spacing-inline-end, 0);overflow-x:auto}:host([sticky]){position:sticky;inset-block-start:var(--_scb-nav-sticky-top,
23
8
  var(--scb-nav-sticky-top, 0px)
24
- );
25
- z-index: var(
26
- --_scb-nav-sticky-z-index,
9
+ );z-index:var(--_scb-nav-sticky-z-index,
27
10
  var(--scb-nav-sticky-z-index, 5)
28
- );
29
- background: var(
30
- --_scb-nav-sticky-background,
11
+ );background:var(--_scb-nav-sticky-background,
31
12
  var(--scb-nav-sticky-background, var(--md-sys-color-surface-container-lowest))
32
- );
33
- }
34
-
35
- .scb-nav {
36
- max-inline-size: var(--scb-nav-max-width, 1400px);
37
- margin-inline: auto;
38
- padding-block: var(--scb-nav-padding-block, var(--spacing-5, 16px));
39
- padding-inline: var(--scb-nav-padding-inline, var(--spacing-0, 0px));
40
- box-sizing: border-box;
41
- }
42
-
43
- .scb-nav__items {
44
- display: flex;
45
- align-items: center;
46
- gap: var(--scb-nav-gap, var(--spacing-3, 8px));
47
-
48
- overflow-x: auto;
49
- overflow-y: visible;
50
- -webkit-overflow-scrolling: touch;
51
- scrollbar-width: none;
52
- width: fit-content;
53
- }
54
-
55
- .scb-nav__items::-webkit-scrollbar {
56
- display: none;
57
- }
58
-
59
- ::slotted(a),
60
- ::slotted(button),
61
- ::slotted(scb-nav-item) {
62
- display: inline-flex;
63
- align-items: center;
64
- justify-content: center;
65
-
66
- padding-block: var(--scb-nav-item-padding-block, var(--spacing-3, 8px));
67
- padding-inline: var(--scb-nav-item-padding-inline, var(--spacing-5, 16px));
68
-
69
- border-radius: var(--scb-nav-item-radius, var(--radius-full, 1000px));
70
-
71
- background: transparent;
72
- color: var(--md-sys-color-on-surface);
73
- text-decoration: none;
74
- border: 0;
75
-
76
- font-family: inherit;
77
- font-size: var(--md-sys-typescale-label-large-size);
78
- line-height: var(--md-sys-typescale-label-large-line-height);
79
- font-weight: var(--md-sys-typescale-label-large-weight);
80
-
81
- cursor: pointer;
82
- white-space: nowrap;
83
- user-select: none;
84
- -webkit-tap-highlight-color: transparent;
85
- box-sizing: border-box;
86
- outline: none;
87
-
88
- position: relative;
89
- overflow: hidden;
90
- }
91
-
92
- ::slotted(a:focus),
93
- ::slotted(button:focus),
94
- ::slotted(scb-nav-item:focus) {
95
- outline: none;
96
- }
97
-
98
- ::slotted(a[aria-current]),
99
- ::slotted(button[aria-current]),
100
- ::slotted(scb-nav-item[aria-current]),
101
- ::slotted([data-active='true']) {
102
- background: var(--md-sys-color-secondary-container);
103
- color: var(--md-sys-color-on-secondary-container);
104
- font-weight: 600;
105
- }
106
- `,b);r([o({type:String})],n.prototype,"label",void 0);r([o({type:String,attribute:"active-href"})],n.prototype,"activeHref",void 0);r([o({type:Boolean,attribute:"activate-on-click",converter:_})],n.prototype,"activateOnClick",void 0);r([o({type:Boolean,reflect:!0})],n.prototype,"sticky",void 0);r([o({type:String,attribute:"sticky-top"})],n.prototype,"stickyTop",void 0);r([o({type:Number,attribute:"sticky-z-index"})],n.prototype,"stickyZIndex",void 0);r([o({type:String,attribute:"sticky-background"})],n.prototype,"stickyBackground",void 0);r([o({type:String,reflect:!0})],n.prototype,"spacing",void 0);r([o({type:String,attribute:"spacing-top",reflect:!0})],n.prototype,"spacingTop",void 0);r([o({type:String,attribute:"spacing-bottom",reflect:!0})],n.prototype,"spacingBottom",void 0);r([o({type:String,attribute:"spacing-left",reflect:!0})],n.prototype,"spacingLeft",void 0);r([o({type:String,attribute:"spacing-right",reflect:!0})],n.prototype,"spacingRight",void 0);n=r([f("scb-nav")],n);
13
+ )}.scb-nav{max-inline-size:var(--scb-nav-max-width, 1400px);margin-inline:auto;padding-block:var(--scb-nav-padding-block, var(--spacing-5, 16px));padding-inline:var(--scb-nav-padding-inline, var(--spacing-0, 0px));box-sizing:border-box}.scb-nav__items{display:flex;align-items:center;gap:var(--scb-nav-gap, var(--spacing-3, 8px));overflow-x:auto;overflow-y:visible;-webkit-overflow-scrolling:touch;scrollbar-width:none;width:fit-content}.scb-nav__items::-webkit-scrollbar{display:none}::slotted(a),::slotted(button),::slotted(scb-nav-item){display:inline-flex;align-items:center;justify-content:center;padding-block:var(--scb-nav-item-padding-block, var(--spacing-3, 8px));padding-inline:var(--scb-nav-item-padding-inline, var(--spacing-5, 16px));border-radius:var(--scb-nav-item-radius, var(--radius-full, 1000px));background:0 0;color:var(--md-sys-color-on-surface);text-decoration:none;border:0;font-family:inherit;font-size:var(--md-sys-typescale-label-large-size);line-height:var(--md-sys-typescale-label-large-line-height);font-weight:var(--md-sys-typescale-label-large-weight);cursor:pointer;white-space:nowrap;user-select:none;-webkit-tap-highlight-color:transparent;box-sizing:border-box;outline:0;position:relative;overflow:hidden}::slotted(a:focus),::slotted(button:focus),::slotted(scb-nav-item:focus){outline:0}::slotted([data-active=true]),::slotted(a[aria-current]),::slotted(button[aria-current]),::slotted(scb-nav-item[aria-current]){background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container);font-weight:600}`,b);r([o({type:String})],n.prototype,"label",void 0);r([o({type:String,attribute:"active-href"})],n.prototype,"activeHref",void 0);r([o({type:Boolean,attribute:"activate-on-click",converter:k})],n.prototype,"activateOnClick",void 0);r([o({type:Boolean,reflect:!0})],n.prototype,"sticky",void 0);r([o({type:String,attribute:"sticky-top"})],n.prototype,"stickyTop",void 0);r([o({type:Number,attribute:"sticky-z-index"})],n.prototype,"stickyZIndex",void 0);r([o({type:String,attribute:"sticky-background"})],n.prototype,"stickyBackground",void 0);r([o({type:String,reflect:!0})],n.prototype,"spacing",void 0);r([o({type:String,attribute:"spacing-top",reflect:!0})],n.prototype,"spacingTop",void 0);r([o({type:String,attribute:"spacing-bottom",reflect:!0})],n.prototype,"spacingBottom",void 0);r([o({type:String,attribute:"spacing-left",reflect:!0})],n.prototype,"spacingLeft",void 0);r([o({type:String,attribute:"spacing-right",reflect:!0})],n.prototype,"spacingRight",void 0);n=r([g("scb-nav")],n);
@@ -1,6 +1,6 @@
1
- import{_ as k,b as T,g as $,h as o,m as p,y as h}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import"../../vendor/md-focus-ring.js";import"../../vendor/icon.js";import{t as i}from"../../vendor/decorate.js";import{n as E,t as B}from"../../vendor/assertClassBrand.js";import"../scb-icon-button/scb-icon-button.js";(function(){try{var r=typeof globalThis<"u"?globalThis:window;if(!r.__scb_ce_guard_installed__){r.__scb_ce_guard_installed__=!0;var e=customElements.define.bind(customElements);customElements.define=function(n,s,a){try{customElements.get(n)||e(n,s,a)}catch(l){var c=String(l||"");if(c.indexOf("already been used")===-1&&c.indexOf("NotSupportedError")===-1)throw l}}}}catch{}})();var g,m,C={fromAttribute:r=>r??"",toAttribute:r=>typeof r!="string"||r.trim()===""?null:r},t=(g=new WeakSet,m=class extends k{constructor(...e){super(...e),E(this,g),this.variant="success",this.direction="horizontal",this.size="large",this.title="",this.notificationCardTitle="",this.subtitle="",this.supportingText="",this.open=!1,this.linkText="",this.linkHref="#",this.href="",this.showIcon=!1,this.showCloseButton=!1,this.sizing="",this.width="",this.maxWidth="",this.height="",this.maxHeight="",this.fullHeight=!1,this.fullWidth=!1,this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,this.__hasHeading=!1,this.__hasSubtitle=!1,this.__hasSupportingText=!1,this.__hasFooter=!1,this.__hasIcon=!1,this._closeNotification=()=>{this.open=!1;const n=new CustomEvent("openchange",{detail:{open:this.open},bubbles:!0,composed:!0});this.dispatchEvent(n);const s=new CustomEvent("notification-close",{detail:{open:this.open},bubbles:!0,composed:!0});this.dispatchEvent(s);const a=new CustomEvent("close",{detail:{open:this.open},bubbles:!0,composed:!0});this.dispatchEvent(a);const c=new CustomEvent("Close",{detail:{open:this.open},bubbles:!0,composed:!0});this.dispatchEvent(c)},this.__syncSlots=()=>{this.__hasHeading=this.__slotHasContent("heading"),this.__hasSubtitle=this.__slotHasContent("subtitle"),this.__hasSupportingText=this.__slotHasContent("supporting-text"),this.__hasFooter=this.__slotHasContent("footer"),this.__hasIcon=this.__slotHasContent("icon")}}_iconForVariant(){switch(this.variant){case"success":return"check_circle";case"error":return"error";case"warning":return"warning";default:return"info"}}__resolveSpacingToken(e){const n=(e??"").trim();return n?/^\d+$/.test(n)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(n,10)))})`:n:""}__applySpacing(){const e=this.__resolveSpacingToken(this.spacingTop||this.spacing),n=this.__resolveSpacingToken(this.spacingBottom||this.spacing),s=this.__resolveSpacingToken(this.spacingLeft||this.spacing),a=this.__resolveSpacingToken(this.spacingRight||this.spacing);e?this.style.marginBlockStart=e:this.style.removeProperty("margin-block-start"),n?this.style.marginBlockEnd=n:this.style.removeProperty("margin-block-end"),s?this.style.marginInlineStart=s:this.style.removeProperty("margin-inline-start"),a?this.style.marginInlineEnd=a:this.style.removeProperty("margin-inline-end")}__hasLightDomSlot(e){return Array.from(this.children).some(n=>n.getAttribute("slot")===e)}__slotHasContent(e){return!!this.renderRoot?.querySelector(`slot[name="${e}"]`)?.assignedNodes({flatten:!0}).some(s=>s.nodeType===Node.TEXT_NODE?!!s.textContent?.trim():!0)}updated(e){super.updated(e),e.has("width")&&(this.width&&this.width.trim()!==""?this.style.inlineSize=this.width:this.style.removeProperty("inline-size")),e.has("maxWidth")&&(this.maxWidth&&this.maxWidth.trim()!==""?this.style.maxInlineSize=this.maxWidth:this.style.removeProperty("max-inline-size")),e.has("height")&&(this.height&&this.height.trim()!==""?this.style.blockSize=this.height:this.style.removeProperty("block-size")),e.has("maxHeight")&&(this.maxHeight&&this.maxHeight.trim()!==""?this.style.maxBlockSize=this.maxHeight:this.style.removeProperty("max-block-size")),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom")||e.has("spacingLeft")||e.has("spacingRight"))&&this.__applySpacing()}render(){const e=this.direction==="vertical"?"vertical":"horizontal",n=this.__hasHeading||this.__hasLightDomSlot("heading"),s=this.__hasSubtitle||this.__hasLightDomSlot("subtitle"),a=this.__hasSupportingText||this.__hasLightDomSlot("supporting-text"),c=this.__hasFooter||this.__hasLightDomSlot("footer"),l=H.call(B(g,this)),b=this.subtitle,v=this.supportingText,d=n||!!l,f=s||!!b,y=a||!!v,u=c||!!this.linkText,x=!!(d||f),_=!!(y&&!d&&!f&&!u),z=!!(this.showIcon||this.__hasIcon||this.__hasLightDomSlot("icon")),w=this.linkHref&&this.linkHref!=="#"?this.linkHref:this.href||this.linkHref,S=this.variant==="success"?"--_icon-color: var(--md-sys-color-on-success-container, #007041);":this.variant==="error"?"--_icon-color: var(--md-sys-color-on-error-container, #942500);":this.variant==="warning"?"--_icon-color: var(--md-sys-color-on-warning-container, #6B5600);":"--_icon-color: var(--md-sys-color-on-info-container, #1E00BE);";return h`
1
+ import{f as p,h as w,m as T,p as e,v as h,y as $}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import"../../vendor/icon.js";import{t as i}from"../../vendor/decorate.js";import{n as E,t as B}from"../../vendor/assertClassBrand.js";import"../scb-icon-button/scb-icon-button.js";(function(){try{var r=typeof globalThis<"u"?globalThis:window;if(!r.__scb_ce_guard_installed__){r.__scb_ce_guard_installed__=!0;var o=customElements.define.bind(customElements);customElements.define=function(n,s,a){try{customElements.get(n)||o(n,s,a)}catch(l){var c=String(l||"");if(c.indexOf("already been used")===-1&&c.indexOf("NotSupportedError")===-1)throw l}}}}catch{}})();var g,m,C={fromAttribute:r=>r??"",toAttribute:r=>typeof r!="string"||r.trim()===""?null:r},t=(g=new WeakSet,m=class extends w{constructor(...o){super(...o),E(this,g),this.variant="success",this.direction="horizontal",this.size="large",this.title="",this.notificationCardTitle="",this.subtitle="",this.supportingText="",this.open=!1,this.linkText="",this.linkHref="#",this.href="",this.showIcon=!1,this.showCloseButton=!1,this.sizing="",this.width="",this.maxWidth="",this.height="",this.maxHeight="",this.fullHeight=!1,this.fullWidth=!1,this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,this.__hasHeading=!1,this.__hasSubtitle=!1,this.__hasSupportingText=!1,this.__hasFooter=!1,this.__hasIcon=!1,this._closeNotification=()=>{this.open=!1;const n=new CustomEvent("openchange",{detail:{open:this.open},bubbles:!0,composed:!0});this.dispatchEvent(n);const s=new CustomEvent("notification-close",{detail:{open:this.open},bubbles:!0,composed:!0});this.dispatchEvent(s);const a=new CustomEvent("close",{detail:{open:this.open},bubbles:!0,composed:!0});this.dispatchEvent(a);const c=new CustomEvent("Close",{detail:{open:this.open},bubbles:!0,composed:!0});this.dispatchEvent(c)},this.__syncSlots=()=>{this.__hasHeading=this.__slotHasContent("heading"),this.__hasSubtitle=this.__slotHasContent("subtitle"),this.__hasSupportingText=this.__slotHasContent("supporting-text"),this.__hasFooter=this.__slotHasContent("footer"),this.__hasIcon=this.__slotHasContent("icon")}}_iconForVariant(){switch(this.variant){case"success":return"check_circle";case"error":return"error";case"warning":return"warning";default:return"info"}}__resolveSpacingToken(o){const n=(o??"").trim();return n?/^\d+$/.test(n)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(n,10)))})`:n:""}__applySpacing(){const o=this.__resolveSpacingToken(this.spacingTop||this.spacing),n=this.__resolveSpacingToken(this.spacingBottom||this.spacing),s=this.__resolveSpacingToken(this.spacingLeft||this.spacing),a=this.__resolveSpacingToken(this.spacingRight||this.spacing);o?this.style.marginBlockStart=o:this.style.removeProperty("margin-block-start"),n?this.style.marginBlockEnd=n:this.style.removeProperty("margin-block-end"),s?this.style.marginInlineStart=s:this.style.removeProperty("margin-inline-start"),a?this.style.marginInlineEnd=a:this.style.removeProperty("margin-inline-end")}__hasLightDomSlot(o){return Array.from(this.children).some(n=>n.getAttribute("slot")===o)}__slotHasContent(o){return!!this.renderRoot?.querySelector(`slot[name="${o}"]`)?.assignedNodes({flatten:!0}).some(s=>s.nodeType===Node.TEXT_NODE?!!s.textContent?.trim():!0)}updated(o){super.updated(o),o.has("width")&&(this.width&&this.width.trim()!==""?this.style.inlineSize=this.width:this.style.removeProperty("inline-size")),o.has("maxWidth")&&(this.maxWidth&&this.maxWidth.trim()!==""?this.style.maxInlineSize=this.maxWidth:this.style.removeProperty("max-inline-size")),o.has("height")&&(this.height&&this.height.trim()!==""?this.style.blockSize=this.height:this.style.removeProperty("block-size")),o.has("maxHeight")&&(this.maxHeight&&this.maxHeight.trim()!==""?this.style.maxBlockSize=this.maxHeight:this.style.removeProperty("max-block-size")),(o.has("spacing")||o.has("spacingTop")||o.has("spacingBottom")||o.has("spacingLeft")||o.has("spacingRight"))&&this.__applySpacing()}render(){const o=this.direction==="vertical"?"vertical":"horizontal",n=this.__hasHeading||this.__hasLightDomSlot("heading"),s=this.__hasSubtitle||this.__hasLightDomSlot("subtitle"),a=this.__hasSupportingText||this.__hasLightDomSlot("supporting-text"),c=this.__hasFooter||this.__hasLightDomSlot("footer"),l=H.call(B(g,this)),b=this.subtitle,v=this.supportingText,d=n||!!l,f=s||!!b,u=a||!!v,y=c||!!this.linkText,x=!!(d||f),_=!!(u&&!d&&!f&&!y),z=!!(this.showIcon||this.__hasIcon||this.__hasLightDomSlot("icon")),S=this.linkHref&&this.linkHref!=="#"?this.linkHref:this.href||this.linkHref,k=this.variant==="success"?"--_icon-color: var(--md-sys-color-on-success-container, #007041);":this.variant==="error"?"--_icon-color: var(--md-sys-color-on-error-container, #942500);":this.variant==="warning"?"--_icon-color: var(--md-sys-color-on-warning-container, #6B5600);":"--_icon-color: var(--md-sys-color-on-info-container, #1E00BE);";return h`
2
2
  <div class="notification" type=${this.variant} role="alert" aria-live="assertive" aria-atomic="true">
3
- <div class="notification-main ${e}">
3
+ <div class="notification-main ${o}">
4
4
  ${z?h`
5
5
  <div class="notification-leading-icon">
6
6
  <slot name="icon" @slotchange=${this.__syncSlots}>
@@ -19,13 +19,13 @@ import{_ as k,b as T,g as $,h as o,m as p,y as h}from"../../vendor/vendor.js";im
19
19
  ${s?"":b}
20
20
  </div>
21
21
  </div>
22
- <div class="notification-text" ?hidden=${!y}>
22
+ <div class="notification-text" ?hidden=${!u}>
23
23
  <slot name="supporting-text" ?hidden=${!a} @slotchange=${this.__syncSlots}></slot>
24
24
  ${a?"":v}
25
25
  </div>
26
- <div class="notification-footer" ?hidden=${!u}>
26
+ <div class="notification-footer" ?hidden=${!y}>
27
27
  <slot name="footer" ?hidden=${!c} @slotchange=${this.__syncSlots}></slot>
28
- ${c?"":h`<a class="footer-link" href="${w}">${this.linkText}</a>`}
28
+ ${c?"":h`<a class="footer-link" href="${S}">${this.linkText}</a>`}
29
29
  </div>
30
30
  </div>
31
31
  </div>
@@ -34,368 +34,11 @@ import{_ as k,b as T,g as $,h as o,m as p,y as h}from"../../vendor/vendor.js";im
34
34
  <scb-icon-button
35
35
  aria-label="Stäng meddelande"
36
36
  icon="close"
37
- style=${S}
37
+ style=${k}
38
38
  @click=${this._closeNotification}
39
39
  >
40
40
  </scb-icon-button>
41
41
  </div>
42
42
  `:null}
43
43
  </div>
44
- <md-focus-ring></md-focus-ring>
45
- `}},m.styles=[T`
46
- :host {
47
- display: block;
48
- position: relative;
49
- box-sizing: border-box;
50
- inline-size: 100%;
51
- min-inline-size: 0;
52
- /* Om det behövs kan maxbredd styras via css-variabel, samma idé som övriga kort */
53
- max-inline-size: var(--scb-notification-card-max-w, none);
54
- height: auto;
55
- padding: var(--scb-notification-card-focus-ring-gap, 4px);
56
-
57
- --scb-notification-card-padding: var(--spacing-5, 16px);
58
- --scb-notification-card-column-gap: var(--spacing-4, 12px);
59
- --scb-notification-card-row-gap: var(--spacing-3, 8px);
60
-
61
- --scb-notification-main-horizontal-gap: var(--spacing-4, 12px);
62
- --scb-notification-main-vertical-gap: var(--spacing-4, 12px);
63
- --scb-notification-text-container-gap: var(--spacing-4, 12px);
64
-
65
- --scb-notification-icon-size: var(--icon-size-small, 24px);
66
-
67
- --scb-notification-title-size: var(--md-sys-typescale-headline-small-size, 24px);
68
- --scb-notification-title-line-height: var(--md-sys-typescale-headline-small-line-height, 30px);
69
- --scb-notification-title-letter-spacing: var(--md-sys-typescale-headline-small-tracking, -0.6px);
70
-
71
- --scb-notification-subtitle-size: var(--md-sys-typescale-title-medium-size, 18px);
72
- --scb-notification-subtitle-line-height: var(--md-sys-typescale-title-medium-line-height, 26px);
73
- --scb-notification-subtitle-letter-spacing: var(--md-sys-typescale-title-medium-tracking, -0.3px);
74
-
75
- --scb-notification-text-size: var(--md-sys-typescale-body-medium-size, 16px);
76
- --scb-notification-text-line-height: var(--md-sys-typescale-body-medium-line-height, 24px);
77
- --scb-notification-text-letter-spacing: var(--md-sys-typescale-body-medium-tracking, -0.15px);
78
-
79
- --scb-notification-footer-size: 18px;
80
- --scb-notification-footer-line-height: 26px;
81
- }
82
-
83
- :host([size='medium']) {
84
- --scb-notification-card-padding: var(--spacing-4, 12px);
85
- --scb-notification-card-column-gap: var(--spacing-3, 8px);
86
- --scb-notification-card-row-gap: var(--spacing-2, 4px);
87
-
88
- --scb-notification-main-horizontal-gap: var(--spacing-3, 8px);
89
- --scb-notification-main-vertical-gap: var(--spacing-3, 8px);
90
- --scb-notification-text-container-gap: var(--spacing-3, 8px);
91
-
92
- --scb-notification-icon-size: var(--icon-size-medium, 20px);
93
-
94
- --scb-notification-title-size: var(--md-sys-typescale-title-large-size, 20px);
95
- --scb-notification-title-line-height: var(--md-sys-typescale-title-large-line-height, 28px);
96
- --scb-notification-title-letter-spacing: var(--md-sys-typescale-title-large-tracking, -0.3px);
97
-
98
- --scb-notification-subtitle-size: var(--md-sys-typescale-title-small-size, 16px);
99
- --scb-notification-subtitle-line-height: var(--md-sys-typescale-title-small-line-height, 24px);
100
- --scb-notification-subtitle-letter-spacing: var(--md-sys-typescale-title-small-tracking, -0.2px);
101
-
102
- --scb-notification-text-size: var(--md-sys-typescale-body-medium-size, 16px);
103
- --scb-notification-text-line-height: var(--md-sys-typescale-body-medium-line-height, 24px);
104
- --scb-notification-text-letter-spacing: var(--md-sys-typescale-body-medium-tracking, -0.15px);
105
-
106
- --scb-notification-footer-size: 16px;
107
- --scb-notification-footer-line-height: 24px;
108
- }
109
-
110
- :host([size='small']) {
111
- --scb-notification-card-padding: var(--spacing-3, 8px);
112
- --scb-notification-card-column-gap: var(--spacing-2, 4px);
113
- --scb-notification-card-row-gap: var(--spacing-1, 2px);
114
-
115
- --scb-notification-main-horizontal-gap: var(--spacing-2, 4px);
116
- --scb-notification-main-vertical-gap: var(--spacing-2, 4px);
117
- --scb-notification-text-container-gap: var(--spacing-2, 4px);
118
-
119
- --scb-notification-icon-size: var(--icon-size-medium, 20px);
120
-
121
- --scb-notification-title-size: var(--md-sys-typescale-title-medium-size, 18px);
122
- --scb-notification-title-line-height: var(--md-sys-typescale-title-medium-line-height, 26px);
123
- --scb-notification-title-letter-spacing: var(--md-sys-typescale-title-medium-tracking, -0.3px);
124
-
125
- --scb-notification-subtitle-size: var(--md-sys-typescale-body-medium-size, 16px);
126
- --scb-notification-subtitle-line-height: var(--md-sys-typescale-body-medium-line-height, 24px);
127
- --scb-notification-subtitle-letter-spacing: var(--md-sys-typescale-body-medium-tracking, -0.15px);
128
-
129
- --scb-notification-text-size: var(--md-sys-typescale-body-small-size, 14px);
130
- --scb-notification-text-line-height: var(--md-sys-typescale-body-small-line-height, 20px);
131
- --scb-notification-text-letter-spacing: var(--md-sys-typescale-body-small-tracking, -0.1px);
132
-
133
- --scb-notification-footer-size: 14px;
134
- --scb-notification-footer-line-height: 20px;
135
- }
136
-
137
- /* Stretch: fyller både bredd och höjd när det sätts explicit */
138
- :host([sizing='stretch']) {
139
- inline-size: 100%;
140
- block-size: 100%;
141
- max-inline-size: none;
142
- }
143
-
144
- :host([full-width]) {
145
- inline-size: 100%;
146
- }
147
-
148
- :host([full-height]) {
149
- block-size: 100%;
150
- }
151
-
152
- /* content-width: samma upplägg som card / fact-card */
153
- :host([sizing='content-width']) {
154
- display: inline-block;
155
- inline-size: auto;
156
- block-size: auto;
157
- }
158
-
159
- :host([sizing='content-width']) .notification {
160
- inline-size: max-content;
161
- }
162
-
163
- /* content-height: bredd fyller, höjd styrs av innehåll */
164
- :host([sizing='content-height']) {
165
- inline-size: 100%;
166
- block-size: auto;
167
- max-inline-size: none;
168
- }
169
-
170
- /* När värd-elementet fyller höjd ska själva kortet också göra det */
171
- :host([height]) .notification,
172
- :host([max-height]) .notification,
173
- :host([sizing='stretch']) .notification,
174
- :host([full-height]) .notification {
175
- block-size: 100%;
176
- }
177
-
178
- /* Öppen / stängd */
179
- :host([open]) .notification {
180
- display: flex;
181
- }
182
-
183
- :host(:not([open])) .notification {
184
- display: none;
185
- }
186
-
187
- .notification {
188
- box-sizing: border-box;
189
- border-radius: var(--md-sys-shape-corner-large, 16px);
190
- padding: var(--scb-notification-card-padding);
191
- display: flex;
192
- flex-direction: row;
193
- align-items: flex-start;
194
- justify-content: space-between;
195
- column-gap: var(--scb-notification-card-column-gap);
196
- row-gap: var(--scb-notification-card-row-gap);
197
- inline-size: 100%;
198
- max-inline-size: 100%;
199
- color: inherit;
200
- }
201
-
202
- /* Variantfärger */
203
- :host([variant='success']) .notification {
204
- background: var(--md-sys-color-success-container, #E7FEE9);
205
- color: var(--md-sys-color-on-success-container, #007041);
206
- }
207
-
208
- :host([variant='error']) .notification {
209
- background: var(--md-sys-color-error-container, #FFD7C7);
210
- color: var(--md-sys-color-on-error-container, #942500);
211
- }
212
-
213
- :host([variant='warning']) .notification {
214
- background: var(--md-sys-color-warning-container, #FEEEA0);
215
- color: var(--md-sys-color-on-warning-container, #6B5600);
216
- }
217
-
218
- :host([variant='info']) .notification {
219
- background: var(--md-sys-color-info-container, #D6F1FF);
220
- color: var(--md-sys-color-on-info-container, #1E00BE);
221
- }
222
-
223
- .notification-main {
224
- display: flex;
225
- flex: 1 1 auto;
226
- min-width: 0;
227
- }
228
-
229
- .notification-main.horizontal {
230
- flex-direction: row;
231
- column-gap: var(--scb-notification-main-horizontal-gap);
232
- row-gap: 0;
233
- align-items: flex-start;
234
- }
235
-
236
- .notification-main.vertical {
237
- flex-direction: column;
238
- column-gap: 0;
239
- row-gap: var(--scb-notification-main-vertical-gap);
240
- align-items: flex-start;
241
- }
242
-
243
- .notification-leading-icon {
244
- display: flex;
245
- align-items: flex-start;
246
- justify-content: center;
247
- flex: 0 0 auto;
248
- margin-top: 2px;
249
- }
250
-
251
- .notification-leading-icon md-icon {
252
- font-size: var(--scb-notification-icon-size);
253
- }
254
-
255
- .notification-text-container {
256
- display: flex;
257
- flex-direction: column;
258
- gap: var(--scb-notification-text-container-gap);
259
- font-family: var(--brand-font, "Inter", sans-serif);
260
- font-style: normal;
261
- min-width: 0;
262
- }
263
-
264
- .notification-text-container.no-gap {
265
- gap: 0;
266
- }
267
-
268
- .notification-title-container{
269
- display: flex;
270
- flex-direction: column;
271
- }
272
-
273
- .notification-title {
274
- font-size: var(--scb-notification-title-size);
275
- font-weight: var(--weight-bold, 700);
276
- line-height: var(--scb-notification-title-line-height);
277
- letter-spacing: var(--scb-notification-title-letter-spacing);
278
- white-space: normal;
279
- word-break: normal;
280
- overflow-wrap: normal;
281
- hyphens: auto;
282
- overflow: visible;
283
- text-overflow: clip;
284
- }
285
-
286
- .notification-subtitle {
287
- font-size: var(--scb-notification-subtitle-size);
288
- font-weight: var(--weight-semibold, 600);
289
- line-height: var(--scb-notification-subtitle-line-height);
290
- letter-spacing: var(--scb-notification-subtitle-letter-spacing);
291
- white-space: normal;
292
- word-break: normal;
293
- overflow-wrap: normal;
294
- hyphens: auto;
295
- overflow: visible;
296
- text-overflow: clip;
297
- }
298
-
299
- .notification-text {
300
- font-size: var(--scb-notification-text-size);
301
- font-weight: var(--weight-regular, 400);
302
- line-height: var(--scb-notification-text-line-height);
303
- letter-spacing: var(--scb-notification-text-letter-spacing);
304
-
305
- white-space: normal;
306
- word-break: normal;
307
- overflow-wrap: normal;
308
- hyphens: auto;
309
- overflow: visible;
310
- text-overflow: clip;
311
- }
312
-
313
- .notification-footer {
314
- font-size: var(--scb-notification-footer-size);
315
- margin-top: 4px;
316
- line-height: var(--scb-notification-footer-line-height);
317
- }
318
-
319
- .notification-title ::slotted(*),
320
- .notification-subtitle ::slotted(*),
321
- .notification-text ::slotted(*),
322
- .notification-footer ::slotted(*) {
323
- margin-block: 0;
324
- margin-inline: 0;
325
- }
326
-
327
- .notification-text ::slotted(a) {
328
- font-size: var(--scb-notification-text-size);
329
- line-height: var(--scb-notification-text-line-height);
330
- letter-spacing: var(--scb-notification-text-letter-spacing);
331
- }
332
-
333
- .notification-text ::slotted(scb-link) {
334
- --scb-link-font-size: var(--scb-notification-text-size);
335
- --scb-link-line-height: var(--scb-notification-text-line-height);
336
- --scb-link-letter-spacing: var(--scb-notification-text-letter-spacing);
337
- }
338
-
339
- .notification-footer ::slotted(a),
340
- .notification-footer ::slotted(scb-link),
341
- .notification-footer .footer-link {
342
- display: inline-block;
343
- vertical-align: middle;
344
- transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
345
- }
346
-
347
- .notification-footer ::slotted(a),
348
- .notification-footer .footer-link {
349
- font-size: var(--scb-notification-footer-size);
350
- line-height: var(--scb-notification-footer-line-height);
351
- text-decoration: underline;
352
- text-decoration-thickness: 1px;
353
- text-underline-offset: 0.1578em;
354
- }
355
-
356
- .notification-footer ::slotted(scb-link) {
357
- --scb-link-font-size: var(--scb-notification-footer-size);
358
- --scb-link-line-height: var(--scb-notification-footer-line-height);
359
- }
360
-
361
- .notification-footer ::slotted(a:hover),
362
- .notification-footer .footer-link:hover {
363
- text-decoration-thickness: 2px;
364
- }
365
-
366
- .notification-footer ::slotted(a:focus-visible),
367
- .notification-footer .footer-link:focus-visible {
368
- outline: none;
369
- border-radius: 4px;
370
- animation: growShrinkRing 0.25s cubic-bezier(0.4, 0, 0.2, 1);
371
- box-shadow: 0 0 0 2px var(--md-sys-color-primary, #1976d2);
372
- }
373
-
374
- .notification-close-button {
375
- flex: 0 0 auto;
376
- display: flex;
377
- align-items: flex-start;
378
- justify-content: flex-end;
379
- }
380
-
381
- /* Justering så att krysset linjerar bättre med ikon / titel */
382
- .notification-close-button scb-icon-button {
383
- margin-top: -5px;
384
- }
385
-
386
- [hidden] {
387
- display: none !important;
388
- }
389
-
390
- @keyframes growShrinkRing {
391
- 0% {
392
- box-shadow: 0 0 0 2px var(--md-sys-color-primary, #1976d2);
393
- }
394
- 50% {
395
- box-shadow: 0 0 0 7px var(--md-sys-color-primary, #1976d2);
396
- }
397
- 100% {
398
- box-shadow: 0 0 0 2px var(--md-sys-color-primary, #1976d2);
399
- }
400
- }
401
- `],m);function H(){return this.notificationCardTitle||this.title}i([o({type:String,reflect:!0})],t.prototype,"variant",void 0);i([o({type:String,reflect:!0})],t.prototype,"direction",void 0);i([o({type:String,reflect:!0})],t.prototype,"size",void 0);i([o({type:String})],t.prototype,"title",void 0);i([o({type:String,attribute:"notification-card-title"})],t.prototype,"notificationCardTitle",void 0);i([o({type:String})],t.prototype,"subtitle",void 0);i([o({type:String,attribute:"supporting-text"})],t.prototype,"supportingText",void 0);i([o({type:Boolean,reflect:!0})],t.prototype,"open",void 0);i([o({type:String,attribute:"link-text"})],t.prototype,"linkText",void 0);i([o({type:String,attribute:"link-href"})],t.prototype,"linkHref",void 0);i([o({type:String})],t.prototype,"href",void 0);i([o({type:Boolean,attribute:"show-icon"})],t.prototype,"showIcon",void 0);i([o({type:Boolean,attribute:"show-close-button"})],t.prototype,"showCloseButton",void 0);i([o({type:String,reflect:!0,converter:C})],t.prototype,"sizing",void 0);i([o({type:String,reflect:!0})],t.prototype,"width",void 0);i([o({type:String,reflect:!0,attribute:"max-width"})],t.prototype,"maxWidth",void 0);i([o({type:String,reflect:!0})],t.prototype,"height",void 0);i([o({type:String,reflect:!0,attribute:"max-height"})],t.prototype,"maxHeight",void 0);i([o({type:Boolean,reflect:!0,attribute:"full-height"})],t.prototype,"fullHeight",void 0);i([o({type:Boolean,reflect:!0,attribute:"full-width"})],t.prototype,"fullWidth",void 0);i([o({type:String})],t.prototype,"spacing",void 0);i([o({type:String,attribute:"spacing-top"})],t.prototype,"spacingTop",void 0);i([o({type:String,attribute:"spacing-bottom"})],t.prototype,"spacingBottom",void 0);i([o({type:String,attribute:"spacing-left"})],t.prototype,"spacingLeft",void 0);i([o({type:String,attribute:"spacing-right"})],t.prototype,"spacingRight",void 0);i([p()],t.prototype,"__hasHeading",void 0);i([p()],t.prototype,"__hasSubtitle",void 0);i([p()],t.prototype,"__hasSupportingText",void 0);i([p()],t.prototype,"__hasFooter",void 0);i([p()],t.prototype,"__hasIcon",void 0);t=i([$("scb-notification-card")],t);
44
+ `}},m.styles=[$`@keyframes growShrinkRing{0%,to{box-shadow:0 0 0 2px var(--md-sys-color-primary, #1976d2)}50%{box-shadow:0 0 0 7px var(--md-sys-color-primary, #1976d2)}}:host{display:block;position:relative;box-sizing:border-box;inline-size:100%;min-inline-size:0;max-inline-size:var(--scb-notification-card-max-w, none);height:auto;padding:var(--scb-notification-card-focus-ring-gap, 4px);--scb-notification-card-padding:var(--spacing-5, 16px);--scb-notification-card-column-gap:var(--spacing-4, 12px);--scb-notification-card-row-gap:var(--spacing-3, 8px);--scb-notification-main-horizontal-gap:var(--spacing-4, 12px);--scb-notification-main-vertical-gap:var(--spacing-4, 12px);--scb-notification-text-container-gap:var(--spacing-4, 12px);--scb-notification-icon-size:var(--icon-size-small, 24px);--scb-notification-title-size:var(--md-sys-typescale-headline-small-size, 24px);--scb-notification-title-line-height:var(--md-sys-typescale-headline-small-line-height, 30px);--scb-notification-title-letter-spacing:var(--md-sys-typescale-headline-small-tracking, -0.6px);--scb-notification-subtitle-size:var(--md-sys-typescale-title-medium-size, 18px);--scb-notification-subtitle-line-height:var(--md-sys-typescale-title-medium-line-height, 26px);--scb-notification-subtitle-letter-spacing:var(--md-sys-typescale-title-medium-tracking, -0.3px);--scb-notification-text-size:var(--md-sys-typescale-body-medium-size, 16px);--scb-notification-text-line-height:var(--md-sys-typescale-body-medium-line-height, 24px);--scb-notification-text-letter-spacing:var(--md-sys-typescale-body-medium-tracking, -0.15px);--scb-notification-footer-size:18px;--scb-notification-footer-line-height:26px}:host([size='medium']),:host([size='small']){--scb-notification-icon-size:var(--icon-size-medium, 20px)}:host([size='medium']){--scb-notification-card-padding:var(--spacing-4, 12px);--scb-notification-card-column-gap:var(--spacing-3, 8px);--scb-notification-card-row-gap:var(--spacing-2, 4px);--scb-notification-main-horizontal-gap:var(--spacing-3, 8px);--scb-notification-main-vertical-gap:var(--spacing-3, 8px);--scb-notification-text-container-gap:var(--spacing-3, 8px);--scb-notification-title-size:var(--md-sys-typescale-title-large-size, 20px);--scb-notification-title-line-height:var(--md-sys-typescale-title-large-line-height, 28px);--scb-notification-title-letter-spacing:var(--md-sys-typescale-title-large-tracking, -0.3px);--scb-notification-subtitle-size:var(--md-sys-typescale-title-small-size, 16px);--scb-notification-subtitle-line-height:var(--md-sys-typescale-title-small-line-height, 24px);--scb-notification-subtitle-letter-spacing:var(--md-sys-typescale-title-small-tracking, -0.2px);--scb-notification-text-size:var(--md-sys-typescale-body-medium-size, 16px);--scb-notification-text-line-height:var(--md-sys-typescale-body-medium-line-height, 24px);--scb-notification-text-letter-spacing:var(--md-sys-typescale-body-medium-tracking, -0.15px);--scb-notification-footer-size:16px;--scb-notification-footer-line-height:24px}:host([size='small']){--scb-notification-card-padding:var(--spacing-3, 8px);--scb-notification-card-column-gap:var(--spacing-2, 4px);--scb-notification-card-row-gap:var(--spacing-1, 2px);--scb-notification-main-horizontal-gap:var(--spacing-2, 4px);--scb-notification-main-vertical-gap:var(--spacing-2, 4px);--scb-notification-text-container-gap:var(--spacing-2, 4px);--scb-notification-title-size:var(--md-sys-typescale-title-medium-size, 18px);--scb-notification-title-line-height:var(--md-sys-typescale-title-medium-line-height, 26px);--scb-notification-title-letter-spacing:var(--md-sys-typescale-title-medium-tracking, -0.3px);--scb-notification-subtitle-size:var(--md-sys-typescale-body-medium-size, 16px);--scb-notification-subtitle-line-height:var(--md-sys-typescale-body-medium-line-height, 24px);--scb-notification-subtitle-letter-spacing:var(--md-sys-typescale-body-medium-tracking, -0.15px);--scb-notification-text-size:var(--md-sys-typescale-body-small-size, 14px);--scb-notification-text-line-height:var(--md-sys-typescale-body-small-line-height, 20px);--scb-notification-text-letter-spacing:var(--md-sys-typescale-body-small-tracking, -0.1px);--scb-notification-footer-size:14px;--scb-notification-footer-line-height:20px}:host([sizing='stretch']){inline-size:100%;block-size:100%;max-inline-size:none}:host([full-width]){inline-size:100%}:host([full-height]){block-size:100%}:host([sizing='content-width']){display:inline-block;inline-size:auto;block-size:auto}:host([sizing='content-width']) .notification{inline-size:max-content}:host([sizing='content-height']){inline-size:100%;block-size:auto;max-inline-size:none}:host([full-height]) .notification,:host([height]) .notification,:host([max-height]) .notification,:host([sizing='stretch']) .notification{block-size:100%}:host([open]) .notification{display:flex}:host(:not([open])) .notification{display:none}.notification{box-sizing:border-box;border-radius:var(--md-sys-shape-corner-large, 16px);padding:var(--scb-notification-card-padding);display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;column-gap:var(--scb-notification-card-column-gap);row-gap:var(--scb-notification-card-row-gap);inline-size:100%;max-inline-size:100%;color:inherit}:host([variant='success']) .notification{background:var(--md-sys-color-success-container, #E7FEE9);color:var(--md-sys-color-on-success-container, #007041)}:host([variant='error']) .notification{background:var(--md-sys-color-error-container, #FFD7C7);color:var(--md-sys-color-on-error-container, #942500)}:host([variant='warning']) .notification{background:var(--md-sys-color-warning-container, #FEEEA0);color:var(--md-sys-color-on-warning-container, #6B5600)}:host([variant='info']) .notification{background:var(--md-sys-color-info-container, #D6F1FF);color:var(--md-sys-color-on-info-container, #1E00BE)}.notification-main{display:flex;flex:1 1 auto;min-width:0}.notification-main.horizontal{flex-direction:row;column-gap:var(--scb-notification-main-horizontal-gap);row-gap:0;align-items:flex-start}.notification-main.vertical{flex-direction:column;column-gap:0;row-gap:var(--scb-notification-main-vertical-gap);align-items:flex-start}.notification-leading-icon{display:flex;align-items:flex-start;justify-content:center;flex:0 0 auto;margin-top:2px}.notification-leading-icon md-icon{font-size:var(--scb-notification-icon-size)}.notification-text-container{gap:var(--scb-notification-text-container-gap);font-family:var(--brand-font, "Inter", sans-serif);font-style:normal;min-width:0}.notification-text-container.no-gap{gap:0}.notification-text-container,.notification-title-container{display:flex;flex-direction:column}.notification-title{font-size:var(--scb-notification-title-size);font-weight:var(--weight-bold, 700);line-height:var(--scb-notification-title-line-height);letter-spacing:var(--scb-notification-title-letter-spacing)}.notification-subtitle,.notification-text,.notification-title{white-space:normal;word-break:normal;overflow-wrap:normal;hyphens:auto;overflow:visible;text-overflow:clip}.notification-subtitle{font-size:var(--scb-notification-subtitle-size);font-weight:var(--weight-semibold, 600);line-height:var(--scb-notification-subtitle-line-height);letter-spacing:var(--scb-notification-subtitle-letter-spacing)}.notification-text{font-size:var(--scb-notification-text-size);font-weight:var(--weight-regular, 400);line-height:var(--scb-notification-text-line-height);letter-spacing:var(--scb-notification-text-letter-spacing)}.notification-footer{font-size:var(--scb-notification-footer-size);margin-top:4px;line-height:var(--scb-notification-footer-line-height)}.notification-footer ::slotted(*),.notification-subtitle ::slotted(*),.notification-text ::slotted(*),.notification-title ::slotted(*){margin-block:0;margin-inline:0}.notification-text ::slotted(a){font-size:var(--scb-notification-text-size);line-height:var(--scb-notification-text-line-height);letter-spacing:var(--scb-notification-text-letter-spacing)}.notification-text ::slotted(scb-link){--scb-link-font-size:var(--scb-notification-text-size);--scb-link-line-height:var(--scb-notification-text-line-height);--scb-link-letter-spacing:var(--scb-notification-text-letter-spacing)}.notification-footer .footer-link,.notification-footer ::slotted(a),.notification-footer ::slotted(scb-link){display:inline-block;vertical-align:middle;transition:box-shadow .25s cubic-bezier(.4,0,.2,1)}.notification-footer .footer-link,.notification-footer ::slotted(a){font-size:var(--scb-notification-footer-size);line-height:var(--scb-notification-footer-line-height);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.1578em}.notification-footer ::slotted(scb-link){--scb-link-font-size:var(--scb-notification-footer-size);--scb-link-line-height:var(--scb-notification-footer-line-height)}.notification-footer .footer-link:hover,.notification-footer ::slotted(a:hover){text-decoration-thickness:2px}.notification-footer .footer-link:focus-visible,.notification-footer ::slotted(a:focus-visible){outline:0;border-radius:4px;animation:growShrinkRing .25s cubic-bezier(.4,0,.2,1);box-shadow:0 0 0 2px var(--md-sys-color-primary, #1976d2)}.notification-close-button{flex:0 0 auto;display:flex;align-items:flex-start;justify-content:flex-end}.notification-close-button scb-icon-button{margin-top:-5px}[hidden]{display:none!important}`],m);function H(){return this.notificationCardTitle||this.title}i([e({type:String,reflect:!0})],t.prototype,"variant",void 0);i([e({type:String,reflect:!0})],t.prototype,"direction",void 0);i([e({type:String,reflect:!0})],t.prototype,"size",void 0);i([e({type:String})],t.prototype,"title",void 0);i([e({type:String,attribute:"notification-card-title"})],t.prototype,"notificationCardTitle",void 0);i([e({type:String})],t.prototype,"subtitle",void 0);i([e({type:String,attribute:"supporting-text"})],t.prototype,"supportingText",void 0);i([e({type:Boolean,reflect:!0})],t.prototype,"open",void 0);i([e({type:String,attribute:"link-text"})],t.prototype,"linkText",void 0);i([e({type:String,attribute:"link-href"})],t.prototype,"linkHref",void 0);i([e({type:String})],t.prototype,"href",void 0);i([e({type:Boolean,attribute:"show-icon"})],t.prototype,"showIcon",void 0);i([e({type:Boolean,attribute:"show-close-button"})],t.prototype,"showCloseButton",void 0);i([e({type:String,reflect:!0,converter:C})],t.prototype,"sizing",void 0);i([e({type:String,reflect:!0})],t.prototype,"width",void 0);i([e({type:String,reflect:!0,attribute:"max-width"})],t.prototype,"maxWidth",void 0);i([e({type:String,reflect:!0})],t.prototype,"height",void 0);i([e({type:String,reflect:!0,attribute:"max-height"})],t.prototype,"maxHeight",void 0);i([e({type:Boolean,reflect:!0,attribute:"full-height"})],t.prototype,"fullHeight",void 0);i([e({type:Boolean,reflect:!0,attribute:"full-width"})],t.prototype,"fullWidth",void 0);i([e({type:String})],t.prototype,"spacing",void 0);i([e({type:String,attribute:"spacing-top"})],t.prototype,"spacingTop",void 0);i([e({type:String,attribute:"spacing-bottom"})],t.prototype,"spacingBottom",void 0);i([e({type:String,attribute:"spacing-left"})],t.prototype,"spacingLeft",void 0);i([e({type:String,attribute:"spacing-right"})],t.prototype,"spacingRight",void 0);i([p()],t.prototype,"__hasHeading",void 0);i([p()],t.prototype,"__hasSubtitle",void 0);i([p()],t.prototype,"__hasSupportingText",void 0);i([p()],t.prototype,"__hasFooter",void 0);i([p()],t.prototype,"__hasIcon",void 0);t=i([T("scb-notification-card")],t);