@loadsmart/miranda-wc 1.8.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/button/base-button.styles.d.ts +3 -0
- package/dist/components/button/base-button.styles.d.ts.map +1 -0
- package/dist/components/button/button.d.ts +2 -2
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/button/button.styles.d.ts +1 -1
- package/dist/components/button/button.styles.d.ts.map +1 -1
- package/dist/components/card/card-body.d.ts +1 -1
- package/dist/components/card/card-subtitle.d.ts +1 -1
- package/dist/components/card/card-title.d.ts +1 -1
- package/dist/components/card/card.d.ts +1 -1
- package/dist/components/divider/divider.d.ts +1 -1
- package/dist/components/layout/box/box.d.ts +1 -1
- package/dist/components/layout/grid/grid.d.ts +1 -1
- package/dist/components/layout/group/group.d.ts +1 -1
- package/dist/components/layout/layout.types.d.ts +1 -1
- package/dist/components/layout/layout.types.d.ts.map +1 -1
- package/dist/components/layout/sidebar/sidebar.d.ts +1 -1
- package/dist/components/layout/stack/stack.d.ts +1 -1
- package/dist/components/progress-bar/progress-bar.d.ts +1 -1
- package/dist/components/text/text.d.ts +2 -2
- package/dist/components/text/text.d.ts.map +1 -1
- package/dist/components/toggle-group/index.d.ts +5 -0
- package/dist/components/toggle-group/index.d.ts.map +1 -0
- package/dist/components/toggle-group/toggle-group.constants.d.ts +2 -0
- package/dist/components/toggle-group/toggle-group.constants.d.ts.map +1 -0
- package/dist/components/toggle-group/toggle-group.cy.d.ts +3 -0
- package/dist/components/toggle-group/toggle-group.cy.d.ts.map +1 -0
- package/dist/components/toggle-group/toggle-group.d.ts +88 -0
- package/dist/components/toggle-group/toggle-group.d.ts.map +1 -0
- package/dist/components/toggle-group/toggle-group.styles.d.ts +3 -0
- package/dist/components/toggle-group/toggle-group.styles.d.ts.map +1 -0
- package/dist/components/toggle-group/toggle.d.ts +56 -0
- package/dist/components/toggle-group/toggle.d.ts.map +1 -0
- package/dist/components/toggle-group/toggle.styles.d.ts +3 -0
- package/dist/components/toggle-group/toggle.styles.d.ts.map +1 -0
- package/dist/controllers/selection/index.d.ts +3 -0
- package/dist/controllers/selection/index.d.ts.map +1 -0
- package/dist/controllers/selection/selection.controller.d.ts +41 -0
- package/dist/controllers/selection/selection.controller.d.ts.map +1 -0
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +580 -459
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,150 +3,399 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const t=window,o=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,
|
|
6
|
+
const t=window,o=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),n=new WeakMap;class e{constructor(t,o,n){if(this._$cssResult$=!0,n!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=o}get styleSheet(){let t=this.o;const i=this.t;if(o&&void 0===t){const o=void 0!==i&&1===i.length;o&&(t=n.get(i)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&n.set(i,t))}return t}toString(){return this.cssText}}const r=t=>new e("string"==typeof t?t:t+"",void 0,i),s=(t,...o)=>{const n=1===t.length?t[0]:o.reduce(((o,i,n)=>o+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[n+1]),t[0]);return new e(n,t,i)},l=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let o="";for(const i of t.cssRules)o+=i.cssText;return r(o)})(t):t
|
|
7
7
|
/**
|
|
8
8
|
* @license
|
|
9
9
|
* Copyright 2017 Google LLC
|
|
10
10
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
-
*/;var
|
|
11
|
+
*/;var a;const d=window,c=d.trustedTypes,u=c?c.emptyScript:"",h=d.reactiveElementPolyfillSupport,g={toAttribute(t,o){switch(o){case Boolean:t=t?u:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,o){let i=t;switch(o){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},b=(t,o)=>o!==t&&(o==o||t==t),m={attribute:!0,type:String,converter:g,reflect:!1,hasChanged:b};class p extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var o;null!==(o=this.h)&&void 0!==o||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((o,i)=>{const n=this._$Ep(i,o);void 0!==n&&(this._$Ev.set(n,i),t.push(n))})),t}static createProperty(t,o=m){if(o.state&&(o.attribute=!1),this.finalize(),this.elementProperties.set(t,o),!o.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,n=this.getPropertyDescriptor(t,i,o);void 0!==n&&Object.defineProperty(this.prototype,t,n)}}static getPropertyDescriptor(t,o,i){return{get(){return this[o]},set(n){const e=this[t];this[o]=n,this.requestUpdate(t,e,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||m}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,o=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of o)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const o=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)o.unshift(l(t))}else void 0!==t&&o.push(l(t));return o}static _$Ep(t,o){const i=o.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var o,i;(null!==(o=this._$ES)&&void 0!==o?o:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var o;null===(o=this._$ES)||void 0===o||o.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,o)=>{this.hasOwnProperty(o)&&(this._$Ei.set(o,this[o]),delete this[o])}))}createRenderRoot(){var i;const n=null!==(i=this.shadowRoot)&&void 0!==i?i:this.attachShadow(this.constructor.shadowRootOptions);return((i,n)=>{o?i.adoptedStyleSheets=n.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):n.forEach((o=>{const n=document.createElement("style"),e=t.litNonce;void 0!==e&&n.setAttribute("nonce",e),n.textContent=o.cssText,i.appendChild(n)}))})(n,this.constructor.elementStyles),n}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var o;return null===(o=t.hostConnected)||void 0===o?void 0:o.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var o;return null===(o=t.hostDisconnected)||void 0===o?void 0:o.call(t)}))}attributeChangedCallback(t,o,i){this._$AK(t,i)}_$EO(t,o,i=m){var n;const e=this.constructor._$Ep(t,i);if(void 0!==e&&!0===i.reflect){const r=(void 0!==(null===(n=i.converter)||void 0===n?void 0:n.toAttribute)?i.converter:g).toAttribute(o,i.type);this._$El=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$El=null}}_$AK(t,o){var i;const n=this.constructor,e=n._$Ev.get(t);if(void 0!==e&&this._$El!==e){const t=n.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:g;this._$El=e,this[e]=r.fromAttribute(o,t.type),this._$El=null}}requestUpdate(t,o,i){let n=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||b)(this[t],o)?(this._$AL.has(t)||this._$AL.set(t,o),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,o)=>this[o]=t)),this._$Ei=void 0);let o=!1;const i=this._$AL;try{o=this.shouldUpdate(i),o?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var o;return null===(o=t.hostUpdate)||void 0===o?void 0:o.call(t)})),this.update(i)):this._$Ek()}catch(t){throw o=!1,this._$Ek(),t}o&&this._$AE(i)}willUpdate(t){}_$AE(t){var o;null===(o=this._$ES)||void 0===o||o.forEach((t=>{var o;return null===(o=t.hostUpdated)||void 0===o?void 0:o.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,o)=>this._$EO(o,this[o],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
|
|
12
12
|
/**
|
|
13
13
|
* @license
|
|
14
14
|
* Copyright 2017 Google LLC
|
|
15
15
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
16
16
|
*/
|
|
17
|
-
var f;p.finalized=!0,p.elementProperties=new Map,p.elementStyles=[],p.shadowRootOptions={mode:"open"},null==h||h({ReactiveElement:p}),(null!==(
|
|
17
|
+
var f;p.finalized=!0,p.elementProperties=new Map,p.elementStyles=[],p.shadowRootOptions={mode:"open"},null==h||h({ReactiveElement:p}),(null!==(a=d.reactiveElementVersions)&&void 0!==a?a:d.reactiveElementVersions=[]).push("1.4.1");const v=window,$=v.trustedTypes,y=$?$.createPolicy("lit-html",{createHTML:t=>t}):void 0,x=`lit$${(Math.random()+"").slice(9)}$`,w="?"+x,k=`<${w}>`,S=document,z=(t="")=>S.createComment(t),A=t=>null===t||"object"!=typeof t&&"function"!=typeof t,_=Array.isArray,C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j=/-->/g,E=/>/g,M=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),T=/'/g,O=/"/g,U=/^(?:script|style|textarea|title)$/i,N=Symbol.for("lit-noChange"),R=Symbol.for("lit-nothing"),W=new WeakMap,L=S.createTreeWalker(S,129,null,!1);class B{constructor({strings:t,_$litType$:o},i){let n;this.parts=[];let e=0,r=0;const s=t.length-1,l=this.parts,[a,d]=((t,o)=>{const i=t.length-1,n=[];let e,r=2===o?"<svg>":"",s=C;for(let o=0;o<i;o++){const i=t[o];let l,a,d=-1,c=0;for(;c<i.length&&(s.lastIndex=c,a=s.exec(i),null!==a);)c=s.lastIndex,s===C?"!--"===a[1]?s=j:void 0!==a[1]?s=E:void 0!==a[2]?(U.test(a[2])&&(e=RegExp("</"+a[2],"g")),s=M):void 0!==a[3]&&(s=M):s===M?">"===a[0]?(s=null!=e?e:C,d=-1):void 0===a[1]?d=-2:(d=s.lastIndex-a[2].length,l=a[1],s=void 0===a[3]?M:'"'===a[3]?O:T):s===O||s===T?s=M:s===j||s===E?s=C:(s=M,e=void 0);const u=s===M&&t[o+1].startsWith("/>")?" ":"";r+=s===C?i+k:d>=0?(n.push(l),i.slice(0,d)+"$lit$"+i.slice(d)+x+u):i+x+(-2===d?(n.push(void 0),o):u)}const l=r+(t[i]||"<?>")+(2===o?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==y?y.createHTML(l):l,n]})(t,o);if(this.el=B.createElement(a,i),L.currentNode=this.el.content,2===o){const t=this.el.content,o=t.firstChild;o.remove(),t.append(...o.childNodes)}for(;null!==(n=L.nextNode())&&l.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const o of n.getAttributeNames())if(o.endsWith("$lit$")||o.startsWith(x)){const i=d[r++];if(t.push(o),void 0!==i){const t=n.getAttribute(i.toLowerCase()+"$lit$").split(x),o=/([.?@])?(.*)/.exec(i);l.push({type:1,index:e,name:o[2],strings:t,ctor:"."===o[1]?G:"?"===o[1]?H:"@"===o[1]?q:Z})}else l.push({type:6,index:e})}for(const o of t)n.removeAttribute(o)}if(U.test(n.tagName)){const t=n.textContent.split(x),o=t.length-1;if(o>0){n.textContent=$?$.emptyScript:"";for(let i=0;i<o;i++)n.append(t[i],z()),L.nextNode(),l.push({type:2,index:++e});n.append(t[o],z())}}}else if(8===n.nodeType)if(n.data===w)l.push({type:2,index:e});else{let t=-1;for(;-1!==(t=n.data.indexOf(x,t+1));)l.push({type:7,index:e}),t+=x.length-1}e++}}static createElement(t,o){const i=S.createElement("template");return i.innerHTML=t,i}}function D(t,o,i=t,n){var e,r,s,l;if(o===N)return o;let a=void 0!==n?null===(e=i._$Co)||void 0===e?void 0:e[n]:i._$Cl;const d=A(o)?void 0:o._$litDirective$;return(null==a?void 0:a.constructor)!==d&&(null===(r=null==a?void 0:a._$AO)||void 0===r||r.call(a,!1),void 0===d?a=void 0:(a=new d(t),a._$AT(t,i,n)),void 0!==n?(null!==(s=(l=i)._$Co)&&void 0!==s?s:l._$Co=[])[n]=a:i._$Cl=a),void 0!==a&&(o=D(t,a._$AS(t,o.values),a,n)),o}class I{constructor(t,o){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var o;const{el:{content:i},parts:n}=this._$AD,e=(null!==(o=null==t?void 0:t.creationScope)&&void 0!==o?o:S).importNode(i,!0);L.currentNode=e;let r=L.nextNode(),s=0,l=0,a=n[0];for(;void 0!==a;){if(s===a.index){let o;2===a.type?o=new P(r,r.nextSibling,this,t):1===a.type?o=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(o=new K(r,this,t)),this.u.push(o),a=n[++l]}s!==(null==a?void 0:a.index)&&(r=L.nextNode(),s++)}return e}p(t){let o=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,o),o+=i.strings.length-2):i._$AI(t[o])),o++}}class P{constructor(t,o,i,n){var e;this.type=2,this._$AH=R,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=i,this.options=n,this._$Cm=null===(e=null==n?void 0:n.isConnected)||void 0===e||e}get _$AU(){var t,o;return null!==(o=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==o?o:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===t.nodeType&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=D(this,t,o),A(t)?t===R||null==t||""===t?(this._$AH!==R&&this._$AR(),this._$AH=R):t!==this._$AH&&t!==N&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>_(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,o=this._$AB){return this._$AA.parentNode.insertBefore(t,o)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==R&&A(this._$AH)?this._$AA.nextSibling.data=t:this.T(S.createTextNode(t)),this._$AH=t}$(t){var o;const{values:i,_$litType$:n}=t,e="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=B.createElement(n.h,this.options)),n);if((null===(o=this._$AH)||void 0===o?void 0:o._$AD)===e)this._$AH.p(i);else{const t=new I(e,this),o=t.v(this.options);t.p(i),this.T(o),this._$AH=t}}_$AC(t){let o=W.get(t.strings);return void 0===o&&W.set(t.strings,o=new B(t)),o}k(t){_(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let i,n=0;for(const e of t)n===o.length?o.push(i=new P(this.O(z()),this.O(z()),this,this.options)):i=o[n],i._$AI(e),n++;n<o.length&&(this._$AR(i&&i._$AB.nextSibling,n),o.length=n)}_$AR(t=this._$AA.nextSibling,o){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var o;void 0===this._$AM&&(this._$Cm=t,null===(o=this._$AP)||void 0===o||o.call(this,t))}}class Z{constructor(t,o,i,n,e){this.type=1,this._$AH=R,this._$AN=void 0,this.element=t,this.name=o,this._$AM=n,this.options=e,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=R}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,o=this,i,n){const e=this.strings;let r=!1;if(void 0===e)t=D(this,t,o,0),r=!A(t)||t!==this._$AH&&t!==N,r&&(this._$AH=t);else{const n=t;let s,l;for(t=e[0],s=0;s<e.length-1;s++)l=D(this,n[i+s],o,s),l===N&&(l=this._$AH[s]),r||(r=!A(l)||l!==this._$AH[s]),l===R?t=R:t!==R&&(t+=(null!=l?l:"")+e[s+1]),this._$AH[s]=l}r&&!n&&this.j(t)}j(t){t===R?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class G extends Z{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===R?void 0:t}}const J=$?$.emptyScript:"";class H extends Z{constructor(){super(...arguments),this.type=4}j(t){t&&t!==R?this.element.setAttribute(this.name,J):this.element.removeAttribute(this.name)}}class q extends Z{constructor(t,o,i,n,e){super(t,o,i,n,e),this.type=5}_$AI(t,o=this){var i;if((t=null!==(i=D(this,t,o,0))&&void 0!==i?i:R)===N)return;const n=this._$AH,e=t===R&&n!==R||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==R&&(n===R||e);e&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var o,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(o=this.options)||void 0===o?void 0:o.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class K{constructor(t,o,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){D(this,t)}}const V=v.litHtmlPolyfillSupport;
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
21
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var F;null==V||V(B,P),(null!==(f=v.litHtmlVersions)&&void 0!==f?f:v.litHtmlVersions=[]).push("2.4.0");const Q=window,X=Q.trustedTypes,Y=X?X.createPolicy("lit-html",{createHTML:t=>t}):void 0,tt=`lit$${(Math.random()+"").slice(9)}$`,ot="?"+tt,it=`<${ot}>`,nt=document,et=(t="")=>nt.createComment(t),rt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,st=Array.isArray,lt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,at=/-->/g,dt=/>/g,ct=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),ut=/'/g,ht=/"/g,gt=/^(?:script|style|textarea|title)$/i,bt=(t=>(o,...i)=>({_$litType$:t,strings:o,values:i}))(1),mt=Symbol.for("lit-noChange"),pt=Symbol.for("lit-nothing"),ft=new WeakMap,vt=nt.createTreeWalker(nt,129,null,!1),$t=(t,o)=>{const i=t.length-1,n=[];let e,r=2===o?"<svg>":"",s=lt;for(let o=0;o<i;o++){const i=t[o];let l,a,d=-1,c=0;for(;c<i.length&&(s.lastIndex=c,a=s.exec(i),null!==a);)c=s.lastIndex,s===lt?"!--"===a[1]?s=at:void 0!==a[1]?s=dt:void 0!==a[2]?(gt.test(a[2])&&(e=RegExp("</"+a[2],"g")),s=ct):void 0!==a[3]&&(s=ct):s===ct?">"===a[0]?(s=null!=e?e:lt,d=-1):void 0===a[1]?d=-2:(d=s.lastIndex-a[2].length,l=a[1],s=void 0===a[3]?ct:'"'===a[3]?ht:ut):s===ht||s===ut?s=ct:s===at||s===dt?s=lt:(s=ct,e=void 0);const u=s===ct&&t[o+1].startsWith("/>")?" ":"";r+=s===lt?i+it:d>=0?(n.push(l),i.slice(0,d)+"$lit$"+i.slice(d)+tt+u):i+tt+(-2===d?(n.push(void 0),o):u)}const l=r+(t[i]||"<?>")+(2===o?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==Y?Y.createHTML(l):l,n]};class yt{constructor({strings:t,_$litType$:o},i){let n;this.parts=[];let e=0,r=0;const s=t.length-1,l=this.parts,[a,d]=$t(t,o);if(this.el=yt.createElement(a,i),vt.currentNode=this.el.content,2===o){const t=this.el.content,o=t.firstChild;o.remove(),t.append(...o.childNodes)}for(;null!==(n=vt.nextNode())&&l.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const o of n.getAttributeNames())if(o.endsWith("$lit$")||o.startsWith(tt)){const i=d[r++];if(t.push(o),void 0!==i){const t=n.getAttribute(i.toLowerCase()+"$lit$").split(tt),o=/([.?@])?(.*)/.exec(i);l.push({type:1,index:e,name:o[2],strings:t,ctor:"."===o[1]?zt:"?"===o[1]?_t:"@"===o[1]?Ct:St})}else l.push({type:6,index:e})}for(const o of t)n.removeAttribute(o)}if(gt.test(n.tagName)){const t=n.textContent.split(tt),o=t.length-1;if(o>0){n.textContent=X?X.emptyScript:"";for(let i=0;i<o;i++)n.append(t[i],et()),vt.nextNode(),l.push({type:2,index:++e});n.append(t[o],et())}}}else if(8===n.nodeType)if(n.data===ot)l.push({type:2,index:e});else{let t=-1;for(;-1!==(t=n.data.indexOf(tt,t+1));)l.push({type:7,index:e}),t+=tt.length-1}e++}}static createElement(t,o){const i=nt.createElement("template");return i.innerHTML=t,i}}function xt(t,o,i=t,n){var e,r,s,l;if(o===mt)return o;let a=void 0!==n?null===(e=i._$Cl)||void 0===e?void 0:e[n]:i._$Cu;const d=rt(o)?void 0:o._$litDirective$;return(null==a?void 0:a.constructor)!==d&&(null===(r=null==a?void 0:a._$AO)||void 0===r||r.call(a,!1),void 0===d?a=void 0:(a=new d(t),a._$AT(t,i,n)),void 0!==n?(null!==(s=(l=i)._$Cl)&&void 0!==s?s:l._$Cl=[])[n]=a:i._$Cu=a),void 0!==a&&(o=xt(t,a._$AS(t,o.values),a,n)),o}class wt{constructor(t,o){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var o;const{el:{content:i},parts:n}=this._$AD,e=(null!==(o=null==t?void 0:t.creationScope)&&void 0!==o?o:nt).importNode(i,!0);vt.currentNode=e;let r=vt.nextNode(),s=0,l=0,a=n[0];for(;void 0!==a;){if(s===a.index){let o;2===a.type?o=new kt(r,r.nextSibling,this,t):1===a.type?o=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(o=new jt(r,this,t)),this.v.push(o),a=n[++l]}s!==(null==a?void 0:a.index)&&(r=vt.nextNode(),s++)}return e}m(t){let o=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,o),o+=i.strings.length-2):i._$AI(t[o])),o++}}class kt{constructor(t,o,i,n){var e;this.type=2,this._$AH=pt,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=i,this.options=n,this._$C_=null===(e=null==n?void 0:n.isConnected)||void 0===e||e}get _$AU(){var t,o;return null!==(o=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==o?o:this._$C_}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===t.nodeType&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=xt(this,t,o),rt(t)?t===pt||null==t||""===t?(this._$AH!==pt&&this._$AR(),this._$AH=pt):t!==this._$AH&&t!==mt&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>st(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.O(t):this.$(t)}S(t,o=this._$AB){return this._$AA.parentNode.insertBefore(t,o)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}$(t){this._$AH!==pt&&rt(this._$AH)?this._$AA.nextSibling.data=t:this.k(nt.createTextNode(t)),this._$AH=t}T(t){var o;const{values:i,_$litType$:n}=t,e="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=yt.createElement(n.h,this.options)),n);if((null===(o=this._$AH)||void 0===o?void 0:o._$AD)===e)this._$AH.m(i);else{const t=new wt(e,this),o=t.p(this.options);t.m(i),this.k(o),this._$AH=t}}_$AC(t){let o=ft.get(t.strings);return void 0===o&&ft.set(t.strings,o=new yt(t)),o}O(t){st(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let i,n=0;for(const e of t)n===o.length?o.push(i=new kt(this.S(et()),this.S(et()),this,this.options)):i=o[n],i._$AI(e),n++;n<o.length&&(this._$AR(i&&i._$AB.nextSibling,n),o.length=n)}_$AR(t=this._$AA.nextSibling,o){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var o;void 0===this._$AM&&(this._$C_=t,null===(o=this._$AP)||void 0===o||o.call(this,t))}}class St{constructor(t,o,i,n,e){this.type=1,this._$AH=pt,this._$AN=void 0,this.element=t,this.name=o,this._$AM=n,this.options=e,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=pt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,o=this,i,n){const e=this.strings;let r=!1;if(void 0===e)t=xt(this,t,o,0),r=!rt(t)||t!==this._$AH&&t!==mt,r&&(this._$AH=t);else{const n=t;let s,l;for(t=e[0],s=0;s<e.length-1;s++)l=xt(this,n[i+s],o,s),l===mt&&(l=this._$AH[s]),r||(r=!rt(l)||l!==this._$AH[s]),l===pt?t=pt:t!==pt&&(t+=(null!=l?l:"")+e[s+1]),this._$AH[s]=l}r&&!n&&this.P(t)}P(t){t===pt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class zt extends St{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===pt?void 0:t}}const At=X?X.emptyScript:"";class _t extends St{constructor(){super(...arguments),this.type=4}P(t){t&&t!==pt?this.element.setAttribute(this.name,At):this.element.removeAttribute(this.name)}}class Ct extends St{constructor(t,o,i,n,e){super(t,o,i,n,e),this.type=5}_$AI(t,o=this){var i;if((t=null!==(i=xt(this,t,o,0))&&void 0!==i?i:pt)===mt)return;const n=this._$AH,e=t===pt&&n!==pt||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==pt&&(n===pt||e);e&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var o,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(o=this.options)||void 0===o?void 0:o.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class jt{constructor(t,o,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){xt(this,t)}}const Et=Q.litHtmlPolyfillSupport;
|
|
24
24
|
/**
|
|
25
25
|
* @license
|
|
26
26
|
* Copyright 2017 Google LLC
|
|
27
27
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
var Mt,Tt;null==Et||Et(yt,kt),(null!==(F=Q.litHtmlVersions)&&void 0!==F?F:Q.litHtmlVersions=[]).push("2.3.1");class Ot extends p{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,o;const i=super.createRenderRoot();return null!==(t=(o=this.renderOptions).renderBefore)&&void 0!==t||(o.renderBefore=i.firstChild),i}update(t){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,o,i)=>{var n,e;const r=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:o;let s=r._$litPart$;if(void 0===s){const t=null!==(e=null==i?void 0:i.renderBefore)&&void 0!==e?e:null;r._$litPart$=s=new kt(o.insertBefore(et(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(o,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return mt}}Ot.finalized=!0,Ot._$litElement$=!0,null===(Mt=globalThis.litElementHydrateSupport)||void 0===Mt||Mt.call(globalThis,{LitElement:Ot});const Ut=globalThis.litElementPolyfillSupport;null==Ut||Ut({LitElement:Ot}),(null!==(Tt=globalThis.litElementVersions)&&void 0!==Tt?Tt:globalThis.litElementVersions=[]).push("3.2.2");
|
|
30
30
|
/**
|
|
31
31
|
* @license
|
|
32
|
-
* Copyright
|
|
32
|
+
* Copyright 2017 Google LLC
|
|
33
33
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
|
-
*/
|
|
34
|
+
*/
|
|
35
|
+
const Nt=1,Rt=t=>(...o)=>({_$litDirective$:t,values:o});class Wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,i){this._$Ct=t,this._$AM=o,this._$Ci=i}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}}
|
|
35
36
|
/**
|
|
36
37
|
* @license
|
|
37
38
|
* Copyright 2018 Google LLC
|
|
38
39
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
39
|
-
*/var at,lt,dt={},ct={};ct.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":"1.625rem","font-size-2":"1.25rem","font-size-3":"1rem","font-size-4":"0.875rem","font-size-5":"0.75rem","font-size-6":"0.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%","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(dt,"i",{value:!0});var ut=ct;function ht(t){return ut.LoadsmartTheme[t]}function bt(t){var o=ht(t);return null==o?o:"--m-".concat(t)}var mt=Object.keys(ut.LoadsmartTheme).filter((function(t){return!t.startsWith("brand-")&&!t.startsWith("platform-")}));function gt(t){return mt.filter((function(o){return o.startsWith(t)}))}var pt=gt("color-"),ft=gt("color-background-"),$t=gt("spacing-"),yt=gt("font-family-"),vt=gt("font-size-"),xt=gt("font-weight-"),wt=gt("line-height-"),kt=gt("border-"),zt=gt("border-radius-"),St=gt("opacity-"),At=gt("elevation-"),Ct=gt("glow-");function jt(t){return e(`\n\t\t${function(t){return e(`\n\t\tmargin-inline-end: ${t}\n\t`)}(t)};\n\t\t${function(t){return e(`\n\t\tmargin-inline-start: ${t}\n\t`)}(t)}\n\t`)}function _t(t){return e(`\n\t\t${function(t){return e(`\n\t\tmargin-block-start: ${t}\n\t`)}(t)};\n\t\t${function(t){return e(`\n\t\tmargin-block-end: ${t}\n\t`)}(t)}\n\t`)}function Mt(t){return e(`\n\t\t${function(t){return e(`\n\t\tpadding-inline-end: ${t}\n\t`)}(t)};\n\t\t${function(t){return e(`\n\t\tpadding-inline-start: ${t}\n\t`)}(t)}\n\t`)}function Et(t){return e(`\n\t\t${function(t){return e(`\n\t\tpadding-block-start: ${t}\n\t`)}(t)};\n\t\t${function(t){return e(`\n\t\tpadding-block-end: ${t}\n\t`)}(t)}\n\t`)}dt.BACKGROUND_COLOR_TOKENS=ft,dt.BORDER_RADIUS_TOKENS=zt,dt.BORDER_TOKENS=kt,dt.BORDER_WIDTH_TOKENS=["border-none","border-thin","border-medium","border-thick"],dt.COLOR_TOKENS=pt,dt.ELEVATION_TOKENS=At,dt.FONT_FAMILY_TOKENS=yt,dt.FONT_SIZE_TOKENS=vt,dt.FONT_WEIGHT_TOKENS=xt,dt.GLOW_TOKENS=Ct,dt.LINE_HEIGHT_TOKENS=wt,dt.OPACITY_TOKENS=St,dt.SPACING_TOKENS=$t,dt.TOKENS=mt,lt=dt.getToken=ht,at=dt.toCSSValue=function(t,o){var n=ht(t);return null==n?"":t.startsWith("color-")?"rgba(var(".concat(bt(t),", ").concat(n,"), ").concat(null!=o?o:1,")"):"var(".concat(bt(t),", ").concat(n,")")},dt.toCSSVariable=bt;var Ot=function(t){return null==t?[]:Array.isArray(t)?t:[t]};const Tt={property:"all",delay:"0s",duration:"0.35s",easing:"ease-in-out"};function Ut(t){const o=Ot(t).map((t=>function(t){const o={...Tt,...t};return e(`${o.property} ${o.duration} ${o.easing} ${o.delay}`)}(t))).join(", ");return e(`\n\t\ttransition: ${o}\n\t`)}function Wt(t){return e(at(t))}function Rt(t){const o=e("\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 e(`${o}\n${function(t){switch(t){case"heading-lg":return`\n\t\t\t\tfont-family: ${Wt("font-family-title")};\n\t\t\t\tline-height: ${Wt("line-height-2")};\n\t\t\t\tfont-size: ${Wt("font-size-1")};\n\t\t\t\tfont-weight: ${Wt("font-weight-bold")}\n\t\t\t`;case"heading-md-bold":return`\n\t\t\t\tfont-family: ${Wt("font-family-title")};\n\t\t\t\tline-height: ${Wt("line-height-2")};\n\t\t\t\tfont-size: ${Wt("font-size-2")};\n\t\t\t\tfont-weight: ${Wt("font-weight-bold")}\n\t\t\t`;case"heading-md":return`\n\t\t\t\tfont-family: ${Wt("font-family-title")};\n\t\t\t\tline-height: ${Wt("line-height-2")};\n\t\t\t\tfont-size: ${Wt("font-size-2")};\n\t\t\t\tfont-weight: ${Wt("font-weight-regular")}\n\t\t\t`;case"heading-sm-bold":return`\n\t\t\t\tfont-family: ${Wt("font-family-title")};\n\t\t\t\tline-height: ${Wt("line-height-3")};\n\t\t\t\tfont-size: ${Wt("font-size-3")};\n\t\t\t\tfont-weight: ${Wt("font-weight-bold")}\n\t\t\t`;case"heading-sm":return`\n\t\t\t\tfont-family: ${Wt("font-family-title")};\n\t\t\t\tline-height: ${Wt("line-height-3")};\n\t\t\t\tfont-size: ${Wt("font-size-3")};\n\t\t\t\tfont-weight: ${Wt("font-weight-regular")}\n\t\t\t`;case"body-md":return`\n\t\t\t\tfont-family: ${Wt("font-family-default")};\n\t\t\t\tline-height: ${Wt("line-height-5")};\n\t\t\t\tfont-size: ${Wt("font-size-4")};\n\t\t\t\tfont-weight: ${Wt("font-weight-regular")}\n\t\t\t`;case"body-md-underline":return`\n\t\t\t\tfont-family: ${Wt("font-family-default")};\n\t\t\t\tline-height: ${Wt("line-height-5")};\n\t\t\t\tfont-size: ${Wt("font-size-4")};\n\t\t\t\tfont-weight: ${Wt("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: ${Wt("font-family-default")};\n\t\t\t\tline-height: ${Wt("line-height-5")};\n\t\t\t\tfont-size: ${Wt("font-size-4")};\n\t\t\t\tfont-weight: ${Wt("font-weight-bold")}\n\t\t\t`;case"body-md-bold-underline":return`\n\t\t\t\tfont-family: ${Wt("font-family-default")};\n\t\t\t\tline-height: ${Wt("line-height-5")};\n\t\t\t\tfont-size: ${Wt("font-size-4")};\n\t\t\t\tfont-weight: ${Wt("font-weight-bold")};\n\t\t\t\ttext-decoration: underline\n\t\t\t`;case"body-sm":return`\n\t\t\t\tfont-family: ${Wt("font-family-default")};\n\t\t\t\tline-height: ${Wt("line-height-5")};\n\t\t\t\tfont-size: ${Wt("font-size-5")};\n\t\t\t\tfont-weight: ${Wt("font-weight-regular")}\n\t\t\t`;case"body-sm-underline":return`\n\t\t\t\tfont-family: ${Wt("font-family-default")};\n\t\t\t\tline-height: ${Wt("line-height-5")};\n\t\t\t\tfont-size: ${Wt("font-size-5")};\n\t\t\t\tfont-weight: ${Wt("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: ${Wt("font-family-default")};\n\t\t\t\tline-height: ${Wt("line-height-5")};\n\t\t\t\tfont-size: ${Wt("font-size-5")};\n\t\t\t\tfont-weight: ${Wt("font-weight-bold")}\n\t\t\t`;case"body-sm-bold-underline":return`\n\t\t\t\tfont-family: ${Wt("font-family-default")};\n\t\t\t\tline-height: ${Wt("line-height-5")};\n\t\t\t\tfont-size: ${Wt("font-size-5")};\n\t\t\t\tfont-weight: ${Wt("font-weight-bold")};\n\t\t\t\ttext-decoration: underline\n\t\t\t`;case"number-md":return`\n\t\t\t\tfont-family: ${Wt("font-family-default")};\n\t\t\t\tline-height: ${Wt("line-height-2")};\n\t\t\t\tfont-size: ${Wt("font-size-4")};\n\t\t\t\tfont-weight: ${Wt("font-weight-regular")}\n\t\t\t`;case"number-sm":return`\n\t\t\t\tfont-family: ${Wt("font-family-default")};\n\t\t\t\tline-height: ${Wt("line-height-2")};\n\t\t\t\tfont-size: ${Wt("font-size-5")};\n\t\t\t\tfont-weight: ${Wt("font-weight-regular")}\n\t\t\t`;case"button-lg":return`\n\t\t\t\tfont-family: ${Wt("font-family-default")};\n\t\t\t\tline-height: ${Wt("line-height-1")};\n\t\t\t\tfont-size: ${Wt("font-size-3")};\n\t\t\t\tfont-weight: ${Wt("font-weight-bold")}\n\t\t\t`;case"button-md":return`\n\t\t\t\tfont-family: ${Wt("font-family-default")};\n\t\t\t\tline-height: ${Wt("line-height-1")};\n\t\t\t\tfont-size: ${Wt("font-size-4")};\n\t\t\t\tfont-weight: ${Wt("font-weight-bold")}\n\t\t\t`;case"button-sm":return`\n\t\t\t\tfont-family: ${Wt("font-family-default")};\n\t\t\t\tline-height: ${Wt("line-height-1")};\n\t\t\t\tfont-size: ${Wt("font-size-5")};\n\t\t\t\tfont-weight: ${Wt("font-weight-bold")}\n\t\t\t`;case"table-header-md":return`\n\t\t\t\tfont-family: ${Wt("font-family-default")};\n\t\t\t\tline-height: ${Wt("line-height-1")};\n\t\t\t\tfont-size: ${Wt("font-size-4")};\n\t\t\t\tfont-weight: ${Wt("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: ${Wt("font-family-default")};\n\t\t\t\tline-height: ${Wt("line-height-1")};\n\t\t\t\tfont-size: ${Wt("font-size-5")};\n\t\t\t\tfont-weight: ${Wt("font-weight-medium")}\n\t\t\t`;case"chips-sm":return`\n\t\t\t\tfont-family: ${Wt("font-family-default")};\n\t\t\t\tline-height: ${Wt("line-height-1")};\n\t\t\t\tfont-size: ${Wt("font-size-6")};\n\t\t\t\tfont-weight: ${Wt("font-weight-bold")}\n\t\t\t`;default:return""}}(t)}`)}function Nt(t,o=""){return e(Ot(t).map((t=>[`${t}.is-disabled`,`${t}:disabled`].map((t=>[t,o].join(" "))).join(", "))).join(", "))}const Pt={active:function(t){return e(Ot(t).map((t=>`${t}:not(.is-disabled, :disabled):active`)).join(", "))},focus:function(t){return e(Ot(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 e(Ot(t).map((t=>`${t}:not(.is-disabled, :disabled):hover`)).join(", "))}};function Bt(t,o=1){return e(at(t,o))}class Dt extends tt{constructor(){super(),this.variant="body-md",this.color="color-text-primary"}static get properties(){return{variant:{type:String,reflect:!0},color:{type:String}}}render(){return W`
|
|
40
|
-
<span
|
|
41
|
-
class=${et({"m-text":!0,"-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-sm":"chips-sm"==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,"-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})}
|
|
42
|
-
style=${st({"--m-text-color":at(this.color)})}
|
|
43
|
-
>
|
|
44
|
-
<slot></slot>
|
|
45
|
-
</span>
|
|
46
|
-
`}}Dt.styles=[s`
|
|
40
|
+
*/const Lt=Rt(class extends Wt{constructor(t){var o;if(super(t),t.type!==Nt||"class"!==t.name||(null===(o=t.strings)||void 0===o?void 0:o.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((o=>t[o])).join(" ")+" "}update(t,[o]){var i,n;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 o)o[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(o)}const e=t.element.classList;this.nt.forEach((t=>{t in o||(e.remove(t),this.nt.delete(t))}));for(const t in o){const i=!!o[t];i===this.nt.has(t)||(null===(n=this.st)||void 0===n?void 0:n.has(t))||(i?(e.add(t),this.nt.add(t)):(e.remove(t),this.nt.delete(t)))}return N}});var Bt,Dt,It={},Pt={};Pt.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":"1.625rem","font-size-2":"1.25rem","font-size-3":"1rem","font-size-4":"0.875rem","font-size-5":"0.75rem","font-size-6":"0.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%","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(It,"i",{value:!0});var Zt=Pt;function Gt(t){return Zt.LoadsmartTheme[t]}function Jt(t){var o=Gt(t);return null==o?o:"--m-".concat(t)}var Ht=Object.keys(Zt.LoadsmartTheme).filter((function(t){return!t.startsWith("brand-")&&!t.startsWith("platform-")}));function qt(t){return Ht.filter((function(o){return o.startsWith(t)}))}var Kt=qt("color-"),Vt=qt("color-background-"),Ft=qt("spacing-"),Qt=qt("font-family-"),Xt=qt("font-size-"),Yt=qt("font-weight-"),to=qt("line-height-"),oo=qt("border-"),io=qt("border-radius-"),no=qt("opacity-"),eo=qt("elevation-"),ro=qt("glow-");function so(t){return r(Bt(t))}function lo(t,o=1){return r(Bt(t,o))}function ao(t){return r(`\n\t\t${function(t){return r(`\n\t\tmargin-inline-end: ${t}\n\t`)}(t)};\n\t\t${function(t){return r(`\n\t\tmargin-inline-start: ${t}\n\t`)}(t)}\n\t`)}function co(t){return r(`\n\t\t${function(t){return r(`\n\t\tmargin-block-start: ${t}\n\t`)}(t)};\n\t\t${function(t){return r(`\n\t\tmargin-block-end: ${t}\n\t`)}(t)}\n\t`)}function uo(t){return r(`\n\t\t${function(t){return r(`\n\t\tpadding-inline-end: ${t}\n\t`)}(t)};\n\t\t${function(t){return r(`\n\t\tpadding-inline-start: ${t}\n\t`)}(t)}\n\t`)}function ho(t){return r(`\n\t\t${function(t){return r(`\n\t\tpadding-block-start: ${t}\n\t`)}(t)};\n\t\t${function(t){return r(`\n\t\tpadding-block-end: ${t}\n\t`)}(t)}\n\t`)}It.BACKGROUND_COLOR_TOKENS=Vt,It.BORDER_RADIUS_TOKENS=io,It.BORDER_TOKENS=oo,It.BORDER_WIDTH_TOKENS=["border-none","border-thin","border-medium","border-thick"],It.COLOR_TOKENS=Kt,It.ELEVATION_TOKENS=eo,It.FONT_FAMILY_TOKENS=Qt,It.FONT_SIZE_TOKENS=Xt,It.FONT_WEIGHT_TOKENS=Yt,It.GLOW_TOKENS=ro,It.LINE_HEIGHT_TOKENS=to,It.OPACITY_TOKENS=no,It.SPACING_TOKENS=Ft,It.TOKENS=Ht,Dt=It.getToken=Gt,Bt=It.toCSSValue=function(t,o){var i=Gt(t);return null==i?"":t.startsWith("color-")?"rgba(var(".concat(Jt(t),", ").concat(i,"), ").concat(null!=o?o:1,")"):"var(".concat(Jt(t),", ").concat(i,")")},It.toCSSVariable=Jt;var go={toArray:function(t){return null==t?[]:Array.isArray(t)?t:[t]}},bo=go.toArray;const mo={property:"all",delay:"0s",duration:"0.35s",easing:"ease-in-out"};function po(t){const o=bo(t).map((t=>function(t){const o={...mo,...t};return r(`${o.property} ${o.duration} ${o.easing} ${o.delay}`)}(t))).join(", ");return r(`\n\t\ttransition: ${o}\n\t`)}function fo(t){const o=r("\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 r(`${o}\n${function(t){switch(t){case"heading-lg":return`\n\t\t\t\tfont-family: ${so("font-family-title")};\n\t\t\t\tline-height: ${so("line-height-2")};\n\t\t\t\tfont-size: ${so("font-size-1")};\n\t\t\t\tfont-weight: ${so("font-weight-bold")}\n\t\t\t`;case"heading-md-bold":return`\n\t\t\t\tfont-family: ${so("font-family-title")};\n\t\t\t\tline-height: ${so("line-height-2")};\n\t\t\t\tfont-size: ${so("font-size-2")};\n\t\t\t\tfont-weight: ${so("font-weight-bold")}\n\t\t\t`;case"heading-md":return`\n\t\t\t\tfont-family: ${so("font-family-title")};\n\t\t\t\tline-height: ${so("line-height-2")};\n\t\t\t\tfont-size: ${so("font-size-2")};\n\t\t\t\tfont-weight: ${so("font-weight-regular")}\n\t\t\t`;case"heading-sm-bold":return`\n\t\t\t\tfont-family: ${so("font-family-title")};\n\t\t\t\tline-height: ${so("line-height-3")};\n\t\t\t\tfont-size: ${so("font-size-3")};\n\t\t\t\tfont-weight: ${so("font-weight-bold")}\n\t\t\t`;case"heading-sm":return`\n\t\t\t\tfont-family: ${so("font-family-title")};\n\t\t\t\tline-height: ${so("line-height-3")};\n\t\t\t\tfont-size: ${so("font-size-3")};\n\t\t\t\tfont-weight: ${so("font-weight-regular")}\n\t\t\t`;case"body-md":return`\n\t\t\t\tfont-family: ${so("font-family-default")};\n\t\t\t\tline-height: ${so("line-height-5")};\n\t\t\t\tfont-size: ${so("font-size-4")};\n\t\t\t\tfont-weight: ${so("font-weight-regular")}\n\t\t\t`;case"body-md-underline":return`\n\t\t\t\tfont-family: ${so("font-family-default")};\n\t\t\t\tline-height: ${so("line-height-5")};\n\t\t\t\tfont-size: ${so("font-size-4")};\n\t\t\t\tfont-weight: ${so("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: ${so("font-family-default")};\n\t\t\t\tline-height: ${so("line-height-5")};\n\t\t\t\tfont-size: ${so("font-size-4")};\n\t\t\t\tfont-weight: ${so("font-weight-bold")}\n\t\t\t`;case"body-md-bold-underline":return`\n\t\t\t\tfont-family: ${so("font-family-default")};\n\t\t\t\tline-height: ${so("line-height-5")};\n\t\t\t\tfont-size: ${so("font-size-4")};\n\t\t\t\tfont-weight: ${so("font-weight-bold")};\n\t\t\t\ttext-decoration: underline\n\t\t\t`;case"body-sm":return`\n\t\t\t\tfont-family: ${so("font-family-default")};\n\t\t\t\tline-height: ${so("line-height-5")};\n\t\t\t\tfont-size: ${so("font-size-5")};\n\t\t\t\tfont-weight: ${so("font-weight-regular")}\n\t\t\t`;case"body-sm-underline":return`\n\t\t\t\tfont-family: ${so("font-family-default")};\n\t\t\t\tline-height: ${so("line-height-5")};\n\t\t\t\tfont-size: ${so("font-size-5")};\n\t\t\t\tfont-weight: ${so("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: ${so("font-family-default")};\n\t\t\t\tline-height: ${so("line-height-5")};\n\t\t\t\tfont-size: ${so("font-size-5")};\n\t\t\t\tfont-weight: ${so("font-weight-bold")}\n\t\t\t`;case"body-sm-bold-underline":return`\n\t\t\t\tfont-family: ${so("font-family-default")};\n\t\t\t\tline-height: ${so("line-height-5")};\n\t\t\t\tfont-size: ${so("font-size-5")};\n\t\t\t\tfont-weight: ${so("font-weight-bold")};\n\t\t\t\ttext-decoration: underline\n\t\t\t`;case"number-md":return`\n\t\t\t\tfont-family: ${so("font-family-default")};\n\t\t\t\tline-height: ${so("line-height-2")};\n\t\t\t\tfont-size: ${so("font-size-4")};\n\t\t\t\tfont-weight: ${so("font-weight-regular")}\n\t\t\t`;case"number-sm":return`\n\t\t\t\tfont-family: ${so("font-family-default")};\n\t\t\t\tline-height: ${so("line-height-2")};\n\t\t\t\tfont-size: ${so("font-size-5")};\n\t\t\t\tfont-weight: ${so("font-weight-regular")}\n\t\t\t`;case"button-lg":return`\n\t\t\t\tfont-family: ${so("font-family-default")};\n\t\t\t\tline-height: ${so("line-height-1")};\n\t\t\t\tfont-size: ${so("font-size-3")};\n\t\t\t\tfont-weight: ${so("font-weight-bold")}\n\t\t\t`;case"button-md":return`\n\t\t\t\tfont-family: ${so("font-family-default")};\n\t\t\t\tline-height: ${so("line-height-1")};\n\t\t\t\tfont-size: ${so("font-size-4")};\n\t\t\t\tfont-weight: ${so("font-weight-bold")}\n\t\t\t`;case"button-sm":return`\n\t\t\t\tfont-family: ${so("font-family-default")};\n\t\t\t\tline-height: ${so("line-height-1")};\n\t\t\t\tfont-size: ${so("font-size-5")};\n\t\t\t\tfont-weight: ${so("font-weight-bold")}\n\t\t\t`;case"table-header-md":return`\n\t\t\t\tfont-family: ${so("font-family-default")};\n\t\t\t\tline-height: ${so("line-height-1")};\n\t\t\t\tfont-size: ${so("font-size-4")};\n\t\t\t\tfont-weight: ${so("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: ${so("font-family-default")};\n\t\t\t\tline-height: ${so("line-height-1")};\n\t\t\t\tfont-size: ${so("font-size-5")};\n\t\t\t\tfont-weight: ${so("font-weight-medium")}\n\t\t\t`;case"chips-sm":return`\n\t\t\t\tfont-family: ${so("font-family-default")};\n\t\t\t\tline-height: ${so("line-height-1")};\n\t\t\t\tfont-size: ${so("font-size-6")};\n\t\t\t\tfont-weight: ${so("font-weight-bold")}\n\t\t\t`;default:return""}}(t)}`)}function vo(t,o=""){return r(bo(t).map((t=>[`${t}.is-disabled`,`${t}:disabled`].map((t=>[t,o].join(" "))).join(", "))).join(", "))}const $o={active:function(t){return r(bo(t).map((t=>`${t}:not(.is-disabled, :disabled):active`)).join(", "))},focus:function(t){return r(bo(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 r(bo(t).map((t=>`${t}:not(.is-disabled, :disabled):hover`)).join(", "))}};function yo(){return s`
|
|
47
41
|
:host {
|
|
48
|
-
--m-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
${
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
.-body-md-bold-underline {
|
|
62
|
-
${Rt("body-md-bold-underline")};
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.-body-md-bold {
|
|
66
|
-
${Rt("body-md-bold")};
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.-body-md-underline {
|
|
70
|
-
${Rt("body-md-underline")};
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.-body-md {
|
|
74
|
-
${Rt("body-md")};
|
|
42
|
+
--m-button-background-color: transparent;
|
|
43
|
+
--m-button-base-size: 40px;
|
|
44
|
+
--m-button-border-color: ${lo("color-neutral-90")};
|
|
45
|
+
--m-button-border-radius: ${so("border-radius-s")};
|
|
46
|
+
--m-button-color: ${lo("color-text-secondary")};
|
|
47
|
+
--m-button-outline-color: ${lo("color-primary-100")};
|
|
48
|
+
--m-button-outline-offset: 2px;
|
|
49
|
+
--m-button-padding-x: ${so("spacing-4")};
|
|
50
|
+
--m-button-padding-y: ${so("spacing-3")};
|
|
51
|
+
/**
|
|
52
|
+
* Useful when overriding via host :slotted query.
|
|
53
|
+
*/
|
|
54
|
+
--m-button-font-size: ${so("font-size-4")};
|
|
75
55
|
}
|
|
76
56
|
|
|
77
|
-
|
|
78
|
-
${
|
|
79
|
-
}
|
|
57
|
+
.button {
|
|
58
|
+
${po([{property:"color"},{property:"background-color"},{property:"border-color"}])};
|
|
80
59
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
60
|
+
${fo("button-md")};
|
|
61
|
+
font-size: var( --m-button-font-size );
|
|
84
62
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
position: relative;
|
|
88
65
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
66
|
+
display: inline-flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
justify-content: center;
|
|
69
|
+
overflow: hidden;
|
|
92
70
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
71
|
+
block-size: var( --m-button-base-size );
|
|
72
|
+
box-sizing: border-box;
|
|
96
73
|
|
|
97
|
-
|
|
98
|
-
${Rt("button-md")};
|
|
99
|
-
}
|
|
74
|
+
text-decoration: none;
|
|
100
75
|
|
|
101
|
-
|
|
102
|
-
${Rt("button-sm")};
|
|
103
|
-
}
|
|
76
|
+
gap: ${so("spacing-1")};
|
|
104
77
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
78
|
+
padding-inline: var( --m-button-padding-x );
|
|
79
|
+
padding-block: var( --m-button-padding-y );
|
|
108
80
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
81
|
+
background-color: var( --m-button-background-color );
|
|
82
|
+
color: var( --m-button-color );
|
|
83
|
+
border: 1px solid var( --m-button-border-color );
|
|
112
84
|
|
|
113
|
-
|
|
114
|
-
${Rt("heading-md-bold")};
|
|
85
|
+
border-radius: var( --m-button-border-radius );
|
|
115
86
|
}
|
|
116
87
|
|
|
117
|
-
|
|
118
|
-
|
|
88
|
+
${vo(".button")} {
|
|
89
|
+
cursor: default;
|
|
119
90
|
}
|
|
120
91
|
|
|
121
|
-
|
|
122
|
-
|
|
92
|
+
${vo(".button","*")} {
|
|
93
|
+
pointer-events: none;
|
|
123
94
|
}
|
|
124
95
|
|
|
125
|
-
|
|
126
|
-
|
|
96
|
+
${$o.focus(".button")} {
|
|
97
|
+
outline: 1px solid var( --m-button-outline-color );
|
|
98
|
+
outline-offset: var( --m-button-outline-offset );
|
|
127
99
|
}
|
|
128
100
|
|
|
129
|
-
|
|
130
|
-
${
|
|
101
|
+
${$o.hover(".button")} {
|
|
102
|
+
--m-button-background-color: ${lo("color-background-inverted")};
|
|
103
|
+
--m-button-border-color: ${lo("color-background-inverted")};
|
|
104
|
+
--m-button-color: ${lo("color-text-inverted")};
|
|
131
105
|
}
|
|
132
106
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
107
|
+
::slotted( * ) {
|
|
108
|
+
display: inline-flex;
|
|
109
|
+
align-items: center;
|
|
136
110
|
|
|
137
|
-
|
|
138
|
-
${
|
|
111
|
+
${o=0,r(`\n\t\t${uo(o)};\n\t\t${ho(o)}\n\t`)};
|
|
112
|
+
${t=0,r(`\n\t\t${ao(t)};\n\t\t${co(t)}\n\t`)};
|
|
139
113
|
}
|
|
140
114
|
|
|
141
|
-
|
|
142
|
-
|
|
115
|
+
slot[name='leading']::slotted( span ),
|
|
116
|
+
slot[name='trailing']::slotted( span ) {
|
|
117
|
+
justify-content: center;
|
|
143
118
|
}
|
|
144
|
-
|
|
119
|
+
`;var t,o}class xo extends Ot{constructor(){super(),this.variant="secondary",this.size="default",this.type="button",this.disabled=!1,this.loading=!1}static get properties(){return{loading:{type:Boolean},disabled:{type:Boolean,reflect:!0},variant:{type:String},size:{type:String},type:{type:String}}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","button")}render(){return bt`
|
|
120
|
+
<button
|
|
121
|
+
class=${Lt({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":this.loading})}
|
|
122
|
+
type=${this.type}
|
|
123
|
+
?disabled="${this._isDisabled()}"
|
|
124
|
+
aria-disabled=${this._isDisabled()?"true":"false"}
|
|
125
|
+
>
|
|
126
|
+
<!-- TODO: Replace this with the loading dots component as soon as it is ready. -->
|
|
127
|
+
${this.loading&&!["icon","icon-secondary"].includes(this.variant)?bt`<span class="loader">●●●</span>`:pt}
|
|
128
|
+
<slot name="leading"></slot>
|
|
129
|
+
<slot></slot>
|
|
130
|
+
<slot name="trailing"></slot>
|
|
131
|
+
</button>
|
|
132
|
+
`}_isDisabled(){return this.disabled||this.loading}}xo.styles=[[yo(),s`
|
|
133
|
+
.button.is-loading:not( .-icon, .-icon-secondary ) *:not( .loader ) {
|
|
134
|
+
visibility: hidden;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.button.-primary {
|
|
138
|
+
--m-button-background-color: ${lo("color-primary-60")};
|
|
139
|
+
--m-button-border-color: ${lo("color-primary-60")};
|
|
140
|
+
--m-button-color: ${lo("color-text-inverted")};
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
${vo(".button.-primary")} {
|
|
144
|
+
--m-button-background-color: ${lo("color-primary-20")};
|
|
145
|
+
--m-button-border-color: ${lo("color-primary-20")};
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
${$o.focus(".button.-primary")} {
|
|
149
|
+
--m-button-border-color: ${lo("color-primary-60")};
|
|
150
|
+
--m-button-outline-color: ${lo("color-primary-60")};
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
${$o.hover(".button.-primary")},
|
|
154
|
+
${$o.active(".button.-primary")} {
|
|
155
|
+
--m-button-background-color: ${lo("color-primary-100")};
|
|
156
|
+
--m-button-border-color: ${lo("color-primary-100")};
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.button.-primary.is-loading {
|
|
160
|
+
--m-button-background-color: ${lo("color-primary-60")};
|
|
161
|
+
--m-button-border-color: ${lo("color-primary-60")};
|
|
162
|
+
--m-button-color: ${lo("color-text-inverted")};
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.button.-secondary {
|
|
166
|
+
--m-button-background-color: transparent;
|
|
167
|
+
--m-button-border-color: ${lo("color-primary-100")};
|
|
168
|
+
--m-button-color: ${lo("color-primary-100")};
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
${vo(".button.-secondary")} {
|
|
172
|
+
--m-button-border-color: ${lo("color-text-disabled")};
|
|
173
|
+
--m-button-color: ${lo("color-text-disabled")};
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
${$o.focus(".button.-secondary")} {
|
|
177
|
+
--m-button-border-color: ${lo("color-primary-100")};
|
|
178
|
+
--m-button-color: ${lo("color-primary-100")};
|
|
179
|
+
|
|
180
|
+
--m-button-outline-color: ${lo("color-primary-60")};
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
${$o.hover(".button.-secondary")},
|
|
184
|
+
${$o.active(".button.-secondary")} {
|
|
185
|
+
--m-button-background-color: ${lo("color-background-tertiary")};
|
|
186
|
+
--m-button-border-color: ${lo("color-primary-60")};
|
|
187
|
+
--m-button-color: ${lo("color-primary-60")};
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.button.-secondary.is-loading {
|
|
191
|
+
--m-button-background-color: transparent;
|
|
192
|
+
|
|
193
|
+
--m-button-border-color: ${lo("color-primary-100")};
|
|
194
|
+
--m-button-color: ${lo("color-primary-100")};
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.button.-tertiary {
|
|
198
|
+
--m-button-background-color: transparent;
|
|
199
|
+
--m-button-border-color: transparent;
|
|
200
|
+
--m-button-color: ${lo("color-primary-100")};
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
${vo(".button.-tertiary")} {
|
|
204
|
+
--m-button-color: ${lo("color-text-disabled")};
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
${$o.focus(".button.-tertiary")} {
|
|
208
|
+
--m-button-color: ${lo("color-primary-100")};
|
|
209
|
+
--m-button-outline-color: ${lo("color-primary-60")};
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
${$o.hover(".button.-tertiary")} {
|
|
213
|
+
--m-button-background-color: ${lo("color-background-tertiary")};
|
|
214
|
+
--m-button-border-color: ${lo("color-background-tertiary")};
|
|
215
|
+
--m-button-color: ${lo("color-primary-60")};
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
${$o.active(".button.-tertiary")} {
|
|
219
|
+
--m-button-background-color: ${lo("color-neutral-20")};
|
|
220
|
+
--m-button-border-color: ${lo("color-neutral-20")};
|
|
221
|
+
--m-button-color: ${lo("color-primary-60")};
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.button.-tertiary.is-loading {
|
|
225
|
+
--m-button-background-color: transparent;
|
|
226
|
+
--m-button-border-color: transparent;
|
|
227
|
+
--m-button-color: ${lo("color-primary-100")};
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.button.-warning {
|
|
231
|
+
--m-button-background-color: ${lo("color-warning-60")};
|
|
232
|
+
--m-button-border-color: ${lo("color-warning-60")};
|
|
233
|
+
--m-button-color: ${lo("color-text-primary")};
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
${vo(".button.-warning")} {
|
|
237
|
+
--m-button-background-color: ${lo("color-warning-20")};
|
|
238
|
+
--m-button-border-color: ${lo("color-warning-20")};
|
|
239
|
+
--m-button-color: ${lo("color-text-inverted")};
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
${$o.focus(".button.-warning")} {
|
|
243
|
+
--m-button-background-color: ${lo("color-warning-60")};
|
|
244
|
+
--m-button-outline-color: ${lo("color-warning-60")};
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
${$o.hover(".button.-warning")},
|
|
248
|
+
${$o.active(".button.-warning")} {
|
|
249
|
+
--m-button-background-color: ${lo("color-warning-100")};
|
|
250
|
+
--m-button-border-color: ${lo("color-warning-100")};
|
|
251
|
+
--m-button-color: ${lo("color-text-inverted")};
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.button.-warning.is-loading {
|
|
255
|
+
--m-button-background-color: ${lo("color-warning-60")};
|
|
256
|
+
--m-button-border-color: ${lo("color-warning-60")};
|
|
257
|
+
--m-button-color: ${lo("color-text-primary")};
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.button.-danger {
|
|
261
|
+
--m-button-background-color: ${lo("color-danger-60")};
|
|
262
|
+
--m-button-border-color: ${lo("color-danger-60")};
|
|
263
|
+
--m-button-color: ${lo("color-text-inverted")};
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
${vo(".button.-danger")} {
|
|
267
|
+
--m-button-background-color: ${lo("color-danger-20")};
|
|
268
|
+
--m-button-border-color: ${lo("color-danger-20")};
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
${$o.focus(".button.-danger")} {
|
|
272
|
+
--m-button-background-color: ${lo("color-danger-60")};
|
|
273
|
+
--m-button-outline-color: ${lo("color-danger-60")};
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
${$o.hover(".button.-danger")},
|
|
277
|
+
${$o.active(".button.-danger")} {
|
|
278
|
+
--m-button-background-color: ${lo("color-danger-100")};
|
|
279
|
+
--m-button-border-color: ${lo("color-danger-100")};
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.button.-danger.is-loading {
|
|
283
|
+
--m-button-background-color: ${lo("color-danger-60")};
|
|
284
|
+
--m-button-border-color: ${lo("color-danger-60")};
|
|
285
|
+
--m-button-color: ${lo("color-text-inverted")};
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.button.-icon,
|
|
289
|
+
.button.-icon-secondary {
|
|
290
|
+
--m-button-border-radius: ${so("border-radius-circle")};
|
|
291
|
+
--m-button-color: ${lo("color-neutral-90")};
|
|
292
|
+
--m-button-padding-x: ${so("spacing-1")};
|
|
293
|
+
--m-button-padding-y: ${so("spacing-1")};
|
|
294
|
+
|
|
295
|
+
min-block-size: var( --m-button-base-size );
|
|
296
|
+
max-block-size: var( --m-button-base-size );
|
|
297
|
+
min-inline-size: var( --m-button-base-size );
|
|
298
|
+
max-inline-size: var( --m-button-base-size );
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.button.-icon {
|
|
302
|
+
--m-button-background-color: ${lo("color-background-tertiary")};
|
|
303
|
+
--m-button-border-color: ${lo("color-background-tertiary")};
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.button.-icon-secondary {
|
|
307
|
+
--m-button-background-color: transparent;
|
|
308
|
+
--m-button-border-color: transparent;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.button.-icon slot[name='leading']::slotted( * ),
|
|
312
|
+
.button.-icon slot[name='trailing']::slotted( * ),
|
|
313
|
+
.button.-icon-secondary slot[name='leading']::slotted( * ),
|
|
314
|
+
.button.-icon-secondary slot[name='trailing']::slotted( * ) {
|
|
315
|
+
display: none;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
${vo([".button.-icon",".button.-icon-secondary"])} {
|
|
319
|
+
--m-button-color: ${lo("color-neutral-40")};
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
${vo(".button.-icon")} {
|
|
323
|
+
--m-button-background-color: ${lo("color-neutral-20")};
|
|
324
|
+
--m-button-border-color: ${lo("color-neutral-20")};
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
${vo(".button.-icon-secondary")} {
|
|
328
|
+
--m-button-background-color: transparent;
|
|
329
|
+
--m-button-border-color: transparent;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
${$o.focus([".button.-icon",".button.-icon-secondary"])} {
|
|
333
|
+
--m-button-color: ${lo("color-primary-60")};
|
|
334
|
+
--m-button-outline-color: ${lo("color-primary-60")};
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
${$o.focus(".button.-icon")} {
|
|
338
|
+
--m-button-background-color: ${lo("color-neutral-20")};
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
${$o.focus(".button.-icon-secondary")} {
|
|
342
|
+
--m-button-background-color: transparent;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
${$o.hover([".button.-icon",".button.-icon-secondary"])},
|
|
346
|
+
${$o.active([".button.-icon",".button.-icon-secondary"])} {
|
|
347
|
+
--m-button-color: ${lo("color-primary-60")};
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
${$o.hover(".button.-icon")},
|
|
351
|
+
${$o.active(".button.-icon")} {
|
|
352
|
+
--m-button-background-color: ${lo("color-background-highlight")};
|
|
353
|
+
--m-button-border-color: ${lo("color-background-highlight")};
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
${$o.hover(".button.-icon-secondary")},
|
|
357
|
+
${$o.active(".button.-icon-secondary")} {
|
|
358
|
+
--m-button-background-color: transparent;
|
|
359
|
+
--m-button-border-color: transparent;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.button.-small {
|
|
363
|
+
--m-button-padding-y: ${so("spacing-2")};
|
|
364
|
+
--m-button-base-size: 28px;
|
|
365
|
+
|
|
366
|
+
${fo("button-sm")};
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.button.-large {
|
|
370
|
+
--m-button-padding-y: ${so("spacing-4")};
|
|
371
|
+
--m-button-base-size: 48px;
|
|
372
|
+
|
|
373
|
+
${fo("button-lg")};
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/* TODO: to be removed when the loading dots component is ready */
|
|
377
|
+
.loader {
|
|
378
|
+
position: absolute;
|
|
379
|
+
inset: 0;
|
|
380
|
+
|
|
381
|
+
display: flex;
|
|
382
|
+
align-items: center;
|
|
383
|
+
justify-content: center;
|
|
384
|
+
|
|
385
|
+
pointer-events: none;
|
|
386
|
+
}
|
|
387
|
+
`]],window.customElements.define("m-button",xo);
|
|
388
|
+
/**
|
|
389
|
+
* @license
|
|
390
|
+
* Copyright 2018 Google LLC
|
|
391
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
392
|
+
*/
|
|
393
|
+
const wo=Rt(class extends Wt{constructor(t){var o;if(super(t),t.type!==Nt||"style"!==t.name||(null===(o=t.strings)||void 0===o?void 0:o.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(((o,i)=>{const n=t[i];return null==n?o:o+`${i=i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`}),"")}update(t,[o]){const{style:i}=t.element;if(void 0===this.vt){this.vt=new Set;for(const t in o)this.vt.add(t);return this.render(o)}this.vt.forEach((t=>{null==o[t]&&(this.vt.delete(t),t.includes("-")?i.removeProperty(t):i[t]="")}));for(const t in o){const n=o[t];null!=n&&(this.vt.add(t),t.includes("-")?i.setProperty(t,n):i[t]=n)}return N}});class ko extends Ot{constructor(){super(),this.flagged=!1,this.flagColor="color-background-inverted"}static get properties(){return{flagged:{type:Boolean},flagColor:{type:String,attribute:"flag-color"}}}render(){return bt`
|
|
145
394
|
<div
|
|
146
395
|
class="m-card"
|
|
147
|
-
style="${
|
|
396
|
+
style="${wo({"--m-card-flag-color":Bt(this.flagColor)})}"
|
|
148
397
|
>
|
|
149
|
-
${this.flagged?
|
|
398
|
+
${this.flagged?bt`<span class="m-card-flag"></span>`:pt}
|
|
150
399
|
<div class="m-card-content">
|
|
151
400
|
<slot name="title"></slot>
|
|
152
401
|
<slot name="subtitle"></slot>
|
|
@@ -154,9 +403,9 @@ const nt=1,rt=t=>(...o)=>({_$litDirective$:t,values:o});class it{constructor(t){
|
|
|
154
403
|
<slot name="body"></slot>
|
|
155
404
|
</div>
|
|
156
405
|
</div>
|
|
157
|
-
`}}
|
|
406
|
+
`}}ko.styles=[s`
|
|
158
407
|
:host {
|
|
159
|
-
--m-card-background-color: ${
|
|
408
|
+
--m-card-background-color: ${lo("color-background-primary")};
|
|
160
409
|
}
|
|
161
410
|
|
|
162
411
|
.m-card {
|
|
@@ -165,8 +414,8 @@ const nt=1,rt=t=>(...o)=>({_$litDirective$:t,values:o});class it{constructor(t){
|
|
|
165
414
|
flex-direction: row;
|
|
166
415
|
|
|
167
416
|
background-color: var( --m-card-background-color );
|
|
168
|
-
border-radius: ${
|
|
169
|
-
border: solid 1px ${
|
|
417
|
+
border-radius: ${so("border-radius-s")};
|
|
418
|
+
border: solid 1px ${lo("color-divider")};
|
|
170
419
|
}
|
|
171
420
|
|
|
172
421
|
.m-card-flag {
|
|
@@ -179,11 +428,11 @@ const nt=1,rt=t=>(...o)=>({_$litDirective$:t,values:o});class it{constructor(t){
|
|
|
179
428
|
box-sizing: border-box;
|
|
180
429
|
border: 1px solid var( --m-card-flag-color );
|
|
181
430
|
background-color: var( --m-card-flag-color );
|
|
182
|
-
width: ${
|
|
183
|
-
border-top-left-radius: ${
|
|
431
|
+
width: ${so("border-thick")};
|
|
432
|
+
border-top-left-radius: ${so("border-radius-s")};
|
|
184
433
|
border-top-right-radius: 0;
|
|
185
434
|
border-bottom-right-radius: 0;
|
|
186
|
-
border-bottom-left-radius: ${
|
|
435
|
+
border-bottom-left-radius: ${so("border-radius-s")};
|
|
187
436
|
}
|
|
188
437
|
|
|
189
438
|
.m-card-content {
|
|
@@ -193,58 +442,58 @@ const nt=1,rt=t=>(...o)=>({_$litDirective$:t,values:o});class it{constructor(t){
|
|
|
193
442
|
}
|
|
194
443
|
|
|
195
444
|
::slotted( m-divider ) {
|
|
196
|
-
--m-divider-margin-top: ${
|
|
445
|
+
--m-divider-margin-top: ${so("spacing-4")};
|
|
197
446
|
}
|
|
198
|
-
`],window.customElements.define("m-card",
|
|
447
|
+
`],window.customElements.define("m-card",ko);class So extends Ot{constructor(){super(),this.slot="body"}render(){return bt`
|
|
199
448
|
<div class="m-card-body">
|
|
200
449
|
<slot></slot>
|
|
201
450
|
</div>
|
|
202
|
-
`}}
|
|
451
|
+
`}}So.styles=[s`
|
|
203
452
|
:host {
|
|
204
|
-
--m-card-body-padding-x: ${
|
|
205
|
-
--m-card-body-padding-y: ${
|
|
453
|
+
--m-card-body-padding-x: ${so("spacing-4")};
|
|
454
|
+
--m-card-body-padding-y: ${so("spacing-4")};
|
|
206
455
|
}
|
|
207
456
|
|
|
208
457
|
.m-card-body {
|
|
209
458
|
padding: var( --m-card-body-padding-y ) var( --m-card-body-padding-x );
|
|
210
459
|
}
|
|
211
|
-
`],window.customElements.define("m-card-body",
|
|
460
|
+
`],window.customElements.define("m-card-body",So);class zo extends Ot{constructor(){super(),this.slot="subtitle"}render(){return bt`
|
|
212
461
|
<div class="m-card-subtitle">
|
|
213
462
|
<slot></slot>
|
|
214
463
|
</div>
|
|
215
|
-
`}}
|
|
464
|
+
`}}zo.styles=[s`
|
|
216
465
|
:host {
|
|
217
|
-
--m-card-subtitle-margin-top: ${
|
|
218
|
-
--m-card-subtitle-padding-x: ${
|
|
466
|
+
--m-card-subtitle-margin-top: ${so("spacing-2")};
|
|
467
|
+
--m-card-subtitle-padding-x: ${so("spacing-4")};
|
|
219
468
|
--m-card-subtitle-padding-y: 0;
|
|
220
469
|
}
|
|
221
470
|
|
|
222
471
|
.m-card-subtitle {
|
|
223
|
-
${
|
|
472
|
+
${fo("body-md")};
|
|
224
473
|
|
|
225
474
|
margin-block-start: var( --m-card-subtitle-margin-top );
|
|
226
475
|
padding: var( --m-card-subtitle-padding-y )
|
|
227
476
|
var( --m-card-subtitle-padding-x );
|
|
228
477
|
|
|
229
|
-
color: ${
|
|
478
|
+
color: ${lo("color-text-tertiary")};
|
|
230
479
|
}
|
|
231
|
-
`],window.customElements.define("m-card-subtitle",
|
|
480
|
+
`],window.customElements.define("m-card-subtitle",zo);class Ao extends Ot{constructor(){super(),this.slot="title"}render(){return bt`
|
|
232
481
|
<div class="m-card-title">
|
|
233
482
|
<slot name="leading"></slot>
|
|
234
483
|
<slot></slot>
|
|
235
484
|
</div>
|
|
236
|
-
`}}
|
|
485
|
+
`}}Ao.styles=[s`
|
|
237
486
|
:host {
|
|
238
|
-
--m-card-title-padding-x: ${
|
|
239
|
-
--m-card-title-padding-top: ${
|
|
487
|
+
--m-card-title-padding-x: ${so("spacing-4")};
|
|
488
|
+
--m-card-title-padding-top: ${so("spacing-4")};
|
|
240
489
|
}
|
|
241
490
|
|
|
242
491
|
.m-card-title {
|
|
243
492
|
padding: var( --m-card-title-padding-top ) var( --m-card-title-padding-x )
|
|
244
493
|
0;
|
|
245
494
|
|
|
246
|
-
${
|
|
247
|
-
color: ${
|
|
495
|
+
${fo("heading-sm-bold")};
|
|
496
|
+
color: ${lo("color-text-primary")};
|
|
248
497
|
}
|
|
249
498
|
|
|
250
499
|
slot[name='leading']::slotted( * ) {
|
|
@@ -253,12 +502,12 @@ const nt=1,rt=t=>(...o)=>({_$litDirective$:t,values:o});class it{constructor(t){
|
|
|
253
502
|
align-items: center;
|
|
254
503
|
justify-content: center;
|
|
255
504
|
pointer-events: none;
|
|
256
|
-
margin-inline-end: ${
|
|
505
|
+
margin-inline-end: ${so("spacing-1")};
|
|
257
506
|
}
|
|
258
|
-
`],window.customElements.define("m-card-title",
|
|
507
|
+
`],window.customElements.define("m-card-title",Ao);class _o extends Ot{render(){return bt` <hr class="m-divider" /> `}}_o.styles=[s`
|
|
259
508
|
.m-divider {
|
|
260
509
|
border: 0;
|
|
261
|
-
border-block-end: solid 1px ${
|
|
510
|
+
border-block-end: solid 1px ${lo("color-divider")};
|
|
262
511
|
margin-block-start: var(
|
|
263
512
|
--m-divider-margin-top,
|
|
264
513
|
var( --m-divider-margin-y, 0 )
|
|
@@ -268,61 +517,14 @@ const nt=1,rt=t=>(...o)=>({_$litDirective$:t,values:o});class it{constructor(t){
|
|
|
268
517
|
var( --m-divider-margin-y, 0 )
|
|
269
518
|
);
|
|
270
519
|
}
|
|
271
|
-
`],window.customElements.define("m-divider",
|
|
272
|
-
<div class="bar">
|
|
273
|
-
<span
|
|
274
|
-
class="progress"
|
|
275
|
-
style=${st({width:`${this._getWidth()}%`})}
|
|
276
|
-
></span>
|
|
277
|
-
</div>
|
|
278
|
-
`}}Kt.styles=[s`
|
|
279
|
-
:host {
|
|
280
|
-
--m-progress-bar-progress-background: linear-gradient(
|
|
281
|
-
45deg,
|
|
282
|
-
${Bt("color-brand-accent-1")} 22%,
|
|
283
|
-
${Bt("color-brand-accent-2")} 88%
|
|
284
|
-
);
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
.bar {
|
|
288
|
-
display: flex;
|
|
289
|
-
flex-grow: 0;
|
|
290
|
-
flex-shrink: 1;
|
|
291
|
-
align-items: center;
|
|
292
|
-
justify-content: center;
|
|
293
|
-
|
|
294
|
-
position: relative;
|
|
295
|
-
overflow: hidden;
|
|
296
|
-
|
|
297
|
-
width: 100%;
|
|
298
|
-
height: ${qt("8px")};
|
|
299
|
-
|
|
300
|
-
border-radius: ${Wt("border-radius-s")};
|
|
301
|
-
|
|
302
|
-
background-color: ${Bt("color-background-tertiary")};
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
.progress {
|
|
306
|
-
position: absolute;
|
|
307
|
-
top: 0;
|
|
308
|
-
left: 0;
|
|
309
|
-
|
|
310
|
-
${Ut([{property:"width"}])};
|
|
311
|
-
|
|
312
|
-
height: ${qt("8px")};
|
|
313
|
-
|
|
314
|
-
border-radius: ${Wt("border-radius-s")};
|
|
315
|
-
|
|
316
|
-
background: var( --m-progress-bar-progress-background );
|
|
317
|
-
}
|
|
318
|
-
`],window.customElements.define("m-progress-bar",Kt);const Vt=["center","flex-start","flex-end","stretch"],Ft=["center","flex-start","flex-end","space-between","space-around","space-evenly"],Qt={padding:"spacing-4",borderRadius:"border-radius-s",borderWidth:"border-none",borderColor:"color-background-highlight",textAlign:"left"};class Xt extends tt{constructor(){super(),this.padding=Qt.padding,this.borderRadius=Qt.borderRadius,this.borderWidth=Qt.borderWidth,this.borderColor=Qt.borderColor,this.textAlign=Qt.textAlign}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"}}}update(t){this.style.setProperty("--m-box-padding",at(this.padding)||at(Qt.padding)),this.style.setProperty("--m-box-background-color",at(this.backgroundColor)||"transparent"),this.style.setProperty("--m-box-border-radius",at(this.borderRadius)||at(Qt.borderRadius)),this.style.setProperty("--m-box-border-width",at(this.borderWidth)||at(Qt.borderWidth)),this.style.setProperty("--m-box-border-color",at(this.borderColor)||at(Qt.borderColor)),this.style.setProperty("--m-box-text-align",this.textAlign||Qt.textAlign),super.update(t)}render(){return W`<slot></slot>`}}Xt.styles=[s`
|
|
520
|
+
`],window.customElements.define("m-divider",_o);const Co=["center","flex-start","flex-end","stretch"],jo=["center","flex-start","flex-end","space-between","space-around","space-evenly"],Eo={padding:"spacing-4",borderRadius:"border-radius-s",borderWidth:"border-none",borderColor:"color-background-highlight",textAlign:"left"};class Mo extends Ot{constructor(){super(),this.padding=Eo.padding,this.borderRadius=Eo.borderRadius,this.borderWidth=Eo.borderWidth,this.borderColor=Eo.borderColor,this.textAlign=Eo.textAlign}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"}}}update(t){this.style.setProperty("--m-box-padding",Bt(this.padding)||Bt(Eo.padding)),this.style.setProperty("--m-box-background-color",Bt(this.backgroundColor)||"transparent"),this.style.setProperty("--m-box-border-radius",Bt(this.borderRadius)||Bt(Eo.borderRadius)),this.style.setProperty("--m-box-border-width",Bt(this.borderWidth)||Bt(Eo.borderWidth)),this.style.setProperty("--m-box-border-color",Bt(this.borderColor)||Bt(Eo.borderColor)),this.style.setProperty("--m-box-text-align",this.textAlign||Eo.textAlign),super.update(t)}render(){return bt`<slot></slot>`}}Mo.styles=[s`
|
|
319
521
|
:host {
|
|
320
|
-
--m-box-padding: ${
|
|
522
|
+
--m-box-padding: ${so(Eo.padding)};
|
|
321
523
|
--m-box-background-color: transparent;
|
|
322
|
-
--m-box-border-radius: ${
|
|
323
|
-
--m-box-border-width: ${
|
|
324
|
-
--m-box-border-color: ${
|
|
325
|
-
--m-box-text-align: ${
|
|
524
|
+
--m-box-border-radius: ${so(Eo.borderRadius)};
|
|
525
|
+
--m-box-border-width: ${so(Eo.borderWidth)};
|
|
526
|
+
--m-box-border-color: ${lo(Eo.borderColor)};
|
|
527
|
+
--m-box-text-align: ${r(Eo.textAlign)};
|
|
326
528
|
|
|
327
529
|
box-sizing: border-box;
|
|
328
530
|
|
|
@@ -334,11 +536,11 @@ const nt=1,rt=t=>(...o)=>({_$litDirective$:t,values:o});class it{constructor(t){
|
|
|
334
536
|
border-color: var( --m-box-border-color );
|
|
335
537
|
text-align: var( --m-box-text-align );
|
|
336
538
|
}
|
|
337
|
-
`],window.customElements.define("m-box",
|
|
539
|
+
`],window.customElements.define("m-box",Mo);const To={gap:"spacing-4",align:"stretch",justify:"flex-start"};class Oo extends Ot{constructor(){super(),this.gap=To.gap,this.align=To.align,this.justify=To.justify}static get properties(){return{gap:{type:String},align:{type:String},justify:{type:String}}}update(t){this.style.setProperty("--m-group-gap",Bt(this.gap)||Bt(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 bt`<slot></slot>`}}Oo.styles=[s`
|
|
338
540
|
:host {
|
|
339
|
-
--m-group-gap: ${
|
|
340
|
-
--m-group-align: ${
|
|
341
|
-
--m-group-justify: ${
|
|
541
|
+
--m-group-gap: ${so(To.gap)};
|
|
542
|
+
--m-group-align: ${r(To.align)};
|
|
543
|
+
--m-group-justify: ${r(To.justify)};
|
|
342
544
|
|
|
343
545
|
display: flex;
|
|
344
546
|
flex-wrap: wrap;
|
|
@@ -346,11 +548,11 @@ const nt=1,rt=t=>(...o)=>({_$litDirective$:t,values:o});class it{constructor(t){
|
|
|
346
548
|
align-items: var(--m-group-align);
|
|
347
549
|
justify-content: var(--m-group-justify);
|
|
348
550
|
}
|
|
349
|
-
`],window.customElements.define("m-group",
|
|
551
|
+
`],window.customElements.define("m-group",Oo);const Uo={gap:"spacing-4",align:"stretch",justify:"flex-start"};class No extends Ot{constructor(){super(),this.gap=Uo.gap,this.align=Uo.align,this.justify=Uo.justify}static get properties(){return{gap:{type:String},align:{type:String},justify:{type:String}}}update(t){this.style.setProperty("--m-stack-gap",Bt(this.gap)||Bt(Uo.gap)),this.style.setProperty("--m-stack-align",this.align||Uo.align),this.style.setProperty("--m-stack-justify",this.justify||Uo.justify),super.update(t)}render(){return bt`<slot></slot>`}}No.styles=[s`
|
|
350
552
|
:host {
|
|
351
|
-
--m-stack-gap: ${
|
|
352
|
-
--m-stack-align: ${
|
|
353
|
-
--m-stack-justify: ${
|
|
553
|
+
--m-stack-gap: ${so(Uo.gap)};
|
|
554
|
+
--m-stack-align: ${r(Uo.align)};
|
|
555
|
+
--m-stack-justify: ${r(Uo.justify)};
|
|
354
556
|
|
|
355
557
|
display: flex;
|
|
356
558
|
flex-direction: column;
|
|
@@ -359,10 +561,10 @@ const nt=1,rt=t=>(...o)=>({_$litDirective$:t,values:o});class it{constructor(t){
|
|
|
359
561
|
align-items: var(--m-stack-align);
|
|
360
562
|
justify-content: var(--m-stack-justify);
|
|
361
563
|
}
|
|
362
|
-
`],window.customElements.define("m-stack",
|
|
564
|
+
`],window.customElements.define("m-stack",No);const Ro={gap:"spacing-4",minColumnWidth:Dt("spacing-30")};class Wo extends Ot{constructor(){super(),this.gap=Ro.gap,this.minColumnWidth=Ro.minColumnWidth}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"}}}update(t){t.has("gap")&&this.style.setProperty("--m-grid-gap",Bt(this.gap)||Bt(Ro.gap)),t.has("rowGap")&&(this.rowGap?this.style.setProperty("--m-grid-row-gap",Bt(this.rowGap)):this.style.removeProperty("--m-grid-row-gap")),t.has("columnGap")&&(this.columnGap?this.style.setProperty("--m-grid-column-gap",Bt(this.columnGap)):this.style.removeProperty("--m-grid-column-gap")),t.has("minColumnWidth")&&this.style.setProperty("--m-grid-min-column-width",this.minColumnWidth||Ro.minColumnWidth),super.update(t)}render(){return bt`<slot></slot>`}}Wo.styles=[s`
|
|
363
565
|
:host {
|
|
364
|
-
--m-grid-gap: ${
|
|
365
|
-
--m-grid-min-column-width: ${
|
|
566
|
+
--m-grid-gap: ${so(Ro.gap)};
|
|
567
|
+
--m-grid-min-column-width: ${r(Ro.minColumnWidth)};
|
|
366
568
|
|
|
367
569
|
display: grid;
|
|
368
570
|
|
|
@@ -374,15 +576,15 @@ const nt=1,rt=t=>(...o)=>({_$litDirective$:t,values:o});class it{constructor(t){
|
|
|
374
576
|
minmax( min( var( --m-grid-min-column-width ), 100% ), 1fr )
|
|
375
577
|
);
|
|
376
578
|
}
|
|
377
|
-
`],window.customElements.define("m-grid",
|
|
579
|
+
`],window.customElements.define("m-grid",Wo);const Lo={gap:"spacing-4",sideWidth:"auto",minContentWidth:"50%",reversed:!1};function Bo(t){return t?"row-reverse":"row"}class Do extends Ot{constructor(){super(),this.gap=Lo.gap,this.sideWidth=Lo.sideWidth,this.minContentWidth=Lo.minContentWidth,this.reversed=Lo.reversed}static get properties(){return{gap:{type:String},sideWidth:{type:String,attribute:"side-width"},minContentWidth:{type:String,attribute:"min-content-width"},reversed:{type:Boolean}}}update(t){t.has("gap")&&this.style.setProperty("--m-sidebar-gap",Bt(this.gap)||Bt(Lo.gap)),t.has("sideWidth")&&this.style.setProperty("--m-sidebar-side-width",this.sideWidth||Lo.sideWidth),t.has("minContentWidth")&&this.style.setProperty("--m-sidebar-min-content-width",this.minContentWidth||Lo.minContentWidth),t.has("reversed")&&this.style.setProperty("--m-sidebar-flex-direction",Bo(this.reversed)),super.update(t)}render(){return bt`
|
|
378
580
|
<slot name="sidebar"></slot>
|
|
379
581
|
<slot name="content"></slot>
|
|
380
|
-
`}}
|
|
582
|
+
`}}function Io(t,o,i){return Math.min(Math.max(o,t),i)}Do.styles=[s`
|
|
381
583
|
:host {
|
|
382
|
-
--m-sidebar-gap: ${
|
|
383
|
-
--m-sidebar-flex-direction: ${
|
|
384
|
-
--m-sidebar-side-width: ${
|
|
385
|
-
--m-sidebar-min-content-width: ${
|
|
584
|
+
--m-sidebar-gap: ${so(Lo.gap)};
|
|
585
|
+
--m-sidebar-flex-direction: ${r(Bo(Lo.reversed))};
|
|
586
|
+
--m-sidebar-side-width: ${r(Lo.sideWidth)};
|
|
587
|
+
--m-sidebar-min-content-width: ${r(Lo.minContentWidth)};
|
|
386
588
|
|
|
387
589
|
display: flex;
|
|
388
590
|
flex-wrap: wrap;
|
|
@@ -401,342 +603,261 @@ const nt=1,rt=t=>(...o)=>({_$litDirective$:t,values:o});class it{constructor(t){
|
|
|
401
603
|
flex-grow: 999;
|
|
402
604
|
min-width: var( --m-sidebar-min-content-width );
|
|
403
605
|
}
|
|
404
|
-
`],window.customElements.define("m-sidebar",
|
|
405
|
-
<
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
>
|
|
411
|
-
|
|
412
|
-
${this.loading&&!["icon","icon-secondary"].includes(this.variant)?W`<span class="loader">●●●</span>`:N}
|
|
413
|
-
<slot name="leading"></slot>
|
|
414
|
-
<slot></slot>
|
|
415
|
-
<slot name="trailing"></slot>
|
|
416
|
-
</button>
|
|
417
|
-
`}_isDisabled(){return this.disabled||this.loading}}var co,uo;lo.styles=[s`
|
|
606
|
+
`],window.customElements.define("m-sidebar",Do);function Po(t,o){return r(function(t,o){return void 0===o&&(o=16),"".concat(parseInt(String(t),10)/o,"rem")}(t,o))}class Zo extends Ot{constructor(){super(),this._safeValue=0,this._safeMax=100,this.value=0,this.max=100}static get properties(){return{value:{type:Number,noAccessor:!0},max:{type:Number,noAccessor:!0}}}set value(t){const o=this._safeValue;this._safeValue=Io(t,0,this._safeMax),this.requestUpdate("value",o)}get value(){return this._safeValue}set max(t){const o=this._safeMax;this._safeMax=t<=0?100:t,this._safeValue=Io(this._safeValue,0,this._safeMax),this.requestUpdate("max",o)}get max(){return this._safeMax}connectedCallback(){super.connectedCallback(),this.setAttribute("role","progressbar"),this.setAttribute("aria-valuemin","0")}updated(){this.setAttribute("aria-valuenow",String(this._safeValue)),this.setAttribute("aria-valuemax",String(this._safeMax))}_getWidth(){return 100*this._safeValue/this._safeMax}render(){return bt`
|
|
607
|
+
<div class="bar">
|
|
608
|
+
<span
|
|
609
|
+
class="progress"
|
|
610
|
+
style=${wo({width:`${this._getWidth()}%`})}
|
|
611
|
+
></span>
|
|
612
|
+
</div>
|
|
613
|
+
`}}Zo.styles=[s`
|
|
418
614
|
:host {
|
|
419
|
-
--m-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
--m-button-outline-color: ${Bt("color-primary-100")};
|
|
425
|
-
--m-button-outline-offset: 2px;
|
|
426
|
-
--m-button-padding-x: ${Wt("spacing-4")};
|
|
427
|
-
--m-button-padding-y: ${Wt("spacing-3")};
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
.m-button {
|
|
431
|
-
${Ut([{property:"color"},{property:"background-color"},{property:"border-color"}])};
|
|
432
|
-
|
|
433
|
-
${Rt("button-md")};
|
|
434
|
-
|
|
435
|
-
cursor: pointer;
|
|
436
|
-
position: relative;
|
|
437
|
-
|
|
438
|
-
display: inline-flex;
|
|
439
|
-
align-items: center;
|
|
440
|
-
justify-content: center;
|
|
441
|
-
overflow: hidden;
|
|
442
|
-
|
|
443
|
-
block-size: var( --m-button-base-size );
|
|
444
|
-
|
|
445
|
-
text-decoration: none;
|
|
446
|
-
|
|
447
|
-
gap: ${Wt("spacing-1")};
|
|
448
|
-
|
|
449
|
-
padding-inline: var( --m-button-padding-x );
|
|
450
|
-
padding-block: var( --m-button-padding-y );
|
|
451
|
-
|
|
452
|
-
background-color: var( --m-button-background-color );
|
|
453
|
-
color: var( --m-button-color );
|
|
454
|
-
border: 1px solid var( --m-button-border-color );
|
|
455
|
-
|
|
456
|
-
border-radius: var( --m-button-border-radius );
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
${Nt(".m-button")} {
|
|
460
|
-
cursor: not-allowed;
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
${Nt(".m-button","*")} {
|
|
464
|
-
pointer-events: none;
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
${Pt.focus(".m-button")} {
|
|
468
|
-
outline: 1px solid var( --m-button-outline-color );
|
|
469
|
-
outline-offset: var( --m-button-outline-offset );
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
${Pt.hover(".m-button")} {
|
|
473
|
-
--m-button-background-color: ${Bt("color-background-inverted")};
|
|
474
|
-
--m-button-border-color: ${Bt("color-background-inverted")};
|
|
475
|
-
--m-button-color: ${Bt("color-text-inverted")};
|
|
615
|
+
--m-progress-bar-progress-background: linear-gradient(
|
|
616
|
+
45deg,
|
|
617
|
+
${lo("color-brand-accent-1")} 22%,
|
|
618
|
+
${lo("color-brand-accent-2")} 88%
|
|
619
|
+
);
|
|
476
620
|
}
|
|
477
621
|
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
622
|
+
.bar {
|
|
623
|
+
display: flex;
|
|
624
|
+
flex-grow: 0;
|
|
625
|
+
flex-shrink: 1;
|
|
481
626
|
align-items: center;
|
|
482
|
-
|
|
483
|
-
${uo=0,e(`\n\t\t${Mt(uo)};\n\t\t${Et(uo)}\n\t`)};
|
|
484
|
-
${co=0,e(`\n\t\t${jt(co)};\n\t\t${_t(co)}\n\t`)};
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
slot[name='leading']::slotted( span ),
|
|
488
|
-
slot[name='trailing']::slotted( span ) {
|
|
489
627
|
justify-content: center;
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
.m-button.is-loading:not( .-icon, .-icon-secondary ) *:not( .loader ) {
|
|
493
|
-
visibility: hidden;
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
.m-button.-primary {
|
|
497
|
-
--m-button-background-color: ${Bt("color-primary-60")};
|
|
498
|
-
--m-button-border-color: ${Bt("color-primary-60")};
|
|
499
|
-
--m-button-color: ${Bt("color-text-inverted")};
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
${Nt(".m-button.-primary")} {
|
|
503
|
-
--m-button-background-color: ${Bt("color-primary-20")};
|
|
504
|
-
--m-button-border-color: ${Bt("color-primary-20")};
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
${Pt.focus(".m-button.-primary")} {
|
|
508
|
-
--m-button-border-color: ${Bt("color-primary-60")};
|
|
509
|
-
--m-button-outline-color: ${Bt("color-primary-60")};
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
${Pt.hover(".m-button.-primary")},
|
|
513
|
-
${Pt.active(".m-button.-primary")} {
|
|
514
|
-
--m-button-background-color: ${Bt("color-primary-100")};
|
|
515
|
-
--m-button-border-color: ${Bt("color-primary-100")};
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
.m-button.-primary.is-loading {
|
|
519
|
-
--m-button-background-color: ${Bt("color-primary-60")};
|
|
520
|
-
--m-button-border-color: ${Bt("color-primary-60")};
|
|
521
|
-
--m-button-color: ${Bt("color-text-inverted")};
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
.m-button.-secondary {
|
|
525
|
-
--m-button-background-color: transparent;
|
|
526
|
-
--m-button-border-color: ${Bt("color-primary-100")};
|
|
527
|
-
--m-button-color: ${Bt("color-primary-100")};
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
${Nt(".m-button.-secondary")} {
|
|
531
|
-
--m-button-border-color: ${Bt("color-text-disabled")};
|
|
532
|
-
--m-button-color: ${Bt("color-text-disabled")};
|
|
533
|
-
}
|
|
534
628
|
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
--m-button-color: ${Bt("color-primary-100")};
|
|
538
|
-
|
|
539
|
-
--m-button-outline-color: ${Bt("color-primary-60")};
|
|
540
|
-
}
|
|
629
|
+
position: relative;
|
|
630
|
+
overflow: hidden;
|
|
541
631
|
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
--m-button-border-color: ${Bt("color-primary-60")};
|
|
545
|
-
--m-button-color: ${Bt("color-primary-60")};
|
|
546
|
-
}
|
|
632
|
+
width: 100%;
|
|
633
|
+
height: ${Po("8px")};
|
|
547
634
|
|
|
548
|
-
|
|
549
|
-
--m-button-background-color: transparent;
|
|
635
|
+
border-radius: ${so("border-radius-s")};
|
|
550
636
|
|
|
551
|
-
|
|
552
|
-
--m-button-color: ${Bt("color-primary-100")};
|
|
637
|
+
background-color: ${lo("color-background-tertiary")};
|
|
553
638
|
}
|
|
554
639
|
|
|
555
|
-
.
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
}
|
|
640
|
+
.progress {
|
|
641
|
+
position: absolute;
|
|
642
|
+
top: 0;
|
|
643
|
+
left: 0;
|
|
560
644
|
|
|
561
|
-
|
|
562
|
-
--m-button-color: ${Bt("color-text-disabled")};
|
|
563
|
-
}
|
|
645
|
+
${po([{property:"width"}])};
|
|
564
646
|
|
|
565
|
-
|
|
566
|
-
--m-button-color: ${Bt("color-primary-100")};
|
|
567
|
-
--m-button-outline-color: ${Bt("color-primary-60")};
|
|
568
|
-
}
|
|
647
|
+
height: ${Po("8px")};
|
|
569
648
|
|
|
570
|
-
|
|
571
|
-
--m-button-background-color: ${Bt("color-background-tertiary")};
|
|
572
|
-
--m-button-border-color: ${Bt("color-background-tertiary")};
|
|
573
|
-
--m-button-color: ${Bt("color-primary-60")};
|
|
574
|
-
}
|
|
649
|
+
border-radius: ${so("border-radius-s")};
|
|
575
650
|
|
|
576
|
-
|
|
577
|
-
--m-button-background-color: ${Bt("color-neutral-20")};
|
|
578
|
-
--m-button-border-color: ${Bt("color-neutral-20")};
|
|
579
|
-
--m-button-color: ${Bt("color-primary-60")};
|
|
651
|
+
background: var( --m-progress-bar-progress-background );
|
|
580
652
|
}
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
653
|
+
`],window.customElements.define("m-progress-bar",Zo);class Go extends Ot{constructor(){super(),this.variant="body-md",this.color="color-text-primary"}static get properties(){return{variant:{type:String,reflect:!0},color:{type:String}}}render(){return bt`
|
|
654
|
+
<span
|
|
655
|
+
class=${Lt({"m-text":!0,"-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-sm":"chips-sm"==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,"-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})}
|
|
656
|
+
style=${wo({"--m-text-color":Bt(this.color)})}
|
|
657
|
+
>
|
|
658
|
+
<slot></slot>
|
|
659
|
+
</span>
|
|
660
|
+
`}}Go.styles=[s`
|
|
661
|
+
:host {
|
|
662
|
+
--m-text-color: ${lo("color-text-primary")};
|
|
586
663
|
}
|
|
587
664
|
|
|
588
|
-
.m-
|
|
589
|
-
|
|
590
|
-
--m-button-border-color: ${Bt("color-warning-60")};
|
|
591
|
-
--m-button-color: ${Bt("color-text-primary")};
|
|
592
|
-
}
|
|
665
|
+
.m-text {
|
|
666
|
+
${po([{property:"color"}])};
|
|
593
667
|
|
|
594
|
-
|
|
595
|
-
--m-button-background-color: ${Bt("color-warning-20")};
|
|
596
|
-
--m-button-border-color: ${Bt("color-warning-20")};
|
|
597
|
-
--m-button-color: ${Bt("color-text-inverted")};
|
|
598
|
-
}
|
|
668
|
+
${fo()};
|
|
599
669
|
|
|
600
|
-
|
|
601
|
-
--m-button-background-color: ${Bt("color-warning-60")};
|
|
602
|
-
--m-button-outline-color: ${Bt("color-warning-60")};
|
|
603
|
-
}
|
|
670
|
+
display: inline-flex;
|
|
604
671
|
|
|
605
|
-
|
|
606
|
-
--m-button-background-color: ${Bt("color-warning-100")};
|
|
607
|
-
--m-button-border-color: ${Bt("color-warning-100")};
|
|
608
|
-
--m-button-color: ${Bt("color-text-inverted")};
|
|
672
|
+
color: var( --m-text-color );
|
|
609
673
|
}
|
|
610
674
|
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
--m-button-border-color: ${Bt("color-warning-60")};
|
|
614
|
-
--m-button-color: ${Bt("color-text-primary")};
|
|
675
|
+
.-body-md-bold-underline {
|
|
676
|
+
${fo("body-md-bold-underline")};
|
|
615
677
|
}
|
|
616
678
|
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
--m-button-border-color: ${Bt("color-danger-60")};
|
|
620
|
-
--m-button-color: ${Bt("color-text-inverted")};
|
|
679
|
+
.-body-md-bold {
|
|
680
|
+
${fo("body-md-bold")};
|
|
621
681
|
}
|
|
622
682
|
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
--m-button-border-color: ${Bt("color-danger-20")};
|
|
683
|
+
.-body-md-underline {
|
|
684
|
+
${fo("body-md-underline")};
|
|
626
685
|
}
|
|
627
686
|
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
--m-button-outline-color: ${Bt("color-danger-60")};
|
|
687
|
+
.-body-md {
|
|
688
|
+
${fo("body-md")};
|
|
631
689
|
}
|
|
632
690
|
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
--m-button-border-color: ${Bt("color-danger-100")};
|
|
691
|
+
.-body-sm-bold-underline {
|
|
692
|
+
${fo("body-sm-bold-underline")};
|
|
636
693
|
}
|
|
637
694
|
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
--m-button-border-color: ${Bt("color-danger-60")};
|
|
641
|
-
--m-button-color: ${Bt("color-text-inverted")};
|
|
695
|
+
.-body-sm-bold {
|
|
696
|
+
${fo("body-sm-bold")};
|
|
642
697
|
}
|
|
643
698
|
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
--m-button-border-radius: ${Wt("border-radius-circle")};
|
|
647
|
-
--m-button-color: ${Bt("color-neutral-90")};
|
|
648
|
-
--m-button-padding-x: ${Wt("spacing-1")};
|
|
649
|
-
--m-button-padding-y: ${Wt("spacing-1")};
|
|
650
|
-
|
|
651
|
-
min-block-size: var( --m-button-base-size );
|
|
652
|
-
max-block-size: var( --m-button-base-size );
|
|
653
|
-
min-inline-size: var( --m-button-base-size );
|
|
654
|
-
max-inline-size: var( --m-button-base-size );
|
|
699
|
+
.-body-sm-underline {
|
|
700
|
+
${fo("body-sm-underline")};
|
|
655
701
|
}
|
|
656
702
|
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
--m-button-border-color: ${Bt("color-background-tertiary")};
|
|
703
|
+
.-body-sm {
|
|
704
|
+
${fo("body-sm")};
|
|
660
705
|
}
|
|
661
706
|
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
--m-button-border-color: transparent;
|
|
707
|
+
.-button-lg {
|
|
708
|
+
${fo("button-lg")};
|
|
665
709
|
}
|
|
666
710
|
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
.m-button.-icon-secondary slot[name='leading']::slotted( * ),
|
|
670
|
-
.m-button.-icon-secondary slot[name='trailing']::slotted( * ) {
|
|
671
|
-
display: none;
|
|
711
|
+
.-button-md {
|
|
712
|
+
${fo("button-md")};
|
|
672
713
|
}
|
|
673
714
|
|
|
674
|
-
|
|
675
|
-
|
|
715
|
+
.-button-sm {
|
|
716
|
+
${fo("button-sm")};
|
|
676
717
|
}
|
|
677
718
|
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
--m-button-border-color: ${Bt("color-neutral-20")};
|
|
719
|
+
.-chips-sm {
|
|
720
|
+
${fo("chips-sm")};
|
|
681
721
|
}
|
|
682
722
|
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
--m-button-border-color: transparent;
|
|
723
|
+
.-heading-lg {
|
|
724
|
+
${fo("heading-lg")};
|
|
686
725
|
}
|
|
687
726
|
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
--m-button-outline-color: ${Bt("color-primary-60")};
|
|
727
|
+
.-heading-md-bold {
|
|
728
|
+
${fo("heading-md-bold")};
|
|
691
729
|
}
|
|
692
730
|
|
|
693
|
-
|
|
694
|
-
|
|
731
|
+
.-heading-md {
|
|
732
|
+
${fo("heading-md")};
|
|
695
733
|
}
|
|
696
734
|
|
|
697
|
-
|
|
698
|
-
|
|
735
|
+
.-heading-sm-bold {
|
|
736
|
+
${fo("heading-sm-bold")};
|
|
699
737
|
}
|
|
700
738
|
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
--m-button-color: ${Bt("color-primary-60")};
|
|
739
|
+
.-heading-sm {
|
|
740
|
+
${fo("heading-sm")};
|
|
704
741
|
}
|
|
705
742
|
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
--m-button-border-color: ${Bt("color-background-highlight")};
|
|
743
|
+
.-number-md {
|
|
744
|
+
${fo("number-md")};
|
|
709
745
|
}
|
|
710
746
|
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
--m-button-border-color: transparent;
|
|
747
|
+
.-number-sm {
|
|
748
|
+
${fo("number-sm")};
|
|
714
749
|
}
|
|
715
750
|
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
--m-button-base-size: 28px;
|
|
719
|
-
|
|
720
|
-
${Rt("button-sm")};
|
|
751
|
+
.-table-header-md {
|
|
752
|
+
${fo("table-header-md")};
|
|
721
753
|
}
|
|
722
754
|
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
--m-button-base-size: 48px;
|
|
726
|
-
|
|
727
|
-
${Rt("button-lg")};
|
|
755
|
+
.-table-header-sm {
|
|
756
|
+
${fo("table-header-sm")};
|
|
728
757
|
}
|
|
758
|
+
`],window.customElements.define("m-text",Go);var Jo,Ho={};Object.defineProperty(Ho,"i",{value:!0});var qo=go;Ho.SELECTION_TYPES=["single","single-strict","multiple"],Jo=Ho.default=function(t){var o=t.type,i=void 0===o?"multiple":o;return"single"===i?{type:"single",init:function(t){return this.select(t,new Set)},select:function(t,o){var i=qo.toArray(t);if(0===i.length)return o;var n=new Set;return n.add(String(i[i.length-1])),n},unselect:function(t,o){var i=qo.toArray(t);if(0===i.length||0===o.size)return o;for(var n=new Set(o),e=0;e<i.length;e++)n.delete(String(i[e]));return n},toggle:function(t,o){var i=qo.toArray(t);if(0===i.length)return o;for(var n=new Set,e=0;e<i.length;e++){var r=String(i[e]);o.has(r)||(n.clear(),n.add(r))}return n},reset:function(t){return null==t?new Set:t},value:function(t){return null==t||0===t.size?null:Array.from(t)[0]}}:"single-strict"===i?{type:"single-strict",init:function(t){return this.select(t,new Set)},select:function(t,o){var i=qo.toArray(t);if(0===i.length)return o;var n=new Set;return n.add(String(i[i.length-1])),n},unselect:function(t,o){var i=qo.toArray(t);if(0===i.length||0===o.size)return o;for(var n=new Set(o),e=0;e<i.length&&o.size>1;e++)n.delete(String(i[e]));return n},toggle:function(t,o){var i=qo.toArray(t);if(0===i.length)return o;for(var n=new Set(o),e=0;e<i.length;e++){var r=String(i[e]);o.has(r)||(n.clear(),n.add(r))}return n},reset:function(t){return null==t?new Set:t},value:function(t){return null==t||0===t.size?null:Array.from(t)[0]}}:{type:"multiple",init:function(t){return this.select(t,new Set)},select:function(t,o){var i=qo.toArray(t);if(0===i.length)return o;for(var n=new Set(o),e=0;e<i.length;e++)n.add(String(i[e]));return n},unselect:function(t,o){var i=qo.toArray(t);if(0===i.length||0===o.size)return o;for(var n=new Set(o),e=0;e<i.length;e++)n.delete(String(i[e]));return n},toggle:function(t,o){var i=qo.toArray(t);if(0===i.length)return o;for(var n=new Set(o),e=0;e<i.length;e++){var r=String(i[e]);o.has(r)?n.delete(r):n.add(r)}return n},reset:function(t){return null==t?new Set:t},value:function(t){return null==t||0===t.size?null:Array.from(t)}}};class Ko{constructor(t,o,i){this.disabled=!1,this.event="m-select",this._handleSelectionEvent=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:o,value:i}}=t;switch(o){case"select":this.select(bo(i));break;case"unselect":this.unselect(bo(i));break;case"toggle":this.toggle(bo(i))}},this.init=t=>{this.host.selection=this.strategy.init(t)},this.select=t=>{this.host.selection=this.strategy.select(t,this.host.selection),this._publish()},this.unselect=t=>{this.host.selection=this.strategy.unselect(t,this.host.selection),this._publish()},this.toggle=t=>{this.host.selection=this.strategy.toggle(t,this.host.selection),this._publish()},this.subscribe=()=>{this.host.addEventListener(this.event,this._handleSelectionEvent)},this.unsubscribe=()=>{this.host.removeEventListener(this.event,this._handleSelectionEvent)},this.host=t,this.type=o,this.event=i,this.strategy=Jo({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))}_publish(){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 Vo extends Ot{constructor(){super(),this._selectionController=null,this._defaultSlot=null,this.showCheck=!1,this.size="default",this.type="single",this.selection=new Set}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}}}update(t){super.update(t),(null!=t.get("type")&&null!=this.type||null==this._selectionController)&&(this._selectionController=new Ko(this,this.type,"m-toggle"),this._selectionController.init(bo(this.value)),this.role=["single","single-strict"].includes(this.type)?"radiogroup":"group"),t.has("value")&&this._selectionController.init(bo(this.value))}updated(t){super.updated(t),t.has("selection")&&this._getToggles().forEach((t=>{this._setToggleChecked(t)})),t.has("disabled")&&this._getToggles().forEach((t=>{this._setToggleDisabled(t)})),t.has("role")&&this._getToggles().forEach((t=>{this._setToggleRole(t)}))}render(){return bt`
|
|
759
|
+
<m-group
|
|
760
|
+
class=${Lt({"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})}
|
|
761
|
+
gap="spacing-1"
|
|
762
|
+
>
|
|
763
|
+
<slot></slot>
|
|
764
|
+
</m-group>
|
|
765
|
+
`}_getToggles(){return null==this._defaultSlot&&(this._defaultSlot=this.shadowRoot.querySelector("slot")),[...this._defaultSlot.assignedElements({flatten:!0})].filter((t=>"m-toggle"===t.tagName.toLowerCase()))}_setToggleRole(t){t.setAttribute("role",["single","single-strict"].includes(this.type)?"radio":"checkbox")}_setToggleChecked(t){t.checked=this.selection.has(t.value)}_setToggleDisabled(t){t.disabled=this.disabled}}Vo.styles=[[s`
|
|
766
|
+
.toggle-group {
|
|
767
|
+
inline-size: max-content;
|
|
768
|
+
|
|
769
|
+
border: 1px solid ${lo("color-border")};
|
|
770
|
+
padding: ${so("spacing-1")};
|
|
771
|
+
|
|
772
|
+
border-radius: ${so("border-radius-s")};
|
|
773
|
+
box-sizing: border-box;
|
|
774
|
+
|
|
775
|
+
block-size: 40px;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
.toggle-group.-small {
|
|
779
|
+
block-size: 28px;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
.toggle-group.-small ::slotted( m-toggle ) {
|
|
783
|
+
--m-toggle-base-size: 18px;
|
|
784
|
+
--m-toggle-font-size: ${so("font-size-5")};
|
|
785
|
+
--m-toggle-icon-size: 10px;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
.toggle-group.-show-check ::slotted( m-toggle[aria-checked='true'] ) {
|
|
789
|
+
--m-toggle-icon-display: inline-flex;
|
|
790
|
+
}
|
|
791
|
+
`]],window.customElements.define("m-toggle-group",Vo);class Fo extends Ot{constructor(){super(),this.disabled=!1,this.checked=!1}static get properties(){return{checked:{type:Boolean},disabled:{type:Boolean,reflect:!0},role:{type:String,reflect:!0},value:{type:String}}}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleClick)}updated(t){super.updated(t),t.has("disabled")&&this._setDisabled(),t.has("checked")&&this._setChecked()}render(){return bt`
|
|
792
|
+
<button
|
|
793
|
+
type="button"
|
|
794
|
+
class=${Lt({button:!0,toggle:!0})}
|
|
795
|
+
role="${this.role}"
|
|
796
|
+
aria-checked="${this.checked}"
|
|
797
|
+
?disabled="${this.disabled}"
|
|
798
|
+
>
|
|
799
|
+
<slot name="leading" slot="leading">
|
|
800
|
+
<!-- TODO: Isolate icons when we add another component that alse uses them -->
|
|
801
|
+
<svg
|
|
802
|
+
class="check-icon"
|
|
803
|
+
viewBox="0 0 48 48"
|
|
804
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
805
|
+
>
|
|
806
|
+
<path
|
|
807
|
+
fill-rule="evenodd"
|
|
808
|
+
clip-rule="evenodd"
|
|
809
|
+
d="M44.4203 13.3431L40.1777 9.1005L18.9645 30.3137L9.06496 20.4142L4.82232 24.6569L14.7218 34.5563L18.9645 38.799L23.2071 34.5563L44.4203 13.3431Z"
|
|
810
|
+
/>
|
|
811
|
+
</svg>
|
|
812
|
+
</slot>
|
|
729
813
|
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
814
|
+
<slot></slot>
|
|
815
|
+
</button>
|
|
816
|
+
`}_handleClick(){if(this.disabled)return;this.checked=!this.checked;const t={detail:{value:this.value,type:"toggle"},bubbles:!0,composed:!1};this.dispatchEvent(new CustomEvent("m-toggle",t))}_setDisabled(){this.setAttribute("aria-disabled",String(this.disabled))}_setChecked(){this.setAttribute("aria-checked",String(this.checked))}}Fo.styles=[[yo(),s`
|
|
817
|
+
:host {
|
|
818
|
+
/*
|
|
819
|
+
* These custom properties are here because they are meant to be
|
|
820
|
+
* overriden via toggle-group styles.
|
|
821
|
+
*/
|
|
822
|
+
--m-toggle-base-size: 30px;
|
|
823
|
+
--m-toggle-font-size: ${so("font-size-4")};
|
|
824
|
+
--m-toggle-icon-size: 12px;
|
|
825
|
+
--m-toggle-icon-display: none;
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
.toggle {
|
|
829
|
+
--m-button-border-color: transparent;
|
|
830
|
+
--m-button-color: ${lo("color-primary-100")};
|
|
831
|
+
--m-button-padding-x: ${so("spacing-2")};
|
|
832
|
+
--m-button-padding-y: 0;
|
|
833
|
+
|
|
834
|
+
--m-button-base-size: var( --m-toggle-base-size );
|
|
835
|
+
--m-button-font-size: var( --m-toggle-font-size );
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
${vo([".toggle"])} {
|
|
839
|
+
--m-button-color: ${lo("color-text-disabled")};
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
[aria-checked='true'] {
|
|
843
|
+
--m-button-background-color: ${lo("color-primary-20")};
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
${$o.hover(".toggle")} {
|
|
847
|
+
--m-button-background-color: ${lo("color-background-tertiary")};
|
|
848
|
+
--m-button-border-color: ${lo("color-background-tertiary")};
|
|
849
|
+
--m-button-color: ${lo("color-primary-100")};
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
.check-icon {
|
|
853
|
+
${po([{property:"color"},{property:"fill"}])};
|
|
854
|
+
|
|
855
|
+
display: var( --m-toggle-icon-display );
|
|
856
|
+
color: var( --m-button-color );
|
|
857
|
+
fill: var( --m-button-color );
|
|
858
|
+
|
|
859
|
+
block-size: var( --m-toggle-icon-size );
|
|
860
|
+
inline-size: var( --m-toggle-icon-size );
|
|
861
|
+
}
|
|
862
|
+
`]],window.customElements.define("m-toggle",Fo);export{Co as ALIGN_ITEMS_VALUES,Mo as Box,xo as Button,ko as Card,So as CardBody,zo as CardSubtitle,Ao as CardTitle,_o as Divider,Wo as Grid,Oo as Group,jo as JUSTIFY_CONTENT_VALUES,Zo as ProgressBar,Do as Sidebar,No as Stack,Go as Text,Fo as Toggle,Vo as ToggleGroup,Eo as defaultBoxProps,Ro as defaultGridProps,To as defaultGroupProps,Lo as defaultSidebarProps,Uo as defaultStackProps};
|
|
742
863
|
//# sourceMappingURL=index.js.map
|