@loadsmart/miranda-wc 1.27.1 → 1.28.1

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 (45) hide show
  1. package/dist/components/button/button.d.ts +1 -0
  2. package/dist/components/button/button.d.ts.map +1 -1
  3. package/dist/components/checkbox/checkbox.d.ts +1 -0
  4. package/dist/components/checkbox/checkbox.d.ts.map +1 -1
  5. package/dist/components/close-button/close-button.d.ts +1 -0
  6. package/dist/components/close-button/close-button.d.ts.map +1 -1
  7. package/dist/components/layout/box/box.constants.d.ts +4 -1
  8. package/dist/components/layout/box/box.constants.d.ts.map +1 -1
  9. package/dist/components/layout/box/box.d.ts.map +1 -1
  10. package/dist/components/layout/box/box.types.d.ts +2 -2
  11. package/dist/components/layout/box/box.types.d.ts.map +1 -1
  12. package/dist/components/layout/grid/grid.constants.d.ts +4 -1
  13. package/dist/components/layout/grid/grid.constants.d.ts.map +1 -1
  14. package/dist/components/layout/grid/grid.d.ts.map +1 -1
  15. package/dist/components/layout/grid/grid.types.d.ts +4 -4
  16. package/dist/components/layout/grid/grid.types.d.ts.map +1 -1
  17. package/dist/components/layout/group/group.constants.d.ts +4 -1
  18. package/dist/components/layout/group/group.constants.d.ts.map +1 -1
  19. package/dist/components/layout/group/group.d.ts.map +1 -1
  20. package/dist/components/layout/group/group.types.d.ts +2 -2
  21. package/dist/components/layout/group/group.types.d.ts.map +1 -1
  22. package/dist/components/layout/sidebar/sidebar.constants.d.ts +4 -1
  23. package/dist/components/layout/sidebar/sidebar.constants.d.ts.map +1 -1
  24. package/dist/components/layout/sidebar/sidebar.d.ts.map +1 -1
  25. package/dist/components/layout/sidebar/sidebar.types.d.ts +2 -2
  26. package/dist/components/layout/sidebar/sidebar.types.d.ts.map +1 -1
  27. package/dist/components/layout/stack/stack.constants.d.ts +4 -1
  28. package/dist/components/layout/stack/stack.constants.d.ts.map +1 -1
  29. package/dist/components/layout/stack/stack.d.ts.map +1 -1
  30. package/dist/components/layout/stack/stack.types.d.ts +2 -2
  31. package/dist/components/layout/stack/stack.types.d.ts.map +1 -1
  32. package/dist/components/layout/switcher/switcher.constants.d.ts +4 -1
  33. package/dist/components/layout/switcher/switcher.constants.d.ts.map +1 -1
  34. package/dist/components/layout/switcher/switcher.d.ts.map +1 -1
  35. package/dist/components/layout/switcher/switcher.types.d.ts +4 -4
  36. package/dist/components/layout/switcher/switcher.types.d.ts.map +1 -1
  37. package/dist/components/radio-group/radio.d.ts +1 -0
  38. package/dist/components/radio-group/radio.d.ts.map +1 -1
  39. package/dist/components/toggle-group/toggle.d.ts +1 -0
  40. package/dist/components/toggle-group/toggle.d.ts.map +1 -1
  41. package/dist/index.js +473 -473
  42. package/dist/index.js.map +1 -1
  43. package/dist/utils/get-spacing-value.d.ts +11 -0
  44. package/dist/utils/get-spacing-value.d.ts.map +1 -0
  45. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -35,27 +35,27 @@ const ct=t=>null!=t?t:x
35
35
  * @license
36
36
  * Copyright 2018 Google LLC
37
37
  * SPDX-License-Identifier: BSD-3-Clause
