@vanelsas/baredom 2.3.0 → 2.3.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 (92) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +3 -3
  3. package/dist/base.js +163 -158
  4. package/dist/x-alert.js +17 -17
  5. package/dist/x-avatar-group.js +11 -11
  6. package/dist/x-avatar.js +14 -14
  7. package/dist/x-badge.js +11 -11
  8. package/dist/x-bento-grid.js +5 -5
  9. package/dist/x-bento-item.js +4 -4
  10. package/dist/x-breadcrumbs.js +14 -14
  11. package/dist/x-button.js +15 -15
  12. package/dist/x-cancel-dialogue.js +15 -15
  13. package/dist/x-card.js +7 -7
  14. package/dist/x-carousel.js +28 -28
  15. package/dist/x-chart.js +46 -46
  16. package/dist/x-checkbox.js +11 -11
  17. package/dist/x-chip.js +8 -8
  18. package/dist/x-collapse.js +10 -10
  19. package/dist/x-color-picker.js +41 -41
  20. package/dist/x-combobox.js +24 -24
  21. package/dist/x-command-palette.js +24 -24
  22. package/dist/x-container.js +6 -6
  23. package/dist/x-context-menu.js +18 -20
  24. package/dist/x-copy.js +21 -21
  25. package/dist/x-currency-field.js +21 -21
  26. package/dist/x-date-picker.js +37 -37
  27. package/dist/x-divider.js +8 -8
  28. package/dist/x-drawer.js +11 -11
  29. package/dist/x-dropdown.js +9 -9
  30. package/dist/x-fieldset.js +5 -5
  31. package/dist/x-file-download.js +7 -7
  32. package/dist/x-form-field.js +15 -15
  33. package/dist/x-form.js +9 -9
  34. package/dist/x-gaussian-blur.js +18 -18
  35. package/dist/x-grid.js +6 -6
  36. package/dist/x-icon.js +7 -7
  37. package/dist/x-image.js +18 -18
  38. package/dist/x-kinetic-font.js +28 -28
  39. package/dist/x-kinetic-typography.js +37 -37
  40. package/dist/x-liquid-dock.js +35 -35
  41. package/dist/x-liquid-fill.js +39 -39
  42. package/dist/x-liquid-glass.js +39 -39
  43. package/dist/x-menu-item.js +10 -10
  44. package/dist/x-menu.js +10 -10
  45. package/dist/x-metaball-cursor.js +27 -27
  46. package/dist/x-modal.js +11 -11
  47. package/dist/x-morph-stack.js +39 -39
  48. package/dist/x-navbar.js +13 -13
  49. package/dist/x-neural-glow.js +30 -30
  50. package/dist/x-notification-center.js +10 -10
  51. package/dist/x-organic-divider.js +15 -15
  52. package/dist/x-organic-progress.js +35 -35
  53. package/dist/x-organic-shape.js +12 -12
  54. package/dist/x-pagination.js +16 -16
  55. package/dist/x-particle-button.js +47 -47
  56. package/dist/x-popover.js +24 -14
  57. package/dist/x-progress-circle.js +7 -7
  58. package/dist/x-progress.js +7 -7
  59. package/dist/x-radio.js +11 -11
  60. package/dist/x-ripple-effect.js +11 -11
  61. package/dist/x-scroll-parallax.js +17 -17
  62. package/dist/x-scroll-stack.js +18 -18
  63. package/dist/x-scroll-story.js +33 -33
  64. package/dist/x-scroll-timeline.js +45 -45
  65. package/dist/x-scroll.js +40 -40
  66. package/dist/x-search-field.js +14 -14
  67. package/dist/x-select.js +9 -9
  68. package/dist/x-sidebar.js +16 -16
  69. package/dist/x-skeleton-group.js +13 -13
  70. package/dist/x-skeleton.js +1 -1
  71. package/dist/x-slider.js +16 -16
  72. package/dist/x-soft-body.js +20 -20
  73. package/dist/x-spacer.js +5 -5
  74. package/dist/x-spinner.js +5 -5
  75. package/dist/x-splash.js +13 -13
  76. package/dist/x-stat.js +9 -9
  77. package/dist/x-stepper.js +15 -15
  78. package/dist/x-switch.js +10 -10
  79. package/dist/x-tab.js +7 -7
  80. package/dist/x-table-cell.js +19 -19
  81. package/dist/x-table-row.js +10 -10
  82. package/dist/x-table.js +13 -13
  83. package/dist/x-tabs.js +11 -11
  84. package/dist/x-text-area.js +17 -17
  85. package/dist/x-theme.js +24 -24
  86. package/dist/x-timeline-item.js +21 -21
  87. package/dist/x-timeline.js +9 -9
  88. package/dist/x-toast.js +22 -22
  89. package/dist/x-toaster.js +8 -8
  90. package/dist/x-tooltip.js +12 -12
  91. package/dist/x-typography.js +8 -8
  92. package/package.json +1 -1
