@vandeurenglenn/lite-elements 0.3.28 → 0.3.29

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.
@@ -51,10 +51,12 @@ const Rt=t=>(e,i)=>{void 0!==i?i.addInitializer((()=>{customElements.define(t,e)
51
51
  padding: 6px 12px;
52
52
  box-sizing: border-box;
53
53
  margin-bottom: 12px;
54
+ background: var(--md-sys-color-surface-variant);
54
55
  }
55
56
 
56
57
  flex-row {
57
58
  height: 24px;
59
+ width: 100%;
58
60
  box-sizing: border-box;
59
61
  align-items: center;
60
62
  }
@@ -1,4 +1,4 @@
1
- import{_ as t,a as e,e as o}from"./custom-element-BMhVvZjf.js";import{t as i,j as s,v as n,D as a}from"./property-Do5-bKhz.js";import"./notification.js";import"./icon.js";import"./pane.js";import"./row-DNgwBcX5.js";import"./column-D2XB0lDz.js";import"./index-B3uz3f8C.js";import"./elevation.js";import"./button.js";let l=(()=>{let l,r,c,p=[o("custom-notifications")],m=[],h=a,u=[],d=[];return class extends h{static{r=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(h[Symbol.metadata]??null):void 0;c=[i({type:Boolean,reflect:!0})],t(this,null,c,{kind:"accessor",name:"open",static:!1,private:!1,access:{has:t=>"open"in t,get:t=>t.open,set:(t,e)=>{t.open=e}},metadata:e},u,d),t(null,l={value:r},p,{kind:"class",name:r.name,metadata:e},null,m),r=l.value,e&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#t=e(this,u,void 0);get open(){return this.#t}set open(t){this.#t=t}get _list(){return this.shadowRoot.querySelector(".list")}createNotification({title:t,message:e,image:o},i=3e3){const s=document.createElement("custom-notification");s.title=t,s.message=e,s.image=o,i&&setTimeout((()=>{this.removeChild(s);const i=document.createElement("custom-notification");i.image=o,i.title=t,i.message=e,this._list.appendChild(i)}),i),this.appendChild(s)}_onclick(){const t=Array.from(this._list.querySelectorAll("custom-notification"));for(const e of t)this._list.removeChild(e);this.open=!1}static styles=[s`
1
+ import{_ as t,a as e,e as o}from"./custom-element-BMhVvZjf.js";import{t as i,j as s,v as n,D as a}from"./property-Do5-bKhz.js";import"./notification.js";import"./icon.js";import"./pane.js";import"./row-DNgwBcX5.js";import"./column-D2XB0lDz.js";import"./index-B3uz3f8C.js";import"./elevation.js";import"./button.js";let r=(()=>{let r,c,l,p=[o("custom-notifications")],m=[],h=a,u=[],d=[];return class extends h{static{c=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(h[Symbol.metadata]??null):void 0;l=[i({type:Boolean,reflect:!0})],t(this,null,l,{kind:"accessor",name:"open",static:!1,private:!1,access:{has:t=>"open"in t,get:t=>t.open,set:(t,e)=>{t.open=e}},metadata:e},u,d),t(null,r={value:c},p,{kind:"class",name:c.name,metadata:e},null,m),c=r.value,e&&Object.defineProperty(c,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#t=e(this,u,void 0);get open(){return this.#t}set open(t){this.#t=t}get _list(){return this.shadowRoot.querySelector(".list")}createNotification({title:t,message:e,image:o},i=3e3){const s=document.createElement("custom-notification");s.title=t,s.message=e,s.image=o,i&&setTimeout((()=>{this.removeChild(s);const i=document.createElement("custom-notification");i.image=o,i.title=t,i.message=e,this._list.appendChild(i)}),i),this.appendChild(s)}_onclick(){const t=Array.from(this._list.querySelectorAll("custom-notification"));for(const e of t)this._list.removeChild(e);this.open=!1}static styles=[s`
2
2
  :host {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -18,7 +18,7 @@ import{_ as t,a as e,e as o}from"./custom-element-BMhVvZjf.js";import{t as i,j a
18
18
  }
19
19
 
20
20
  :host([open]) {
21
- background: rgb(51, 55, 80);
21
+ background: var(--md-sys-color-surface-container-high);
22
22
  }
23
23
 
24
24
  .recents {
@@ -63,4 +63,4 @@ import{_ as t,a as e,e as o}from"./custom-element-BMhVvZjf.js";import{t as i,j a
63
63
  <custom-icon style="margin-right: 24px;" icon="clear-all" @click="${this._onclick}"></custom-icon>
64
64
  </flex-row>
65
65
  </custom-pane>
66
- `}constructor(){super(...arguments),e(this,d)}static{e(r,m)}},r})();export{l as CustomNotifications};
66
+ `}constructor(){super(...arguments),e(this,d)}static{e(c,m)}},c})();export{r as CustomNotifications};
@@ -66,10 +66,12 @@ let CustomNotification = (() => {
66
66
  padding: 6px 12px;
67
67
  box-sizing: border-box;
68
68
  margin-bottom: 12px;
69
+ background: var(--md-sys-color-surface-variant);
69
70
  }
70
71
 
71
72
  flex-row {
72
73
  height: 24px;
74
+ width: 100%;
73
75
  box-sizing: border-box;
74
76
  align-items: center;
75
77
  }
@@ -81,7 +81,7 @@ let CustomNotifications = (() => {
81
81
  }
82
82
 
83
83
  :host([open]) {
84
- background: rgb(51, 55, 80);
84
+ background: var(--md-sys-color-surface-container-high);
85
85
  }
86
86
 
87
87
  .recents {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vandeurenglenn/lite-elements",
3
- "version": "0.3.28",
3
+ "version": "0.3.29",
4
4
  "description": "set of lite elements following Material Design 3 spec",
5
5
  "type": "module",
6
6
  "scripts": {