38
- */const bt=ht(class extends ut{constructor(t){var e;if(super(t),t.type!==dt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var o,i;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(o=this.st)||void 0===o?void 0:o.has(t))&&this.nt.add(t);return this.render(e)}const r=t.element.classList;this.nt.forEach((t=>{t in e||(r.remove(t),this.nt.delete(t))}));for(const t in e){const o=!!e[t];o===this.nt.has(t)||(null===(i=this.st)||void 0===i?void 0:i.has(t))||(o?(r.add(t),this.nt.add(t)):(r.remove(t),this.nt.delete(t)))}return w}}),gt=(t,e=["article","div","span"],o="div")=>class extends t{static get properties(){return{as:{type:String}}}connectedCallback(){var t;super.connectedCallback(),this.as=null!==(t=e.includes(this.as)?this.as:o)&&void 0!==t?t:"div"}get tag(){return R`${(t=>({_$litStatic$:t,r:q}))(this.as)}`}};var pt,mt;class ft extends lt{constructor(){super(...arguments),pt.set(this,void 0),mt.set(this,(()=>{if(this.hasAttribute("form")){const t=this.getRootNode(),o=this.getAttribute("form");e(this,pt,t.getElementById(o),"f")}else e(this,pt,this.closest("form"),"f")}))}static get properties(){return{assignedForm:{type:String,attribute:"form"}}}get form(){return t(this,pt,"f")}updated(e){super.updated(e),(e.has("form")||null==t(this,pt,"f"))&&t(this,mt,"f").call(this)}}pt=new WeakMap,mt=new WeakMap;var $t,yt,vt={},wt={};wt.LoadsmartTheme={"brand-color-brand":"20, 214, 77","brand-color-brand-accent-1":"0, 215, 215","brand-color-brand-accent-2":"132, 241, 30","border-radius-none":"0px","border-radius-s":"4px","border-radius-m":"8px","border-radius-l":"16px","border-radius-circle":"50%","border-none":0,"border-thin":"1px","border-medium":"2px","border-thick":"4px","color-background-primary":"252, 252, 255","color-background-secondary":"248, 249, 251","color-background-tertiary":"230, 237, 242","color-background-highlight":"202, 219, 221","color-background-inverted":"32, 41, 49","color-background-secondary-inverted":"61, 74, 85","color-border":"193, 206, 217","color-divider":"230, 237, 242","color-brand":"20, 214, 77","color-brand-accent-1":"0, 215, 215","color-brand-accent-2":"132, 241, 30","color-primary-20":"202, 219, 221","color-primary-60":"0, 84, 84","color-primary-100":"0, 51, 51","color-accent-20":"229, 245, 255","color-accent-60":"0, 98, 159","color-accent-100":"15, 66, 97","color-neutral-0":"252, 252, 255","color-neutral-10":"248, 249, 251","color-neutral-20":"230, 237, 242","color-neutral-40":"193, 206, 217","color-neutral-60":"94, 118, 138","color-neutral-80":"92, 106, 118","color-neutral-90":"61, 74, 85","color-neutral-100":"32, 41, 49","color-success-20":"227, 247, 239","color-success-60":"3, 124, 94","color-success-100":"0, 94, 71","color-danger-20":"255, 233, 230","color-danger-60":"186, 27, 27","color-danger-100":"104, 0, 3","color-warning-20":"255, 243, 214","color-warning-60":"248, 182, 14","color-warning-100":"102, 63, 25","color-text-primary":"32, 41, 49","color-text-secondary":"61, 74, 85","color-text-tertiary":"92, 106, 118","color-text-placeholder":"94, 118, 138","color-text-disabled":"193, 206, 217","color-text-inverted":"252, 252, 255","color-text-secondary-inverted":"193, 206, 217","color-text-error":"186, 27, 27","color-text-highlight":"0, 98, 159","color-text-link":"0, 98, 159","font-family-default":"'Manrope', sans-serif","font-family-title":"'PlusJakartaSans', 'Manrope', sans-serif","font-size-1":"0.625rem","font-size-2":"0.75rem","font-size-3":"0.875rem","font-size-4":"1rem","font-size-5":"1.25rem","font-size-6":"1.625rem","font-size-7":"2.375rem","font-size-8":"3rem","font-size-9":"3.625rem","font-weight-regular":500,"font-weight-medium":600,"font-weight-bold":700,"line-height-1":"100%","line-height-2":"125%","line-height-3":"130%","line-height-4":"140%","line-height-5":"150%","line-height-6":"180%","global-height-small":"1.75rem","global-height-default":"2.5rem","global-height-large":"3rem","opacity-0":"0%","opacity-20":"20%","opacity-40":"40%","opacity-60":"60%","opacity-100":"100%","elevation-1":"0px 0px 2px rgba(94, 118, 138, 0.1), 0px 1px 6px 2px rgba(61, 74, 85, 0.15)","elevation-2":"0px 1px 3px rgba(94, 118, 138, 0.2), 0px 4px 8px 3px rgba(61, 74, 85, 0.15)","elevation-3":"0px 0px 4px rgba(94, 118, 138, 0.2), 0px 6px 12px 6px rgba(61, 74, 85, 0.15)","elevation-4":"0px 5px 6px 4px rgba(94, 118, 138, 0.2), 0px 8px 10px rgba(61, 74, 85, 0.1)","glow-primary":"0.0px 0.0px 4.0px 0px rgb(3, 124, 94, .5)","glow-warning":"0.0px 0.0px 4.0px 0px rgba(255, 206, 79, 1.0)","spacing-1":"4px","spacing-2":"8px","spacing-3":"12px","spacing-4":"16px","spacing-5":"20px","spacing-6":"24px","spacing-8":"32px","spacing-10":"40px","spacing-12":"48px","spacing-14":"56px","spacing-16":"64px","spacing-20":"80px","spacing-30":"120px","spacing-0-5":"2px","platform-font-default":"'Manrope', sans-serif","platform-font-title":"'PlusJakartaSans', 'Manrope', sans-serif"},Object.defineProperty(vt,"i",{value:!0});var xt=wt;function kt(t){return xt.LoadsmartTheme[t]}function zt(t){var e=kt(t);return null==e?e:"--m-".concat(t)}var St=Object.keys(xt.LoadsmartTheme).filter((function(t){return!t.startsWith("brand-")&&!t.startsWith("platform-")}));function Ct(t){return St.filter((function(e){return e.startsWith(t)}))}var Mt=Ct("color-"),Wt=Ct("color-background-"),jt=Ct("spacing-"),At=Ct("font-family-"),_t=Ct("font-size-"),Bt=Ct("font-weight-"),Et=Ct("line-height-"),Ot=Ct("border-"),Tt=Ct("border-radius-"),Ut=Ct("opacity-"),qt=Ct("elevation-"),Nt=Ct("glow-"),Rt=Ct("global-");function Pt(t){return Z($t(t))}function Dt(t,e=1){return Z($t(t,e))}vt.BACKGROUND_COLOR_TOKENS=Wt,vt.BORDER_RADIUS_TOKENS=Tt,vt.BORDER_TOKENS=Ot,vt.BORDER_WIDTH_TOKENS=["border-none","border-thin","border-medium","border-thick"],vt.COLOR_TOKENS=Mt,vt.ELEVATION_TOKENS=qt,vt.FONT_FAMILY_TOKENS=At,vt.FONT_SIZE_TOKENS=_t,vt.FONT_WEIGHT_TOKENS=Bt,vt.GLOBAL_TOKENS=Rt,vt.GLOW_TOKENS=Nt,vt.LINE_HEIGHT_TOKENS=Et,vt.OPACITY_TOKENS=Ut,vt.SPACING_TOKENS=jt,vt.TOKENS=St,yt=vt.getToken=kt,$t=vt.toCSSValue=function(t,e){var o=kt(t);return null==o?"":t.startsWith("color-")?"rgba(var(".concat(zt(t),", ").concat(o,"), ").concat(null!=e?e:1,")"):"var(".concat(zt(t),", ").concat(o,")")},vt.toCSSVariable=zt;var Gt={toArray:function(t){return null==t?[]:Array.isArray(t)?t:[t]}},Lt=Gt.toArray;function It(t){return Z(`\n\t\tmargin-inline-start: ${t}\n\t`)}function Vt(t){return Z(`\n\t\t${It(t)};\n\t\t${function(t){return Z(`\n\t\tmargin-inline-end: ${t}\n\t`)}(t)}\n\t`)}function Jt(t){return Z(`\n\t\t${function(t){return Z(`\n\t\tmargin-block-start: ${t}\n\t`)}(t)};\n\t\t${function(t){return Z(`\n\t\tmargin-block-end: ${t}\n\t`)}(t)}\n\t`)}function Zt(t){return Z(`\n\t\t${Vt(t)};\n\t\t${Jt(t)}\n\t`)}function Ht(t){return Z(`\n\t\t${function(t){return Z(`\n\t\tpadding-inline-end: ${t}\n\t`)}(t)};\n\t\t${function(t){return Z(`\n\t\tpadding-inline-start: ${t}\n\t`)}(t)}\n\t`)}function Ft(t){return Z(`\n\t\t${function(t){return Z(`\n\t\tpadding-block-start: ${t}\n\t`)}(t)};\n\t\t${function(t){return Z(`\n\t\tpadding-block-end: ${t}\n\t`)}(t)}\n\t`)}function Kt(t){return Z(`\n\t\t${Ht(t)};\n\t\t${Ft(t)}\n\t`)}const Qt={property:"all",delay:"0s",duration:"0.35s",easing:"ease-in-out"};function Xt(t){const e=Lt(t).map((t=>function(t){const e={...Qt,...t};return Z(`${e.property} ${e.duration} ${e.easing} ${e.delay}`)}(t))).join(", ");return Z(`\n\t\ttransition: ${e}\n\t`)}function Yt(t){const e=Z("\n\t\tfont-style: normal;\n\t\tfont-stretch: normal;\n\t\tletter-spacing: normal;\n\n\t\tfont-synthesis: none;\n\t\ttext-rendering: optimizeLegibility;\n\t\t-webkit-font-smoothing: antialiased;\n\t\t-moz-osx-font-smoothing: grayscale;\n\t\t-webkit-text-size-adjust: 100%;\n\t");return Z(`${e}\n${function(t){switch(t){case"hero-lg-bold":return`\n\t\t\t\tfont-family: ${Pt("font-family-title")};\n\t\t\t\tline-height: ${Pt("line-height-6")};\n\t\t\t\tfont-size: ${Pt("font-size-9")};\n\t\t\t\tfont-weight: ${Pt("font-weight-bold")}\n\t\t\t`;case"hero-lg":return`\n\t\t\t\tfont-family: ${Pt("font-family-title")};\n\t\t\t\tline-height: ${Pt("line-height-6")};\n\t\t\t\tfont-size: ${Pt("font-size-9")};\n\t\t\t\tfont-weight: ${Pt("font-weight-regular")}\n\t\t\t`;case"hero-md-bold":return`\n\t\t\t\tfont-family: ${Pt("font-family-title")};\n\t\t\t\tline-height: ${Pt("line-height-6")};\n\t\t\t\tfont-size: ${Pt("font-size-8")};\n\t\t\t\tfont-weight: ${Pt("font-weight-bold")}\n\t\t\t`;case"hero-md":return`\n\t\t\t\tfont-family: ${Pt("font-family-title")};\n\t\t\t\tline-height: ${Pt("line-height-6")};\n\t\t\t\tfont-size: ${Pt("font-size-8")};\n\t\t\t\tfont-weight: ${Pt("font-weight-regular")}\n\t\t\t`;case"hero-sm-bold":return`\n\t\t\t\tfont-family: ${Pt("font-family-title")};\n\t\t\t\tline-height: ${Pt("line-height-6")};\n\t\t\t\tfont-size: ${Pt("font-size-7")};\n\t\t\t\tfont-weight: ${Pt("font-weight-bold")}\n\t\t\t`;case"hero-sm":return`\n\t\t\t\tfont-family: ${Pt("font-family-title")};\n\t\t\t\tline-height: ${Pt("line-height-6")};\n\t\t\t\tfont-size: ${Pt("font-size-7")};\n\t\t\t\tfont-weight: ${Pt("font-weight-regular")}\n\t\t\t`;case"heading-lg-bold":return`\n\t\t\t\t\tfont-family: ${Pt("font-family-title")};\n\t\t\t\t\tline-height: ${Pt("line-height-5")};\n\t\t\t\t\tfont-size: ${Pt("font-size-6")};\n\t\t\t\t\tfont-weight: ${Pt("font-weight-bold")}\n\t\t\t\t`;case"heading-lg":return`\n\t\t\t\tfont-family: ${Pt("font-family-title")};\n\t\t\t\tline-height: ${Pt("line-height-5")};\n\t\t\t\tfont-size: ${Pt("font-size-6")};\n\t\t\t\tfont-weight: ${Pt("font-weight-regular")}\n\t\t\t`;case"heading-md-bold":return`\n\t\t\t\tfont-family: ${Pt("font-family-title")};\n\t\t\t\tline-height: ${Pt("line-height-5")};\n\t\t\t\tfont-size: ${Pt("font-size-5")};\n\t\t\t\tfont-weight: ${Pt("font-weight-bold")}\n\t\t\t`;case"heading-md":return`\n\t\t\t\tfont-family: ${Pt("font-family-title")};\n\t\t\t\tline-height: ${Pt("line-height-5")};\n\t\t\t\tfont-size: ${Pt("font-size-5")};\n\t\t\t\tfont-weight: ${Pt("font-weight-regular")}\n\t\t\t`;case"heading-sm-bold":return`\n\t\t\t\tfont-family: ${Pt("font-family-title")};\n\t\t\t\tline-height: ${Pt("line-height-5")};\n\t\t\t\tfont-size: ${Pt("font-size-4")};\n\t\t\t\tfont-weight: ${Pt("font-weight-bold")}\n\t\t\t`;case"heading-sm":return`\n\t\t\t\tfont-family: ${Pt("font-family-title")};\n\t\t\t\tline-height: ${Pt("line-height-5")};\n\t\t\t\tfont-size: ${Pt("font-size-4")};\n\t\t\t\tfont-weight: ${Pt("font-weight-regular")}\n\t\t\t`;case"body-lg-bold":return`\n\t\t\t\t\tfont-family: ${Pt("font-family-default")};\n\t\t\t\t\tline-height: ${Pt("line-height-6")};\n\t\t\t\t\tfont-size: ${Pt("font-size-5")};\n\t\t\t\t\tfont-weight: ${Pt("font-weight-bold")}\n\t\t\t\t`;case"body-lg":return`\n\t\t\t\t\tfont-family: ${Pt("font-family-default")};\n\t\t\t\t\tline-height: ${Pt("line-height-6")};\n\t\t\t\t\tfont-size: ${Pt("font-size-5")};\n\t\t\t\t\tfont-weight: ${Pt("font-weight-regular")}\n\t\t\t\t`;case"body-md":case"number-md":return`\n\t\t\t\tfont-family: ${Pt("font-family-default")};\n\t\t\t\tline-height: ${Pt("line-height-5")};\n\t\t\t\tfont-size: ${Pt("font-size-3")};\n\t\t\t\tfont-weight: ${Pt("font-weight-regular")}\n\t\t\t`;case"body-md-underline":return`\n\t\t\t\tfont-family: ${Pt("font-family-default")};\n\t\t\t\tline-height: ${Pt("line-height-5")};\n\t\t\t\tfont-size: ${Pt("font-size-3")};\n\t\t\t\tfont-weight: ${Pt("font-weight-regular")};\n\t\t\t\ttext-decoration: underline\n\t\t\t`;case"body-md-bold":return`\n\t\t\t\tfont-family: ${Pt("font-family-default")};\n\t\t\t\tline-height: ${Pt("line-height-5")};\n\t\t\t\tfont-size: ${Pt("font-size-3")};\n\t\t\t\tfont-weight: ${Pt("font-weight-bold")}\n\t\t\t`;case"body-md-bold-underline":return`\n\t\t\t\tfont-family: ${Pt("font-family-default")};\n\t\t\t\tline-height: ${Pt("line-height-5")};\n\t\t\t\tfont-size: ${Pt("font-size-3")};\n\t\t\t\tfont-weight: ${Pt("font-weight-bold")};\n\t\t\t\ttext-decoration: underline\n\t\t\t`;case"body-sm":case"number-sm":return`\n\t\t\t\tfont-family: ${Pt("font-family-default")};\n\t\t\t\tline-height: ${Pt("line-height-4")};\n\t\t\t\tfont-size: ${Pt("font-size-2")};\n\t\t\t\tfont-weight: ${Pt("font-weight-regular")}\n\t\t\t`;case"body-sm-underline":return`\n\t\t\t\tfont-family: ${Pt("font-family-default")};\n\t\t\t\tline-height: ${Pt("line-height-4")};\n\t\t\t\tfont-size: ${Pt("font-size-2")};\n\t\t\t\tfont-weight: ${Pt("font-weight-regular")};\n\t\t\t\ttext-decoration: underline\n\t\t\t`;case"body-sm-bold":return`\n\t\t\t\tfont-family: ${Pt("font-family-default")};\n\t\t\t\tline-height: ${Pt("line-height-4")};\n\t\t\t\tfont-size: ${Pt("font-size-2")};\n\t\t\t\tfont-weight: ${Pt("font-weight-bold")}\n\t\t\t`;case"body-sm-bold-underline":return`\n\t\t\t\tfont-family: ${Pt("font-family-default")};\n\t\t\t\tline-height: ${Pt("line-height-4")};\n\t\t\t\tfont-size: ${Pt("font-size-2")};\n\t\t\t\tfont-weight: ${Pt("font-weight-bold")};\n\t\t\t\ttext-decoration: underline\n\t\t\t`;case"button-lg":return`\n\t\t\t\tfont-family: ${Pt("font-family-default")};\n\t\t\t\tline-height: ${Pt("line-height-1")};\n\t\t\t\tfont-size: ${Pt("font-size-4")};\n\t\t\t\tfont-weight: ${Pt("font-weight-bold")}\n\t\t\t`;case"button-md":return`\n\t\t\t\tfont-family: ${Pt("font-family-default")};\n\t\t\t\tline-height: ${Pt("line-height-1")};\n\t\t\t\tfont-size: ${Pt("font-size-3")};\n\t\t\t\tfont-weight: ${Pt("font-weight-bold")}\n\t\t\t`;case"button-sm":return`\n\t\t\t\tfont-family: ${Pt("font-family-default")};\n\t\t\t\tline-height: ${Pt("line-height-1")};\n\t\t\t\tfont-size: ${Pt("font-size-2")};\n\t\t\t\tfont-weight: ${Pt("font-weight-bold")}\n\t\t\t`;case"table-header-md":return`\n\t\t\t\tfont-family: ${Pt("font-family-default")};\n\t\t\t\tline-height: ${Pt("line-height-1")};\n\t\t\t\tfont-size: ${Pt("font-size-3")};\n\t\t\t\tfont-weight: ${Pt("font-weight-medium")};\n\t\t\t\ttext-transform: uppercase\n\t\t\t`;case"table-header-sm":return`\n\t\t\t\tfont-family: ${Pt("font-family-default")};\n\t\t\t\tline-height: ${Pt("line-height-1")};\n\t\t\t\tfont-size: ${Pt("font-size-2")};\n\t\t\t\tfont-weight: ${Pt("font-weight-medium")}\n\t\t\t`;case"chips-md":return`\n\t\t\t\t\tfont-family: ${Pt("font-family-default")};\n\t\t\t\t\tline-height: ${Pt("line-height-1")};\n\t\t\t\t\tfont-size: ${Pt("font-size-2")};\n\t\t\t\t\tfont-weight: ${Pt("font-weight-bold")}\n\t\t\t\t`;case"chips-sm":return`\n\t\t\t\tfont-family: ${Pt("font-family-default")};\n\t\t\t\tline-height: ${Pt("line-height-1")};\n\t\t\t\tfont-size: ${Pt("font-size-1")};\n\t\t\t\tfont-weight: ${Pt("font-weight-medium")};\n\t\t\t\ttext-transform: uppercase\n\t\t\t`;default:return""}}(t)}`)}function te(t,e=""){return Z(Lt(t).map((t=>[`${t}.is-disabled`,`${t}:disabled`].map((t=>[t,e].join(" "))).join(", "))).join(", "))}const ee={active:function(t){return Z(Lt(t).map((t=>`${t}:not(.is-disabled, :disabled):active`)).join(", "))},focus:function(t){return Z(Lt(t).map((t=>`${t}:not(.is-disabled, :disabled):focus,\n\t\t\t\t${t}:not(.is-disabled, :disabled):focus-within,\n\t\t\t\t${t}:not(.is-disabled, :disabled).is-focused`)).join(", "))},hover:function(t){return Z(Lt(t).map((t=>`${t}:not(.is-disabled, :disabled):hover`)).join(", "))}};function oe(){return H`
38
+ */const bt=ht(class extends ut{constructor(t){var e;if(super(t),t.type!==dt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var o,i;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(o=this.st)||void 0===o?void 0:o.has(t))&&this.nt.add(t);return this.render(e)}const r=t.element.classList;this.nt.forEach((t=>{t in e||(r.remove(t),this.nt.delete(t))}));for(const t in e){const o=!!e[t];o===this.nt.has(t)||(null===(i=this.st)||void 0===i?void 0:i.has(t))||(o?(r.add(t),this.nt.add(t)):(r.remove(t),this.nt.delete(t)))}return w}}),gt=(t,e=["article","div","span"],o="div")=>class extends t{static get properties(){return{as:{type:String}}}connectedCallback(){var t;super.connectedCallback(),this.as=null!==(t=e.includes(this.as)?this.as:o)&&void 0!==t?t:"div"}get tag(){return R`${(t=>({_$litStatic$:t,r:q}))(this.as)}`}};var pt,mt;class ft extends lt{constructor(){super(...arguments),pt.set(this,void 0),mt.set(this,(()=>{if(this.hasAttribute("form")){const t=this.getRootNode(),o=this.getAttribute("form");e(this,pt,t.getElementById(o),"f")}else e(this,pt,this.closest("form"),"f")}))}static get properties(){return{assignedForm:{type:String,attribute:"form"}}}get form(){return t(this,pt,"f")}updated(e){super.updated(e),(e.has("form")||null==t(this,pt,"f"))&&t(this,mt,"f").call(this)}}pt=new WeakMap,mt=new WeakMap;var $t,yt,vt={},wt={};wt.LoadsmartTheme={"brand-color-brand":"20, 214, 77","brand-color-brand-accent-1":"0, 215, 215","brand-color-brand-accent-2":"132, 241, 30","border-radius-none":"0px","border-radius-s":"4px","border-radius-m":"8px","border-radius-l":"16px","border-radius-circle":"50%","border-none":0,"border-thin":"1px","border-medium":"2px","border-thick":"4px","color-background-primary":"252, 252, 255","color-background-secondary":"248, 249, 251","color-background-tertiary":"230, 237, 242","color-background-highlight":"202, 219, 221","color-background-inverted":"32, 41, 49","color-background-secondary-inverted":"61, 74, 85","color-border":"193, 206, 217","color-divider":"230, 237, 242","color-brand":"20, 214, 77","color-brand-accent-1":"0, 215, 215","color-brand-accent-2":"132, 241, 30","color-primary-20":"202, 219, 221","color-primary-60":"0, 84, 84","color-primary-100":"0, 51, 51","color-accent-20":"229, 245, 255","color-accent-60":"0, 98, 159","color-accent-100":"15, 66, 97","color-neutral-0":"252, 252, 255","color-neutral-10":"248, 249, 251","color-neutral-20":"230, 237, 242","color-neutral-40":"193, 206, 217","color-neutral-60":"94, 118, 138","color-neutral-80":"92, 106, 118","color-neutral-90":"61, 74, 85","color-neutral-100":"32, 41, 49","color-success-20":"227, 247, 239","color-success-60":"3, 124, 94","color-success-100":"0, 94, 71","color-danger-20":"255, 233, 230","color-danger-60":"186, 27, 27","color-danger-100":"104, 0, 3","color-warning-20":"255, 243, 214","color-warning-60":"248, 182, 14","color-warning-100":"102, 63, 25","color-text-primary":"32, 41, 49","color-text-secondary":"61, 74, 85","color-text-tertiary":"92, 106, 118","color-text-placeholder":"94, 118, 138","color-text-disabled":"193, 206, 217","color-text-inverted":"252, 252, 255","color-text-secondary-inverted":"193, 206, 217","color-text-error":"186, 27, 27","color-text-highlight":"0, 98, 159","color-text-link":"0, 98, 159","font-family-default":"'Manrope', sans-serif","font-family-title":"'PlusJakartaSans', 'Manrope', sans-serif","font-size-1":"0.625rem","font-size-2":"0.75rem","font-size-3":"0.875rem","font-size-4":"1rem","font-size-5":"1.25rem","font-size-6":"1.625rem","font-size-7":"2.375rem","font-size-8":"3rem","font-size-9":"3.625rem","font-weight-regular":500,"font-weight-medium":600,"font-weight-bold":700,"line-height-1":"100%","line-height-2":"125%","line-height-3":"130%","line-height-4":"140%","line-height-5":"150%","line-height-6":"180%","global-height-small":"1.75rem","global-height-default":"2.5rem","global-height-large":"3rem","opacity-0":"0%","opacity-20":"20%","opacity-40":"40%","opacity-60":"60%","opacity-100":"100%","elevation-1":"0px 0px 2px rgba(94, 118, 138, 0.1), 0px 1px 6px 2px rgba(61, 74, 85, 0.15)","elevation-2":"0px 1px 3px rgba(94, 118, 138, 0.2), 0px 4px 8px 3px rgba(61, 74, 85, 0.15)","elevation-3":"0px 0px 4px rgba(94, 118, 138, 0.2), 0px 6px 12px 6px rgba(61, 74, 85, 0.15)","elevation-4":"0px 5px 6px 4px rgba(94, 118, 138, 0.2), 0px 8px 10px rgba(61, 74, 85, 0.1)","glow-primary":"0.0px 0.0px 4.0px 0px rgb(3, 124, 94, .5)","glow-warning":"0.0px 0.0px 4.0px 0px rgba(255, 206, 79, 1.0)","spacing-1":"4px","spacing-2":"8px","spacing-3":"12px","spacing-4":"16px","spacing-5":"20px","spacing-6":"24px","spacing-8":"32px","spacing-10":"40px","spacing-12":"48px","spacing-14":"56px","spacing-16":"64px","spacing-20":"80px","spacing-30":"120px","spacing-0-5":"2px","platform-font-default":"'Manrope', sans-serif","platform-font-title":"'PlusJakartaSans', 'Manrope', sans-serif"},Object.defineProperty(vt,"i",{value:!0});var xt=wt;function kt(t){return xt.LoadsmartTheme[t]}function zt(t){var e=kt(t);return null==e?e:"--m-".concat(t)}var St=Object.keys(xt.LoadsmartTheme).filter((function(t){return!t.startsWith("brand-")&&!t.startsWith("platform-")}));function Ct(t){return St.filter((function(e){return e.startsWith(t)}))}var Mt=Ct("color-"),Wt=Ct("color-background-"),jt=Ct("spacing-"),At=function(t,e,o){if(o||2===arguments.length)for(var i,r=0,n=e.length;r<n;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}(["none"],jt,!0),_t=Ct("font-family-"),Bt=Ct("font-size-"),Et=Ct("font-weight-"),Ot=Ct("line-height-"),Tt=Ct("border-"),Ut=Ct("border-radius-"),qt=Ct("opacity-"),Nt=Ct("elevation-"),Rt=Ct("glow-"),Pt=Ct("global-");function Dt(t){return Z($t(t))}function Gt(t,e=1){return Z($t(t,e))}vt.BACKGROUND_COLOR_TOKENS=Wt,vt.BORDER_RADIUS_TOKENS=Ut,vt.BORDER_TOKENS=Tt,vt.BORDER_WIDTH_TOKENS=["border-none","border-thin","border-medium","border-thick"],vt.COLOR_TOKENS=Mt,vt.ELEVATION_TOKENS=Nt,vt.FONT_FAMILY_TOKENS=_t,vt.FONT_SIZE_TOKENS=Bt,vt.FONT_WEIGHT_TOKENS=Et,vt.GLOBAL_TOKENS=Pt,vt.GLOW_TOKENS=Rt,vt.LINE_HEIGHT_TOKENS=Ot,vt.OPACITY_TOKENS=qt,vt.SPACING_TOKENS=jt,vt.SPACING_TOKENS_WITH_NONE=At,vt.TOKENS=St,yt=vt.getToken=kt,$t=vt.toCSSValue=function(t,e){var o=kt(t);return null==o?"":t.startsWith("color-")?"rgba(var(".concat(zt(t),", ").concat(o,"), ").concat(null!=e?e:1,")"):"var(".concat(zt(t),", ").concat(o,")")},vt.toCSSVariable=zt;var Lt={toArray:function(t){return null==t?[]:Array.isArray(t)?t:[t]}},It=Lt.toArray;function Vt(t){return Z(`\n\t\tmargin-inline-start: ${t}\n\t`)}function Jt(t){return Z(`\n\t\t${Vt(t)};\n\t\t${function(t){return Z(`\n\t\tmargin-inline-end: ${t}\n\t`)}(t)}\n\t`)}function Zt(t){return Z(`\n\t\t${function(t){return Z(`\n\t\tmargin-block-start: ${t}\n\t`)}(t)};\n\t\t${function(t){return Z(`\n\t\tmargin-block-end: ${t}\n\t`)}(t)}\n\t`)}function Ht(t){return Z(`\n\t\t${Jt(t)};\n\t\t${Zt(t)}\n\t`)}function Ft(t){return Z(`\n\t\t${function(t){return Z(`\n\t\tpadding-inline-end: ${t}\n\t`)}(t)};\n\t\t${function(t){return Z(`\n\t\tpadding-inline-start: ${t}\n\t`)}(t)}\n\t`)}function Kt(t){return Z(`\n\t\t${function(t){return Z(`\n\t\tpadding-block-start: ${t}\n\t`)}(t)};\n\t\t${function(t){return Z(`\n\t\tpadding-block-end: ${t}\n\t`)}(t)}\n\t`)}function Qt(t){return Z(`\n\t\t${Ft(t)};\n\t\t${Kt(t)}\n\t`)}const Xt={property:"all",delay:"0s",duration:"0.35s",easing:"ease-in-out"};function Yt(t){const e=It(t).map((t=>function(t){const e={...Xt,...t};return Z(`${e.property} ${e.duration} ${e.easing} ${e.delay}`)}(t))).join(", ");return Z(`\n\t\ttransition: ${e}\n\t`)}function te(t){const e=Z("\n\t\tfont-style: normal;\n\t\tfont-stretch: normal;\n\t\tletter-spacing: normal;\n\n\t\tfont-synthesis: none;\n\t\ttext-rendering: optimizeLegibility;\n\t\t-webkit-font-smoothing: antialiased;\n\t\t-moz-osx-font-smoothing: grayscale;\n\t\t-webkit-text-size-adjust: 100%;\n\t");return Z(`${e}\n${function(t){switch(t){case"hero-lg-bold":return`\n\t\t\t\tfont-family: ${Dt("font-family-title")};\n\t\t\t\tline-height: ${Dt("line-height-6")};\n\t\t\t\tfont-size: ${Dt("font-size-9")};\n\t\t\t\tfont-weight: ${Dt("font-weight-bold")}\n\t\t\t`;case"hero-lg":return`\n\t\t\t\tfont-family: ${Dt("font-family-title")};\n\t\t\t\tline-height: ${Dt("line-height-6")};\n\t\t\t\tfont-size: ${Dt("font-size-9")};\n\t\t\t\tfont-weight: ${Dt("font-weight-regular")}\n\t\t\t`;case"hero-md-bold":return`\n\t\t\t\tfont-family: ${Dt("font-family-title")};\n\t\t\t\tline-height: ${Dt("line-height-6")};\n\t\t\t\tfont-size: ${Dt("font-size-8")};\n\t\t\t\tfont-weight: ${Dt("font-weight-bold")}\n\t\t\t`;case"hero-md":return`\n\t\t\t\tfont-family: ${Dt("font-family-title")};\n\t\t\t\tline-height: ${Dt("line-height-6")};\n\t\t\t\tfont-size: ${Dt("font-size-8")};\n\t\t\t\tfont-weight: ${Dt("font-weight-regular")}\n\t\t\t`;case"hero-sm-bold":return`\n\t\t\t\tfont-family: ${Dt("font-family-title")};\n\t\t\t\tline-height: ${Dt("line-height-6")};\n\t\t\t\tfont-size: ${Dt("font-size-7")};\n\t\t\t\tfont-weight: ${Dt("font-weight-bold")}\n\t\t\t`;case"hero-sm":return`\n\t\t\t\tfont-family: ${Dt("font-family-title")};\n\t\t\t\tline-height: ${Dt("line-height-6")};\n\t\t\t\tfont-size: ${Dt("font-size-7")};\n\t\t\t\tfont-weight: ${Dt("font-weight-regular")}\n\t\t\t`;case"heading-lg-bold":return`\n\t\t\t\t\tfont-family: ${Dt("font-family-title")};\n\t\t\t\t\tline-height: ${Dt("line-height-5")};\n\t\t\t\t\tfont-size: ${Dt("font-size-6")};\n\t\t\t\t\tfont-weight: ${Dt("font-weight-bold")}\n\t\t\t\t`;case"heading-lg":return`\n\t\t\t\tfont-family: ${Dt("font-family-title")};\n\t\t\t\tline-height: ${Dt("line-height-5")};\n\t\t\t\tfont-size: ${Dt("font-size-6")};\n\t\t\t\tfont-weight: ${Dt("font-weight-regular")}\n\t\t\t`;case"heading-md-bold":return`\n\t\t\t\tfont-family: ${Dt("font-family-title")};\n\t\t\t\tline-height: ${Dt("line-height-5")};\n\t\t\t\tfont-size: ${Dt("font-size-5")};\n\t\t\t\tfont-weight: ${Dt("font-weight-bold")}\n\t\t\t`;case"heading-md":return`\n\t\t\t\tfont-family: ${Dt("font-family-title")};\n\t\t\t\tline-height: ${Dt("line-height-5")};\n\t\t\t\tfont-size: ${Dt("font-size-5")};\n\t\t\t\tfont-weight: ${Dt("font-weight-regular")}\n\t\t\t`;case"heading-sm-bold":return`\n\t\t\t\tfont-family: ${Dt("font-family-title")};\n\t\t\t\tline-height: ${Dt("line-height-5")};\n\t\t\t\tfont-size: ${Dt("font-size-4")};\n\t\t\t\tfont-weight: ${Dt("font-weight-bold")}\n\t\t\t`;case"heading-sm":return`\n\t\t\t\tfont-family: ${Dt("font-family-title")};\n\t\t\t\tline-height: ${Dt("line-height-5")};\n\t\t\t\tfont-size: ${Dt("font-size-4")};\n\t\t\t\tfont-weight: ${Dt("font-weight-regular")}\n\t\t\t`;case"body-lg-bold":return`\n\t\t\t\t\tfont-family: ${Dt("font-family-default")};\n\t\t\t\t\tline-height: ${Dt("line-height-6")};\n\t\t\t\t\tfont-size: ${Dt("font-size-5")};\n\t\t\t\t\tfont-weight: ${Dt("font-weight-bold")}\n\t\t\t\t`;case"body-lg":return`\n\t\t\t\t\tfont-family: ${Dt("font-family-default")};\n\t\t\t\t\tline-height: ${Dt("line-height-6")};\n\t\t\t\t\tfont-size: ${Dt("font-size-5")};\n\t\t\t\t\tfont-weight: ${Dt("font-weight-regular")}\n\t\t\t\t`;case"body-md":case"number-md":return`\n\t\t\t\tfont-family: ${Dt("font-family-default")};\n\t\t\t\tline-height: ${Dt("line-height-5")};\n\t\t\t\tfont-size: ${Dt("font-size-3")};\n\t\t\t\tfont-weight: ${Dt("font-weight-regular")}\n\t\t\t`;case"body-md-underline":return`\n\t\t\t\tfont-family: ${Dt("font-family-default")};\n\t\t\t\tline-height: ${Dt("line-height-5")};\n\t\t\t\tfont-size: ${Dt("font-size-3")};\n\t\t\t\tfont-weight: ${Dt("font-weight-regular")};\n\t\t\t\ttext-decoration: underline\n\t\t\t`;case"body-md-bold":return`\n\t\t\t\tfont-family: ${Dt("font-family-default")};\n\t\t\t\tline-height: ${Dt("line-height-5")};\n\t\t\t\tfont-size: ${Dt("font-size-3")};\n\t\t\t\tfont-weight: ${Dt("font-weight-bold")}\n\t\t\t`;case"body-md-bold-underline":return`\n\t\t\t\tfont-family: ${Dt("font-family-default")};\n\t\t\t\tline-height: ${Dt("line-height-5")};\n\t\t\t\tfont-size: ${Dt("font-size-3")};\n\t\t\t\tfont-weight: ${Dt("font-weight-bold")};\n\t\t\t\ttext-decoration: underline\n\t\t\t`;case"body-sm":case"number-sm":return`\n\t\t\t\tfont-family: ${Dt("font-family-default")};\n\t\t\t\tline-height: ${Dt("line-height-4")};\n\t\t\t\tfont-size: ${Dt("font-size-2")};\n\t\t\t\tfont-weight: ${Dt("font-weight-regular")}\n\t\t\t`;case"body-sm-underline":return`\n\t\t\t\tfont-family: ${Dt("font-family-default")};\n\t\t\t\tline-height: ${Dt("line-height-4")};\n\t\t\t\tfont-size: ${Dt("font-size-2")};\n\t\t\t\tfont-weight: ${Dt("font-weight-regular")};\n\t\t\t\ttext-decoration: underline\n\t\t\t`;case"body-sm-bold":return`\n\t\t\t\tfont-family: ${Dt("font-family-default")};\n\t\t\t\tline-height: ${Dt("line-height-4")};\n\t\t\t\tfont-size: ${Dt("font-size-2")};\n\t\t\t\tfont-weight: ${Dt("font-weight-bold")}\n\t\t\t`;case"body-sm-bold-underline":return`\n\t\t\t\tfont-family: ${Dt("font-family-default")};\n\t\t\t\tline-height: ${Dt("line-height-4")};\n\t\t\t\tfont-size: ${Dt("font-size-2")};\n\t\t\t\tfont-weight: ${Dt("font-weight-bold")};\n\t\t\t\ttext-decoration: underline\n\t\t\t`;case"button-lg":return`\n\t\t\t\tfont-family: ${Dt("font-family-default")};\n\t\t\t\tline-height: ${Dt("line-height-1")};\n\t\t\t\tfont-size: ${Dt("font-size-4")};\n\t\t\t\tfont-weight: ${Dt("font-weight-bold")}\n\t\t\t`;case"button-md":return`\n\t\t\t\tfont-family: ${Dt("font-family-default")};\n\t\t\t\tline-height: ${Dt("line-height-1")};\n\t\t\t\tfont-size: ${Dt("font-size-3")};\n\t\t\t\tfont-weight: ${Dt("font-weight-bold")}\n\t\t\t`;case"button-sm":return`\n\t\t\t\tfont-family: ${Dt("font-family-default")};\n\t\t\t\tline-height: ${Dt("line-height-1")};\n\t\t\t\tfont-size: ${Dt("font-size-2")};\n\t\t\t\tfont-weight: ${Dt("font-weight-bold")}\n\t\t\t`;case"table-header-md":return`\n\t\t\t\tfont-family: ${Dt("font-family-default")};\n\t\t\t\tline-height: ${Dt("line-height-1")};\n\t\t\t\tfont-size: ${Dt("font-size-3")};\n\t\t\t\tfont-weight: ${Dt("font-weight-medium")};\n\t\t\t\ttext-transform: uppercase\n\t\t\t`;case"table-header-sm":return`\n\t\t\t\tfont-family: ${Dt("font-family-default")};\n\t\t\t\tline-height: ${Dt("line-height-1")};\n\t\t\t\tfont-size: ${Dt("font-size-2")};\n\t\t\t\tfont-weight: ${Dt("font-weight-medium")}\n\t\t\t`;case"chips-md":return`\n\t\t\t\t\tfont-family: ${Dt("font-family-default")};\n\t\t\t\t\tline-height: ${Dt("line-height-1")};\n\t\t\t\t\tfont-size: ${Dt("font-size-2")};\n\t\t\t\t\tfont-weight: ${Dt("font-weight-bold")}\n\t\t\t\t`;case"chips-sm":return`\n\t\t\t\tfont-family: ${Dt("font-family-default")};\n\t\t\t\tline-height: ${Dt("line-height-1")};\n\t\t\t\tfont-size: ${Dt("font-size-1")};\n\t\t\t\tfont-weight: ${Dt("font-weight-medium")};\n\t\t\t\ttext-transform: uppercase\n\t\t\t`;default:return""}}(t)}`)}function ee(t,e=""){return Z(It(t).map((t=>[`${t}.is-disabled`,`${t}:disabled`].map((t=>[t,e].join(" "))).join(", "))).join(", "))}const oe={active:function(t){return Z(It(t).map((t=>`${t}:not(.is-disabled, :disabled):active`)).join(", "))},focus:function(t){return Z(It(t).map((t=>`${t}:not(.is-disabled, :disabled):focus,\n\t\t\t\t${t}:not(.is-disabled, :disabled):focus-within,\n\t\t\t\t${t}:not(.is-disabled, :disabled).is-focused`)).join(", "))},hover:function(t){return Z(It(t).map((t=>`${t}:not(.is-disabled, :disabled):hover`)).join(", "))}};function ie(){return H`
39
39
  :host {
40
40
  --m-button-background-color: transparent;
41
- --m-button-base-size: ${Pt("global-height-default")};
42
- --m-button-border-color: ${Dt("color-neutral-90")};
43
- --m-button-border-radius: ${Pt("border-radius-s")};
44
- --m-button-color: ${Dt("color-text-secondary")};
45
- --m-button-outline-color: ${Dt("color-primary-100")};
41
+ --m-button-base-size: ${Dt("global-height-default")};
42
+ --m-button-border-color: ${Gt("color-neutral-90")};
43
+ --m-button-border-radius: ${Dt("border-radius-s")};
44
+ --m-button-color: ${Gt("color-text-secondary")};
45
+ --m-button-outline-color: ${Gt("color-primary-100")};
46
46
  --m-button-outline-offset: 2px;
47
- --m-button-padding-x: ${Pt("spacing-4")};
48
- --m-button-padding-y: ${Pt("spacing-3")};
47
+ --m-button-padding-x: ${Dt("spacing-4")};
48
+ --m-button-padding-y: ${Dt("spacing-3")};
49
49
  /**
50
50
  * Useful when overriding via host :slotted query.
51
51
  */
52
- --m-button-font-size: ${Pt("font-size-3")};
52
+ --m-button-font-size: ${Dt("font-size-3")};
53
53
  }
54
54
 
55
55
  .button {
56
- ${Xt([{property:"color"},{property:"background-color"},{property:"border-color"}])};
56
+ ${Yt([{property:"color"},{property:"background-color"},{property:"border-color"}])};
57
57
 
58
- ${Yt("button-md")};
58
+ ${te("button-md")};
59
59
  font-size: var(--m-button-font-size);
60
60
 
61
61
  cursor: pointer;
@@ -71,7 +71,7 @@ const ct=t=>null!=t?t:x
71
71
 
72
72
  text-decoration: none;
73
73
 
74
- gap: ${Pt("spacing-1")};
74
+ gap: ${Dt("spacing-1")};
75
75
 
76
76
  padding-inline: var(--m-button-padding-x);
77
77
  padding-block: var(--m-button-padding-y);
@@ -83,45 +83,45 @@ const ct=t=>null!=t?t:x
83
83
  border-radius: var(--m-button-border-radius);
84
84
  }
85
85
 
86
- ${te(".button")} {
86
+ ${ee(".button")} {
87
87
  cursor: default;
88
88
  }
89
89
 
90
- ${te(".button","*")} {
90
+ ${ee(".button","*")} {
91
91
  pointer-events: none;
92
92
  }
93
93
 
94
- ${ee.focus(".button")} {
94
+ ${oe.focus(".button")} {
95
95
  outline: 1px solid var(--m-button-outline-color);
96
96
  outline-offset: var(--m-button-outline-offset);
97
97
  }
98
98
 
99
- ${ee.hover(".button")} {
100
- --m-button-background-color: ${Dt("color-background-inverted")};
101
- --m-button-border-color: ${Dt("color-background-inverted")};
102
- --m-button-color: ${Dt("color-text-inverted")};
99
+ ${oe.hover(".button")} {
100
+ --m-button-background-color: ${Gt("color-background-inverted")};
101
+ --m-button-border-color: ${Gt("color-background-inverted")};
102
+ --m-button-color: ${Gt("color-text-inverted")};
103
103
  }
104
104
 
105
105
  ::slotted(*) {
106
106
  display: inline-flex;
107
107
  align-items: center;
108
108
 
109
- ${Kt(0)};
110
- ${Zt(0)};
109
+ ${Qt(0)};
110
+ ${Ht(0)};
111
111
  }
112
112
 
113
113
  slot[name='leading']::slotted(span),
114
114
  slot[name='trailing']::slotted(span) {
115
115
  justify-content: center;
116
116
  }
117
- `}var ie,re,ne,se,le,ae;class ce extends(gt(ft,["button","a"],"button")){static get properties(){return{...ft.properties,role:{type:String,reflect:!0},loading:{type:Boolean},disabled:{type:Boolean,reflect:!0},variant:{type:String},size:{type:String},tabindex:{type:String},type:{type:String},href:{type:String},target:{type:String},download:{type:String}}}constructor(){super(),ie.add(this),re.set(this,(()=>Boolean(this.disabled)||Boolean(this.loading))),ne.set(this,(()=>{const e=t(this,re,"f").call(this);this.setAttribute("aria-disabled",String(e))})),se.set(this,(()=>{var e;return t(this,ie,"m",ae).call(this)?this.disabled?"-1":null!=this.tabindex?this.tabindex:"0":null!==(e=this.tabindex)&&void 0!==e?e:void 0})),le.set(this,(t=>{var e,o;if(this.disabled||this.loading)return t.preventDefault(),void t.stopPropagation();"submit"===this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit()),"reset"===this.type&&(null===(o=this.form)||void 0===o||o.reset())})),this.as="button",this.disabled=!1,this.loading=!1,this.size="default",this.type="button",this.variant="secondary",this.target="_self"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","button"),this.addEventListener("click",t(this,le,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",t(this,le,"f"))}update(e){super.update(e),e.has("href")&&(this.as=t(this,ie,"m",ae).call(this)?"a":"button",this.role=t(this,ie,"m",ae).call(this)?"link":"button")}updated(e){super.updated(e),(e.has("disabled")||e.has("loading"))&&t(this,ne,"f").call(this)}render(){const e=t(this,ie,"m",ae).call(this);return D`
117
+ `}var re,ne,se,le,ae,ce,de;class he extends(gt(ft,["button","a"],"button")){static get properties(){return{...ft.properties,role:{type:String,reflect:!0},loading:{type:Boolean},disabled:{type:Boolean,reflect:!0},variant:{type:String},size:{type:String},tabindex:{type:String},type:{type:String},href:{type:String},target:{type:String},download:{type:String}}}constructor(){super(),re.add(this),se.set(this,(()=>Boolean(this.disabled)||Boolean(this.loading))),le.set(this,(()=>{const e=t(this,se,"f").call(this);this.setAttribute("aria-disabled",String(e))})),ae.set(this,(()=>{var e;return t(this,re,"m",de).call(this)?this.disabled?"-1":null!=this.tabindex?this.tabindex:"0":null!==(e=this.tabindex)&&void 0!==e?e:void 0})),ce.set(this,(t=>{var e,o;if(this.disabled||this.loading)return t.preventDefault(),void t.stopPropagation();"submit"===this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit()),"reset"===this.type&&(null===(o=this.form)||void 0===o||o.reset())})),this.as="button",this.disabled=!1,this.loading=!1,this.size="default",this.type="button",this.variant="secondary",this.target="_self"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","button"),this.addEventListener("click",t(this,ce,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",t(this,ce,"f"))}update(e){super.update(e),e.has("href")&&(this.as=t(this,re,"m",de).call(this)?"a":"button",this.role=t(this,re,"m",de).call(this)?"link":"button")}updated(e){super.updated(e),(e.has("disabled")||e.has("loading"))&&t(this,le,"f").call(this)}render(){const e=t(this,re,"m",de).call(this);return D`
118
118
  <${this.tag}
119
- class=${bt({button:!0,"-primary":"primary"===this.variant,"-secondary":"secondary"===this.variant,"-tertiary":"tertiary"===this.variant,"-warning":"warning"===this.variant,"-danger":"danger"===this.variant,"-icon":"icon"===this.variant,"-icon-secondary":"icon-secondary"===this.variant,"-small":"small"===this.size,"-default":"default"===this.size,"-large":"large"===this.size,"is-loading":Boolean(this.loading),"is-disabled":t(this,re,"f").call(this)})}
119
+ class=${bt({button:!0,"-primary":"primary"===this.variant,"-secondary":"secondary"===this.variant,"-tertiary":"tertiary"===this.variant,"-warning":"warning"===this.variant,"-danger":"danger"===this.variant,"-icon":"icon"===this.variant,"-icon-secondary":"icon-secondary"===this.variant,"-small":"small"===this.size,"-default":"default"===this.size,"-large":"large"===this.size,"is-loading":Boolean(this.loading),"is-disabled":t(this,se,"f").call(this)})}
120
120
  type=${ct(e?void 0:this.type)}
121
- ?disabled="${t(this,re,"f").call(this)}"
121
+ ?disabled="${t(this,se,"f").call(this)}"
122
122
  aria-disabled=${this.disabled?"true":"false"}
123
123
  role=${ct(e?"link":"button")}
124
- tabindex=${ct(t(this,se,"f").call(this))}
124
+ tabindex=${ct(t(this,ae,"f").call(this))}
125
125
  href=${ct(e?this.href:void 0)}
126
126
  target=${ct(e?this.target:void 0)}
127
127
  download=${ct(e?this.download:void 0)}
@@ -133,168 +133,168 @@ const ct=t=>null!=t?t:x
133
133
  <slot></slot>
134
134
  <slot name="trailing"></slot>
135
135
  </${this.tag}>
136
- `}}re=new WeakMap,ne=new WeakMap,se=new WeakMap,le=new WeakMap,ie=new WeakSet,ae=function(){return Boolean(this.href)},ce.styles=[[oe(),H`
136
+ `}focus(e){var o;null===(o=t(this,re,"a",ne))||void 0===o||o.focus(e)}}se=new WeakMap,le=new WeakMap,ae=new WeakMap,ce=new WeakMap,re=new WeakSet,ne=function(){var t,e;return null!==(e=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(".button"))&&void 0!==e?e:null},de=function(){return Boolean(this.href)},he.styles=[[ie(),H`
137
137
  .button.is-loading:not(.-icon, .-icon-secondary) *:not(.loader) {
138
138
  visibility: hidden;
139
139
  }
140
140
 
141
141
  .button.-primary {
142
- --m-button-background-color: ${Dt("color-primary-60")};
143
- --m-button-border-color: ${Dt("color-primary-60")};
144
- --m-button-color: ${Dt("color-text-inverted")};
142
+ --m-button-background-color: ${Gt("color-primary-60")};
143
+ --m-button-border-color: ${Gt("color-primary-60")};
144
+ --m-button-color: ${Gt("color-text-inverted")};
145
145
  }
146
146
 
147
- ${te(".button.-primary")} {
148
- --m-button-background-color: ${Dt("color-primary-20")};
149
- --m-button-border-color: ${Dt("color-primary-20")};
147
+ ${ee(".button.-primary")} {
148
+ --m-button-background-color: ${Gt("color-primary-20")};
149
+ --m-button-border-color: ${Gt("color-primary-20")};
150
150
  }
151
151
 
152
- ${ee.focus(".button.-primary")} {
153
- --m-button-border-color: ${Dt("color-primary-60")};
154
- --m-button-outline-color: ${Dt("color-primary-60")};
152
+ ${oe.focus(".button.-primary")} {
153
+ --m-button-border-color: ${Gt("color-primary-60")};
154
+ --m-button-outline-color: ${Gt("color-primary-60")};
155
155
  }
156
156
 
157
- ${ee.hover(".button.-primary")},
158
- ${ee.active(".button.-primary")} {
159
- --m-button-background-color: ${Dt("color-primary-100")};
160
- --m-button-border-color: ${Dt("color-primary-100")};
157
+ ${oe.hover(".button.-primary")},
158
+ ${oe.active(".button.-primary")} {
159
+ --m-button-background-color: ${Gt("color-primary-100")};
160
+ --m-button-border-color: ${Gt("color-primary-100")};
161
161
  }
162
162
 
163
163
  .button.-primary.is-loading {
164
- --m-button-background-color: ${Dt("color-primary-60")};
165
- --m-button-border-color: ${Dt("color-primary-60")};
166
- --m-button-color: ${Dt("color-text-inverted")};
164
+ --m-button-background-color: ${Gt("color-primary-60")};
165
+ --m-button-border-color: ${Gt("color-primary-60")};
166
+ --m-button-color: ${Gt("color-text-inverted")};
167
167
  }
168
168
 
169
169
  .button.-secondary {
170
170
  --m-button-background-color: transparent;
171
- --m-button-border-color: ${Dt("color-primary-100")};
172
- --m-button-color: ${Dt("color-primary-100")};
171
+ --m-button-border-color: ${Gt("color-primary-100")};
172
+ --m-button-color: ${Gt("color-primary-100")};
173
173
  }
174
174
 
175
- ${te(".button.-secondary")} {
176
- --m-button-border-color: ${Dt("color-text-disabled")};
177
- --m-button-color: ${Dt("color-text-disabled")};
175
+ ${ee(".button.-secondary")} {
176
+ --m-button-border-color: ${Gt("color-text-disabled")};
177
+ --m-button-color: ${Gt("color-text-disabled")};
178
178
  }
179
179
 
180
- ${ee.focus(".button.-secondary")} {
181
- --m-button-border-color: ${Dt("color-primary-100")};
182
- --m-button-color: ${Dt("color-primary-100")};
180
+ ${oe.focus(".button.-secondary")} {
181
+ --m-button-border-color: ${Gt("color-primary-100")};
182
+ --m-button-color: ${Gt("color-primary-100")};
183
183
 
184
- --m-button-outline-color: ${Dt("color-primary-60")};
184
+ --m-button-outline-color: ${Gt("color-primary-60")};
185
185
  }
186
186
 
187
- ${ee.hover(".button.-secondary")},
188
- ${ee.active(".button.-secondary")} {
189
- --m-button-background-color: ${Dt("color-background-tertiary")};
190
- --m-button-border-color: ${Dt("color-primary-60")};
191
- --m-button-color: ${Dt("color-primary-60")};
187
+ ${oe.hover(".button.-secondary")},
188
+ ${oe.active(".button.-secondary")} {
189
+ --m-button-background-color: ${Gt("color-background-tertiary")};
190
+ --m-button-border-color: ${Gt("color-primary-60")};
191
+ --m-button-color: ${Gt("color-primary-60")};
192
192
  }
193
193
 
194
194
  .button.-secondary.is-loading {
195
195
  --m-button-background-color: transparent;
196
196
 
197
- --m-button-border-color: ${Dt("color-primary-100")};
198
- --m-button-color: ${Dt("color-primary-100")};
197
+ --m-button-border-color: ${Gt("color-primary-100")};
198
+ --m-button-color: ${Gt("color-primary-100")};
199
199
  }
200
200
 
201
201
  .button.-tertiary {
202
202
  --m-button-background-color: transparent;
203
203
  --m-button-border-color: transparent;
204
- --m-button-color: ${Dt("color-primary-100")};
204
+ --m-button-color: ${Gt("color-primary-100")};
205
205
  }
206
206
 
207
- ${te(".button.-tertiary")} {
208
- --m-button-color: ${Dt("color-text-disabled")};
207
+ ${ee(".button.-tertiary")} {
208
+ --m-button-color: ${Gt("color-text-disabled")};
209
209
  }
210
210
 
211
- ${ee.focus(".button.-tertiary")} {
212
- --m-button-color: ${Dt("color-primary-100")};
213
- --m-button-outline-color: ${Dt("color-primary-60")};
211
+ ${oe.focus(".button.-tertiary")} {
212
+ --m-button-color: ${Gt("color-primary-100")};
213
+ --m-button-outline-color: ${Gt("color-primary-60")};
214
214
  }
215
215
 
216
- ${ee.hover(".button.-tertiary")} {
217
- --m-button-background-color: ${Dt("color-background-tertiary")};
218
- --m-button-border-color: ${Dt("color-background-tertiary")};
219
- --m-button-color: ${Dt("color-primary-60")};
216
+ ${oe.hover(".button.-tertiary")} {
217
+ --m-button-background-color: ${Gt("color-background-tertiary")};
218
+ --m-button-border-color: ${Gt("color-background-tertiary")};
219
+ --m-button-color: ${Gt("color-primary-60")};
220
220
  }
221
221
 
222
- ${ee.active(".button.-tertiary")} {
223
- --m-button-background-color: ${Dt("color-neutral-20")};
224
- --m-button-border-color: ${Dt("color-neutral-20")};
225
- --m-button-color: ${Dt("color-primary-60")};
222
+ ${oe.active(".button.-tertiary")} {
223
+ --m-button-background-color: ${Gt("color-neutral-20")};
224
+ --m-button-border-color: ${Gt("color-neutral-20")};
225
+ --m-button-color: ${Gt("color-primary-60")};
226
226
  }
227
227
 
228
228
  .button.-tertiary.is-loading {
229
229
  --m-button-background-color: transparent;
230
230
  --m-button-border-color: transparent;
231
- --m-button-color: ${Dt("color-primary-100")};
231
+ --m-button-color: ${Gt("color-primary-100")};
232
232
  }
233
233
 
234
234
  .button.-warning {
235
- --m-button-background-color: ${Dt("color-warning-60")};
236
- --m-button-border-color: ${Dt("color-warning-60")};
237
- --m-button-color: ${Dt("color-text-primary")};
235
+ --m-button-background-color: ${Gt("color-warning-60")};
236
+ --m-button-border-color: ${Gt("color-warning-60")};
237
+ --m-button-color: ${Gt("color-text-primary")};
238
238
  }
239
239
 
240
- ${te(".button.-warning")} {
241
- --m-button-background-color: ${Dt("color-warning-20")};
242
- --m-button-border-color: ${Dt("color-warning-20")};
243
- --m-button-color: ${Dt("color-text-inverted")};
240
+ ${ee(".button.-warning")} {
241
+ --m-button-background-color: ${Gt("color-warning-20")};
242
+ --m-button-border-color: ${Gt("color-warning-20")};
243
+ --m-button-color: ${Gt("color-text-inverted")};
244
244
  }
245
245
 
246
- ${ee.focus(".button.-warning")} {
247
- --m-button-background-color: ${Dt("color-warning-60")};
248
- --m-button-outline-color: ${Dt("color-warning-60")};
246
+ ${oe.focus(".button.-warning")} {
247
+ --m-button-background-color: ${Gt("color-warning-60")};
248
+ --m-button-outline-color: ${Gt("color-warning-60")};
249
249
  }
250
250
 
251
- ${ee.hover(".button.-warning")},
252
- ${ee.active(".button.-warning")} {
253
- --m-button-background-color: ${Dt("color-warning-100")};
254
- --m-button-border-color: ${Dt("color-warning-100")};
255
- --m-button-color: ${Dt("color-text-inverted")};
251
+ ${oe.hover(".button.-warning")},
252
+ ${oe.active(".button.-warning")} {
253
+ --m-button-background-color: ${Gt("color-warning-100")};
254
+ --m-button-border-color: ${Gt("color-warning-100")};
255
+ --m-button-color: ${Gt("color-text-inverted")};
256
256
  }
257
257
 
258
258
  .button.-warning.is-loading {
259
- --m-button-background-color: ${Dt("color-warning-60")};
260
- --m-button-border-color: ${Dt("color-warning-60")};
261
- --m-button-color: ${Dt("color-text-primary")};
259
+ --m-button-background-color: ${Gt("color-warning-60")};
260
+ --m-button-border-color: ${Gt("color-warning-60")};
261
+ --m-button-color: ${Gt("color-text-primary")};
262
262
  }
263
263
 
264
264
  .button.-danger {
265
- --m-button-background-color: ${Dt("color-danger-60")};
266
- --m-button-border-color: ${Dt("color-danger-60")};
267
- --m-button-color: ${Dt("color-text-inverted")};
265
+ --m-button-background-color: ${Gt("color-danger-60")};
266
+ --m-button-border-color: ${Gt("color-danger-60")};
267
+ --m-button-color: ${Gt("color-text-inverted")};
268
268
  }
269
269
 
270
- ${te(".button.-danger")} {
271
- --m-button-background-color: ${Dt("color-danger-20")};
272
- --m-button-border-color: ${Dt("color-danger-20")};
270
+ ${ee(".button.-danger")} {
271
+ --m-button-background-color: ${Gt("color-danger-20")};
272
+ --m-button-border-color: ${Gt("color-danger-20")};
273
273
  }
274
274
 
275
- ${ee.focus(".button.-danger")} {
276
- --m-button-background-color: ${Dt("color-danger-60")};
277
- --m-button-outline-color: ${Dt("color-danger-60")};
275
+ ${oe.focus(".button.-danger")} {
276
+ --m-button-background-color: ${Gt("color-danger-60")};
277
+ --m-button-outline-color: ${Gt("color-danger-60")};
278
278
  }
279
279
 
280
- ${ee.hover(".button.-danger")},
281
- ${ee.active(".button.-danger")} {
282
- --m-button-background-color: ${Dt("color-danger-100")};
283
- --m-button-border-color: ${Dt("color-danger-100")};
280
+ ${oe.hover(".button.-danger")},
281
+ ${oe.active(".button.-danger")} {
282
+ --m-button-background-color: ${Gt("color-danger-100")};
283
+ --m-button-border-color: ${Gt("color-danger-100")};
284
284
  }
285
285
 
286
286
  .button.-danger.is-loading {
287
- --m-button-background-color: ${Dt("color-danger-60")};
288
- --m-button-border-color: ${Dt("color-danger-60")};
289
- --m-button-color: ${Dt("color-text-inverted")};
287
+ --m-button-background-color: ${Gt("color-danger-60")};
288
+ --m-button-border-color: ${Gt("color-danger-60")};
289
+ --m-button-color: ${Gt("color-text-inverted")};
290
290
  }
291
291
 
292
292
  .button.-icon,
293
293
  .button.-icon-secondary {
294
- --m-button-border-radius: ${Pt("border-radius-circle")};
295
- --m-button-color: ${Dt("color-neutral-90")};
296
- --m-button-padding-x: ${Pt("spacing-1")};
297
- --m-button-padding-y: ${Pt("spacing-1")};
294
+ --m-button-border-radius: ${Dt("border-radius-circle")};
295
+ --m-button-color: ${Gt("color-neutral-90")};
296
+ --m-button-padding-x: ${Dt("spacing-1")};
297
+ --m-button-padding-y: ${Dt("spacing-1")};
298
298
 
299
299
  min-block-size: var(--m-button-base-size);
300
300
  max-block-size: var(--m-button-base-size);
@@ -303,8 +303,8 @@ const ct=t=>null!=t?t:x
303
303
  }
304
304
 
305
305
  .button.-icon {
306
- --m-button-background-color: ${Dt("color-background-tertiary")};
307
- --m-button-border-color: ${Dt("color-background-tertiary")};
306
+ --m-button-background-color: ${Gt("color-background-tertiary")};
307
+ --m-button-border-color: ${Gt("color-background-tertiary")};
308
308
  }
309
309
 
310
310
  .button.-icon-secondary {
@@ -319,62 +319,62 @@ const ct=t=>null!=t?t:x
319
319
  display: none;
320
320
  }
321
321
 
322
- ${te([".button.-icon",".button.-icon-secondary"])} {
323
- --m-button-color: ${Dt("color-neutral-40")};
322
+ ${ee([".button.-icon",".button.-icon-secondary"])} {
323
+ --m-button-color: ${Gt("color-neutral-40")};
324
324
  }
325
325
 
326
- ${te(".button.-icon")} {
327
- --m-button-background-color: ${Dt("color-neutral-20")};
328
- --m-button-border-color: ${Dt("color-neutral-20")};
326
+ ${ee(".button.-icon")} {
327
+ --m-button-background-color: ${Gt("color-neutral-20")};
328
+ --m-button-border-color: ${Gt("color-neutral-20")};
329
329
  }
330
330
 
331
- ${te(".button.-icon-secondary")} {
331
+ ${ee(".button.-icon-secondary")} {
332
332
  --m-button-background-color: transparent;
333
333
  --m-button-border-color: transparent;
334
334
  }
335
335
 
336
- ${ee.focus([".button.-icon",".button.-icon-secondary"])} {
337
- --m-button-color: ${Dt("color-primary-60")};
338
- --m-button-outline-color: ${Dt("color-primary-60")};
336
+ ${oe.focus([".button.-icon",".button.-icon-secondary"])} {
337
+ --m-button-color: ${Gt("color-primary-60")};
338
+ --m-button-outline-color: ${Gt("color-primary-60")};
339
339
  }
340
340
 
341
- ${ee.focus(".button.-icon")} {
342
- --m-button-background-color: ${Dt("color-neutral-20")};
341
+ ${oe.focus(".button.-icon")} {
342
+ --m-button-background-color: ${Gt("color-neutral-20")};
343
343
  }
344
344
 
345
- ${ee.focus(".button.-icon-secondary")} {
345
+ ${oe.focus(".button.-icon-secondary")} {
346
346
  --m-button-background-color: transparent;
347
347
  }
348
348
 
349
- ${ee.hover([".button.-icon",".button.-icon-secondary"])},
350
- ${ee.active([".button.-icon",".button.-icon-secondary"])} {
351
- --m-button-color: ${Dt("color-primary-60")};
349
+ ${oe.hover([".button.-icon",".button.-icon-secondary"])},
350
+ ${oe.active([".button.-icon",".button.-icon-secondary"])} {
351
+ --m-button-color: ${Gt("color-primary-60")};
352
352
  }
353
353
 
354
- ${ee.hover(".button.-icon")},
355
- ${ee.active(".button.-icon")} {
356
- --m-button-background-color: ${Dt("color-background-highlight")};
357
- --m-button-border-color: ${Dt("color-background-highlight")};
354
+ ${oe.hover(".button.-icon")},
355
+ ${oe.active(".button.-icon")} {
356
+ --m-button-background-color: ${Gt("color-background-highlight")};
357
+ --m-button-border-color: ${Gt("color-background-highlight")};
358
358
  }
359
359
 
360
- ${ee.hover(".button.-icon-secondary")},
361
- ${ee.active(".button.-icon-secondary")} {
360
+ ${oe.hover(".button.-icon-secondary")},
361
+ ${oe.active(".button.-icon-secondary")} {
362
362
  --m-button-background-color: transparent;
363
363
  --m-button-border-color: transparent;
364
364
  }
365
365
 
366
366
  .button.-small {
367
- --m-button-padding-y: ${Pt("spacing-2")};
368
- --m-button-base-size: ${Pt("global-height-small")};
367
+ --m-button-padding-y: ${Dt("spacing-2")};
368
+ --m-button-base-size: ${Dt("global-height-small")};
369
369
 
370
- ${Yt("button-sm")};
370
+ ${te("button-sm")};
371
371
  }
372
372
 
373
373
  .button.-large {
374
- --m-button-padding-y: ${Pt("spacing-4")};
375
- --m-button-base-size: ${Pt("global-height-large")};
374
+ --m-button-padding-y: ${Dt("spacing-4")};
375
+ --m-button-base-size: ${Dt("global-height-large")};
376
376
 
377
- ${Yt("button-lg")};
377
+ ${te("button-lg")};
378
378
  }
379
379
 
380
380
  /* TODO: to be removed when the loading dots component is ready */
@@ -388,29 +388,29 @@ const ct=t=>null!=t?t:x
388
388
 
389
389
  pointer-events: none;
390
390
  }
391
- `]],window.customElements.define("m-button",ce);class de extends ce{constructor(){super(),this.size="small"}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","primary-action")}}window.customElements.define("m-banner-action-primary",de);class he extends ce{constructor(){super(),this.variant="tertiary",this.size="small"}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","secondary-action")}}window.customElements.define("m-banner-action-secondary",he);class ue extends lt{connectedCallback(){super.connectedCallback(),this.setAttribute("slot","actions")}render(){return v`
391
+ `]],window.customElements.define("m-button",he);class ue extends he{constructor(){super(),this.size="small"}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","primary-action")}}window.customElements.define("m-banner-action-primary",ue);class be extends he{constructor(){super(),this.variant="tertiary",this.size="small"}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","secondary-action")}}window.customElements.define("m-banner-action-secondary",be);class ge extends lt{connectedCallback(){super.connectedCallback(),this.setAttribute("slot","actions")}render(){return v`
392
392
  <slot name="secondary-action"></slot>
393
393
  <slot name="primary-action"></slot>
394
- `}}ue.styles=[H`
394
+ `}}ge.styles=[H`
395
395
  :host {
396
396
  display: flex;
397
397
  justify-content: flex-end;
398
- gap: ${Pt("spacing-2")};
398
+ gap: ${Dt("spacing-2")};
399
399
  }
400
- `],window.customElements.define("m-banner-actions",ue);class be extends lt{connectedCallback(){super.connectedCallback(),this.setAttribute("slot","description")}render(){return v`<slot></slot>`}}be.styles=[H`
400
+ `],window.customElements.define("m-banner-actions",ge);class pe extends lt{connectedCallback(){super.connectedCallback(),this.setAttribute("slot","description")}render(){return v`<slot></slot>`}}pe.styles=[H`
401
401
  :host {
402
- ${Yt("body-md")};
403
- color: ${Dt("color-text-secondary")};
402
+ ${te("body-md")};
403
+ color: ${Gt("color-text-secondary")};
404
404
  }
405
- `],window.customElements.define("m-banner-description",be);class ge extends lt{connectedCallback(){super.connectedCallback(),this.setAttribute("slot","icon")}render(){return v`<slot></slot>`}}window.customElements.define("m-banner-icon",ge);class pe extends lt{connectedCallback(){super.connectedCallback(),this.setAttribute("slot","title")}render(){return v`<slot></slot>`}}pe.styles=[H`
405
+ `],window.customElements.define("m-banner-description",pe);class me extends lt{connectedCallback(){super.connectedCallback(),this.setAttribute("slot","icon")}render(){return v`<slot></slot>`}}window.customElements.define("m-banner-icon",me);class fe extends lt{connectedCallback(){super.connectedCallback(),this.setAttribute("slot","title")}render(){return v`<slot></slot>`}}fe.styles=[H`
406
406
  :host {
407
- ${Yt("body-md-bold")};
408
- color: ${Dt("color-text-secondary")};
407
+ ${te("body-md-bold")};
408
+ color: ${Gt("color-text-secondary")};
409
409
  }
410
- `],window.customElements.define("m-banner-title",pe);class me extends lt{constructor(){super(...arguments),this.emit=(t,e)=>{const o=new CustomEvent(t,{bubbles:!0,cancelable:!0,composed:!0,...e});this.dispatchEvent(o)},this.reemit=t=>{!function(t,e){!e.bubbles||t.shadowRoot&&!e.composed||e.stopPropagation();const o=Reflect.construct(e.constructor,[e.type,e]),i=t.dispatchEvent(o);i||e.preventDefault()}(this,t)}}}var fe={};fe.BASE_PIXELS=16,fe.toRem=function(t,e=16){return parseInt(String(t),10)/e+"rem"};var $e=fe.toRem;function ye(t,e){return Z($e(t,e))}const ve=["attention","bell","check","close","info-circle","indeterminate"];var we,xe,ke;class ze extends me{static get properties(){return{name:{type:String},size:{type:String},color:{type:String},loading:{state:!0}}}constructor(){super(),we.add(this),this.icon=null,this.icon=null}connectedCallback(){super.connectedCallback(),t(this,we,"m",xe).call(this)}update(e){super.update(e),e.has("name")&&t(this,we,"m",xe).call(this)}updated(t){super.updated(t),t.has("size")&&null!=this.size&&this.style.setProperty("--m-icon-size",`${parseInt(String(this.size),10)||16}px`),t.has("color")&&null!=this.color&&this.style.setProperty("--m-icon-color",$t(this.color))}render(){return null!=this.name&&ve.includes(this.name)&&null!=this.icon?this.icon:x}}we=new WeakSet,xe=async function(){try{this.icon=null;const{default:t}=await import(`./icons/${this.name}.js`);this.icon=t}catch{console.error(`failed loading icon "${this.name}". Are you sure it exists?`)}finally{this.requestUpdate()}},ze.styles=[[H`
410
+ `],window.customElements.define("m-banner-title",fe);class $e extends lt{constructor(){super(...arguments),this.emit=(t,e)=>{const o=new CustomEvent(t,{bubbles:!0,cancelable:!0,composed:!0,...e});this.dispatchEvent(o)},this.reemit=t=>{!function(t,e){!e.bubbles||t.shadowRoot&&!e.composed||e.stopPropagation();const o=Reflect.construct(e.constructor,[e.type,e]),i=t.dispatchEvent(o);i||e.preventDefault()}(this,t)}}}var ye={};ye.BASE_PIXELS=16,ye.toRem=function(t,e=16){return parseInt(String(t),10)/e+"rem"};var ve=ye.toRem;function we(t,e){return Z(ve(t,e))}const xe=["attention","bell","check","close","info-circle","indeterminate"];var ke,ze,Se,Ce,Me;class We extends $e{static get properties(){return{name:{type:String},size:{type:String},color:{type:String},loading:{state:!0}}}constructor(){super(),ke.add(this),this.icon=null,this.icon=null}connectedCallback(){super.connectedCallback(),t(this,ke,"m",ze).call(this)}update(e){super.update(e),e.has("name")&&t(this,ke,"m",ze).call(this)}updated(t){super.updated(t),t.has("size")&&null!=this.size&&this.style.setProperty("--m-icon-size",`${parseInt(String(this.size),10)||16}px`),t.has("color")&&null!=this.color&&this.style.setProperty("--m-icon-color",$t(this.color))}render(){return null!=this.name&&xe.includes(this.name)&&null!=this.icon?this.icon:x}}ke=new WeakSet,ze=async function(){try{this.icon=null;const{default:t}=await import(`./icons/${this.name}.js`);this.icon=t}catch{console.error(`failed loading icon "${this.name}". Are you sure it exists?`)}finally{this.requestUpdate()}},We.styles=[[H`
411
411
  :host {
412
412
  --m-icon-size: 16px;
413
- --m-icon-color: ${Dt("color-text-primary")};
413
+ --m-icon-color: ${Gt("color-text-primary")};
414
414
 
415
415
  display: inline-flex;
416
416
  align-items: center;
@@ -421,7 +421,7 @@ const ct=t=>null!=t?t:x
421
421
  }
422
422
 
423
423
  svg {
424
- ${Xt([{property:"color"},{property:"fill"}])};
424
+ ${Yt([{property:"color"},{property:"fill"}])};
425
425
 
426
426
  inline-size: var(--m-icon-size);
427
427
  block-size: var(--m-icon-size);
@@ -429,21 +429,21 @@ const ct=t=>null!=t?t:x
429
429
  color: var(--m-icon-color);
430
430
  fill: var(--m-icon-color);
431
431
  }
432
- `]],window.customElements.define("m-icon",ze);class Se extends me{static get properties(){return{controls:{type:String},disabled:{type:Boolean},inverted:{type:Boolean},label:{type:String},size:{type:String}}}constructor(){super(),ke.set(this,(()=>{this.emit("m-close")})),this.disabled=!1,this.inverted=!1,this.label="Close",this.size="default"}render(){var e;return v`
432
+ `]],window.customElements.define("m-icon",We);class je extends $e{static get properties(){return{controls:{type:String},disabled:{type:Boolean},inverted:{type:Boolean},label:{type:String},size:{type:String}}}constructor(){super(),Se.add(this),Me.set(this,(()=>{this.emit("m-close")})),this.disabled=!1,this.inverted=!1,this.label="Close",this.size="default"}render(){var e;return v`
433
433
  <button
434
434
  type="button"
435
435
  aria-controls="${ct(this.controls)}"
436
436
  aria-label="${ct(this.label)}"
437
437
  class=${bt({"close-button":!0,"-size-small":"small"===this.size,"-size-default":"default"===this.size,"-size-large":"large"===this.size,"-inverted":null!==(e=this.inverted)&&void 0!==e&&e})}
438
438
  ?disabled="${this.disabled}"
439
- @click=${t(this,ke,"f")}
439
+ @click=${t(this,Me,"f")}
440
440
  >
441
441
  <m-icon name="close"></m-icon>
442
442
  </button>
443
- `}}ke=new WeakMap,Se.styles=[H`
443
+ `}focus(e){var o;null===(o=t(this,Se,"a",Ce))||void 0===o||o.focus(e)}}Me=new WeakMap,Se=new WeakSet,Ce=function(){var t;return null!==(t=this.renderRoot.querySelector("button"))&&void 0!==t?t:null},je.styles=[H`
444
444
  :host {
445
- --m-close-button-color: ${Dt("color-text-primary")};
446
- --m-close-button-outline-color: ${Dt("color-primary-100")};
445
+ --m-close-button-color: ${Gt("color-text-primary")};
446
+ --m-close-button-outline-color: ${Gt("color-primary-100")};
447
447
  --m-close-button-outline-offset: 2px;
448
448
  }
449
449
 
@@ -453,8 +453,8 @@ const ct=t=>null!=t?t:x
453
453
 
454
454
  width: var(--button-size);
455
455
  height: var(--button-size);
456
- ${Zt(0)};
457
- ${Kt(0)};
456
+ ${Ht(0)};
457
+ ${Qt(0)};
458
458
  background-color: var(--button-color);
459
459
  border: none;
460
460
  border-radius: 50%;
@@ -463,27 +463,27 @@ const ct=t=>null!=t?t:x
463
463
  justify-content: center;
464
464
  cursor: pointer;
465
465
 
466
- ${Xt([{property:"background-color"}])};
466
+ ${Yt([{property:"background-color"}])};
467
467
  }
468
468
 
469
469
  .close-button.-size-small {
470
- --button-size: ${ye("12px")};
471
- --icon-size: ${ye("8px")};
470
+ --button-size: ${we("12px")};
471
+ --icon-size: ${we("8px")};
472
472
  }
473
473
 
474
474
  .close-button.-size-default {
475
- --button-size: ${ye("16px")};
476
- --icon-size: ${ye("12px")};
475
+ --button-size: ${we("16px")};
476
+ --icon-size: ${we("12px")};
477
477
  }
478
478
 
479
479
  .close-button.-size-large {
480
- --button-size: ${ye("20px")};
481
- --icon-size: ${ye("16px")};
480
+ --button-size: ${we("20px")};
481
+ --icon-size: ${we("16px")};
482
482
  }
483
483
 
484
484
  .close-button.-inverted {
485
485
  --button-color: transparent;
486
- --icon-color: ${Dt("color-text-inverted")};
486
+ --icon-color: ${Gt("color-text-inverted")};
487
487
  }
488
488
 
489
489
  m-icon {
@@ -493,51 +493,51 @@ const ct=t=>null!=t?t:x
493
493
  display: block;
494
494
  }
495
495
 
496
- ${ee.focus(".close-button")} {
496
+ ${oe.focus(".close-button")} {
497
497
  outline: 1px solid var(--m-close-button-outline-color);
498
498
  outline-offset: var(--m-close-button-outline-offset);
499
499
  }
500
500
 
501
- ${ee.hover(".close-button")} {
501
+ ${oe.hover(".close-button")} {
502
502
  --button-color: var(--m-close-button-color);
503
- --icon-color: ${Dt("color-text-inverted")};
503
+ --icon-color: ${Gt("color-text-inverted")};
504
504
  }
505
505
 
506
- ${ee.hover(".close-button.-inverted")} {
507
- --button-color: ${Dt("color-text-inverted")};
506
+ ${oe.hover(".close-button.-inverted")} {
507
+ --button-color: ${Gt("color-text-inverted")};
508
508
  --icon-color: var(--m-close-button-color);
509
509
  }
510
510
 
511
- ${te(".close-button")} {
512
- --icon-color: ${Dt("color-text-disabled")};
511
+ ${ee(".close-button")} {
512
+ --icon-color: ${Gt("color-text-disabled")};
513
513
  cursor: default;
514
514
  }
515
515
 
516
- ${te(".close-button","*")} {
516
+ ${ee(".close-button","*")} {
517
517
  pointer-events: none;
518
518
  }
519
- `],window.customElements.define("m-close-button",Se);
519
+ `],window.customElements.define("m-close-button",je);
520
520
  /**
521
521
  * @license
522
522
  * Copyright 2018 Google LLC
523
523
  * SPDX-License-Identifier: BSD-3-Clause
524
524
  */
525
- const Ce=ht(class extends ut{constructor(t){var e;if(super(t),t.type!==dt||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,o)=>{const i=t[o];return null==i?e:e+`${o=o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`}),"")}update(t,[e]){const{style:o}=t.element;if(void 0===this.vt){this.vt=new Set;for(const t in e)this.vt.add(t);return this.render(e)}this.vt.forEach((t=>{null==e[t]&&(this.vt.delete(t),t.includes("-")?o.removeProperty(t):o[t]="")}));for(const t in e){const i=e[t];null!=i&&(this.vt.add(t),t.includes("-")?o.setProperty(t,i):o[t]=i)}return w}});class Me extends(gt(lt,["h1","h2","h3","h4","h5","h6","p","span"],"span")){static get properties(){return{variant:{type:String,reflect:!0},color:{type:String}}}constructor(){super(),this.as="span",this.variant="body-md",this.color="color-text-primary"}render(){return D`
525
+ const Ae=ht(class extends ut{constructor(t){var e;if(super(t),t.type!==dt||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,o)=>{const i=t[o];return null==i?e:e+`${o=o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`}),"")}update(t,[e]){const{style:o}=t.element;if(void 0===this.vt){this.vt=new Set;for(const t in e)this.vt.add(t);return this.render(e)}this.vt.forEach((t=>{null==e[t]&&(this.vt.delete(t),t.includes("-")?o.removeProperty(t):o[t]="")}));for(const t in e){const i=e[t];null!=i&&(this.vt.add(t),t.includes("-")?o.setProperty(t,i):o[t]=i)}return w}});class _e extends(gt(lt,["h1","h2","h3","h4","h5","h6","p","span"],"span")){static get properties(){return{variant:{type:String,reflect:!0},color:{type:String}}}constructor(){super(),this.as="span",this.variant="body-md",this.color="color-text-primary"}render(){return D`
526
526
  <${this.tag}
527
527
  class=${bt({"m-text":!0,"-body-lg-bold":"body-lg-bold"===this.variant,"-body-lg":"body-lg"===this.variant,"-body-md-bold-underline":"body-md-bold-underline"===this.variant,"-body-md-bold":"body-md-bold"===this.variant,"-body-md-underline":"body-md-underline"===this.variant,"-body-md":"body-md"===this.variant,"-body-sm-bold-underline":"body-sm-bold-underline"===this.variant,"-body-sm-bold":"body-sm-bold"===this.variant,"-body-sm-underline":"body-sm-underline"===this.variant,"-body-sm":"body-sm"===this.variant,"-button-lg":"button-lg"===this.variant,"-button-md":"button-md"===this.variant,"-button-sm":"button-sm"===this.variant,"-chips-md":"chips-md"===this.variant,"-chips-sm":"chips-sm"===this.variant,"-heading-lg-bold":"heading-lg-bold"===this.variant,"-heading-lg":"heading-lg"===this.variant,"-heading-md-bold":"heading-md-bold"===this.variant,"-heading-md":"heading-md"===this.variant,"-heading-sm-bold":"heading-sm-bold"===this.variant,"-heading-sm":"heading-sm"===this.variant,"-hero-lg-bold":"hero-lg-bold"===this.variant,"-hero-lg":"hero-lg"===this.variant,"-hero-md-bold":"hero-md-bold"===this.variant,"-hero-md":"hero-md"===this.variant,"-hero-sm-bold":"hero-sm-bold"===this.variant,"-hero-sm":"hero-sm"===this.variant,"-number-md":"number-md"===this.variant,"-number-sm":"number-sm"===this.variant,"-table-header-md":"table-header-md"===this.variant,"-table-header-sm":"table-header-sm"===this.variant})}
528
- style=${Ce({"--m-text-color":$t(this.color)})}
528
+ style=${Ae({"--m-text-color":$t(this.color)})}
529
529
  >
530
530
  <slot></slot>
531
531
  </${this.tag}>
532
- `}}var We,je;Me.styles=[H`
532
+ `}}var Be,Ee;_e.styles=[H`
533
533
  :host {
534
- --m-text-color: ${Dt("color-text-primary")};
534
+ --m-text-color: ${Gt("color-text-primary")};
535
535
  }
536
536
 
537
537
  .m-text {
538
- ${Xt([{property:"color"}])};
538
+ ${Yt([{property:"color"}])};
539
539
 
540
- ${Yt()};
540
+ ${te()};
541
541
 
542
542
  display: inline-block;
543
543
 
@@ -545,133 +545,133 @@ const Ce=ht(class extends ut{constructor(t){var e;if(super(t),t.type!==dt||"styl
545
545
  }
546
546
 
547
547
  .-body-lg-bold {
548
- ${Yt("body-lg-bold")};
548
+ ${te("body-lg-bold")};
549
549
  }
550
550
 
551
551
  .-body-lg {
552
- ${Yt("body-lg")};
552
+ ${te("body-lg")};
553
553
  }
554
554
 
555
555
  .-body-md-bold-underline {
556
- ${Yt("body-md-bold-underline")};
556
+ ${te("body-md-bold-underline")};
557
557
  }
558
558
 
559
559
  .-body-md-bold {
560
- ${Yt("body-md-bold")};
560
+ ${te("body-md-bold")};
561
561
  }
562
562
 
563
563
  .-body-md-underline {
564
- ${Yt("body-md-underline")};
564
+ ${te("body-md-underline")};
565
565
  }
566
566
 
567
567
  .-body-md {
568
- ${Yt("body-md")};
568
+ ${te("body-md")};
569
569
  }
570
570
 
571
571
  .-body-sm-bold-underline {
572
- ${Yt("body-sm-bold-underline")};
572
+ ${te("body-sm-bold-underline")};
573
573
  }
574
574
 
575
575
  .-body-sm-bold {
576
- ${Yt("body-sm-bold")};
576
+ ${te("body-sm-bold")};
577
577
  }
578
578
 
579
579
  .-body-sm-underline {
580
- ${Yt("body-sm-underline")};
580
+ ${te("body-sm-underline")};
581
581
  }
582
582
 
583
583
  .-body-sm {
584
- ${Yt("body-sm")};
584
+ ${te("body-sm")};
585
585
  }
586
586
 
587
587
  .-button-lg {
588
- ${Yt("button-lg")};
588
+ ${te("button-lg")};
589
589
  }
590
590
 
591
591
  .-button-md {
592
- ${Yt("button-md")};
592
+ ${te("button-md")};
593
593
  }
594
594
 
595
595
  .-button-sm {
596
- ${Yt("button-sm")};
596
+ ${te("button-sm")};
597
597
  }
598
598
 
599
599
  .-chips-md {
600
- ${Yt("chips-md")};
600
+ ${te("chips-md")};
601
601
  }
602
602
 
603
603
  .-chips-sm {
604
- ${Yt("chips-sm")};
604
+ ${te("chips-sm")};
605
605
  }
606
606
 
607
607
  .-heading-lg-bold {
608
- ${Yt("heading-lg-bold")};
608
+ ${te("heading-lg-bold")};
609
609
  }
610
610
 
611
611
  .-heading-lg {
612
- ${Yt("heading-lg")};
612
+ ${te("heading-lg")};
613
613
  }
614
614
 
615
615
  .-heading-md-bold {
616
- ${Yt("heading-md-bold")};
616
+ ${te("heading-md-bold")};
617
617
  }
618
618
 
619
619
  .-heading-md {
620
- ${Yt("heading-md")};
620
+ ${te("heading-md")};
621
621
  }
622
622
 
623
623
  .-heading-sm-bold {
624
- ${Yt("heading-sm-bold")};
624
+ ${te("heading-sm-bold")};
625
625
  }
626
626
 
627
627
  .-heading-sm {
628
- ${Yt("heading-sm")};
628
+ ${te("heading-sm")};
629
629
  }
630
630
 
631
631
  .-hero-lg-bold {
632
- ${Yt("hero-lg-bold")};
632
+ ${te("hero-lg-bold")};
633
633
  }
634
634
 
635
635
  .-hero-lg {
636
- ${Yt("hero-lg")};
636
+ ${te("hero-lg")};
637
637
  }
638
638
 
639
639
  .-hero-md-bold {
640
- ${Yt("hero-md-bold")};
640
+ ${te("hero-md-bold")};
641
641
  }
642
642
 
643
643
  .-hero-md {
644
- ${Yt("hero-md")};
644
+ ${te("hero-md")};
645
645
  }
646
646
 
647
647
  .-hero-sm-bold {
648
- ${Yt("hero-sm-bold")};
648
+ ${te("hero-sm-bold")};
649
649
  }
650
650
 
651
651
  .-hero-sm {
652
- ${Yt("hero-sm")};
652
+ ${te("hero-sm")};
653
653
  }
654
654
 
655
655
  .-number-md {
656
- ${Yt("number-md")};
656
+ ${te("number-md")};
657
657
  }
658
658
 
659
659
  .-number-sm {
660
- ${Yt("number-sm")};
660
+ ${te("number-sm")};
661
661
  }
662
662
 
663
663
  .-table-header-md {
664
- ${Yt("table-header-md")};
664
+ ${te("table-header-md")};
665
665
  }
666
666
 
667
667
  .-table-header-sm {
668
- ${Yt("table-header-sm")};
668
+ ${te("table-header-sm")};
669
669
  }
670
- `],window.customElements.define("m-text",Me);class Ae extends me{static get properties(){return{variant:{type:String},dismissible:{type:Boolean},dismissed:{type:Boolean,reflect:!0}}}constructor(){super(),We.set(this,void 0),je.set(this,(()=>{this.dismissed=!0,this.emit("m-dismiss",{composed:!0})})),this.variant="neutral",this.dismissible=!1,this.dismissed=!1}get primaryAction(){return null==t(this,We,"f")&&e(this,We,this.querySelector("m-banner-action-primary"),"f"),t(this,We,"f")}updated(t){super.updated(t),t.has("variant")&&null!=this.primaryAction&&(this.primaryAction.variant=function(t){switch(t){case"warning":return"warning";case"danger":return"danger";default:return"primary"}}(this.variant))}render(){if(this.dismissed)return x;const e=null!=this.querySelector("*[slot='description']"),o=null!=this.querySelector("*[slot='actions']"),i=v`
670
+ `],window.customElements.define("m-text",_e);class Oe extends $e{static get properties(){return{variant:{type:String},dismissible:{type:Boolean},dismissed:{type:Boolean,reflect:!0}}}constructor(){super(),Be.set(this,void 0),Ee.set(this,(()=>{this.dismissed=!0,this.emit("m-dismiss",{composed:!0})})),this.variant="neutral",this.dismissible=!1,this.dismissed=!1}get primaryAction(){return null==t(this,Be,"f")&&e(this,Be,this.querySelector("m-banner-action-primary"),"f"),t(this,Be,"f")}updated(t){super.updated(t),t.has("variant")&&null!=this.primaryAction&&(this.primaryAction.variant=function(t){switch(t){case"warning":return"warning";case"danger":return"danger";default:return"primary"}}(this.variant))}render(){if(this.dismissed)return x;const e=null!=this.querySelector("*[slot='description']"),o=null!=this.querySelector("*[slot='actions']"),i=v`
671
671
  <m-close-button
672
672
  id="close"
673
673
  label="Dismiss"
674
- @click=${t(this,je,"f")}
674
+ @click=${t(this,Ee,"f")}
675
675
  ></m-close-button>
676
676
  `;return v`
677
677
  <div
@@ -689,7 +689,7 @@ const Ce=ht(class extends ut{constructor(t){var e;if(super(t),t.type!==dt||"styl
689
689
  </div>
690
690
  <slot name="actions"></slot>
691
691
  </div>
692
- `}}We=new WeakMap,je=new WeakMap,Ae.styles=[H`
692
+ `}}Be=new WeakMap,Ee=new WeakMap,Oe.styles=[H`
693
693
  :host {
694
694
  display: block;
695
695
  width: 100%;
@@ -702,34 +702,34 @@ const Ce=ht(class extends ut{constructor(t){var e;if(super(t),t.type!==dt||"styl
702
702
  .banner {
703
703
  background-color: var(
704
704
  --m-banner-background-color,
705
- ${Dt("color-background-secondary")}
705
+ ${Gt("color-background-secondary")}
706
706
  );
707
- border: var(--m-banner-border, 1px solid ${Dt("color-border")});
708
- border-radius: var(--m-banner-border-radius, ${Pt("border-radius-m")});
709
- padding-inline: var(--m-banner-padding-x, ${Pt("spacing-6")});
710
- padding-block: var(--m-banner-padding-y, ${Pt("spacing-4")});
707
+ border: var(--m-banner-border, 1px solid ${Gt("color-border")});
708
+ border-radius: var(--m-banner-border-radius, ${Dt("border-radius-m")});
709
+ padding-inline: var(--m-banner-padding-x, ${Dt("spacing-6")});
710
+ padding-block: var(--m-banner-padding-y, ${Dt("spacing-4")});
711
711
  display: flex;
712
712
  flex-wrap: wrap;
713
713
  justify-content: flex-end;
714
- gap: ${Pt("spacing-6")};
714
+ gap: ${Dt("spacing-6")};
715
715
  }
716
716
 
717
717
  .banner.-success {
718
- --m-banner-background-color: ${Dt("color-success-20")};
719
- --m-banner-border: 1px solid ${Dt("color-success-20")};
720
- --m-banner-icon-color: ${Dt("color-success-60")};
718
+ --m-banner-background-color: ${Gt("color-success-20")};
719
+ --m-banner-border: 1px solid ${Gt("color-success-20")};
720
+ --m-banner-icon-color: ${Gt("color-success-60")};
721
721
  }
722
722
 
723
723
  .banner.-warning {
724
- --m-banner-background-color: ${Dt("color-warning-20")};
725
- --m-banner-border: 1px solid ${Dt("color-warning-20")};
726
- --m-banner-icon-color: ${Dt("color-warning-100")};
724
+ --m-banner-background-color: ${Gt("color-warning-20")};
725
+ --m-banner-border: 1px solid ${Gt("color-warning-20")};
726
+ --m-banner-icon-color: ${Gt("color-warning-100")};
727
727
  }
728
728
 
729
729
  .banner.-danger {
730
- --m-banner-background-color: ${Dt("color-danger-20")};
731
- --m-banner-border: 1px solid ${Dt("color-danger-20")};
732
- --m-banner-icon-color: ${Dt("color-danger-60")};
730
+ --m-banner-background-color: ${Gt("color-danger-20")};
731
+ --m-banner-border: 1px solid ${Gt("color-danger-20")};
732
+ --m-banner-icon-color: ${Gt("color-danger-60")};
733
733
  }
734
734
 
735
735
  .banner.-with-description {
@@ -738,17 +738,17 @@ const Ce=ht(class extends ut{constructor(t){var e;if(super(t),t.type!==dt||"styl
738
738
 
739
739
  .wrapper {
740
740
  display: flex;
741
- gap: ${Pt("spacing-6")};
741
+ gap: ${Dt("spacing-6")};
742
742
  align-items: center;
743
743
  flex-grow: 1;
744
744
  }
745
745
 
746
746
  slot[name='icon'] > m-icon,
747
747
  slot[name='icon']::slotted(*) {
748
- --m-icon-color: var(--m-banner-icon-color, ${Dt("color-neutral-90")});
748
+ --m-icon-color: var(--m-banner-icon-color, ${Gt("color-neutral-90")});
749
749
  --m-icon-size: var(--m-banner-icon-size, 24px);
750
750
 
751
- fill: var(--m-banner-icon-color, ${Dt("color-neutral-90")});
751
+ fill: var(--m-banner-icon-color, ${Gt("color-neutral-90")});
752
752
  block-size: var(--m-banner-icon-size, 24px);
753
753
  inline-size: var(--m-banner-icon-size, 24px);
754
754
  }
@@ -757,12 +757,12 @@ const Ce=ht(class extends ut{constructor(t){var e;if(super(t),t.type!==dt||"styl
757
757
  display: flex;
758
758
  flex-direction: column;
759
759
  flex-grow: 1;
760
- gap: ${Pt("spacing-1")};
760
+ gap: ${Dt("spacing-1")};
761
761
  }
762
- `],window.customElements.define("m-banner",Ae);class _e extends lt{static get properties(){return{flagged:{type:Boolean},flagColor:{type:String,attribute:"flag-color"}}}constructor(){super(),this.flagged=!1,this.flagColor="color-background-inverted"}render(){return v`
762
+ `],window.customElements.define("m-banner",Oe);class Te extends lt{static get properties(){return{flagged:{type:Boolean},flagColor:{type:String,attribute:"flag-color"}}}constructor(){super(),this.flagged=!1,this.flagColor="color-background-inverted"}render(){return v`
763
763
  <div
764
764
  class="m-card"
765
- style="${Ce({"--m-card-flag-color":$t(this.flagColor)})}"
765
+ style="${Ae({"--m-card-flag-color":$t(this.flagColor)})}"
766
766
  >
767
767
  ${this.flagged?v`<span class="m-card-flag"></span>`:x}
768
768
  <div class="m-card-content">
@@ -772,9 +772,9 @@ const Ce=ht(class extends ut{constructor(t){var e;if(super(t),t.type!==dt||"styl
772
772
  <slot name="body"></slot>
773
773
  </div>
774
774
  </div>
775
- `}}_e.styles=[H`
775
+ `}}Te.styles=[H`
776
776
  :host {
777
- --m-card-background-color: ${Dt("color-background-primary")};
777
+ --m-card-background-color: ${Gt("color-background-primary")};
778
778
  }
779
779
 
780
780
  .m-card {
@@ -783,8 +783,8 @@ const Ce=ht(class extends ut{constructor(t){var e;if(super(t),t.type!==dt||"styl
783
783
  flex-direction: row;
784
784
 
785
785
  background-color: var(--m-card-background-color);
786
- border-radius: ${Pt("border-radius-s")};
787
- border: solid 1px ${Dt("color-divider")};
786
+ border-radius: ${Dt("border-radius-s")};
787
+ border: solid 1px ${Gt("color-divider")};
788
788
  }
789
789
 
790
790
  .m-card-flag {
@@ -797,11 +797,11 @@ const Ce=ht(class extends ut{constructor(t){var e;if(super(t),t.type!==dt||"styl
797
797
  box-sizing: border-box;
798
798
  border: 1px solid var(--m-card-flag-color);
799
799
  background-color: var(--m-card-flag-color);
800
- width: ${Pt("border-thick")};
801
- border-top-left-radius: ${Pt("border-radius-s")};
800
+ width: ${Dt("border-thick")};
801
+ border-top-left-radius: ${Dt("border-radius-s")};
802
802
  border-top-right-radius: 0;
803
803
  border-bottom-right-radius: 0;
804
- border-bottom-left-radius: ${Pt("border-radius-s")};
804
+ border-bottom-left-radius: ${Dt("border-radius-s")};
805
805
  }
806
806
 
807
807
  .m-card-content {
@@ -811,56 +811,56 @@ const Ce=ht(class extends ut{constructor(t){var e;if(super(t),t.type!==dt||"styl
811
811
  }
812
812
 
813
813
  ::slotted(m-divider) {
814
- --m-divider-margin-top: ${Pt("spacing-4")};
814
+ --m-divider-margin-top: ${Dt("spacing-4")};
815
815
  }
816
- `],window.customElements.define("m-card",_e);class Be extends lt{static get properties(){return{slot:{type:String}}}constructor(){super(),this.slot="body"}render(){return v`
816
+ `],window.customElements.define("m-card",Te);class Ue extends lt{static get properties(){return{slot:{type:String}}}constructor(){super(),this.slot="body"}render(){return v`
817
817
  <div class="m-card-body">
818
818
  <slot></slot>
819
819
  </div>
820
- `}}Be.styles=[H`
820
+ `}}Ue.styles=[H`
821
821
  :host {
822
- --m-card-body-padding-x: ${Pt("spacing-4")};
823
- --m-card-body-padding-y: ${Pt("spacing-4")};
822
+ --m-card-body-padding-x: ${Dt("spacing-4")};
823
+ --m-card-body-padding-y: ${Dt("spacing-4")};
824
824
  }
825
825
 
826
826
  .m-card-body {
827
827
  padding: var(--m-card-body-padding-y) var(--m-card-body-padding-x);
828
828
  }
829
- `],window.customElements.define("m-card-body",Be);class Ee extends lt{static get properties(){return{slot:{type:String}}}constructor(){super(),this.slot="subtitle"}render(){return v`
829
+ `],window.customElements.define("m-card-body",Ue);class qe extends lt{static get properties(){return{slot:{type:String}}}constructor(){super(),this.slot="subtitle"}render(){return v`
830
830
  <div class="m-card-subtitle">
831
831
  <slot></slot>
832
832
  </div>
833
- `}}Ee.styles=[H`
833
+ `}}qe.styles=[H`
834
834
  :host {
835
- --m-card-subtitle-margin-top: ${Pt("spacing-2")};
836
- --m-card-subtitle-padding-x: ${Pt("spacing-4")};
835
+ --m-card-subtitle-margin-top: ${Dt("spacing-2")};
836
+ --m-card-subtitle-padding-x: ${Dt("spacing-4")};
837
837
  --m-card-subtitle-padding-y: 0;
838
838
  }
839
839
 
840
840
  .m-card-subtitle {
841
- ${Yt("body-md")};
841
+ ${te("body-md")};
842
842
 
843
843
  margin-block-start: var(--m-card-subtitle-margin-top);
844
844
  padding: var(--m-card-subtitle-padding-y) var(--m-card-subtitle-padding-x);
845
845
 
846
- color: ${Dt("color-text-tertiary")};
846
+ color: ${Gt("color-text-tertiary")};
847
847
  }
848
- `],window.customElements.define("m-card-subtitle",Ee);class Oe extends lt{static get properties(){return{slot:{type:String}}}constructor(){super(),this.slot="title"}render(){return v`
848
+ `],window.customElements.define("m-card-subtitle",qe);class Ne extends lt{static get properties(){return{slot:{type:String}}}constructor(){super(),this.slot="title"}render(){return v`
849
849
  <div class="m-card-title">
850
850
  <slot name="leading"></slot>
851
851
  <slot></slot>
852
852
  </div>
853
- `}}Oe.styles=[H`
853
+ `}}Ne.styles=[H`
854
854
  :host {
855
- --m-card-title-padding-x: ${Pt("spacing-4")};
856
- --m-card-title-padding-top: ${Pt("spacing-4")};
855
+ --m-card-title-padding-x: ${Dt("spacing-4")};
856
+ --m-card-title-padding-top: ${Dt("spacing-4")};
857
857
  }
858
858
 
859
859
  .m-card-title {
860
860
  padding: var(--m-card-title-padding-top) var(--m-card-title-padding-x) 0;
861
861
 
862
- ${Yt("heading-sm-bold")};
863
- color: ${Dt("color-text-primary")};
862
+ ${te("heading-sm-bold")};
863
+ color: ${Gt("color-text-primary")};
864
864
  }
865
865
 
866
866
  slot[name='leading']::slotted(*) {
@@ -869,9 +869,9 @@ const Ce=ht(class extends ut{constructor(t){var e;if(super(t),t.type!==dt||"styl
869
869
  align-items: center;
870
870
  justify-content: center;
871
871
  pointer-events: none;
872
- margin-inline-end: ${Pt("spacing-1")};
872
+ margin-inline-end: ${Dt("spacing-1")};
873
873
  }
874
- `],window.customElements.define("m-card-title",Oe);const Te={delay:"0s",duration:"0.35s",easing:"ease-in-out"};var Ue,qe,Ne;class Re extends lt{static get properties(){return{name:{type:String},disabled:{type:Boolean,reflect:!0},checked:{type:Boolean,reflect:!0},indeterminate:{type:Boolean,reflect:!0}}}constructor(){super(),Ue.add(this),Ne.set(this,(t=>{const e=t.target,o=new CustomEvent("m-change",{cancelable:!1,composed:!1,bubbles:!0,detail:{checked:e.checked,indeterminate:e.indeterminate}});this.dispatchEvent(o),this.checked=e.checked,this.indeterminate=e.indeterminate})),this.name=void 0,this.disabled=!1,this.checked=!1,this.indeterminate=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","checkbox")}disconnectedCallback(){super.connectedCallback()}firstUpdated(){this.input=this.renderRoot.querySelector("input"),this.label=this.renderRoot.querySelector("label")}updated(){t(this,Ue,"m",qe).call(this)}render(){return v`
874
+ `],window.customElements.define("m-card-title",Ne);const Re={delay:"0s",duration:"0.35s",easing:"ease-in-out"};var Pe,De,Ge;class Le extends lt{static get properties(){return{name:{type:String},disabled:{type:Boolean,reflect:!0},checked:{type:Boolean,reflect:!0},indeterminate:{type:Boolean,reflect:!0}}}constructor(){super(),Pe.add(this),Ge.set(this,(t=>{const e=t.target,o=new CustomEvent("m-change",{cancelable:!1,composed:!1,bubbles:!0,detail:{checked:e.checked,indeterminate:e.indeterminate}});this.dispatchEvent(o),this.checked=e.checked,this.indeterminate=e.indeterminate})),this.name=void 0,this.disabled=!1,this.checked=!1,this.indeterminate=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","checkbox")}disconnectedCallback(){super.connectedCallback()}firstUpdated(){this.input=this.renderRoot.querySelector("input"),this.label=this.renderRoot.querySelector("label")}updated(){t(this,Pe,"m",De).call(this)}render(){return v`
875
875
  <label for="${ct(this.id)}" class="check-input-label">
876
876
  <input
877
877
  id="${ct(this.id)}"
@@ -880,23 +880,23 @@ const Ce=ht(class extends ut{constructor(t){var e;if(super(t),t.type!==dt||"styl
880
880
  class="check-input"
881
881
  ?disabled="${this.disabled}"
882
882
  ?checked="${this.checked}"
883
- @change=${t(this,Ne,"f")}
883
+ @change=${t(this,Ge,"f")}
884
884
  />
885
885
  <m-icon name="check" class="check-icon"></m-icon>
886
886
  <m-icon name="indeterminate" class="indeterminate-icon"></m-icon>
887
887
  <slot name="leading"></slot>
888
888
  <slot></slot>
889
889
  </label>
890
- `}}Ne=new WeakMap,Ue=new WeakSet,qe=function(){this.setAttribute("aria-disabled",this.disabled.toString()),this.setAttribute("aria-checked",this.indeterminate?"mixed":this.checked.toString()),this.input.indeterminate=this.indeterminate},Re.styles=[H`
891
- ${ee.focus(".check-input-label")} {
890
+ `}focus(t){var e;null===(e=this.input)||void 0===e||e.focus(t)}}Ge=new WeakMap,Pe=new WeakSet,De=function(){this.setAttribute("aria-disabled",this.disabled.toString()),this.setAttribute("aria-checked",this.indeterminate?"mixed":this.checked.toString()),this.input.indeterminate=this.indeterminate},Le.styles=[H`
891
+ ${oe.focus(".check-input-label")} {
892
892
  border-radius: 2px;
893
- outline: 1px solid ${Dt("color-primary-60")};
893
+ outline: 1px solid ${Gt("color-primary-60")};
894
894
  }
895
895
 
896
896
  .check-input-label {
897
- ${Yt("body-md")};
897
+ ${te("body-md")};
898
898
 
899
- gap: ${Pt("spacing-1")};
899
+ gap: ${Dt("spacing-1")};
900
900
  align-items: center;
901
901
  display: inline-flex;
902
902
  padding: 4px 2px;
@@ -908,66 +908,66 @@ const Ce=ht(class extends ut{constructor(t){var e;if(super(t),t.type!==dt||"styl
908
908
  }
909
909
 
910
910
  .check-input {
911
- --checkbox-input-size: ${Pt("font-size-4")};
911
+ --checkbox-input-size: ${Dt("font-size-4")};
912
912
 
913
- color: ${Dt("color-text-tertiary")};
913
+ color: ${Gt("color-text-tertiary")};
914
914
  width: var(--checkbox-input-size);
915
915
  height: var(--checkbox-input-size);
916
- background: ${Dt("color-neutral-0")};
916
+ background: ${Gt("color-neutral-0")};
917
917
  appearance: none;
918
918
  outline: none;
919
919
  border-style: solid;
920
- border-radius: ${Pt("border-radius-s")};
921
- border-color: ${Dt("color-border")};
922
- border-width: ${Pt("border-thin")};
920
+ border-radius: ${Dt("border-radius-s")};
921
+ border-color: ${Gt("color-border")};
922
+ border-width: ${Dt("border-thin")};
923
923
  margin: 0;
924
- ${Xt([{property:"border",...Te},{property:"background",...Te}])};
924
+ ${Yt([{property:"border",...Re},{property:"background",...Re}])};
925
925
  }
926
926
 
927
927
  .check-input:indeterminate,
928
928
  .check-input:checked {
929
- background: ${Dt("color-primary-60")};
930
- border-color: ${Dt("color-primary-60")};
929
+ background: ${Gt("color-primary-60")};
930
+ border-color: ${Gt("color-primary-60")};
931
931
  }
932
932
 
933
- ${te(".check-input")} {
934
- background: ${Dt("color-background-tertiary")};
933
+ ${ee(".check-input")} {
934
+ background: ${Gt("color-background-tertiary")};
935
935
  cursor: not-allowed;
936
936
  }
937
937
 
938
- ${te(".check-input:indeterminate")},
939
- ${te(".check-input:checked")} {
940
- background: ${Dt("color-neutral-40")};
941
- border-color: ${Dt("color-neutral-40")};
938
+ ${ee(".check-input:indeterminate")},
939
+ ${ee(".check-input:checked")} {
940
+ background: ${Gt("color-neutral-40")};
941
+ border-color: ${Gt("color-neutral-40")};
942
942
  }
943
943
 
944
- ${ee.hover(".check-input:indeterminate")},
945
- ${ee.hover(".check-input:checked")} {
946
- background: ${Dt("color-primary-100")};
947
- border-color: ${Dt("color-primary-100")};
944
+ ${oe.hover(".check-input:indeterminate")},
945
+ ${oe.hover(".check-input:checked")} {
946
+ background: ${Gt("color-primary-100")};
947
+ border-color: ${Gt("color-primary-100")};
948
948
  }
949
949
 
950
- ${ee.hover(".check-input")} {
951
- border-color: ${Dt("color-primary-100")};
950
+ ${oe.hover(".check-input")} {
951
+ border-color: ${Gt("color-primary-100")};
952
952
  }
953
953
 
954
954
  :host([disabled]) .check-input-label {
955
955
  cursor: not-allowed;
956
- color: ${Dt("color-text-disabled")};
956
+ color: ${Gt("color-text-disabled")};
957
957
  }
958
958
 
959
959
  .check-icon,
960
960
  .indeterminate-icon {
961
961
  --m-icon-size: 1em;
962
- --m-icon-color: ${Dt("color-neutral-0")};
962
+ --m-icon-color: ${Gt("color-neutral-0")};
963
963
 
964
964
  position: absolute;
965
965
 
966
966
  pointer-events: none;
967
- border-width: ${Pt("border-thin")};
967
+ border-width: ${Dt("border-thin")};
968
968
  border-style: solid;
969
969
  border-color: transparent;
970
- border-radius: ${Pt("border-radius-s")};
970
+ border-radius: ${Dt("border-radius-s")};
971
971
  display: none;
972
972
  }
973
973
 
@@ -975,10 +975,10 @@ const Ce=ht(class extends ut{constructor(t){var e;if(super(t),t.type!==dt||"styl
975
975
  .check-input:indeterminate:not(:checked) ~ .indeterminate-icon {
976
976
  display: inline-flex;
977
977
  }
978
- `],window.customElements.define("m-checkbox",Re);class Pe extends lt{render(){return v` <hr class="m-divider" /> `}}Pe.styles=[H`
978
+ `],window.customElements.define("m-checkbox",Le);class Ie extends lt{render(){return v` <hr class="m-divider" /> `}}Ie.styles=[H`
979
979
  .m-divider {
980
980
  border: 0;
981
- border-block-end: solid 1px ${Dt("color-divider")};
981
+ border-block-end: solid 1px ${Gt("color-divider")};
982
982
  margin-block-start: var(
983
983
  --m-divider-margin-top,
984
984
  var(--m-divider-margin-y, 0)
@@ -988,13 +988,13 @@ const Ce=ht(class extends ut{constructor(t){var e;if(super(t),t.type!==dt||"styl
988
988
  var(--m-divider-margin-y, 0)
989
989
  );
990
990
  }
991
- `],window.customElements.define("m-divider",Pe);
991
+ `],window.customElements.define("m-divider",Ie);
992
992
  /**
993
993
  * @license
994
994
  * Copyright 2021 Google LLC
995
995
  * SPDX-License-Identifier: BSD-3-Clause
996
996
  */
997
- class De extends Event{constructor(t,e,o){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=e,this.subscribe=o}}
997
+ class Ve extends Event{constructor(t,e,o){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=e,this.subscribe=o}}
998
998
  /**
999
999
  * @license
1000
1000
  * Copyright 2021 Google LLC
@@ -1005,26 +1005,26 @@ class De extends Event{constructor(t,e,o){super("context-request",{bubbles:!0,co
1005
1005
  * Copyright 2021 Google LLC
1006
1006
  * SPDX-License-Identifier: BSD-3-Clause
1007
1007
  */
1008
- class Ge{constructor(t,e,o,i=!1){this.host=t,this.context=e,this.callback=o,this.subscribe=i,this.provided=!1,this.value=void 0,this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new De(this.context,((t,e)=>{this.unsubscribe&&(this.unsubscribe!==e&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=t,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(t,e)),this.unsubscribe=e}),this.subscribe))}}
1008
+ class Je{constructor(t,e,o,i=!1){this.host=t,this.context=e,this.callback=o,this.subscribe=i,this.provided=!1,this.value=void 0,this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Ve(this.context,((t,e)=>{this.unsubscribe&&(this.unsubscribe!==e&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=t,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(t,e)),this.unsubscribe=e}),this.subscribe))}}
1009
1009
  /**
1010
1010
  * @license
1011
1011
  * Copyright 2021 Google LLC
1012
1012
  * SPDX-License-Identifier: BSD-3-Clause
1013
- */class Le{constructor(t){this.callbacks=new Map,this.updateObservers=()=>{for(const[t,e]of this.callbacks)t(this.t,e)},void 0!==t&&(this.value=t)}get value(){return this.t}set value(t){this.setValue(t)}setValue(t,e=!1){const o=e||!Object.is(t,this.t);this.t=t,o&&this.updateObservers()}addCallback(t,e){e&&(this.callbacks.has(t)||this.callbacks.set(t,(()=>{this.callbacks.delete(t)}))),t(this.value)}clearCallbacks(){this.callbacks.clear()}}
1013
+ */class Ze{constructor(t){this.callbacks=new Map,this.updateObservers=()=>{for(const[t,e]of this.callbacks)t(this.t,e)},void 0!==t&&(this.value=t)}get value(){return this.t}set value(t){this.setValue(t)}setValue(t,e=!1){const o=e||!Object.is(t,this.t);this.t=t,o&&this.updateObservers()}addCallback(t,e){e&&(this.callbacks.has(t)||this.callbacks.set(t,(()=>{this.callbacks.delete(t)}))),t(this.value)}clearCallbacks(){this.callbacks.clear()}}
1014
1014
  /**
1015
1015
  * @license
1016
1016
  * Copyright 2021 Google LLC
1017
1017
  * SPDX-License-Identifier: BSD-3-Clause
1018
- */class Ie extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}}class Ve extends Le{constructor(t,e,o){super(o),this.host=t,this.context=e,this.onContextRequest=t=>{t.context===this.context&&t.composedPath()[0]!==this.host&&(t.stopPropagation(),this.addCallback(t.callback,t.subscribe))},this.attachListeners(),this.host.addController(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest)}hostConnected(){this.host.dispatchEvent(new Ie(this.context))}}
1018
+ */class He extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}}class Fe extends Ze{constructor(t,e,o){super(o),this.host=t,this.context=e,this.onContextRequest=t=>{t.context===this.context&&t.composedPath()[0]!==this.host&&(t.stopPropagation(),this.addCallback(t.callback,t.subscribe))},this.attachListeners(),this.host.addController(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest)}hostConnected(){this.host.dispatchEvent(new He(this.context))}}
1019
1019
  /**
1020
1020
  * @license
1021
1021
  * Copyright 2021 Google LLC
1022
1022
  * SPDX-License-Identifier: BSD-3-Clause
1023
- */class Je{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{const e=this.pendingContextRequests.get(t.context);e&&(this.pendingContextRequests.delete(t.context),e.forEach((e=>{const o=e.element,i=e.callback;o&&o.dispatchEvent(new De(t.context,i,!0))})))},this.onContextRequest=t=>{if(!t.subscribe)return;const e={element:t.target,callback:t.callback};let o=this.pendingContextRequests.get(t.context);o||(o=new Set,this.pendingContextRequests.set(t.context,o)),o.add(e)}}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}}const Ze="field";let He=!1;const Fe={gap:"spacing-4",align:"stretch",justify:"flex-start"};class Ke extends lt{static get properties(){return{gap:{type:String},align:{type:String},justify:{type:String}}}constructor(){super(),this.gap=Fe.gap,this.align=Fe.align,this.justify=Fe.justify}update(t){var e;this.style.setProperty("--m-group-gap",null!==(e=this.gap&&$t(this.gap))&&void 0!==e?e:$t(Fe.gap)),this.style.setProperty("--m-group-align",this.align||Fe.align),this.style.setProperty("--m-group-justify",this.justify||Fe.justify),super.update(t)}render(){return v`<slot></slot>`}}Ke.styles=[H`
1023
+ */class Ke{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{const e=this.pendingContextRequests.get(t.context);e&&(this.pendingContextRequests.delete(t.context),e.forEach((e=>{const o=e.element,i=e.callback;o&&o.dispatchEvent(new Ve(t.context,i,!0))})))},this.onContextRequest=t=>{if(!t.subscribe)return;const e={element:t.target,callback:t.callback};let o=this.pendingContextRequests.get(t.context);o||(o=new Set,this.pendingContextRequests.set(t.context,o)),o.add(e)}}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}}const Qe="field";let Xe=!1;function Ye(t,e){var o;const i=e?$t(e):"";return t&&null!==(o="none"===t?"0":$t(t))&&void 0!==o?o:i}const to={gap:"spacing-4",align:"stretch",justify:"flex-start"};class eo extends lt{static get properties(){return{gap:{type:String},align:{type:String},justify:{type:String}}}constructor(){super(),this.gap=to.gap,this.align=to.align,this.justify=to.justify}update(t){this.style.setProperty("--m-group-gap",Ye(this.gap,to.gap)),this.style.setProperty("--m-group-align",this.align||to.align),this.style.setProperty("--m-group-justify",this.justify||to.justify),super.update(t)}render(){return v`<slot></slot>`}}eo.styles=[H`
1024
1024
  :host {
1025
- --m-group-gap: ${Pt(Fe.gap)};
1026
- --m-group-align: ${Z(Fe.align)};
1027
- --m-group-justify: ${Z(Fe.justify)};
1025
+ --m-group-gap: ${Dt(to.gap)};
1026
+ --m-group-align: ${Z(to.align)};
1027
+ --m-group-justify: ${Z(to.justify)};
1028
1028
 
1029
1029
  display: flex;
1030
1030
  flex-wrap: wrap;
@@ -1032,11 +1032,11 @@ class Ge{constructor(t,e,o,i=!1){this.host=t,this.context=e,this.callback=o,this
1032
1032
  align-items: var(--m-group-align);
1033
1033
  justify-content: var(--m-group-justify);
1034
1034
  }
1035
- `],window.customElements.define("m-group",Ke);const Qe={gap:"spacing-4",align:"stretch",justify:"flex-start"};class Xe extends lt{static get properties(){return{gap:{type:String},align:{type:String},justify:{type:String}}}constructor(){super(),this.gap=Qe.gap,this.align=Qe.align,this.justify=Qe.justify}update(t){var e;this.style.setProperty("--m-stack-gap",null!==(e=this.gap&&$t(this.gap))&&void 0!==e?e:$t(Qe.gap)),this.style.setProperty("--m-stack-align",this.align||Qe.align),this.style.setProperty("--m-stack-justify",this.justify||Qe.justify),super.update(t)}render(){return v`<slot></slot>`}}var Ye,to,eo,oo,io;Xe.styles=[H`
1035
+ `],window.customElements.define("m-group",eo);const oo={gap:"spacing-4",align:"stretch",justify:"flex-start"};class io extends lt{static get properties(){return{gap:{type:String},align:{type:String},justify:{type:String}}}constructor(){super(),this.gap=oo.gap,this.align=oo.align,this.justify=oo.justify}update(t){this.style.setProperty("--m-stack-gap",Ye(this.gap,oo.gap)),this.style.setProperty("--m-stack-align",this.align||oo.align),this.style.setProperty("--m-stack-justify",this.justify||oo.justify),super.update(t)}render(){return v`<slot></slot>`}}var ro,no,so,lo,ao;io.styles=[H`
1036
1036
  :host {
1037
- --m-stack-gap: ${Pt(Qe.gap)};
1038
- --m-stack-align: ${Z(Qe.align)};
1039
- --m-stack-justify: ${Z(Qe.justify)};
1037
+ --m-stack-gap: ${Dt(oo.gap)};
1038
+ --m-stack-align: ${Z(oo.align)};
1039
+ --m-stack-justify: ${Z(oo.justify)};
1040
1040
 
1041
1041
  display: flex;
1042
1042
  flex-direction: column;
@@ -1045,13 +1045,13 @@ class Ge{constructor(t,e,o,i=!1){this.host=t,this.context=e,this.callback=o,this
1045
1045
  align-items: var(--m-stack-align);
1046
1046
  justify-content: var(--m-stack-justify);
1047
1047
  }
1048
- `],window.customElements.define("m-stack",Xe);class ro extends me{static get properties(){return{status:{type:String},slot:{type:String}}}constructor(){super(),Ye.add(this),this.field=new Ge(this,Ze,void 0,!0),this.slot="hint"}render(){const e={"-status-default":"default"===t(this,Ye,"m",to).call(this),"-status-danger":"danger"===t(this,Ye,"m",to).call(this)};return v` <m-group
1048
+ `],window.customElements.define("m-stack",io);class co extends $e{static get properties(){return{status:{type:String},slot:{type:String}}}constructor(){super(),ro.add(this),this.field=new Je(this,Qe,void 0,!0),this.slot="hint"}render(){const e={"-status-default":"default"===t(this,ro,"m",no).call(this),"-status-danger":"danger"===t(this,ro,"m",no).call(this)};return v` <m-group
1049
1049
  gap="spacing-0-5"
1050
1050
  align="center"
1051
1051
  class=${bt(e)}
1052
1052
  >
1053
1053
  <slot name="leading"
1054
- >${"danger"===t(this,Ye,"m",to).call(this)?v`<m-icon
1054
+ >${"danger"===t(this,ro,"m",no).call(this)?v`<m-icon
1055
1055
  name="attention"
1056
1056
  size="10"
1057
1057
  color="color-danger-60"
@@ -1061,37 +1061,37 @@ class Ge{constructor(t,e,o,i=!1){this.host=t,this.context=e,this.callback=o,this
1061
1061
  class=${bt({hint:!0,...e})}
1062
1062
  ><slot></slot>
1063
1063
  </span>
1064
- </m-group>`}}Ye=new WeakSet,to=function(){var t;return this.status||(null===(t=this.field.value)||void 0===t?void 0:t.status)},ro.styles=[[H`
1064
+ </m-group>`}}ro=new WeakSet,no=function(){var t;return this.status||(null===(t=this.field.value)||void 0===t?void 0:t.status)},co.styles=[[H`
1065
1065
  :host {
1066
- --m-field-hint-color: ${Dt("color-text-tertiary")};
1066
+ --m-field-hint-color: ${Gt("color-text-tertiary")};
1067
1067
  }
1068
1068
 
1069
1069
  m-group {
1070
- ${Ht(Pt("spacing-2"))};
1070
+ ${Ft(Dt("spacing-2"))};
1071
1071
  }
1072
1072
 
1073
1073
  .-status-danger {
1074
- --m-field-hint-color: ${Dt("color-danger-60")};
1074
+ --m-field-hint-color: ${Gt("color-danger-60")};
1075
1075
  }
1076
1076
 
1077
1077
  .hint {
1078
- ${Yt("body-sm")};
1078
+ ${te("body-sm")};
1079
1079
  color: var(--m-field-hint-color);
1080
1080
  }
1081
- `]],window.customElements.define("m-field-hint",ro);class no extends me{static get properties(){return{required:{type:Boolean},size:{type:String},slot:{type:String}}}constructor(){super(),eo.add(this),this.field=new Ge(this,Ze,void 0,!0),this.slot="hint"}render(){return v`<label
1082
- class=${bt({label:!0,"-size-default":"default"===t(this,eo,"m",oo).call(this),"-size-small":"small"===t(this,eo,"m",oo).call(this)})}
1081
+ `]],window.customElements.define("m-field-hint",co);class ho extends $e{static get properties(){return{required:{type:Boolean},size:{type:String},slot:{type:String}}}constructor(){super(),so.add(this),this.field=new Je(this,Qe,void 0,!0),this.slot="hint"}render(){return v`<label
1082
+ class=${bt({label:!0,"-size-default":"default"===t(this,so,"m",lo).call(this),"-size-small":"small"===t(this,so,"m",lo).call(this)})}
1083
1083
  ><slot></slot>
1084
- ${t(this,eo,"m",io).call(this)?v`<span class="required">*</span>`:x}
1085
- </label>`}}eo=new WeakSet,oo=function(){var t;return this.size||(null===(t=this.field.value)||void 0===t?void 0:t.size)},io=function(){var t;return null!=this.required?this.required:Boolean(null===(t=this.field.value)||void 0===t?void 0:t.required)},no.styles=[[H`
1084
+ ${t(this,so,"m",ao).call(this)?v`<span class="required">*</span>`:x}
1085
+ </label>`}}so=new WeakSet,lo=function(){var t;return this.size||(null===(t=this.field.value)||void 0===t?void 0:t.size)},ao=function(){var t;return null!=this.required?this.required:Boolean(null===(t=this.field.value)||void 0===t?void 0:t.required)},ho.styles=[[H`
1086
1086
  :host {
1087
1087
  display: flex;
1088
1088
  align-items: center;
1089
1089
  justify-content: flex-start;
1090
- gap: ${Pt("spacing-0-5")};
1090
+ gap: ${Dt("spacing-0-5")};
1091
1091
  }
1092
1092
 
1093
1093
  .label {
1094
- ${Yt("body-md")};
1094
+ ${te("body-md")};
1095
1095
 
1096
1096
  display: inline-flex;
1097
1097
  align-items: center;
@@ -1100,37 +1100,37 @@ class Ge{constructor(t,e,o,i=!1){this.host=t,this.context=e,this.callback=o,this
1100
1100
  margin: 0;
1101
1101
  padding: 0;
1102
1102
 
1103
- color: ${Dt("color-text-tertiary")};
1103
+ color: ${Gt("color-text-tertiary")};
1104
1104
  }
1105
1105
 
1106
1106
  .required {
1107
- ${Yt("body-md")};
1107
+ ${te("body-md")};
1108
1108
 
1109
- color: ${Dt("color-text-error")};
1109
+ color: ${Gt("color-text-error")};
1110
1110
 
1111
1111
  content: '*';
1112
1112
 
1113
- ${It(Pt("spacing-1"))};
1113
+ ${Vt(Dt("spacing-1"))};
1114
1114
  }
1115
1115
 
1116
1116
  .label.-size-small,
1117
1117
  .label.-size-small .required {
1118
- ${Yt("body-sm")};
1118
+ ${te("body-sm")};
1119
1119
  }
1120
- `]],window.customElements.define("m-field-label",no),function(){if(He)return;(new Je).attach(document.body),He=!0}();class so extends me{static get properties(){return{label:{type:String},hint:{type:String},required:{type:Boolean},status:{type:String},size:{type:String}}}constructor(){super(),this.provider=new Ve(this,Ze,{required:!1,size:"default",status:"default"}),this.required=!1,this.status="default",this.size="default"}update(t){super.update(t),(t.has("required")||t.has("status")||t.has("size"))&&this.provider.setValue({required:this.required,status:this.status,size:this.size})}render(){return v`<m-stack gap="spacing-1">
1120
+ `]],window.customElements.define("m-field-label",ho),function(){if(Xe)return;(new Ke).attach(document.body),Xe=!0}();class uo extends $e{static get properties(){return{label:{type:String},hint:{type:String},required:{type:Boolean},status:{type:String},size:{type:String}}}constructor(){super(),this.provider=new Fe(this,Qe,{required:!1,size:"default",status:"default"}),this.required=!1,this.status="default",this.size="default"}update(t){super.update(t),(t.has("required")||t.has("status")||t.has("size"))&&this.provider.setValue({required:this.required,status:this.status,size:this.size})}render(){return v`<m-stack gap="spacing-1">
1121
1121
  ${this.label?v`<m-field-label>${this.label}</m-field-label>`:v`<slot name="label"></slot>`}
1122
1122
 
1123
1123
  <slot></slot>
1124
1124
 
1125
1125
  ${this.hint?v`<m-field-hint>${this.hint}</m-field-hint>`:v`<slot name="hint"></slot>`}
1126
- </m-stack>`}}window.customElements.define("m-field",so);const lo=["default","danger"],ao=["center","flex-start","flex-end","stretch"],co=["center","flex-start","flex-end","space-between","space-around","space-evenly"],ho={padding:"spacing-4",borderRadius:"border-radius-s",borderWidth:"border-none",borderColor:"color-background-highlight",textAlign:"left"};class uo extends lt{static get properties(){return{padding:{type:String},backgroundColor:{type:String,attribute:"background-color"},borderRadius:{type:String,attribute:"border-radius"},borderWidth:{type:String,attribute:"border-width"},borderColor:{type:String,attribute:"border-color"},textAlign:{type:String,attribute:"text-align"}}}constructor(){super(),this.padding=ho.padding,this.borderRadius=ho.borderRadius,this.borderWidth=ho.borderWidth,this.borderColor=ho.borderColor,this.textAlign=ho.textAlign}update(t){var e,o,i,r,n;this.style.setProperty("--m-box-padding",null!==(e=this.padding&&$t(this.padding))&&void 0!==e?e:$t(ho.padding)),this.style.setProperty("--m-box-background-color",null!==(o=this.backgroundColor&&$t(this.backgroundColor))&&void 0!==o?o:"transparent"),this.style.setProperty("--m-box-border-radius",null!==(i=this.borderRadius&&$t(this.borderRadius))&&void 0!==i?i:$t(ho.borderRadius)),this.style.setProperty("--m-box-border-width",null!==(r=this.borderWidth&&$t(this.borderWidth))&&void 0!==r?r:$t(ho.borderWidth)),this.style.setProperty("--m-box-border-color",null!==(n=this.borderColor&&$t(this.borderColor))&&void 0!==n?n:$t(ho.borderColor)),this.style.setProperty("--m-box-text-align",this.textAlign||ho.textAlign),super.update(t)}render(){return v`<slot></slot>`}}uo.styles=[H`
1126
+ </m-stack>`}}window.customElements.define("m-field",uo);const bo=["default","danger"],go=["center","flex-start","flex-end","stretch"],po=["center","flex-start","flex-end","space-between","space-around","space-evenly"],mo={padding:"spacing-4",borderRadius:"border-radius-s",borderWidth:"border-none",borderColor:"color-background-highlight",textAlign:"left"};class fo extends lt{static get properties(){return{padding:{type:String},backgroundColor:{type:String,attribute:"background-color"},borderRadius:{type:String,attribute:"border-radius"},borderWidth:{type:String,attribute:"border-width"},borderColor:{type:String,attribute:"border-color"},textAlign:{type:String,attribute:"text-align"}}}constructor(){super(),this.padding=mo.padding,this.borderRadius=mo.borderRadius,this.borderWidth=mo.borderWidth,this.borderColor=mo.borderColor,this.textAlign=mo.textAlign}update(t){var e,o,i,r;this.style.setProperty("--m-box-padding",Ye(this.padding,mo.padding)),this.style.setProperty("--m-box-background-color",null!==(e=this.backgroundColor&&$t(this.backgroundColor))&&void 0!==e?e:"transparent"),this.style.setProperty("--m-box-border-radius",null!==(o=this.borderRadius&&$t(this.borderRadius))&&void 0!==o?o:$t(mo.borderRadius)),this.style.setProperty("--m-box-border-width",null!==(i=this.borderWidth&&$t(this.borderWidth))&&void 0!==i?i:$t(mo.borderWidth)),this.style.setProperty("--m-box-border-color",null!==(r=this.borderColor&&$t(this.borderColor))&&void 0!==r?r:$t(mo.borderColor)),this.style.setProperty("--m-box-text-align",this.textAlign||mo.textAlign),super.update(t)}render(){return v`<slot></slot>`}}fo.styles=[H`
1127
1127
  :host {
1128
- --m-box-padding: ${Pt(ho.padding)};
1128
+ --m-box-padding: ${Dt(mo.padding)};
1129
1129
  --m-box-background-color: transparent;
1130
- --m-box-border-radius: ${Pt(ho.borderRadius)};
1131
- --m-box-border-width: ${Pt(ho.borderWidth)};
1132
- --m-box-border-color: ${Dt(ho.borderColor)};
1133
- --m-box-text-align: ${Z(ho.textAlign)};
1130
+ --m-box-border-radius: ${Dt(mo.borderRadius)};
1131
+ --m-box-border-width: ${Dt(mo.borderWidth)};
1132
+ --m-box-border-color: ${Gt(mo.borderColor)};
1133
+ --m-box-text-align: ${Z(mo.textAlign)};
1134
1134
 
1135
1135
  box-sizing: border-box;
1136
1136
 
@@ -1142,10 +1142,10 @@ class Ge{constructor(t,e,o,i=!1){this.host=t,this.context=e,this.callback=o,this
1142
1142
  border-color: var(--m-box-border-color);
1143
1143
  text-align: var(--m-box-text-align);
1144
1144
  }
1145
- `],window.customElements.define("m-box",uo);const bo={gap:"spacing-4",minColumnWidth:yt("spacing-30")};class go extends lt{static get properties(){return{gap:{type:String},rowGap:{type:String,attribute:"row-gap"},columnGap:{type:String,attribute:"column-gap"},minColumnWidth:{type:String,attribute:"min-column-width"}}}constructor(){super(),this.gap=bo.gap,this.minColumnWidth=bo.minColumnWidth}update(t){var e;t.has("gap")&&this.style.setProperty("--m-grid-gap",null!==(e=this.gap&&$t(this.gap))&&void 0!==e?e:$t(bo.gap)),t.has("rowGap")&&(this.rowGap?this.style.setProperty("--m-grid-row-gap",$t(this.rowGap)):this.style.removeProperty("--m-grid-row-gap")),t.has("columnGap")&&(this.columnGap?this.style.setProperty("--m-grid-column-gap",$t(this.columnGap)):this.style.removeProperty("--m-grid-column-gap")),t.has("minColumnWidth")&&this.style.setProperty("--m-grid-min-column-width",this.minColumnWidth||bo.minColumnWidth),super.update(t)}render(){return v`<slot></slot>`}}go.styles=[H`
1145
+ `],window.customElements.define("m-box",fo);const $o={gap:"spacing-4",minColumnWidth:yt("spacing-30")};class yo extends lt{static get properties(){return{gap:{type:String},rowGap:{type:String,attribute:"row-gap"},columnGap:{type:String,attribute:"column-gap"},minColumnWidth:{type:String,attribute:"min-column-width"}}}constructor(){super(),this.gap=$o.gap,this.minColumnWidth=$o.minColumnWidth}update(t){t.has("gap")&&this.style.setProperty("--m-grid-gap",Ye(this.gap,$o.gap)),t.has("rowGap")&&(this.rowGap?this.style.setProperty("--m-grid-row-gap",Ye(this.rowGap)):this.style.removeProperty("--m-grid-row-gap")),t.has("columnGap")&&(this.columnGap?this.style.setProperty("--m-grid-column-gap",Ye(this.columnGap)):this.style.removeProperty("--m-grid-column-gap")),t.has("minColumnWidth")&&this.style.setProperty("--m-grid-min-column-width",this.minColumnWidth||$o.minColumnWidth),super.update(t)}render(){return v`<slot></slot>`}}yo.styles=[H`
1146
1146
  :host {
1147
- --m-grid-gap: ${Pt(bo.gap)};
1148
- --m-grid-min-column-width: ${Z(bo.minColumnWidth)};
1147
+ --m-grid-gap: ${Dt($o.gap)};
1148
+ --m-grid-min-column-width: ${Z($o.minColumnWidth)};
1149
1149
 
1150
1150
  display: grid;
1151
1151
 
@@ -1157,15 +1157,15 @@ class Ge{constructor(t,e,o,i=!1){this.host=t,this.context=e,this.callback=o,this
1157
1157
  minmax(min(var(--m-grid-min-column-width), 100%), 1fr)
1158
1158
  );
1159
1159
  }
1160
- `],window.customElements.define("m-grid",go);const po={gap:"spacing-4",sideWidth:"auto",minContentWidth:"50%",reversed:!1};function mo(t){return t?"row-reverse":"row"}class fo extends lt{static get properties(){return{gap:{type:String},sideWidth:{type:String,attribute:"side-width"},minContentWidth:{type:String,attribute:"min-content-width"},reversed:{type:Boolean}}}constructor(){super(),this.gap=po.gap,this.sideWidth=po.sideWidth,this.minContentWidth=po.minContentWidth,this.reversed=po.reversed}update(t){var e;t.has("gap")&&this.style.setProperty("--m-sidebar-gap",null!==(e=this.gap&&$t(this.gap))&&void 0!==e?e:$t(po.gap)),t.has("sideWidth")&&this.style.setProperty("--m-sidebar-side-width",this.sideWidth||po.sideWidth),t.has("minContentWidth")&&this.style.setProperty("--m-sidebar-min-content-width",this.minContentWidth||po.minContentWidth),t.has("reversed")&&this.style.setProperty("--m-sidebar-flex-direction",mo(this.reversed)),super.update(t)}render(){return v`
1160
+ `],window.customElements.define("m-grid",yo);const vo={gap:"spacing-4",sideWidth:"auto",minContentWidth:"50%",reversed:!1};function wo(t){return t?"row-reverse":"row"}class xo extends lt{static get properties(){return{gap:{type:String},sideWidth:{type:String,attribute:"side-width"},minContentWidth:{type:String,attribute:"min-content-width"},reversed:{type:Boolean}}}constructor(){super(),this.gap=vo.gap,this.sideWidth=vo.sideWidth,this.minContentWidth=vo.minContentWidth,this.reversed=vo.reversed}update(t){t.has("gap")&&this.style.setProperty("--m-sidebar-gap",Ye(this.gap,vo.gap)),t.has("sideWidth")&&this.style.setProperty("--m-sidebar-side-width",this.sideWidth||vo.sideWidth),t.has("minContentWidth")&&this.style.setProperty("--m-sidebar-min-content-width",this.minContentWidth||vo.minContentWidth),t.has("reversed")&&this.style.setProperty("--m-sidebar-flex-direction",wo(this.reversed)),super.update(t)}render(){return v`
1161
1161
  <slot name="sidebar"></slot>
1162
1162
  <slot name="content"></slot>
1163
- `}}fo.styles=[H`
1163
+ `}}xo.styles=[H`
1164
1164
  :host {
1165
- --m-sidebar-gap: ${Pt(po.gap)};
1166
- --m-sidebar-flex-direction: ${Z(mo(po.reversed))};
1167
- --m-sidebar-side-width: ${Z(po.sideWidth)};
1168
- --m-sidebar-min-content-width: ${Z(po.minContentWidth)};
1165
+ --m-sidebar-gap: ${Dt(vo.gap)};
1166
+ --m-sidebar-flex-direction: ${Z(wo(vo.reversed))};
1167
+ --m-sidebar-side-width: ${Z(vo.sideWidth)};
1168
+ --m-sidebar-min-content-width: ${Z(vo.minContentWidth)};
1169
1169
 
1170
1170
  display: flex;
1171
1171
  flex-wrap: wrap;
@@ -1184,7 +1184,7 @@ class Ge{constructor(t,e,o,i=!1){this.host=t,this.context=e,this.callback=o,this
1184
1184
  flex-grow: 999;
1185
1185
  min-width: var(--m-sidebar-min-content-width);
1186
1186
  }
1187
- `],window.customElements.define("m-sidebar",fo);const $o={gap:"spacing-4",threshold:"10rem"};class yo extends lt{static get properties(){return{gap:{type:String},rowGap:{type:String,attribute:"row-gap"},columnGap:{type:String,attribute:"column-gap"},threshold:{type:String},limit:{type:Number}}}constructor(){super(),this.gap=$o.gap,this.threshold=$o.threshold}update(t){var e;super.update(t),t.has("gap")&&this.style.setProperty("--m-switcher-gap",null!==(e=this.gap&&$t(this.gap))&&void 0!==e?e:$t($o.gap)),t.has("rowGap")&&(this.rowGap?this.style.setProperty("--m-switcher-row-gap",$t(this.rowGap)):this.style.removeProperty("--m-switcher-row-gap")),t.has("columnGap")&&(this.columnGap?this.style.setProperty("--m-switcher-column-gap",$t(this.columnGap)):this.style.removeProperty("--m-switcher-column-gap")),t.has("threshold")&&this.style.setProperty("--m-switcher-threshold",this.threshold||$o.threshold)}render(){const t=this.limit?v`
1187
+ `],window.customElements.define("m-sidebar",xo);const ko={gap:"spacing-4",threshold:"10rem"};class zo extends lt{static get properties(){return{gap:{type:String},rowGap:{type:String,attribute:"row-gap"},columnGap:{type:String,attribute:"column-gap"},threshold:{type:String},limit:{type:Number}}}constructor(){super(),this.gap=ko.gap,this.threshold=ko.threshold}update(t){super.update(t),t.has("gap")&&this.style.setProperty("--m-switcher-gap",Ye(this.gap,ko.gap)),t.has("rowGap")&&(this.rowGap?this.style.setProperty("--m-switcher-row-gap",Ye(this.rowGap)):this.style.removeProperty("--m-switcher-row-gap")),t.has("columnGap")&&(this.columnGap?this.style.setProperty("--m-switcher-column-gap",Ye(this.columnGap)):this.style.removeProperty("--m-switcher-column-gap")),t.has("threshold")&&this.style.setProperty("--m-switcher-threshold",this.threshold||ko.threshold)}render(){const t=this.limit?v`
1188
1188
  <style>
1189
1189
  ::slotted(*:nth-last-child(n + ${this.limit+1})) {
1190
1190
  flex-basis: 100%;
@@ -1196,10 +1196,10 @@ class Ge{constructor(t,e,o,i=!1){this.host=t,this.context=e,this.callback=o,this
1196
1196
  `:"";return v`
1197
1197
  ${t}
1198
1198
  <slot></slot>
1199
- `}}var vo,wo,xo;yo.styles=[H`
1199
+ `}}var So,Co,Mo;zo.styles=[H`
1200
1200
  :host {
1201
- --m-switcher-gap: ${Pt($o.gap)};
1202
- --m-switcher-threshold: ${Z($o.threshold)};
1201
+ --m-switcher-gap: ${Dt(ko.gap)};
1202
+ --m-switcher-threshold: ${Z(ko.threshold)};
1203
1203
 
1204
1204
  display: flex;
1205
1205
  flex-wrap: wrap;
@@ -1212,14 +1212,14 @@ class Ge{constructor(t,e,o,i=!1){this.host=t,this.context=e,this.callback=o,this
1212
1212
  flex-basis: calc((var(--m-switcher-threshold) - 100%) * 999);
1213
1213
  flex-grow: 1;
1214
1214
  }
1215
- `],window.customElements.define("m-switcher",yo);class ko extends lt{static get properties(){return{variant:{type:String,reflect:!0},value:{type:Number,reflect:!0},max:{type:Number,reflect:!0}}}constructor(){super(),vo.add(this),this.variant="default",this.value=0,this.max=100}connectedCallback(){super.connectedCallback(),this.setAttribute("role","progressbar"),this.setAttribute("aria-valuemin","0")}updated(){this.setAttribute("aria-valuenow",String(this.value)),this.setAttribute("aria-valuemax",String(this.max))}get percentage(){return 100*t(this,vo,"a",xo)/t(this,vo,"a",wo)}get currentVariant(){return this.variant}render(){return v`
1215
+ `],window.customElements.define("m-switcher",zo);class Wo extends lt{static get properties(){return{variant:{type:String,reflect:!0},value:{type:Number,reflect:!0},max:{type:Number,reflect:!0}}}constructor(){super(),So.add(this),this.variant="default",this.value=0,this.max=100}connectedCallback(){super.connectedCallback(),this.setAttribute("role","progressbar"),this.setAttribute("aria-valuemin","0")}updated(){this.setAttribute("aria-valuenow",String(this.value)),this.setAttribute("aria-valuemax",String(this.max))}get percentage(){return 100*t(this,So,"a",Mo)/t(this,So,"a",Co)}get currentVariant(){return this.variant}render(){return v`
1216
1216
  <div class="bar">
1217
1217
  <span
1218
1218
  class=${bt({progress:!0,"-default":"default"===this.currentVariant,"-success":"success"===this.currentVariant,"-warning":"warning"===this.currentVariant,"-danger":"danger"===this.currentVariant})}
1219
- style=${Ce({width:`${this.percentage}%`})}
1219
+ style=${Ae({width:`${this.percentage}%`})}
1220
1220
  ></span>
1221
1221
  </div>
1222
- `}}vo=new WeakSet,wo=function(){return this.max<=0?100:this.max},xo=function(){return e=this.value,o=0,i=t(this,vo,"a",wo),Math.min(Math.max(o,e),i);var e,o,i},ko.styles=[H`
1222
+ `}}So=new WeakSet,Co=function(){return this.max<=0?100:this.max},Mo=function(){return e=this.value,o=0,i=t(this,So,"a",Co),Math.min(Math.max(o,e),i);var e,o,i},Wo.styles=[H`
1223
1223
  .bar {
1224
1224
  display: flex;
1225
1225
  flex-grow: 0;
@@ -1231,10 +1231,10 @@ class Ge{constructor(t,e,o,i=!1){this.host=t,this.context=e,this.callback=o,this
1231
1231
  overflow: hidden;
1232
1232
 
1233
1233
  width: 100%;
1234
- height: ${ye("8px")};
1234
+ height: ${we("8px")};
1235
1235
 
1236
- border-radius: ${Pt("border-radius-s")};
1237
- background-color: ${Dt("color-background-tertiary")};
1236
+ border-radius: ${Dt("border-radius-s")};
1237
+ background-color: ${Gt("color-background-tertiary")};
1238
1238
  }
1239
1239
 
1240
1240
  .progress {
@@ -1242,11 +1242,11 @@ class Ge{constructor(t,e,o,i=!1){this.host=t,this.context=e,this.callback=o,this
1242
1242
  top: 0;
1243
1243
  left: 0;
1244
1244
 
1245
- ${Xt([{property:"width"},{property:"background"}])};
1245
+ ${Yt([{property:"width"},{property:"background"}])};
1246
1246
 
1247
- height: ${ye("8px")};
1247
+ height: ${we("8px")};
1248
1248
 
1249
- border-radius: ${Pt("border-radius-s")};
1249
+ border-radius: ${Dt("border-radius-s")};
1250
1250
 
1251
1251
  background: var(--m-progress-bar-progress-background);
1252
1252
  }
@@ -1254,23 +1254,23 @@ class Ge{constructor(t,e,o,i=!1){this.host=t,this.context=e,this.callback=o,this
1254
1254
  .-default {
1255
1255
  --m-progress-bar-progress-background: linear-gradient(
1256
1256
  45deg,
1257
- ${Dt("color-brand-accent-1")} 22%,
1258
- ${Dt("color-brand-accent-2")} 88%
1257
+ ${Gt("color-brand-accent-1")} 22%,
1258
+ ${Gt("color-brand-accent-2")} 88%
1259
1259
  );
1260
1260
  }
1261
1261
 
1262
1262
  .-success {
1263
- --m-progress-bar-progress-background: ${Dt("color-success-60")};
1263
+ --m-progress-bar-progress-background: ${Gt("color-success-60")};
1264
1264
  }
1265
1265
 
1266
1266
  .-warning {
1267
- --m-progress-bar-progress-background: ${Dt("color-warning-60")};
1267
+ --m-progress-bar-progress-background: ${Gt("color-warning-60")};
1268
1268
  }
1269
1269
 
1270
1270
  .-danger {
1271
- --m-progress-bar-progress-background: ${Dt("color-danger-60")};
1271
+ --m-progress-bar-progress-background: ${Gt("color-danger-60")};
1272
1272
  }
1273
- `],window.customElements.define("m-progress-bar",ko);class zo extends ko{get currentVariant(){return this.percentage>=66?"success":this.percentage>=33?"warning":"danger"}}window.customElements.define("m-progress-bar-countdown",zo);const So="m-check";var Co,Mo,Wo;class jo extends lt{static get properties(){return{value:{type:String},disabled:{type:Boolean,reflect:!0},checked:{type:Boolean,reflect:!0}}}constructor(){super(),Co.set(this,(t=>{if(this.disabled)return t.preventDefault(),void t.stopPropagation();const e={detail:{value:this.value,type:"select"},bubbles:!0,composed:!1};this.dispatchEvent(new CustomEvent(So,e))})),Mo.set(this,(()=>{this.setAttribute("aria-disabled",String(this.disabled))})),Wo.set(this,(()=>{this.setAttribute("aria-checked",String(this.checked))})),this.disabled=!1,this.checked=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","radio"),this.addEventListener("click",t(this,Co,"f"))}updated(e){super.updated(e),e.has("disabled")&&t(this,Mo,"f").call(this),e.has("checked")&&t(this,Wo,"f").call(this)}render(){return v`
1273
+ `],window.customElements.define("m-progress-bar",Wo);class jo extends Wo{get currentVariant(){return this.percentage>=66?"success":this.percentage>=33?"warning":"danger"}}window.customElements.define("m-progress-bar-countdown",jo);const Ao="m-check";var _o,Bo,Eo,Oo,To;class Uo extends lt{static get properties(){return{value:{type:String},disabled:{type:Boolean,reflect:!0},checked:{type:Boolean,reflect:!0}}}constructor(){super(),_o.add(this),Eo.set(this,(t=>{if(this.disabled)return t.preventDefault(),void t.stopPropagation();const e={detail:{value:this.value,type:"select"},bubbles:!0,composed:!1};this.dispatchEvent(new CustomEvent(Ao,e))})),Oo.set(this,(()=>{this.setAttribute("aria-disabled",String(this.disabled))})),To.set(this,(()=>{this.setAttribute("aria-checked",String(this.checked))})),this.disabled=!1,this.checked=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","radio"),this.addEventListener("click",t(this,Eo,"f"))}updated(e){super.updated(e),e.has("disabled")&&t(this,Oo,"f").call(this),e.has("checked")&&t(this,To,"f").call(this)}render(){return v`
1274
1274
  <button
1275
1275
  type="button"
1276
1276
  class="radio-button"
@@ -1282,34 +1282,34 @@ class Ge{constructor(t,e,o,i=!1){this.host=t,this.context=e,this.callback=o,this
1282
1282
  <slot name="leading"></slot>
1283
1283
  <slot></slot>
1284
1284
  </button>
1285
- `}}Co=new WeakMap,Mo=new WeakMap,Wo=new WeakMap,jo.styles=[H`
1285
+ `}focus(e){var o;null===(o=t(this,_o,"a",Bo))||void 0===o||o.focus(e)}}Eo=new WeakMap,Oo=new WeakMap,To=new WeakMap,_o=new WeakSet,Bo=function(){var t,e;return null!==(e=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector("button"))&&void 0!==e?e:null},Uo.styles=[H`
1286
1286
  :host {
1287
- --m-radio-border-color: ${Dt("color-border")};
1288
- --m-radio-dot-check-color: ${Dt("color-primary-60")};
1287
+ --m-radio-border-color: ${Gt("color-border")};
1288
+ --m-radio-dot-check-color: ${Gt("color-primary-60")};
1289
1289
  --m-radio-size: 14px;
1290
1290
  --m-radio-background-color: white;
1291
- --m-radio-border-width: ${Pt("border-thin")};
1292
- --m-radio-label-color: ${Dt("color-text-tertiary")};
1293
- --m-radio-outline-color: ${Dt("color-primary-60")};
1291
+ --m-radio-border-width: ${Dt("border-thin")};
1292
+ --m-radio-label-color: ${Gt("color-text-tertiary")};
1293
+ --m-radio-outline-color: ${Gt("color-primary-60")};
1294
1294
  --m-radio-outline-offset: 2px;
1295
1295
  }
1296
1296
 
1297
1297
  .radio-button {
1298
- ${Yt("body-md")};
1298
+ ${te("body-md")};
1299
1299
  color: var(--m-radio-label-color);
1300
1300
 
1301
1301
  border: none;
1302
1302
  background: none;
1303
1303
 
1304
- height: ${Pt("global-height-small")};
1304
+ height: ${Dt("global-height-small")};
1305
1305
  display: inline-flex;
1306
- gap: ${Pt("spacing-1")};
1306
+ gap: ${Dt("spacing-1")};
1307
1307
  align-items: center;
1308
- border-radius: ${Pt("border-radius-s")};
1309
- ${Xt({property:"color"})};
1308
+ border-radius: ${Dt("border-radius-s")};
1309
+ ${Yt({property:"color"})};
1310
1310
  }
1311
1311
 
1312
- ${ee.focus(".radio-button")} {
1312
+ ${oe.focus(".radio-button")} {
1313
1313
  outline: 1px solid var(--m-radio-outline-color);
1314
1314
  outline-offset: var(--m-radio-outline-offset);
1315
1315
  }
@@ -1325,7 +1325,7 @@ class Ge{constructor(t,e,o,i=!1){this.host=t,this.context=e,this.callback=o,this
1325
1325
  position: relative;
1326
1326
  display: inline-flex;
1327
1327
 
1328
- ${Xt({property:"border-color"})};
1328
+ ${Yt({property:"border-color"})};
1329
1329
  }
1330
1330
 
1331
1331
  .radio-button .radio-input::before {
@@ -1338,7 +1338,7 @@ class Ge{constructor(t,e,o,i=!1){this.host=t,this.context=e,this.callback=o,this
1338
1338
  left: 50%;
1339
1339
  display: block;
1340
1340
  position: absolute;
1341
- ${Xt([{property:"background-color"},{property:"height",duration:"120ms"},{property:"width",duration:"120ms"}])};
1341
+ ${Yt([{property:"background-color"},{property:"height",duration:"120ms"},{property:"width",duration:"120ms"}])};
1342
1342
  }
1343
1343
 
1344
1344
  .radio-button[aria-checked='true'] .radio-input::before {
@@ -1346,18 +1346,18 @@ class Ge{constructor(t,e,o,i=!1){this.host=t,this.context=e,this.callback=o,this
1346
1346
  height: 10px;
1347
1347
  }
1348
1348
 
1349
- ${te(".radio-button")} {
1349
+ ${ee(".radio-button")} {
1350
1350
  cursor: default;
1351
- --m-radio-label-color: ${Dt("color-neutral-40")};
1352
- --m-radio-background-color: ${Dt("color-background-tertiary")};
1351
+ --m-radio-label-color: ${Gt("color-neutral-40")};
1352
+ --m-radio-background-color: ${Gt("color-background-tertiary")};
1353
1353
  }
1354
1354
 
1355
- ${te('.radio-button[aria-checked="true"]',".radio-input")} {
1356
- --m-radio-border-color: ${Dt("color-border")};
1355
+ ${ee('.radio-button[aria-checked="true"]',".radio-input")} {
1356
+ --m-radio-border-color: ${Gt("color-border")};
1357
1357
  }
1358
1358
 
1359
- ${te(".radio-button",".radio-input::before")} {
1360
- --m-radio-dot-check-color: ${Dt("color-neutral-40")};
1359
+ ${ee(".radio-button",".radio-input::before")} {
1360
+ --m-radio-dot-check-color: ${Gt("color-neutral-40")};
1361
1361
  }
1362
1362
 
1363
1363
  .radio-button .radio-input::before {
@@ -1365,36 +1365,36 @@ class Ge{constructor(t,e,o,i=!1){this.host=t,this.context=e,this.callback=o,this
1365
1365
  }
1366
1366
 
1367
1367
  .radio-button[aria-checked='true'] .radio-input {
1368
- --m-radio-dot-check-color: ${Dt("color-primary-60")};
1369
- --m-radio-border-color: ${Dt("color-primary-60")};
1368
+ --m-radio-dot-check-color: ${Gt("color-primary-60")};
1369
+ --m-radio-border-color: ${Gt("color-primary-60")};
1370
1370
  }
1371
1371
 
1372
1372
  .radio-button .radio-input {
1373
- --m-radio-border-color: ${Dt("color-border")};
1373
+ --m-radio-border-color: ${Gt("color-border")};
1374
1374
  }
1375
1375
 
1376
- ${ee.hover(".radio-button")} .radio-input {
1377
- --m-radio-border-color: ${Dt("color-primary-100")};
1378
- --m-radio-dot-check-color: ${Dt("color-primary-100")};
1376
+ ${oe.hover(".radio-button")} .radio-input {
1377
+ --m-radio-border-color: ${Gt("color-primary-100")};
1378
+ --m-radio-dot-check-color: ${Gt("color-primary-100")};
1379
1379
  }
1380
1380
 
1381
- ${ee.hover(".radio-button")} {
1382
- --m-radio-label-color: ${Dt("color-text-primary")};
1381
+ ${oe.hover(".radio-button")} {
1382
+ --m-radio-label-color: ${Gt("color-text-primary")};
1383
1383
  }
1384
1384
 
1385
- ${te(".radio-button","*")} {
1385
+ ${ee(".radio-button","*")} {
1386
1386
  pointer-event: none;
1387
1387
  }
1388
- `],window.customElements.define("m-radio",jo);var Ao,_o={};Object.defineProperty(_o,"i",{value:!0});var Bo,Eo,Oo,To,Uo,qo,No,Ro,Po,Do,Go,Lo,Io,Vo,Jo=Gt;_o.SELECTION_TYPES=["single","single-strict","multiple"],Ao=_o.default=function(t){const{type:e="multiple"}=t;return"single"===e?{type:"single",init(t){return this.select(t,new Set)},select(t,e){const o=Jo.toArray(t);if(0===o.length)return e;const i=new Set;return i.add(String(o[o.length-1])),i},unselect(t,e){const o=Jo.toArray(t);if(0===o.length||0===e.size)return e;const i=new Set(e);for(let t=0;t<o.length;t++)i.delete(String(o[t]));return i},toggle(t,e){const o=Jo.toArray(t);if(0===o.length)return e;const i=new Set;for(let t=0;t<o.length;t++){const r=String(o[t]);e.has(r)||(i.clear(),i.add(r))}return i},reset:t=>null==t?new Set:t,value(t){if(null==t||0===t.size)return null;const[e]=Array.from(t);return e}}:"single-strict"===e?{type:"single-strict",init(t){return this.select(t,new Set)},select(t,e){const o=Jo.toArray(t);if(0===o.length)return e;const i=new Set;return i.add(String(o[o.length-1])),i},unselect(t,e){const o=Jo.toArray(t);if(0===o.length||0===e.size)return e;const i=new Set(e);for(let t=0;t<o.length&&e.size>1;t++)i.delete(String(o[t]));return i},toggle(t,e){const o=Jo.toArray(t);if(0===o.length)return e;const i=new Set(e);for(let t=0;t<o.length;t++){const r=String(o[t]);e.has(r)||(i.clear(),i.add(r))}return i},reset:t=>null==t?new Set:t,value(t){if(null==t||0===t.size)return null;const[e]=Array.from(t);return e}}:{type:"multiple",init(t){return this.select(t,new Set)},select(t,e){const o=Jo.toArray(t);if(0===o.length)return e;const i=new Set(e);for(let t=0;t<o.length;t++)i.add(String(o[t]));return i},unselect(t,e){const o=Jo.toArray(t);if(0===o.length||0===e.size)return e;const i=new Set(e);for(let t=0;t<o.length;t++)i.delete(String(o[t]));return i},toggle(t,e){const o=Jo.toArray(t);if(0===o.length)return e;const i=new Set(e);for(let t=0;t<o.length;t++){const r=String(o[t]);e.has(r)?i.delete(r):i.add(r)}return i},reset:t=>null==t?new Set:t,value:t=>null==t||0===t.size?null:Array.from(t)}};class Zo{constructor(e,o,i){Bo.add(this),this.disabled=!1,this.event="m-select",Eo.set(this,(t=>{if(this.disabled)return;if(null==this.type)return void console.warn("[SelectionController] Did you forget to set the selection type?");const{detail:{type:e,value:o}}=t;switch(e){case"select":this.select(Lt(o));break;case"unselect":this.unselect(Lt(o));break;case"toggle":this.toggle(Lt(o))}})),this.init=t=>{this.host.selection=this.strategy.init(t)},this.select=e=>{this.host.selection=this.strategy.select(e,this.host.selection),t(this,Bo,"m",Oo).call(this)},this.unselect=e=>{this.host.selection=this.strategy.unselect(e,this.host.selection),t(this,Bo,"m",Oo).call(this)},this.toggle=e=>{this.host.selection=this.strategy.toggle(e,this.host.selection),t(this,Bo,"m",Oo).call(this)},this.subscribe=()=>{this.host.addEventListener(this.event,t(this,Eo,"f"))},this.unsubscribe=()=>{this.host.removeEventListener(this.event,t(this,Eo,"f"))},this.host=e,this.type=o,this.event=i,this.strategy=Ao({type:o}),this.host.addController(this)}hostConnected(){this.subscribe()}hostDisconnected(){this.unsubscribe()}hostUpdate(){null!=this.host.type&&this.host.type!==this.type&&(this.unsubscribe(),this.host.removeController(this))}}Eo=new WeakMap,Bo=new WeakSet,Oo=function(){const t={detail:{type:this.type,value:this.strategy.value(this.host.selection)},bubbles:!0,composed:!1};this.host.dispatchEvent(new CustomEvent("m-change",t))};class Ho extends lt{static get properties(){return{value:{type:String,reflect:!0},disabled:{type:Boolean,reflect:!0},selection:{state:!0},orientation:{type:String}}}constructor(){super(),To.set(this,null),Uo.set(this,null),qo.set(this,(()=>{var e;return null===(e=t(this,No,"f").call(this)[0])||void 0===e?void 0:e.value})),No.set(this,(()=>{var o,i,r;e(this,Uo,null!==(o=t(this,Uo,"f"))&&void 0!==o?o:this.shadowRoot&&this.shadowRoot.querySelector("slot"),"f");return[...null!==(r=null===(i=t(this,Uo,"f"))||void 0===i?void 0:i.assignedElements({flatten:!0}))&&void 0!==r?r:[]].filter((t=>"m-radio"===t.tagName.toLowerCase()))})),Ro.set(this,(t=>{t.checked=this.selection.has(t.value)})),Po.set(this,(t=>{t.disabled=this.disabled})),this.disabled=!1,this.selection=new Set,this.value="",this.orientation="vertical",this.type="single-strict"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","radio-group"),e(this,To,new Zo(this,this.type,So),"f")}update(e){super.update(e),e.has("value")&&t(this,To,"f")&&t(this,To,"f").init(Lt(this.value||t(this,qo,"f").call(this))),e.has("selection")&&([this.value]=this.selection)}updated(e){super.updated(e),e.has("selection")&&t(this,No,"f").call(this).forEach((e=>{t(this,Ro,"f").call(this,e)})),e.has("disabled")&&t(this,No,"f").call(this).forEach((e=>{t(this,Po,"f").call(this,e)}))}render(){return v`
1388
+ `],window.customElements.define("m-radio",Uo);var qo,No={};Object.defineProperty(No,"i",{value:!0});var Ro=Lt;const Po=(t,e)=>{const o=Ro.toArray(t);if(0===o.length)return e;const i=new Set;return i.add(String(o.at(-1))),i},Do=(t,e)=>{const o=Ro.toArray(t);if(0===o.length)return e;const i=new Set(e);for(const t of o)i.add(String(t));return i},Go={type:"single",init:t=>Po(t,new Set),select:Po,unselect(t,e){const o=Ro.toArray(t);if(0===o.length||0===e.size)return e;const i=new Set(e);for(const t of o)i.delete(String(t));return i},toggle(t,e){const o=Ro.toArray(t);if(0===o.length)return e;const i=new Set;for(const t of o){const o=String(t);e.has(o)||(i.clear(),i.add(o))}return i},reset:t=>null==t?new Set:t,value(t){if(null==t||0===t.size)return null;const[e]=Array.from(t);return e}},Lo={type:"single-strict",init:t=>Po(t,new Set),select:Po,unselect(t,e){const o=Ro.toArray(t);if(0===o.length||0===e.size)return e;const i=new Set(e);for(let t=0;t<o.length&&e.size>1;t++)i.delete(String(o[t]));return i},toggle(t,e){const o=Ro.toArray(t);if(0===o.length)return e;const i=new Set(e);for(const t of o){const o=String(t);e.has(o)||(i.clear(),i.add(o))}return i},reset:t=>null==t?new Set:t,value(t){if(null==t||0===t.size)return null;const[e]=Array.from(t);return e}},Io={type:"multiple",init:t=>Do(t,new Set),select:Do,unselect(t,e){const o=Ro.toArray(t);if(0===o.length||0===e.size)return e;const i=new Set(e);for(const t of o)i.delete(String(t));return i},toggle(t,e){const o=Ro.toArray(t);if(0===o.length)return e;const i=new Set(e);for(const t of o){const o=String(t);e.has(o)?i.delete(o):i.add(o)}return i},reset:t=>null==t?new Set:t,value:t=>null==t||0===t.size?null:Array.from(t)};var Vo,Jo,Zo,Ho,Fo,Ko,Qo,Xo,Yo,ti,ei,oi,ii,ri;No.SELECTION_TYPES=["single","single-strict","multiple"],qo=No.default=function(t){const{type:e="multiple"}=t;return"single"===e?Go:"single-strict"===e?Lo:Io};class ni{constructor(e,o,i){Vo.add(this),this.disabled=!1,this.event="m-select",Jo.set(this,(t=>{if(this.disabled)return;if(null==this.type)return void console.warn("[SelectionController] Did you forget to set the selection type?");const{detail:{type:e,value:o}}=t;switch(e){case"select":this.select(It(o));break;case"unselect":this.unselect(It(o));break;case"toggle":this.toggle(It(o))}})),this.init=t=>{this.host.selection=this.strategy.init(t)},this.select=e=>{this.host.selection=this.strategy.select(e,this.host.selection),t(this,Vo,"m",Zo).call(this)},this.unselect=e=>{this.host.selection=this.strategy.unselect(e,this.host.selection),t(this,Vo,"m",Zo).call(this)},this.toggle=e=>{this.host.selection=this.strategy.toggle(e,this.host.selection),t(this,Vo,"m",Zo).call(this)},this.subscribe=()=>{this.host.addEventListener(this.event,t(this,Jo,"f"))},this.unsubscribe=()=>{this.host.removeEventListener(this.event,t(this,Jo,"f"))},this.host=e,this.type=o,this.event=i,this.strategy=qo({type:o}),this.host.addController(this)}hostConnected(){this.subscribe()}hostDisconnected(){this.unsubscribe()}hostUpdate(){null!=this.host.type&&this.host.type!==this.type&&(this.unsubscribe(),this.host.removeController(this))}}Jo=new WeakMap,Vo=new WeakSet,Zo=function(){const t={detail:{type:this.type,value:this.strategy.value(this.host.selection)},bubbles:!0,composed:!1};this.host.dispatchEvent(new CustomEvent("m-change",t))};class si extends lt{static get properties(){return{value:{type:String,reflect:!0},disabled:{type:Boolean,reflect:!0},selection:{state:!0},orientation:{type:String}}}constructor(){super(),Ho.set(this,null),Fo.set(this,null),Ko.set(this,(()=>{var e;return null===(e=t(this,Qo,"f").call(this)[0])||void 0===e?void 0:e.value})),Qo.set(this,(()=>{var o,i,r;e(this,Fo,null!==(o=t(this,Fo,"f"))&&void 0!==o?o:this.shadowRoot&&this.shadowRoot.querySelector("slot"),"f");return[...null!==(r=null===(i=t(this,Fo,"f"))||void 0===i?void 0:i.assignedElements({flatten:!0}))&&void 0!==r?r:[]].filter((t=>"m-radio"===t.tagName.toLowerCase()))})),Xo.set(this,(t=>{t.checked=this.selection.has(t.value)})),Yo.set(this,(t=>{t.disabled=this.disabled})),this.disabled=!1,this.selection=new Set,this.value="",this.orientation="vertical",this.type="single-strict"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","radio-group"),e(this,Ho,new ni(this,this.type,Ao),"f")}update(e){super.update(e),e.has("value")&&t(this,Ho,"f")&&t(this,Ho,"f").init(It(this.value||t(this,Ko,"f").call(this))),e.has("selection")&&([this.value]=this.selection)}updated(e){super.updated(e),e.has("selection")&&t(this,Qo,"f").call(this).forEach((e=>{t(this,Xo,"f").call(this,e)})),e.has("disabled")&&t(this,Qo,"f").call(this).forEach((e=>{t(this,Yo,"f").call(this,e)}))}render(){return v`
1389
1389
  <div
1390
1390
  class=${bt({"radio-group":!0,"-vertical":"vertical"===this.orientation,"-horizontal":"horizontal"===this.orientation})}
1391
1391
  >
1392
1392
  <slot></slot>
1393
1393
  </div>
1394
- `}}To=new WeakMap,Uo=new WeakMap,qo=new WeakMap,No=new WeakMap,Ro=new WeakMap,Po=new WeakMap,Ho.styles=[H`
1394
+ `}}Ho=new WeakMap,Fo=new WeakMap,Ko=new WeakMap,Qo=new WeakMap,Xo=new WeakMap,Yo=new WeakMap,si.styles=[H`
1395
1395
  .radio-group {
1396
1396
  display: flex;
1397
- gap: ${Pt("spacing-2")};
1397
+ gap: ${Dt("spacing-2")};
1398
1398
  }
1399
1399
  .radio-group.-vertical {
1400
1400
  flex-direction: column;
@@ -1402,25 +1402,25 @@ class Ge{constructor(t,e,o,i=!1){this.host=t,this.context=e,this.callback=o,this
1402
1402
  .radio-group.-horizontal {
1403
1403
  flex-direction: row;
1404
1404
  }
1405
- `],window.customElements.define("m-radio-group",Ho);class Fo extends lt{static get properties(){return{variant:{type:String},size:{type:String},isSkeleton:{type:Boolean,attribute:"is-skeleton"}}}constructor(){super(),this.variant="neutral",this.size="default",this.isSkeleton=!1}render(){return v`
1405
+ `],window.customElements.define("m-radio-group",si);class li extends lt{static get properties(){return{variant:{type:String},size:{type:String},isSkeleton:{type:Boolean,attribute:"is-skeleton"}}}constructor(){super(),this.variant="neutral",this.size="default",this.isSkeleton=!1}render(){return v`
1406
1406
  <span
1407
1407
  class=${bt({tag:!0,"-success":"success"===this.variant,"-neutral":"neutral"===this.variant,"-warning":"warning"===this.variant,"-danger":"danger"===this.variant,"-is-skeleton":this.isSkeleton,"-size-small":"small"===this.size,"-size-default":"default"===this.size,"-size-large":"large"===this.size})}
1408
1408
  >
1409
1409
  ${this.isSkeleton?v``:v`<slot name="leading"></slot>`}
1410
1410
  <slot></slot>
1411
1411
  </span>
1412
- `}}Fo.styles=[[H`
1412
+ `}}li.styles=[[H`
1413
1413
  @keyframes skeleton-loading {
1414
1414
  0% {
1415
- background-color: ${Dt("color-background-tertiary")};
1415
+ background-color: ${Gt("color-background-tertiary")};
1416
1416
  opacity: 0.3;
1417
1417
  }
1418
1418
  50% {
1419
- background-color: ${Dt("color-background-tertiary")};
1419
+ background-color: ${Gt("color-background-tertiary")};
1420
1420
  opacity: 0.6;
1421
1421
  }
1422
1422
  100% {
1423
- background-color: ${Dt("color-background-tertiary")};
1423
+ background-color: ${Gt("color-background-tertiary")};
1424
1424
  }
1425
1425
  }
1426
1426
  `,H`
@@ -1435,55 +1435,55 @@ class Ge{constructor(t,e,o,i=!1){this.host=t,this.context=e,this.callback=o,this
1435
1435
  box-sizing: border-box;
1436
1436
  max-width: 200px;
1437
1437
  border-radius: 100px;
1438
- line-height: ${Pt("line-height-1")};
1438
+ line-height: ${Dt("line-height-1")};
1439
1439
  cursor: default;
1440
1440
  }
1441
1441
 
1442
1442
  .tag slot[name='leading']::slotted(*) {
1443
- margin-inline-end: ${Pt("spacing-1")};
1443
+ margin-inline-end: ${Dt("spacing-1")};
1444
1444
  vertical-align: middle;
1445
1445
  }
1446
1446
 
1447
1447
  .-size-small {
1448
- ${Yt("chips-sm")};
1449
- padding: ${Pt("spacing-1")} ${Pt("spacing-2")};
1450
- block-size: ${ye("18px")};
1448
+ ${te("chips-sm")};
1449
+ padding: ${Dt("spacing-1")} ${Dt("spacing-2")};
1450
+ block-size: ${we("18px")};
1451
1451
  }
1452
1452
  .-size-default {
1453
- ${Yt("chips-md")};
1454
- padding: ${Pt("spacing-2")} ${Pt("spacing-3")};
1455
- block-size: ${Pt("global-height-small")};
1453
+ ${te("chips-md")};
1454
+ padding: ${Dt("spacing-2")} ${Dt("spacing-3")};
1455
+ block-size: ${Dt("global-height-small")};
1456
1456
  }
1457
1457
  .-size-large {
1458
- ${Yt("button-lg")};
1459
- padding: ${Pt("spacing-3")} ${Pt("spacing-4")};
1460
- block-size: ${Pt("global-height-default")};
1458
+ ${te("button-lg")};
1459
+ padding: ${Dt("spacing-3")} ${Dt("spacing-4")};
1460
+ block-size: ${Dt("global-height-default")};
1461
1461
  }
1462
1462
 
1463
1463
  .-success {
1464
- color: ${Dt("color-success-60")};
1465
- background: ${Dt("color-success-20")};
1464
+ color: ${Gt("color-success-60")};
1465
+ background: ${Gt("color-success-20")};
1466
1466
  }
1467
1467
  .-neutral {
1468
- color: ${Dt("color-text-tertiary")};
1469
- background: ${Dt("color-background-tertiary")};
1468
+ color: ${Gt("color-text-tertiary")};
1469
+ background: ${Gt("color-background-tertiary")};
1470
1470
  }
1471
1471
  .-warning {
1472
- color: ${Dt("color-warning-100")};
1473
- background: ${Dt("color-warning-20")};
1472
+ color: ${Gt("color-warning-100")};
1473
+ background: ${Gt("color-warning-20")};
1474
1474
  }
1475
1475
  .-danger {
1476
- color: ${Dt("color-danger-60")};
1477
- background: ${Dt("color-danger-20")};
1476
+ color: ${Gt("color-danger-60")};
1477
+ background: ${Gt("color-danger-20")};
1478
1478
  }
1479
1479
 
1480
1480
  .-is-skeleton {
1481
1481
  ${Z("animation: skeleton-loading 1s linear infinite alternate;")};
1482
1482
  width: var(--m-tag-skeleton-width);
1483
1483
  }
1484
- `]],window.customElements.define("m-tag",Fo);class Ko extends me{static get properties(){return{clearable:{type:Boolean},disabled:{type:Boolean,reflect:!0},max:{type:String},maxLength:{type:Number,reflect:!0,attribute:"max-length"},min:{type:String},minLength:{type:Number,reflect:!0,attribute:"min-length"},pattern:{type:String},placeholder:{type:String},readOnly:{type:Boolean,reflect:!0,attribute:"read-only"},size:{type:String},status:{type:String},step:{type:String},type:{type:String},value:{type:String}}}constructor(){super(),Do.add(this),this.inputElement=null,this.field=new Ge(this,Ze,void 0,!0),this.clearable=!1,this.disabled=!1,this.placeholder=void 0,this.size="default",this.type="text",this.value=void 0,this.max=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","textbox")}render(){return v`
1484
+ `]],window.customElements.define("m-tag",li);class ai extends $e{static get properties(){return{clearable:{type:Boolean},disabled:{type:Boolean,reflect:!0},max:{type:String},maxLength:{type:Number,reflect:!0,attribute:"max-length"},min:{type:String},minLength:{type:Number,reflect:!0,attribute:"min-length"},pattern:{type:String},placeholder:{type:String},readOnly:{type:Boolean,reflect:!0,attribute:"read-only"},size:{type:String},status:{type:String},step:{type:String},type:{type:String},value:{type:String}}}constructor(){super(),ti.add(this),this.inputElement=null,this.field=new Je(this,Qe,void 0,!0),this.clearable=!1,this.disabled=!1,this.placeholder=void 0,this.size="default",this.type="text",this.value=void 0,this.max=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","textbox")}render(){return v`
1485
1485
  <div
1486
- class=${bt({container:!0,"-size-small":"small"===this.size,"-size-default":"default"===this.size,"-size-large":"large"===this.size,"is-disabled":Boolean(this.disabled),"-status-default":"default"===t(this,Do,"m",Lo).call(this),"-status-danger":"danger"===t(this,Do,"m",Lo).call(this)})}
1486
+ class=${bt({container:!0,"-size-small":"small"===this.size,"-size-default":"default"===this.size,"-size-large":"large"===this.size,"is-disabled":Boolean(this.disabled),"-status-default":"default"===t(this,ti,"m",oi).call(this),"-status-danger":"danger"===t(this,ti,"m",oi).call(this)})}
1487
1487
  >
1488
1488
  <slot name="leading"></slot>
1489
1489
  <input
@@ -1502,75 +1502,75 @@ class Ge{constructor(t,e,o,i=!1){this.host=t,this.context=e,this.callback=o,this
1502
1502
  step=${this.step||x}
1503
1503
  value="${ct(this.value)}"
1504
1504
  @change=${this.reemit}
1505
- @input=${t(this,Do,"m",Io)}
1505
+ @input=${t(this,ti,"m",ii)}
1506
1506
  />
1507
1507
  ${this.clearable?v`<m-close-button
1508
- class=${bt({clear:!0,"is-visible":t(this,Do,"m",Go).call(this)})}
1508
+ class=${bt({clear:!0,"is-visible":t(this,ti,"m",ei).call(this)})}
1509
1509
  controls="${ct(this.id)}"
1510
- @m-close=${t(this,Do,"m",Vo)}
1510
+ @m-close=${t(this,ti,"m",ri)}
1511
1511
  label="Clear input"
1512
1512
  ></m-close-button>`:x}
1513
1513
  <slot name="trailing"></slot>
1514
1514
  </div>
1515
- `}get input(){var t,e;return null==this.inputElement&&(this.inputElement=null!==(e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("input"))&&void 0!==e?e:null),this.inputElement}clear(){this.value="",this.input&&(this.input.value=""),this.emit("m-clear"),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}Do=new WeakSet,Go=function(){const t=this.value||"";return!this.disabled&&t.length>0},Lo=function(){var t;return this.status||(null===(t=this.field.value)||void 0===t?void 0:t.status)},Io=function(t){this.value=t.target.value,this.reemit(t)},Vo=function(t){t.stopPropagation(),this.clear()},Ko.styles=[H`
1515
+ `}get input(){var t,e;return null==this.inputElement&&(this.inputElement=null!==(e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("input"))&&void 0!==e?e:null),this.inputElement}clear(){this.value="",this.input&&(this.input.value=""),this.emit("m-clear"),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}ti=new WeakSet,ei=function(){const t=this.value||"";return!this.disabled&&t.length>0},oi=function(){var t;return this.status||(null===(t=this.field.value)||void 0===t?void 0:t.status)},ii=function(t){this.value=t.target.value,this.reemit(t)},ri=function(t){t.stopPropagation(),this.clear()},ai.styles=[H`
1516
1516
  :host {
1517
1517
  --m-text-field-background-color: transparent;
1518
- --m-text-field-border-color: ${Dt("color-border")};
1519
- --m-text-field-height: ${Pt("global-height-default")};
1520
- --m-text-field-outline-color: ${Dt("color-primary-100")};
1518
+ --m-text-field-border-color: ${Gt("color-border")};
1519
+ --m-text-field-height: ${Dt("global-height-default")};
1520
+ --m-text-field-outline-color: ${Gt("color-primary-100")};
1521
1521
  --m-text-field-outline-offset: 2px;
1522
- --m-text-field-padding-y: ${Pt("spacing-2")};
1523
- --m-text-field-placeholder-color: ${Dt("color-text-placeholder")};
1524
- --m-text-field-color: ${Dt("color-text-primary")};
1522
+ --m-text-field-padding-y: ${Dt("spacing-2")};
1523
+ --m-text-field-placeholder-color: ${Gt("color-text-placeholder")};
1524
+ --m-text-field-color: ${Gt("color-text-primary")};
1525
1525
  }
1526
1526
 
1527
1527
  .container {
1528
- ${Yt("body-md")};
1529
- ${Xt([{property:"background-color"},{property:"border-color"}])};
1528
+ ${te("body-md")};
1529
+ ${Yt([{property:"background-color"},{property:"border-color"}])};
1530
1530
 
1531
1531
  display: inline-flex;
1532
1532
  align-items: center;
1533
1533
  justify-content: start;
1534
- gap: ${Pt("spacing-2")};
1534
+ gap: ${Dt("spacing-2")};
1535
1535
 
1536
1536
  position: relative;
1537
1537
  box-sizing: border-box;
1538
1538
  width: 100%;
1539
1539
  block-size: var(--m-text-field-height);
1540
1540
 
1541
- ${Ht(Pt("spacing-2"))};
1541
+ ${Ft(Dt("spacing-2"))};
1542
1542
 
1543
1543
  background-color: var(--m-text-field-background-color);
1544
- border-radius: ${Pt("border-radius-s")};
1544
+ border-radius: ${Dt("border-radius-s")};
1545
1545
  border: 1px solid var(--m-text-field-border-color);
1546
1546
  }
1547
1547
 
1548
1548
  .container.-size-small {
1549
- --m-text-field-height: ${Pt("global-height-small")};
1549
+ --m-text-field-height: ${Dt("global-height-small")};
1550
1550
  --m-text-field-padding-y: 0;
1551
1551
  }
1552
1552
 
1553
1553
  .container.-size-small,
1554
1554
  .container.-size-small .text-field {
1555
- ${Yt("body-sm")};
1555
+ ${te("body-sm")};
1556
1556
  }
1557
1557
 
1558
1558
  .container.-size-large {
1559
- --m-text-field-height: ${Pt("global-height-large")};
1560
- --m-text-field-padding-y: ${Pt("spacing-3")};
1559
+ --m-text-field-height: ${Dt("global-height-large")};
1560
+ --m-text-field-padding-y: ${Dt("spacing-3")};
1561
1561
  }
1562
1562
 
1563
1563
  .container.-status-danger {
1564
- --m-text-field-border-color: ${Dt("color-danger-60")};
1564
+ --m-text-field-border-color: ${Gt("color-danger-60")};
1565
1565
  }
1566
1566
 
1567
- ${te(".container")} {
1568
- --m-text-field-background-color: ${Dt("color-background-tertiary")};
1567
+ ${ee(".container")} {
1568
+ --m-text-field-background-color: ${Gt("color-background-tertiary")};
1569
1569
 
1570
1570
  cursor: default;
1571
1571
  }
1572
1572
 
1573
- ${te(".container","*")} {
1573
+ ${ee(".container","*")} {
1574
1574
  pointer-events: none;
1575
1575
  }
1576
1576
 
@@ -1582,25 +1582,25 @@ class Ge{constructor(t,e,o,i=!1){this.host=t,this.context=e,this.callback=o,this
1582
1582
  cursor: default;
1583
1583
  }
1584
1584
 
1585
- ${ee.hover(".container")} {
1586
- --m-text-field-border-color: ${Dt("color-primary-60")};
1585
+ ${oe.hover(".container")} {
1586
+ --m-text-field-border-color: ${Gt("color-primary-60")};
1587
1587
  }
1588
1588
 
1589
- ${ee.focus(".container")} {
1590
- --m-text-field-border-color: ${Dt("color-primary-60")};
1589
+ ${oe.focus(".container")} {
1590
+ --m-text-field-border-color: ${Gt("color-primary-60")};
1591
1591
 
1592
1592
  outline: 1px solid var(--m-text-field-outline-color);
1593
1593
  outline-offset: var(--m-text-field-outline-offset);
1594
1594
  }
1595
1595
 
1596
1596
  .text-field {
1597
- ${Yt("body-md")};
1597
+ ${te("body-md")};
1598
1598
 
1599
1599
  border: none;
1600
1600
  outline: none;
1601
1601
  flex: 1;
1602
1602
 
1603
- ${Ht(0)};
1603
+ ${Ft(0)};
1604
1604
  padding-block: var(--m-text-field-padding-y);
1605
1605
 
1606
1606
  background-color: var(--m-text-field-background-color);
@@ -1611,8 +1611,8 @@ class Ge{constructor(t,e,o,i=!1){this.host=t,this.context=e,this.callback=o,this
1611
1611
  color: var(--m-text-field-placeholder-color);
1612
1612
  }
1613
1613
 
1614
- ${ee.active(".text-field")},
1615
- ${ee.focus(".text-field")} {
1614
+ ${oe.active(".text-field")},
1615
+ ${oe.focus(".text-field")} {
1616
1616
  -webkit-appearance: none;
1617
1617
  background: none;
1618
1618
  border: none;
@@ -1626,40 +1626,40 @@ class Ge{constructor(t,e,o,i=!1){this.host=t,this.context=e,this.callback=o,this
1626
1626
  .clear.is-visible {
1627
1627
  visibility: visible;
1628
1628
  }
1629
- `],window.customElements.define("m-text-field",Ko);const Qo="m-toggle";var Xo,Yo,ti,ei,oi,ii,ri,ni,si;class li extends lt{static get properties(){return{disabled:{type:Boolean},role:{type:String,reflect:!0},showCheck:{type:Boolean,attribute:"show-check"},size:{type:String},type:{type:String},value:{},selection:{state:!0}}}constructor(){super(),Xo.set(this,null),Yo.set(this,null),ti.set(this,(()=>{var o,i,r;e(this,Yo,null!==(o=t(this,Yo,"f"))&&void 0!==o?o:this.shadowRoot&&this.shadowRoot.querySelector("slot"),"f");return[...null!==(r=null===(i=t(this,Yo,"f"))||void 0===i?void 0:i.assignedElements({flatten:!0}))&&void 0!==r?r:[]].filter((t=>"m-toggle"===t.tagName.toLowerCase()))})),ei.set(this,(t=>{t.setAttribute("role",["single","single-strict"].includes(this.type)?"radio":"checkbox")})),oi.set(this,(t=>{t.checked=this.selection.has(t.value)})),ii.set(this,(t=>{t.disabled=this.disabled})),this.showCheck=!1,this.size="default",this.type="single",this.selection=new Set}update(o){super.update(o),(null!=o.get("type")&&null!=this.type||null==t(this,Xo,"f"))&&(e(this,Xo,new Zo(this,this.type,Qo),"f"),t(this,Xo,"f").init(Lt(this.value)),this.role=["single","single-strict"].includes(this.type)?"radiogroup":"group"),o.has("value")&&t(this,Xo,"f").init(Lt(this.value))}updated(e){super.updated(e),e.has("selection")&&t(this,ti,"f").call(this).forEach((e=>{t(this,oi,"f").call(this,e)})),e.has("disabled")&&t(this,ti,"f").call(this).forEach((e=>{t(this,ii,"f").call(this,e)})),e.has("role")&&t(this,ti,"f").call(this).forEach((e=>{t(this,ei,"f").call(this,e)}))}render(){return v`
1629
+ `],window.customElements.define("m-text-field",ai);const ci="m-toggle";var di,hi,ui,bi,gi,pi,mi,fi,$i,yi,vi;class wi extends lt{static get properties(){return{disabled:{type:Boolean},role:{type:String,reflect:!0},showCheck:{type:Boolean,attribute:"show-check"},size:{type:String},type:{type:String},value:{},selection:{state:!0}}}constructor(){super(),di.set(this,null),hi.set(this,null),ui.set(this,(()=>{var o,i,r;e(this,hi,null!==(o=t(this,hi,"f"))&&void 0!==o?o:this.shadowRoot&&this.shadowRoot.querySelector("slot"),"f");return[...null!==(r=null===(i=t(this,hi,"f"))||void 0===i?void 0:i.assignedElements({flatten:!0}))&&void 0!==r?r:[]].filter((t=>"m-toggle"===t.tagName.toLowerCase()))})),bi.set(this,(t=>{t.setAttribute("role",["single","single-strict"].includes(this.type)?"radio":"checkbox")})),gi.set(this,(t=>{t.checked=this.selection.has(t.value)})),pi.set(this,(t=>{t.disabled=this.disabled})),this.showCheck=!1,this.size="default",this.type="single",this.selection=new Set}update(o){super.update(o),(null!=o.get("type")&&null!=this.type||null==t(this,di,"f"))&&(e(this,di,new ni(this,this.type,ci),"f"),t(this,di,"f").init(It(this.value)),this.role=["single","single-strict"].includes(this.type)?"radiogroup":"group"),o.has("value")&&t(this,di,"f").init(It(this.value))}updated(e){super.updated(e),e.has("selection")&&t(this,ui,"f").call(this).forEach((e=>{t(this,gi,"f").call(this,e)})),e.has("disabled")&&t(this,ui,"f").call(this).forEach((e=>{t(this,pi,"f").call(this,e)})),e.has("role")&&t(this,ui,"f").call(this).forEach((e=>{t(this,bi,"f").call(this,e)}))}render(){return v`
1630
1630
  <m-group
1631
1631
  class=${bt({"toggle-group":!0,"-single":"single"===this.type,"-single-strict":"single-strict"===this.type,"-multiple":"multiple"===this.type,"-small":"small"===this.size,"-show-check":this.showCheck})}
1632
1632
  gap="spacing-1"
1633
1633
  >
1634
1634
  <slot></slot>
1635
1635
  </m-group>
1636
- `}}Xo=new WeakMap,Yo=new WeakMap,ti=new WeakMap,ei=new WeakMap,oi=new WeakMap,ii=new WeakMap,li.styles=[[H`
1636
+ `}}di=new WeakMap,hi=new WeakMap,ui=new WeakMap,bi=new WeakMap,gi=new WeakMap,pi=new WeakMap,wi.styles=[[H`
1637
1637
  .toggle-group {
1638
1638
  inline-size: max-content;
1639
1639
 
1640
- border: 1px solid ${Dt("color-border")};
1641
- padding: ${Pt("spacing-1")};
1640
+ border: 1px solid ${Gt("color-border")};
1641
+ padding: ${Dt("spacing-1")};
1642
1642
 
1643
- border-radius: ${Pt("border-radius-s")};
1643
+ border-radius: ${Dt("border-radius-s")};
1644
1644
  box-sizing: border-box;
1645
1645
 
1646
- block-size: ${Pt("global-height-default")};
1646
+ block-size: ${Dt("global-height-default")};
1647
1647
  }
1648
1648
 
1649
1649
  .toggle-group.-small {
1650
- block-size: ${Pt("global-height-small")};
1650
+ block-size: ${Dt("global-height-small")};
1651
1651
  }
1652
1652
 
1653
1653
  .toggle-group.-small ::slotted(m-toggle) {
1654
1654
  --m-toggle-base-size: 18px;
1655
- --m-toggle-font-size: ${Pt("font-size-2")};
1655
+ --m-toggle-font-size: ${Dt("font-size-2")};
1656
1656
  --m-toggle-icon-size: 10px;
1657
1657
  }
1658
1658
 
1659
1659
  .toggle-group.-show-check ::slotted(m-toggle[aria-checked='true']) {
1660
1660
  --m-toggle-icon-display: inline-flex;
1661
1661
  }
1662
- `]],window.customElements.define("m-toggle-group",li);class ai extends lt{static get properties(){return{checked:{type:Boolean},disabled:{type:Boolean,reflect:!0},role:{type:String,reflect:!0},value:{type:String}}}constructor(){super(),ri.set(this,(()=>{if(this.disabled)return;this.checked=!this.checked;const t={detail:{value:this.value,type:"toggle"},bubbles:!0,composed:!1};this.dispatchEvent(new CustomEvent(Qo,t))})),ni.set(this,(()=>{this.setAttribute("aria-disabled",String(this.disabled))})),si.set(this,(()=>{this.setAttribute("aria-checked",String(this.checked))})),this.disabled=!1,this.checked=!1}connectedCallback(){super.connectedCallback(),this.addEventListener("click",t(this,ri,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",t(this,ri,"f"))}updated(e){super.updated(e),e.has("disabled")&&t(this,ni,"f").call(this),e.has("checked")&&t(this,si,"f").call(this)}render(){return v`
1662
+ `]],window.customElements.define("m-toggle-group",wi);class xi extends lt{static get properties(){return{checked:{type:Boolean},disabled:{type:Boolean,reflect:!0},role:{type:String,reflect:!0},value:{type:String}}}constructor(){super(),mi.add(this),$i.set(this,(()=>{if(this.disabled)return;this.checked=!this.checked;const t={detail:{value:this.value,type:"toggle"},bubbles:!0,composed:!1};this.dispatchEvent(new CustomEvent(ci,t))})),yi.set(this,(()=>{this.setAttribute("aria-disabled",String(this.disabled))})),vi.set(this,(()=>{this.setAttribute("aria-checked",String(this.checked))})),this.disabled=!1,this.checked=!1}connectedCallback(){super.connectedCallback(),this.addEventListener("click",t(this,$i,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",t(this,$i,"f"))}updated(e){super.updated(e),e.has("disabled")&&t(this,yi,"f").call(this),e.has("checked")&&t(this,vi,"f").call(this)}render(){return v`
1663
1663
  <button
1664
1664
  type="button"
1665
1665
  class=${bt({button:!0,toggle:!0})}
@@ -1673,40 +1673,40 @@ class Ge{constructor(t,e,o,i=!1){this.host=t,this.context=e,this.callback=o,this
1673
1673
 
1674
1674
  <slot></slot>
1675
1675
  </button>
1676
- `}}ri=new WeakMap,ni=new WeakMap,si=new WeakMap,ai.styles=[[oe(),H`
1676
+ `}focus(e){var o;null===(o=t(this,mi,"a",fi))||void 0===o||o.focus(e)}}$i=new WeakMap,yi=new WeakMap,vi=new WeakMap,mi=new WeakSet,fi=function(){var t,e;return null!==(e=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector("button"))&&void 0!==e?e:null},xi.styles=[[ie(),H`
1677
1677
  :host {
1678
1678
  /*
1679
1679
  * These custom properties are here because they are meant to be
1680
1680
  * overriden via toggle-group styles.
1681
1681
  */
1682
1682
  --m-toggle-base-size: 30px;
1683
- --m-toggle-font-size: ${Pt("font-size-3")};
1683
+ --m-toggle-font-size: ${Dt("font-size-3")};
1684
1684
  --m-toggle-icon-size: 12px;
1685
1685
  --m-toggle-icon-display: none;
1686
1686
  }
1687
1687
 
1688
1688
  .toggle {
1689
1689
  --m-button-border-color: transparent;
1690
- --m-button-color: ${Dt("color-primary-100")};
1691
- --m-button-padding-x: ${Pt("spacing-2")};
1690
+ --m-button-color: ${Gt("color-primary-100")};
1691
+ --m-button-padding-x: ${Dt("spacing-2")};
1692
1692
  --m-button-padding-y: 0;
1693
1693
 
1694
1694
  --m-button-base-size: var(--m-toggle-base-size);
1695
1695
  --m-button-font-size: var(--m-toggle-font-size);
1696
1696
  }
1697
1697
 
1698
- ${te([".toggle"])} {
1699
- --m-button-color: ${Dt("color-text-disabled")};
1698
+ ${ee([".toggle"])} {
1699
+ --m-button-color: ${Gt("color-text-disabled")};
1700
1700
  }
1701
1701
 
1702
1702
  [aria-checked='true'] {
1703
- --m-button-background-color: ${Dt("color-primary-20")};
1703
+ --m-button-background-color: ${Gt("color-primary-20")};
1704
1704
  }
1705
1705
 
1706
- ${ee.hover(".toggle")} {
1707
- --m-button-background-color: ${Dt("color-background-tertiary")};
1708
- --m-button-border-color: ${Dt("color-background-tertiary")};
1709
- --m-button-color: ${Dt("color-primary-100")};
1706
+ ${oe.hover(".toggle")} {
1707
+ --m-button-background-color: ${Gt("color-background-tertiary")};
1708
+ --m-button-border-color: ${Gt("color-background-tertiary")};
1709
+ --m-button-color: ${Gt("color-primary-100")};
1710
1710
  }
1711
1711
 
1712
1712
  .check-icon {
@@ -1715,5 +1715,5 @@ class Ge{constructor(t,e,o,i=!1){this.host=t,this.context=e,this.callback=o,this
1715
1715
 
1716
1716
  display: var(--m-toggle-icon-display);
1717
1717
  }
1718
- `]],window.customElements.define("m-toggle",ai);export{ao as ALIGN_ITEMS_VALUES,Ae as Banner,de as BannerActionPrimary,he as BannerActionSecondary,ue as BannerActions,be as BannerDescription,ge as BannerIcon,pe as BannerTitle,uo as Box,ce as Button,_e as Card,Be as CardBody,Ee as CardSubtitle,Oe as CardTitle,Re as Checkbox,Se as CloseButton,Pe as Divider,lo as FIELD_STATUSES,so as Field,ro as FieldHint,no as FieldLabel,go as Grid,Ke as Group,co as JUSTIFY_CONTENT_VALUES,ko as ProgressBar,zo as ProgressBarCountdown,jo as Radio,Ho as RadioGroup,fo as Sidebar,Xe as Stack,yo as Switcher,Fo as Tag,Me as Text,Ko as TextField,ai as Toggle,li as ToggleGroup,ho as defaultBoxProps,bo as defaultGridProps,Fe as defaultGroupProps,po as defaultSidebarProps,Qe as defaultStackProps,$o as defaultSwitcherProps};
1718
+ `]],window.customElements.define("m-toggle",xi);export{go as ALIGN_ITEMS_VALUES,Oe as Banner,ue as BannerActionPrimary,be as BannerActionSecondary,ge as BannerActions,pe as BannerDescription,me as BannerIcon,fe as BannerTitle,fo as Box,he as Button,Te as Card,Ue as CardBody,qe as CardSubtitle,Ne as CardTitle,Le as Checkbox,je as CloseButton,Ie as Divider,bo as FIELD_STATUSES,uo as Field,co as FieldHint,ho as FieldLabel,yo as Grid,eo as Group,po as JUSTIFY_CONTENT_VALUES,Wo as ProgressBar,jo as ProgressBarCountdown,Uo as Radio,si as RadioGroup,xo as Sidebar,io as Stack,zo as Switcher,li as Tag,_e as Text,ai as TextField,xi as Toggle,wi as ToggleGroup,mo as defaultBoxProps,$o as defaultGridProps,to as defaultGroupProps,vo as defaultSidebarProps,oo as defaultStackProps,ko as defaultSwitcherProps};
1719
1719
  //# sourceMappingURL=index.js.map