genus-ui 1.82.20 → 1.84.20

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/index.umd.js CHANGED
@@ -1913,6 +1913,8 @@
1913
1913
 
1914
1914
  .toast--error { background: #ffebe8; }
1915
1915
 
1916
+ .toast--info { background: #edf1fb; }
1917
+
1916
1918
  .toast--success { background: #e8f9f0; }
1917
1919
 
1918
1920
  @media(min-width: 62em)
@@ -1944,6 +1946,8 @@
1944
1946
 
1945
1947
  .toast--error .toast__message { color: #981f10; }
1946
1948
 
1949
+ .toast--info .toast__message { color: #4b77d7; }
1950
+
1947
1951
  .toast--success .toast__message { color: #0f753e; }
1948
1952
  `,Ag=p.css`
1949
1953
  .genus-icon { pointer-events: none; }
@@ -1955,6 +1959,12 @@
1955
1959
  grid-column-gap: 1rem;
1956
1960
  align-items: center;
1957
1961
  }
1962
+
1963
+ .toast--info
1964
+ {
1965
+ grid-template-columns: 1fr;
1966
+ grid-column-gap: unset;
1967
+ }
1958
1968
  `,cg=p.css`
1959
1969
  .close-btn
1960
1970
  {
@@ -1962,10 +1972,12 @@
1962
1972
  width: 1.25rem;
1963
1973
  height: 1.25rem;
1964
1974
  }
1965
- `,hg="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eIconly/Bold/Close%20Square%3c/title%3e%3cg%20id='Iconly/Bold/Close-Square'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Close-Square'%20transform='translate(1.999800,%201.999200)'%20fill='%23fe331a'%20fill-rule='nonzero'%3e%3cpath%20d='M14.34,2.84217094e-14%20C17.73,2.84217094e-14%2020,2.38%2020,5.92%20L20,5.92%20L20,14.091%20C20,17.621%2017.73,20%2014.34,20%20L14.34,20%20L5.67,20%20C2.28,20%200,17.621%200,14.091%20L0,14.091%20L0,5.92%20C0,2.38%202.28,2.84217094e-14%205.67,2.84217094e-14%20L5.67,2.84217094e-14%20Z%20M13.01,6.971%20C12.67,6.63%2012.12,6.63%2011.77,6.971%20L11.77,6.971%20L10,8.75%20L8.22,6.971%20C7.87,6.63%207.32,6.63%206.98,6.971%20C6.64,7.311%206.64,7.871%206.98,8.21%20L6.98,8.21%20L8.76,9.991%20L6.98,11.761%20C6.64,12.111%206.64,12.661%206.98,13%20C7.15,13.17%207.38,13.261%207.6,13.261%20C7.83,13.261%208.05,13.17%208.22,13%20L8.22,13%20L10,11.231%20L11.78,13%20C11.95,13.181%2012.17,13.261%2012.39,13.261%20C12.62,13.261%2012.84,13.17%2013.01,13%20C13.35,12.661%2013.35,12.111%2013.01,11.771%20L13.01,11.771%20L11.23,9.991%20L13.01,8.21%20C13.35,7.871%2013.35,7.311%2013.01,6.971%20Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",dg="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eIconly/Bold/Close%20Square%3c/title%3e%3cg%20id='Iconly/Bold/Close-Square'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Close-Square'%20transform='translate(1.999800,%201.999200)'%20fill='%2319c368'%20fill-rule='nonzero'%3e%3cpath%20d='M14.34,2.84217094e-14%20C17.73,2.84217094e-14%2020,2.38%2020,5.92%20L20,5.92%20L20,14.091%20C20,17.621%2017.73,20%2014.34,20%20L14.34,20%20L5.67,20%20C2.28,20%200,17.621%200,14.091%20L0,14.091%20L0,5.92%20C0,2.38%202.28,2.84217094e-14%205.67,2.84217094e-14%20L5.67,2.84217094e-14%20Z%20M13.01,6.971%20C12.67,6.63%2012.12,6.63%2011.77,6.971%20L11.77,6.971%20L10,8.75%20L8.22,6.971%20C7.87,6.63%207.32,6.63%206.98,6.971%20C6.64,7.311%206.64,7.871%206.98,8.21%20L6.98,8.21%20L8.76,9.991%20L6.98,11.761%20C6.64,12.111%206.64,12.661%206.98,13%20C7.15,13.17%207.38,13.261%207.6,13.261%20C7.83,13.261%208.05,13.17%208.22,13%20L8.22,13%20L10,11.231%20L11.78,13%20C11.95,13.181%2012.17,13.261%2012.39,13.261%20C12.62,13.261%2012.84,13.17%2013.01,13%20C13.35,12.661%2013.35,12.111%2013.01,11.771%20L13.01,11.771%20L11.23,9.991%20L13.01,8.21%20C13.35,7.871%2013.35,7.311%2013.01,6.971%20Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e";var gg=Object.defineProperty,ug=Object.getOwnPropertyDescriptor,vi=(i,t,e,s)=>{for(var n=s>1?void 0:s?ug(t,e):t,o=i.length-1,a;o>=0;o--)(a=i[o])&&(n=(s?a(t,e,n):a(n))||n);return s&&n&&gg(t,e,n),n};b.GenusToastMessage=class extends p.LitElement{constructor(){super(...arguments),this.toastMessage="",this.toastType="error",this.showToast=!1,this.setToastVisibility=()=>{this.showToast&&(this.showToast=!this.showToast),this.dispatchEvent(new CustomEvent("clicked",{detail:this.showToast}))}}render(){return p.html`
1966
- <div class='toast toast--${this.toastType} ${this.showToast?"toast--show-toast":""}'>
1975
+
1976
+ .close-btn:hover { cursor: pointer; }
1977
+ `,hg="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eIconly/Bold/Close%20Square%3c/title%3e%3cg%20id='Iconly/Bold/Close-Square'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Close-Square'%20transform='translate(1.999800,%201.999200)'%20fill='%23fe331a'%20fill-rule='nonzero'%3e%3cpath%20d='M14.34,2.84217094e-14%20C17.73,2.84217094e-14%2020,2.38%2020,5.92%20L20,5.92%20L20,14.091%20C20,17.621%2017.73,20%2014.34,20%20L14.34,20%20L5.67,20%20C2.28,20%200,17.621%200,14.091%20L0,14.091%20L0,5.92%20C0,2.38%202.28,2.84217094e-14%205.67,2.84217094e-14%20L5.67,2.84217094e-14%20Z%20M13.01,6.971%20C12.67,6.63%2012.12,6.63%2011.77,6.971%20L11.77,6.971%20L10,8.75%20L8.22,6.971%20C7.87,6.63%207.32,6.63%206.98,6.971%20C6.64,7.311%206.64,7.871%206.98,8.21%20L6.98,8.21%20L8.76,9.991%20L6.98,11.761%20C6.64,12.111%206.64,12.661%206.98,13%20C7.15,13.17%207.38,13.261%207.6,13.261%20C7.83,13.261%208.05,13.17%208.22,13%20L8.22,13%20L10,11.231%20L11.78,13%20C11.95,13.181%2012.17,13.261%2012.39,13.261%20C12.62,13.261%2012.84,13.17%2013.01,13%20C13.35,12.661%2013.35,12.111%2013.01,11.771%20L13.01,11.771%20L11.23,9.991%20L13.01,8.21%20C13.35,7.871%2013.35,7.311%2013.01,6.971%20Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",dg="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eIconly/Bold/Close%20Square%3c/title%3e%3cg%20id='Iconly/Bold/Close-Square'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Close-Square'%20transform='translate(1.999800,%201.999200)'%20fill='%2319c368'%20fill-rule='nonzero'%3e%3cpath%20d='M14.34,2.84217094e-14%20C17.73,2.84217094e-14%2020,2.38%2020,5.92%20L20,5.92%20L20,14.091%20C20,17.621%2017.73,20%2014.34,20%20L14.34,20%20L5.67,20%20C2.28,20%200,17.621%200,14.091%20L0,14.091%20L0,5.92%20C0,2.38%202.28,2.84217094e-14%205.67,2.84217094e-14%20L5.67,2.84217094e-14%20Z%20M13.01,6.971%20C12.67,6.63%2012.12,6.63%2011.77,6.971%20L11.77,6.971%20L10,8.75%20L8.22,6.971%20C7.87,6.63%207.32,6.63%206.98,6.971%20C6.64,7.311%206.64,7.871%206.98,8.21%20L6.98,8.21%20L8.76,9.991%20L6.98,11.761%20C6.64,12.111%206.64,12.661%206.98,13%20C7.15,13.17%207.38,13.261%207.6,13.261%20C7.83,13.261%208.05,13.17%208.22,13%20L8.22,13%20L10,11.231%20L11.78,13%20C11.95,13.181%2012.17,13.261%2012.39,13.261%20C12.62,13.261%2012.84,13.17%2013.01,13%20C13.35,12.661%2013.35,12.111%2013.01,11.771%20L13.01,11.771%20L11.23,9.991%20L13.01,8.21%20C13.35,7.871%2013.35,7.311%2013.01,6.971%20Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e";var gg=Object.defineProperty,ug=Object.getOwnPropertyDescriptor,vi=(i,t,e,s)=>{for(var n=s>1?void 0:s?ug(t,e):t,o=i.length-1,a;o>=0;o--)(a=i[o])&&(n=(s?a(t,e,n):a(n))||n);return s&&n&&gg(t,e,n),n};b.GenusToastMessage=class extends p.LitElement{constructor(){super(...arguments),this.toastMessage="",this.toastType="info",this.showToast=!1,this.setToastVisibility=()=>{this.showToast&&(this.showToast=!this.showToast)},this.renderCloseBtn=t=>{let e=p.html``;return t==="success"&&(e=p.html`<span class='close-btn' @click=${this.setToastVisibility}><object class="genus-icon" data='${dg}' width='20' height='20'></object></span>`),t==="error"&&(e=p.html`<span class='close-btn' @click=${this.setToastVisibility}><object class="genus-icon" data='${hg}' width='20' height='20'></object></span>`),e}}render(){return p.html`
1978
+ <div class='toast toast--${this.toastType} ${this.showToast&&"toast--show-toast"}'>
1967
1979
  <p class='toast__message'>${this.toastMessage}</p>
1968
- ${this.toastType==="success"?p.html`<span class='close-btn' @click=${this.setToastVisibility}><object class="genus-icon" data='${dg}' width='20' height='20'></object></span>`:p.html`<span class='close-btn' @click=${this.setToastVisibility}><object class="genus-icon" data='${hg}' width='20' height='20'></object></span>`}
1980
+ ${this.renderCloseBtn(this.toastType)}
1969
1981
  </div>
1970
1982
  `}},b.GenusToastMessage.styles=[ag,rg,lg,Ag,cg],vi([M.property({attribute:"toast-message"})],b.GenusToastMessage.prototype,"toastMessage",2),vi([M.property({attribute:"toast-type"})],b.GenusToastMessage.prototype,"toastType",2),vi([M.property({type:Boolean,attribute:"show-toast"})],b.GenusToastMessage.prototype,"showToast",2),b.GenusToastMessage=vi([M.customElement("genus-toast-message")],b.GenusToastMessage);const fg=p.css`
1971
1983
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "genus-ui",
3
3
  "private": false,
4
- "version": "1.82.20",
4
+ "version": "1.84.20",
5
5
  "type": "module",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
@@ -1,11 +1,12 @@
1
- import { LitElement } from 'lit';
1
+ import { LitElement, TemplateResult } from 'lit';
2
2
  export declare class GenusToastMessage extends LitElement {
3
3
  toastMessage: string;
4
4
  toastType: string;
5
5
  showToast: boolean;
6
6
  setToastVisibility: () => void;
7
+ renderCloseBtn: (toastType: string) => TemplateResult;
7
8
  static styles: import("lit").CSSResult[];
8
- render(): import("lit-html").TemplateResult<1>;
9
+ render(): TemplateResult<1>;
9
10
  }
10
11
  declare global {
11
12
  interface HTMLElementTagNameMap {