@florid-kit/components 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +4 -4
  2. package/index.mjs +4 -4
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -2371,7 +2371,7 @@
2371
2371
  color: var(--text-color);
2372
2372
  }
2373
2373
 
2374
- `;qt([a({type:String,reflect:!0})],vt.prototype,"variant",2);qt([a({type:String})],vt.prototype,"text",2);vt=qt([w("o-badge")],vt);var ai=Object.defineProperty,li=Object.getOwnPropertyDescriptor,z=(o,t,e,r)=>{for(var i=r>1?void 0:r?li(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&ai(t,e,i),i};let $=class extends v{constructor(){super(...arguments),this.icon="info",this.text="Sample text",this.verticalanchor="top",this.horizontalanchor="right",this.verticaloffset=24,this.horizontaloffset=24,this.animationduration=500,this.animationaxis="horizontal",this.animated=!0,this.lifeduration=3e3}attributeChangedCallback(o,t,e){super.attributeChangedCallback(o,t,e),o=="verticaloffset"&&this.style.setProperty("--vertical-offset",e+"px"),o=="horizontaloffset"&&this.style.setProperty("--horizontal-offset",e+"px"),o=="animationduration"&&this.style.setProperty("--animation-duration",e+"ms")}selfCloseAfterDelay(){var o=this;setTimeout(function(){o.animated=!0,o.selfClose()},this.lifeduration)}selfClose(){var o=this;setTimeout(function(){o.remove()},this.animationduration+200)}connectedCallback(){var o=this;super.connectedCallback(),setTimeout(()=>{o.animated=!1,this.selfCloseAfterDelay()},300)}firstUpdated(){var e;var o=this;const t=(e=this.renderRoot)==null?void 0:e.querySelector("o-icon-button");t!=null&&t.addEventListener("click",function(){o.remove()})}render(){const t=po[this.icon].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"').replace(/<path\b/g,'<path part="icon-path"').replace(/<g\b/g,'<g part="icon-group"').replace(/<circle\b/g,'<circle part="icon-circle"');return l`
2374
+ `;qt([a({type:String,reflect:!0})],vt.prototype,"variant",2);qt([a({type:String})],vt.prototype,"text",2);vt=qt([w("o-badge")],vt);var ai=Object.defineProperty,li=Object.getOwnPropertyDescriptor,z=(o,t,e,r)=>{for(var i=r>1?void 0:r?li(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&ai(t,e,i),i};let $=class extends v{constructor(){super(...arguments),this.icon="info",this.text="Sample text",this.verticalanchor="top",this.horizontalanchor="right",this.verticaloffset=24,this.horizontaloffset=24,this.animationduration=500,this.animationaxis="horizontal",this.animated=!0,this.lifeduration=5e3}attributeChangedCallback(o,t,e){super.attributeChangedCallback(o,t,e),o=="verticaloffset"&&this.style.setProperty("--vertical-offset",e+"px"),o=="horizontaloffset"&&this.style.setProperty("--horizontal-offset",e+"px"),o=="animationduration"&&this.style.setProperty("--animation-duration",e+"ms")}selfCloseAfterDelay(){var o=this;setTimeout(function(){o.animated=!0,o.selfClose()},this.lifeduration)}selfClose(){var o=this;setTimeout(function(){o.remove()},this.animationduration+200)}connectedCallback(){var o=this;super.connectedCallback(),setTimeout(()=>{o.animated=!1,this.selfCloseAfterDelay()},300)}firstUpdated(){var e;var o=this;const t=(e=this.renderRoot)==null?void 0:e.querySelector("o-icon-button");t!=null&&t.addEventListener("click",function(){o.remove()})}render(){const t=po[this.icon].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"').replace(/<path\b/g,'<path part="icon-path"').replace(/<g\b/g,'<g part="icon-group"').replace(/<circle\b/g,'<circle part="icon-circle"');return l`
2375
2375
  <div class="o-toast">
2376
2376
  <div class="o-toast-icon">
2377
2377
  ${O(t)}
@@ -2393,7 +2393,7 @@
2393
2393
  --horizontal-offset: 24px;
2394
2394
  --animation-duration: 500ms;
2395
2395
  position: fixed;
2396
- z-index: 30;
2396
+ z-index: 105;
2397
2397
  transition: all var(--animation-duration) ease-in-out;
2398
2398
  }
2399
2399
 
@@ -2446,10 +2446,10 @@
2446
2446
 
2447
2447
  .o-toast-text {
2448
2448
  color: var(--color-content-body);
2449
- padding: 0 8px;
2449
+ padding: 0 12px;
2450
2450
  width: max-content;
2451
2451
  text-align: center;
2452
- max-width: 70vw;
2452
+ max-width: 65vw;
2453
2453
  }
2454
2454
 
2455
2455
  .o-toast-icon {
package/index.mjs CHANGED
@@ -4336,7 +4336,7 @@ var ai = Object.defineProperty, li = Object.getOwnPropertyDescriptor, z = (o, t,
4336
4336
  };
4337
4337
  let $ = class extends v {
4338
4338
  constructor() {
4339
- super(...arguments), this.icon = "info", this.text = "Sample text", this.verticalanchor = "top", this.horizontalanchor = "right", this.verticaloffset = 24, this.horizontaloffset = 24, this.animationduration = 500, this.animationaxis = "horizontal", this.animated = !0, this.lifeduration = 3e3;
4339
+ super(...arguments), this.icon = "info", this.text = "Sample text", this.verticalanchor = "top", this.horizontalanchor = "right", this.verticaloffset = 24, this.horizontaloffset = 24, this.animationduration = 500, this.animationaxis = "horizontal", this.animated = !0, this.lifeduration = 5e3;
4340
4340
  }
4341
4341
  attributeChangedCallback(o, t, e) {
4342
4342
  super.attributeChangedCallback(o, t, e), o == "verticaloffset" && this.style.setProperty("--vertical-offset", e + "px"), o == "horizontaloffset" && this.style.setProperty("--horizontal-offset", e + "px"), o == "animationduration" && this.style.setProperty("--animation-duration", e + "ms");
@@ -4400,7 +4400,7 @@ $.styles = b`
4400
4400
  --horizontal-offset: 24px;
4401
4401
  --animation-duration: 500ms;
4402
4402
  position: fixed;
4403
- z-index: 30;
4403
+ z-index: 105;
4404
4404
  transition: all var(--animation-duration) ease-in-out;
4405
4405
  }
4406
4406
 
@@ -4453,10 +4453,10 @@ $.styles = b`
4453
4453
 
4454
4454
  .o-toast-text {
4455
4455
  color: var(--color-content-body);
4456
- padding: 0 8px;
4456
+ padding: 0 12px;
4457
4457
  width: max-content;
4458
4458
  text-align: center;
4459
- max-width: 70vw;
4459
+ max-width: 65vw;
4460
4460
  }
4461
4461
 
4462
4462
  .o-toast-icon {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@florid-kit/components",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "main": "index.js",
5
5
  "module": "index.mjs",
6
6
  "typings": "index.d.ts",