package/dist/x-toaster.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var $t=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.I(Zt,a)?a:"top-end"},au=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.r(isNaN(a))&&a>0?Math.floor(a):null):null},cu=function(a){if(!$APP.n($APP.k(a,"__xToasterRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");c.textContent=bu;b.appendChild(c);b.appendChild(d);a.__xToasterRefs=new $APP.Q(null,2,[$APP.yi,b,$APP.ll,d],null)}},fu=function(a){a=
3
- new $APP.Q(null,3,[$APP.Qj,a.getAttribute("position"),du,a.getAttribute("max-toasts"),$APP.ki,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,$APP.Qj);a=$APP.D(b,du);b=$APP.D(b,$APP.ki);c=$t(c);a=au(a);return new $APP.Q(null,3,[$APP.Hm,c,eu,$APP.n(a)?a:5,$APP.U,typeof b==="string"&&$APP.N(b.trim(),"")?b:"Notifications"],null)},gu=function(a){var b=fu(a);if($APP.N($APP.k(a,"__xToasterModel"),b)){b=$APP.M(b);var c=$APP.D(b,$APP.Hm),d=$APP.D(b,$APP.U);cu(a);a.setAttribute("role","region");
4
- a.setAttribute("aria-label",d);a.setAttribute("data-position",c);a.__xToasterModel=b}},hu=function(a){function b(c){var d=c.detail;if($APP.N($APP.k(d,"reason"),"toaster-remove")){c.preventDefault();var e=$APP.k(d,"type");var g=$APP.k(d,"reason"),h=$APP.k(d,"heading");d=$APP.k(d,"message");e=$APP.Dh(new $APP.Q(null,4,[$APP.Z,$APP.n(e)?e:"info",$APP.Hi,$APP.n(g)?g:"",$APP.hl,$APP.n(h)?h:"",$APP.pk,$APP.n(d)?d:""],null));e=new CustomEvent("x-toaster-dismiss",{detail:e,bubbles:!0,composed:!0,cancelable:!0});
5
- e=a.dispatchEvent(e);$APP.n(e)&&c.target.dismiss("toaster-remove")}return null}a.addEventListener("x-toast-dismiss",b);$APP.ja(a,"__xToasterHandlers",{dismiss:b})},iu=function(a){var b=$APP.k(a,"__xToasterHandlers");$APP.n(b)&&(b=$APP.k(b,"dismiss"),$APP.n(b)&&a.removeEventListener("x-toast-dismiss",b));a.__xToasterHandlers=null},ju=function(a){a=a.prototype;Object.defineProperty(a,"position",{get:function(){return $t(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",
6
- ""+$APP.T.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:"Notifications"},set:function(b){return $APP.n($APP.n(b)?$APP.N(b,""):b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"maxToasts",{get:function(){var b=au(this.getAttribute("max-toasts"));return $APP.n(b)?b:5},set:function(b){return b==
7
- null?this.removeAttribute("max-toasts"):this.setAttribute("max-toasts",""+$APP.T.g(Math.floor(b)))},enumerable:!0,configurable:!0});Object.defineProperty(a,"toast",{value:function(b){b=$APP.n(b)?b:{};var c=$APP.k(this,"__xToasterModel");c=$APP.n(c)?c:fu(this);var d=eu.g(c);c=this.querySelectorAll("x-toast");var e=c.length;if(e>=d)for(d=e-d- -1,e=0;;)if(e<d)c[e].dismiss("toaster-remove"),e+=1;else break;c=document.createElement("x-toast");d=$APP.k(b,"type");$APP.n(d)&&c.setAttribute("type",d);d=$APP.k(b,
8
- "heading");$APP.n(d)&&c.setAttribute("heading",d);d=$APP.k(b,"message");$APP.n(d)&&c.setAttribute("message",d);d=$APP.k(b,"icon");$APP.n(d)&&c.setAttribute("icon",d);$APP.k(b,"dismissible")===!1&&c.setAttribute("dismissible","false");d=$APP.k(b,"timeoutMs");$APP.n(d)&&c.setAttribute("timeout-ms",""+$APP.T.g(d));$APP.n($APP.k(b,"showProgress"))&&c.setAttribute("show-progress","");this.appendChild(c);return c},writable:!0,configurable:!0})},lu=function(){var a=class extends HTMLElement{};a.observedAttributes=
9
- ku;a.prototype.connectedCallback=function(){cu(this);iu(this);hu(this);gu(this);return null};a.prototype.disconnectedCallback=function(){iu(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&gu(this);return null};ju(a);return a},mu=function(){$APP.n(customElements.get("x-toaster"))||customElements.define("x-toaster",lu());return null},du=new $APP.K(null,"max-toasts-raw","max-toasts-raw",-815087069),eu=new $APP.K(null,"max-toasts","max-toasts",-1982289139);var ku=["position","max-toasts","label"];$APP.Qd(["x-toaster-dismiss",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,4,[$APP.Z,$APP.Y,$APP.Hi,$APP.Y,$APP.hl,$APP.Y,$APP.pk,$APP.Y],null),$APP.Rl,!0],null)]);var Zt=new $APP.S(null,new $APP.Q(null,6,["top-center",null,"bottom-start",null,"bottom-end",null,"bottom-center",null,"top-end",null,"top-start",null],null),null);var bu=":host{display:flex;position:fixed;z-index:var(--x-toaster-z-index,9000);gap:var(--x-toaster-gap,8px);width:max-content;max-width:var(--x-toaster-max-width,min(480px,calc(100vw - 2rem)));box-sizing:border-box;pointer-events:none;color-scheme:light dark;}::slotted("+$APP.T.g("x-toast")+"){pointer-events:auto;}slot{display:contents;}:host([data-position\x3d'top-start']){top:var(--x-toaster-inset,16px);inset-inline-start:var(--x-toaster-inset,16px);flex-direction:column-reverse;}:host([data-position\x3d'top-center']){top:var(--x-toaster-inset,16px);left:50%;transform:translateX(-50%);flex-direction:column-reverse;align-items:center;}:host([data-position\x3d'top-end']){top:var(--x-toaster-inset,16px);inset-inline-end:var(--x-toaster-inset,16px);flex-direction:column-reverse;}:host([data-position\x3d'bottom-start']){bottom:var(--x-toaster-inset,16px);inset-inline-start:var(--x-toaster-inset,16px);flex-direction:column;}:host([data-position\x3d'bottom-center']){bottom:var(--x-toaster-inset,16px);left:50%;transform:translateX(-50%);flex-direction:column;align-items:center;}:host([data-position\x3d'bottom-end']){bottom:var(--x-toaster-inset,16px);inset-inline-end:var(--x-toaster-inset,16px);flex-direction:column;}";$APP.ha("baredom.exports.x_toaster.init",mu);export const init=mu;
2
+ var wu=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.I(vu,a)?a:"top-end"},xu=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.r(isNaN(a))&&a>0?Math.floor(a):null):null},zu=function(a){if(!$APP.n($APP.k(a,"__xToasterRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");c.textContent=yu;b.appendChild(c);b.appendChild(d);a.__xToasterRefs=new $APP.Q(null,2,[$APP.Ci,b,$APP.rl,d],null)}},Cu=function(a){a=
3
+ new $APP.Q(null,3,[$APP.Vj,a.getAttribute("position"),Au,a.getAttribute("max-toasts"),$APP.ni,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,$APP.Vj);a=$APP.D(b,Au);b=$APP.D(b,$APP.ni);c=wu(c);a=xu(a);return new $APP.Q(null,3,[$APP.Om,c,Bu,$APP.n(a)?a:5,$APP.U,typeof b==="string"&&$APP.N(b.trim(),"")?b:"Notifications"],null)},Ru=function(a){var b=Cu(a);if($APP.N($APP.k(a,"__xToasterModel"),b)){b=$APP.M(b);var c=$APP.D(b,$APP.Om),d=$APP.D(b,$APP.U);zu(a);a.setAttribute("role","region");
4
+ a.setAttribute("aria-label",d);a.setAttribute("data-position",c);a.__xToasterModel=b}},Su=function(a){function b(c){var d=c.detail;if($APP.N($APP.k(d,"reason"),"toaster-remove")){c.preventDefault();var e=$APP.k(d,"type");var g=$APP.k(d,"reason"),h=$APP.k(d,"heading");d=$APP.k(d,"message");e=$APP.Gh(new $APP.Q(null,4,[$APP.Z,$APP.n(e)?e:"info",$APP.Li,$APP.n(g)?g:"",$APP.nl,$APP.n(h)?h:"",$APP.uk,$APP.n(d)?d:""],null));e=new CustomEvent("x-toaster-dismiss",{detail:e,bubbles:!0,composed:!0,cancelable:!0});
5
+ e=a.dispatchEvent(e);$APP.n(e)&&c.target.dismiss("toaster-remove")}return null}a.addEventListener("x-toast-dismiss",b);$APP.ja(a,"__xToasterHandlers",{dismiss:b})},Tu=function(a){var b=$APP.k(a,"__xToasterHandlers");$APP.n(b)&&(b=$APP.k(b,"dismiss"),$APP.n(b)&&a.removeEventListener("x-toast-dismiss",b));a.__xToasterHandlers=null},Uu=function(a){a=a.prototype;Object.defineProperty(a,"position",{get:function(){return wu(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",
6
+ ""+$APP.T.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:"Notifications"},set:function(b){return $APP.n($APP.n(b)?$APP.N(b,""):b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"maxToasts",{get:function(){var b=xu(this.getAttribute("max-toasts"));return $APP.n(b)?b:5},set:function(b){return b==
7
+ null?this.removeAttribute("max-toasts"):this.setAttribute("max-toasts",""+$APP.T.g(Math.floor(b)))},enumerable:!0,configurable:!0});Object.defineProperty(a,"toast",{value:function(b){b=$APP.n(b)?b:{};var c=$APP.k(this,"__xToasterModel");c=$APP.n(c)?c:Cu(this);var d=Bu.g(c);c=this.querySelectorAll("x-toast");var e=c.length;if(e>=d)for(d=e-d- -1,e=0;;)if(e<d)c[e].dismiss("toaster-remove"),e+=1;else break;c=document.createElement("x-toast");d=$APP.k(b,"type");$APP.n(d)&&c.setAttribute("type",d);d=$APP.k(b,
8
+ "heading");$APP.n(d)&&c.setAttribute("heading",d);d=$APP.k(b,"message");$APP.n(d)&&c.setAttribute("message",d);d=$APP.k(b,"icon");$APP.n(d)&&c.setAttribute("icon",d);$APP.k(b,"dismissible")===!1&&c.setAttribute("dismissible","false");d=$APP.k(b,"timeoutMs");$APP.n(d)&&c.setAttribute("timeout-ms",""+$APP.T.g(d));$APP.n($APP.k(b,"showProgress"))&&c.setAttribute("show-progress","");this.appendChild(c);return c},writable:!0,configurable:!0})},Wu=function(){var a=class extends HTMLElement{};a.observedAttributes=
9
+ Vu;a.prototype.connectedCallback=function(){zu(this);Tu(this);Su(this);Ru(this);return null};a.prototype.disconnectedCallback=function(){Tu(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&Ru(this);return null};Uu(a);return a},Xu=function(){$APP.n(customElements.get("x-toaster"))||customElements.define("x-toaster",Wu());return null},Au=new $APP.K(null,"max-toasts-raw","max-toasts-raw",-815087069),Bu=new $APP.K(null,"max-toasts","max-toasts",-1982289139);var Vu=["position","max-toasts","label"];$APP.Qd(["x-toaster-dismiss",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,4,[$APP.Z,$APP.Y,$APP.Li,$APP.Y,$APP.nl,$APP.Y,$APP.uk,$APP.Y],null),$APP.Yl,!0],null)]);var vu=new $APP.R(null,new $APP.Q(null,6,["top-center",null,"bottom-start",null,"bottom-end",null,"bottom-center",null,"top-end",null,"top-start",null],null),null);var yu=":host{display:flex;position:fixed;z-index:var(--x-toaster-z-index,9000);gap:var(--x-toaster-gap,8px);width:max-content;max-width:var(--x-toaster-max-width,min(480px,calc(100vw - 2rem)));box-sizing:border-box;pointer-events:none;color-scheme:light dark;}::slotted("+$APP.T.g("x-toast")+"){pointer-events:auto;}slot{display:contents;}:host([data-position\x3d'top-start']){top:var(--x-toaster-inset,16px);inset-inline-start:var(--x-toaster-inset,16px);flex-direction:column-reverse;}:host([data-position\x3d'top-center']){top:var(--x-toaster-inset,16px);left:50%;transform:translateX(-50%);flex-direction:column-reverse;align-items:center;}:host([data-position\x3d'top-end']){top:var(--x-toaster-inset,16px);inset-inline-end:var(--x-toaster-inset,16px);flex-direction:column-reverse;}:host([data-position\x3d'bottom-start']){bottom:var(--x-toaster-inset,16px);inset-inline-start:var(--x-toaster-inset,16px);flex-direction:column;}:host([data-position\x3d'bottom-center']){bottom:var(--x-toaster-inset,16px);left:50%;transform:translateX(-50%);flex-direction:column;align-items:center;}:host([data-position\x3d'bottom-end']){bottom:var(--x-toaster-inset,16px);inset-inline-end:var(--x-toaster-inset,16px);flex-direction:column;}";$APP.ha("baredom.exports.x_toaster.init",Xu);export const init=Xu;
package/dist/x-tooltip.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Jt=function(a){a=new $APP.Q(null,5,[$APP.Gh,a.getAttribute("text"),$APP.Mm,a.getAttribute("placement"),Gt,a.getAttribute("delay"),$APP.ul,a.hasAttribute("disabled"),$APP.xi,a.hasAttribute("open")],null);var b=$APP.M(a),c=$APP.D(b,$APP.Gh),d=$APP.D(b,$APP.Mm),e=$APP.D(b,Gt);a=$APP.D(b,$APP.ul);b=$APP.D(b,$APP.xi);c=$APP.n(c)?c:"";d=$APP.I(Ht,d)?d:"top";e!=null?(e=parseInt(e,10),e=$APP.n(isNaN(e))?400:$APP.oh.i($APP.nh.i(e,0),5E3)):e=400;return new $APP.Q(null,5,[$APP.il,c,$APP.Gj,d,It,e,$APP.X,
3
- $APP.F(a),$APP.sm,$APP.F(b)],null)},Kt=function(a){var b=$APP.k(a,"__xTooltipRefs");if($APP.n(b)){a=Jt(a);var c=$APP.M(a);a=$APP.D(c,$APP.il);var d=$APP.D(c,$APP.Gj),e=$APP.D(c,$APP.sm);c=$APP.k(b,"panel");b=$APP.k(b,"text");c.setAttribute("data-placement",d);d=""+$APP.T.g($APP.r(e));c.setAttribute("aria-hidden",d);b.textContent=a}},Lt=function(a,b){return a.dispatchEvent(new CustomEvent(b,{detail:{},bubbles:!0,composed:!0,cancelable:!1}))},Mt=function(a){var b=$APP.k(a,"__xTooltipShowTimer");$APP.n(b)&&
4
- (clearTimeout(b),a.__xTooltipShowTimer=null)},Nt=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;Mt(a);if($APP.n($APP.n(b)?b:a.hasAttribute("open"))){if($APP.n(a.hasAttribute("open")))return null;a.setAttribute("open","");return Lt(a,"x-tooltip-show")}b=Jt(a);b=$APP.M(b);b=$APP.D(b,It);return b===0?(a.setAttribute("open",""),Lt(a,"x-tooltip-show")):$APP.Cg(a,"__xTooltipShowTimer",setTimeout(function(){a.__xTooltipShowTimer=null;return $APP.n(a.isConnected)?(a.setAttribute("open",""),
5
- Lt(a,"x-tooltip-show")):null},b))},Ot=function(a){Mt(a);return $APP.n(a.hasAttribute("open"))?(a.removeAttribute("open"),Lt(a,"x-tooltip-hide")):null},Pt=function(a){var b=$APP.k(a,"__xTooltipRefs");if($APP.n(b)){var c=$APP.k(b,"triggerSlot").assignedElements();b=$APP.k(a,"__xTooltipId");var d=$APP.k(a,"__xTooltipTriggerEl");$APP.n(d)&&(d.removeAttribute("aria-describedby"),a.__xTooltipTriggerEl=null);if(c.length>0){c=c[0];c.setAttribute("aria-describedby",b);a.__xTooltipTriggerEl=c;return}}return null},
6
- Qt=function(a){return{pointerenter:function(){return Nt(a,!1)},pointerleave:function(){return Ot(a)},focusin:function(){return Nt(a,!0)},focusout:function(b){b=b.relatedTarget;return b==null||$APP.r(a.contains(b))?Ot(a):null},keydown:function(b){b=$APP.C.i(b.key,"Escape");return $APP.n(b?a.hasAttribute("open"):b)?Ot(a):null},slotchange:function(){return Pt(a)}}},Rt=function(a){var b=$APP.k(a,"__xTooltipRefs");if($APP.n(b)){var c=$APP.k(a,"__xTooltipHandlers");$APP.n(c)&&(b=$APP.k(b,"triggerSlot"),
7
- a.removeEventListener("pointerenter",$APP.k(c,"pointerenter")),a.removeEventListener("pointerleave",$APP.k(c,"pointerleave")),a.removeEventListener("focusin",$APP.k(c,"focusin")),a.removeEventListener("focusout",$APP.k(c,"focusout")),a.removeEventListener("keydown",$APP.k(c,"keydown")),b.removeEventListener("slotchange",$APP.k(c,"slotchange")))}},St=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.Eg(this,
8
- c,$APP.F(d))}})},Tt=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){return d!=null&&$APP.N(d)?this.setAttribute(c,""+$APP.T.g(d)):this.removeAttribute(c)}})},Ut=function(a){Object.defineProperty(a,"delay",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("delay");return b!=null?(b=parseInt(b,10),$APP.n(isNaN(b))?null:b):null},set:function(b){return b!=null&&$APP.N(b)?this.setAttribute("delay",
9
- ""+$APP.T.g(b)):this.removeAttribute("delay")}})},Xt=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return Vt}});Tt(b,"text","text");Tt(b,"placement","placement");Ut(b);St(b,"disabled","disabled");St(b,"open","open");b.show=function(){return Nt(this,!0)};b.hide=function(){return Ot(this)};b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xTooltipRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),
10
- e=document.createElement("span"),g=document.createElement("slot"),h=document.createElement("div"),l=document.createElement("div"),m=document.createElement("div"),p=document.createElement("span"),q=document.createElement("slot");var v=$APP.k(Wt,"n")+1;Wt.n=v;v="x-tt-"+$APP.T.g(v);d.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-tooltip-bg:var(--x-color-bg,#ffffff);--x-tooltip-text:var(--x-color-text,#0f172a);--x-tooltip-border:1px solid var(--x-color-border,#e2e8f0);--x-tooltip-padding:var(--x-space-xs,4px) var(--x-space-sm,8px);--x-tooltip-radius:var(--x-radius-md,6px);--x-tooltip-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12));--x-tooltip-z:var(--x-z-dropdown,1000);--x-tooltip-max-width:min(200px,calc(100% - 2rem));--x-tooltip-font-size:var(--x-font-size-xs,0.75rem);--x-tooltip-arrow-size:6px;--x-tooltip-offset:4px;--x-tooltip-transition-duration:var(--x-transition-duration,150ms);--x-tooltip-transition-easing:var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-tooltip-bg:var(--x-color-bg,#1e293b);--x-tooltip-text:var(--x-color-text,#e2e8f0);--x-tooltip-border:1px solid var(--x-color-border,#334155);--x-tooltip-shadow:0 4px 24px rgba(0,0,0,0.4);}}[part\x3dtrigger]{display:inline-block;}[part\x3dpanel]{position:absolute;z-index:var(--x-tooltip-z);box-sizing:border-box;background:var(--x-tooltip-bg);color:var(--x-tooltip-text);border:var(--x-tooltip-border);padding:var(--x-tooltip-padding);border-radius:var(--x-tooltip-radius);box-shadow:var(--x-tooltip-shadow);max-width:var(--x-tooltip-max-width);font-size:var(--x-tooltip-font-size);font-family:inherit;line-height:1.4;white-space:normal;word-wrap:break-word;pointer-events:none;visibility:hidden;opacity:0;transition:opacity var(--x-tooltip-transition-duration) var(--x-tooltip-transition-easing),transform var(--x-tooltip-transition-duration) var(--x-tooltip-transition-easing),visibility 0s var(--x-tooltip-transition-duration);}:host([open]) [part\x3dpanel]{visibility:visible;opacity:1;transition:opacity var(--x-tooltip-transition-duration) var(--x-tooltip-transition-easing),transform var(--x-tooltip-transition-duration) var(--x-tooltip-transition-easing),visibility 0s 0s;}[part\x3dpanel][data-placement\x3dtop]{bottom:calc(100% + var(--x-tooltip-arrow-size) + var(--x-tooltip-offset));left:50%;transform:translateX(-50%) translateY(4px);transform-origin:bottom center;}:host([open]) [part\x3dpanel][data-placement\x3dtop]{transform:translateX(-50%) translateY(0);}[part\x3dpanel][data-placement\x3dbottom]{top:calc(100% + var(--x-tooltip-arrow-size) + var(--x-tooltip-offset));left:50%;transform:translateX(-50%) translateY(-4px);transform-origin:top center;}:host([open]) [part\x3dpanel][data-placement\x3dbottom]{transform:translateX(-50%) translateY(0);}[part\x3dpanel][data-placement\x3dleft]{right:calc(100% + var(--x-tooltip-arrow-size) + var(--x-tooltip-offset));top:50%;transform:translateY(-50%) translateX(4px);transform-origin:center right;}:host([open]) [part\x3dpanel][data-placement\x3dleft]{transform:translateY(-50%) translateX(0);}[part\x3dpanel][data-placement\x3dright]{left:calc(100% + var(--x-tooltip-arrow-size) + var(--x-tooltip-offset));top:50%;transform:translateY(-50%) translateX(-4px);transform-origin:center left;}:host([open]) [part\x3dpanel][data-placement\x3dright]{transform:translateY(-50%) translateX(0);}[part\x3darrow]{position:absolute;width:var(--x-tooltip-arrow-size);height:var(--x-tooltip-arrow-size);background:var(--x-tooltip-bg);border:var(--x-tooltip-border);transform:rotate(45deg);pointer-events:none;}[part\x3dpanel][data-placement\x3dtop] [part\x3darrow]{bottom:calc(var(--x-tooltip-arrow-size) / -2);left:calc(50% - var(--x-tooltip-arrow-size) / 2);border-top:none;border-left:none;}[part\x3dpanel][data-placement\x3dbottom] [part\x3darrow]{top:calc(var(--x-tooltip-arrow-size) / -2);left:calc(50% - var(--x-tooltip-arrow-size) / 2);border-bottom:none;border-right:none;}[part\x3dpanel][data-placement\x3dleft] [part\x3darrow]{right:calc(var(--x-tooltip-arrow-size) / -2);top:calc(50% - var(--x-tooltip-arrow-size) / 2);border-bottom:none;border-left:none;}[part\x3dpanel][data-placement\x3dright] [part\x3darrow]{left:calc(var(--x-tooltip-arrow-size) / -2);top:calc(50% - var(--x-tooltip-arrow-size) / 2);border-top:none;border-right:none;}[part\x3dbody]{position:relative;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}}";
2
+ var fu=function(a){a=new $APP.Q(null,5,[$APP.Jh,a.getAttribute("text"),$APP.Tm,a.getAttribute("placement"),cu,a.getAttribute("delay"),$APP.Al,a.hasAttribute("disabled"),$APP.Bi,a.hasAttribute("open")],null);var b=$APP.M(a),c=$APP.D(b,$APP.Jh),d=$APP.D(b,$APP.Tm),e=$APP.D(b,cu);a=$APP.D(b,$APP.Al);b=$APP.D(b,$APP.Bi);c=$APP.n(c)?c:"";d=$APP.I(du,d)?d:"top";e!=null?(e=parseInt(e,10),e=$APP.n(isNaN(e))?400:$APP.rh.i($APP.qh.i(e,0),5E3)):e=400;return new $APP.Q(null,5,[$APP.ol,c,$APP.Oj,d,eu,e,$APP.X,
3
+ $APP.F(a),$APP.zm,$APP.F(b)],null)},gu=function(a){var b=$APP.k(a,"__xTooltipRefs");if($APP.n(b)){a=fu(a);var c=$APP.M(a);a=$APP.D(c,$APP.ol);var d=$APP.D(c,$APP.Oj),e=$APP.D(c,$APP.zm);c=$APP.k(b,"panel");b=$APP.k(b,"text");c.setAttribute("data-placement",d);d=""+$APP.T.g($APP.r(e));c.setAttribute("aria-hidden",d);b.textContent=a}},hu=function(a,b){return a.dispatchEvent(new CustomEvent(b,{detail:{},bubbles:!0,composed:!0,cancelable:!1}))},iu=function(a){var b=$APP.k(a,"__xTooltipShowTimer");$APP.n(b)&&
4
+ (clearTimeout(b),a.__xTooltipShowTimer=null)},ju=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;iu(a);if($APP.n($APP.n(b)?b:a.hasAttribute("open"))){if($APP.n(a.hasAttribute("open")))return null;a.setAttribute("open","");return hu(a,"x-tooltip-show")}b=fu(a);b=$APP.M(b);b=$APP.D(b,eu);return b===0?(a.setAttribute("open",""),hu(a,"x-tooltip-show")):$APP.Cg(a,"__xTooltipShowTimer",setTimeout(function(){a.__xTooltipShowTimer=null;return $APP.n(a.isConnected)?(a.setAttribute("open",""),
5
+ hu(a,"x-tooltip-show")):null},b))},ku=function(a){iu(a);return $APP.n(a.hasAttribute("open"))?(a.removeAttribute("open"),hu(a,"x-tooltip-hide")):null},lu=function(a){var b=$APP.k(a,"__xTooltipRefs");if($APP.n(b)){var c=$APP.k(b,"triggerSlot").assignedElements();b=$APP.k(a,"__xTooltipId");var d=$APP.k(a,"__xTooltipTriggerEl");$APP.n(d)&&(d.removeAttribute("aria-describedby"),a.__xTooltipTriggerEl=null);if(c.length>0){c=c[0];c.setAttribute("aria-describedby",b);a.__xTooltipTriggerEl=c;return}}return null},
6
+ mu=function(a){return{pointerenter:function(){return ju(a,!1)},pointerleave:function(){return ku(a)},focusin:function(){return ju(a,!0)},focusout:function(b){b=b.relatedTarget;return b==null||$APP.r(a.contains(b))?ku(a):null},keydown:function(b){b=$APP.C.i(b.key,"Escape");return $APP.n(b?a.hasAttribute("open"):b)?ku(a):null},slotchange:function(){return lu(a)}}},nu=function(a){var b=$APP.k(a,"__xTooltipRefs");if($APP.n(b)){var c=$APP.k(a,"__xTooltipHandlers");$APP.n(c)&&(b=$APP.k(b,"triggerSlot"),
7
+ a.removeEventListener("pointerenter",$APP.k(c,"pointerenter")),a.removeEventListener("pointerleave",$APP.k(c,"pointerleave")),a.removeEventListener("focusin",$APP.k(c,"focusin")),a.removeEventListener("focusout",$APP.k(c,"focusout")),a.removeEventListener("keydown",$APP.k(c,"keydown")),b.removeEventListener("slotchange",$APP.k(c,"slotchange")))}},ou=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.Eg(this,
8
+ c,$APP.F(d))}})},pu=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){return d!=null&&$APP.N(d)?this.setAttribute(c,""+$APP.T.g(d)):this.removeAttribute(c)}})},qu=function(a){Object.defineProperty(a,"delay",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("delay");return b!=null?(b=parseInt(b,10),$APP.n(isNaN(b))?null:b):null},set:function(b){return b!=null&&$APP.N(b)?this.setAttribute("delay",
9
+ ""+$APP.T.g(b)):this.removeAttribute("delay")}})},tu=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return ru}});pu(b,"text","text");pu(b,"placement","placement");qu(b);ou(b,"disabled","disabled");ou(b,"open","open");b.show=function(){return ju(this,!0)};b.hide=function(){return ku(this)};b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xTooltipRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),
10
+ e=document.createElement("span"),g=document.createElement("slot"),h=document.createElement("div"),l=document.createElement("div"),m=document.createElement("div"),p=document.createElement("span"),q=document.createElement("slot");var v=$APP.k(su,"n")+1;su.n=v;v="x-tt-"+$APP.T.g(v);d.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-tooltip-bg:var(--x-color-bg,#ffffff);--x-tooltip-text:var(--x-color-text,#0f172a);--x-tooltip-border:1px solid var(--x-color-border,#e2e8f0);--x-tooltip-padding:var(--x-space-xs,4px) var(--x-space-sm,8px);--x-tooltip-radius:var(--x-radius-md,6px);--x-tooltip-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12));--x-tooltip-z:var(--x-z-dropdown,1000);--x-tooltip-max-width:min(200px,calc(100% - 2rem));--x-tooltip-font-size:var(--x-font-size-xs,0.75rem);--x-tooltip-arrow-size:6px;--x-tooltip-offset:4px;--x-tooltip-transition-duration:var(--x-transition-duration,150ms);--x-tooltip-transition-easing:var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-tooltip-bg:var(--x-color-bg,#1e293b);--x-tooltip-text:var(--x-color-text,#e2e8f0);--x-tooltip-border:1px solid var(--x-color-border,#334155);--x-tooltip-shadow:0 4px 24px rgba(0,0,0,0.4);}}[part\x3dtrigger]{display:inline-block;}[part\x3dpanel]{position:absolute;z-index:var(--x-tooltip-z);box-sizing:border-box;background:var(--x-tooltip-bg);color:var(--x-tooltip-text);border:var(--x-tooltip-border);padding:var(--x-tooltip-padding);border-radius:var(--x-tooltip-radius);box-shadow:var(--x-tooltip-shadow);max-width:var(--x-tooltip-max-width);font-size:var(--x-tooltip-font-size);font-family:inherit;line-height:1.4;white-space:normal;word-wrap:break-word;pointer-events:none;visibility:hidden;opacity:0;transition:opacity var(--x-tooltip-transition-duration) var(--x-tooltip-transition-easing),transform var(--x-tooltip-transition-duration) var(--x-tooltip-transition-easing),visibility 0s var(--x-tooltip-transition-duration);}:host([open]) [part\x3dpanel]{visibility:visible;opacity:1;transition:opacity var(--x-tooltip-transition-duration) var(--x-tooltip-transition-easing),transform var(--x-tooltip-transition-duration) var(--x-tooltip-transition-easing),visibility 0s 0s;}[part\x3dpanel][data-placement\x3dtop]{bottom:calc(100% + var(--x-tooltip-arrow-size) + var(--x-tooltip-offset));left:50%;transform:translateX(-50%) translateY(4px);transform-origin:bottom center;}:host([open]) [part\x3dpanel][data-placement\x3dtop]{transform:translateX(-50%) translateY(0);}[part\x3dpanel][data-placement\x3dbottom]{top:calc(100% + var(--x-tooltip-arrow-size) + var(--x-tooltip-offset));left:50%;transform:translateX(-50%) translateY(-4px);transform-origin:top center;}:host([open]) [part\x3dpanel][data-placement\x3dbottom]{transform:translateX(-50%) translateY(0);}[part\x3dpanel][data-placement\x3dleft]{right:calc(100% + var(--x-tooltip-arrow-size) + var(--x-tooltip-offset));top:50%;transform:translateY(-50%) translateX(4px);transform-origin:center right;}:host([open]) [part\x3dpanel][data-placement\x3dleft]{transform:translateY(-50%) translateX(0);}[part\x3dpanel][data-placement\x3dright]{left:calc(100% + var(--x-tooltip-arrow-size) + var(--x-tooltip-offset));top:50%;transform:translateY(-50%) translateX(-4px);transform-origin:center left;}:host([open]) [part\x3dpanel][data-placement\x3dright]{transform:translateY(-50%) translateX(0);}[part\x3darrow]{position:absolute;width:var(--x-tooltip-arrow-size);height:var(--x-tooltip-arrow-size);background:var(--x-tooltip-bg);border:var(--x-tooltip-border);transform:rotate(45deg);pointer-events:none;}[part\x3dpanel][data-placement\x3dtop] [part\x3darrow]{bottom:calc(var(--x-tooltip-arrow-size) / -2);left:calc(50% - var(--x-tooltip-arrow-size) / 2);border-top:none;border-left:none;}[part\x3dpanel][data-placement\x3dbottom] [part\x3darrow]{top:calc(var(--x-tooltip-arrow-size) / -2);left:calc(50% - var(--x-tooltip-arrow-size) / 2);border-bottom:none;border-right:none;}[part\x3dpanel][data-placement\x3dleft] [part\x3darrow]{right:calc(var(--x-tooltip-arrow-size) / -2);top:calc(50% - var(--x-tooltip-arrow-size) / 2);border-bottom:none;border-left:none;}[part\x3dpanel][data-placement\x3dright] [part\x3darrow]{left:calc(var(--x-tooltip-arrow-size) / -2);top:calc(50% - var(--x-tooltip-arrow-size) / 2);border-top:none;border-right:none;}[part\x3dbody]{position:relative;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}}";
11
11
  e.setAttribute("part","trigger");h.setAttribute("part","panel");h.setAttribute("role","tooltip");h.setAttribute("id",v);h.setAttribute("aria-hidden","true");h.setAttribute("data-placement","top");l.setAttribute("part","arrow");l.setAttribute("aria-hidden","true");m.setAttribute("part","body");p.setAttribute("part","text");q.setAttribute("name","content");e.appendChild(g);m.appendChild(p);m.appendChild(q);h.appendChild(l);h.appendChild(m);c.appendChild(d);c.appendChild(e);c.appendChild(h);this.__xTooltipId=
12
- v;this.__xTooltipRefs={trigger:e,triggerSlot:g,panel:h,arrow:l,body:m,text:p,contentSlot:q}}Rt(this);this.__xTooltipHandlers=Qt(this);d=$APP.k(this,"__xTooltipRefs");$APP.n(d)&&(c=$APP.k(this,"__xTooltipHandlers"),$APP.n(c)&&(d=$APP.k(d,"triggerSlot"),this.addEventListener("pointerenter",$APP.k(c,"pointerenter")),this.addEventListener("pointerleave",$APP.k(c,"pointerleave")),this.addEventListener("focusin",$APP.k(c,"focusin")),this.addEventListener("focusout",$APP.k(c,"focusout")),this.addEventListener("keydown",
13
- $APP.k(c,"keydown")),d.addEventListener("slotchange",$APP.k(c,"slotchange"))));Kt(this);return Pt(this)};b.disconnectedCallback=function(){Mt(this);Rt(this);var c=$APP.k(this,"__xTooltipTriggerEl");$APP.n(c)?(c.removeAttribute("aria-describedby"),this.__xTooltipTriggerEl=null,c=void 0):c=null;return c};b.attributeChangedCallback=function(){if($APP.n($APP.k(this,"__xTooltipRefs"))){Kt(this);var c=this.hasAttribute("disabled");c=$APP.n($APP.n(c)?this.hasAttribute("open"):c)?Ot(this):null}else c=null;
14
- return c};return a},Yt=function(){return $APP.n(customElements.get("x-tooltip"))?null:customElements.define("x-tooltip",Xt())},It=new $APP.K(null,"delay","delay",-574225219),Gt=new $APP.K(null,"delay-raw","delay-raw",886290425);var Ht=new $APP.S(null,new $APP.Q(null,4,["right",null,"top",null,"bottom",null,"left",null],null),null),Vt=["text","placement","delay","disabled","open"];$APP.Qd(["x-tooltip-show",new $APP.Q(null,2,[$APP.Rl,!1,$APP.V,$APP.Rd],null),"x-tooltip-hide",new $APP.Q(null,2,[$APP.Rl,!1,$APP.V,$APP.Rd],null)]);var Wt={n:0};$APP.ha("baredom.exports.x_tooltip.init",Yt);export const init=Yt;
12
+ v;this.__xTooltipRefs={trigger:e,triggerSlot:g,panel:h,arrow:l,body:m,text:p,contentSlot:q}}nu(this);this.__xTooltipHandlers=mu(this);d=$APP.k(this,"__xTooltipRefs");$APP.n(d)&&(c=$APP.k(this,"__xTooltipHandlers"),$APP.n(c)&&(d=$APP.k(d,"triggerSlot"),this.addEventListener("pointerenter",$APP.k(c,"pointerenter")),this.addEventListener("pointerleave",$APP.k(c,"pointerleave")),this.addEventListener("focusin",$APP.k(c,"focusin")),this.addEventListener("focusout",$APP.k(c,"focusout")),this.addEventListener("keydown",
13
+ $APP.k(c,"keydown")),d.addEventListener("slotchange",$APP.k(c,"slotchange"))));gu(this);return lu(this)};b.disconnectedCallback=function(){iu(this);nu(this);var c=$APP.k(this,"__xTooltipTriggerEl");$APP.n(c)?(c.removeAttribute("aria-describedby"),this.__xTooltipTriggerEl=null,c=void 0):c=null;return c};b.attributeChangedCallback=function(){if($APP.n($APP.k(this,"__xTooltipRefs"))){gu(this);var c=this.hasAttribute("disabled");c=$APP.n($APP.n(c)?this.hasAttribute("open"):c)?ku(this):null}else c=null;
14
+ return c};return a},uu=function(){return $APP.n(customElements.get("x-tooltip"))?null:customElements.define("x-tooltip",tu())},eu=new $APP.K(null,"delay","delay",-574225219),cu=new $APP.K(null,"delay-raw","delay-raw",886290425);var du=new $APP.R(null,new $APP.Q(null,4,["right",null,"top",null,"bottom",null,"left",null],null),null),ru=["text","placement","delay","disabled","open"];$APP.Qd(["x-tooltip-show",new $APP.Q(null,2,[$APP.Yl,!1,$APP.V,$APP.Rd],null),"x-tooltip-hide",new $APP.Q(null,2,[$APP.Yl,!1,$APP.V,$APP.Rd],null)]);var su={n:0};$APP.ha("baredom.exports.x_tooltip.init",uu);export const init=uu;
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var bG=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.r(isNaN(a))&&a>0?a:null):null},dG=function(a){var b=$APP.k(a,"__xTypographyRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=cG;d.setAttribute("part","container");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xTypographyRefs=new $APP.Q(null,2,[$APP.yi,b,$APP.xj,d],null);
3
- return $APP.k(a,"__xTypographyRefs")},jG=function(a){var b=new $APP.Q(null,4,[$APP.bl,a.getAttribute("variant"),$APP.Oi,a.getAttribute("align"),eG,a.getAttribute("truncate"),fG,a.getAttribute("line-clamp")],null);var c=$APP.M(b),d=$APP.D(c,$APP.bl),e=$APP.D(c,$APP.Oi);b=$APP.D(c,eG);c=$APP.D(c,fG);d=typeof d==="string"?d.toLowerCase():null;d=$APP.I(gG,d)?d:"body1";e=typeof e==="string"?e.toLowerCase():null;e=$APP.I(hG,e)?e:"left";b=new $APP.Q(null,4,[$APP.Qg,d,$APP.lj,e,$APP.Di,b!=null,iG,bG(c)],
4
- null);if($APP.N($APP.k(a,"__xTypographyModel"),b)){b=$APP.M(b);e=$APP.D(b,$APP.Qg);d=$APP.D(b,$APP.lj);var g=$APP.D(b,$APP.Di);c=$APP.D(b,iG);var h=dG(a);h=$APP.M(h);h=$APP.D(h,$APP.xj);a.setAttribute("data-variant",e);a.setAttribute("data-align",d);$APP.n(g)?h.setAttribute("data-truncate",""):h.removeAttribute("data-truncate");c!=null&&$APP.r(g)?(e=h.style,e.display="-webkit-box",e.setProperty("-webkit-box-orient","vertical"),e.overflow="hidden",e.setProperty("-webkit-line-clamp",""+$APP.T.g(c))):
5
- (c=h.style,c.removeProperty("display"),c.removeProperty("-webkit-box-orient"),c.removeProperty("overflow"),c.removeProperty("-webkit-line-clamp"));a.__xTypographyModel=b}},kG=function(a){Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?b:"body1"},set:function(b){return $APP.n(b)?this.setAttribute("variant",""+$APP.T.g(b)):this.removeAttribute("variant")},enumerable:!0,configurable:!0});Object.defineProperty(a,"align",{get:function(){var b=this.getAttribute("align");
6
- return $APP.n(b)?b:"left"},set:function(b){return $APP.n(b)?this.setAttribute("align",""+$APP.T.g(b)):this.removeAttribute("align")},enumerable:!0,configurable:!0});Object.defineProperty(a,"truncate",{get:function(){return this.hasAttribute("truncate")},set:function(b){return $APP.n(b)?this.setAttribute("truncate",""):this.removeAttribute("truncate")},enumerable:!0,configurable:!0});Object.defineProperty(a,"lineClamp",{get:function(){return bG(this.getAttribute("line-clamp"))},set:function(b){return b==
7
- null?this.removeAttribute("line-clamp"):this.setAttribute("line-clamp",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0})},mG=function(){var a=class extends HTMLElement{};a.observedAttributes=lG;a.prototype.connectedCallback=function(){dG(this);jG(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&jG(this);return null};kG(a.prototype);return a},nG=function(){$APP.n(customElements.get("x-typography"))||customElements.define("x-typography",
8
- mG());return null},fG=new $APP.K(null,"line-clamp-raw","line-clamp-raw",-1982923204),iG=new $APP.K(null,"line-clamp","line-clamp",-1079334403),eG=new $APP.K(null,"truncate-raw","truncate-raw",1178232402);var lG=["variant","align","truncate","line-clamp"],gG=new $APP.S(null,new $APP.Q(null,16,["subtitle2",null,"overline",null,"h3",null,"body1",null,"body2",null,"small",null,"subtitle1",null,"h2",null,"kbd",null,"h4",null,"h5",null,"blockquote",null,"h1",null,"caption",null,"code",null,"h6",null],null),null),hG=new $APP.S(null,new $APP.Q(null,4,["right",null,"justify",null,"center",null,"left",null],null),null);var cG=":host{display:block;color-scheme:light dark;font-family:var(--x-typography-font-family,"+$APP.T.g("system-ui,-apple-system,sans-serif")+");color:var(--x-typography-color,var(--x-color-text,inherit));}[part\x3dcontainer]{margin:0;padding:0;}:host(:not([data-variant])),:host([data-variant\x3d'body1']){font-size:1rem;font-weight:400;line-height:1.5;letter-spacing:normal;}:host([data-variant\x3d'h1']){font-size:2.5rem;font-weight:700;line-height:1.2;letter-spacing:-0.02em;}:host([data-variant\x3d'h2']){font-size:2rem;font-weight:700;line-height:1.25;letter-spacing:-0.015em;}:host([data-variant\x3d'h3']){font-size:1.75rem;font-weight:600;line-height:1.3;letter-spacing:-0.01em;}:host([data-variant\x3d'h4']){font-size:1.5rem;font-weight:600;line-height:1.35;letter-spacing:-0.005em;}:host([data-variant\x3d'h5']){font-size:1.25rem;font-weight:600;line-height:1.4;letter-spacing:normal;}:host([data-variant\x3d'h6']){font-size:1.125rem;font-weight:600;line-height:1.4;letter-spacing:normal;}:host([data-variant\x3d'subtitle1']){font-size:1.125rem;font-weight:500;line-height:1.4;letter-spacing:0.005em;}:host([data-variant\x3d'subtitle2']){font-size:0.875rem;font-weight:500;line-height:1.4;letter-spacing:0.01em;}:host([data-variant\x3d'body2']){font-size:0.875rem;font-weight:400;line-height:1.5;letter-spacing:normal;}:host([data-variant\x3d'caption']){font-size:0.75rem;font-weight:400;line-height:1.4;letter-spacing:0.02em;}:host([data-variant\x3d'overline']){font-size:0.625rem;font-weight:600;line-height:1.5;letter-spacing:0.1em;text-transform:uppercase;}:host([data-variant\x3d'small']){font-size:0.8125rem;font-weight:400;line-height:1.4;letter-spacing:normal;}:host([data-variant\x3d'blockquote']){font-size:1.125rem;font-weight:400;line-height:1.6;letter-spacing:normal;font-style:italic;}:host([data-variant\x3d'blockquote']) [part\x3dcontainer]{border-left:3px solid var(--x-typography-blockquote-border-color,var(--x-color-border,"+
2
+ var yG=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.r(isNaN(a))&&a>0?a:null):null},AG=function(a){var b=$APP.k(a,"__xTypographyRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=zG;d.setAttribute("part","container");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xTypographyRefs=new $APP.Q(null,2,[$APP.Ci,b,$APP.Cj,d],null);
3
+ return $APP.k(a,"__xTypographyRefs")},GG=function(a){var b=new $APP.Q(null,4,[$APP.hl,a.getAttribute("variant"),$APP.Si,a.getAttribute("align"),BG,a.getAttribute("truncate"),CG,a.getAttribute("line-clamp")],null);var c=$APP.M(b),d=$APP.D(c,$APP.hl),e=$APP.D(c,$APP.Si);b=$APP.D(c,BG);c=$APP.D(c,CG);d=typeof d==="string"?d.toLowerCase():null;d=$APP.I(DG,d)?d:"body1";e=typeof e==="string"?e.toLowerCase():null;e=$APP.I(EG,e)?e:"left";b=new $APP.Q(null,4,[$APP.Tg,d,$APP.qj,e,$APP.Hi,b!=null,FG,yG(c)],
4
+ null);if($APP.N($APP.k(a,"__xTypographyModel"),b)){b=$APP.M(b);e=$APP.D(b,$APP.Tg);d=$APP.D(b,$APP.qj);var g=$APP.D(b,$APP.Hi);c=$APP.D(b,FG);var h=AG(a);h=$APP.M(h);h=$APP.D(h,$APP.Cj);a.setAttribute("data-variant",e);a.setAttribute("data-align",d);$APP.n(g)?h.setAttribute("data-truncate",""):h.removeAttribute("data-truncate");c!=null&&$APP.r(g)?(e=h.style,e.display="-webkit-box",e.setProperty("-webkit-box-orient","vertical"),e.overflow="hidden",e.setProperty("-webkit-line-clamp",""+$APP.T.g(c))):
5
+ (c=h.style,c.removeProperty("display"),c.removeProperty("-webkit-box-orient"),c.removeProperty("overflow"),c.removeProperty("-webkit-line-clamp"));a.__xTypographyModel=b}},HG=function(a){Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?b:"body1"},set:function(b){return $APP.n(b)?this.setAttribute("variant",""+$APP.T.g(b)):this.removeAttribute("variant")},enumerable:!0,configurable:!0});Object.defineProperty(a,"align",{get:function(){var b=this.getAttribute("align");
6
+ return $APP.n(b)?b:"left"},set:function(b){return $APP.n(b)?this.setAttribute("align",""+$APP.T.g(b)):this.removeAttribute("align")},enumerable:!0,configurable:!0});Object.defineProperty(a,"truncate",{get:function(){return this.hasAttribute("truncate")},set:function(b){return $APP.n(b)?this.setAttribute("truncate",""):this.removeAttribute("truncate")},enumerable:!0,configurable:!0});Object.defineProperty(a,"lineClamp",{get:function(){return yG(this.getAttribute("line-clamp"))},set:function(b){return b==
7
+ null?this.removeAttribute("line-clamp"):this.setAttribute("line-clamp",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0})},JG=function(){var a=class extends HTMLElement{};a.observedAttributes=IG;a.prototype.connectedCallback=function(){AG(this);GG(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&GG(this);return null};HG(a.prototype);return a},KG=function(){$APP.n(customElements.get("x-typography"))||customElements.define("x-typography",
8
+ JG());return null},CG=new $APP.K(null,"line-clamp-raw","line-clamp-raw",-1982923204),FG=new $APP.K(null,"line-clamp","line-clamp",-1079334403),BG=new $APP.K(null,"truncate-raw","truncate-raw",1178232402);var IG=["variant","align","truncate","line-clamp"],DG=new $APP.R(null,new $APP.Q(null,16,["subtitle2",null,"overline",null,"h3",null,"body1",null,"body2",null,"small",null,"subtitle1",null,"h2",null,"kbd",null,"h4",null,"h5",null,"blockquote",null,"h1",null,"caption",null,"code",null,"h6",null],null),null),EG=new $APP.R(null,new $APP.Q(null,4,["right",null,"justify",null,"center",null,"left",null],null),null);var zG=":host{display:block;color-scheme:light dark;font-family:var(--x-typography-font-family,"+$APP.T.g("system-ui,-apple-system,sans-serif")+");color:var(--x-typography-color,var(--x-color-text,inherit));}[part\x3dcontainer]{margin:0;padding:0;}:host(:not([data-variant])),:host([data-variant\x3d'body1']){font-size:1rem;font-weight:400;line-height:1.5;letter-spacing:normal;}:host([data-variant\x3d'h1']){font-size:2.5rem;font-weight:700;line-height:1.2;letter-spacing:-0.02em;}:host([data-variant\x3d'h2']){font-size:2rem;font-weight:700;line-height:1.25;letter-spacing:-0.015em;}:host([data-variant\x3d'h3']){font-size:1.75rem;font-weight:600;line-height:1.3;letter-spacing:-0.01em;}:host([data-variant\x3d'h4']){font-size:1.5rem;font-weight:600;line-height:1.35;letter-spacing:-0.005em;}:host([data-variant\x3d'h5']){font-size:1.25rem;font-weight:600;line-height:1.4;letter-spacing:normal;}:host([data-variant\x3d'h6']){font-size:1.125rem;font-weight:600;line-height:1.4;letter-spacing:normal;}:host([data-variant\x3d'subtitle1']){font-size:1.125rem;font-weight:500;line-height:1.4;letter-spacing:0.005em;}:host([data-variant\x3d'subtitle2']){font-size:0.875rem;font-weight:500;line-height:1.4;letter-spacing:0.01em;}:host([data-variant\x3d'body2']){font-size:0.875rem;font-weight:400;line-height:1.5;letter-spacing:normal;}:host([data-variant\x3d'caption']){font-size:0.75rem;font-weight:400;line-height:1.4;letter-spacing:0.02em;}:host([data-variant\x3d'overline']){font-size:0.625rem;font-weight:600;line-height:1.5;letter-spacing:0.1em;text-transform:uppercase;}:host([data-variant\x3d'small']){font-size:0.8125rem;font-weight:400;line-height:1.4;letter-spacing:normal;}:host([data-variant\x3d'blockquote']){font-size:1.125rem;font-weight:400;line-height:1.6;letter-spacing:normal;font-style:italic;}:host([data-variant\x3d'blockquote']) [part\x3dcontainer]{border-left:3px solid var(--x-typography-blockquote-border-color,var(--x-color-border,"+
9
9
  $APP.T.g("rgba(0,0,0,0.2)")+"));padding:var(--x-typography-blockquote-padding,0 0 0 1em);}@media (prefers-color-scheme:dark){:host([data-variant\x3d'blockquote']) [part\x3dcontainer]{border-left-color:var(--x-typography-blockquote-border-color,var(--x-color-border,"+$APP.T.g("rgba(255,255,255,0.25)")+"));}}:host([data-variant\x3d'code']){font-family:var(--x-typography-mono-font-family,"+$APP.T.g('ui-monospace,"SFMono-Regular","SF Mono",Menlo,Consolas,monospace')+");font-size:0.875rem;font-weight:400;line-height:1.5;}:host([data-variant\x3d'code']) [part\x3dcontainer]{background:var(--x-typography-code-bg,var(--x-color-surface,"+
10
10
  $APP.T.g("rgba(0,0,0,0.06)")+"));border-radius:var(--x-typography-code-radius,var(--x-radius-sm,4px));padding:var(--x-typography-code-padding,0.15em 0.35em);}@media (prefers-color-scheme:dark){:host([data-variant\x3d'code']) [part\x3dcontainer]{background:var(--x-typography-code-bg,var(--x-color-surface,"+$APP.T.g("rgba(255,255,255,0.1)")+"));}}:host([data-variant\x3d'kbd']){font-family:var(--x-typography-mono-font-family,"+$APP.T.g('ui-monospace,"SFMono-Regular","SF Mono",Menlo,Consolas,monospace')+
11
11
  ");font-size:0.875rem;font-weight:400;line-height:1.5;}:host([data-variant\x3d'kbd']) [part\x3dcontainer]{background:var(--x-typography-kbd-bg,var(--x-color-surface,"+$APP.T.g("rgba(0,0,0,0.06)")+"));border:1px solid var(--x-typography-kbd-border,var(--x-color-border,"+$APP.T.g("rgba(0,0,0,0.15)")+"));border-radius:var(--x-typography-kbd-radius,var(--x-radius-sm,4px));padding:var(--x-typography-kbd-padding,0.15em 0.4em);}@media (prefers-color-scheme:dark){:host([data-variant\x3d'kbd']) [part\x3dcontainer]{background:var(--x-typography-kbd-bg,var(--x-color-surface,"+
12
- $APP.T.g("rgba(255,255,255,0.1)")+"));border-color:var(--x-typography-kbd-border,var(--x-color-border,"+$APP.T.g("rgba(255,255,255,0.2)")+"));}}:host([data-align\x3d'left']){text-align:left;}:host([data-align\x3d'center']){text-align:center;}:host([data-align\x3d'right']){text-align:right;}:host([data-align\x3d'justify']){text-align:justify;}[part\x3dcontainer][data-truncate]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}";$APP.ha("baredom.exports.x_typography.init",nG);export const init=nG;
12
+ $APP.T.g("rgba(255,255,255,0.1)")+"));border-color:var(--x-typography-kbd-border,var(--x-color-border,"+$APP.T.g("rgba(255,255,255,0.2)")+"));}}:host([data-align\x3d'left']){text-align:left;}:host([data-align\x3d'center']){text-align:center;}:host([data-align\x3d'right']){text-align:right;}:host([data-align\x3d'justify']){text-align:justify;}[part\x3dcontainer][data-truncate]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}";$APP.ha("baredom.exports.x_typography.init",KG);export const init=KG;
package/package.json CHANGED
@@ -388,6 +388,6 @@
388
388
  "shadow-cljs" : "^3.3.6"
389
389
  },
390
390
  "files" : [ "dist", "README.md", "LICENSE", "CHANGELOG.md" ],
391
- "version" : "2.3.0",
391
+ "version" : "2.3.1",
392
392
  "sideEffects" : [ "./dist/*.js" ]
393
393
  }