@loadsmart/miranda-wc 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- import{b as a}from"./index-430769d7.js";var s=a`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M6.732 42.889h34.537c2.06 0 3.376-2.192 2.406-4.005l-17.27-32.33c-1.026-1.924-3.785-1.924-4.813 0L4.324 38.883c-.968 1.813.349 4.005 2.408 4.005zm14.542-24.504h5.452v10.89h-5.452zM24 31.998a2.726 2.726 0 0 1 2.726 2.723A2.726 2.726 0 0 1 24 37.444a2.726 2.726 0 0 1-2.726-2.723A2.726 2.726 0 0 1 24 31.998z"/></svg>`;export{s as default};
2
- //# sourceMappingURL=attention-10509b66.js.map
1
+ import{b as a}from"./index-d8f66065.js";var s=a`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M6.732 42.889h34.537c2.06 0 3.376-2.192 2.406-4.005l-17.27-32.33c-1.026-1.924-3.785-1.924-4.813 0L4.324 38.883c-.968 1.813.349 4.005 2.408 4.005zm14.542-24.504h5.452v10.89h-5.452zM24 31.998a2.726 2.726 0 0 1 2.726 2.723A2.726 2.726 0 0 1 24 37.444a2.726 2.726 0 0 1-2.726-2.723A2.726 2.726 0 0 1 24 31.998z"/></svg>`;export{s as default};
2
+ //# sourceMappingURL=attention-2fc489b7.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attention-2fc489b7.js","sources":["../src/components/icon/icons/attention.ts"],"sourcesContent":[null],"names":["attention","svg"],"mappings":"wCAEA,IAAAA,EAAeC,CAAG"}
@@ -1,2 +1,2 @@
1
- import{b as v}from"./index-430769d7.js";var s=v`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M34.417 21.526v9.133l3.632 3.654v1.826H9v-1.827l3.631-3.653v-9.133c0-5.626 2.96-10.302 8.17-11.544V8.74A2.728 2.728 0 0123.524 6a2.728 2.728 0 012.724 2.74v1.242c5.192 1.242 8.17 5.937 8.17 11.544zm-7.262 16.44c0 2.01-1.634 3.653-3.63 3.653-2.016 0-3.632-1.644-3.632-3.653h7.262z"/></svg>`;export{s as default};
2
- //# sourceMappingURL=bell-da28592d.js.map
1
+ import{b as v}from"./index-d8f66065.js";var s=v`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M34.417 21.526v9.133l3.632 3.654v1.826H9v-1.827l3.631-3.653v-9.133c0-5.626 2.96-10.302 8.17-11.544V8.74A2.728 2.728 0 0123.524 6a2.728 2.728 0 012.724 2.74v1.242c5.192 1.242 8.17 5.937 8.17 11.544zm-7.262 16.44c0 2.01-1.634 3.653-3.63 3.653-2.016 0-3.632-1.644-3.632-3.653h7.262z"/></svg>`;export{s as default};
2
+ //# sourceMappingURL=bell-0851530f.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bell-0851530f.js","sources":["../src/components/icon/icons/bell.ts"],"sourcesContent":[null],"names":["bell","svg"],"mappings":"wCAEA,IAAAA,EAAeC,CAAG"}
@@ -1,2 +1,2 @@
1
- import{b as L}from"./index-430769d7.js";var s=L`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M44.4205 13.3433L40.1778 9.10067L18.9646 30.3139L9.06512 20.4144L4.82248 24.657L14.722 34.5565L18.9646 38.7992L23.2073 34.5565L44.4205 13.3433Z"/></svg>`;export{s as default};
2
- //# sourceMappingURL=check-3950d29e.js.map
1
+ import{b as L}from"./index-d8f66065.js";var s=L`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M44.4205 13.3433L40.1778 9.10067L18.9646 30.3139L9.06512 20.4144L4.82248 24.657L14.722 34.5565L18.9646 38.7992L23.2073 34.5565L44.4205 13.3433Z"/></svg>`;export{s as default};
2
+ //# sourceMappingURL=check-32afc80d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-32afc80d.js","sources":["../src/components/icon/icons/check.ts"],"sourcesContent":[null],"names":["check","svg"],"mappings":"wCAEA,IAAAA,EAAeC,CAAG"}
@@ -1,2 +1,2 @@
1
- import{b as L}from"./index-430769d7.js";var s=L`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M40.9706 11.2721L36.7279 7.02944L24 19.7574L11.2721 7.02944L7.02944 11.2721L19.7574 24L7.02944 36.7279L11.2721 40.9706L24 28.2426L36.7279 40.9706L40.9706 36.7279L28.2426 24L40.9706 11.2721Z"/></svg>`;export{s as default};
2
- //# sourceMappingURL=close-5355bc66.js.map
1
+ import{b as L}from"./index-d8f66065.js";var s=L`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M40.9706 11.2721L36.7279 7.02944L24 19.7574L11.2721 7.02944L7.02944 11.2721L19.7574 24L7.02944 36.7279L11.2721 40.9706L24 28.2426L36.7279 40.9706L40.9706 36.7279L28.2426 24L40.9706 11.2721Z"/></svg>`;export{s as default};
2
+ //# sourceMappingURL=close-5f1aed21.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"close-5f1aed21.js","sources":["../src/components/icon/icons/close.ts"],"sourcesContent":[null],"names":["close","svg"],"mappings":"wCAEA,IAAAA,EAAeC,CAAG"}
@@ -1,3 +1,4 @@
1
+ import type { PropertyValues } from 'lit';
1
2
  import { LitElement } from 'lit';
