@vanelsas/baredom 2.8.0 → 2.9.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 (110) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/custom-elements.json +467 -0
  3. package/dist/baredom.d.ts +5 -0
  4. package/dist/base.js +453 -450
  5. package/dist/integrity.json +102 -97
  6. package/dist/x-alert.js +17 -17
  7. package/dist/x-avatar-group.js +9 -9
  8. package/dist/x-avatar.js +14 -14
  9. package/dist/x-badge.js +9 -9
  10. package/dist/x-bento-grid.js +5 -5
  11. package/dist/x-bento-item.js +4 -4
  12. package/dist/x-breadcrumbs.js +13 -13
  13. package/dist/x-button.js +17 -16
  14. package/dist/x-cancel-dialogue.js +13 -13
  15. package/dist/x-card.js +7 -7
  16. package/dist/x-carousel.js +31 -31
  17. package/dist/x-chart.js +46 -46
  18. package/dist/x-checkbox.js +10 -10
  19. package/dist/x-chip.js +1 -1
  20. package/dist/x-collapse.js +8 -8
  21. package/dist/x-color-picker.js +45 -44
  22. package/dist/x-combobox.js +24 -24
  23. package/dist/x-command-palette.js +24 -24
  24. package/dist/x-confetti.d.ts +50 -0
  25. package/dist/x-confetti.js +23 -0
  26. package/dist/x-container.js +4 -4
  27. package/dist/x-context-menu.js +20 -20
  28. package/dist/x-copy.js +20 -20
  29. package/dist/x-currency-field.js +22 -22
  30. package/dist/x-date-picker.js +40 -40
  31. package/dist/x-divider.js +8 -8
  32. package/dist/x-drawer.js +9 -9
  33. package/dist/x-dropdown.js +9 -9
  34. package/dist/x-fieldset.js +4 -4
  35. package/dist/x-file-download.js +5 -5
  36. package/dist/x-file-upload.js +20 -20
  37. package/dist/x-form-field.js +14 -14
  38. package/dist/x-form.js +9 -9
  39. package/dist/x-gaussian-blur.js +12 -12
  40. package/dist/x-grid.js +6 -6
  41. package/dist/x-i18n-provider.js +7 -7
  42. package/dist/x-i18n.js +4 -4
  43. package/dist/x-icon.js +6 -6
  44. package/dist/x-image.js +17 -17
  45. package/dist/x-kbd.d.ts +17 -0
  46. package/dist/x-kbd.js +17 -0
  47. package/dist/x-kinetic-canvas.js +25 -25
  48. package/dist/x-kinetic-font.js +27 -27
  49. package/dist/x-kinetic-typography.js +33 -33
  50. package/dist/x-liquid-dock.js +38 -39
  51. package/dist/x-liquid-fill.js +44 -44
  52. package/dist/x-liquid-glass.js +47 -47
  53. package/dist/x-menu-item.js +8 -8
  54. package/dist/x-menu.js +9 -9
  55. package/dist/x-metaball-cursor.js +25 -26
  56. package/dist/x-modal.js +10 -10
  57. package/dist/x-morph-stack.js +37 -37
  58. package/dist/x-multi-combobox.js +34 -34
  59. package/dist/x-navbar.js +12 -12
  60. package/dist/x-neural-glow.js +32 -32
  61. package/dist/x-notification-center.js +9 -9
  62. package/dist/x-organic-divider.js +17 -17
  63. package/dist/x-organic-progress.js +37 -37
  64. package/dist/x-organic-shape.js +13 -13
  65. package/dist/x-otp-input.d.ts +55 -0
  66. package/dist/x-otp-input.js +23 -0
  67. package/dist/x-pagination.js +15 -15
  68. package/dist/x-particle-button.js +50 -50
  69. package/dist/x-popover.js +25 -25
  70. package/dist/x-progress-circle.js +8 -8
  71. package/dist/x-progress.js +10 -10
  72. package/dist/x-proximity-list.d.ts +43 -0
  73. package/dist/x-proximity-list.js +20 -0
  74. package/dist/x-radio.js +11 -11
  75. package/dist/x-ripple-effect.js +10 -10
  76. package/dist/x-scroll-parallax.js +18 -18
  77. package/dist/x-scroll-stack.js +17 -17
  78. package/dist/x-scroll-story.js +32 -32
  79. package/dist/x-scroll-timeline.js +45 -45
  80. package/dist/x-scroll.js +38 -38
  81. package/dist/x-search-field.js +14 -14
  82. package/dist/x-select.js +9 -9
  83. package/dist/x-sidebar.js +16 -16
  84. package/dist/x-skeleton-group.js +12 -12
  85. package/dist/x-skeleton.js +1 -1
  86. package/dist/x-slider.js +14 -14
  87. package/dist/x-soft-body.js +21 -21
  88. package/dist/x-spacer.js +4 -4
  89. package/dist/x-spinner.js +4 -4
  90. package/dist/x-splash.js +12 -12
  91. package/dist/x-spotlight-card.d.ts +19 -0
  92. package/dist/x-spotlight-card.js +13 -0
  93. package/dist/x-stat.js +10 -10
  94. package/dist/x-stepper.js +14 -14
  95. package/dist/x-switch.js +10 -10
  96. package/dist/x-tab.js +6 -6
  97. package/dist/x-table-cell.js +18 -18
  98. package/dist/x-table-row.js +8 -8
  99. package/dist/x-table.js +12 -12
  100. package/dist/x-tabs.js +11 -11
  101. package/dist/x-text-area.js +17 -17
  102. package/dist/x-theme.js +25 -25
  103. package/dist/x-timeline-item.js +21 -21
  104. package/dist/x-timeline.js +8 -8
  105. package/dist/x-toast.js +22 -22
  106. package/dist/x-toaster.js +8 -8
  107. package/dist/x-tooltip.js +11 -11
  108. package/dist/x-typography.js +9 -9
  109. package/dist/x-welcome-tour.js +59 -59
  110. package/package.json +27 -2
