@vanelsas/baredom 2.6.0 → 2.8.0

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 (109) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +12 -41
  3. package/custom-elements.json +344 -5
  4. package/dist/baredom.d.ts +4 -0
  5. package/dist/base.js +451 -421
  6. package/dist/integrity.json +97 -93
  7. package/dist/x-alert.js +17 -19
  8. package/dist/x-avatar-group.js +9 -11
  9. package/dist/x-avatar.js +15 -15
  10. package/dist/x-badge.js +9 -11
  11. package/dist/x-bento-grid.js +5 -5
  12. package/dist/x-bento-item.js +4 -4
  13. package/dist/x-breadcrumbs.js +13 -14
  14. package/dist/x-button.js +16 -16
  15. package/dist/x-cancel-dialogue.js +13 -17
  16. package/dist/x-card.js +7 -7
  17. package/dist/x-carousel.js +33 -34
  18. package/dist/x-chart.d.ts +26 -0
  19. package/dist/x-chart.js +47 -48
  20. package/dist/x-checkbox.js +11 -11
  21. package/dist/x-chip.js +1 -9
  22. package/dist/x-collapse.js +10 -12
  23. package/dist/x-color-picker.js +44 -45
  24. package/dist/x-combobox.js +26 -27
  25. package/dist/x-command-palette.js +26 -27
  26. package/dist/x-container.js +5 -6
  27. package/dist/x-context-menu.d.ts +31 -2
  28. package/dist/x-context-menu.js +20 -18
  29. package/dist/x-copy.js +20 -23
  30. package/dist/x-currency-field.js +23 -25
  31. package/dist/x-date-picker.d.ts +27 -0
  32. package/dist/x-date-picker.js +42 -42
  33. package/dist/x-divider.js +9 -10
  34. package/dist/x-drawer.js +10 -12
  35. package/dist/x-dropdown.js +11 -11
  36. package/dist/x-fieldset.js +5 -6
  37. package/dist/x-file-download.js +7 -8
  38. package/dist/x-file-upload.js +22 -25
  39. package/dist/x-form-field.js +15 -17
  40. package/dist/x-form.js +9 -10
  41. package/dist/x-gaussian-blur.js +13 -19
  42. package/dist/x-grid.js +6 -6
  43. package/dist/x-i18n-provider.d.ts +43 -0
  44. package/dist/x-i18n-provider.js +8 -0
  45. package/dist/x-i18n.d.ts +14 -0
  46. package/dist/x-i18n.js +5 -0
  47. package/dist/x-icon.js +6 -7
  48. package/dist/x-image.js +18 -19
  49. package/dist/x-kinetic-canvas.d.ts +18 -0
  50. package/dist/x-kinetic-canvas.js +26 -0
  51. package/dist/x-kinetic-font.js +27 -29
  52. package/dist/x-kinetic-typography.js +33 -39
  53. package/dist/x-liquid-dock.js +39 -39
  54. package/dist/x-liquid-fill.js +45 -45
  55. package/dist/x-liquid-glass.js +47 -47
  56. package/dist/x-menu-item.js +8 -10
  57. package/dist/x-menu.js +10 -11
  58. package/dist/x-metaball-cursor.js +27 -27
  59. package/dist/x-modal.js +11 -13
  60. package/dist/x-morph-stack.js +37 -39
  61. package/dist/x-multi-combobox.d.ts +50 -0
  62. package/dist/x-multi-combobox.js +37 -0
  63. package/dist/x-navbar.js +12 -13
  64. package/dist/x-neural-glow.js +33 -34
  65. package/dist/x-notification-center.js +9 -10
  66. package/dist/x-organic-divider.js +17 -19
  67. package/dist/x-organic-progress.js +38 -39
  68. package/dist/x-organic-shape.js +13 -14
  69. package/dist/x-pagination.js +15 -17
  70. package/dist/x-particle-button.js +51 -52
  71. package/dist/x-popover.js +26 -25
  72. package/dist/x-progress-circle.js +9 -11
  73. package/dist/x-progress.js +10 -11
  74. package/dist/x-radio.js +11 -12
  75. package/dist/x-ripple-effect.js +11 -12
  76. package/dist/x-scroll-parallax.js +18 -19
  77. package/dist/x-scroll-stack.js +17 -18
  78. package/dist/x-scroll-story.js +34 -36
  79. package/dist/x-scroll-timeline.js +45 -47
  80. package/dist/x-scroll.js +40 -42
  81. package/dist/x-search-field.js +15 -17
  82. package/dist/x-select.js +11 -11
  83. package/dist/x-sidebar.js +17 -17
  84. package/dist/x-skeleton-group.js +12 -14
  85. package/dist/x-skeleton.js +1 -1
  86. package/dist/x-slider.js +15 -18
  87. package/dist/x-soft-body.js +22 -22
  88. package/dist/x-spacer.js +4 -5
  89. package/dist/x-spinner.js +4 -6
  90. package/dist/x-splash.js +12 -13
  91. package/dist/x-stat.js +10 -12
  92. package/dist/x-stepper.js +14 -15
  93. package/dist/x-switch.js +10 -11
  94. package/dist/x-tab.js +7 -8
  95. package/dist/x-table-cell.js +20 -24
  96. package/dist/x-table-row.js +8 -10
  97. package/dist/x-table.js +12 -16
  98. package/dist/x-tabs.js +11 -11
  99. package/dist/x-text-area.js +19 -21
  100. package/dist/x-theme.d.ts +1 -1
  101. package/dist/x-theme.js +25 -25
  102. package/dist/x-timeline-item.js +21 -23
  103. package/dist/x-timeline.js +8 -9
  104. package/dist/x-toast.js +22 -24
  105. package/dist/x-toaster.js +8 -8
  106. package/dist/x-tooltip.js +12 -13
  107. package/dist/x-typography.js +9 -11
  108. package/dist/x-welcome-tour.js +60 -65
  109. package/package.json +201 -181