2
3
  import type { ColorToken } from '@loadsmart/miranda-tokens';
3
4
  export interface CardProps {
@@ -24,6 +25,7 @@ export declare class Card extends LitElement {
24
25
  */
25
26
  flagColor: NonNullable<CardProps['flag-color']>;
26
27
  constructor();
28
+ updated(changedProperties: PropertyValues<Card>): void;
27
29
  render(): import("lit-html").TemplateResult<1>;
28
30
  }
29
31
  declare global {
@@ -1 +1 @@
1
- {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/card/card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAW,MAAM,KAAK,CAAC;AAIhD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AC;KACf;CACD"}
@@ -1 +1 @@
1
- {"version":3,"file":"card.styles.d.ts","sourceRoot":"","sources":["../../../src/components/card/card.styles.ts"],"names":[],"mappings":"AAKA,wBAAgB,UAAU,4BA2CzB;AAED,wBAAgB,cAAc,4BAW7B;AAED,wBAAgB,kBAAkB,4BAiBjC;AAED,wBAAgB,eAAe,4BAuB9B;AAED,wBAAgB,iBAAiB,4BAMhC"}
1
+ {"version":3,"file":"card.styles.d.ts","sourceRoot":"","sources":["../../../src/components/card/card.styles.ts"],"names":[],"mappings":"AAKA,wBAAgB,UAAU,4BA0CzB;AAED,wBAAgB,cAAc,4BAW7B;AAED,wBAAgB,kBAAkB,4BAiBjC;AAED,wBAAgB,eAAe,4BAuB9B;AAED,wBAAgB,iBAAiB,4BAMhC"}
@@ -1,2 +1,2 @@
1
- import{b as v}from"./index-430769d7.js";var t=v`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none" /><path d="M19 13H5v-2h14v2z" /></svg>`;export{t as default};
2
- //# sourceMappingURL=indeterminate-46f2e264.js.map
1
+ import{b as v}from"./index-d8f66065.js";var t=v`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none" /><path d="M19 13H5v-2h14v2z" /></svg>`;export{t as default};
2
+ //# sourceMappingURL=indeterminate-c7f04ceb.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"indeterminate-46f2e264.js","sources":["../src/components/icon/icons/indeterminate.ts"],"sourcesContent":[null],"names":["indeterminate","svg"],"mappings":"wCAEA,IAAAA,EAAeC,CAAG"}
1
+ {"version":3,"file":"indeterminate-c7f04ceb.js","sources":["../src/components/icon/icons/indeterminate.ts"],"sourcesContent":[null],"names":["indeterminate","svg"],"mappings":"wCAEA,IAAAA,EAAeC,CAAG"}
@@ -423,7 +423,7 @@ const bt=t=>null!=t?t:C
423
423
  ${Nt("body-md-bold")};
424
424
  color: ${jt("color-text-secondary")};
425
425
  }
426
- `],window.customElements.define("m-banner-title",ne);class se extends pt{constructor(){super(...arguments),this.emit=(t,e)=>{const i=new CustomEvent(t,{bubbles:!0,cancelable:!0,composed:!0,...e});this.dispatchEvent(i)},this.reemit=t=>{!function(t,e){!e.bubbles||t.shadowRoot&&!e.composed||e.stopPropagation();const i=Reflect.construct(e.constructor,[e.type,e]),o=t.dispatchEvent(i);o||e.preventDefault()}(this,t)}}}var ae={BASE_PIXELS:16,toRem:function(t,e=16){return parseInt(String(t),10)/e+"rem"}},le=zt(ae.toRem);function ce(t,e){return K(le(t,e))}const de=new Map([["alert-circle",()=>import("./attention-10509b66.js")],["attention",()=>import("./attention-10509b66.js")],["bell",()=>import("./bell-da28592d.js")],["check",()=>import("./check-3950d29e.js")],["close",()=>import("./close-5355bc66.js")],["indeterminate",()=>import("./indeterminate-46f2e264.js")],["info-circle",()=>import("./info-circle-7231f76f.js")]]);var he,ue,pe,ge;de.keys();class be extends se{static get properties(){return{name:{type:String},size:{type:String},color:{type:String},loading:{state:!0}}}constructor(){super(),this.icon=null,he.set(this,(async()=>{de.has(this.name);try{this.icon=null;const{default:t}=await de.get(this.name)();this.icon=t}catch{}finally{this.requestUpdate()}})),this.icon=null}connectedCallback(){super.connectedCallback(),t(this,he,"f").call(this)}update(e){super.update(e),e.has("name")&&t(this,he,"f").call(this)}updated(t){super.updated(t),t.has("size")&&null!=this.size&&this.style.setProperty("--m-icon-size",`${parseInt(String(this.size),10)||16}px`),t.has("color")&&null!=this.color&&this.style.setProperty("--m-icon-color",Wt.toCSSValue(this.color))}render(){return null!=this.name&&de.has(this.name)&&null!=this.icon?this.icon:C}}he=new WeakMap,be.styles=[[Q`
426
+ `],window.customElements.define("m-banner-title",ne);class se extends pt{constructor(){super(...arguments),this.emit=(t,e)=>{const i=new CustomEvent(t,{bubbles:!0,cancelable:!0,composed:!0,...e});this.dispatchEvent(i)},this.reemit=t=>{!function(t,e){!e.bubbles||t.shadowRoot&&!e.composed||e.stopPropagation();const i=Reflect.construct(e.constructor,[e.type,e]),o=t.dispatchEvent(i);o||e.preventDefault()}(this,t)}}}var ae={BASE_PIXELS:16,toRem:function(t,e=16){return parseInt(String(t),10)/e+"rem"}},le=zt(ae.toRem);function ce(t,e){return K(le(t,e))}const de=new Map([["alert-circle",()=>import("./attention-2fc489b7.js")],["attention",()=>import("./attention-2fc489b7.js")],["bell",()=>import("./bell-0851530f.js")],["check",()=>import("./check-32afc80d.js")],["close",()=>import("./close-5f1aed21.js")],["indeterminate",()=>import("./indeterminate-c7f04ceb.js")],["info-circle",()=>import("./info-circle-f4e6c52a.js")]]);var he,ue,pe,ge;de.keys();class be extends se{static get properties(){return{name:{type:String},size:{type:String},color:{type:String},loading:{state:!0}}}constructor(){super(),this.icon=null,he.set(this,(async()=>{de.has(this.name);try{this.icon=null;const{default:t}=await de.get(this.name)();this.icon=t}catch{}finally{this.requestUpdate()}})),this.icon=null}connectedCallback(){super.connectedCallback(),t(this,he,"f").call(this)}update(e){super.update(e),e.has("name")&&t(this,he,"f").call(this)}updated(t){super.updated(t),t.has("size")&&null!=this.size&&this.style.setProperty("--m-icon-size",`${parseInt(String(this.size),10)||16}px`),t.has("color")&&null!=this.color&&this.style.setProperty("--m-icon-color",Wt.toCSSValue(this.color))}render(){return null!=this.name&&de.has(this.name)&&null!=this.icon?this.icon:C}}he=new WeakMap,be.styles=[[Q`
427
427
  :host {
428
428
  --m-icon-size: 16px;
429
429
  --m-icon-color: ${jt("color-text-primary")};
@@ -789,25 +789,17 @@ const fe="important",ye=" !"+fe,ve=ft(class extends yt{constructor(t){var e;if(s
789
789
  flex-grow: 1;
790
790
  gap: ${At("spacing-1")};
791
791
  }
792
- `],window.customElements.define("m-banner",ke);class ze extends pt{static get properties(){return{flagged:{type:Boolean},flagColor:{type:String,attribute:"flag-color"}}}constructor(){super(),this.flagged=!1,this.flagColor="color-background-inverted"}render(){return k`
793
- <div
794
- class="m-card"
795
- style="${ve({"--m-card-flag-color":Wt.toCSSValue(this.flagColor)})}"
796
- >
797
- ${this.flagged?k`<span class="m-card-flag"></span>`:C}
798
- <div class="m-card-content">
799
- <slot name="title"></slot>
800
- <slot name="subtitle"></slot>
801
- <slot name="divider"></slot>
802
- <slot name="body"></slot>
803
- </div>
792
+ `],window.customElements.define("m-banner",ke);class ze extends pt{static get properties(){return{flagged:{type:Boolean},flagColor:{type:String,attribute:"flag-color"}}}constructor(){super(),this.flagged=!1,this.flagColor="color-background-inverted"}updated(t){super.updated(t),this.style.setProperty("--m-card-flag-color",Wt.toCSSValue(this.flagColor))}render(){return k`
793
+ ${this.flagged?k`<span class="m-card-flag"></span>`:C}
794
+ <div class="m-card-content">
795
+ <slot name="title"></slot>
796
+ <slot name="subtitle"></slot>
797
+ <slot name="divider"></slot>
798
+ <slot name="body"></slot>
804
799
  </div>
805
800
  `}}ze.styles=[Q`
806
801
  :host {
807
802
  --m-card-background-color: ${jt("color-background-primary")};
808
- }
809
-
810
- .m-card {
811
803
  position: relative;
812
804
  display: flex;
813
805
  flex-direction: row;
@@ -836,7 +828,9 @@ const fe="important",ye=" !"+fe,ve=ft(class extends yt{constructor(t){var e;if(s
836
828
 
837
829
  .m-card-content {
838
830
  display: flex;
839
- flex: 1;
831
+ flex-grow: 1;
832
+ flex-shrink: 1;
833
+ flex-basis: 0%;
840
834
  flex-direction: column;
841
835
  }
842
836
 
@@ -2176,4 +2170,4 @@ let _e=class{constructor(t,e,i,o){var r;if(this.subscribe=!1,this.provided=!1,th
2176
2170
  display: inline-block;
2177
2171
  }
2178
2172
  `]],window.customElements.define("m-tooltip",Cn);const Mn=["top","left","right","bottom","top-start","top-end","bottom-start","bottom-end"];export{Io as $,Di as A,te as B,ze as C,Ke as D,qi as E,Ui as F,gi as G,fi as H,mi as I,bi as J,ci as K,li as L,yi as M,wi as N,$i as O,zi as P,xi as Q,Ci as R,vi as S,Si as T,Ii as U,Gi as V,Ki as W,yo as X,Lo as Y,No as Z,Fo as _,ee as a,$e as a0,Go as a1,rr as a2,nr as a3,sr as a4,ar as a5,Cn as a6,Mn as a7,z as b,ie as c,oe as d,re as e,ne as f,ke as g,Qt as h,Se as i,Ce as j,Me as k,Ae as l,Te as m,me as n,Qe as o,ti as p,oi as q,ri as r,ni as s,di as t,hi as u,ui as v,pi as w,ji as x,We as y,Oi as z};
2179
- //# sourceMappingURL=index-430769d7.js.map
2173
+ //# sourceMappingURL=index-d8f66065.js.map