package/dist/x-slider.js CHANGED
@@ -1,16 +1,16 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
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,
2
+ var $Q=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},dR=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.Hf([$APP.yl,$APP.fl,$APP.Dl,$APP.Ok,$APP.Fh,$APP.gh,$APP.sl,$APP.bj,$APP.qm,$APP.X,$APP.Fo,$APP.on,$APP.ko],[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.H(h);h=$APP.C(l,$APP.on);var m=$APP.C(l,$APP.ko),q=$APP.C(l,$APP.yl),r=$APP.C(l,$APP.fl),v=$APP.C(l,$APP.Dl),w=$APP.C(l,$APP.Fh),y=$APP.C(l,$APP.Ok),A=$APP.C(l,$APP.gh),D=$APP.C(l,$APP.sl),G=$APP.C(l,$APP.bj),I=$APP.C(l,$APP.X),J=$APP.C(l,$APP.qm);l=$APP.C(l,$APP.Fo);q=$Q(q,0);J=$Q(J,100);w=$APP.Di.j($APP.Ci.j($Q(w,
4
+ 0),q),J);$APP.B.j(m,"any")?m="any":(m=typeof m==="string"?parseFloat(m):NaN,m=$APP.p(isNaN(m))&&m>0?""+$APP.R.i(m):"1");G=typeof G==="string"&&$APP.Vc(aR,G)?G:"md";r=$APP.E(r);A=$APP.E(A);v=$APP.E(v);var K=J>q?$APP.Di.j($APP.Ci.j((w-q)/(J-q)*100,0),100):0;h=$APP.Hf([$APP.yl,$APP.Ko,$APP.Ok,$APP.Fh,$APP.sl,bR,$APP.bj,$APP.qm,$APP.X,$APP.Fo,$APP.on,$APP.Y,$APP.ko,cR],[q,A,typeof y==="string"&&$APP.M("",y)?y:null,w,typeof D==="string"&&$APP.M("",D)?D:null,v,G,J,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.H(h);y=$APP.C(m,$APP.on);D=$APP.C(m,$APP.Y);I=$APP.C(m,$APP.ko);l=$APP.C(m,cR);v=$APP.C(m,$APP.yl);q=$APP.C(m,$APP.Ko);h=$APP.C(m,$APP.Fh);A=$APP.C(m,$APP.sl);J=$APP.C(m,bR);r=$APP.C(m,$APP.bj);w=$APP.C(m,$APP.X);G=$APP.C(m,$APP.qm);m=$APP.C(m,$APP.Fo);K=(K=w!=null)?K:J;c.setAttribute("data-size",r);$APP.$g(a,"data-disabled",D);$APP.$g(a,"data-readonly",q);d.style.display=$APP.n(K)?"flex":"none";e.textContent=
6
+ $APP.n(w)?w:"";e.style.display=w!=null?"":"none";f.textContent=$APP.n(J)?""+$APP.R.i(h):"";f.style.display=$APP.n(J)?"":"none";a.style.setProperty("--_x-slider-fill",""+$APP.R.i(l.toFixed(2))+"%");$APP.Zg(b,"min",""+$APP.R.i(v));$APP.Zg(b,"max",""+$APP.R.i(G));b.setAttribute("step",I);$APP.M(b.value,""+$APP.R.i(h))&&(b.value=""+$APP.R.i(h));$APP.Zg(b,"aria-valuemin",""+$APP.R.i(v));$APP.Zg(b,"aria-valuemax",""+$APP.R.i(G));$APP.Zg(b,"aria-valuenow",""+$APP.R.i(h));b.setAttribute("aria-readonly",$APP.n(q)?
7
+ "true":"false");$APP.n(y)?b.setAttribute("aria-label",y):w!=null?b.setAttribute("aria-label",w):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.R.i(h)):null}return null},eR=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.bh(a,"x-slider-change-request",{value:d,previousValue:e,min:f,max:h})?(a.setAttribute("value",c),$APP.ah(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"}()}},fR=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.ah(a,"x-slider-change",{value:b,min:c,max:d})}},hR=function(a){return function(b){var c=a.hasAttribute("readonly");c=$APP.n(c)?$APP.Vc(gR,b.key):c;return $APP.n(c)?
10
+ b.preventDefault():null}},iR=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},jR=function(a,b){$APP.$g(a,"disabled",$APP.E(b));return dR(a)},kR=function(a){$APP.Zg(a,"value",""+$APP.R.i(0));return dR(a)},lR=function(a){if(!$APP.n($APP.k(a,
11
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;
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)}iR(a);b=$APP.k(a,"__xSliderRefs");$APP.n(b)&&(b=$APP.k(b,"input"),c=eR(a),
13
+ d=fR(a),e=hR(a),f={input:c,change:d,keydown:e},b.addEventListener("input",c),b.addEventListener("change",d),b.addEventListener("keydown",e),a.__xSliderHandlers=f);return dR(a)},mR=function(a){return iR(a)},nR=function(a){return dR(a)},pR=function(a){return $APP.ih(a,oR)},rR=function(){return $APP.Wg("x-slider",new $APP.P(null,8,[$APP.Mg,qR,$APP.Ng,lR,$APP.Og,mR,$APP.Qg,nR,$APP.Rg,!0,$APP.Sg,jR,$APP.Tg,kR,$APP.Ug,pR],null))},bR=new $APP.F(null,"show-value?","show-value?",-1960833108),cR=new $APP.F(null,
14
+ "fill-percent","fill-percent",-1813848228);var aR=new $APP.Q(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),qR="value min max step disabled readonly name label show-value size aria-label aria-labelledby aria-describedby".split(" "),oR=$APP.Hf([$APP.yl,$APP.fl,$APP.ej,$APP.Ok,$APP.Fh,$APP.bj,$APP.Wn,$APP.qm,$APP.X,$APP.ko],[new $APP.P(null,2,[$APP.S,$APP.V,$APP.T,"min"],null),new $APP.P(null,2,[$APP.S,$APP.U,$APP.T,"disabled"],null),new $APP.P(null,2,[$APP.S,$APP.U,$APP.T,"show-value"],null),new $APP.P(null,2,[$APP.S,$APP.V,
15
+ $APP.T,"name"],null),new $APP.P(null,2,[$APP.S,$APP.V,$APP.T,"value"],null),new $APP.P(null,2,[$APP.S,$APP.V,$APP.T,"size"],null),new $APP.P(null,2,[$APP.S,$APP.U,$APP.T,"readonly"],null),new $APP.P(null,2,[$APP.S,$APP.V,$APP.T,"max"],null),new $APP.P(null,2,[$APP.S,$APP.V,$APP.T,"label"],null),new $APP.P(null,2,[$APP.S,$APP.V,$APP.T,"step"],null)]);
16
+ $APP.Ud(["x-slider-change-request",new $APP.P(null,2,[$APP.Un,!0,$APP.Z,new $APP.P(null,4,[$APP.Fh,$APP.W,$APP.mm,$APP.W,$APP.yl,$APP.W,$APP.qm,$APP.W],null)],null),"x-slider-input",new $APP.P(null,1,[$APP.Z,new $APP.P(null,3,[$APP.Fh,$APP.W,$APP.yl,$APP.W,$APP.qm,$APP.W],null)],null),"x-slider-change",new $APP.P(null,1,[$APP.Z,new $APP.P(null,3,[$APP.Fh,$APP.W,$APP.yl,$APP.W,$APP.qm,$APP.W],null)],null)]);var gR=new $APP.Q(null,new $APP.P(null,8,["PageDown",null,"ArrowUp",null,"ArrowDown",null,"End",null,"ArrowRight",null,"ArrowLeft",null,"PageUp",null,"Home",null],null),null);$APP.da("baredom.exports.x_slider.init",rR);export const init=rR;
@@ -1,23 +1,23 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
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);
2
+ var BQ=function(a,b,c,d){if(typeof a==="string"){a=a.trim();if($APP.B.j(a,""))return b;a=parseFloat(a);return $APP.n(isNaN(a))?b:Math.min(d,Math.max(c,a))}return b},CQ=function(a,b,c,d,e,f){b=c+(e*(b-a)-f*c)*d;return[a+b*d,b]},DQ=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]},EQ=function(){return $APP.E(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},FQ=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}},HQ=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=GQ;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.P(null,4,[$APP.Qh,b,$APP.Cl,d,$APP.um,e,$APP.Lj,f],null)},KQ=function(a){a=new $APP.P(null,6,[$APP.Tn,a.getAttribute("stiffness"),$APP.Do,a.getAttribute("damping"),$APP.Vk,a.getAttribute("radius"),$APP.Zl,a.getAttribute("intensity"),IQ,a.getAttribute("grab-radius"),$APP.qk,a.getAttribute("disabled")],null);var b=$APP.H(a);a=
5
+ $APP.C(b,$APP.Tn);var c=$APP.C(b,$APP.Do),d=$APP.C(b,$APP.Vk),e=$APP.C(b,$APP.Zl),f=$APP.C(b,IQ);b=$APP.C(b,$APP.qk);return new $APP.P(null,6,[$APP.sn,BQ(a,180,10,1E3),$APP.gm,BQ(c,12,1,100),$APP.xo,BQ(d,16,6,200),$APP.Pl,BQ(e,1,0,5),JQ,BQ(f,80,10,500),$APP.Y,b!=null],null)},LQ=function(a,b,c){var d=$APP.xo.i($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
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;
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},MQ=function(a){var b=$APP.H($APP.k(a,"__xSoftBodyRefs"));b=$APP.C(b,$APP.um);var c=$APP.k(a,"__xSoftBodyCX");a=$APP.k(a,"__xSoftBodyCY");var d=[];d.push("M"+$APP.R.i(c[0].toFixed(2))+","+$APP.R.i(a[0].toFixed(2)));for(var e=0;;)if(e<20){var f=$APP.jd(e+19,20),h=e,l=$APP.jd(e+1,20),m=$APP.jd(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],w=a[l]-a[h];w=Math.sqrt(v*v+w*w)*.4;v=Math.sqrt(q*q+r*r);v=v>w?w/(v+.001):1;r=a[h]+r*v;var y=Math.sqrt(f*f+m*m);w=y>w?w/(y+.001):1;f=c[l]-f*w;m=a[l]-m*w;d.push("C"+$APP.R.i((c[h]+q*v).toFixed(2))+","+$APP.R.i(r.toFixed(2))+" "+$APP.R.i(f.toFixed(2))+","+$APP.R.i(m.toFixed(2))+" "+$APP.R.i(c[l].toFixed(2))+","+$APP.R.i(a[l].toFixed(2)));e+=1}else break;d.push("Z");b.setAttribute("d",d.join(""))},NQ=function(a){var b=$APP.H($APP.k(a,"__xSoftBodyRefs"));
9
+ b=$APP.C(b,$APP.um);var c=$APP.k(a,"__xSoftBodyW"),d=$APP.k(a,"__xSoftBodyH");a=$APP.xo.i($APP.k(a,"__xSoftBodyModel"));a=Math.max(6,Math.min(a,Math.min(c,d)/2));var e=.5522847498*a;c="M"+$APP.R.i(a.toFixed(2))+",0L"+$APP.R.i((c-a).toFixed(2))+",0C"+$APP.R.i((c-a+e).toFixed(2))+",0 "+$APP.R.i(c.toFixed(2))+","+$APP.R.i((a-e).toFixed(2))+" "+$APP.R.i(c.toFixed(2))+","+$APP.R.i(a.toFixed(2))+"L"+$APP.R.i(c.toFixed(2))+","+$APP.R.i((d-a).toFixed(2))+"C"+$APP.R.i(c.toFixed(2))+","+$APP.R.i((d-a+e).toFixed(2))+
10
+ " "+$APP.R.i((c-a+e).toFixed(2))+","+$APP.R.i(d.toFixed(2))+" "+$APP.R.i((c-a).toFixed(2))+","+$APP.R.i(d.toFixed(2))+"L"+$APP.R.i(a.toFixed(2))+","+$APP.R.i(d.toFixed(2))+"C"+$APP.R.i((a-e).toFixed(2))+","+$APP.R.i(d.toFixed(2))+" 0,"+$APP.R.i((d-a+e).toFixed(2))+" 0,"+$APP.R.i((d-a).toFixed(2))+"L0,"+$APP.R.i(a.toFixed(2))+"C0,"+$APP.R.i((a-e).toFixed(2))+" "+$APP.R.i((a-e).toFixed(2))+",0 "+$APP.R.i(a.toFixed(2))+",0Z";b.setAttribute("d",c)},PQ=function(a){$APP.n($APP.k(a,"__xSoftBodyRaf"))||($APP.fa(a,
11
+ "__xSoftBodyLF",performance.now()),$APP.fa(a,"__xSoftBodyRaf",requestAnimationFrame(function(){return OQ(a)})))},QQ=function(a){var b=$APP.k(a,"__xSoftBodyRaf");$APP.n(b)&&(cancelAnimationFrame(b),a.__xSoftBodyRaf=null)},RQ=function(a,b){var c=$APP.H($APP.k(a,"__xSoftBodyRefs"));c=$APP.C(c,$APP.Cl).getBoundingClientRect();a.__xSoftBodyPX=b.clientX-c.left;a.__xSoftBodyPY=b.clientY-c.top;return null},SQ=function(a){function b(){a.__xSoftBodyGrab=!1;$APP.ah(a,"x-soft-body-release",{});return null}function c(h){a.__xSoftBodyGrab=
12
+ !0;RQ(a,h);$APP.ah(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.i($APP.k(a,"__xSoftBodyModel"));h=$APP.n(h)?h:EQ();$APP.n(h)||PQ(a);return null}function f(h){return RQ(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)},TQ=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)},UQ=function(a){Object.defineProperty(a,"stiffness",{get:function(){var b=this.getAttribute("stiffness");return BQ(b,180,10,1E3)},set:function(b){return b==
14
+ null?this.removeAttribute("stiffness"):this.setAttribute("stiffness",""+$APP.R.i(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"damping",{get:function(){var b=this.getAttribute("damping");return BQ(b,12,1,100)},set:function(b){return b==null?this.removeAttribute("damping"):this.setAttribute("damping",""+$APP.R.i(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"radius",{get:function(){var b=this.getAttribute("radius");return BQ(b,16,6,200)},set:function(b){return b==null?
15
+ this.removeAttribute("radius"):this.setAttribute("radius",""+$APP.R.i(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"intensity",{get:function(){var b=this.getAttribute("intensity");return BQ(b,1,0,5)},set:function(b){return b==null?this.removeAttribute("intensity"):this.setAttribute("intensity",""+$APP.R.i(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"grabRadius",{get:function(){var b=this.getAttribute("grab-radius");return BQ(b,80,10,500)},set:function(b){return b==
16
+ null?this.removeAttribute("grab-radius"):this.setAttribute("grab-radius",""+$APP.R.i(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})},VQ=function(a){var b=KQ(a);a.__xSoftBodyModel=b;$APP.n($APP.k(a,"__xSoftBodyRefs"))||HQ(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.H($APP.k(a,"__xSoftBodyRefs"));$APP.C(e,$APP.Cl).setAttribute("viewBox","0 0 "+$APP.R.i(c)+" "+$APP.R.i(d));LQ(a,c,d);c=$APP.Y.i($APP.k(a,"__xSoftBodyModel"));c=$APP.n(c)?c:EQ();$APP.n(c)?NQ(a):(MQ(a),PQ(a))}}return null});a.__xSoftBodyRO=b;b.observe(a);TQ(a);SQ(a);return null},WQ=function(a){QQ(a);TQ(a);var b=$APP.k(a,"__xSoftBodyRO");$APP.n(b)&&
18
+ (b.disconnect(),a.__xSoftBodyRO=null);return null},XQ=function(a,b,c,d){$APP.M(c,d)&&$APP.n($APP.k(a,"__xSoftBodyRefs"))&&(b=KQ(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)&&(LQ(a,c,d),b=$APP.Y.i(b),b=$APP.n(b)?b:EQ(),$APP.n(b)?(QQ(a),NQ(a)):(MQ(a),PQ(a))));return null},ZQ=function(){return $APP.Wg("x-soft-body",new $APP.P(null,5,[$APP.Mg,YQ,$APP.Ng,VQ,$APP.Og,WQ,$APP.Qg,XQ,$APP.Ug,UQ],null))},JQ=new $APP.F(null,"grab-radius",
19
+ "grab-radius",771838535),IQ=new $APP.F(null,"grab-radius-raw","grab-radius-raw",-1019405976);var YQ="stiffness damping radius intensity grab-radius disabled".split(" ");$APP.Ud(["x-soft-body-grab",new $APP.P(null,2,[$APP.Z,$APP.Vd,$APP.Un,!1],null),"x-soft-body-release",new $APP.P(null,2,[$APP.Z,$APP.Vd,$APP.Un,!1],null)]);var GQ=":host{display:block;position:relative;background:none;overflow:visible;"+$APP.R.i("--x-soft-body-bg")+":var(--x-color-surface,#ffffff);"+$APP.R.i("--x-soft-body-border")+":var(--x-color-border,#e2e8f0);"+$APP.R.i("--x-soft-body-border-width")+":1.5;"+$APP.R.i("--x-soft-body-shadow")+":var(--x-shadow-sm,0 1px 3px rgba(0,0,0,0.1));"+$APP.R.i("--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.R.i("--x-soft-body-bg")+",#ffffff);stroke:var("+$APP.R.i("--x-soft-body-border")+",#e2e8f0);stroke-width:var("+$APP.R.i("--x-soft-body-border-width")+",1.5);filter:drop-shadow(var("+$APP.R.i("--x-soft-body-shadow")+",0 1px 3px rgba(0,0,0,0.1)));}[part\x3dcontent]{position:relative;background:none;padding:var("+$APP.R.i("--x-soft-body-padding")+",1rem);z-index:1;}@media(prefers-color-scheme:dark){:host{"+$APP.R.i("--x-soft-body-bg")+":var(--x-color-surface,#1e293b);"+$APP.R.i("--x-soft-body-border")+
21
+ ":var(--x-color-border,#475569);"+$APP.R.i("--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;}}",OQ=function OQ(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.sn.i(c),h=$APP.gm.i(c),l=$APP.Pl.i(c),m=JQ.i(c);c=$APP.k(a,"__xSoftBodyRX");var q=$APP.k(a,"__xSoftBodyRY"),r=$APP.k(a,"__xSoftBodyCX"),v=$APP.k(a,
22
+ "__xSoftBodyCY"),w=$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 J=c[d],K=q[d],ba=$APP.n(A)?DQ(J,K,D,G,m,l,I):[0,0];J=CQ(r[d],J+ba[0],w[d],e,f,h);K=CQ(v[d],K+ba[1],y[d],e,f,h);r[d]=J[0];w[d]=J[1];v[d]=K[0];y[d]=K[1];d+=1}else break;MQ(a);if($APP.n($APP.n(A)?A:!FQ(w,y)))$APP.fa(a,"__xSoftBodyRaf",requestAnimationFrame(function(){return OQ.i?
23
+ OQ.i(a):OQ.call(null,a)}));else{for(e=0;;)if(e<20)r[e]=c[e],v[e]=q[e],e+=1;else break;MQ(a);a.__xSoftBodyRaf=null}}return null};$APP.da("baredom.exports.x_soft_body.init",ZQ);export const init=ZQ;
package/dist/x-spacer.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
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;
2
+ var xV=function(a){return a!=null&&$APP.M((""+$APP.R.i(a)).trim().toLowerCase(),"false")},DV=function(a){var b=new $APP.P(null,3,[$APP.wn,a.getAttribute("size"),yV,a.getAttribute("axis"),zV,a.getAttribute("grow")],null);b=$APP.H(b);var c=$APP.C(b,$APP.wn),d=$APP.C(b,yV);b=$APP.C(b,zV);c=typeof c==="string"&&c.trim().length>0?c.trim():"1rem";d=typeof d==="string"?d.trim().toLowerCase():null;d=$APP.Vc(AV,d)?d:"vertical";b=new $APP.P(null,3,[$APP.bj,c,BV,d,CV,xV(b)],null);c=$APP.H(b);b=$APP.C(c,$APP.bj);
3
+ d=$APP.C(c,BV);c=$APP.C(c,CV);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},EV=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 DV(a)},FV=function(){return null},GV=function(a,b,c,d){b=$APP.M(c,d);return $APP.n(b?$APP.k(a,"__xSpacerRefs"):b)?DV(a):null},HV=function(a){return Object.defineProperty(a,"grow",{get:function(){return xV(this.getAttribute("grow"))},set:function(b){return $APP.n(b)?this.setAttribute("grow",""):this.removeAttribute("grow")},enumerable:!0,configurable:!0})},IV=function(a){$APP.dh(a,"size","size","1rem");$APP.dh(a,"axis","axis","vertical");return HV(a)},
5
+ KV=function(){return $APP.Wg("x-spacer",new $APP.P(null,5,[$APP.Mg,JV,$APP.Ng,EV,$APP.Og,FV,$APP.Qg,GV,$APP.Ug,IV],null))},BV=new $APP.F(null,"axis","axis",-1215390822),CV=new $APP.F(null,"grow?","grow?",2124334580),zV=new $APP.F(null,"grow-raw","grow-raw",441172903),yV=new $APP.F(null,"axis-raw","axis-raw",291213231);var JV=["size","axis","grow"],AV=new $APP.Q(null,new $APP.P(null,2,["vertical",null,"horizontal",null],null),null);$APP.da("baredom.exports.x_spacer.init",KV);export const init=KV;
package/dist/x-spinner.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
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;
2
+ var e7=function(a){var b=new $APP.P(null,3,[$APP.bj,a.getAttribute("size"),$APP.hi,a.getAttribute("variant"),$APP.X,a.getAttribute("label")],null);var c=$APP.H(b),d=$APP.C(c,$APP.bj);b=$APP.C(c,$APP.hi);c=$APP.C(c,$APP.X);d=typeof d==="string"&&$APP.Vc(vea,d)?d:"md";b=typeof b==="string"&&$APP.Vc(wea,b)?b:"default";c=typeof c==="string"&&$APP.M("",c.trim())?c.trim():"Loading";d=$APP.H(new $APP.P(null,3,[$APP.bj,d,$APP.hi,b,$APP.X,c],null));b=$APP.C(d,$APP.bj);c=$APP.C(d,$APP.hi);d=$APP.C(d,$APP.X);
3
+ a.setAttribute("data-size",b);a.setAttribute("data-variant",c);a.setAttribute("aria-label",d)},xea=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}e7(a);return null},yea=function(a,b,c,d){b=$APP.M(c,d);$APP.n(b?$APP.k(a,"__xSpinnerInit"):b)&&e7(a);return null},Aea=function(a){return $APP.ih(a,zea)},f7=function(){return $APP.Wg("x-spinner",new $APP.P(null,4,[$APP.Mg,Bea,$APP.Ng,xea,$APP.Qg,yea,$APP.Ug,Aea],null))};var Bea=["size","variant","label"],vea=new $APP.Q(null,new $APP.P(null,5,["xs",null,"md",null,"lg",null,"xl",null,"sm",null],null),null),wea=new $APP.Q(null,new $APP.P(null,5,["success",null,"warning",null,"primary",null,"danger",null,"default",null],null),null),zea=new $APP.P(null,3,[$APP.bj,new $APP.P(null,3,[$APP.S,$APP.V,$APP.T,"size",$APP.hh,"md"],null),$APP.hi,new $APP.P(null,3,[$APP.S,$APP.V,$APP.T,"variant",$APP.hh,"default"],null),$APP.X,new $APP.P(null,3,[$APP.S,$APP.V,$APP.T,"label",$APP.hh,
5
+ "Loading"],null)],null);$APP.da("baredom.exports.x_spinner.init",f7);export const init=f7;
package/dist/x-splash.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
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"),
2
+ var dY=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?null:$APP.Ci.j(0,$APP.Di.j(100,a))):null},eY=function(a){return a==null?!0:$APP.M((""+$APP.R.i(a)).trim().toLowerCase(),"false")},jY=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(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;
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.P(null,6,[$APP.Qh,b,fY,d,gY,e,hY,h,$APP.wk,l,iY,
5
+ m],null);return $APP.k(a,"__xSplashRefs")},kY=function(a){a=typeof a==="string"?a.trim():"";return $APP.B.j(a,"")||$APP.B.j(a,"0")||$APP.B.j(a,"0ms")||$APP.B.j(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},lY=function(a){a=window.getComputedStyle(a);a=kY(a.getPropertyValue("--x-splash-fade-duration"));return a>0?a:
6
+ 400},mY=function(a){var b=$APP.k(a,"__xSplashFadeTimer");$APP.n(b)&&(clearTimeout(b),a.__xSplashFadeTimer=null)},nY=function(a){mY(a);a.__xSplashFadingOut=!1;a.removeAttribute("data-fading-out");var b=jY(a);b=$APP.H(b);$APP.C(b,fY).style.display="none";a.removeAttribute("aria-busy");$APP.ah(a,"x-splash-hidden",{});return null},oY=function(a){if(!$APP.n($APP.k(a,"__xSplashFadingOut")))if(a.__xSplashFadingOut=!0,$APP.E(window.matchMedia("(prefers-reduced-motion:reduce)").matches))nY(a);else{var b=jY(a);
7
+ b=$APP.H(b);var c=$APP.C(b,fY),d=function h(f){return $APP.B.j(f.target,c)&&$APP.B.j(f.propertyName,"opacity")?(c.removeEventListener("transitionend",h),$APP.n($APP.k(a,"__xSplashFadingOut"))?nY(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),nY(a)):null},lY(a)+60))}},wY=function(a){var b=new $APP.P(null,5,[pY,a.hasAttribute("active"),$APP.Tm,a.getAttribute("variant"),$APP.tl,a.getAttribute("progress"),qY,a.getAttribute("spinner"),rY,a.getAttribute("overlay")],null);var c=$APP.H(b);b=$APP.C(c,pY);var d=$APP.C(c,$APP.Tm),e=$APP.C(c,$APP.tl),f=$APP.C(c,qY);c=$APP.C(c,rY);b=$APP.E(b);d=typeof d==="string"?d.trim().toLowerCase():null;
9
+ d=$APP.Vc(sY,d)?d:"default";e=dY(e);f=eY(f);c=typeof c==="string"?c.trim().toLowerCase():null;c=$APP.Vc(tY,c)?c:"solid";b=new $APP.P(null,5,[$APP.jm,b,$APP.hi,d,$APP.Kn,e,uY,f,vY,c],null);if($APP.M($APP.k(a,"__xSplashModel"),b)){b=$APP.H(b);c=$APP.C(b,$APP.jm);e=$APP.C(b,$APP.hi);d=$APP.C(b,$APP.Kn);var h=$APP.C(b,uY),l=$APP.C(b,vY);f=jY(a);var m=$APP.H(f);f=$APP.C(m,fY);var q=$APP.C(m,hY),r=$APP.C(m,$APP.wk),v=$APP.C(m,iY);m=$APP.k(a,"__xSplashModel");var w=$APP.jm.i(m);a.setAttribute("data-variant",
10
+ e);a.setAttribute("data-overlay",l);q.style.display=$APP.n(h)?"block":"none";d!=null?(r.style.display="block",v.style.width=""+$APP.R.i(d)+"%",r.setAttribute("aria-valuenow",""+$APP.R.i(d))):(r.style.display="none",r.removeAttribute("aria-valuenow"));$APP.n($APP.n(c)?$APP.p(w):c)?($APP.n($APP.k(a,"__xSplashFadingOut"))&&(mY(a),a.__xSplashFadingOut=!1,a.removeAttribute("data-fading-out"),c=jY(a),c=$APP.H(c),c=$APP.C(c,fY),c.style.display="",c.style.opacity=""),a.setAttribute("aria-busy","true"),a.setAttribute("aria-live",
11
+ "polite"),a.setAttribute("role","status"),f.style.display="",f.style.opacity=""):(e=$APP.p(c),$APP.n(e?w:e)?oY(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}},xY=function(a){$APP.ch(a,"active","active");$APP.dh(a,"variant","variant","default");Object.defineProperty(a,"progress",{get:function(){return dY(this.getAttribute("progress"))},set:function(b){return b==null?this.removeAttribute("progress"):
12
+ this.setAttribute("progress",""+$APP.R.i(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"spinner",{get:function(){return eY(this.getAttribute("spinner"))},set:function(b){return $APP.n(b)?this.setAttribute("spinner",""):this.setAttribute("spinner","false")},enumerable:!0,configurable:!0});return $APP.dh(a,"overlay","overlay","solid")},yY=function(a){jY(a);mY(a);wY(a);return null},zY=function(a){mY(a);return null},AY=function(a,b,c,d){$APP.M(c,d)&&wY(a);return null},CY=function(){return $APP.Wg("x-splash",
13
+ new $APP.P(null,5,[$APP.Mg,BY,$APP.Ng,yY,$APP.Og,zY,$APP.Qg,AY,$APP.Ug,xY],null))},fY=new $APP.F(null,"overlay-el","overlay-el",-308547109),gY=new $APP.F(null,"content-el","content-el",-1423019925),hY=new $APP.F(null,"spinner-el","spinner-el",-1536400516),iY=new $APP.F(null,"bar-el","bar-el",2050414242),uY=new $APP.F(null,"spinner?","spinner?",939139177),pY=new $APP.F(null,"active-present?","active-present?",73064660),qY=new $APP.F(null,"spinner-attr","spinner-attr",-479327548),rY=new $APP.F(null,
14
+ "overlay-raw","overlay-raw",1018775670),vY=new $APP.F(null,"overlay","overlay",-139131598);var BY=["active","variant","progress","spinner","overlay"];$APP.Ud(["x-splash-hidden",new $APP.P(null,2,[$APP.Z,$APP.Vd,$APP.Un,!1],null)]);var sY=new $APP.Q(null,new $APP.P(null,3,["minimal",null,"branded",null,"default",null],null),null),tY=new $APP.Q(null,new $APP.P(null,3,["transparent",null,"solid",null,"blur",null],null),null);$APP.da("baredom.exports.x_splash.init",CY);export const init=CY;
@@ -0,0 +1,19 @@
1
+ // x-spotlight-card.d.ts — auto-generated by generate_types.bb, do not edit
2
+
3
+ export function init(): void;
4
+
5
+ export interface XSpotlightCard extends HTMLElement {
6
+ variant: string;
7
+ radius: string;
8
+ padding: string;
9
+ color: string;
10
+ intensity: string;
11
+ size: string;
12
+ static: boolean;
13
+ }
14
+
15
+ declare global {
16
+ interface HTMLElementTagNameMap {
17
+ "x-spotlight-card": XSpotlightCard;
18
+ }
19
+ }
@@ -0,0 +1,13 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var tT=function(a,b,c){return $APP.Vc(b,a)?a:c},uT=function(a){if($APP.k(a,"__xSpotlightCardHandlers")==null){var b=function(){var f=$APP.k(a,"__xSpotlightCardCard");$APP.n(f)&&f.setAttribute("data-active","true");return null},c=function(){var f=$APP.k(a,"__xSpotlightCardCard");$APP.n(f)&&f.removeAttribute("data-active");return null},d=function(f){var h=a.getBoundingClientRect(),l=h.width,m=h.height;if(l>0&&m>0){m=(f.clientY-h.top)/m*100;var q=a.style;q.setProperty("--x-spotlight-card-x",""+$APP.R.i((f.clientX-
3
+ h.left)/l*100)+"%");q.setProperty("--x-spotlight-card-y",""+$APP.R.i(m)+"%")}return null},e={enter:b,leave:c,move:d};a.addEventListener("pointerenter",b,{passive:!0});a.addEventListener("pointerleave",c,{passive:!0});a.addEventListener("pointermove",d,{passive:!0});a.__xSpotlightCardHandlers=e}},vT=function(a){var b=$APP.k(a,"__xSpotlightCardHandlers");if($APP.n(b)){var c=$APP.k(b,"enter");$APP.n(c)&&a.removeEventListener("pointerenter",c);c=$APP.k(b,"leave");$APP.n(c)&&a.removeEventListener("pointerleave",
4
+ c);b=$APP.k(b,"move");$APP.n(b)&&a.removeEventListener("pointermove",b);a.__xSpotlightCardHandlers=null}},IT=function(a){var b=new $APP.P(null,8,[$APP.hi,a.getAttribute("variant"),$APP.xo,a.getAttribute("radius"),$APP.ro,a.getAttribute("padding"),$APP.el,a.getAttribute("color"),$APP.Pl,a.getAttribute("intensity"),$APP.bj,a.getAttribute("size"),wT,a.hasAttribute("static"),xT,$APP.p(window.matchMedia("(prefers-reduced-motion: reduce)").matches)],null);var c=$APP.H(b),d=$APP.C(c,$APP.hi),e=$APP.C(c,
5
+ $APP.xo),f=$APP.C(c,$APP.ro),h=$APP.C(c,$APP.el),l=$APP.C(c,$APP.Pl),m=$APP.C(c,$APP.bj);b=$APP.C(c,wT);c=$APP.C(c,xT);d=tT(d,yT,"elevated");e=tT(e,zT,"lg");f=tT(f,AT,"md");h=tT(h,BT,"primary");l=tT(l,CT,"medium");m=tT(m,DT,"md");b=$APP.E(b)||!$APP.E(c);b=$APP.Hf([$APP.el,$APP.hi,$APP.xo,$APP.Pl,$APP.bj,$APP.Zi,ET,$APP.ro,$APP.rm,wT],[h,d,e,l,m,$APP.Ec(FT,h,$APP.C(FT,"primary")),$APP.Ec(GT,l,$APP.C(GT,"medium")),f,$APP.Ec(HT,m,$APP.C(HT,"md")),b]);$APP.M($APP.k(a,"__xSpotlightCardModel"),b)&&(m=$APP.k(a,
6
+ "__xSpotlightCardCard"),$APP.n(m)&&(m.setAttribute("data-variant",$APP.hi.i(b)),m.setAttribute("data-radius",$APP.xo.i(b)),m.setAttribute("data-padding",$APP.ro.i(b)),$APP.n(wT.i(b))?m.setAttribute("data-static","true"):m.removeAttribute("data-static")),m=a.style,m.setProperty("--x-spotlight-card-color",$APP.Zi.i(b)),m.setProperty("--x-spotlight-card-intensity",ET.i(b)),m.setProperty("--x-spotlight-card-size",$APP.rm.i(b)),$APP.n(wT.i(b))?(vT(a),m=$APP.k(a,"__xSpotlightCardCard"),$APP.n(m)&&m.removeAttribute("data-active")):
7
+ uT(a),a.__xSpotlightCardModel=b);return null},JT=function(a){if(!$APP.n($APP.k(a,"__xSpotlightCardMq"))){var b=window.matchMedia("(prefers-reduced-motion: reduce)"),c=function(){return IT(a)};b.addEventListener("change",c);a.__xSpotlightCardMq=b;a.__xSpotlightCardMqL=c}return null},KT=function(a){if(!$APP.Yg(a,"__xSpotlightCardInit")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style");c.textContent="\n :host {\n display: block;\n color-scheme: light dark;\n\n --x-spotlight-card-background: var(--x-color-surface, rgba(255, 255, 255, 0.92));\n --x-spotlight-card-color-fg: var(--x-color-text, #111827);\n --x-spotlight-card-border-color: var(--x-color-border, rgba(17, 24, 39, 0.12));\n --x-spotlight-card-shadow: var(--x-shadow-md, 0 10px 24px rgba(15, 23, 42, 0.10));\n\n --x-spotlight-card-padding-none: 0;\n --x-spotlight-card-padding-sm: 0.5rem;\n --x-spotlight-card-padding-md: 1rem;\n --x-spotlight-card-padding-lg: 1.5rem;\n\n --x-spotlight-card-radius-none: 0;\n --x-spotlight-card-radius-sm: var(--x-radius-sm, 0.375rem);\n --x-spotlight-card-radius-md: var(--x-radius-md, 0.75rem);\n --x-spotlight-card-radius-lg: var(--x-radius-lg, 1rem);\n --x-spotlight-card-radius-xl: 1.5rem;\n\n --x-spotlight-card-transition-duration: var(--x-transition-duration, 200ms);\n --x-spotlight-card-transition-timing: ease;\n\n --x-spotlight-card-x: 50%;\n --x-spotlight-card-y: 50%;\n }\n\n @media (prefers-color-scheme: dark) {\n :host {\n --x-spotlight-card-background: var(--x-color-surface, rgba(15, 23, 42, 0.88));\n --x-spotlight-card-color-fg: var(--x-color-text, #e5e7eb);\n --x-spotlight-card-border-color: var(--x-color-border, rgba(148, 163, 184, 0.24));\n --x-spotlight-card-shadow: var(--x-shadow-md, 0 16px 32px rgba(0, 0, 0, 0.32));\n }\n }\n\n .card {\n position: relative;\n overflow: hidden;\n box-sizing: border-box;\n display: block;\n min-width: 0;\n width: 100%;\n max-width: 100%;\n background: var(--x-spotlight-card-background);\n color: var(--x-spotlight-card-color-fg);\n border: 1px solid transparent;\n border-radius: var(--x-spotlight-card-radius-lg);\n transition:\n background var(--x-spotlight-card-transition-duration) var(--x-spotlight-card-transition-timing),\n box-shadow var(--x-spotlight-card-transition-duration) var(--x-spotlight-card-transition-timing),\n border-color var(--x-spotlight-card-transition-duration) var(--x-spotlight-card-transition-timing);\n }\n\n .card[data-variant\x3d'elevated'] {\n box-shadow: var(--x-spotlight-card-shadow);\n }\n\n .card[data-variant\x3d'bordered'] {\n border-color: var(--x-spotlight-card-border-color);\n box-shadow: none;\n }\n\n .card[data-padding\x3d'none'] { padding: var(--x-spotlight-card-padding-none); }\n .card[data-padding\x3d'sm'] { padding: var(--x-spotlight-card-padding-sm); }\n .card[data-padding\x3d'md'] { padding: var(--x-spotlight-card-padding-md); }\n .card[data-padding\x3d'lg'] { padding: var(--x-spotlight-card-padding-lg); }\n\n .card[data-radius\x3d'none'] { border-radius: var(--x-spotlight-card-radius-none); }\n .card[data-radius\x3d'sm'] { border-radius: var(--x-spotlight-card-radius-sm); }\n .card[data-radius\x3d'md'] { border-radius: var(--x-spotlight-card-radius-md); }\n .card[data-radius\x3d'lg'] { border-radius: var(--x-spotlight-card-radius-lg); }\n .card[data-radius\x3d'xl'] { border-radius: var(--x-spotlight-card-radius-xl); }\n\n .spotlight {\n position: absolute;\n inset: 0;\n pointer-events: none;\n border-radius: inherit;\n opacity: 0;\n transition: opacity var(--x-spotlight-card-transition-duration) var(--x-spotlight-card-transition-timing);\n background: radial-gradient(\n var(--x-spotlight-card-size, 200px) circle at\n var(--x-spotlight-card-x) var(--x-spotlight-card-y),\n color-mix(in srgb,\n var(--x-spotlight-card-color, transparent)\n calc(var(--x-spotlight-card-intensity, 0.18) * 100%),\n transparent),\n transparent 70%);\n }\n\n .card[data-active\x3d'true'] \x3e .spotlight,\n .card[data-static\x3d'true'] \x3e .spotlight {\n opacity: 1;\n }\n\n .content {\n position: relative;\n }\n\n @media (prefers-reduced-motion: reduce) {\n .card { transition: none; }\n .spotlight { transition: none; opacity: 1; }\n }\n ";
8
+ var d=document.createElement("div");d.setAttribute("part","card");d.className="card";var e=document.createElement("div");e.setAttribute("part","spotlight");e.setAttribute("aria-hidden","true");e.className="spotlight";var f=document.createElement("div");f.setAttribute("part","content");f.className="content";f.appendChild(document.createElement("slot"));d.appendChild(e);d.appendChild(f);b.appendChild(c);b.appendChild(d);a.__xSpotlightCardRoot=b;a.__xSpotlightCardStyle=c;a.__xSpotlightCardCard=d;a.__xSpotlightCardInit=
9
+ !0}IT(a);return JT(a)},LT=function(a){vT(a);var b=$APP.k(a,"__xSpotlightCardMq");if($APP.n(b)){var c=$APP.k(a,"__xSpotlightCardMqL");$APP.n(c)&&b.removeEventListener("change",c);a.__xSpotlightCardMq=null;a.__xSpotlightCardMqL=null}a=$APP.k(a,"__xSpotlightCardCard");return $APP.n(a)?a.removeAttribute("data-active"):null},MT=function(a,b,c,d){return $APP.Yg(a,"__xSpotlightCardInit")&&$APP.M(c,d)?IT(a):null},OT=function(a){return $APP.ih(a,NT)},QT=function(){return $APP.Wg("x-spotlight-card",new $APP.P(null,
10
+ 5,[$APP.Mg,PT,$APP.Ng,KT,$APP.Og,LT,$APP.Qg,MT,$APP.Ug,OT],null))},ET=new $APP.F(null,"intensity-css","intensity-css",-407582157),wT=new $APP.F(null,"static?","static?",-1639874822),xT=new $APP.F(null,"motion-ok?","motion-ok?",-672193679);var PT="variant radius padding color intensity size static".split(" "),yT=new $APP.Q(null,new $APP.P(null,2,["elevated",null,"bordered",null],null),null),zT=new $APP.Q(null,new $APP.P(null,5,["none",null,"md",null,"lg",null,"xl",null,"sm",null],null),null),AT=new $APP.Q(null,new $APP.P(null,4,["none",null,"md",null,"lg",null,"sm",null],null),null),BT=new $APP.Q(null,new $APP.P(null,8,["success",null,"neutral",null,"warning",null,"secondary",null,"info",null,"primary",null,"danger",null,"accent",null],
11
+ null),null),CT=new $APP.Q(null,new $APP.P(null,3,["medium",null,"soft",null,"strong",null],null),null),DT=new $APP.Q(null,new $APP.P(null,4,["md",null,"lg",null,"xl",null,"sm",null],null),null),GT=new $APP.P(null,3,"soft 0.10 medium 0.18 strong 0.28".split(" "),null),HT=new $APP.P(null,4,"sm 140px md 200px lg 280px xl 360px".split(" "),null),FT=new $APP.P(null,8,"primary;var(--x-color-primary, #2563eb);secondary;var(--x-color-secondary, #64748b);success;var(--x-color-success, #16a34a);warning;var(--x-color-warning, #f59e0b);danger;var(--x-color-danger, #dc2626);info;var(--x-color-info, #0ea5e9);accent;var(--x-color-accent, #8b5cf6);neutral;var(--x-color-text, #111827)".split(";"),
12
+ null),NT=new $APP.P(null,7,[$APP.hi,new $APP.P(null,3,[$APP.S,$APP.V,$APP.T,"variant",$APP.hh,"elevated"],null),$APP.xo,new $APP.P(null,3,[$APP.S,$APP.V,$APP.T,"radius",$APP.hh,"lg"],null),$APP.ro,new $APP.P(null,3,[$APP.S,$APP.V,$APP.T,"padding",$APP.hh,"md"],null),$APP.el,new $APP.P(null,3,[$APP.S,$APP.V,$APP.T,"color",$APP.hh,"primary"],null),$APP.Pl,new $APP.P(null,3,[$APP.S,$APP.V,$APP.T,"intensity",$APP.hh,"medium"],null),$APP.bj,new $APP.P(null,3,[$APP.S,$APP.V,$APP.T,"size",$APP.hh,"md"],
13
+ null),$APP.ul,new $APP.P(null,2,[$APP.S,$APP.U,$APP.T,"static"],null)],null);$APP.da("baredom.exports.x_spotlight_card.init",QT);export const init=QT;
package/dist/x-stat.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
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;
2
+ var FZ=function(a,b,c){return $APP.Vc(b,a)?a:c},GZ=function(a){return $APP.n($APP.n(a)?$APP.M("",a):a)?a:null},PZ=function(a){var b=$APP.H(a),c=$APP.C(b,HZ),d=$APP.C(b,IZ),e=$APP.C(b,$APP.Jk),f=$APP.C(b,$APP.hi);a=$APP.C(b,$APP.Fh);var h=$APP.C(b,$APP.Gn),l=$APP.C(b,$APP.bj),m=$APP.C(b,$APP.Xm);b=$APP.C(b,$APP.X);f=FZ(f,JZ,"default");e=FZ(e,KZ,"start");l=FZ(l,LZ,"md");c=FZ(c,MZ,"normal");d=FZ(d,NZ,"neutral");m=$APP.E(m);return $APP.Hf([IZ,$APP.Jk,$APP.hi,$APP.Fh,$APP.Gn,$APP.bj,$APP.Xm,$APP.X,OZ,
3
+ HZ],[d,e,f,GZ(a),GZ(h),l,m,GZ(b),m?"true":null,c])},QZ=function(a){return $APP.Hf([IZ,$APP.Jk,$APP.hi,$APP.Fh,$APP.Gn,$APP.bj,$APP.Xm,$APP.X,HZ],[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")])},RZ=function(a,b){a.setAttribute("role","figure");var c=OZ.i(b);$APP.n(c)?a.setAttribute("aria-busy",c):a.removeAttribute("aria-busy");
4
+ b=$APP.X.i(b);$APP.n(b)?a.setAttribute("aria-label",b):a.removeAttribute("aria-label")},SZ=function(a,b){a.setAttribute("data-variant",$APP.hi.i(b));a.setAttribute("data-align",$APP.Jk.i(b));a.setAttribute("data-size",$APP.bj.i(b));a.setAttribute("data-emphasis",HZ.i(b));a.setAttribute("data-trend",IZ.i(b));$APP.n($APP.Xm.i(b))?a.setAttribute("data-loading","true"):a.removeAttribute("data-loading")},TZ=function(a){var b=PZ(QZ(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)?(RZ(a,b),SZ(c,b),d.textContent=function(){var h=$APP.X.i(b);return $APP.n(h)?h:""}(),e.textContent=function(){var h=$APP.Fh.i(b);return $APP.n(h)?h:""}(),f.textContent=function(){var h=$APP.Gn.i(b);return $APP.n(h)?h:""}()):null},UZ=function(a){if(!$APP.Yg(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"),w=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");w.setAttribute("name","icon");y.setAttribute("name","label");A.setAttribute("name","value");D.setAttribute("name","hint");e.appendChild(w);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}TZ(a);return a},VZ=function(a){return UZ(a)},WZ=function(a){return $APP.Yg(a,"__xStatInitialized")?TZ(a):UZ(a)},YZ=function(a){return $APP.ih(a,XZ)},$Z=function(){return $APP.Wg("x-stat",new $APP.P(null,4,[$APP.Mg,ZZ,$APP.Ng,VZ,$APP.Qg,WZ,$APP.Ug,YZ],null))},HZ=new $APP.F(null,"emphasis","emphasis",293543451),OZ=new $APP.F(null,"aria-busy","aria-busy",
9
+ 793864247),IZ=new $APP.F(null,"trend","trend",54563841);var ZZ="variant align size emphasis trend loading label value hint".split(" "),JZ=new $APP.Q(null,new $APP.P(null,5,["warning",null,"positive",null,"subtle",null,"danger",null,"default",null],null),null),KZ=new $APP.Q(null,new $APP.P(null,3,["center",null,"start",null,"end",null],null),null),LZ=new $APP.Q(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),MZ=new $APP.Q(null,new $APP.P(null,2,["high",null,"normal",null],null),null),NZ=new $APP.Q(null,new $APP.P(null,3,["neutral",null,
10
+ "up",null,"down",null],null),null),XZ=$APP.Hf([IZ,$APP.Jk,$APP.hi,$APP.Fh,$APP.Gn,$APP.bj,$APP.Xm,$APP.X,HZ],[new $APP.P(null,3,[$APP.S,$APP.V,$APP.T,"trend",$APP.hh,""],null),new $APP.P(null,3,[$APP.S,$APP.V,$APP.T,"align",$APP.hh,""],null),new $APP.P(null,3,[$APP.S,$APP.V,$APP.T,"variant",$APP.hh,""],null),new $APP.P(null,3,[$APP.S,$APP.V,$APP.T,"value",$APP.hh,""],null),new $APP.P(null,3,[$APP.S,$APP.V,$APP.T,"hint",$APP.hh,""],null),new $APP.P(null,3,[$APP.S,$APP.V,$APP.T,"size",$APP.hh,""],null),
11
+ new $APP.P(null,2,[$APP.S,$APP.U,$APP.T,"loading"],null),new $APP.P(null,3,[$APP.S,$APP.V,$APP.T,"label",$APP.hh,""],null),new $APP.P(null,3,[$APP.S,$APP.V,$APP.T,"emphasis",$APP.hh,""],null)]);$APP.da("baredom.exports.x_stat.init",$Z);export const init=$Z;
package/dist/x-stepper.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Cq=function(a,b){return new $APP.Ad(null,function(){if(a>0){var c=$APP.t(b);return c?$APP.xd($APP.u(c),Cq(a-1,$APP.dc(c))):null}return null},null)},Eq=function(a){a=$APP.C(Dq,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.$m},Gq=function(a){a=$APP.C(Fq,a);return $APP.n(a)?a:"horizontal"},Jq=function(a){a=$APP.C(Hq,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:Iq},Lq=function(a){a=$APP.C(Kq,a);return $APP.n(a)?a:"md"},Mq=function(a){return typeof a==="string"?
3
- (a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>=0?a:0):0},Vq=function(a){if(typeof a==="string"){var b=a.trim();if($APP.n($APP.rg(/^\d+$/,b)))return a=parseInt(b,10),a>0&&a<=200?$APP.qe(function(f){return new $APP.N(null,2,[$APP.X,"Step "+$APP.Q.g(f),$APP.Gl,null],null)},$APP.pg(1,a+1)):$APP.pe;if($APP.n(function(){var f=$APP.M("",b);return f?b.startsWith("["):f}()))try{var c=JSON.parse(b);if($APP.n(Array.isArray(c))){var d=$APP.Bc(c),e=$APP.z(d)>200?Cq(200,d):d;return $APP.qe(function(f){return new $APP.N(null,
4
- 2,[$APP.X,function(){var h=$APP.k(f,"label");return typeof h==="string"?h:""}(),$APP.Gl,function(){var h=$APP.k(f,"description");return typeof h==="string"?h:null}()],null)},e)}return $APP.pe}catch(f){return $APP.pe}else return $APP.pe}else return $APP.pe},Wq=function(a){var b=$APP.k(a,"__xStepperRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div");c.textContent=":host{display:block;color-scheme:light dark;--x-stepper-indicator-size:2rem;--x-stepper-connector-thickness:2px;--x-stepper-step-gap:0.75rem;--x-stepper-font-size:var(--x-font-size-sm,0.875rem);--x-stepper-label-font-weight:500;--x-stepper-desc-font-size:0.75rem;--x-stepper-radius:var(--x-radius-full,999px);--x-stepper-motion:var(--x-transition-duration,120ms);--x-stepper-press-scale:0.93;--x-stepper-focus-ring:var(--x-color-focus-ring,rgba(0,0,0,0.55));--x-stepper-disabled-opacity:0.5;--x-stepper-complete-bg:var(--x-color-success,rgba(16,140,72,1));--x-stepper-complete-color:#fff;--x-stepper-complete-connector:var(--x-color-success,rgba(16,140,72,1));--x-stepper-current-bg:var(--x-color-primary,rgba(0,102,204,1));--x-stepper-current-color:#fff;--x-stepper-upcoming-bg:rgba(0,0,0,0.08);--x-stepper-upcoming-color:var(--x-color-text-muted,rgba(0,0,0,0.45));--x-stepper-idle-connector:var(--x-color-border,rgba(0,0,0,0.12));--x-stepper-label-done-color:var(--x-color-text,rgba(0,0,0,0.85));--x-stepper-label-current-color:var(--x-color-text,rgba(0,0,0,0.85));--x-stepper-label-upcoming-color:var(--x-color-text-muted,rgba(0,0,0,0.4));--x-stepper-desc-color:var(--x-color-text-muted,rgba(0,0,0,0.4));}@media (prefers-color-scheme:dark){:host{--x-stepper-focus-ring:var(--x-color-focus-ring,rgba(255,255,255,0.7));--x-stepper-complete-bg:var(--x-color-success,rgba(60,210,120,1));--x-stepper-complete-color:#000;--x-stepper-complete-connector:var(--x-color-success,rgba(60,210,120,1));--x-stepper-current-bg:var(--x-color-primary,rgba(80,160,255,1));--x-stepper-current-color:#000;--x-stepper-upcoming-bg:rgba(255,255,255,0.1);--x-stepper-upcoming-color:var(--x-color-text-muted,rgba(255,255,255,0.35));--x-stepper-idle-connector:var(--x-color-border,rgba(255,255,255,0.12));--x-stepper-label-done-color:var(--x-color-text,rgba(255,255,255,0.9));--x-stepper-label-current-color:var(--x-color-text,rgba(255,255,255,0.9));--x-stepper-label-upcoming-color:var(--x-color-text-muted,rgba(255,255,255,0.3));--x-stepper-desc-color:var(--x-color-text-muted,rgba(255,255,255,0.35));}}[part\x3dcontainer]{display:flex;align-items:flex-start;margin:0;padding:0;list-style:none;}:host([data-orientation\x3dhorizontal]) [part\x3dcontainer]{flex-direction:row;}:host([data-orientation\x3dhorizontal]) [part\x3dstep]{display:flex;flex-direction:column;align-items:center;flex:1;min-width:0;}:host([data-orientation\x3dhorizontal]) [part\x3dstep-track]{display:flex;align-items:center;width:100%;}:host([data-orientation\x3dhorizontal]) [part\x3dstep-connector]{flex:1;height:var(--x-stepper-connector-thickness);min-width:8px;}:host([data-orientation\x3dhorizontal]) [part\x3dstep-content]{display:flex;flex-direction:column;align-items:center;text-align:center;padding:var(--x-stepper-step-gap) 4px 0;width:100%;}:host([data-orientation\x3dvertical]) [part\x3dcontainer]{flex-direction:column;}:host([data-orientation\x3dvertical]) [part\x3dstep]{display:flex;flex-direction:row;gap:var(--x-stepper-step-gap);}:host([data-orientation\x3dvertical]) [part\x3dstep-track]{display:flex;flex-direction:column;align-items:center;flex-shrink:0;width:var(--x-stepper-indicator-size);}:host([data-orientation\x3dvertical]) [part\x3dstep-connector]{flex:1;width:var(--x-stepper-connector-thickness);min-height:16px;margin:4px 0;}:host([data-orientation\x3dvertical]) [part\x3dstep-content]{display:flex;flex-direction:column;flex:1;min-width:0;padding-bottom:var(--x-stepper-step-gap);}[part\x3dstep-indicator]{display:inline-flex;align-items:center;justify-content:center;width:var(--x-stepper-indicator-size);height:var(--x-stepper-indicator-size);border-radius:var(--x-stepper-radius);border:none;padding:0;margin:0;cursor:pointer;font-size:0.875em;font-weight:600;font-family:inherit;flex-shrink:0;position:relative;z-index:1;transition:background var(--x-stepper-motion) ease,color var(--x-stepper-motion) ease,transform 80ms ease;}[part\x3dstep-indicator]:focus{outline:none;}[part\x3dstep-indicator]:focus-visible{outline:2px solid var(--x-stepper-focus-ring);outline-offset:3px;}[data-state\x3dcomplete] [part\x3dstep-indicator]{background:var(--x-stepper-complete-bg);color:var(--x-stepper-complete-color);}[data-state\x3dcurrent] [part\x3dstep-indicator]{background:var(--x-stepper-current-bg);color:var(--x-stepper-current-color);cursor:default;}[data-state\x3dupcoming] [part\x3dstep-indicator]{background:var(--x-stepper-upcoming-bg);color:var(--x-stepper-upcoming-color);}[data-state\x3dcomplete] [part\x3dstep-connector]{background:var(--x-stepper-complete-connector);}[data-state\x3dcurrent] [part\x3dstep-connector],[data-state\x3dupcoming] [part\x3dstep-connector]{background:var(--x-stepper-idle-connector);}[part\x3dstep]:last-child [part\x3dstep-connector]{display:none;}[part\x3dstep-label]{font-size:var(--x-stepper-font-size);line-height:1.3;font-family:inherit;}[data-state\x3dcomplete] [part\x3dstep-label]{color:var(--x-stepper-label-done-color);}[data-state\x3dcurrent] [part\x3dstep-label]{color:var(--x-stepper-label-current-color);font-weight:var(--x-stepper-label-font-weight);}[data-state\x3dupcoming] [part\x3dstep-label]{color:var(--x-stepper-label-upcoming-color);}[part\x3dstep-description]{font-size:var(--x-stepper-desc-font-size);color:var(--x-stepper-desc-color);line-height:1.3;margin-top:0.2em;}:host(:not([disabled])) [data-state\x3dcomplete] [part\x3dstep-indicator]:hover,:host(:not([disabled])) [data-state\x3dupcoming] [part\x3dstep-indicator]:hover{filter:brightness(0.88);}:host(:not([disabled])) [data-state\x3dcomplete] [part\x3dstep-indicator]:active,:host(:not([disabled])) [data-state\x3dupcoming] [part\x3dstep-indicator]:active{transform:scale(var(--x-stepper-press-scale));}:host([disabled]){opacity:var(--x-stepper-disabled-opacity);}:host([disabled]) [part\x3dstep-indicator]{cursor:default;pointer-events:none;}:host([data-size\x3dsm]){--x-stepper-indicator-size:1.5rem;--x-stepper-font-size:0.8125rem;--x-stepper-desc-font-size:0.6875rem;}:host([data-size\x3dlg]){--x-stepper-indicator-size:2.5rem;--x-stepper-font-size:1rem;--x-stepper-desc-font-size:0.875rem;}@media (prefers-reduced-motion:reduce){[part\x3dstep-indicator]{transition:none;}}";
5
- d.setAttribute("part","container");d.setAttribute("role","list");b.appendChild(c);b.appendChild(d);a.__xStepperRefs=new $APP.N(null,2,[$APP.Uh,b,$APP.Vh,d],null);return $APP.k(a,"__xStepperRefs")},Yq=function(a){a=new $APP.N(null,5,[Xq,a.getAttribute("steps"),$APP.jo,a.getAttribute("current"),$APP.qn,a.getAttribute("orientation"),$APP.on,a.getAttribute("size"),$APP.Y,a.hasAttribute("disabled")],null);var b=$APP.J(a),c=$APP.C(b,Xq);a=$APP.C(b,$APP.jo);var d=$APP.C(b,$APP.qn),e=$APP.C(b,$APP.on);b=
6
- $APP.C(b,$APP.Y);c=Vq(c);var f=$APP.z(c);return new $APP.N(null,5,[$APP.Rn,c,$APP.pj,f===0?0:$APP.Hi.i(0,$APP.Ii.i(Mq(a),f-1)),$APP.Cm,Eq(d),$APP.bj,Jq(e),$APP.Y,$APP.E(b)],null)},Zq=function(a,b,c){return"Step "+$APP.Q.g(a+1)+": "+$APP.Q.g(b)+" ("+$APP.Q.g(function(){var d=c instanceof $APP.F?c.qa:null;switch(d){case "complete":return"completed";case "current":return"current";case "upcoming":return"upcoming";default:throw Error("No matching clause: "+$APP.Q.g(d));}}())+")"},$q=function(a,b,c,d){var e=
7
- $APP.J(b);b=$APP.C(e,$APP.X);e=$APP.C(e,$APP.Gl);var f=document.createElement("div"),h=document.createElement("div"),l=document.createElement("button"),m=document.createElement("span"),q=document.createElement("div"),r=document.createElement("div"),v=document.createElement("span"),x=document.createElement("span");a:{var y=c instanceof $APP.F?c.qa:null;switch(y){case "complete":y="complete";break a;case "current":y="current";break a;case "upcoming":y="upcoming";break a;default:throw Error("No matching clause: "+
8
- $APP.Q.g(y));}}b=$APP.n(b)?b:"";f.setAttribute("part","step");f.setAttribute("role","listitem");f.setAttribute("data-index",""+$APP.Q.g(a));f.setAttribute("data-state",y);h.setAttribute("part","step-track");l.setAttribute("part","step-indicator");l.setAttribute("type","button");l.setAttribute("aria-label",Zq(a,b,c));$APP.B.i(c,$APP.pj)?l.setAttribute("aria-current","step"):l.removeAttribute("aria-current");l.setAttribute("tabindex",$APP.n(d)?"-1":"0");$APP.n(d)&&l.setAttribute("aria-disabled","true");
9
- m.setAttribute("part","step-number");m.setAttribute("aria-hidden","true");m.textContent=$APP.B.i(c,$APP.bo)?"✓":""+$APP.Q.g(a+1);q.setAttribute("part","step-connector");q.setAttribute("aria-hidden","true");r.setAttribute("part","step-content");v.setAttribute("part","step-label");v.textContent=b;x.setAttribute("part","step-description");$APP.n($APP.n(e)?$APP.M(e,""):e)?(x.textContent=e,x.style.display="block"):x.style.display="none";l.appendChild(m);h.appendChild(l);h.appendChild(q);r.appendChild(v);
10
- r.appendChild(x);f.appendChild(h);f.appendChild(r);return f},br=function(a){var b=Yq(a);if($APP.M($APP.k(a,"__xStepperModel"),b)){b=$APP.J(b);var c=$APP.C(b,$APP.Rn),d=$APP.C(b,$APP.pj),e=$APP.C(b,$APP.Cm),f=$APP.C(b,$APP.bj),h=$APP.C(b,$APP.Y),l=Wq(a);l=$APP.J(l);l=$APP.C(l,$APP.Vh);a.setAttribute("data-orientation",Gq(e));a.setAttribute("data-size",Lq(f));l.innerHTML="";c=$APP.t($APP.ee($APP.Ni,c));e=null;for(var m=f=0;;)if(m<f){var q=e.F(null,m),r=$APP.Hc(q,0,null);q=$APP.Hc(q,1,null);var v=r<
11
- d?$APP.bo:$APP.B.i(r,d)?$APP.pj:ar;l.appendChild($q(r,q,v,h));m+=1}else if(c=$APP.t(c))$APP.Vc(c)?(f=$APP.Db(c),c=$APP.Eb(c),e=f,f=$APP.z(f)):(f=$APP.u(c),e=$APP.Hc(f,0,null),f=$APP.Hc(f,1,null),m=e<d?$APP.bo:$APP.B.i(e,d)?$APP.pj:ar,l.appendChild($q(e,f,m,h)),c=$APP.w(c),e=null,f=0),m=0;else break;a.__xStepperModel=b}},cr=function(a){function b(d){var e=$APP.k(a,"__xStepperModel");e=$APP.n(e)?e:Yq(a);$APP.n($APP.Y.g(e))||(d=d.target.closest("[part\x3dstep-indicator]"),$APP.n(d)&&(d=parseInt(d.closest("[part\x3dstep]").getAttribute("data-index"),
12
- 10),e=$APP.pj.g(e),typeof d==="number"&&$APP.p(isNaN(d))&&$APP.M(d,e)&&(e=$APP.Xi(new $APP.N(null,2,[$APP.kj,e,$APP.wn,d],null)),$APP.ch(a,"x-stepper-change",e)&&a.setAttribute("current",""+$APP.Q.g(d)))));return null}var c=Wq(a);c=$APP.J(c);$APP.C(c,$APP.Vh).addEventListener("click",b);$APP.fa(a,"__xStepperHandlers",{click:b})},dr=function(a){var b=$APP.k(a,"__xStepperHandlers");if($APP.n(b)){var c=$APP.k(a,"__xStepperRefs");$APP.n(c)&&(c=$APP.Vh.g(c),b=$APP.k(b,"click"),$APP.n($APP.n(c)?b:c)&&c.removeEventListener("click",
13
- b))}a.__xStepperHandlers=null},er=function(a){$APP.eh(a,"steps","steps","[]");Object.defineProperty(a,"current",{get:function(){return Mq(this.getAttribute("current"))},set:function(b){return b==null?this.removeAttribute("current"):this.setAttribute("current",""+$APP.Q.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"orientation",{get:function(){return Gq(Eq(this.getAttribute("orientation")))},set:function(b){return $APP.n(b)?this.setAttribute("orientation",""+$APP.Q.g(b)):this.removeAttribute("orientation")},
14
- enumerable:!0,configurable:!0});Object.defineProperty(a,"size",{get:function(){return Lq(Jq(this.getAttribute("size")))},set:function(b){return $APP.n(b)?this.setAttribute("size",""+$APP.Q.g(b)):this.removeAttribute("size")},enumerable:!0,configurable:!0});return $APP.dh(a,"disabled","disabled")},fr=function(a){Wq(a);dr(a);cr(a);br(a);return null},gr=function(a){dr(a);return null},hr=function(a,b,c,d){$APP.M(c,d)&&br(a);return null},jr=function(){return $APP.Yg("x-stepper",new $APP.N(null,5,[$APP.Pg,
15
- ir,$APP.Qg,fr,$APP.Rg,gr,$APP.Sg,hr,$APP.Wg,er],null))},ar=new $APP.F(null,"upcoming","upcoming",1873315471),Xq=new $APP.F(null,"steps-raw","steps-raw",1741812533),Iq=new $APP.F(null,"md","md",707286655),kr=new $APP.F(null,"lg","lg",-80787836),lr=new $APP.F(null,"sm","sm",-1402575065);var ir=["steps","current","orientation","size","disabled"];$APP.Yd(["x-stepper-change",new $APP.N(null,2,[$APP.Z,new $APP.N(null,2,[$APP.kj,$APP.V,$APP.wn,$APP.V],null),$APP.Fn,!0],null)]);var Dq=new $APP.N(null,2,["horizontal",$APP.$m,"vertical",$APP.Mk],null),Fq=new $APP.N(null,2,[$APP.$m,"horizontal",$APP.Mk,"vertical"],null),Hq=new $APP.N(null,3,["sm",lr,"md",Iq,"lg",kr],null),Kq=new $APP.N(null,3,[lr,"sm",Iq,"md",kr,"lg"],null);$APP.ca("baredom.exports.x_stepper.init",jr);export const init=jr;
2
+ var Wq=function(a,b){return new $APP.xd(null,function(){if(a>0){var c=$APP.t(b);return c?$APP.ud($APP.u(c),Wq(a-1,$APP.$b(c))):null}return null},null)},Yq=function(a){a=$APP.C(Xq,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.gn},$q=function(a){a=$APP.C(Zq,a);return $APP.n(a)?a:"horizontal"},cr=function(a){a=$APP.C(ar,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:br},er=function(a){a=$APP.C(dr,a);return $APP.n(a)?a:"md"},fr=function(a){return typeof a==="string"?
3
+ (a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>=0?a:0):0},gr=function(a){if(typeof a==="string"){var b=a.trim();if($APP.n($APP.og(/^\d+$/,b)))return a=parseInt(b,10),a>0&&a<=200?$APP.ne(function(f){return new $APP.P(null,2,[$APP.X,"Step "+$APP.R.i(f),$APP.Ql,null],null)},$APP.mg(1,a+1)):$APP.me;if($APP.n(function(){var f=$APP.M("",b);return f?b.startsWith("["):f}()))try{var c=JSON.parse(b);if($APP.n(Array.isArray(c))){var d=$APP.xc(c),e=$APP.z(d)>200?Wq(200,d):d;return $APP.ne(function(f){return new $APP.P(null,
4
+ 2,[$APP.X,function(){var h=$APP.k(f,"label");return typeof h==="string"?h:""}(),$APP.Ql,function(){var h=$APP.k(f,"description");return typeof h==="string"?h:null}()],null)},e)}return $APP.me}catch(f){return $APP.me}else return $APP.me}else return $APP.me},hr=function(a){var b=$APP.k(a,"__xStepperRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div");c.textContent=":host{display:block;color-scheme:light dark;--x-stepper-indicator-size:2rem;--x-stepper-connector-thickness:2px;--x-stepper-step-gap:0.75rem;--x-stepper-font-size:var(--x-font-size-sm,0.875rem);--x-stepper-label-font-weight:500;--x-stepper-desc-font-size:0.75rem;--x-stepper-radius:var(--x-radius-full,999px);--x-stepper-motion:var(--x-transition-duration,120ms);--x-stepper-press-scale:0.93;--x-stepper-focus-ring:var(--x-color-focus-ring,rgba(0,0,0,0.55));--x-stepper-disabled-opacity:0.5;--x-stepper-complete-bg:var(--x-color-success,rgba(16,140,72,1));--x-stepper-complete-color:#fff;--x-stepper-complete-connector:var(--x-color-success,rgba(16,140,72,1));--x-stepper-current-bg:var(--x-color-primary,rgba(0,102,204,1));--x-stepper-current-color:#fff;--x-stepper-upcoming-bg:rgba(0,0,0,0.08);--x-stepper-upcoming-color:var(--x-color-text-muted,rgba(0,0,0,0.45));--x-stepper-idle-connector:var(--x-color-border,rgba(0,0,0,0.12));--x-stepper-label-done-color:var(--x-color-text,rgba(0,0,0,0.85));--x-stepper-label-current-color:var(--x-color-text,rgba(0,0,0,0.85));--x-stepper-label-upcoming-color:var(--x-color-text-muted,rgba(0,0,0,0.4));--x-stepper-desc-color:var(--x-color-text-muted,rgba(0,0,0,0.4));}@media (prefers-color-scheme:dark){:host{--x-stepper-focus-ring:var(--x-color-focus-ring,rgba(255,255,255,0.7));--x-stepper-complete-bg:var(--x-color-success,rgba(60,210,120,1));--x-stepper-complete-color:#000;--x-stepper-complete-connector:var(--x-color-success,rgba(60,210,120,1));--x-stepper-current-bg:var(--x-color-primary,rgba(80,160,255,1));--x-stepper-current-color:#000;--x-stepper-upcoming-bg:rgba(255,255,255,0.1);--x-stepper-upcoming-color:var(--x-color-text-muted,rgba(255,255,255,0.35));--x-stepper-idle-connector:var(--x-color-border,rgba(255,255,255,0.12));--x-stepper-label-done-color:var(--x-color-text,rgba(255,255,255,0.9));--x-stepper-label-current-color:var(--x-color-text,rgba(255,255,255,0.9));--x-stepper-label-upcoming-color:var(--x-color-text-muted,rgba(255,255,255,0.3));--x-stepper-desc-color:var(--x-color-text-muted,rgba(255,255,255,0.35));}}[part\x3dcontainer]{display:flex;align-items:flex-start;margin:0;padding:0;list-style:none;}:host([data-orientation\x3dhorizontal]) [part\x3dcontainer]{flex-direction:row;}:host([data-orientation\x3dhorizontal]) [part\x3dstep]{display:flex;flex-direction:column;align-items:center;flex:1;min-width:0;}:host([data-orientation\x3dhorizontal]) [part\x3dstep-track]{display:flex;align-items:center;width:100%;}:host([data-orientation\x3dhorizontal]) [part\x3dstep-connector]{flex:1;height:var(--x-stepper-connector-thickness);min-width:8px;}:host([data-orientation\x3dhorizontal]) [part\x3dstep-content]{display:flex;flex-direction:column;align-items:center;text-align:center;padding:var(--x-stepper-step-gap) 4px 0;width:100%;}:host([data-orientation\x3dvertical]) [part\x3dcontainer]{flex-direction:column;}:host([data-orientation\x3dvertical]) [part\x3dstep]{display:flex;flex-direction:row;gap:var(--x-stepper-step-gap);}:host([data-orientation\x3dvertical]) [part\x3dstep-track]{display:flex;flex-direction:column;align-items:center;flex-shrink:0;width:var(--x-stepper-indicator-size);}:host([data-orientation\x3dvertical]) [part\x3dstep-connector]{flex:1;width:var(--x-stepper-connector-thickness);min-height:16px;margin:4px 0;}:host([data-orientation\x3dvertical]) [part\x3dstep-content]{display:flex;flex-direction:column;flex:1;min-width:0;padding-bottom:var(--x-stepper-step-gap);}[part\x3dstep-indicator]{display:inline-flex;align-items:center;justify-content:center;width:var(--x-stepper-indicator-size);height:var(--x-stepper-indicator-size);border-radius:var(--x-stepper-radius);border:none;padding:0;margin:0;cursor:pointer;font-size:0.875em;font-weight:600;font-family:inherit;flex-shrink:0;position:relative;z-index:1;transition:background var(--x-stepper-motion) ease,color var(--x-stepper-motion) ease,transform 80ms ease;}[part\x3dstep-indicator]:focus{outline:none;}[part\x3dstep-indicator]:focus-visible{outline:2px solid var(--x-stepper-focus-ring);outline-offset:3px;}[data-state\x3dcomplete] [part\x3dstep-indicator]{background:var(--x-stepper-complete-bg);color:var(--x-stepper-complete-color);}[data-state\x3dcurrent] [part\x3dstep-indicator]{background:var(--x-stepper-current-bg);color:var(--x-stepper-current-color);cursor:default;}[data-state\x3dupcoming] [part\x3dstep-indicator]{background:var(--x-stepper-upcoming-bg);color:var(--x-stepper-upcoming-color);}[data-state\x3dcomplete] [part\x3dstep-connector]{background:var(--x-stepper-complete-connector);}[data-state\x3dcurrent] [part\x3dstep-connector],[data-state\x3dupcoming] [part\x3dstep-connector]{background:var(--x-stepper-idle-connector);}[part\x3dstep]:last-child [part\x3dstep-connector]{display:none;}[part\x3dstep-label]{font-size:var(--x-stepper-font-size);line-height:1.3;font-family:inherit;}[data-state\x3dcomplete] [part\x3dstep-label]{color:var(--x-stepper-label-done-color);}[data-state\x3dcurrent] [part\x3dstep-label]{color:var(--x-stepper-label-current-color);font-weight:var(--x-stepper-label-font-weight);}[data-state\x3dupcoming] [part\x3dstep-label]{color:var(--x-stepper-label-upcoming-color);}[part\x3dstep-description]{font-size:var(--x-stepper-desc-font-size);color:var(--x-stepper-desc-color);line-height:1.3;margin-top:0.2em;}:host(:not([disabled])) [data-state\x3dcomplete] [part\x3dstep-indicator]:hover,:host(:not([disabled])) [data-state\x3dupcoming] [part\x3dstep-indicator]:hover{filter:brightness(0.88);}:host(:not([disabled])) [data-state\x3dcomplete] [part\x3dstep-indicator]:active,:host(:not([disabled])) [data-state\x3dupcoming] [part\x3dstep-indicator]:active{transform:scale(var(--x-stepper-press-scale));}:host([disabled]){opacity:var(--x-stepper-disabled-opacity);}:host([disabled]) [part\x3dstep-indicator]{cursor:default;pointer-events:none;}:host([data-size\x3dsm]){--x-stepper-indicator-size:1.5rem;--x-stepper-font-size:0.8125rem;--x-stepper-desc-font-size:0.6875rem;}:host([data-size\x3dlg]){--x-stepper-indicator-size:2.5rem;--x-stepper-font-size:1rem;--x-stepper-desc-font-size:0.875rem;}@media (prefers-reduced-motion:reduce){[part\x3dstep-indicator]{transition:none;}}";
5
+ d.setAttribute("part","container");d.setAttribute("role","list");b.appendChild(c);b.appendChild(d);a.__xStepperRefs=new $APP.P(null,2,[$APP.Qh,b,$APP.Rh,d],null);return $APP.k(a,"__xStepperRefs")},jr=function(a){a=new $APP.P(null,5,[ir,a.getAttribute("steps"),$APP.Co,a.getAttribute("current"),$APP.Fn,a.getAttribute("orientation"),$APP.wn,a.getAttribute("size"),$APP.Y,a.hasAttribute("disabled")],null);var b=$APP.H(a),c=$APP.C(b,ir);a=$APP.C(b,$APP.Co);var d=$APP.C(b,$APP.Fn),e=$APP.C(b,$APP.wn);b=
6
+ $APP.C(b,$APP.Y);c=gr(c);var f=$APP.z(c);return new $APP.P(null,5,[$APP.io,c,$APP.rj,f===0?0:$APP.Ci.j(0,$APP.Di.j(fr(a),f-1)),$APP.Pm,Yq(d),$APP.bj,cr(e),$APP.Y,$APP.E(b)],null)},kr=function(a,b,c){return"Step "+$APP.R.i(a+1)+": "+$APP.R.i(b)+" ("+$APP.R.i(function(){var d=c instanceof $APP.F?c.pa:null;switch(d){case "complete":return"completed";case "current":return"current";case "upcoming":return"upcoming";default:throw Error("No matching clause: "+$APP.R.i(d));}}())+")"},lr=function(a,b,c,d){var e=
7
+ $APP.H(b);b=$APP.C(e,$APP.X);e=$APP.C(e,$APP.Ql);var f=document.createElement("div"),h=document.createElement("div"),l=document.createElement("button"),m=document.createElement("span"),q=document.createElement("div"),r=document.createElement("div"),v=document.createElement("span"),w=document.createElement("span");a:{var y=c instanceof $APP.F?c.pa:null;switch(y){case "complete":y="complete";break a;case "current":y="current";break a;case "upcoming":y="upcoming";break a;default:throw Error("No matching clause: "+
8
+ $APP.R.i(y));}}b=$APP.n(b)?b:"";f.setAttribute("part","step");f.setAttribute("role","listitem");f.setAttribute("data-index",""+$APP.R.i(a));f.setAttribute("data-state",y);h.setAttribute("part","step-track");l.setAttribute("part","step-indicator");l.setAttribute("type","button");l.setAttribute("aria-label",kr(a,b,c));$APP.B.j(c,$APP.rj)?l.setAttribute("aria-current","step"):l.removeAttribute("aria-current");l.setAttribute("tabindex",$APP.n(d)?"-1":"0");$APP.n(d)&&l.setAttribute("aria-disabled","true");
9
+ m.setAttribute("part","step-number");m.setAttribute("aria-hidden","true");m.textContent=$APP.B.j(c,$APP.uo)?"✓":""+$APP.R.i(a+1);q.setAttribute("part","step-connector");q.setAttribute("aria-hidden","true");r.setAttribute("part","step-content");v.setAttribute("part","step-label");v.textContent=b;w.setAttribute("part","step-description");$APP.n($APP.n(e)?$APP.M(e,""):e)?(w.textContent=e,w.style.display="block"):w.style.display="none";l.appendChild(m);h.appendChild(l);h.appendChild(q);r.appendChild(v);
10
+ r.appendChild(w);f.appendChild(h);f.appendChild(r);return f},nr=function(a){var b=jr(a);if($APP.M($APP.k(a,"__xStepperModel"),b)){b=$APP.H(b);var c=$APP.C(b,$APP.io),d=$APP.C(b,$APP.rj),e=$APP.C(b,$APP.Pm),f=$APP.C(b,$APP.bj),h=$APP.C(b,$APP.Y),l=hr(a);l=$APP.H(l);l=$APP.C(l,$APP.Rh);$APP.Zg(a,"data-orientation",$q(e));$APP.Zg(a,"data-size",er(f));l.innerHTML="";c=$APP.t($APP.ae($APP.Ii,c));e=null;for(var m=f=0;;)if(m<f){var q=e.G(null,m),r=$APP.Dc(q,0,null);q=$APP.Dc(q,1,null);var v=r<d?$APP.uo:
11
+ $APP.B.j(r,d)?$APP.rj:mr;l.appendChild(lr(r,q,v,h));m+=1}else if(c=$APP.t(c))$APP.Rc(c)?(f=$APP.yb(c),c=$APP.zb(c),e=f,f=$APP.z(f)):(f=$APP.u(c),e=$APP.Dc(f,0,null),f=$APP.Dc(f,1,null),m=e<d?$APP.uo:$APP.B.j(e,d)?$APP.rj:mr,l.appendChild(lr(e,f,m,h)),c=$APP.x(c),e=null,f=0),m=0;else break;a.__xStepperModel=b}},or=function(a){function b(d){var e=$APP.k(a,"__xStepperModel");e=$APP.n(e)?e:jr(a);$APP.n($APP.Y.i(e))||(d=d.target.closest("[part\x3dstep-indicator]"),$APP.n(d)&&(d=parseInt(d.closest("[part\x3dstep]").getAttribute("data-index"),
12
+ 10),e=$APP.rj.i(e),typeof d==="number"&&$APP.p(isNaN(d))&&$APP.M(d,e)&&(e=$APP.Wi(new $APP.P(null,2,[$APP.mj,e,$APP.Ln,d],null)),$APP.bh(a,"x-stepper-change",e)&&$APP.Zg(a,"current",""+$APP.R.i(d)))));return null}var c=hr(a);c=$APP.H(c);$APP.C(c,$APP.Rh).addEventListener("click",b);$APP.fa(a,"__xStepperHandlers",{click:b})},pr=function(a){var b=$APP.k(a,"__xStepperHandlers");if($APP.n(b)){var c=$APP.k(a,"__xStepperRefs");$APP.n(c)&&(c=$APP.Rh.i(c),b=$APP.k(b,"click"),$APP.n($APP.n(c)?b:c)&&c.removeEventListener("click",
13
+ b))}a.__xStepperHandlers=null},qr=function(a){$APP.dh(a,"steps","steps","[]");Object.defineProperty(a,"current",{get:function(){return fr(this.getAttribute("current"))},set:function(b){return b==null?this.removeAttribute("current"):this.setAttribute("current",""+$APP.R.i(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"orientation",{get:function(){return $q(Yq(this.getAttribute("orientation")))},set:function(b){return $APP.n(b)?this.setAttribute("orientation",""+$APP.R.i(b)):this.removeAttribute("orientation")},
14
+ enumerable:!0,configurable:!0});Object.defineProperty(a,"size",{get:function(){return er(cr(this.getAttribute("size")))},set:function(b){return $APP.n(b)?this.setAttribute("size",""+$APP.R.i(b)):this.removeAttribute("size")},enumerable:!0,configurable:!0});return $APP.ch(a,"disabled","disabled")},rr=function(a){hr(a);pr(a);or(a);nr(a);return null},sr=function(a){pr(a);return null},tr=function(a,b,c,d){$APP.M(c,d)&&nr(a);return null},vr=function(){return $APP.Wg("x-stepper",new $APP.P(null,5,[$APP.Mg,
15
+ ur,$APP.Ng,rr,$APP.Og,sr,$APP.Qg,tr,$APP.Ug,qr],null))},mr=new $APP.F(null,"upcoming","upcoming",1873315471),ir=new $APP.F(null,"steps-raw","steps-raw",1741812533),br=new $APP.F(null,"md","md",707286655),wr=new $APP.F(null,"lg","lg",-80787836),xr=new $APP.F(null,"sm","sm",-1402575065);var ur=["steps","current","orientation","size","disabled"];$APP.Ud(["x-stepper-change",new $APP.P(null,2,[$APP.Z,new $APP.P(null,2,[$APP.mj,$APP.W,$APP.Ln,$APP.W],null),$APP.Un,!0],null)]);var Xq=new $APP.P(null,2,["horizontal",$APP.gn,"vertical",$APP.Nk],null),Zq=new $APP.P(null,2,[$APP.gn,"horizontal",$APP.Nk,"vertical"],null),ar=new $APP.P(null,3,["sm",xr,"md",br,"lg",wr],null),dr=new $APP.P(null,3,[xr,"sm",br,"md",wr,"lg"],null);$APP.da("baredom.exports.x_stepper.init",vr);export const init=vr;