@@ -1,15 +1,13 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var fH=function(a){a=new $APP.Q(null,3,[bH,a.getAttribute("preset"),cH,a.getAttribute("animation"),$APP.gj,a.getAttribute("count")],null);var b=$APP.M(a);a=$APP.D(b,bH);var c=$APP.D(b,cH);b=$APP.D(b,$APP.gj);a=$APP.I(dH,a)?a:null;c=$APP.I(eH,c)?c:"pulse";b!=null?(b=parseInt(b,10),b=$APP.n(isNaN(b))?1:$APP.ph.i($APP.oh.i(b,1),20)):b=1;return new $APP.Q(null,3,[$APP.Fk,a,$APP.Wg,c,$APP.Rh,b],null)},gH=function(a){var b=performance.now();return a.style.setProperty("--x-skeleton-delay",""+$APP.T.g(-$APP.fd(b,
3
- 1500))+"ms")},hH=function(a,b){a=$APP.k(a,"__xSkeletonGroupRefs");if($APP.n(a)){a=$APP.k(a,"slot").assignedElements({flatten:!0});a=$APP.t($APP.uc(a));for(var c=null,d=0,e=0;;)if(e<d){var g=c.F(null,e);$APP.B.i("X-SKELETON",g.tagName)&&g.setAttribute("animation",b);e+=1}else if(a=$APP.t(a))c=a,$APP.Nc(c)?(a=$APP.yb(c),d=$APP.zb(c),c=a,g=$APP.z(a),a=d,d=g):(g=$APP.u(c),$APP.B.i("X-SKELETON",g.tagName)&&g.setAttribute("animation",b),a=$APP.w(c),c=null,d=0),e=0;else break}},kH=function(a){var b=$APP.k(a,
4
- "__xSkeletonGroupRefs");if($APP.n(b)){var c=fH(a);b=$APP.k(b,"preset");if($APP.N(c,$APP.k(a,"__xSkeletonGroupModel"))){a.__xSkeletonGroupModel=c;var d=$APP.M(c),e=$APP.D(d,$APP.Fk);c=$APP.D(d,$APP.Wg);d=$APP.D(d,$APP.Rh);if($APP.n(e))a:{if(b.textContent="",e=$APP.D(iH,e),$APP.n(e))for(var g=$APP.B.i($APP.Il,$APP.qk.g(e))?"sg-row":"sg-col",h=0;;)if(h<d){var l=document.createElement("div");l.className=g;l.style.gap=$APP.Yj.g(e);for(var m=$APP.t($APP.ik.g(e)),p=null,q=0,v=0;;)if(v<q){var x=p.F(null,
5
- v);l.appendChild(jH(x,c));v+=1}else if(m=$APP.t(m))p=m,$APP.Nc(p)?(m=$APP.yb(p),v=$APP.zb(p),p=m,q=$APP.z(m),m=v):(m=$APP.u(p),l.appendChild(jH(m,c)),m=$APP.w(p),p=null,q=0),v=0;else break;b.appendChild(l);h+=1}else break a}else b.textContent="";hH(a,c);gH(a);return $APP.n(a.hasAttribute("aria-hidden"))?null:a.setAttribute("aria-hidden","true")}}return null},lH=function(a){return{slotchange:function(){var b=fH(a);b=$APP.M(b);b=$APP.D(b,$APP.Wg);hH(a,b);return gH(a)}}},mH=function(a){var b=$APP.k(a,
6
- "__xSkeletonGroupRefs");return $APP.n(b)?(a=$APP.k(a,"__xSkeletonGroupHandlers"),$APP.n(a)?$APP.k(b,"slot").removeEventListener("slotchange",$APP.k(a,"slotchange")):null):null},nH=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)&&$APP.N(d,"")?this.setAttribute(c,""+$APP.T.g(d)):this.removeAttribute(c)}})},oH=function(a){Object.defineProperty(a,"count",{configurable:!0,
7
- enumerable:!0,get:function(){var b=this.getAttribute("count");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("count",""+$APP.T.g(b)):this.removeAttribute("count")}})},qH=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return pH}});nH(b,"preset","preset");nH(b,"animation","animation");oH(b);b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xSkeletonGroupRefs"))){var c=
8
- this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("slot");d.textContent=":host{display:block;box-sizing:border-box;}[part\x3dcontainer]{display:flex;flex-direction:column;gap:var(--x-skeleton-group-gap,12px);}[part\x3dpreset-container]:empty{display:none;}:host([preset]) slot{display:none;}.sg-row{display:flex;flex-direction:row;align-items:center;}.sg-col{display:flex;flex-direction:column;}";
9
- e.setAttribute("part","container");g.setAttribute("part","preset-container");e.appendChild(g);e.appendChild(h);c.appendChild(d);c.appendChild(e);this.__xSkeletonGroupRefs={container:e,preset:g,slot:h}}mH(this);this.__xSkeletonGroupHandlers=lH(this);c=$APP.k(this,"__xSkeletonGroupRefs");$APP.n(c)&&(d=$APP.k(this,"__xSkeletonGroupHandlers"),$APP.n(d)&&$APP.k(c,"slot").addEventListener("slotchange",$APP.k(d,"slotchange")));this.__xSkeletonGroupModel=null;return kH(this)};b.disconnectedCallback=function(){return mH(this)};
10
- b.attributeChangedCallback=function(){return $APP.n($APP.k(this,"__xSkeletonGroupRefs"))?kH(this):null};return a},rH=function(){$APP.eh();return $APP.n(customElements.get("x-skeleton-group"))?null:customElements.define("x-skeleton-group",qH())},sH=new $APP.K(null,"flex","flex",-1425124628),cH=new $APP.K(null,"animation-raw","animation-raw",-576464154),bH=new $APP.K(null,"preset-raw","preset-raw",1216420442);var dH=new $APP.S(null,new $APP.Q(null,5,["profile",null,"paragraph",null,"list-item",null,"card",null,"table-row",null],null),null),eH=new $APP.S(null,new $APP.Q(null,3,["none",null,"pulse",null,"wave",null],null),null),pH=["preset","animation","count"],iH=new $APP.Q(null,5,["card",new $APP.Q(null,3,[$APP.qk,$APP.zj,$APP.Yj,"12px",$APP.ik,new $APP.O(null,4,5,$APP.P,[new $APP.Q(null,3,[$APP.Vg,"rect",$APP.Xg,"100%",$APP.Yg,"140px"],null),new $APP.Q(null,2,[$APP.Vg,"text",$APP.Xg,"80%"],null),new $APP.Q(null,
11
- 2,[$APP.Vg,"text",$APP.Xg,"60%"],null),new $APP.Q(null,2,[$APP.Vg,"text",$APP.Xg,"40%"],null)],null)],null),"list-item",new $APP.Q(null,3,[$APP.qk,$APP.Il,$APP.Yj,"12px",$APP.ik,new $APP.O(null,2,5,$APP.P,[new $APP.Q(null,3,[$APP.Vg,"circle",$APP.Xg,"40px",$APP.Yg,"40px"],null),new $APP.Q(null,4,[$APP.qk,$APP.zj,$APP.Yj,"8px",sH,"1",$APP.ik,new $APP.O(null,2,5,$APP.P,[new $APP.Q(null,2,[$APP.Vg,"text",$APP.Xg,"70%"],null),new $APP.Q(null,2,[$APP.Vg,"text",$APP.Xg,"50%"],null)],null)],null)],null)],
12
- null),"paragraph",new $APP.Q(null,3,[$APP.qk,$APP.zj,$APP.Yj,"8px",$APP.ik,new $APP.O(null,4,5,$APP.P,[new $APP.Q(null,2,[$APP.Vg,"text",$APP.Xg,"100%"],null),new $APP.Q(null,2,[$APP.Vg,"text",$APP.Xg,"100%"],null),new $APP.Q(null,2,[$APP.Vg,"text",$APP.Xg,"100%"],null),new $APP.Q(null,2,[$APP.Vg,"text",$APP.Xg,"60%"],null)],null)],null),"table-row",new $APP.Q(null,3,[$APP.qk,$APP.Il,$APP.Yj,"16px",$APP.ik,new $APP.O(null,4,5,$APP.P,[new $APP.Q(null,2,[$APP.Vg,"text",sH,"1"],null),new $APP.Q(null,
13
- 2,[$APP.Vg,"text",sH,"1"],null),new $APP.Q(null,2,[$APP.Vg,"text",sH,"1"],null),new $APP.Q(null,2,[$APP.Vg,"text",sH,"1"],null)],null)],null),"profile",new $APP.Q(null,3,[$APP.qk,$APP.Il,$APP.Yj,"12px",$APP.ik,new $APP.O(null,2,5,$APP.P,[new $APP.Q(null,3,[$APP.Vg,"circle",$APP.Xg,"48px",$APP.Yg,"48px"],null),new $APP.Q(null,4,[$APP.qk,$APP.zj,$APP.Yj,"8px",sH,"1",$APP.ik,new $APP.O(null,2,5,$APP.P,[new $APP.Q(null,2,[$APP.Vg,"text",$APP.Xg,"120px"],null),new $APP.Q(null,2,[$APP.Vg,"text",$APP.Xg,
14
- "80px"],null)],null)],null)],null)],null)],null);var jH=function jH(a,b){if($APP.n($APP.qk.g(a))){var d=document.createElement("div"),e=$APP.B.i($APP.Il,$APP.qk.g(a))?"sg-row":"sg-col";d.className=e;d.style.gap=$APP.Yj.g(a);e=sH.g(a);$APP.n(e)&&(d.style.flex=e);a=$APP.t($APP.ik.g(a));e=null;for(var g=0,h=0;;)if(h<g){var l=e.F(null,h);d.appendChild(jH.i?jH.i(l,b):jH.call(null,l,b));h+=1}else if(a=$APP.t(a))e=a,$APP.Nc(e)?(a=$APP.yb(e),h=$APP.zb(e),e=a,g=$APP.z(a),a=h):(a=$APP.u(e),d.appendChild(jH.i?jH.i(a,b):jH.call(null,a,b)),a=$APP.w(e),e=null,
15
- g=0),h=0;else break;return d}d=document.createElement("x-skeleton");e=$APP.Vg.g(a);$APP.n(e)&&d.setAttribute("variant",e);e=$APP.Xg.g(a);$APP.n(e)&&d.setAttribute("width",e);e=$APP.Yg.g(a);$APP.n(e)&&d.setAttribute("height",e);a=sH.g(a);$APP.n(a)&&(d.style.flex=a);d.setAttribute("animation",b);return d};$APP.ha("baredom.exports.x_skeleton_group.init",rH);export const init=rH;
2
+ var rK=function(a){a=new $APP.N(null,3,[nK,a.getAttribute("preset"),oK,a.getAttribute("animation"),$APP.ok,a.getAttribute("count")],null);var b=$APP.J(a);a=$APP.C(b,nK);var c=$APP.C(b,oK);b=$APP.C(b,$APP.ok);a=$APP.Zc(pK,a)?a:null;c=$APP.Zc(qK,c)?c:"pulse";b!=null?(b=parseInt(b,10),b=$APP.n(isNaN(b))?1:$APP.Ii.i($APP.Hi.i(b,1),20)):b=1;return new $APP.N(null,3,[$APP.Nl,a,$APP.ji,c,$APP.gj,b],null)},sK=function(a){var b=performance.now();return a.style.setProperty("--x-skeleton-delay",""+$APP.Q.g(-$APP.od(b,
3
+ 1500))+"ms")},tK=function(a,b){a=$APP.k(a,"__xSkeletonGroupRefs");if($APP.n(a)){a=$APP.k(a,"slot").assignedElements({flatten:!0});a=$APP.t($APP.Bc(a));for(var c=null,d=0,e=0;;)if(e<d){var f=c.F(null,e);$APP.B.i("X-SKELETON",f.tagName)&&f.setAttribute("animation",b);e+=1}else if(a=$APP.t(a))c=a,$APP.Vc(c)?(a=$APP.Db(c),d=$APP.Eb(c),c=a,f=$APP.z(a),a=d,d=f):(f=$APP.u(c),$APP.B.i("X-SKELETON",f.tagName)&&f.setAttribute("animation",b),a=$APP.w(c),c=null,d=0),e=0;else break}},wK=function(a){var b=$APP.k(a,
4
+ "__xSkeletonGroupRefs");if($APP.n(b)){var c=rK(a);b=$APP.k(b,"preset");if($APP.M(c,$APP.k(a,"__xSkeletonGroupModel"))){a.__xSkeletonGroupModel=c;var d=$APP.J(c),e=$APP.C(d,$APP.Nl);c=$APP.C(d,$APP.ji);d=$APP.C(d,$APP.gj);if($APP.n(e))a:{if(b.textContent="",e=$APP.C(uK,e),$APP.n(e))for(var f=$APP.B.i($APP.$m,$APP.yl.g(e))?"sg-row":"sg-col",h=0;;)if(h<d){var l=document.createElement("div");l.className=f;l.style.gap=$APP.jl.g(e);for(var m=$APP.t($APP.pl.g(e)),q=null,r=0,v=0;;)if(v<r){var x=q.F(null,
5
+ v);l.appendChild(vK(x,c));v+=1}else if(m=$APP.t(m))q=m,$APP.Vc(q)?(m=$APP.Db(q),v=$APP.Eb(q),q=m,r=$APP.z(m),m=v):(m=$APP.u(q),l.appendChild(vK(m,c)),m=$APP.w(q),q=null,r=0),v=0;else break;b.appendChild(l);h+=1}else break a}else b.textContent="";tK(a,c);sK(a);return $APP.n(a.hasAttribute("aria-hidden"))?null:a.setAttribute("aria-hidden","true")}}return null},xK=function(a){return{slotchange:function(){var b=rK(a);b=$APP.J(b);b=$APP.C(b,$APP.ji);tK(a,b);return sK(a)}}},yK=function(a){var b=$APP.k(a,
6
+ "__xSkeletonGroupRefs");return $APP.n(b)?(a=$APP.k(a,"__xSkeletonGroupHandlers"),$APP.n(a)?$APP.k(b,"slot").removeEventListener("slotchange",$APP.k(a,"slotchange")):null):null},zK=function(a){if(!$APP.n($APP.k(a,"__xSkeletonGroupRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("slot");c.textContent=":host{display:block;box-sizing:border-box;}[part\x3dcontainer]{display:flex;flex-direction:column;gap:var(--x-skeleton-group-gap,12px);}[part\x3dpreset-container]:empty{display:none;}:host([preset]) slot{display:none;}.sg-row{display:flex;flex-direction:row;align-items:center;}.sg-col{display:flex;flex-direction:column;}";
7
+ d.setAttribute("part","container");e.setAttribute("part","preset-container");d.appendChild(e);d.appendChild(f);b.appendChild(c);b.appendChild(d);a.__xSkeletonGroupRefs={container:d,preset:e,slot:f}}yK(a);a.__xSkeletonGroupHandlers=xK(a);b=$APP.k(a,"__xSkeletonGroupRefs");$APP.n(b)&&(c=$APP.k(a,"__xSkeletonGroupHandlers"),$APP.n(c)&&$APP.k(b,"slot").addEventListener("slotchange",$APP.k(c,"slotchange")));a.__xSkeletonGroupModel=null;return wK(a)},AK=function(a){return yK(a)},BK=function(a){return $APP.n($APP.k(a,
8
+ "__xSkeletonGroupRefs"))?wK(a):null},DK=function(a){return $APP.jh(a,CK)},FK=function(){$APP.ti();return $APP.Yg("x-skeleton-group",new $APP.N(null,5,[$APP.Pg,EK,$APP.Qg,zK,$APP.Rg,AK,$APP.Sg,BK,$APP.Wg,DK],null))},GK=new $APP.F(null,"flex","flex",-1425124628),oK=new $APP.F(null,"animation-raw","animation-raw",-576464154),nK=new $APP.F(null,"preset-raw","preset-raw",1216420442);var pK=new $APP.O(null,new $APP.N(null,5,["profile",null,"paragraph",null,"list-item",null,"card",null,"table-row",null],null),null),qK=new $APP.O(null,new $APP.N(null,3,["none",null,"pulse",null,"wave",null],null),null),EK=["preset","animation","count"],CK=new $APP.N(null,3,[$APP.Nl,new $APP.N(null,3,[$APP.R,$APP.U,$APP.S,"preset",$APP.ih,""],null),$APP.ji,new $APP.N(null,3,[$APP.R,$APP.U,$APP.S,"animation",$APP.ih,""],null),$APP.gj,new $APP.N(null,3,[$APP.R,$APP.V,$APP.S,"count",$APP.ih,1],null)],
9
+ null),uK=new $APP.N(null,5,["card",new $APP.N(null,3,[$APP.yl,$APP.Mk,$APP.jl,"12px",$APP.pl,new $APP.De(null,4,5,$APP.Ee,[new $APP.N(null,3,[$APP.ii,"rect",$APP.ki,"100%",$APP.li,"140px"],null),new $APP.N(null,2,[$APP.ii,"text",$APP.ki,"80%"],null),new $APP.N(null,2,[$APP.ii,"text",$APP.ki,"60%"],null),new $APP.N(null,2,[$APP.ii,"text",$APP.ki,"40%"],null)],null)],null),"list-item",new $APP.N(null,3,[$APP.yl,$APP.$m,$APP.jl,"12px",$APP.pl,new $APP.De(null,2,5,$APP.Ee,[new $APP.N(null,3,[$APP.ii,
10
+ "circle",$APP.ki,"40px",$APP.li,"40px"],null),new $APP.N(null,4,[$APP.yl,$APP.Mk,$APP.jl,"8px",GK,"1",$APP.pl,new $APP.De(null,2,5,$APP.Ee,[new $APP.N(null,2,[$APP.ii,"text",$APP.ki,"70%"],null),new $APP.N(null,2,[$APP.ii,"text",$APP.ki,"50%"],null)],null)],null)],null)],null),"paragraph",new $APP.N(null,3,[$APP.yl,$APP.Mk,$APP.jl,"8px",$APP.pl,new $APP.De(null,4,5,$APP.Ee,[new $APP.N(null,2,[$APP.ii,"text",$APP.ki,"100%"],null),new $APP.N(null,2,[$APP.ii,"text",$APP.ki,"100%"],null),new $APP.N(null,
11
+ 2,[$APP.ii,"text",$APP.ki,"100%"],null),new $APP.N(null,2,[$APP.ii,"text",$APP.ki,"60%"],null)],null)],null),"table-row",new $APP.N(null,3,[$APP.yl,$APP.$m,$APP.jl,"16px",$APP.pl,new $APP.De(null,4,5,$APP.Ee,[new $APP.N(null,2,[$APP.ii,"text",GK,"1"],null),new $APP.N(null,2,[$APP.ii,"text",GK,"1"],null),new $APP.N(null,2,[$APP.ii,"text",GK,"1"],null),new $APP.N(null,2,[$APP.ii,"text",GK,"1"],null)],null)],null),"profile",new $APP.N(null,3,[$APP.yl,$APP.$m,$APP.jl,"12px",$APP.pl,new $APP.De(null,2,
12
+ 5,$APP.Ee,[new $APP.N(null,3,[$APP.ii,"circle",$APP.ki,"48px",$APP.li,"48px"],null),new $APP.N(null,4,[$APP.yl,$APP.Mk,$APP.jl,"8px",GK,"1",$APP.pl,new $APP.De(null,2,5,$APP.Ee,[new $APP.N(null,2,[$APP.ii,"text",$APP.ki,"120px"],null),new $APP.N(null,2,[$APP.ii,"text",$APP.ki,"80px"],null)],null)],null)],null)],null)],null);var vK=function vK(a,b){if($APP.n($APP.yl.g(a))){var d=document.createElement("div"),e=$APP.B.i($APP.$m,$APP.yl.g(a))?"sg-row":"sg-col";d.className=e;d.style.gap=$APP.jl.g(a);e=GK.g(a);$APP.n(e)&&(d.style.flex=e);a=$APP.t($APP.pl.g(a));e=null;for(var f=0,h=0;;)if(h<f){var l=e.F(null,h);d.appendChild(vK.i?vK.i(l,b):vK.call(null,l,b));h+=1}else if(a=$APP.t(a))e=a,$APP.Vc(e)?(a=$APP.Db(e),h=$APP.Eb(e),e=a,f=$APP.z(a),a=h):(a=$APP.u(e),d.appendChild(vK.i?vK.i(a,b):vK.call(null,a,b)),a=$APP.w(e),e=null,
13
+ f=0),h=0;else break;return d}d=document.createElement("x-skeleton");e=$APP.ii.g(a);$APP.n(e)&&d.setAttribute("variant",e);e=$APP.ki.g(a);$APP.n(e)&&d.setAttribute("width",e);e=$APP.li.g(a);$APP.n(e)&&d.setAttribute("height",e);a=GK.g(a);$APP.n(a)&&(d.style.flex=a);d.setAttribute("animation",b);return d};$APP.ca("baredom.exports.x_skeleton_group.init",FK);export const init=FK;
@@ -1,2 +1,2 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var TS=function(){return $APP.eh()};$APP.ha("baredom.exports.x_skeleton.init",TS);export const init=TS;
2
+ var UW=function(){return $APP.ti()};$APP.ca("baredom.exports.x_skeleton.init",UW);export const init=UW;
package/dist/x-slider.js CHANGED
@@ -1,19 +1,16 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var GL=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},HL=function(a,b,c){return a.setAttribute(b,c)},IL=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},ML=function(a){var b=$APP.k(a,"__xSliderRefs");if($APP.n(b)){var c=$APP.k(b,"base"),d=$APP.k(b,"header"),e=$APP.k(b,"label"),g=$APP.k(b,"value");b=$APP.k(b,"input");var h=$APP.zf([$APP.jk,$APP.Pj,$APP.nk,$APP.Aj,$APP.Yi,$APP.Bj,$APP.bk,$APP.Mh,$APP.Wk,$APP.U,$APP.$m,$APP.Ql,$APP.Hm],[a.getAttribute("min"),
3
- a.hasAttribute("disabled"),a.hasAttribute("show-value"),a.getAttribute("name"),a.getAttribute("value"),a.hasAttribute("readonly"),a.getAttribute("aria-labelledby"),a.getAttribute("size"),a.getAttribute("max"),a.getAttribute("label"),a.getAttribute("aria-describedby"),a.getAttribute("aria-label"),a.getAttribute("step")]);var l=$APP.M(h);h=$APP.D(l,$APP.Ql);var m=$APP.D(l,$APP.Hm),p=$APP.D(l,$APP.jk),q=$APP.D(l,$APP.Pj),v=$APP.D(l,$APP.nk),x=$APP.D(l,$APP.Yi),y=$APP.D(l,$APP.Aj),A=$APP.D(l,$APP.Bj),
4
- C=$APP.D(l,$APP.bk),E=$APP.D(l,$APP.Mh),H=$APP.D(l,$APP.U),G=$APP.D(l,$APP.Wk);l=$APP.D(l,$APP.$m);p=GL(p,0);G=GL(G,100);x=$APP.ph.i($APP.oh.i(GL(x,0),p),G);$APP.B.i(m,"any")?m="any":(m=typeof m==="string"?parseFloat(m):NaN,m=$APP.r(isNaN(m))&&m>0?""+$APP.T.g(m):"1");E=typeof E==="string"&&$APP.I(JL,E)?E:"md";q=$APP.F(q);A=$APP.F(A);v=$APP.F(v);var J=G>p?$APP.ph.i($APP.oh.i((x-p)/(G-p)*100,0),100):0;h=$APP.zf([$APP.jk,$APP.dn,$APP.Aj,$APP.Yi,$APP.bk,KL,$APP.Mh,$APP.Wk,$APP.U,$APP.$m,$APP.Ql,$APP.X,
5
- $APP.Hm,LL],[p,A,typeof y==="string"&&$APP.N("",y)?y:null,x,typeof C==="string"&&$APP.N("",C)?C:null,v,E,G,typeof H==="string"&&$APP.N("",H)?H:null,typeof l==="string"&&$APP.N("",l)?l:null,typeof h==="string"&&$APP.N("",h)?h:null,q,m,J]);m=$APP.M(h);y=$APP.D(m,$APP.Ql);C=$APP.D(m,$APP.X);H=$APP.D(m,$APP.Hm);l=$APP.D(m,LL);v=$APP.D(m,$APP.jk);p=$APP.D(m,$APP.dn);h=$APP.D(m,$APP.Yi);A=$APP.D(m,$APP.bk);G=$APP.D(m,KL);q=$APP.D(m,$APP.Mh);x=$APP.D(m,$APP.U);E=$APP.D(m,$APP.Wk);m=$APP.D(m,$APP.$m);J=(J=
6
- x!=null)?J:G;c.setAttribute("data-size",q);IL(a,"data-disabled",C);IL(a,"data-readonly",p);d.style.display=$APP.n(J)?"flex":"none";e.textContent=$APP.n(x)?x:"";e.style.display=x!=null?"":"none";g.textContent=$APP.n(G)?""+$APP.T.g(h):"";g.style.display=$APP.n(G)?"":"none";a.style.setProperty("--_x-slider-fill",""+$APP.T.g(l.toFixed(2))+"%");HL(b,"min",""+$APP.T.g(v));HL(b,"max",""+$APP.T.g(E));b.setAttribute("step",H);$APP.N(b.value,""+$APP.T.g(h))&&(b.value=""+$APP.T.g(h));HL(b,"aria-valuemin",""+
7
- $APP.T.g(v));HL(b,"aria-valuemax",""+$APP.T.g(E));HL(b,"aria-valuenow",""+$APP.T.g(h));b.setAttribute("aria-readonly",$APP.n(p)?"true":"false");$APP.n(y)?b.setAttribute("aria-label",y):x!=null?b.setAttribute("aria-label",x):b.removeAttribute("aria-label");$APP.n(A)?b.setAttribute("aria-labelledby",A):b.removeAttribute("aria-labelledby");$APP.n(m)?b.setAttribute("aria-describedby",m):b.removeAttribute("aria-describedby");$APP.n(C)?b.setAttribute("disabled",""):b.removeAttribute("disabled");a=$APP.k(a,
8
- "__xSliderInternals");return $APP.n(a)?a.setFormValue(""+$APP.T.g(h)):null}return null},NL=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},OL=function(a,b){b=new CustomEvent("x-slider-change-request",{detail:b,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.r(b.defaultPrevented)},PL=function(a){return function(){if($APP.n(a.hasAttribute("disabled")))return null;var b=$APP.k($APP.k(a,"__xSliderRefs"),"input"),c=b.value,
9
- d=parseFloat(c),e=parseFloat(function(){var l=a.getAttribute("value");return $APP.n(l)?l:"0"}()),g=parseFloat(function(){var l=a.getAttribute("min");return $APP.n(l)?l:"0"}()),h=parseFloat(function(){var l=a.getAttribute("max");return $APP.n(l)?l:"100"}());return OL(a,{value:d,previousValue:e,min:g,max:h})?(a.setAttribute("value",c),NL(a,"x-slider-input",{value:d,min:g,max:h})):b.value=function(){var l=a.getAttribute("value");return $APP.n(l)?l:"0"}()}},QL=function(a){return function(){if($APP.n(a.hasAttribute("disabled")))return null;
10
- var b=parseFloat($APP.k($APP.k(a,"__xSliderRefs"),"input").value),c=parseFloat(function(){var e=a.getAttribute("min");return $APP.n(e)?e:"0"}()),d=parseFloat(function(){var e=a.getAttribute("max");return $APP.n(e)?e:"100"}());return NL(a,"x-slider-change",{value:b,min:c,max:d})}},SL=function(a){return function(b){var c=a.hasAttribute("readonly");c=$APP.n(c)?$APP.I(RL,b.key):c;return $APP.n(c)?b.preventDefault():null}},TL=function(a){var b=$APP.k(a,"__xSliderRefs");if($APP.n(b)){var c=$APP.k(a,"__xSliderHandlers");
11
- if($APP.n(c)){b=$APP.k(b,"input");b.removeEventListener("input",$APP.k(c,"input"));b.removeEventListener("change",$APP.k(c,"change"));b.removeEventListener("keydown",$APP.k(c,"keydown"));a.__xSliderHandlers=null;return}}return null},UL=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return IL(this,c,$APP.F(d))}})},VL=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);
12
- return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.N(d)?HL(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},XL=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return WL}});UL(b,"disabled","disabled");UL(b,"readOnly","readonly");UL(b,"showValue","show-value");VL(b,"value","value");VL(b,"min","min");VL(b,"max","max");VL(b,"step","step");VL(b,"name","name");VL(b,"label","label");VL(b,"size","size");
13
- b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xSliderRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("span"),l=document.createElement("span"),m=document.createElement("input");d.textContent=":host{display:block;color-scheme:light dark;--x-slider-track-color:rgba(0,0,0,0.15);--x-slider-fill-color:var(--x-color-primary,#3b82f6);--x-slider-thumb-color:var(--x-color-surface,#ffffff);--x-slider-thumb-border:2px solid var(--x-color-primary,#3b82f6);--x-slider-thumb-shadow:0 1px 4px rgba(0,0,0,0.20);--x-slider-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-slider-disabled-opacity:0.45;--x-slider-label-color:rgba(0,0,0,0.60);--x-slider-value-color:rgba(0,0,0,0.50);--x-slider-radius:var(--x-radius-full,9999px);}@media (prefers-color-scheme:dark){:host{--x-slider-track-color:rgba(255,255,255,0.15);--x-slider-fill-color:var(--x-color-primary,#3b82f6);--x-slider-thumb-color:var(--x-color-surface,#ffffff);--x-slider-thumb-border:2px solid var(--x-color-primary,#3b82f6);--x-slider-focus-ring:var(--x-color-focus-ring,#93c5fd);--x-slider-label-color:rgba(255,255,255,0.60);--x-slider-value-color:rgba(255,255,255,0.50);}}[part\x3dbase]{width:100%;box-sizing:border-box;}[part\x3dbase][data-size\x3dsm]{--_x-slider-track-h:4px;--_x-slider-thumb-sz:14px;}[part\x3dbase][data-size\x3dmd]{--_x-slider-track-h:6px;--_x-slider-thumb-sz:18px;}[part\x3dbase][data-size\x3dlg]{--_x-slider-track-h:8px;--_x-slider-thumb-sz:22px;}[part\x3dheader]{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px;}[part\x3dlabel-text]{font-size:0.875rem;color:var(--x-slider-label-color);font-weight:500;}[part\x3dvalue-text]{font-size:0.8125rem;color:var(--x-slider-value-color);}[part\x3dinput]{-webkit-appearance:none;appearance:none;display:block;width:100%;height:var(--_x-slider-thumb-sz,18px);cursor:pointer;margin:0;padding:0;background:transparent;outline:none;box-sizing:border-box;}[part\x3dinput]::-webkit-slider-runnable-track{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:linear-gradient(to right,var(--x-slider-fill-color) var(--_x-slider-fill,0%),var(--x-slider-track-color) var(--_x-slider-fill,0%));}[part\x3dinput]::-moz-range-track{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:var(--x-slider-track-color);border:none;}[part\x3dinput]::-moz-range-progress{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:var(--x-slider-fill-color);}[part\x3dinput]::-webkit-slider-thumb{-webkit-appearance:none;width:var(--_x-slider-thumb-sz,18px);height:var(--_x-slider-thumb-sz,18px);border-radius:50%;background:var(--x-slider-thumb-color);border:var(--x-slider-thumb-border);box-shadow:var(--x-slider-thumb-shadow);margin-top:calc(var(--_x-slider-track-h,6px)/2 - var(--_x-slider-thumb-sz,18px)/2);cursor:pointer;transition:box-shadow 100ms ease;}[part\x3dinput]::-moz-range-thumb{width:var(--_x-slider-thumb-sz,18px);height:var(--_x-slider-thumb-sz,18px);border-radius:50%;background:var(--x-slider-thumb-color);border:var(--x-slider-thumb-border);box-shadow:var(--x-slider-thumb-shadow);cursor:pointer;transition:box-shadow 100ms ease;}[part\x3dinput]:focus-visible::-webkit-slider-thumb{box-shadow:var(--x-slider-thumb-shadow),0 0 0 3px var(--x-slider-focus-ring);}[part\x3dinput]:focus-visible::-moz-range-thumb{box-shadow:var(--x-slider-thumb-shadow),0 0 0 3px var(--x-slider-focus-ring);}:host([data-disabled]) [part\x3dinput]{opacity:var(--x-slider-disabled-opacity);cursor:default;pointer-events:none;}:host([data-readonly]) [part\x3dinput]{pointer-events:none;}@media (prefers-reduced-motion:reduce){[part\x3dinput]::-webkit-slider-thumb{transition:none;}[part\x3dinput]::-moz-range-thumb{transition:none;}}@media (pointer:coarse){[part\x3dbase]{--_x-slider-thumb-sz:28px;}}";
14
- e.setAttribute("part","base");g.setAttribute("part","header");h.setAttribute("part","label-text");l.setAttribute("part","value-text");m.setAttribute("part","input");m.setAttribute("type","range");g.appendChild(h);g.appendChild(l);e.appendChild(g);e.appendChild(m);c.appendChild(d);c.appendChild(e);this.__xSliderRefs={base:e,header:g,label:h,value:l,input:m};$APP.n(this.attachInternals)&&(this.__xSliderInternals=this.attachInternals())}TL(this);c=$APP.k(this,"__xSliderRefs");$APP.n(c)&&(c=$APP.k(c,
15
- "input"),d=PL(this),e=QL(this),g=SL(this),h={input:d,change:e,keydown:g},c.addEventListener("input",d),c.addEventListener("change",e),c.addEventListener("keydown",g),this.__xSliderHandlers=h);return ML(this)};b.disconnectedCallback=function(){return TL(this)};b.attributeChangedCallback=function(){return ML(this)};b.formDisabledCallback=function(c){IL(this,"disabled",$APP.F(c));return ML(this)};b.formResetCallback=function(){HL(this,"value",""+$APP.T.g(0));return ML(this)};return a},YL=function(){return $APP.n(customElements.get("x-slider"))?
16
- null:customElements.define("x-slider",XL())},KL=new $APP.K(null,"show-value?","show-value?",-1960833108),LL=new $APP.K(null,"fill-percent","fill-percent",-1813848228);var JL=new $APP.S(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),WL="value min max step disabled readonly name label show-value size aria-label aria-labelledby aria-describedby".split(" ");
17
- $APP.zf([$APP.jk,$APP.Pj,$APP.Oh,$APP.Aj,$APP.Yi,$APP.Mh,$APP.nm,$APP.Wk,$APP.U,$APP.Hm],[new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Ik,"min"],null),new $APP.Q(null,2,[$APP.Z,$APP.Zj,$APP.Ik,"disabled"],null),new $APP.Q(null,2,[$APP.Z,$APP.Zj,$APP.Ik,"show-value"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Ik,"name"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Ik,"value"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Ik,"size"],null),new $APP.Q(null,2,[$APP.Z,$APP.Zj,$APP.Ik,"readonly"],null),new $APP.Q(null,
18
- 2,[$APP.Z,$APP.Y,$APP.Ik,"max"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Ik,"label"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Ik,"step"],null)]);
19
- $APP.Pd(["x-slider-change-request",new $APP.Q(null,2,[$APP.lm,!0,$APP.V,new $APP.Q(null,4,[$APP.Yi,$APP.W,$APP.Tk,$APP.W,$APP.jk,$APP.W,$APP.Wk,$APP.W],null)],null),"x-slider-input",new $APP.Q(null,1,[$APP.V,new $APP.Q(null,3,[$APP.Yi,$APP.W,$APP.jk,$APP.W,$APP.Wk,$APP.W],null)],null),"x-slider-change",new $APP.Q(null,1,[$APP.V,new $APP.Q(null,3,[$APP.Yi,$APP.W,$APP.jk,$APP.W,$APP.Wk,$APP.W],null)],null)]);var RL=new $APP.S(null,new $APP.Q(null,8,["PageDown",null,"ArrowUp",null,"ArrowDown",null,"End",null,"ArrowRight",null,"ArrowLeft",null,"PageUp",null,"Home",null],null),null);$APP.ha("baredom.exports.x_slider.init",YL);export const init=YL;
2
+ var jP=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},nP=function(a){var b=$APP.k(a,"__xSliderRefs");if($APP.n(b)){var c=$APP.k(b,"base"),d=$APP.k(b,"header"),e=$APP.k(b,"label"),f=$APP.k(b,"value");b=$APP.k(b,"input");var h=$APP.Lf([$APP.ql,$APP.al,$APP.ul,$APP.Nk,$APP.Gh,$APP.hh,$APP.ll,$APP.bj,$APP.em,$APP.X,$APP.mo,$APP.gn,$APP.Tn],[a.getAttribute("min"),a.hasAttribute("disabled"),a.hasAttribute("show-value"),a.getAttribute("name"),a.getAttribute("value"),a.hasAttribute("readonly"),
3
+ a.getAttribute("aria-labelledby"),a.getAttribute("size"),a.getAttribute("max"),a.getAttribute("label"),a.getAttribute("aria-describedby"),a.getAttribute("aria-label"),a.getAttribute("step")]);var l=$APP.J(h);h=$APP.C(l,$APP.gn);var m=$APP.C(l,$APP.Tn),q=$APP.C(l,$APP.ql),r=$APP.C(l,$APP.al),v=$APP.C(l,$APP.ul),x=$APP.C(l,$APP.Gh),y=$APP.C(l,$APP.Nk),A=$APP.C(l,$APP.hh),D=$APP.C(l,$APP.ll),G=$APP.C(l,$APP.bj),I=$APP.C(l,$APP.X),H=$APP.C(l,$APP.em);l=$APP.C(l,$APP.mo);q=jP(q,0);H=jP(H,100);x=$APP.Ii.i($APP.Hi.i(jP(x,
4
+ 0),q),H);$APP.B.i(m,"any")?m="any":(m=typeof m==="string"?parseFloat(m):NaN,m=$APP.p(isNaN(m))&&m>0?""+$APP.Q.g(m):"1");G=typeof G==="string"&&$APP.Zc(kP,G)?G:"md";r=$APP.E(r);A=$APP.E(A);v=$APP.E(v);var K=H>q?$APP.Ii.i($APP.Hi.i((x-q)/(H-q)*100,0),100):0;h=$APP.Lf([$APP.ql,$APP.ro,$APP.Nk,$APP.Gh,$APP.ll,lP,$APP.bj,$APP.em,$APP.X,$APP.mo,$APP.gn,$APP.Y,$APP.Tn,mP],[q,A,typeof y==="string"&&$APP.M("",y)?y:null,x,typeof D==="string"&&$APP.M("",D)?D:null,v,G,H,typeof I==="string"&&$APP.M("",I)?I:null,
5
+ typeof l==="string"&&$APP.M("",l)?l:null,typeof h==="string"&&$APP.M("",h)?h:null,r,m,K]);m=$APP.J(h);y=$APP.C(m,$APP.gn);D=$APP.C(m,$APP.Y);I=$APP.C(m,$APP.Tn);l=$APP.C(m,mP);v=$APP.C(m,$APP.ql);q=$APP.C(m,$APP.ro);h=$APP.C(m,$APP.Gh);A=$APP.C(m,$APP.ll);H=$APP.C(m,lP);r=$APP.C(m,$APP.bj);x=$APP.C(m,$APP.X);G=$APP.C(m,$APP.em);m=$APP.C(m,$APP.mo);K=(K=x!=null)?K:H;c.setAttribute("data-size",r);$APP.bh(a,"data-disabled",D);$APP.bh(a,"data-readonly",q);d.style.display=$APP.n(K)?"flex":"none";e.textContent=
6
+ $APP.n(x)?x:"";e.style.display=x!=null?"":"none";f.textContent=$APP.n(H)?""+$APP.Q.g(h):"";f.style.display=$APP.n(H)?"":"none";a.style.setProperty("--_x-slider-fill",""+$APP.Q.g(l.toFixed(2))+"%");$APP.ah(b,"min",""+$APP.Q.g(v));$APP.ah(b,"max",""+$APP.Q.g(G));b.setAttribute("step",I);$APP.M(b.value,""+$APP.Q.g(h))&&(b.value=""+$APP.Q.g(h));$APP.ah(b,"aria-valuemin",""+$APP.Q.g(v));$APP.ah(b,"aria-valuemax",""+$APP.Q.g(G));$APP.ah(b,"aria-valuenow",""+$APP.Q.g(h));b.setAttribute("aria-readonly",$APP.n(q)?
7
+ "true":"false");$APP.n(y)?b.setAttribute("aria-label",y):x!=null?b.setAttribute("aria-label",x):b.removeAttribute("aria-label");$APP.n(A)?b.setAttribute("aria-labelledby",A):b.removeAttribute("aria-labelledby");$APP.n(m)?b.setAttribute("aria-describedby",m):b.removeAttribute("aria-describedby");$APP.n(D)?b.setAttribute("disabled",""):b.removeAttribute("disabled");a=$APP.k(a,"__xSliderInternals");return $APP.n(a)?a.setFormValue(""+$APP.Q.g(h)):null}return null},oP=function(a){return function(){if($APP.n(a.hasAttribute("disabled")))return null;
8
+ var b=$APP.k($APP.k(a,"__xSliderRefs"),"input"),c=b.value,d=parseFloat(c),e=parseFloat(function(){var l=a.getAttribute("value");return $APP.n(l)?l:"0"}()),f=parseFloat(function(){var l=a.getAttribute("min");return $APP.n(l)?l:"0"}()),h=parseFloat(function(){var l=a.getAttribute("max");return $APP.n(l)?l:"100"}());return $APP.ch(a,"x-slider-change-request",{value:d,previousValue:e,min:f,max:h})?(a.setAttribute("value",c),$APP.P(a,"x-slider-input",{value:d,min:f,max:h})):b.value=function(){var l=a.getAttribute("value");
9
+ return $APP.n(l)?l:"0"}()}},pP=function(a){return function(){if($APP.n(a.hasAttribute("disabled")))return null;var b=parseFloat($APP.k($APP.k(a,"__xSliderRefs"),"input").value),c=parseFloat(function(){var e=a.getAttribute("min");return $APP.n(e)?e:"0"}()),d=parseFloat(function(){var e=a.getAttribute("max");return $APP.n(e)?e:"100"}());return $APP.P(a,"x-slider-change",{value:b,min:c,max:d})}},rP=function(a){return function(b){var c=a.hasAttribute("readonly");c=$APP.n(c)?$APP.Zc(qP,b.key):c;return $APP.n(c)?
10
+ b.preventDefault():null}},sP=function(a){var b=$APP.k(a,"__xSliderRefs");if($APP.n(b)){var c=$APP.k(a,"__xSliderHandlers");if($APP.n(c)){b=$APP.k(b,"input");b.removeEventListener("input",$APP.k(c,"input"));b.removeEventListener("change",$APP.k(c,"change"));b.removeEventListener("keydown",$APP.k(c,"keydown"));a.__xSliderHandlers=null;return}}return null},tP=function(a,b){$APP.bh(a,"disabled",$APP.E(b));return nP(a)},uP=function(a){$APP.ah(a,"value",""+$APP.Q.g(0));return nP(a)},vP=function(a){if(!$APP.n($APP.k(a,
11
+ "__xSliderRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("span"),h=document.createElement("span"),l=document.createElement("input");c.textContent=":host{display:block;color-scheme:light dark;--x-slider-track-color:rgba(0,0,0,0.15);--x-slider-fill-color:var(--x-color-primary,#3b82f6);--x-slider-thumb-color:var(--x-color-surface,#ffffff);--x-slider-thumb-border:2px solid var(--x-color-primary,#3b82f6);--x-slider-thumb-shadow:0 1px 4px rgba(0,0,0,0.20);--x-slider-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-slider-disabled-opacity:0.45;--x-slider-label-color:rgba(0,0,0,0.60);--x-slider-value-color:rgba(0,0,0,0.50);--x-slider-radius:var(--x-radius-full,9999px);}@media (prefers-color-scheme:dark){:host{--x-slider-track-color:rgba(255,255,255,0.15);--x-slider-fill-color:var(--x-color-primary,#3b82f6);--x-slider-thumb-color:var(--x-color-surface,#ffffff);--x-slider-thumb-border:2px solid var(--x-color-primary,#3b82f6);--x-slider-focus-ring:var(--x-color-focus-ring,#93c5fd);--x-slider-label-color:rgba(255,255,255,0.60);--x-slider-value-color:rgba(255,255,255,0.50);}}[part\x3dbase]{width:100%;box-sizing:border-box;}[part\x3dbase][data-size\x3dsm]{--_x-slider-track-h:4px;--_x-slider-thumb-sz:14px;}[part\x3dbase][data-size\x3dmd]{--_x-slider-track-h:6px;--_x-slider-thumb-sz:18px;}[part\x3dbase][data-size\x3dlg]{--_x-slider-track-h:8px;--_x-slider-thumb-sz:22px;}[part\x3dheader]{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px;}[part\x3dlabel-text]{font-size:0.875rem;color:var(--x-slider-label-color);font-weight:500;}[part\x3dvalue-text]{font-size:0.8125rem;color:var(--x-slider-value-color);}[part\x3dinput]{-webkit-appearance:none;appearance:none;display:block;width:100%;height:var(--_x-slider-thumb-sz,18px);cursor:pointer;margin:0;padding:0;background:transparent;outline:none;box-sizing:border-box;}[part\x3dinput]::-webkit-slider-runnable-track{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:linear-gradient(to right,var(--x-slider-fill-color) var(--_x-slider-fill,0%),var(--x-slider-track-color) var(--_x-slider-fill,0%));}[part\x3dinput]::-moz-range-track{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:var(--x-slider-track-color);border:none;}[part\x3dinput]::-moz-range-progress{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:var(--x-slider-fill-color);}[part\x3dinput]::-webkit-slider-thumb{-webkit-appearance:none;width:var(--_x-slider-thumb-sz,18px);height:var(--_x-slider-thumb-sz,18px);border-radius:50%;background:var(--x-slider-thumb-color);border:var(--x-slider-thumb-border);box-shadow:var(--x-slider-thumb-shadow);margin-top:calc(var(--_x-slider-track-h,6px)/2 - var(--_x-slider-thumb-sz,18px)/2);cursor:pointer;transition:box-shadow 100ms ease;}[part\x3dinput]::-moz-range-thumb{width:var(--_x-slider-thumb-sz,18px);height:var(--_x-slider-thumb-sz,18px);border-radius:50%;background:var(--x-slider-thumb-color);border:var(--x-slider-thumb-border);box-shadow:var(--x-slider-thumb-shadow);cursor:pointer;transition:box-shadow 100ms ease;}[part\x3dinput]:focus-visible::-webkit-slider-thumb{box-shadow:var(--x-slider-thumb-shadow),0 0 0 3px var(--x-slider-focus-ring);}[part\x3dinput]:focus-visible::-moz-range-thumb{box-shadow:var(--x-slider-thumb-shadow),0 0 0 3px var(--x-slider-focus-ring);}:host([data-disabled]) [part\x3dinput]{opacity:var(--x-slider-disabled-opacity);cursor:default;pointer-events:none;}:host([data-readonly]) [part\x3dinput]{pointer-events:none;}@media (prefers-reduced-motion:reduce){[part\x3dinput]::-webkit-slider-thumb{transition:none;}[part\x3dinput]::-moz-range-thumb{transition:none;}}@media (pointer:coarse){[part\x3dbase]{--_x-slider-thumb-sz:28px;}}";
12
+ d.setAttribute("part","base");e.setAttribute("part","header");f.setAttribute("part","label-text");h.setAttribute("part","value-text");l.setAttribute("part","input");l.setAttribute("type","range");e.appendChild(f);e.appendChild(h);d.appendChild(e);d.appendChild(l);b.appendChild(c);b.appendChild(d);a.__xSliderRefs={base:d,header:e,label:f,value:h,input:l};$APP.n(a.attachInternals)&&(b=a.attachInternals(),a.__xSliderInternals=b)}sP(a);b=$APP.k(a,"__xSliderRefs");$APP.n(b)&&(b=$APP.k(b,"input"),c=oP(a),
13
+ d=pP(a),e=rP(a),f={input:c,change:d,keydown:e},b.addEventListener("input",c),b.addEventListener("change",d),b.addEventListener("keydown",e),a.__xSliderHandlers=f);return nP(a)},wP=function(a){return sP(a)},xP=function(a){return nP(a)},zP=function(a){return $APP.jh(a,yP)},BP=function(){return $APP.Yg("x-slider",new $APP.N(null,8,[$APP.Pg,AP,$APP.Qg,vP,$APP.Rg,wP,$APP.Sg,xP,$APP.Tg,!0,$APP.Ug,tP,$APP.Vg,uP,$APP.Wg,zP],null))},lP=new $APP.F(null,"show-value?","show-value?",-1960833108),mP=new $APP.F(null,
14
+ "fill-percent","fill-percent",-1813848228);var kP=new $APP.O(null,new $APP.N(null,3,["md",null,"lg",null,"sm",null],null),null),AP="value min max step disabled readonly name label show-value size aria-label aria-labelledby aria-describedby".split(" "),yP=$APP.Lf([$APP.ql,$APP.al,$APP.dj,$APP.Nk,$APP.Gh,$APP.bj,$APP.Hn,$APP.em,$APP.X,$APP.Tn],[new $APP.N(null,2,[$APP.R,$APP.U,$APP.S,"min"],null),new $APP.N(null,2,[$APP.R,$APP.T,$APP.S,"disabled"],null),new $APP.N(null,2,[$APP.R,$APP.T,$APP.S,"show-value"],null),new $APP.N(null,2,[$APP.R,$APP.U,
15
+ $APP.S,"name"],null),new $APP.N(null,2,[$APP.R,$APP.U,$APP.S,"value"],null),new $APP.N(null,2,[$APP.R,$APP.U,$APP.S,"size"],null),new $APP.N(null,2,[$APP.R,$APP.T,$APP.S,"readonly"],null),new $APP.N(null,2,[$APP.R,$APP.U,$APP.S,"max"],null),new $APP.N(null,2,[$APP.R,$APP.U,$APP.S,"label"],null),new $APP.N(null,2,[$APP.R,$APP.U,$APP.S,"step"],null)]);
16
+ $APP.Yd(["x-slider-change-request",new $APP.N(null,2,[$APP.Fn,!0,$APP.Z,new $APP.N(null,4,[$APP.Gh,$APP.V,$APP.am,$APP.V,$APP.ql,$APP.V,$APP.em,$APP.V],null)],null),"x-slider-input",new $APP.N(null,1,[$APP.Z,new $APP.N(null,3,[$APP.Gh,$APP.V,$APP.ql,$APP.V,$APP.em,$APP.V],null)],null),"x-slider-change",new $APP.N(null,1,[$APP.Z,new $APP.N(null,3,[$APP.Gh,$APP.V,$APP.ql,$APP.V,$APP.em,$APP.V],null)],null)]);var qP=new $APP.O(null,new $APP.N(null,8,["PageDown",null,"ArrowUp",null,"ArrowDown",null,"End",null,"ArrowRight",null,"ArrowLeft",null,"PageUp",null,"Home",null],null),null);$APP.ca("baredom.exports.x_slider.init",BP);export const init=BP;
@@ -1,23 +1,23 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var NK=function(a,b,c,d){if(typeof a==="string"){a=a.trim();if($APP.B.i(a,""))return b;a=parseFloat(a);return $APP.n(isNaN(a))?b:Math.min(d,Math.max(c,a))}return b},OK=function(a,b,c,d,e,g){b=c+(e*(b-a)-g*c)*d;return[a+b*d,b]},PK=function(a,b,c,d,e,g,h){a=c-a;b=d-b;d=Math.sqrt(a*a+b*b);if(d<=.001||d>=e)return[0,0];e=1-d/e;g*=e*e*($APP.n(h)?50:20);return[a/d*g,b/d*g]},QK=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},RK=function(a,b){for(var c=0;;){if(c>=20)return!0;
3
- if(Math.abs(a[c])>.1||Math.abs(b[c])>.1)return!1;c+=1}},TK=function(a){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElementNS("http://www.w3.org/2000/svg","svg"),e=document.createElementNS("http://www.w3.org/2000/svg","path"),g=document.createElement("div"),h=document.createElement("slot");c.textContent=SK;d.setAttribute("part","svg");d.setAttribute("viewBox","0 0 300 200");d.setAttribute("preserveAspectRatio","none");d.setAttribute("aria-hidden","true");
4
- e.setAttribute("part","shape");g.setAttribute("part","content");d.appendChild(e);g.appendChild(h);b.appendChild(c);b.appendChild(d);b.appendChild(g);a.__xSoftBodyRefs=new $APP.Q(null,4,[$APP.Hi,b,$APP.mk,d,$APP.Zk,e,$APP.zi,g],null)},WK=function(a){a=new $APP.Q(null,6,[$APP.km,a.getAttribute("stiffness"),$APP.Ym,a.getAttribute("damping"),$APP.Ij,a.getAttribute("radius"),$APP.Gk,a.getAttribute("intensity"),UK,a.getAttribute("grab-radius"),$APP.ej,a.getAttribute("disabled")],null);var b=$APP.M(a);a=
5
- $APP.D(b,$APP.km);var c=$APP.D(b,$APP.Ym),d=$APP.D(b,$APP.Ij),e=$APP.D(b,$APP.Gk),g=$APP.D(b,UK);b=$APP.D(b,$APP.ej);return new $APP.Q(null,6,[$APP.Tl,NK(a,180,10,1E3),$APP.Pk,NK(c,12,1,100),$APP.Tm,NK(d,16,6,200),$APP.xk,NK(e,1,0,5),VK,NK(g,80,10,500),$APP.X,b!=null],null)},XK=function(a,b,c){var d=$APP.Tm.g($APP.k(a,"__xSoftBodyModel"));d=Math.max(6,Math.min(d,Math.min(b,c)/2));var e=Math.cos(Math.PI/6),g=Math.sin(Math.PI/6),h=Math.cos(Math.PI/3),l=Math.sin(Math.PI/3),m=new Float64Array(20),p=new Float64Array(20);
6
- m[0]=d;p[0]=0;m[1]=b*.5;p[1]=0;m[2]=b-d;p[2]=0;m[3]=b-d+d*g;p[3]=d-d*e;m[4]=b-d+d*l;p[4]=d-d*h;m[5]=b;p[5]=d;m[6]=b;p[6]=c*.5;m[7]=b;p[7]=c-d;m[8]=b-d+d*e;p[8]=c-d+d*g;m[9]=b-d+d*h;p[9]=c-d+d*l;m[10]=b-d;p[10]=c;m[11]=b*.5;p[11]=c;m[12]=d;p[12]=c;m[13]=d-d*g;p[13]=c-d+d*e;m[14]=d-d*l;p[14]=c-d+d*h;m[15]=0;p[15]=c-d;m[16]=0;p[16]=c*.5;m[17]=0;p[17]=d;m[18]=d-d*e;p[18]=d-d*g;m[19]=d-d*h;p[19]=d-d*l;c=[m,p];b=c[0];c=c[1];d=new Float64Array(20);e=new Float64Array(20);g=new Float64Array(20);h=new Float64Array(20);
7
- for(l=0;;)if(l<20)d[l]=b[l],e[l]=c[l],g[l]=0,h[l]=0,l+=1;else break;a.__xSoftBodyRX=b;a.__xSoftBodyRY=c;a.__xSoftBodyCX=d;a.__xSoftBodyCY=e;a.__xSoftBodyVX=g;a.__xSoftBodyVY=h},YK=function(a){var b=$APP.M($APP.k(a,"__xSoftBodyRefs"));b=$APP.D(b,$APP.Zk);var c=$APP.k(a,"__xSoftBodyCX");a=$APP.k(a,"__xSoftBodyCY");var d=[];d.push("M"+$APP.T.g(c[0].toFixed(2))+","+$APP.T.g(a[0].toFixed(2)));for(var e=0;;)if(e<20){var g=$APP.fd(e+19,20),h=e,l=$APP.fd(e+1,20),m=$APP.fd(e+2,20),p=(c[l]-c[g])/6,q=(a[l]-
8
- a[g])/6;g=(c[m]-c[h])/6;m=(a[m]-a[h])/6;var v=c[l]-c[h],x=a[l]-a[h];x=Math.sqrt(v*v+x*x)*.4;v=Math.sqrt(p*p+q*q);v=v>x?x/(v+.001):1;q=a[h]+q*v;var y=Math.sqrt(g*g+m*m);x=y>x?x/(y+.001):1;g=c[l]-g*x;m=a[l]-m*x;d.push("C"+$APP.T.g((c[h]+p*v).toFixed(2))+","+$APP.T.g(q.toFixed(2))+" "+$APP.T.g(g.toFixed(2))+","+$APP.T.g(m.toFixed(2))+" "+$APP.T.g(c[l].toFixed(2))+","+$APP.T.g(a[l].toFixed(2)));e+=1}else break;d.push("Z");b.setAttribute("d",d.join(""))},ZK=function(a){var b=$APP.M($APP.k(a,"__xSoftBodyRefs"));
9
- b=$APP.D(b,$APP.Zk);var c=$APP.k(a,"__xSoftBodyW"),d=$APP.k(a,"__xSoftBodyH");a=$APP.Tm.g($APP.k(a,"__xSoftBodyModel"));a=Math.max(6,Math.min(a,Math.min(c,d)/2));var e=.5522847498*a;c="M"+$APP.T.g(a.toFixed(2))+",0L"+$APP.T.g((c-a).toFixed(2))+",0C"+$APP.T.g((c-a+e).toFixed(2))+",0 "+$APP.T.g(c.toFixed(2))+","+$APP.T.g((a-e).toFixed(2))+" "+$APP.T.g(c.toFixed(2))+","+$APP.T.g(a.toFixed(2))+"L"+$APP.T.g(c.toFixed(2))+","+$APP.T.g((d-a).toFixed(2))+"C"+$APP.T.g(c.toFixed(2))+","+$APP.T.g((d-a+e).toFixed(2))+
10
- " "+$APP.T.g((c-a+e).toFixed(2))+","+$APP.T.g(d.toFixed(2))+" "+$APP.T.g((c-a).toFixed(2))+","+$APP.T.g(d.toFixed(2))+"L"+$APP.T.g(a.toFixed(2))+","+$APP.T.g(d.toFixed(2))+"C"+$APP.T.g((a-e).toFixed(2))+","+$APP.T.g(d.toFixed(2))+" 0,"+$APP.T.g((d-a+e).toFixed(2))+" 0,"+$APP.T.g((d-a).toFixed(2))+"L0,"+$APP.T.g(a.toFixed(2))+"C0,"+$APP.T.g((a-e).toFixed(2))+" "+$APP.T.g((a-e).toFixed(2))+",0 "+$APP.T.g(a.toFixed(2))+",0Z";b.setAttribute("d",c)},aL=function(a){$APP.n($APP.k(a,"__xSoftBodyRaf"))||($APP.ja(a,
11
- "__xSoftBodyLF",performance.now()),$APP.ja(a,"__xSoftBodyRaf",requestAnimationFrame(function(){return $K(a)})))},eL=function(a){var b=$APP.k(a,"__xSoftBodyRaf");$APP.n(b)&&(cancelAnimationFrame(b),a.__xSoftBodyRaf=null)},fL=function(a,b){var c=$APP.M($APP.k(a,"__xSoftBodyRefs"));c=$APP.D(c,$APP.mk).getBoundingClientRect();a.__xSoftBodyPX=b.clientX-c.left;a.__xSoftBodyPY=b.clientY-c.top;return null},gL=function(a){function b(){a.__xSoftBodyGrab=!1;a.dispatchEvent(new CustomEvent("x-soft-body-release",
12
- {bubbles:!0,composed:!0,detail:{}}));return null}function c(h){a.__xSoftBodyGrab=!0;fL(a,h);a.dispatchEvent(new CustomEvent("x-soft-body-grab",{bubbles:!0,composed:!0,detail:{}}));return null}function d(){a.__xSoftBodyPA=!1;a.__xSoftBodyGrab=!1;return null}function e(){a.__xSoftBodyPA=!0;var h=$APP.X.g($APP.k(a,"__xSoftBodyModel"));h=$APP.n(h)?h:QK();$APP.n(h)||aL(a);return null}function g(h){return fL(a,h)}$APP.ja(a,"__xSoftBodyHdl",{move:g,enter:e,leave:d,down:c,up:b});a.addEventListener("pointermove",
13
- g,{passive:!0});a.addEventListener("pointerenter",e);a.addEventListener("pointerleave",d);a.addEventListener("pointerdown",c);a.addEventListener("pointerup",b)},BL=function(a){var b=$APP.k(a,"__xSoftBodyHdl");$APP.n(b)&&(a.removeEventListener("pointermove",$APP.k(b,"move")),a.removeEventListener("pointerenter",$APP.k(b,"enter")),a.removeEventListener("pointerleave",$APP.k(b,"leave")),a.removeEventListener("pointerdown",$APP.k(b,"down")),a.removeEventListener("pointerup",$APP.k(b,"up")),a.__xSoftBodyHdl=
14
- null)},CL=function(a){Object.defineProperty(a,"stiffness",{get:function(){var b=this.getAttribute("stiffness");return NK(b,180,10,1E3)},set:function(b){return b==null?this.removeAttribute("stiffness"):this.setAttribute("stiffness",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"damping",{get:function(){var b=this.getAttribute("damping");return NK(b,12,1,100)},set:function(b){return b==null?this.removeAttribute("damping"):this.setAttribute("damping",""+$APP.T.g(b))},enumerable:!0,
15
- configurable:!0});Object.defineProperty(a,"radius",{get:function(){var b=this.getAttribute("radius");return NK(b,16,6,200)},set:function(b){return b==null?this.removeAttribute("radius"):this.setAttribute("radius",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"intensity",{get:function(){var b=this.getAttribute("intensity");return NK(b,1,0,5)},set:function(b){return b==null?this.removeAttribute("intensity"):this.setAttribute("intensity",""+$APP.T.g(b))},enumerable:!0,configurable:!0});
16
- Object.defineProperty(a,"grabRadius",{get:function(){var b=this.getAttribute("grab-radius");return NK(b,80,10,500)},set:function(b){return b==null?this.removeAttribute("grab-radius"):this.setAttribute("grab-radius",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},EL=function(){var a=
17
- class extends HTMLElement{};a.observedAttributes=DL;a.prototype.connectedCallback=function(){var b=this,c=WK(b);b.__xSoftBodyModel=c;$APP.n($APP.k(b,"__xSoftBodyRefs"))||TK(b);b.__xSoftBodyPA=!1;b.__xSoftBodyGrab=!1;b.__xSoftBodyPX=0;b.__xSoftBodyPY=0;c=new ResizeObserver(function(d){if(d.length>0){var e=d[0].contentRect;d=e.width;e=e.height;if(d>0&&e>0){b.__xSoftBodyW=d;b.__xSoftBodyH=e;var g=$APP.M($APP.k(b,"__xSoftBodyRefs"));$APP.D(g,$APP.mk).setAttribute("viewBox","0 0 "+$APP.T.g(d)+" "+$APP.T.g(e));
18
- XK(b,d,e);d=$APP.X.g($APP.k(b,"__xSoftBodyModel"));d=$APP.n(d)?d:QK();$APP.n(d)?ZK(b):(YK(b),aL(b))}}return null});b.__xSoftBodyRO=c;c.observe(b);BL(b);gL(b);return null};a.prototype.disconnectedCallback=function(){eL(this);BL(this);var b=$APP.k(this,"__xSoftBodyRO");$APP.n(b)&&(b.disconnect(),this.__xSoftBodyRO=null);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xSoftBodyRefs"))&&(this.__xSoftBodyModel=b=WK(this),c=$APP.k(this,"__xSoftBodyW"),
19
- d=$APP.k(this,"__xSoftBodyH"),$APP.n($APP.n(c)?$APP.n(d)?c>0&&d>0:d:c)&&(XK(this,c,d),b=$APP.X.g(b),b=$APP.n(b)?b:QK(),$APP.n(b)?(eL(this),ZK(this)):(YK(this),aL(this))));return null};CL(a.prototype);return a},FL=function(){$APP.n(customElements.get("x-soft-body"))||customElements.define("x-soft-body",EL());return null},VK=new $APP.K(null,"grab-radius","grab-radius",771838535),UK=new $APP.K(null,"grab-radius-raw","grab-radius-raw",-1019405976);var DL="stiffness damping radius intensity grab-radius disabled".split(" ");$APP.Pd(["x-soft-body-grab",new $APP.Q(null,2,[$APP.V,$APP.Qd,$APP.lm,!1],null),"x-soft-body-release",new $APP.Q(null,2,[$APP.V,$APP.Qd,$APP.lm,!1],null)]);var SK=":host{display:block;position:relative;background:none;overflow:visible;"+$APP.T.g("--x-soft-body-bg")+":var(--x-color-surface,#ffffff);"+$APP.T.g("--x-soft-body-border")+":var(--x-color-border,#e2e8f0);"+$APP.T.g("--x-soft-body-border-width")+":1.5;"+$APP.T.g("--x-soft-body-shadow")+":var(--x-shadow-sm,0 1px 3px rgba(0,0,0,0.1));"+$APP.T.g("--x-soft-body-padding")+":1rem;}[part\x3dsvg]{display:block;width:100%;height:100%;position:absolute;inset:0;overflow:visible;pointer-events:none;}[part\x3dshape]{fill:var("+
20
- $APP.T.g("--x-soft-body-bg")+",#ffffff);stroke:var("+$APP.T.g("--x-soft-body-border")+",#e2e8f0);stroke-width:var("+$APP.T.g("--x-soft-body-border-width")+",1.5);filter:drop-shadow(var("+$APP.T.g("--x-soft-body-shadow")+",0 1px 3px rgba(0,0,0,0.1)));}[part\x3dcontent]{position:relative;background:none;padding:var("+$APP.T.g("--x-soft-body-padding")+",1rem);z-index:1;}@media(prefers-color-scheme:dark){:host{"+$APP.T.g("--x-soft-body-bg")+":var(--x-color-surface,#1e293b);"+$APP.T.g("--x-soft-body-border")+
21
- ":var(--x-color-border,#475569);"+$APP.T.g("--x-soft-body-shadow")+":var(--x-shadow-sm,0 1px 3px rgba(0,0,0,0.3));}}@media(prefers-reduced-motion:reduce){[part\x3dshape]{transition:none!important;}}",$K=function $K(a){if($APP.n(a.isConnected)){var c=$APP.k(a,"__xSoftBodyModel"),d=performance.now(),e=Math.min(d-$APP.k(a,"__xSoftBodyLF"),100)/1E3,g=$APP.Tl.g(c),h=$APP.Pk.g(c),l=$APP.xk.g(c),m=VK.g(c);c=$APP.k(a,"__xSoftBodyRX");var p=$APP.k(a,"__xSoftBodyRY"),q=$APP.k(a,"__xSoftBodyCX"),v=$APP.k(a,
22
- "__xSoftBodyCY"),x=$APP.k(a,"__xSoftBodyVX"),y=$APP.k(a,"__xSoftBodyVY"),A=$APP.k(a,"__xSoftBodyPA"),C=$APP.k(a,"__xSoftBodyPX"),E=$APP.k(a,"__xSoftBodyPY"),H=$APP.k(a,"__xSoftBodyGrab");a.__xSoftBodyLF=d;for(d=0;;)if(d<20){var G=c[d],J=p[d],R=$APP.n(A)?PK(G,J,C,E,m,l,H):[0,0];G=OK(q[d],G+R[0],x[d],e,g,h);J=OK(v[d],J+R[1],y[d],e,g,h);q[d]=G[0];x[d]=G[1];v[d]=J[0];y[d]=J[1];d+=1}else break;YK(a);if($APP.n($APP.n(A)?A:!RK(x,y)))$APP.ja(a,"__xSoftBodyRaf",requestAnimationFrame(function(){return $K.g?
23
- $K.g(a):$K.call(null,a)}));else{for(e=0;;)if(e<20)q[e]=c[e],v[e]=p[e],e+=1;else break;YK(a);a.__xSoftBodyRaf=null}}return null};$APP.ha("baredom.exports.x_soft_body.init",FL);export const init=FL;
2
+ var LO=function(a,b,c,d){if(typeof a==="string"){a=a.trim();if($APP.B.i(a,""))return b;a=parseFloat(a);return $APP.n(isNaN(a))?b:Math.min(d,Math.max(c,a))}return b},MO=function(a,b,c,d,e,f){b=c+(e*(b-a)-f*c)*d;return[a+b*d,b]},NO=function(a,b,c,d,e,f,h){a=c-a;b=d-b;d=Math.sqrt(a*a+b*b);if(d<=.001||d>=e)return[0,0];e=1-d/e;f*=e*e*($APP.n(h)?50:20);return[a/d*f,b/d*f]},OO=function(){return $APP.E(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},PO=function(a,b){for(var c=0;;){if(c>=20)return!0;
3
+ if(Math.abs(a[c])>.1||Math.abs(b[c])>.1)return!1;c+=1}},RO=function(a){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElementNS("http://www.w3.org/2000/svg","svg"),e=document.createElementNS("http://www.w3.org/2000/svg","path"),f=document.createElement("div"),h=document.createElement("slot");c.textContent=QO;d.setAttribute("part","svg");d.setAttribute("viewBox","0 0 300 200");d.setAttribute("preserveAspectRatio","none");d.setAttribute("aria-hidden","true");
4
+ e.setAttribute("part","shape");f.setAttribute("part","content");d.appendChild(e);f.appendChild(h);b.appendChild(c);b.appendChild(d);b.appendChild(f);a.__xSoftBodyRefs=new $APP.N(null,4,[$APP.Uh,b,$APP.tl,d,$APP.hm,e,$APP.Ij,f],null)},UO=function(a){a=new $APP.N(null,6,[$APP.En,a.getAttribute("stiffness"),$APP.ko,a.getAttribute("damping"),$APP.Uk,a.getAttribute("radius"),$APP.Ol,a.getAttribute("intensity"),SO,a.getAttribute("grab-radius"),$APP.mk,a.getAttribute("disabled")],null);var b=$APP.J(a);a=
5
+ $APP.C(b,$APP.En);var c=$APP.C(b,$APP.ko),d=$APP.C(b,$APP.Uk),e=$APP.C(b,$APP.Ol),f=$APP.C(b,SO);b=$APP.C(b,$APP.mk);return new $APP.N(null,6,[$APP.kn,LO(a,180,10,1E3),$APP.Wl,LO(c,12,1,100),$APP.fo,LO(d,16,6,200),$APP.Fl,LO(e,1,0,5),TO,LO(f,80,10,500),$APP.Y,b!=null],null)},VO=function(a,b,c){var d=$APP.fo.g($APP.k(a,"__xSoftBodyModel"));d=Math.max(6,Math.min(d,Math.min(b,c)/2));var e=Math.cos(Math.PI/6),f=Math.sin(Math.PI/6),h=Math.cos(Math.PI/3),l=Math.sin(Math.PI/3),m=new Float64Array(20),q=new Float64Array(20);
6
+ m[0]=d;q[0]=0;m[1]=b*.5;q[1]=0;m[2]=b-d;q[2]=0;m[3]=b-d+d*f;q[3]=d-d*e;m[4]=b-d+d*l;q[4]=d-d*h;m[5]=b;q[5]=d;m[6]=b;q[6]=c*.5;m[7]=b;q[7]=c-d;m[8]=b-d+d*e;q[8]=c-d+d*f;m[9]=b-d+d*h;q[9]=c-d+d*l;m[10]=b-d;q[10]=c;m[11]=b*.5;q[11]=c;m[12]=d;q[12]=c;m[13]=d-d*f;q[13]=c-d+d*e;m[14]=d-d*l;q[14]=c-d+d*h;m[15]=0;q[15]=c-d;m[16]=0;q[16]=c*.5;m[17]=0;q[17]=d;m[18]=d-d*e;q[18]=d-d*f;m[19]=d-d*h;q[19]=d-d*l;c=[m,q];b=c[0];c=c[1];d=new Float64Array(20);e=new Float64Array(20);f=new Float64Array(20);h=new Float64Array(20);
7
+ for(l=0;;)if(l<20)d[l]=b[l],e[l]=c[l],f[l]=0,h[l]=0,l+=1;else break;a.__xSoftBodyRX=b;a.__xSoftBodyRY=c;a.__xSoftBodyCX=d;a.__xSoftBodyCY=e;a.__xSoftBodyVX=f;a.__xSoftBodyVY=h},WO=function(a){var b=$APP.J($APP.k(a,"__xSoftBodyRefs"));b=$APP.C(b,$APP.hm);var c=$APP.k(a,"__xSoftBodyCX");a=$APP.k(a,"__xSoftBodyCY");var d=[];d.push("M"+$APP.Q.g(c[0].toFixed(2))+","+$APP.Q.g(a[0].toFixed(2)));for(var e=0;;)if(e<20){var f=$APP.od(e+19,20),h=e,l=$APP.od(e+1,20),m=$APP.od(e+2,20),q=(c[l]-c[f])/6,r=(a[l]-
8
+ a[f])/6;f=(c[m]-c[h])/6;m=(a[m]-a[h])/6;var v=c[l]-c[h],x=a[l]-a[h];x=Math.sqrt(v*v+x*x)*.4;v=Math.sqrt(q*q+r*r);v=v>x?x/(v+.001):1;r=a[h]+r*v;var y=Math.sqrt(f*f+m*m);x=y>x?x/(y+.001):1;f=c[l]-f*x;m=a[l]-m*x;d.push("C"+$APP.Q.g((c[h]+q*v).toFixed(2))+","+$APP.Q.g(r.toFixed(2))+" "+$APP.Q.g(f.toFixed(2))+","+$APP.Q.g(m.toFixed(2))+" "+$APP.Q.g(c[l].toFixed(2))+","+$APP.Q.g(a[l].toFixed(2)));e+=1}else break;d.push("Z");b.setAttribute("d",d.join(""))},XO=function(a){var b=$APP.J($APP.k(a,"__xSoftBodyRefs"));
9
+ b=$APP.C(b,$APP.hm);var c=$APP.k(a,"__xSoftBodyW"),d=$APP.k(a,"__xSoftBodyH");a=$APP.fo.g($APP.k(a,"__xSoftBodyModel"));a=Math.max(6,Math.min(a,Math.min(c,d)/2));var e=.5522847498*a;c="M"+$APP.Q.g(a.toFixed(2))+",0L"+$APP.Q.g((c-a).toFixed(2))+",0C"+$APP.Q.g((c-a+e).toFixed(2))+",0 "+$APP.Q.g(c.toFixed(2))+","+$APP.Q.g((a-e).toFixed(2))+" "+$APP.Q.g(c.toFixed(2))+","+$APP.Q.g(a.toFixed(2))+"L"+$APP.Q.g(c.toFixed(2))+","+$APP.Q.g((d-a).toFixed(2))+"C"+$APP.Q.g(c.toFixed(2))+","+$APP.Q.g((d-a+e).toFixed(2))+
10
+ " "+$APP.Q.g((c-a+e).toFixed(2))+","+$APP.Q.g(d.toFixed(2))+" "+$APP.Q.g((c-a).toFixed(2))+","+$APP.Q.g(d.toFixed(2))+"L"+$APP.Q.g(a.toFixed(2))+","+$APP.Q.g(d.toFixed(2))+"C"+$APP.Q.g((a-e).toFixed(2))+","+$APP.Q.g(d.toFixed(2))+" 0,"+$APP.Q.g((d-a+e).toFixed(2))+" 0,"+$APP.Q.g((d-a).toFixed(2))+"L0,"+$APP.Q.g(a.toFixed(2))+"C0,"+$APP.Q.g((a-e).toFixed(2))+" "+$APP.Q.g((a-e).toFixed(2))+",0 "+$APP.Q.g(a.toFixed(2))+",0Z";b.setAttribute("d",c)},ZO=function(a){$APP.n($APP.k(a,"__xSoftBodyRaf"))||($APP.fa(a,
11
+ "__xSoftBodyLF",performance.now()),$APP.fa(a,"__xSoftBodyRaf",requestAnimationFrame(function(){return YO(a)})))},$O=function(a){var b=$APP.k(a,"__xSoftBodyRaf");$APP.n(b)&&(cancelAnimationFrame(b),a.__xSoftBodyRaf=null)},aP=function(a,b){var c=$APP.J($APP.k(a,"__xSoftBodyRefs"));c=$APP.C(c,$APP.tl).getBoundingClientRect();a.__xSoftBodyPX=b.clientX-c.left;a.__xSoftBodyPY=b.clientY-c.top;return null},bP=function(a){function b(){a.__xSoftBodyGrab=!1;$APP.P(a,"x-soft-body-release",{});return null}function c(h){a.__xSoftBodyGrab=
12
+ !0;aP(a,h);$APP.P(a,"x-soft-body-grab",{});return null}function d(){a.__xSoftBodyPA=!1;a.__xSoftBodyGrab=!1;return null}function e(){a.__xSoftBodyPA=!0;var h=$APP.Y.g($APP.k(a,"__xSoftBodyModel"));h=$APP.n(h)?h:OO();$APP.n(h)||ZO(a);return null}function f(h){return aP(a,h)}$APP.fa(a,"__xSoftBodyHdl",{move:f,enter:e,leave:d,down:c,up:b});a.addEventListener("pointermove",f,{passive:!0});a.addEventListener("pointerenter",e);a.addEventListener("pointerleave",d);a.addEventListener("pointerdown",c);a.addEventListener("pointerup",
13
+ b)},cP=function(a){var b=$APP.k(a,"__xSoftBodyHdl");$APP.n(b)&&(a.removeEventListener("pointermove",$APP.k(b,"move")),a.removeEventListener("pointerenter",$APP.k(b,"enter")),a.removeEventListener("pointerleave",$APP.k(b,"leave")),a.removeEventListener("pointerdown",$APP.k(b,"down")),a.removeEventListener("pointerup",$APP.k(b,"up")),a.__xSoftBodyHdl=null)},dP=function(a){Object.defineProperty(a,"stiffness",{get:function(){var b=this.getAttribute("stiffness");return LO(b,180,10,1E3)},set:function(b){return b==
14
+ null?this.removeAttribute("stiffness"):this.setAttribute("stiffness",""+$APP.Q.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"damping",{get:function(){var b=this.getAttribute("damping");return LO(b,12,1,100)},set:function(b){return b==null?this.removeAttribute("damping"):this.setAttribute("damping",""+$APP.Q.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"radius",{get:function(){var b=this.getAttribute("radius");return LO(b,16,6,200)},set:function(b){return b==null?
15
+ this.removeAttribute("radius"):this.setAttribute("radius",""+$APP.Q.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"intensity",{get:function(){var b=this.getAttribute("intensity");return LO(b,1,0,5)},set:function(b){return b==null?this.removeAttribute("intensity"):this.setAttribute("intensity",""+$APP.Q.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"grabRadius",{get:function(){var b=this.getAttribute("grab-radius");return LO(b,80,10,500)},set:function(b){return b==
16
+ null?this.removeAttribute("grab-radius"):this.setAttribute("grab-radius",""+$APP.Q.g(b))},enumerable:!0,configurable:!0});return Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},eP=function(a){var b=UO(a);a.__xSoftBodyModel=b;$APP.n($APP.k(a,"__xSoftBodyRefs"))||RO(a);a.__xSoftBodyPA=!1;a.__xSoftBodyGrab=!1;a.__xSoftBodyPX=0;a.__xSoftBodyPY=
17
+ 0;b=new ResizeObserver(function(c){if(c.length>0){var d=c[0].contentRect;c=d.width;d=d.height;if(c>0&&d>0){a.__xSoftBodyW=c;a.__xSoftBodyH=d;var e=$APP.J($APP.k(a,"__xSoftBodyRefs"));$APP.C(e,$APP.tl).setAttribute("viewBox","0 0 "+$APP.Q.g(c)+" "+$APP.Q.g(d));VO(a,c,d);c=$APP.Y.g($APP.k(a,"__xSoftBodyModel"));c=$APP.n(c)?c:OO();$APP.n(c)?XO(a):(WO(a),ZO(a))}}return null});a.__xSoftBodyRO=b;b.observe(a);cP(a);bP(a);return null},fP=function(a){$O(a);cP(a);var b=$APP.k(a,"__xSoftBodyRO");$APP.n(b)&&
18
+ (b.disconnect(),a.__xSoftBodyRO=null);return null},gP=function(a,b,c,d){$APP.M(c,d)&&$APP.n($APP.k(a,"__xSoftBodyRefs"))&&(b=UO(a),a.__xSoftBodyModel=b,c=$APP.k(a,"__xSoftBodyW"),d=$APP.k(a,"__xSoftBodyH"),$APP.n($APP.n(c)?$APP.n(d)?c>0&&d>0:d:c)&&(VO(a,c,d),b=$APP.Y.g(b),b=$APP.n(b)?b:OO(),$APP.n(b)?($O(a),XO(a)):(WO(a),ZO(a))));return null},iP=function(){return $APP.Yg("x-soft-body",new $APP.N(null,5,[$APP.Pg,hP,$APP.Qg,eP,$APP.Rg,fP,$APP.Sg,gP,$APP.Wg,dP],null))},TO=new $APP.F(null,"grab-radius",
19
+ "grab-radius",771838535),SO=new $APP.F(null,"grab-radius-raw","grab-radius-raw",-1019405976);var hP="stiffness damping radius intensity grab-radius disabled".split(" ");$APP.Yd(["x-soft-body-grab",new $APP.N(null,2,[$APP.Z,$APP.Zd,$APP.Fn,!1],null),"x-soft-body-release",new $APP.N(null,2,[$APP.Z,$APP.Zd,$APP.Fn,!1],null)]);var QO=":host{display:block;position:relative;background:none;overflow:visible;"+$APP.Q.g("--x-soft-body-bg")+":var(--x-color-surface,#ffffff);"+$APP.Q.g("--x-soft-body-border")+":var(--x-color-border,#e2e8f0);"+$APP.Q.g("--x-soft-body-border-width")+":1.5;"+$APP.Q.g("--x-soft-body-shadow")+":var(--x-shadow-sm,0 1px 3px rgba(0,0,0,0.1));"+$APP.Q.g("--x-soft-body-padding")+":1rem;}[part\x3dsvg]{display:block;width:100%;height:100%;position:absolute;inset:0;overflow:visible;pointer-events:none;}[part\x3dshape]{fill:var("+
20
+ $APP.Q.g("--x-soft-body-bg")+",#ffffff);stroke:var("+$APP.Q.g("--x-soft-body-border")+",#e2e8f0);stroke-width:var("+$APP.Q.g("--x-soft-body-border-width")+",1.5);filter:drop-shadow(var("+$APP.Q.g("--x-soft-body-shadow")+",0 1px 3px rgba(0,0,0,0.1)));}[part\x3dcontent]{position:relative;background:none;padding:var("+$APP.Q.g("--x-soft-body-padding")+",1rem);z-index:1;}@media(prefers-color-scheme:dark){:host{"+$APP.Q.g("--x-soft-body-bg")+":var(--x-color-surface,#1e293b);"+$APP.Q.g("--x-soft-body-border")+
21
+ ":var(--x-color-border,#475569);"+$APP.Q.g("--x-soft-body-shadow")+":var(--x-shadow-sm,0 1px 3px rgba(0,0,0,0.3));}}@media(prefers-reduced-motion:reduce){[part\x3dshape]{transition:none!important;}}",YO=function YO(a){if($APP.n(a.isConnected)){var c=$APP.k(a,"__xSoftBodyModel"),d=performance.now(),e=Math.min(d-$APP.k(a,"__xSoftBodyLF"),100)/1E3,f=$APP.kn.g(c),h=$APP.Wl.g(c),l=$APP.Fl.g(c),m=TO.g(c);c=$APP.k(a,"__xSoftBodyRX");var q=$APP.k(a,"__xSoftBodyRY"),r=$APP.k(a,"__xSoftBodyCX"),v=$APP.k(a,
22
+ "__xSoftBodyCY"),x=$APP.k(a,"__xSoftBodyVX"),y=$APP.k(a,"__xSoftBodyVY"),A=$APP.k(a,"__xSoftBodyPA"),D=$APP.k(a,"__xSoftBodyPX"),G=$APP.k(a,"__xSoftBodyPY"),I=$APP.k(a,"__xSoftBodyGrab");a.__xSoftBodyLF=d;for(d=0;;)if(d<20){var H=c[d],K=q[d],W=$APP.n(A)?NO(H,K,D,G,m,l,I):[0,0];H=MO(r[d],H+W[0],x[d],e,f,h);K=MO(v[d],K+W[1],y[d],e,f,h);r[d]=H[0];x[d]=H[1];v[d]=K[0];y[d]=K[1];d+=1}else break;WO(a);if($APP.n($APP.n(A)?A:!PO(x,y)))$APP.fa(a,"__xSoftBodyRaf",requestAnimationFrame(function(){return YO.g?
23
+ YO.g(a):YO.call(null,a)}));else{for(e=0;;)if(e<20)r[e]=c[e],v[e]=q[e],e+=1;else break;WO(a);a.__xSoftBodyRaf=null}}return null};$APP.ca("baredom.exports.x_soft_body.init",iP);export const init=iP;
package/dist/x-spacer.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var uO=function(a){return a!=null&&$APP.N((""+$APP.T.g(a)).trim().toLowerCase(),"false")},AO=function(a){var b=new $APP.Q(null,3,[$APP.Wl,a.getAttribute("size"),vO,a.getAttribute("axis"),wO,a.getAttribute("grow")],null);b=$APP.M(b);var c=$APP.D(b,$APP.Wl),d=$APP.D(b,vO);b=$APP.D(b,wO);c=typeof c==="string"&&c.trim().length>0?c.trim():"1rem";d=typeof d==="string"?d.trim().toLowerCase():null;d=$APP.I(xO,d)?d:"vertical";b=new $APP.Q(null,3,[$APP.Mh,c,yO,d,zO,uO(b)],null);c=$APP.M(b);b=$APP.D(c,$APP.Mh);
3
- d=$APP.D(c,yO);c=$APP.D(c,zO);var e=a.style;a.setAttribute("data-axis",d);a.setAttribute("data-grow",$APP.n(c)?"true":"false");e.setProperty("--x-spacer-size",b);a.setAttribute("role","none");a.setAttribute("aria-hidden","true")},BO=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(b);return $APP.n(d)?d:c},set:function(d){return d!=null?this.setAttribute(b,""+$APP.T.g(d)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},CO=function(a){Object.defineProperty(a,
4
- "grow",{get:function(){return uO(this.getAttribute("grow"))},set:function(b){return $APP.n(b)?this.setAttribute("grow",""):this.removeAttribute("grow")},enumerable:!0,configurable:!0})},DO=function(a){BO(a,"size","1rem");BO(a,"axis","vertical");CO(a)},FO=function(){var a=class extends HTMLElement{};a.observedAttributes=EO;a.prototype.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xSpacerRefs"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style");c.textContent=":host{display:block;flex-shrink:0;height:var(--x-spacer-size,1rem);width:0;pointer-events:none;}:host([data-axis\x3d'horizontal']){height:0;width:var(--x-spacer-size,1rem);}:host([data-grow\x3d'true']){flex:1 0 var(--x-spacer-size,0px);height:0;width:0;}";
5
- b.appendChild(c);this.__xSpacerRefs={root:b}}AO(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){b=$APP.N(c,d);$APP.n(b?$APP.k(this,"__xSpacerRefs"):b)&&AO(this);return null};DO(a.prototype);return a},GO=function(){$APP.n(customElements.get("x-spacer"))||customElements.define("x-spacer",FO());return null},yO=new $APP.K(null,"axis","axis",-1215390822),zO=new $APP.K(null,"grow?","grow?",2124334580),wO=new $APP.K(null,"grow-raw",
6
- "grow-raw",441172903),vO=new $APP.K(null,"axis-raw","axis-raw",291213231);var EO=["size","axis","grow"],xO=new $APP.S(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null);$APP.ha("baredom.exports.x_spacer.init",GO);export const init=GO;
2
+ var aS=function(a){return a!=null&&$APP.M((""+$APP.Q.g(a)).trim().toLowerCase(),"false")},gS=function(a){var b=new $APP.N(null,3,[$APP.on,a.getAttribute("size"),bS,a.getAttribute("axis"),cS,a.getAttribute("grow")],null);b=$APP.J(b);var c=$APP.C(b,$APP.on),d=$APP.C(b,bS);b=$APP.C(b,cS);c=typeof c==="string"&&c.trim().length>0?c.trim():"1rem";d=typeof d==="string"?d.trim().toLowerCase():null;d=$APP.Zc(dS,d)?d:"vertical";b=new $APP.N(null,3,[$APP.bj,c,eS,d,fS,aS(b)],null);c=$APP.J(b);b=$APP.C(c,$APP.bj);
3
+ d=$APP.C(c,eS);c=$APP.C(c,fS);var e=a.style;a.setAttribute("data-axis",d);a.setAttribute("data-grow",$APP.n(c)?"true":"false");e.setProperty("--x-spacer-size",b);a.setAttribute("role","none");a.setAttribute("aria-hidden","true");return null},hS=function(a){if(!$APP.n($APP.k(a,"__xSpacerRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style");c.textContent=":host{display:block;flex-shrink:0;height:var(--x-spacer-size,1rem);width:0;pointer-events:none;}:host([data-axis\x3d'horizontal']){height:0;width:var(--x-spacer-size,1rem);}:host([data-grow\x3d'true']){flex:1 0 var(--x-spacer-size,0px);height:0;width:0;}";
4
+ b.appendChild(c);a.__xSpacerRefs={root:b}}return gS(a)},iS=function(){return null},jS=function(a,b,c,d){b=$APP.M(c,d);return $APP.n(b?$APP.k(a,"__xSpacerRefs"):b)?gS(a):null},kS=function(a){return Object.defineProperty(a,"grow",{get:function(){return aS(this.getAttribute("grow"))},set:function(b){return $APP.n(b)?this.setAttribute("grow",""):this.removeAttribute("grow")},enumerable:!0,configurable:!0})},lS=function(a){$APP.eh(a,"size","size","1rem");$APP.eh(a,"axis","axis","vertical");return kS(a)},
5
+ nS=function(){return $APP.Yg("x-spacer",new $APP.N(null,5,[$APP.Pg,mS,$APP.Qg,hS,$APP.Rg,iS,$APP.Sg,jS,$APP.Wg,lS],null))},eS=new $APP.F(null,"axis","axis",-1215390822),fS=new $APP.F(null,"grow?","grow?",2124334580),cS=new $APP.F(null,"grow-raw","grow-raw",441172903),bS=new $APP.F(null,"axis-raw","axis-raw",291213231);var mS=["size","axis","grow"],dS=new $APP.O(null,new $APP.N(null,2,["vertical",null,"horizontal",null],null),null);$APP.ca("baredom.exports.x_spacer.init",nS);export const init=nS;
package/dist/x-spinner.js CHANGED
@@ -1,7 +1,5 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Q3=function(a){var b=new $APP.Q(null,3,[$APP.Mh,a.getAttribute("size"),$APP.Vg,a.getAttribute("variant"),$APP.U,a.getAttribute("label")],null);var c=$APP.M(b),d=$APP.D(c,$APP.Mh);b=$APP.D(c,$APP.Vg);c=$APP.D(c,$APP.U);d=typeof d==="string"&&$APP.I(O3,d)?d:"md";b=typeof b==="string"&&$APP.I(P3,b)?b:"default";c=typeof c==="string"&&$APP.N("",c.trim())?c.trim():"Loading";d=$APP.M(new $APP.Q(null,3,[$APP.Mh,d,$APP.Vg,b,$APP.U,c],null));b=$APP.D(d,$APP.Mh);c=$APP.D(d,$APP.Vg);d=$APP.D(d,$APP.U);a.setAttribute("data-size",
3
- b);a.setAttribute("data-variant",c);a.setAttribute("aria-label",d)},R3=function(a){Object.defineProperty(a,"size",{get:function(){var b=this.getAttribute("size");return $APP.n(b)?b:"md"},set:function(b){return $APP.n(b)?this.setAttribute("size",""+$APP.T.g(b)):this.removeAttribute("size")},enumerable:!0,configurable:!0});Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?b:"default"},set:function(b){return $APP.n(b)?this.setAttribute("variant",""+
4
- $APP.T.g(b)):this.removeAttribute("variant")},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:"Loading"},set:function(b){return $APP.n(b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},T3=function(){var a=class extends HTMLElement{};a.observedAttributes=S3;a.prototype.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xSpinnerInit"))){var b=this.attachShadow({mode:"open"}),
5
- c=document.createElement("style"),d=document.createElement("span");c.textContent=":host{display:inline-flex;align-items:center;justify-content:center;color-scheme:light dark;--x-spinner-size:24px;--x-spinner-color:currentColor;--x-spinner-track-color:rgba(0,0,0,0.12);--x-spinner-thickness:2px;--x-spinner-duration:0.75s;}@media (prefers-color-scheme:dark){:host{--x-spinner-track-color:rgba(255,255,255,0.15);}}:host([data-size\x3d'xs']){--x-spinner-size:16px;}:host([data-size\x3d'sm']){--x-spinner-size:20px;}:host([data-size\x3d'md']){--x-spinner-size:24px;}:host([data-size\x3d'lg']){--x-spinner-size:32px;}:host([data-size\x3d'xl']){--x-spinner-size:48px;}:host([data-variant\x3d'primary']){--x-spinner-color:var(--x-color-primary,#3b82f6);}:host([data-variant\x3d'success']){--x-spinner-color:var(--x-color-success,#22c55e);}:host([data-variant\x3d'warning']){--x-spinner-color:var(--x-color-warning,#f59e0b);}:host([data-variant\x3d'danger']){--x-spinner-color:var(--x-color-danger,#ef4444);}[part\x3dring]{display:block;width:var(--x-spinner-size);height:var(--x-spinner-size);border-radius:50%;border:var(--x-spinner-thickness) solid var(--x-spinner-track-color);border-top-color:var(--x-spinner-color);box-sizing:border-box;animation:x-spinner-spin var(--x-spinner-duration) linear infinite;}@keyframes x-spinner-spin{to{transform:rotate(360deg);}}@media (prefers-reduced-motion:reduce){[part\x3dring]{animation-play-state:paused;}}";
6
- d.setAttribute("part","ring");d.setAttribute("aria-hidden","true");b.appendChild(c);b.appendChild(d);this.setAttribute("role","status");this.setAttribute("aria-live","polite");this.__xSpinnerRing=d;this.__xSpinnerInit=!0}Q3(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){b=$APP.N(c,d);$APP.n(b?$APP.k(this,"__xSpinnerInit"):b)&&Q3(this);return null};R3(a.prototype);return a},U3=function(){$APP.n(customElements.get("x-spinner"))||
7
- customElements.define("x-spinner",T3());return null};var S3=["size","variant","label"],O3=new $APP.S(null,new $APP.Q(null,5,["xs",null,"md",null,"lg",null,"xl",null,"sm",null],null),null),P3=new $APP.S(null,new $APP.Q(null,5,["success",null,"warning",null,"primary",null,"danger",null,"default",null],null),null);$APP.ha("baredom.exports.x_spinner.init",U3);export const init=U3;
2
+ var C7=function(a){var b=new $APP.N(null,3,[$APP.bj,a.getAttribute("size"),$APP.ii,a.getAttribute("variant"),$APP.X,a.getAttribute("label")],null);var c=$APP.J(b),d=$APP.C(c,$APP.bj);b=$APP.C(c,$APP.ii);c=$APP.C(c,$APP.X);d=typeof d==="string"&&$APP.Zc(Eaa,d)?d:"md";b=typeof b==="string"&&$APP.Zc(Faa,b)?b:"default";c=typeof c==="string"&&$APP.M("",c.trim())?c.trim():"Loading";d=$APP.J(new $APP.N(null,3,[$APP.bj,d,$APP.ii,b,$APP.X,c],null));b=$APP.C(d,$APP.bj);c=$APP.C(d,$APP.ii);d=$APP.C(d,$APP.X);
3
+ a.setAttribute("data-size",b);a.setAttribute("data-variant",c);a.setAttribute("aria-label",d)},Gaa=function(a){if(!$APP.n($APP.k(a,"__xSpinnerInit"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("span");c.textContent=":host{display:inline-flex;align-items:center;justify-content:center;color-scheme:light dark;--x-spinner-size:24px;--x-spinner-color:currentColor;--x-spinner-track-color:rgba(0,0,0,0.12);--x-spinner-thickness:2px;--x-spinner-duration:0.75s;}@media (prefers-color-scheme:dark){:host{--x-spinner-track-color:rgba(255,255,255,0.15);}}:host([data-size\x3d'xs']){--x-spinner-size:16px;}:host([data-size\x3d'sm']){--x-spinner-size:20px;}:host([data-size\x3d'md']){--x-spinner-size:24px;}:host([data-size\x3d'lg']){--x-spinner-size:32px;}:host([data-size\x3d'xl']){--x-spinner-size:48px;}:host([data-variant\x3d'primary']){--x-spinner-color:var(--x-color-primary,#3b82f6);}:host([data-variant\x3d'success']){--x-spinner-color:var(--x-color-success,#22c55e);}:host([data-variant\x3d'warning']){--x-spinner-color:var(--x-color-warning,#f59e0b);}:host([data-variant\x3d'danger']){--x-spinner-color:var(--x-color-danger,#ef4444);}[part\x3dring]{display:block;width:var(--x-spinner-size);height:var(--x-spinner-size);border-radius:50%;border:var(--x-spinner-thickness) solid var(--x-spinner-track-color);border-top-color:var(--x-spinner-color);box-sizing:border-box;animation:x-spinner-spin var(--x-spinner-duration) linear infinite;}@keyframes x-spinner-spin{to{transform:rotate(360deg);}}@media (prefers-reduced-motion:reduce){[part\x3dring]{animation-play-state:paused;}}";
4
+ d.setAttribute("part","ring");d.setAttribute("aria-hidden","true");b.appendChild(c);b.appendChild(d);a.setAttribute("role","status");a.setAttribute("aria-live","polite");a.__xSpinnerRing=d;a.__xSpinnerInit=!0}C7(a);return null},Haa=function(a,b,c,d){b=$APP.M(c,d);$APP.n(b?$APP.k(a,"__xSpinnerInit"):b)&&C7(a);return null},Jaa=function(a){return $APP.jh(a,Iaa)},D7=function(){return $APP.Yg("x-spinner",new $APP.N(null,4,[$APP.Pg,Kaa,$APP.Qg,Gaa,$APP.Sg,Haa,$APP.Wg,Jaa],null))};var Kaa=["size","variant","label"],Eaa=new $APP.O(null,new $APP.N(null,5,["xs",null,"md",null,"lg",null,"xl",null,"sm",null],null),null),Faa=new $APP.O(null,new $APP.N(null,5,["success",null,"warning",null,"primary",null,"danger",null,"default",null],null),null),Iaa=new $APP.N(null,3,[$APP.bj,new $APP.N(null,3,[$APP.R,$APP.U,$APP.S,"size",$APP.ih,"md"],null),$APP.ii,new $APP.N(null,3,[$APP.R,$APP.U,$APP.S,"variant",$APP.ih,"default"],null),$APP.X,new $APP.N(null,3,[$APP.R,$APP.U,$APP.S,"label",$APP.ih,
5
+ "Loading"],null)],null);$APP.ca("baredom.exports.x_spinner.init",D7);export const init=D7;
package/dist/x-splash.js CHANGED
@@ -1,15 +1,14 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var OQ=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?null:$APP.oh.i(0,$APP.ph.i(100,a))):null},PQ=function(a){return a==null?!0:$APP.N((""+$APP.T.g(a)).trim().toLowerCase(),"false")},UQ=function(a){var b=$APP.k(a,"__xSplashRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("slot"),h=document.createElement("span"),l=document.createElement("div"),
2
+ var JU=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?null:$APP.Hi.i(0,$APP.Ii.i(100,a))):null},KU=function(a){return a==null?!0:$APP.M((""+$APP.Q.g(a)).trim().toLowerCase(),"false")},PU=function(a){var b=$APP.k(a,"__xSplashRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("slot"),h=document.createElement("span"),l=document.createElement("div"),
3
3
  m=document.createElement("div");c.textContent=":host{display:block;color-scheme:light dark;--x-splash-bg:var(--x-color-bg, #ffffff);--x-splash-color:var(--x-color-text, #0f172a);--x-splash-z-index:9999;--x-splash-fade-duration:var(--x-transition-duration, 400ms);--x-splash-fade-ease:cubic-bezier(0.4,0,0.2,1);--x-splash-spinner-size:40px;--x-splash-spinner-color:var(--x-color-text, currentColor);--x-splash-spinner-track-color:var(--x-color-border, rgba(0,0,0,0.12));--x-splash-spinner-thickness:3px;--x-splash-spinner-duration:0.75s;--x-splash-progress-height:4px;--x-splash-progress-color:var(--x-color-primary, #3b82f6);--x-splash-progress-track-color:var(--x-color-border, rgba(0,0,0,0.08));--x-splash-progress-radius:var(--x-radius-sm, 2px);--x-splash-gap:20px;--x-splash-blur-amount:8px;}@media (prefers-color-scheme:dark){:host{--x-splash-bg:var(--x-color-bg, #0f172a);--x-splash-color:var(--x-color-text, #f8fafc);--x-splash-spinner-track-color:var(--x-color-border, rgba(255,255,255,0.15));--x-splash-progress-track-color:var(--x-color-border, rgba(255,255,255,0.12));}}[part\x3doverlay]{position:fixed;inset:0;z-index:var(--x-splash-z-index);display:none;align-items:center;justify-content:center;background:var(--x-splash-bg);color:var(--x-splash-color);opacity:0;transition:opacity var(--x-splash-fade-duration) var(--x-splash-fade-ease);}:host([active]) [part\x3doverlay]{display:flex;opacity:1;}:host([data-fading-out]) [part\x3doverlay]{display:flex;opacity:0;}:host([data-variant\x3d'minimal']) [part\x3doverlay]{background:transparent;}:host([data-variant\x3d'branded']) [part\x3doverlay]{background:var(--x-splash-branded-bg,var(--x-splash-bg));}:host([data-overlay\x3d'blur']) [part\x3doverlay]{background:rgba(255,255,255,0.7);backdrop-filter:blur(var(--x-splash-blur-amount));-webkit-backdrop-filter:blur(var(--x-splash-blur-amount));}@media (prefers-color-scheme:dark){:host([data-overlay\x3d'blur']) [part\x3doverlay]{background:rgba(15,23,42,0.7);}}:host([data-overlay\x3d'transparent']) [part\x3doverlay]{background:transparent;}[part\x3dcontent]{display:flex;flex-direction:column;align-items:center;gap:var(--x-splash-gap);max-width:80vw;text-align:center;}[part\x3dspinner]{display:block;width:var(--x-splash-spinner-size);height:var(--x-splash-spinner-size);border:var(--x-splash-spinner-thickness) solid var(--x-splash-spinner-track-color);border-top-color:var(--x-splash-spinner-color);border-radius:50%;animation:x-splash-spin var(--x-splash-spinner-duration) linear infinite;box-sizing:border-box;}@keyframes x-splash-spin{to{transform:rotate(360deg);}}[part\x3dprogress]{display:none;width:min(300px,60vw);height:var(--x-splash-progress-height);background:var(--x-splash-progress-track-color);border-radius:var(--x-splash-progress-radius);overflow:hidden;}[part\x3dbar]{height:100%;background:var(--x-splash-progress-color);border-radius:var(--x-splash-progress-radius);transition:width 200ms ease;width:0%;}@media (prefers-reduced-motion:reduce){[part\x3doverlay]{transition:none !important;}[part\x3dspinner]{animation:none !important;}[part\x3dbar]{transition:none !important;}}";
4
- d.setAttribute("part","overlay");e.setAttribute("part","content");h.setAttribute("part","spinner");h.setAttribute("aria-hidden","true");l.setAttribute("part","progress");l.setAttribute("role","progressbar");l.setAttribute("aria-valuemin","0");l.setAttribute("aria-valuemax","100");m.setAttribute("part","bar");l.appendChild(m);e.appendChild(g);e.appendChild(h);e.appendChild(l);d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xSplashRefs=new $APP.Q(null,6,[$APP.Hi,b,QQ,d,RQ,e,SQ,h,$APP.jj,l,TQ,
5
- m],null);return $APP.k(a,"__xSplashRefs")},VQ=function(a){a=typeof a==="string"?a.trim():"";return $APP.B.i(a,"")||$APP.B.i(a,"0")||$APP.B.i(a,"0ms")||$APP.B.i(a,"0s")?0:$APP.n(a.endsWith("ms"))?(a=parseFloat(a.slice(0,a.length-2)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(a))):$APP.n(a.endsWith("s"))?(a=parseFloat(a.slice(0,a.length-1)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(1E3*a))):0},WQ=function(a){a=window.getComputedStyle(a);a=VQ(a.getPropertyValue("--x-splash-fade-duration"));return a>0?a:
6
- 400},XQ=function(a){var b=$APP.k(a,"__xSplashFadeTimer");$APP.n(b)&&(clearTimeout(b),a.__xSplashFadeTimer=null)},YQ=function(a){XQ(a);a.__xSplashFadingOut=!1;a.removeAttribute("data-fading-out");var b=UQ(a);b=$APP.M(b);$APP.D(b,QQ).style.display="none";a.removeAttribute("aria-busy");b=new CustomEvent("x-splash-hidden",{detail:{},bubbles:!0,composed:!0,cancelable:!1});a.dispatchEvent(b);return null},ZQ=function(a){if(!$APP.n($APP.k(a,"__xSplashFadingOut")))if(a.__xSplashFadingOut=!0,$APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches))YQ(a);
7
- else{var b=UQ(a);b=$APP.M(b);var c=$APP.D(b,QQ),d=function h(g){return $APP.B.i(g.target,c)&&$APP.B.i(g.propertyName,"opacity")?(c.removeEventListener("transitionend",h),$APP.n($APP.k(a,"__xSplashFadingOut"))?YQ(a):null):null};c.style.display="flex";c.style.opacity="1";a.setAttribute("data-fading-out","");c.addEventListener("transitionend",d);requestAnimationFrame(function(){return requestAnimationFrame(function(){return $APP.n($APP.k(a,"__xSplashFadingOut"))?c.style.opacity="0":null})});$APP.ja(a,
8
- "__xSplashFadeTimer",setTimeout(function(){return $APP.n($APP.k(a,"__xSplashFadingOut"))?(c.removeEventListener("transitionend",d),YQ(a)):null},WQ(a)+60))}},hR=function(a){var b=new $APP.Q(null,5,[$Q,a.hasAttribute("active"),$APP.ul,a.getAttribute("variant"),$APP.fk,a.getAttribute("progress"),aR,a.getAttribute("spinner"),bR,a.getAttribute("overlay")],null);var c=$APP.M(b);b=$APP.D(c,$Q);var d=$APP.D(c,$APP.ul),e=$APP.D(c,$APP.fk),g=$APP.D(c,aR);c=$APP.D(c,bR);b=$APP.F(b);d=typeof d==="string"?d.trim().toLowerCase():
9
- null;d=$APP.I(cR,d)?d:"default";e=OQ(e);g=PQ(g);c=typeof c==="string"?c.trim().toLowerCase():null;c=$APP.I(dR,c)?c:"solid";b=new $APP.Q(null,5,[eR,b,$APP.Vg,d,$APP.cm,e,fR,g,gR,c],null);if($APP.N($APP.k(a,"__xSplashModel"),b)){b=$APP.M(b);c=$APP.D(b,eR);e=$APP.D(b,$APP.Vg);d=$APP.D(b,$APP.cm);var h=$APP.D(b,fR),l=$APP.D(b,gR);g=UQ(a);var m=$APP.M(g);g=$APP.D(m,QQ);var p=$APP.D(m,SQ),q=$APP.D(m,$APP.jj),v=$APP.D(m,TQ);m=$APP.k(a,"__xSplashModel");var x=eR.g(m);a.setAttribute("data-variant",e);a.setAttribute("data-overlay",
10
- l);p.style.display=$APP.n(h)?"block":"none";d!=null?(q.style.display="block",v.style.width=""+$APP.T.g(d)+"%",q.setAttribute("aria-valuenow",""+$APP.T.g(d))):(q.style.display="none",q.removeAttribute("aria-valuenow"));$APP.n($APP.n(c)?$APP.r(x):c)?($APP.n($APP.k(a,"__xSplashFadingOut"))&&(XQ(a),a.__xSplashFadingOut=!1,a.removeAttribute("data-fading-out"),c=UQ(a),c=$APP.M(c),c=$APP.D(c,QQ),c.style.display="",c.style.opacity=""),a.setAttribute("aria-busy","true"),a.setAttribute("aria-live","polite"),
11
- a.setAttribute("role","status"),g.style.display="",g.style.opacity=""):(e=$APP.r(c),$APP.n(e?x:e)?ZQ(a):$APP.r(c)&&m==null&&(g.style.display="none",a.removeAttribute("aria-busy")));$APP.n(a.hasAttribute("aria-label"))||a.setAttribute("aria-label","Loading");a.__xSplashModel=b}},iR=function(a){Object.defineProperty(a,"active",{get:function(){return this.hasAttribute("active")},set:function(b){return $APP.n(b)?this.setAttribute("active",""):this.removeAttribute("active")},enumerable:!0,configurable:!0});
12
- Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?b:"default"},set:function(b){return $APP.n(b)?this.setAttribute("variant",""+$APP.T.g(b)):this.removeAttribute("variant")},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){return OQ(this.getAttribute("progress"))},set:function(b){return b==null?this.removeAttribute("progress"):this.setAttribute("progress",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,
13
- "spinner",{get:function(){return PQ(this.getAttribute("spinner"))},set:function(b){return $APP.n(b)?this.setAttribute("spinner",""):this.setAttribute("spinner","false")},enumerable:!0,configurable:!0});Object.defineProperty(a,"overlay",{get:function(){var b=this.getAttribute("overlay");return $APP.n(b)?b:"solid"},set:function(b){return $APP.n(b)?this.setAttribute("overlay",""+$APP.T.g(b)):this.removeAttribute("overlay")},enumerable:!0,configurable:!0})},kR=function(){var a=class extends HTMLElement{};
14
- a.observedAttributes=jR;a.prototype.connectedCallback=function(){UQ(this);XQ(this);hR(this);return null};a.prototype.disconnectedCallback=function(){XQ(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&hR(this);return null};iR(a.prototype);return a},lR=function(){$APP.n(customElements.get("x-splash"))||customElements.define("x-splash",kR());return null},QQ=new $APP.K(null,"overlay-el","overlay-el",-308547109),RQ=new $APP.K(null,"content-el","content-el",-1423019925),
15
- SQ=new $APP.K(null,"spinner-el","spinner-el",-1536400516),TQ=new $APP.K(null,"bar-el","bar-el",2050414242),fR=new $APP.K(null,"spinner?","spinner?",939139177),eR=new $APP.K(null,"active?","active?",459499776),$Q=new $APP.K(null,"active-present?","active-present?",73064660),aR=new $APP.K(null,"spinner-attr","spinner-attr",-479327548),bR=new $APP.K(null,"overlay-raw","overlay-raw",1018775670),gR=new $APP.K(null,"overlay","overlay",-139131598);var jR=["active","variant","progress","spinner","overlay"];$APP.Pd(["x-splash-hidden",new $APP.Q(null,2,[$APP.V,$APP.Qd,$APP.lm,!1],null)]);var cR=new $APP.S(null,new $APP.Q(null,3,["minimal",null,"branded",null,"default",null],null),null),dR=new $APP.S(null,new $APP.Q(null,3,["transparent",null,"solid",null,"blur",null],null),null);$APP.ha("baredom.exports.x_splash.init",lR);export const init=lR;
4
+ d.setAttribute("part","overlay");e.setAttribute("part","content");h.setAttribute("part","spinner");h.setAttribute("aria-hidden","true");l.setAttribute("part","progress");l.setAttribute("role","progressbar");l.setAttribute("aria-valuemin","0");l.setAttribute("aria-valuemax","100");m.setAttribute("part","bar");l.appendChild(m);e.appendChild(f);e.appendChild(h);e.appendChild(l);d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xSplashRefs=new $APP.N(null,6,[$APP.Uh,b,LU,d,MU,e,NU,h,$APP.sk,l,OU,
5
+ m],null);return $APP.k(a,"__xSplashRefs")},QU=function(a){a=typeof a==="string"?a.trim():"";return $APP.B.i(a,"")||$APP.B.i(a,"0")||$APP.B.i(a,"0ms")||$APP.B.i(a,"0s")?0:$APP.n(a.endsWith("ms"))?(a=parseFloat(a.slice(0,a.length-2)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(a))):$APP.n(a.endsWith("s"))?(a=parseFloat(a.slice(0,a.length-1)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(1E3*a))):0},RU=function(a){a=window.getComputedStyle(a);a=QU(a.getPropertyValue("--x-splash-fade-duration"));return a>0?a:
6
+ 400},SU=function(a){var b=$APP.k(a,"__xSplashFadeTimer");$APP.n(b)&&(clearTimeout(b),a.__xSplashFadeTimer=null)},TU=function(a){SU(a);a.__xSplashFadingOut=!1;a.removeAttribute("data-fading-out");var b=PU(a);b=$APP.J(b);$APP.C(b,LU).style.display="none";a.removeAttribute("aria-busy");$APP.P(a,"x-splash-hidden",{});return null},UU=function(a){if(!$APP.n($APP.k(a,"__xSplashFadingOut")))if(a.__xSplashFadingOut=!0,$APP.E(window.matchMedia("(prefers-reduced-motion:reduce)").matches))TU(a);else{var b=PU(a);
7
+ b=$APP.J(b);var c=$APP.C(b,LU),d=function h(f){return $APP.B.i(f.target,c)&&$APP.B.i(f.propertyName,"opacity")?(c.removeEventListener("transitionend",h),$APP.n($APP.k(a,"__xSplashFadingOut"))?TU(a):null):null};c.style.display="flex";c.style.opacity="1";a.setAttribute("data-fading-out","");c.addEventListener("transitionend",d);requestAnimationFrame(function(){return requestAnimationFrame(function(){return $APP.n($APP.k(a,"__xSplashFadingOut"))?c.style.opacity="0":null})});$APP.fa(a,"__xSplashFadeTimer",
8
+ setTimeout(function(){return $APP.n($APP.k(a,"__xSplashFadingOut"))?(c.removeEventListener("transitionend",d),TU(a)):null},RU(a)+60))}},cV=function(a){var b=new $APP.N(null,5,[VU,a.hasAttribute("active"),$APP.Gm,a.getAttribute("variant"),$APP.ml,a.getAttribute("progress"),WU,a.getAttribute("spinner"),XU,a.getAttribute("overlay")],null);var c=$APP.J(b);b=$APP.C(c,VU);var d=$APP.C(c,$APP.Gm),e=$APP.C(c,$APP.ml),f=$APP.C(c,WU);c=$APP.C(c,XU);b=$APP.E(b);d=typeof d==="string"?d.trim().toLowerCase():null;
9
+ d=$APP.Zc(YU,d)?d:"default";e=JU(e);f=KU(f);c=typeof c==="string"?c.trim().toLowerCase():null;c=$APP.Zc(ZU,c)?c:"solid";b=new $APP.N(null,5,[$U,b,$APP.ii,d,$APP.vn,e,aV,f,bV,c],null);if($APP.M($APP.k(a,"__xSplashModel"),b)){b=$APP.J(b);c=$APP.C(b,$U);e=$APP.C(b,$APP.ii);d=$APP.C(b,$APP.vn);var h=$APP.C(b,aV),l=$APP.C(b,bV);f=PU(a);var m=$APP.J(f);f=$APP.C(m,LU);var q=$APP.C(m,NU),r=$APP.C(m,$APP.sk),v=$APP.C(m,OU);m=$APP.k(a,"__xSplashModel");var x=$U.g(m);a.setAttribute("data-variant",e);a.setAttribute("data-overlay",
10
+ l);q.style.display=$APP.n(h)?"block":"none";d!=null?(r.style.display="block",v.style.width=""+$APP.Q.g(d)+"%",r.setAttribute("aria-valuenow",""+$APP.Q.g(d))):(r.style.display="none",r.removeAttribute("aria-valuenow"));$APP.n($APP.n(c)?$APP.p(x):c)?($APP.n($APP.k(a,"__xSplashFadingOut"))&&(SU(a),a.__xSplashFadingOut=!1,a.removeAttribute("data-fading-out"),c=PU(a),c=$APP.J(c),c=$APP.C(c,LU),c.style.display="",c.style.opacity=""),a.setAttribute("aria-busy","true"),a.setAttribute("aria-live","polite"),
11
+ a.setAttribute("role","status"),f.style.display="",f.style.opacity=""):(e=$APP.p(c),$APP.n(e?x:e)?UU(a):$APP.p(c)&&m==null&&(f.style.display="none",a.removeAttribute("aria-busy")));$APP.n(a.hasAttribute("aria-label"))||a.setAttribute("aria-label","Loading");a.__xSplashModel=b}},dV=function(a){$APP.dh(a,"active","active");$APP.eh(a,"variant","variant","default");Object.defineProperty(a,"progress",{get:function(){return JU(this.getAttribute("progress"))},set:function(b){return b==null?this.removeAttribute("progress"):
12
+ this.setAttribute("progress",""+$APP.Q.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"spinner",{get:function(){return KU(this.getAttribute("spinner"))},set:function(b){return $APP.n(b)?this.setAttribute("spinner",""):this.setAttribute("spinner","false")},enumerable:!0,configurable:!0});return $APP.eh(a,"overlay","overlay","solid")},eV=function(a){PU(a);SU(a);cV(a);return null},fV=function(a){SU(a);return null},gV=function(a,b,c,d){$APP.M(c,d)&&cV(a);return null},iV=function(){return $APP.Yg("x-splash",
13
+ new $APP.N(null,5,[$APP.Pg,hV,$APP.Qg,eV,$APP.Rg,fV,$APP.Sg,gV,$APP.Wg,dV],null))},LU=new $APP.F(null,"overlay-el","overlay-el",-308547109),MU=new $APP.F(null,"content-el","content-el",-1423019925),NU=new $APP.F(null,"spinner-el","spinner-el",-1536400516),OU=new $APP.F(null,"bar-el","bar-el",2050414242),aV=new $APP.F(null,"spinner?","spinner?",939139177),$U=new $APP.F(null,"active?","active?",459499776),VU=new $APP.F(null,"active-present?","active-present?",73064660),WU=new $APP.F(null,"spinner-attr",
14
+ "spinner-attr",-479327548),XU=new $APP.F(null,"overlay-raw","overlay-raw",1018775670),bV=new $APP.F(null,"overlay","overlay",-139131598);var hV=["active","variant","progress","spinner","overlay"];$APP.Yd(["x-splash-hidden",new $APP.N(null,2,[$APP.Z,$APP.Zd,$APP.Fn,!1],null)]);var YU=new $APP.O(null,new $APP.N(null,3,["minimal",null,"branded",null,"default",null],null),null),ZU=new $APP.O(null,new $APP.N(null,3,["transparent",null,"solid",null,"blur",null],null),null);$APP.ca("baredom.exports.x_splash.init",iV);export const init=iV;
package/dist/x-stat.js CHANGED
@@ -1,13 +1,11 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var nS=function(a,b,c){return $APP.I(b,a)?a:c},oS=function(a){return $APP.n($APP.n(a)?$APP.N("",a):a)?a:null},xS=function(a){var b=$APP.M(a),c=$APP.D(b,pS),d=$APP.D(b,qS),e=$APP.D(b,$APP.vj),g=$APP.D(b,$APP.Vg);a=$APP.D(b,$APP.Yi);var h=$APP.D(b,$APP.Zl),l=$APP.D(b,$APP.Mh),m=$APP.D(b,$APP.yl);b=$APP.D(b,$APP.U);g=nS(g,rS,"default");e=nS(e,sS,"start");l=nS(l,tS,"md");c=nS(c,uS,"normal");d=nS(d,vS,"neutral");m=$APP.F(m);return $APP.zf([qS,$APP.vj,$APP.Vg,$APP.Yi,$APP.Zl,$APP.Mh,$APP.yl,$APP.U,wS,pS],
3
- [d,e,g,oS(a),oS(h),l,m,oS(b),m?"true":null,c])},yS=function(a){return $APP.zf([qS,$APP.vj,$APP.Vg,$APP.Yi,$APP.Zl,$APP.Mh,$APP.yl,$APP.U,pS],[a.getAttribute("trend"),a.getAttribute("align"),a.getAttribute("variant"),a.getAttribute("value"),a.getAttribute("hint"),a.getAttribute("size"),a.hasAttribute("loading"),a.getAttribute("label"),a.getAttribute("emphasis")])},zS=function(a,b){a.setAttribute("role","figure");var c=wS.g(b);$APP.n(c)?a.setAttribute("aria-busy",c):a.removeAttribute("aria-busy");b=
4
- $APP.U.g(b);$APP.n(b)?a.setAttribute("aria-label",b):a.removeAttribute("aria-label")},AS=function(a,b){a.setAttribute("data-variant",$APP.Vg.g(b));a.setAttribute("data-align",$APP.vj.g(b));a.setAttribute("data-size",$APP.Mh.g(b));a.setAttribute("data-emphasis",pS.g(b));a.setAttribute("data-trend",qS.g(b));$APP.n($APP.yl.g(b))?a.setAttribute("data-loading","true"):a.removeAttribute("data-loading")},BS=function(a){var b=xS(yS(a)),c=$APP.k(a,"__x_stat_base"),d=$APP.k(a,"__x_stat_label"),e=$APP.k(a,"__x_stat_value"),
5
- g=$APP.k(a,"__x_stat_hint");return $APP.n(c)?(zS(a,b),AS(c,b),d.textContent=function(){var h=$APP.U.g(b);return $APP.n(h)?h:""}(),e.textContent=function(){var h=$APP.Yi.g(b);return $APP.n(h)?h:""}(),g.textContent=function(){var h=$APP.Zl.g(b);return $APP.n(h)?h:""}()):null},CS=function(a){if(!$APP.Dg(a,"__x_stat_initialized")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("div"),
6
- l=document.createElement("div"),m=document.createElement("div"),p=document.createElement("span"),q=document.createElement("span"),v=document.createElement("span"),x=document.createElement("slot"),y=document.createElement("slot"),A=document.createElement("slot"),C=document.createElement("slot"),E=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-stat-background:transparent;--x-stat-color:var(--x-color-text,inherit);--x-stat-muted-color:var(--x-color-text-muted,rgba(0,0,0,0.55));--x-stat-border-color:var(--x-color-border,transparent);--x-stat-radius:var(--x-radius-md,12px);--x-stat-padding:16px;--x-stat-gap:6px;--x-stat-label-color:var(--x-stat-muted-color);--x-stat-label-size:12px;--x-stat-value-color:var(--x-stat-color);--x-stat-value-size:20px;--x-stat-hint-color:var(--x-stat-muted-color);--x-stat-hint-size:12px;--x-stat-icon-color:var(--x-stat-color);--x-stat-positive-color:var(--x-color-success,#16a34a);--x-stat-warning-color:var(--x-color-warning,#d97706);--x-stat-danger-color:var(--x-color-danger,#dc2626);--x-stat-transition-duration:var(--x-transition-duration,120ms);--x-stat-transition-timing:var(--x-transition-easing,ease);--x-stat-loading-opacity:0.6;}@media (prefers-color-scheme:dark){:host{--x-stat-muted-color:var(--x-color-text-muted,rgba(255,255,255,0.55));--x-stat-positive-color:var(--x-color-success,#4ade80);--x-stat-warning-color:var(--x-color-warning,#fbbf24);--x-stat-danger-color:var(--x-color-danger,#f87171);}}:host([variant\x3d'positive']){--x-stat-value-color:var(--x-stat-positive-color);}:host([variant\x3d'warning']){--x-stat-value-color:var(--x-stat-warning-color);}:host([variant\x3d'danger']){--x-stat-value-color:var(--x-stat-danger-color);}:host([variant\x3d'subtle']){--x-stat-value-color:var(--x-stat-muted-color);}[part\x3dbase]{display:grid;gap:var(--x-stat-gap);padding:var(--x-stat-padding);border-radius:var(--x-stat-radius);background:var(--x-stat-background);border:1px solid var(--x-stat-border-color);color:var(--x-stat-color);transition:background var(--x-stat-transition-duration) var(--x-stat-transition-timing),border-color var(--x-stat-transition-duration) var(--x-stat-transition-timing),color var(--x-stat-transition-duration) var(--x-stat-transition-timing),opacity var(--x-stat-transition-duration) var(--x-stat-transition-timing);}[part\x3dbase][data-align\x3d'center']{text-align:center;}[part\x3dbase][data-align\x3d'end']{text-align:end;}[part\x3dbase][data-size\x3d'sm'] [part\x3dvalue]{font-size:calc(var(--x-stat-value-size) * 0.8);}[part\x3dbase][data-size\x3d'lg'] [part\x3dvalue]{font-size:calc(var(--x-stat-value-size) * 1.6);}[part\x3dbase][data-emphasis\x3d'high'] [part\x3dvalue]{font-weight:800;}[part\x3dicon]{flex:0 0 auto;color:var(--x-stat-icon-color);line-height:1;}slot[name\x3dicon]::slotted(*){display:block;}[part\x3dlabel]{font-size:var(--x-stat-label-size);color:var(--x-stat-label-color);}[part\x3dvalue]{font-weight:600;font-size:var(--x-stat-value-size);color:var(--x-stat-value-color);}[part\x3dhint]{font-size:var(--x-stat-hint-size);color:var(--x-stat-hint-color);}[part\x3dbase][data-loading\x3d'true']{opacity:var(--x-stat-loading-opacity);}@media (prefers-reduced-motion:reduce){[part\x3dbase]{transition:none;}}";
7
- d.setAttribute("part","base");e.setAttribute("part","icon");g.setAttribute("part","body");h.setAttribute("part","label");l.setAttribute("part","value");m.setAttribute("part","hint");x.setAttribute("name","icon");y.setAttribute("name","label");A.setAttribute("name","value");C.setAttribute("name","hint");e.appendChild(x);h.appendChild(y);h.appendChild(p);l.appendChild(A);l.appendChild(q);m.appendChild(C);m.appendChild(v);g.appendChild(h);g.appendChild(l);g.appendChild(m);g.appendChild(E);d.appendChild(e);
8
- d.appendChild(g);b.appendChild(c);b.appendChild(d);a.__x_stat_root=b;a.__x_stat_base=d;a.__x_stat_label=p;a.__x_stat_value=q;a.__x_stat_hint=v;a.__x_stat_initialized=!0}BS(a);return a},DS=function(a,b){Object.defineProperty(a,b,{get:function(){var c=this.getAttribute(b);return $APP.n(c)?c:""},set:function(c){return $APP.n(c)?this.setAttribute(b,""+$APP.T.g(c)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},ES=function(a){DS(a,"variant");DS(a,"align");DS(a,"size");DS(a,"emphasis");DS(a,
9
- "trend");DS(a,"label");DS(a,"value");DS(a,"hint");Object.defineProperty(a,"loading",{get:function(){return this.hasAttribute("loading")},set:function(b){return $APP.n(b)?this.setAttribute("loading",""):this.removeAttribute("loading")},enumerable:!0,configurable:!0})},GS=function(){var a=class extends HTMLElement{};a.observedAttributes=FS;a.prototype.connectedCallback=function(){return CS(this)};a.prototype.attributeChangedCallback=function(){return $APP.Dg(this,"__x_stat_initialized")?BS(this):CS(this)};
10
- ES(a.prototype);return a},HS=function(){return $APP.n(customElements.get("x-stat"))?null:customElements.define("x-stat",GS())},pS=new $APP.K(null,"emphasis","emphasis",293543451),wS=new $APP.K(null,"aria-busy","aria-busy",793864247),qS=new $APP.K(null,"trend","trend",54563841);var FS="variant align size emphasis trend loading label value hint".split(" "),rS=new $APP.S(null,new $APP.Q(null,5,["warning",null,"positive",null,"subtle",null,"danger",null,"default",null],null),null),sS=new $APP.S(null,new $APP.Q(null,3,["center",null,"start",null,"end",null],null),null),tS=new $APP.S(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),uS=new $APP.S(null,new $APP.Q(null,2,["high",null,"normal",null],null),null),vS=new $APP.S(null,new $APP.Q(null,3,["neutral",null,
11
- "up",null,"down",null],null),null);
12
- $APP.zf([qS,$APP.vj,$APP.Vg,$APP.Yi,$APP.Zl,$APP.Mh,$APP.yl,$APP.U,pS],[new $APP.Q(null,4,[$APP.nl,"trend",$APP.Z,$APP.Y,$APP.li,"neutral",$APP.ni,!0],null),new $APP.Q(null,4,[$APP.nl,"align",$APP.Z,$APP.Y,$APP.li,"start",$APP.ni,!0],null),new $APP.Q(null,4,[$APP.nl,"variant",$APP.Z,$APP.Y,$APP.li,"default",$APP.ni,!0],null),new $APP.Q(null,4,[$APP.nl,"value",$APP.Z,$APP.Y,$APP.li,"",$APP.ni,!0],null),new $APP.Q(null,4,[$APP.nl,"hint",$APP.Z,$APP.Y,$APP.li,"",$APP.ni,!0],null),new $APP.Q(null,4,[$APP.nl,
13
- "size",$APP.Z,$APP.Y,$APP.li,"md",$APP.ni,!0],null),new $APP.Q(null,4,[$APP.nl,"loading",$APP.Z,$APP.Zj,$APP.li,!1,$APP.ni,!0],null),new $APP.Q(null,4,[$APP.nl,"label",$APP.Z,$APP.Y,$APP.li,"",$APP.ni,!0],null),new $APP.Q(null,4,[$APP.nl,"emphasis",$APP.Z,$APP.Y,$APP.li,"normal",$APP.ni,!0],null)]);$APP.ha("baredom.exports.x_stat.init",HS);export const init=HS;
2
+ var lW=function(a,b,c){return $APP.Zc(b,a)?a:c},mW=function(a){return $APP.n($APP.n(a)?$APP.M("",a):a)?a:null},vW=function(a){var b=$APP.J(a),c=$APP.C(b,nW),d=$APP.C(b,oW),e=$APP.C(b,$APP.Ik),f=$APP.C(b,$APP.ii);a=$APP.C(b,$APP.Gh);var h=$APP.C(b,$APP.rn),l=$APP.C(b,$APP.bj),m=$APP.C(b,$APP.Km);b=$APP.C(b,$APP.X);f=lW(f,pW,"default");e=lW(e,qW,"start");l=lW(l,rW,"md");c=lW(c,sW,"normal");d=lW(d,tW,"neutral");m=$APP.E(m);return $APP.Lf([oW,$APP.Ik,$APP.ii,$APP.Gh,$APP.rn,$APP.bj,$APP.Km,$APP.X,uW,
3
+ nW],[d,e,f,mW(a),mW(h),l,m,mW(b),m?"true":null,c])},wW=function(a){return $APP.Lf([oW,$APP.Ik,$APP.ii,$APP.Gh,$APP.rn,$APP.bj,$APP.Km,$APP.X,nW],[a.getAttribute("trend"),a.getAttribute("align"),a.getAttribute("variant"),a.getAttribute("value"),a.getAttribute("hint"),a.getAttribute("size"),a.hasAttribute("loading"),a.getAttribute("label"),a.getAttribute("emphasis")])},xW=function(a,b){a.setAttribute("role","figure");var c=uW.g(b);$APP.n(c)?a.setAttribute("aria-busy",c):a.removeAttribute("aria-busy");
4
+ b=$APP.X.g(b);$APP.n(b)?a.setAttribute("aria-label",b):a.removeAttribute("aria-label")},yW=function(a,b){a.setAttribute("data-variant",$APP.ii.g(b));a.setAttribute("data-align",$APP.Ik.g(b));a.setAttribute("data-size",$APP.bj.g(b));a.setAttribute("data-emphasis",nW.g(b));a.setAttribute("data-trend",oW.g(b));$APP.n($APP.Km.g(b))?a.setAttribute("data-loading","true"):a.removeAttribute("data-loading")},zW=function(a){var b=vW(wW(a)),c=$APP.k(a,"__xStatBase"),d=$APP.k(a,"__xStatLabel"),e=$APP.k(a,"__xStatValue"),
5
+ f=$APP.k(a,"__xStatHint");return $APP.n(c)?(xW(a,b),yW(c,b),d.textContent=function(){var h=$APP.X.g(b);return $APP.n(h)?h:""}(),e.textContent=function(){var h=$APP.Gh.g(b);return $APP.n(h)?h:""}(),f.textContent=function(){var h=$APP.rn.g(b);return $APP.n(h)?h:""}()):null},AW=function(a){if(!$APP.$g(a,"__xStatInitialized")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("div"),h=document.createElement("div"),
6
+ l=document.createElement("div"),m=document.createElement("div"),q=document.createElement("span"),r=document.createElement("span"),v=document.createElement("span"),x=document.createElement("slot"),y=document.createElement("slot"),A=document.createElement("slot"),D=document.createElement("slot"),G=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-stat-background:transparent;--x-stat-color:var(--x-color-text,inherit);--x-stat-muted-color:var(--x-color-text-muted,rgba(0,0,0,0.55));--x-stat-border-color:var(--x-color-border,transparent);--x-stat-radius:var(--x-radius-md,12px);--x-stat-padding:16px;--x-stat-gap:6px;--x-stat-label-color:var(--x-stat-muted-color);--x-stat-label-size:12px;--x-stat-value-color:var(--x-stat-color);--x-stat-value-size:20px;--x-stat-hint-color:var(--x-stat-muted-color);--x-stat-hint-size:12px;--x-stat-icon-color:var(--x-stat-color);--x-stat-positive-color:var(--x-color-success,#16a34a);--x-stat-warning-color:var(--x-color-warning,#d97706);--x-stat-danger-color:var(--x-color-danger,#dc2626);--x-stat-transition-duration:var(--x-transition-duration,120ms);--x-stat-transition-timing:var(--x-transition-easing,ease);--x-stat-loading-opacity:0.6;}@media (prefers-color-scheme:dark){:host{--x-stat-muted-color:var(--x-color-text-muted,rgba(255,255,255,0.55));--x-stat-positive-color:var(--x-color-success,#4ade80);--x-stat-warning-color:var(--x-color-warning,#fbbf24);--x-stat-danger-color:var(--x-color-danger,#f87171);}}:host([variant\x3d'positive']){--x-stat-value-color:var(--x-stat-positive-color);}:host([variant\x3d'warning']){--x-stat-value-color:var(--x-stat-warning-color);}:host([variant\x3d'danger']){--x-stat-value-color:var(--x-stat-danger-color);}:host([variant\x3d'subtle']){--x-stat-value-color:var(--x-stat-muted-color);}[part\x3dbase]{display:grid;gap:var(--x-stat-gap);padding:var(--x-stat-padding);border-radius:var(--x-stat-radius);background:var(--x-stat-background);border:1px solid var(--x-stat-border-color);color:var(--x-stat-color);transition:background var(--x-stat-transition-duration) var(--x-stat-transition-timing),border-color var(--x-stat-transition-duration) var(--x-stat-transition-timing),color var(--x-stat-transition-duration) var(--x-stat-transition-timing),opacity var(--x-stat-transition-duration) var(--x-stat-transition-timing);}[part\x3dbase][data-align\x3d'center']{text-align:center;}[part\x3dbase][data-align\x3d'end']{text-align:end;}[part\x3dbase][data-size\x3d'sm'] [part\x3dvalue]{font-size:calc(var(--x-stat-value-size) * 0.8);}[part\x3dbase][data-size\x3d'lg'] [part\x3dvalue]{font-size:calc(var(--x-stat-value-size) * 1.6);}[part\x3dbase][data-emphasis\x3d'high'] [part\x3dvalue]{font-weight:800;}[part\x3dicon]{flex:0 0 auto;color:var(--x-stat-icon-color);line-height:1;}slot[name\x3dicon]::slotted(*){display:block;}[part\x3dlabel]{font-size:var(--x-stat-label-size);color:var(--x-stat-label-color);}[part\x3dvalue]{font-weight:600;font-size:var(--x-stat-value-size);color:var(--x-stat-value-color);}[part\x3dhint]{font-size:var(--x-stat-hint-size);color:var(--x-stat-hint-color);}[part\x3dbase][data-loading\x3d'true']{opacity:var(--x-stat-loading-opacity);}@media (prefers-reduced-motion:reduce){[part\x3dbase]{transition:none;}}";
7
+ d.setAttribute("part","base");e.setAttribute("part","icon");f.setAttribute("part","body");h.setAttribute("part","label");l.setAttribute("part","value");m.setAttribute("part","hint");x.setAttribute("name","icon");y.setAttribute("name","label");A.setAttribute("name","value");D.setAttribute("name","hint");e.appendChild(x);h.appendChild(y);h.appendChild(q);l.appendChild(A);l.appendChild(r);m.appendChild(D);m.appendChild(v);f.appendChild(h);f.appendChild(l);f.appendChild(m);f.appendChild(G);d.appendChild(e);
8
+ d.appendChild(f);b.appendChild(c);b.appendChild(d);a.__xStatRoot=b;a.__xStatBase=d;a.__xStatLabel=q;a.__xStatValue=r;a.__xStatHint=v;a.__xStatInitialized=!0}zW(a);return a},BW=function(a){return AW(a)},CW=function(a){return $APP.$g(a,"__xStatInitialized")?zW(a):AW(a)},EW=function(a){return $APP.jh(a,DW)},GW=function(){return $APP.Yg("x-stat",new $APP.N(null,4,[$APP.Pg,FW,$APP.Qg,BW,$APP.Sg,CW,$APP.Wg,EW],null))},nW=new $APP.F(null,"emphasis","emphasis",293543451),uW=new $APP.F(null,"aria-busy","aria-busy",
9
+ 793864247),oW=new $APP.F(null,"trend","trend",54563841);var FW="variant align size emphasis trend loading label value hint".split(" "),pW=new $APP.O(null,new $APP.N(null,5,["warning",null,"positive",null,"subtle",null,"danger",null,"default",null],null),null),qW=new $APP.O(null,new $APP.N(null,3,["center",null,"start",null,"end",null],null),null),rW=new $APP.O(null,new $APP.N(null,3,["md",null,"lg",null,"sm",null],null),null),sW=new $APP.O(null,new $APP.N(null,2,["high",null,"normal",null],null),null),tW=new $APP.O(null,new $APP.N(null,3,["neutral",null,
10
+ "up",null,"down",null],null),null),DW=$APP.Lf([oW,$APP.Ik,$APP.ii,$APP.Gh,$APP.rn,$APP.bj,$APP.Km,$APP.X,nW],[new $APP.N(null,3,[$APP.R,$APP.U,$APP.S,"trend",$APP.ih,""],null),new $APP.N(null,3,[$APP.R,$APP.U,$APP.S,"align",$APP.ih,""],null),new $APP.N(null,3,[$APP.R,$APP.U,$APP.S,"variant",$APP.ih,""],null),new $APP.N(null,3,[$APP.R,$APP.U,$APP.S,"value",$APP.ih,""],null),new $APP.N(null,3,[$APP.R,$APP.U,$APP.S,"hint",$APP.ih,""],null),new $APP.N(null,3,[$APP.R,$APP.U,$APP.S,"size",$APP.ih,""],null),
11
+ new $APP.N(null,2,[$APP.R,$APP.T,$APP.S,"loading"],null),new $APP.N(null,3,[$APP.R,$APP.U,$APP.S,"label",$APP.ih,""],null),new $APP.N(null,3,[$APP.R,$APP.U,$APP.S,"emphasis",$APP.ih,""],null)]);$APP.ca("baredom.exports.x_stat.init",GW);export const init=GW;