@vanelsas/baredom 0.1.11-alpha → 0.2.2-alpha

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 (60) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +2 -2
  3. package/dist/base.js +245 -245
  4. package/dist/x-alert.js +9 -9
  5. package/dist/x-avatar-group.js +4 -4
  6. package/dist/x-avatar.js +17 -17
  7. package/dist/x-badge.js +11 -11
  8. package/dist/x-breadcrumbs.js +7 -7
  9. package/dist/x-button.js +15 -15
  10. package/dist/x-cancel-dialogue.js +14 -14
  11. package/dist/x-card.js +2 -2
  12. package/dist/x-chart.js +44 -44
  13. package/dist/x-checkbox.js +7 -7
  14. package/dist/x-chip.js +5 -5
  15. package/dist/x-collapse.js +11 -11
  16. package/dist/x-command-palette.js +17 -17
  17. package/dist/x-container.js +6 -6
  18. package/dist/x-context-menu.js +19 -19
  19. package/dist/x-copy.js +14 -14
  20. package/dist/x-currency-field.js +21 -21
  21. package/dist/x-date-picker.js +36 -36
  22. package/dist/x-divider.js +10 -10
  23. package/dist/x-drawer.js +9 -9
  24. package/dist/x-dropdown.js +6 -6
  25. package/dist/x-fieldset.js +5 -5
  26. package/dist/x-file-download.js +6 -6
  27. package/dist/x-form-field.js +17 -15
  28. package/dist/x-form.js +10 -10
  29. package/dist/x-grid.js +7 -7
  30. package/dist/x-menu-item.js +10 -10
  31. package/dist/x-menu.js +10 -10
  32. package/dist/x-modal.js +13 -13
  33. package/dist/x-navbar.js +12 -12
  34. package/dist/x-notification-center.js +6 -6
  35. package/dist/x-pagination.js +16 -16
  36. package/dist/x-popover.js +7 -7
  37. package/dist/x-progress-circle.js +9 -9
  38. package/dist/x-progress.js +8 -8
  39. package/dist/x-radio.js +9 -9
  40. package/dist/x-search-field.js +11 -11
  41. package/dist/x-select.js +10 -10
  42. package/dist/x-sidebar.js +24 -24
  43. package/dist/x-skeleton.js +5 -5
  44. package/dist/x-slider.js +9 -9
  45. package/dist/x-spacer.js +5 -5
  46. package/dist/x-spinner.js +5 -5
  47. package/dist/x-stat.js +9 -9
  48. package/dist/x-stepper.js +6 -6
  49. package/dist/x-switch.js +11 -11
  50. package/dist/x-tab.js +3 -3
  51. package/dist/x-table-cell.js +23 -23
  52. package/dist/x-table-row.js +5 -5
  53. package/dist/x-table.js +6 -6
  54. package/dist/x-tabs.js +7 -7
  55. package/dist/x-text-area.js +18 -18
  56. package/dist/x-timeline-item.js +13 -13
  57. package/dist/x-timeline.js +9 -9
  58. package/dist/x-toast.js +11 -11
  59. package/dist/x-toaster.js +1 -1
  60. package/package.json +1 -1
package/dist/x-sidebar.js CHANGED
@@ -1,27 +1,27 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var fG=function(a){if(a!=null&&a.C!=null)a=a.C(a);else{var b=fG[$APP.da(a==null?null:a)];if(b!=null)a=b.g?b.g(a):b.call(null,a);else if(b=fG._,b!=null)a=b.g?b.g(a):b.call(null,a);else throw $APP.sa("IEmptyableCollection.-empty",a);}return a},gG=function(){},hG=function(){},iG=function(a){return a==null?null:a!=null&&(a.l&4||$APP.t===a.Zb)?a.C(null):(a!=null?a.l&4||$APP.t===a.Zb||(a.l?0:$APP.qa(gG,a)):$APP.qa(gG,a))?fG(a):null},jG=function(a){return a==null?!1:a!=null?a.l&64||$APP.t===a.mb?!0:a.l?
3
- !1:$APP.qa(hG,a):$APP.qa(hG,a)},kG=function(a){function b(d,e){d.push(e);return d}var c=[];return $APP.Fc?$APP.Fc(b,c,a):$APP.Gc.call(null,b,c,a)},lG=function(){},mG=function(a,b){if(a!=null&&a.$b!=null)a=a.$b(a,b);else{var c=mG[$APP.da(a==null?null:a)];if(c!=null)a=c.h?c.h(a,b):c.call(null,a,b);else if(c=mG._,c!=null)a=c.h?c.h(a,b):c.call(null,a,b);else throw $APP.sa("IEncodeClojure.-js-\x3eclj",a);}return a},oG=function(a){var b=$APP.gc([$APP.qi,!0]),c=$APP.M(b);c=$APP.I(c,$APP.qi);var d=$APP.n(c)?
4
- $APP.Of:$APP.ta;return function h(f){return(f!=null?$APP.t===f.rc||(f.Ub?0:$APP.qa(lG,f)):$APP.qa(lG,f))?mG(f,$APP.rd(nG,b)):jG(f)?$APP.Cf($APP.Id.h(h,f)):$APP.Zd(f)?new $APP.te(h($APP.Ma(f)),h($APP.Na(f))):$APP.sc(f)?$APP.Ae.m(iG(f),$APP.Id.g(h),f):$APP.n($APP.pa(f))?$APP.jd($APP.Fc(function(k,m){return $APP.kd(k,h(m))},$APP.hb($APP.Ld),f)):$APP.ra(f)===Object?$APP.jd($APP.Fc(function(k,m){var q=d.g?d.g(m):d.call(null,m);m=h($APP.l(f,m));return $APP.kb(k,q,m)},$APP.hb($APP.xd),$APP.la(f))):f}(a)},
5
- pG=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},qG=function(a,b,c){a.dispatchEvent(new CustomEvent(b,$APP.xg(new $APP.P(null,3,[$APP.Y,c,$APP.Hi,!0,$APP.Ti,!0],null))))},sG=function(a,b){$APP.Cc(rG,b)&&qG(a,"dismiss",new $APP.P(null,1,[$APP.xh,b],null))},tG=function(a){var b=window.getComputedStyle(a);return $APP.N("none",b.display)&&$APP.N("hidden",b.visibility)&&a.offsetWidth>0&&a.offsetHeight>0},uG=function(a){var b=$APP.l(a,"_panel");$APP.n(b.hasAttribute("tabindex"))||
6
- (b.setAttribute("tabindex","-1"),a._panelTabindexAdded=!0);return b.focus()},vG=function(a){var b=$APP.l(a,"_restoreFocusTarget"),c=$APP.l(a,"_panel"),d=$APP.l(a,"_panelTabindexAdded")===!0,e=$APP.l(a,"_root");var f=$APP.l(a,"_sidebar");e=$APP.n(e)?e.activeElement:null;var h=document.activeElement;f=$APP.n($APP.n(e)?$APP.n(f)?f.contains(e):f:e)?e:$APP.n($APP.n(h)?$APP.n(f)?f.contains(h):f:h)?h:null;$APP.n(f)&&f.blur();a._tabbables=null;a._restoreFocusTarget=null;$APP.n($APP.n(c)?d:c)&&(c.removeAttribute("tabindex"),
7
- a._panelTabindexAdded=!1);return $APP.n($APP.n(b)?b.isConnected:b)?b.focus():null},wG=function(a,b){var c=$APP.l(a,"_tabbables");c=$APP.n(c)?$APP.be($APP.gc(c)):$APP.Ld;var d=$APP.l(a,"_panel");if($APP.rc(c))return b.preventDefault(),$APP.n(d)?uG(a):null;a=document.activeElement;d=$APP.x(c);c=$APP.ic(c);var e=b.shiftKey;return $APP.n($APP.n(e)?$APP.D.h(a,d):e)?(b.preventDefault(),c.focus()):$APP.p(e)&&$APP.D.h(a,c)?(b.preventDefault(),d.focus()):null},xG=function(a){if(!$APP.n($APP.l(a,"_root"))){var b=
8
- a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("aside"),f=document.createElement("div"),h=document.createElement("slot");c.textContent=":host { --x-sidebar-bg: Canvas; --x-sidebar-fg: CanvasText; --x-sidebar-border: color-mix(in srgb, currentColor 12%, transparent); --x-sidebar-backdrop: rgb(0 0 0 / 0.4); --x-sidebar-shadow: 0 8px 24px rgb(0 0 0 / 0.18); --x-sidebar-width: 18rem; --x-sidebar-collapsed-width: 4rem; --x-sidebar-duration: 180ms; --x-sidebar-easing: ease; display: block; position: relative;}:host([hidden]) { display: none; }.backdrop[hidden] { display: none; }.backdrop { position: fixed; inset: 0; background: var(--x-sidebar-backdrop); opacity: 0; z-index: 999; pointer-events: none; transition: opacity var(--x-sidebar-duration) var(--x-sidebar-easing);}.backdrop[data-active\x3d'true'] { opacity: 1; pointer-events: auto;}.sidebar { position: relative; color: var(--x-sidebar-fg); block-size: 100%;}.panel { background: var(--x-sidebar-bg); color: var(--x-sidebar-fg); inline-size: var(--x-sidebar-width); min-block-size: 100%; overflow: hidden; box-shadow: var(--x-sidebar-shadow); will-change: transform, inline-size; transition: transform var(--x-sidebar-duration) var(--x-sidebar-easing), inline-size var(--x-sidebar-duration) var(--x-sidebar-easing), opacity var(--x-sidebar-duration) var(--x-sidebar-easing);}:host([data-effective-variant\x3d'docked']) .panel[data-collapsed\x3d'true'] { inline-size: var(--x-sidebar-collapsed-width);}:host([data-effective-variant\x3d'overlay']) .sidebar,:host([data-effective-variant\x3d'modal']) .sidebar { position: fixed; inset-block: 0; z-index: 1000; pointer-events: none;}:host([data-effective-variant\x3d'overlay'][data-open\x3d'true']) .sidebar,:host([data-effective-variant\x3d'modal'][data-open\x3d'true']) .sidebar { pointer-events: auto;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'left']) .sidebar,:host([data-effective-variant\x3d'modal'][data-placement\x3d'left']) .sidebar { inset-inline-start: 0;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'right']) .sidebar,:host([data-effective-variant\x3d'modal'][data-placement\x3d'right']) .sidebar { inset-inline-end: 0;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'left']) .panel[data-open\x3d'false'],:host([data-effective-variant\x3d'modal'][data-placement\x3d'left']) .panel[data-open\x3d'false'] { transform: translateX(-100%); pointer-events: none;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'right']) .panel[data-open\x3d'false'],:host([data-effective-variant\x3d'modal'][data-placement\x3d'right']) .panel[data-open\x3d'false'] { transform: translateX(100%); pointer-events: none;}:host([data-effective-variant\x3d'overlay']) .panel[data-open\x3d'true'],:host([data-effective-variant\x3d'modal']) .panel[data-open\x3d'true'] { transform: translateX(0); pointer-events: auto;}:host([data-reduced-motion\x3d'true']) .panel,:host([data-reduced-motion\x3d'true']) .backdrop { transition: none;}@media (prefers-color-scheme: dark) { :host { --x-sidebar-border: color-mix(in srgb, currentColor 20%, transparent); --x-sidebar-shadow: 0 8px 24px rgb(0 0 0 / 0.4); }}";
9
- d.className="backdrop";d.setAttribute("part","backdrop");d.hidden=!0;e.className="sidebar";e.setAttribute("part","sidebar");f.className="panel";f.setAttribute("part","panel");f.appendChild(h);e.appendChild(f);b.appendChild(c);b.appendChild(d);b.appendChild(e);a._root=b;a._backdrop=d;a._sidebar=e;a._panel=f;a._slot=h}},TG=function(a){xG(a);var b=$APP.l(a,"_prevState");b=b==null?null:oG(b);b=$APP.n(b)?b:$APP.xd;var c=a.hasAttribute("open"),d=a.hasAttribute("collapsed"),e=a.getAttribute("placement"),
10
- f=a.getAttribute("variant"),h=a.getAttribute("breakpoint"),k=a.getAttribute("label"),m=window.innerWidth,q=window.matchMedia("(prefers-reduced-motion: reduce)");c=$APP.M(new $APP.P(null,8,[yG,c,zG,d,AG,e,BG,f,CG,h,DG,k,EG,m,FG,$APP.J(q.matches)],null));k=$APP.I(c,yG);h=$APP.I(c,zG);d=$APP.I(c,AG);e=$APP.I(c,BG);m=$APP.I(c,CG);q=$APP.I(c,DG);f=$APP.I(c,EG);c=$APP.I(c,FG);d=$APP.Cc(GG,d)?d:$APP.Ai.g(HG);e=$APP.Cc(IG,e)?e:$APP.Wg.g(HG);var r=$APP.Ph.g(HG);m=m==null?null:""+$APP.S.g(m);m=m==null?null:
11
- (0,$APP.dg)(m);$APP.v(m)?(m=Number(m),m=$APP.n(Number.isFinite(m))?m:r):m=r;q=q!=null?(0,$APP.dg)(q):null;q=$APP.v(q)?q:null;q=$APP.n(q)?q:$APP.W.g(HG);k=$APP.M(new $APP.P(null,1,[yG,k],null));k=$APP.I(k,yG);k=$APP.J(k);h=$APP.J(h);f=f<m?"modal":e;r=$APP.D.h(f,"modal");var u=$APP.D.h(f,"overlay"),w=$APP.D.h(f,"docked");c=$APP.bf([$APP.si,JG,KG,LG,$APP.Ph,MG,NG,OG,PG,$APP.W,$APP.Ai,QG,RG,SG],[k,f,!k,w&&h,m,w,h,e,k&&(r||u),q,d,$APP.J(c),r,u]);k=$APP.M(c);d=$APP.I(k,JG);e=$APP.I(k,$APP.Ai);f=$APP.I(k,
12
- $APP.si);h=$APP.I(k,LG);k=$APP.I(k,QG);a.setAttribute("data-effective-variant",d);a.setAttribute("data-placement",e);a.setAttribute("data-open",$APP.n(f)?"true":"false");a.setAttribute("data-collapsed",$APP.n(h)?"true":"false");a.setAttribute("data-reduced-motion",$APP.n(k)?"true":"false");d=RG.g(c);$APP.n(d)&&(d=$APP.si.g(c),$APP.n(d)&&(d=RG.g(b),d=$APP.n(d)?$APP.si.g(b):d,d=$APP.p(d)));$APP.n(d)?(d=$APP.be($APP.Kd(tG,$APP.gc($APP.l(a,"_panel").querySelectorAll("a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex\x3d'-1'])")))),
13
- a._restoreFocusTarget=document.activeElement,e=$APP.xg(d),a._tabbables=e,$APP.v(d)?$APP.x(d).focus():uG(a)):(d=RG.g(b),$APP.n(d)&&(d=$APP.si.g(b),$APP.n(d)&&(d=RG.g(c),d=$APP.n(d)?$APP.si.g(c):d,d=$APP.p(d))),$APP.n(d)&&vG(a));e=$APP.M(c);d=$APP.I(e,$APP.W);e=$APP.I(e,KG);f=$APP.l(a,"_sidebar");$APP.n(f)&&(f.setAttribute("role","navigation"),f.setAttribute("aria-label",d),f.setAttribute("aria-hidden",$APP.n(e)?"true":"false"));d=$APP.M(c);d=$APP.I(d,PG);e=$APP.l(a,"_backdrop");$APP.n(e)&&(e.setAttribute("data-active",
14
- $APP.n(d)?"true":"false"),e.hidden=$APP.p(d),e.inert!=null&&(e.inert=$APP.p(d)));h=$APP.M(c);d=$APP.I(h,$APP.si);e=$APP.I(h,$APP.Ai);f=$APP.I(h,JG);h=$APP.I(h,LG);k=$APP.l(a,"_panel");$APP.n(k)&&(k.setAttribute("data-open",$APP.n(d)?"true":"false"),k.setAttribute("data-placement",e),k.setAttribute("data-variant",f),k.setAttribute("data-collapsed",$APP.n(h)?"true":"false"));$APP.N($APP.si.g(b),$APP.si.g(c))&&(b=$APP.si.g(c),qG(a,"toggle",new $APP.P(null,1,[$APP.si,$APP.J(b)],null)));b=$APP.xg(c);a._prevState=
15
- b},UG=function(a,b){var c=function(){var e=$APP.l(a,"_prevState");return e==null?null:oG(e)}(),d=$APP.l(a,"_backdrop");return $APP.n(function(){var e=RG.g(c);e=$APP.n(e)?e:SG.g(c);return $APP.n(e)?(e=$APP.si.g(c),$APP.n(e)?$APP.D.h(b.target,d):e):e}())?(sG(a,"backdrop"),pG(a,"open",!1)):null},VG=function(a,b){var c=function(){var e=$APP.l(a,"_prevState");return e==null?null:oG(e)}(),d=b.key;return $APP.n(function(){var e=RG.g(c);e=$APP.n(e)?e:SG.g(c);return $APP.n(e)?$APP.si.g(c):e}())?$APP.D.h(d,
16
- "Escape")?(b.preventDefault(),sG(a,"escape"),pG(a,"open",!1)):$APP.n(function(){var e=RG.g(c);return $APP.n(e)?$APP.D.h(d,"Tab"):e}())?wG(a,b):null:null},WG=function(a){$APP.n($APP.l(a,"_handlers"))||$APP.ma(a,"_handlers",{onBackdropClick:function(b){return UG(a,b)},onKeydown:function(b){return VG(a,b)},onResize:function(){return TG(a)}})},XG=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return pG(this,"open",$APP.J(b))},enumerable:!0,
17
- configurable:!0})},YG=function(a){Object.defineProperty(a,"collapsed",{get:function(){return this.hasAttribute("collapsed")},set:function(b){return pG(this,"collapsed",$APP.J(b))},enumerable:!0,configurable:!0})},ZG=function(){var a=Object.create(HTMLElement.prototype);$APP.ma(a,"connectedCallback",function(){xG(this);WG(this);if($APP.l(this,"_listening")!==!0){var b=$APP.l(this,"_handlers"),c=$APP.l(this,"_backdrop"),d=$APP.l(this,"_root");$APP.n($APP.n(c)?b:c)&&c.addEventListener("click",$APP.l(b,
18
- "onBackdropClick"));$APP.n($APP.n(d)?b:d)&&d.addEventListener("keydown",$APP.l(b,"onKeydown"));$APP.n(b)&&window.addEventListener("resize",$APP.l(b,"onResize"));this._listening=!0}return TG(this)});$APP.ma(a,"disconnectedCallback",function(){if($APP.l(this,"_listening")===!0){var b=$APP.l(this,"_handlers"),c=$APP.l(this,"_backdrop"),d=$APP.l(this,"_root");$APP.n($APP.n(c)?b:c)&&c.removeEventListener("click",$APP.l(b,"onBackdropClick"));$APP.n($APP.n(d)?b:d)&&d.removeEventListener("keydown",$APP.l(b,
19
- "onKeydown"));$APP.n(b)&&window.removeEventListener("resize",$APP.l(b,"onResize"));this._listening=!1}return vG(this)});$APP.ma(a,"attributeChangedCallback",function(b,c,d){return $APP.N(c,d)?TG(this):null});XG(a);YG(a);return a},aH=function(){function a(){return Reflect.construct(HTMLElement,[],this.constructor)}if($APP.n(customElements.get("x-sidebar")))return null;var b=ZG();a.prototype=b;Object.defineProperty(b,"constructor",{value:a});Object.setPrototypeOf(a,HTMLElement);a.observedAttributes=
20
- $G;return customElements.define("x-sidebar",a)},bH=function(){return aH()};$APP.Ib.prototype.C=$APP.ca(24,function(){return $APP.Lb});$APP.Uc.prototype.C=$APP.ca(23,function(){return $APP.Ua($APP.Lb,this.s)});$APP.Vc.prototype.C=$APP.ca(22,function(){return this});$APP.Wc.prototype.C=$APP.ca(21,function(){return $APP.Lb});$APP.$c.prototype.C=$APP.ca(20,function(){return $APP.Ua($APP.Lb,this.s)});$APP.ed.prototype.C=$APP.ca(19,function(){return $APP.Lb});$APP.Fd.prototype.C=$APP.ca(18,function(){return $APP.Lb});
2
+ var eG=function(a){if(a!=null&&a.C!=null)a=a.C(a);else{var b=eG[$APP.da(a==null?null:a)];if(b!=null)a=b.g?b.g(a):b.call(null,a);else if(b=eG._,b!=null)a=b.g?b.g(a):b.call(null,a);else throw $APP.sa("IEmptyableCollection.-empty",a);}return a},fG=function(){},gG=function(){},hG=function(a){return a==null?null:a!=null&&(a.l&4||$APP.t===a.Zb)?a.C(null):(a!=null?a.l&4||$APP.t===a.Zb||(a.l?0:$APP.qa(fG,a)):$APP.qa(fG,a))?eG(a):null},iG=function(a){return a==null?!1:a!=null?a.l&64||$APP.t===a.mb?!0:a.l?
3
+ !1:$APP.qa(gG,a):$APP.qa(gG,a)},jG=function(a){function b(d,e){d.push(e);return d}var c=[];return $APP.Fc?$APP.Fc(b,c,a):$APP.Gc.call(null,b,c,a)},kG=function(){},lG=function(a,b){if(a!=null&&a.$b!=null)a=a.$b(a,b);else{var c=lG[$APP.da(a==null?null:a)];if(c!=null)a=c.h?c.h(a,b):c.call(null,a,b);else if(c=lG._,c!=null)a=c.h?c.h(a,b):c.call(null,a,b);else throw $APP.sa("IEncodeClojure.-js-\x3eclj",a);}return a},nG=function(a){var b=$APP.gc([$APP.qi,!0]),c=$APP.M(b);c=$APP.I(c,$APP.qi);var d=$APP.n(c)?
4
+ $APP.Of:$APP.ta;return function h(g){return(g!=null?$APP.t===g.rc||(g.Ub?0:$APP.qa(kG,g)):$APP.qa(kG,g))?lG(g,$APP.rd(mG,b)):iG(g)?$APP.Cf($APP.Id.h(h,g)):$APP.Zd(g)?new $APP.te(h($APP.Ma(g)),h($APP.Na(g))):$APP.sc(g)?$APP.Ae.m(hG(g),$APP.Id.g(h),g):$APP.n($APP.pa(g))?$APP.jd($APP.Fc(function(k,m){return $APP.kd(k,h(m))},$APP.hb($APP.Ld),g)):$APP.ra(g)===Object?$APP.jd($APP.Fc(function(k,m){var q=d.g?d.g(m):d.call(null,m);m=h($APP.l(g,m));return $APP.kb(k,q,m)},$APP.hb($APP.xd),$APP.la(g))):g}(a)},
5
+ oG=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},pG=function(a,b,c){a.dispatchEvent(new CustomEvent(b,$APP.xg(new $APP.P(null,3,[$APP.Y,c,$APP.Hi,!0,$APP.Ti,!0],null))))},rG=function(a,b){$APP.Cc(qG,b)&&pG(a,"dismiss",new $APP.P(null,1,[$APP.xh,b],null))},sG=function(a){var b=window.getComputedStyle(a);return $APP.N("none",b.display)&&$APP.N("hidden",b.visibility)&&a.offsetWidth>0&&a.offsetHeight>0},tG=function(a){var b=$APP.l(a,"_panel");$APP.n(b.hasAttribute("tabindex"))||
6
+ (b.setAttribute("tabindex","-1"),a._panelTabindexAdded=!0);return b.focus()},uG=function(a){var b=$APP.l(a,"_restoreFocusTarget"),c=$APP.l(a,"_panel"),d=$APP.l(a,"_panelTabindexAdded")===!0,e=$APP.l(a,"_root");var g=$APP.l(a,"_sidebar");e=$APP.n(e)?e.activeElement:null;var h=document.activeElement;g=$APP.n($APP.n(e)?$APP.n(g)?g.contains(e):g:e)?e:$APP.n($APP.n(h)?$APP.n(g)?g.contains(h):g:h)?h:null;$APP.n(g)&&g.blur();a._tabbables=null;a._restoreFocusTarget=null;$APP.n($APP.n(c)?d:c)&&(c.removeAttribute("tabindex"),
7
+ a._panelTabindexAdded=!1);return $APP.n($APP.n(b)?b.isConnected:b)?b.focus():null},vG=function(a,b){var c=$APP.l(a,"_tabbables");c=$APP.n(c)?$APP.be($APP.gc(c)):$APP.Ld;var d=$APP.l(a,"_panel");if($APP.rc(c))return b.preventDefault(),$APP.n(d)?tG(a):null;a=document.activeElement;d=$APP.x(c);c=$APP.ic(c);var e=b.shiftKey;return $APP.n($APP.n(e)?$APP.E.h(a,d):e)?(b.preventDefault(),c.focus()):$APP.p(e)&&$APP.E.h(a,c)?(b.preventDefault(),d.focus()):null},wG=function(a){if(!$APP.n($APP.l(a,"_root"))){var b=
8
+ a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("aside"),g=document.createElement("div"),h=document.createElement("slot");c.textContent=":host { --x-sidebar-bg: Canvas; --x-sidebar-fg: CanvasText; --x-sidebar-border: color-mix(in srgb, currentColor 12%, transparent); --x-sidebar-backdrop: rgb(0 0 0 / 0.4); --x-sidebar-shadow: 0 8px 24px rgb(0 0 0 / 0.18); --x-sidebar-width: 18rem; --x-sidebar-collapsed-width: 4rem; --x-sidebar-duration: 180ms; --x-sidebar-easing: ease; display: block; position: relative;}:host([hidden]) { display: none; }.backdrop[hidden] { display: none; }.backdrop { position: fixed; inset: 0; background: var(--x-sidebar-backdrop); opacity: 0; z-index: 999; pointer-events: none; transition: opacity var(--x-sidebar-duration) var(--x-sidebar-easing);}.backdrop[data-active\x3d'true'] { opacity: 1; pointer-events: auto;}.sidebar { position: relative; color: var(--x-sidebar-fg); block-size: 100%;}.panel { background: var(--x-sidebar-bg); color: var(--x-sidebar-fg); inline-size: var(--x-sidebar-width); min-block-size: 100%; overflow: hidden; box-shadow: var(--x-sidebar-shadow); will-change: transform, inline-size; transition: transform var(--x-sidebar-duration) var(--x-sidebar-easing), inline-size var(--x-sidebar-duration) var(--x-sidebar-easing), opacity var(--x-sidebar-duration) var(--x-sidebar-easing);}:host([data-effective-variant\x3d'docked']) .panel[data-collapsed\x3d'true'] { inline-size: var(--x-sidebar-collapsed-width);}:host([data-effective-variant\x3d'overlay']) .sidebar,:host([data-effective-variant\x3d'modal']) .sidebar { position: fixed; inset-block: 0; z-index: 1000; pointer-events: none;}:host([data-effective-variant\x3d'overlay'][data-open\x3d'true']) .sidebar,:host([data-effective-variant\x3d'modal'][data-open\x3d'true']) .sidebar { pointer-events: auto;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'left']) .sidebar,:host([data-effective-variant\x3d'modal'][data-placement\x3d'left']) .sidebar { inset-inline-start: 0;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'right']) .sidebar,:host([data-effective-variant\x3d'modal'][data-placement\x3d'right']) .sidebar { inset-inline-end: 0;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'left']) .panel[data-open\x3d'false'],:host([data-effective-variant\x3d'modal'][data-placement\x3d'left']) .panel[data-open\x3d'false'] { transform: translateX(-100%); pointer-events: none;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'right']) .panel[data-open\x3d'false'],:host([data-effective-variant\x3d'modal'][data-placement\x3d'right']) .panel[data-open\x3d'false'] { transform: translateX(100%); pointer-events: none;}:host([data-effective-variant\x3d'overlay']) .panel[data-open\x3d'true'],:host([data-effective-variant\x3d'modal']) .panel[data-open\x3d'true'] { transform: translateX(0); pointer-events: auto;}:host([data-reduced-motion\x3d'true']) .panel,:host([data-reduced-motion\x3d'true']) .backdrop { transition: none;}@media (prefers-color-scheme: dark) { :host { --x-sidebar-border: color-mix(in srgb, currentColor 20%, transparent); --x-sidebar-shadow: 0 8px 24px rgb(0 0 0 / 0.4); }}";
9
+ d.className="backdrop";d.setAttribute("part","backdrop");d.hidden=!0;e.className="sidebar";e.setAttribute("part","sidebar");g.className="panel";g.setAttribute("part","panel");g.appendChild(h);e.appendChild(g);b.appendChild(c);b.appendChild(d);b.appendChild(e);a._root=b;a._backdrop=d;a._sidebar=e;a._panel=g;a._slot=h}},SG=function(a){wG(a);var b=$APP.l(a,"_prevState");b=b==null?null:nG(b);b=$APP.n(b)?b:$APP.xd;var c=a.hasAttribute("open"),d=a.hasAttribute("collapsed"),e=a.getAttribute("placement"),
10
+ g=a.getAttribute("variant"),h=a.getAttribute("breakpoint"),k=a.getAttribute("label"),m=window.innerWidth,q=window.matchMedia("(prefers-reduced-motion: reduce)");c=$APP.M(new $APP.P(null,8,[xG,c,yG,d,zG,e,AG,g,BG,h,CG,k,DG,m,EG,$APP.J(q.matches)],null));k=$APP.I(c,xG);h=$APP.I(c,yG);d=$APP.I(c,zG);e=$APP.I(c,AG);m=$APP.I(c,BG);q=$APP.I(c,CG);g=$APP.I(c,DG);c=$APP.I(c,EG);d=$APP.Cc(FG,d)?d:$APP.Ai.g(GG);e=$APP.Cc(HG,e)?e:$APP.Wg.g(GG);var r=$APP.Ph.g(GG);m=m==null?null:""+$APP.S.g(m);m=m==null?null:
11
+ (0,$APP.dg)(m);$APP.u(m)?(m=Number(m),m=$APP.n(Number.isFinite(m))?m:r):m=r;q=q!=null?(0,$APP.dg)(q):null;q=$APP.u(q)?q:null;q=$APP.n(q)?q:$APP.W.g(GG);k=$APP.M(new $APP.P(null,1,[xG,k],null));k=$APP.I(k,xG);k=$APP.J(k);h=$APP.J(h);g=g<m?"modal":e;r=$APP.E.h(g,"modal");var v=$APP.E.h(g,"overlay"),w=$APP.E.h(g,"docked");c=$APP.bf([$APP.si,IG,JG,KG,$APP.Ph,LG,MG,NG,OG,$APP.W,$APP.Ai,PG,QG,RG],[k,g,!k,w&&h,m,w,h,e,k&&(r||v),q,d,$APP.J(c),r,v]);k=$APP.M(c);d=$APP.I(k,IG);e=$APP.I(k,$APP.Ai);g=$APP.I(k,
12
+ $APP.si);h=$APP.I(k,KG);k=$APP.I(k,PG);a.setAttribute("data-effective-variant",d);a.setAttribute("data-placement",e);a.setAttribute("data-open",$APP.n(g)?"true":"false");a.setAttribute("data-collapsed",$APP.n(h)?"true":"false");a.setAttribute("data-reduced-motion",$APP.n(k)?"true":"false");d=QG.g(c);$APP.n(d)&&(d=$APP.si.g(c),$APP.n(d)&&(d=QG.g(b),d=$APP.n(d)?$APP.si.g(b):d,d=$APP.p(d)));$APP.n(d)?(d=$APP.be($APP.Kd(sG,$APP.gc($APP.l(a,"_panel").querySelectorAll("a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex\x3d'-1'])")))),
13
+ a._restoreFocusTarget=document.activeElement,e=$APP.xg(d),a._tabbables=e,$APP.u(d)?$APP.x(d).focus():tG(a)):(d=QG.g(b),$APP.n(d)&&(d=$APP.si.g(b),$APP.n(d)&&(d=QG.g(c),d=$APP.n(d)?$APP.si.g(c):d,d=$APP.p(d))),$APP.n(d)&&uG(a));e=$APP.M(c);d=$APP.I(e,$APP.W);e=$APP.I(e,JG);g=$APP.l(a,"_sidebar");$APP.n(g)&&(g.setAttribute("role","navigation"),g.setAttribute("aria-label",d),g.setAttribute("aria-hidden",$APP.n(e)?"true":"false"));d=$APP.M(c);d=$APP.I(d,OG);e=$APP.l(a,"_backdrop");$APP.n(e)&&(e.setAttribute("data-active",
14
+ $APP.n(d)?"true":"false"),e.hidden=$APP.p(d),e.inert!=null&&(e.inert=$APP.p(d)));h=$APP.M(c);d=$APP.I(h,$APP.si);e=$APP.I(h,$APP.Ai);g=$APP.I(h,IG);h=$APP.I(h,KG);k=$APP.l(a,"_panel");$APP.n(k)&&(k.setAttribute("data-open",$APP.n(d)?"true":"false"),k.setAttribute("data-placement",e),k.setAttribute("data-variant",g),k.setAttribute("data-collapsed",$APP.n(h)?"true":"false"));$APP.N($APP.si.g(b),$APP.si.g(c))&&(b=$APP.si.g(c),pG(a,"toggle",new $APP.P(null,1,[$APP.si,$APP.J(b)],null)));b=$APP.xg(c);a._prevState=
15
+ b},TG=function(a,b){var c=function(){var e=$APP.l(a,"_prevState");return e==null?null:nG(e)}(),d=$APP.l(a,"_backdrop");return $APP.n(function(){var e=QG.g(c);e=$APP.n(e)?e:RG.g(c);return $APP.n(e)?(e=$APP.si.g(c),$APP.n(e)?$APP.E.h(b.target,d):e):e}())?(rG(a,"backdrop"),oG(a,"open",!1)):null},UG=function(a,b){var c=function(){var e=$APP.l(a,"_prevState");return e==null?null:nG(e)}(),d=b.key;return $APP.n(function(){var e=QG.g(c);e=$APP.n(e)?e:RG.g(c);return $APP.n(e)?$APP.si.g(c):e}())?$APP.E.h(d,
16
+ "Escape")?(b.preventDefault(),rG(a,"escape"),oG(a,"open",!1)):$APP.n(function(){var e=QG.g(c);return $APP.n(e)?$APP.E.h(d,"Tab"):e}())?vG(a,b):null:null},VG=function(a){$APP.n($APP.l(a,"_handlers"))||$APP.ma(a,"_handlers",{onBackdropClick:function(b){return TG(a,b)},onKeydown:function(b){return UG(a,b)},onResize:function(){return SG(a)}})},WG=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return oG(this,"open",$APP.J(b))},enumerable:!0,
17
+ configurable:!0})},XG=function(a){Object.defineProperty(a,"collapsed",{get:function(){return this.hasAttribute("collapsed")},set:function(b){return oG(this,"collapsed",$APP.J(b))},enumerable:!0,configurable:!0})},YG=function(){var a=Object.create(HTMLElement.prototype);$APP.ma(a,"connectedCallback",function(){wG(this);VG(this);if($APP.l(this,"_listening")!==!0){var b=$APP.l(this,"_handlers"),c=$APP.l(this,"_backdrop"),d=$APP.l(this,"_root");$APP.n($APP.n(c)?b:c)&&c.addEventListener("click",$APP.l(b,
18
+ "onBackdropClick"));$APP.n($APP.n(d)?b:d)&&d.addEventListener("keydown",$APP.l(b,"onKeydown"));$APP.n(b)&&window.addEventListener("resize",$APP.l(b,"onResize"));this._listening=!0}return SG(this)});$APP.ma(a,"disconnectedCallback",function(){if($APP.l(this,"_listening")===!0){var b=$APP.l(this,"_handlers"),c=$APP.l(this,"_backdrop"),d=$APP.l(this,"_root");$APP.n($APP.n(c)?b:c)&&c.removeEventListener("click",$APP.l(b,"onBackdropClick"));$APP.n($APP.n(d)?b:d)&&d.removeEventListener("keydown",$APP.l(b,
19
+ "onKeydown"));$APP.n(b)&&window.removeEventListener("resize",$APP.l(b,"onResize"));this._listening=!1}return uG(this)});$APP.ma(a,"attributeChangedCallback",function(b,c,d){return $APP.N(c,d)?SG(this):null});WG(a);XG(a);return a},$G=function(){function a(){return Reflect.construct(HTMLElement,[],this.constructor)}if($APP.n(customElements.get("x-sidebar")))return null;var b=YG();a.prototype=b;Object.defineProperty(b,"constructor",{value:a});Object.setPrototypeOf(a,HTMLElement);a.observedAttributes=
20
+ ZG;return customElements.define("x-sidebar",a)},aH=function(){return $G()};$APP.Ib.prototype.C=$APP.ca(24,function(){return $APP.Lb});$APP.Uc.prototype.C=$APP.ca(23,function(){return $APP.Ua($APP.Lb,this.s)});$APP.Vc.prototype.C=$APP.ca(22,function(){return this});$APP.Wc.prototype.C=$APP.ca(21,function(){return $APP.Lb});$APP.$c.prototype.C=$APP.ca(20,function(){return $APP.Ua($APP.Lb,this.s)});$APP.ed.prototype.C=$APP.ca(19,function(){return $APP.Lb});$APP.Fd.prototype.C=$APP.ca(18,function(){return $APP.Lb});
21
21
  $APP.O.prototype.C=$APP.ca(17,function(){return $APP.Ua($APP.Ld,this.s)});$APP.ce.prototype.C=$APP.ca(16,function(){return $APP.Lb});$APP.te.prototype.C=$APP.ca(15,function(){return null});$APP.ue.prototype.C=$APP.ca(14,function(){return $APP.Lb});$APP.P.prototype.C=$APP.ca(13,function(){return $APP.Ua($APP.xd,this.s)});$APP.Se.prototype.C=$APP.ca(12,function(){return $APP.Lb});$APP.We.prototype.C=$APP.ca(11,function(){return $APP.Lb});
22
22
  $APP.af.prototype.C=$APP.ca(10,function(){return $APP.Ua($APP.Ce,this.s)});$APP.gf.prototype.C=$APP.ca(9,function(){return $APP.Lb});$APP.hf.prototype.C=$APP.ca(8,function(){return null});$APP.jf.prototype.C=$APP.ca(7,function(){return null});$APP.kf.prototype.C=$APP.ca(6,function(){return new $APP.kf(this.Ca,null,0,this.s,0)});$APP.mf.prototype.C=$APP.ca(5,function(){return $APP.Lb});$APP.of.prototype.C=$APP.ca(4,function(){return $APP.Lb});
23
- $APP.R.prototype.C=$APP.ca(3,function(){return $APP.Ua($APP.rf,this.s)});$APP.uf.prototype.C=$APP.ca(2,function(){return new $APP.uf(this.s,fG(this.Ka),0)});$APP.yf.prototype.C=$APP.ca(1,function(){return $APP.Lb});$APP.zf.prototype.C=$APP.ca(0,function(){return $APP.Lb});var nG=function nG(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return nG.G(0<c.length?new $APP.Ib(c.slice(0),0,null):null)};
24
- nG.G=function(a){a=a instanceof $APP.Ib&&a.u===0?a.i:kG(a);var b=a.length;if(!$APP.Ac(b))throw Error(["Argument must be an integer: ",$APP.ta(b)].join(""));if((b&1)!==0)throw Error(["No value supplied for key: ",$APP.ta($APP.ic(a))].join(""));return $APP.wd(a)};nG.Y=0;nG.X=function(a){return this.G($APP.v(a))};
25
- var OG=new $APP.K(null,"declared-variant","declared-variant",-2054964950),cH=new $APP.K(null,"collapsed","collapsed",-628494523),EG=new $APP.K(null,"viewport-width","viewport-width",-1146235948),KG=new $APP.K(null,"aria-hidden","aria-hidden",399337029),FG=new $APP.K(null,"prefers-reduced-motion","prefers-reduced-motion",-2023150975),NG=new $APP.K(null,"collapsed-requested","collapsed-requested",1573505800),CG=new $APP.K(null,"breakpoint-attr","breakpoint-attr",-250275627),BG=new $APP.K(null,"variant-attr",
26
- "variant-attr",-1143729279),JG=new $APP.K(null,"effective-variant","effective-variant",-829495195),QG=new $APP.K(null,"reduced-motion","reduced-motion",79621277),PG=new $APP.K(null,"show-backdrop","show-backdrop",-532209910),MG=new $APP.K(null,"is-docked","is-docked",875310728),zG=new $APP.K(null,"collapsed-attr","collapsed-attr",-1535396832),RG=new $APP.K(null,"is-modal","is-modal",1610761086),AG=new $APP.K(null,"placement-attr","placement-attr",-1321967286),SG=new $APP.K(null,"is-overlay","is-overlay",
27
- 1953921119),DG=new $APP.K(null,"label-attr","label-attr",-571749887),yG=new $APP.K(null,"open-attr","open-attr",-1772289801),LG=new $APP.K(null,"collapsed-applied","collapsed-applied",-1696231706);var $G="open collapsed placement variant breakpoint label".split(" "),GG=$APP.sf(["right","left"]),IG=$APP.sf(["overlay","docked","modal"]),rG=$APP.sf(["backdrop","escape"]),HG=new $APP.P(null,6,[$APP.Ai,"left",$APP.Wg,"docked",$APP.Ph,768,$APP.W,"Sidebar",$APP.si,!1,cH,!1],null);$APP.wd(["toggle",new $APP.P(null,1,[$APP.Y,new $APP.P(null,1,[$APP.si,$APP.Li],null)],null),"dismiss",new $APP.P(null,1,[$APP.Y,new $APP.P(null,1,[$APP.xh,$APP.X],null)],null)]);$APP.ka("baredom.exports.x_sidebar.init",bH);export const init=bH;
23
+ $APP.R.prototype.C=$APP.ca(3,function(){return $APP.Ua($APP.rf,this.s)});$APP.uf.prototype.C=$APP.ca(2,function(){return new $APP.uf(this.s,eG(this.Ka),0)});$APP.yf.prototype.C=$APP.ca(1,function(){return $APP.Lb});$APP.zf.prototype.C=$APP.ca(0,function(){return $APP.Lb});var mG=function mG(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return mG.G(0<c.length?new $APP.Ib(c.slice(0),0,null):null)};
24
+ mG.G=function(a){a=a instanceof $APP.Ib&&a.u===0?a.i:jG(a);var b=a.length;if(!$APP.Ac(b))throw Error(["Argument must be an integer: ",$APP.ta(b)].join(""));if((b&1)!==0)throw Error(["No value supplied for key: ",$APP.ta($APP.ic(a))].join(""));return $APP.wd(a)};mG.Y=0;mG.X=function(a){return this.G($APP.u(a))};
25
+ var NG=new $APP.K(null,"declared-variant","declared-variant",-2054964950),bH=new $APP.K(null,"collapsed","collapsed",-628494523),DG=new $APP.K(null,"viewport-width","viewport-width",-1146235948),JG=new $APP.K(null,"aria-hidden","aria-hidden",399337029),EG=new $APP.K(null,"prefers-reduced-motion","prefers-reduced-motion",-2023150975),MG=new $APP.K(null,"collapsed-requested","collapsed-requested",1573505800),BG=new $APP.K(null,"breakpoint-attr","breakpoint-attr",-250275627),AG=new $APP.K(null,"variant-attr",
26
+ "variant-attr",-1143729279),IG=new $APP.K(null,"effective-variant","effective-variant",-829495195),PG=new $APP.K(null,"reduced-motion","reduced-motion",79621277),OG=new $APP.K(null,"show-backdrop","show-backdrop",-532209910),LG=new $APP.K(null,"is-docked","is-docked",875310728),yG=new $APP.K(null,"collapsed-attr","collapsed-attr",-1535396832),QG=new $APP.K(null,"is-modal","is-modal",1610761086),zG=new $APP.K(null,"placement-attr","placement-attr",-1321967286),RG=new $APP.K(null,"is-overlay","is-overlay",
27
+ 1953921119),CG=new $APP.K(null,"label-attr","label-attr",-571749887),xG=new $APP.K(null,"open-attr","open-attr",-1772289801),KG=new $APP.K(null,"collapsed-applied","collapsed-applied",-1696231706);var ZG="open collapsed placement variant breakpoint label".split(" "),FG=$APP.sf(["right","left"]),HG=$APP.sf(["overlay","docked","modal"]),qG=$APP.sf(["backdrop","escape"]),GG=new $APP.P(null,6,[$APP.Ai,"left",$APP.Wg,"docked",$APP.Ph,768,$APP.W,"Sidebar",$APP.si,!1,bH,!1],null);$APP.wd(["toggle",new $APP.P(null,1,[$APP.Y,new $APP.P(null,1,[$APP.si,$APP.Li],null)],null),"dismiss",new $APP.P(null,1,[$APP.Y,new $APP.P(null,1,[$APP.xh,$APP.X],null)],null)]);$APP.ka("baredom.exports.x_sidebar.init",aH);export const init=aH;
@@ -1,8 +1,8 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var lz=function(a){return typeof a==="string"&&$APP.N("",a)?a:null},pz=function(a){var b=new $APP.P(null,4,[$APP.Wg,a.getAttribute("variant"),mz,a.getAttribute("animation"),$APP.Og,a.getAttribute("width"),$APP.Ki,a.getAttribute("height")],null);var c=$APP.M(b),d=$APP.I(c,$APP.Wg),e=$APP.I(c,mz);b=$APP.I(c,$APP.Og);c=$APP.I(c,$APP.Ki);d=typeof d==="string"&&$APP.Cc(nz,d)?d:"rect";e=typeof e==="string"&&$APP.Cc(oz,e)?e:"pulse";b=new $APP.P(null,4,[$APP.Wg,d,mz,e,$APP.Og,lz(b),$APP.Ki,lz(c)],null);d=
3
- $APP.M(b);b=$APP.I(d,$APP.Wg);e=$APP.I(d,mz);c=$APP.I(d,$APP.Og);d=$APP.I(d,$APP.Ki);var f=$APP.l(a,"__xSkeletonBase");f.setAttribute("data-variant",b);f.setAttribute("data-animation",e);$APP.n(c)?f.style.setProperty("width",c):f.style.removeProperty("width");$APP.n(d)?f.style.setProperty("height",d):f.style.removeProperty("height");a.setAttribute("aria-hidden","true")},qz=function(a){Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?b:"rect"},set:function(b){return typeof b===
2
+ var kz=function(a){return typeof a==="string"&&$APP.N("",a)?a:null},oz=function(a){var b=new $APP.P(null,4,[$APP.Wg,a.getAttribute("variant"),lz,a.getAttribute("animation"),$APP.Og,a.getAttribute("width"),$APP.Ki,a.getAttribute("height")],null);var c=$APP.M(b),d=$APP.I(c,$APP.Wg),e=$APP.I(c,lz);b=$APP.I(c,$APP.Og);c=$APP.I(c,$APP.Ki);d=typeof d==="string"&&$APP.Cc(mz,d)?d:"rect";e=typeof e==="string"&&$APP.Cc(nz,e)?e:"pulse";b=new $APP.P(null,4,[$APP.Wg,d,lz,e,$APP.Og,kz(b),$APP.Ki,kz(c)],null);d=
3
+ $APP.M(b);b=$APP.I(d,$APP.Wg);e=$APP.I(d,lz);c=$APP.I(d,$APP.Og);d=$APP.I(d,$APP.Ki);var g=$APP.l(a,"__xSkeletonBase");g.setAttribute("data-variant",b);g.setAttribute("data-animation",e);$APP.n(c)?g.style.setProperty("width",c):g.style.removeProperty("width");$APP.n(d)?g.style.setProperty("height",d):g.style.removeProperty("height");a.setAttribute("aria-hidden","true")},pz=function(a){Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?b:"rect"},set:function(b){return typeof b===
4
4
  "string"&&$APP.N("",b)?this.setAttribute("variant",b):this.removeAttribute("variant")},enumerable:!0,configurable:!0});Object.defineProperty(a,"animation",{get:function(){var b=this.getAttribute("animation");return $APP.n(b)?b:"pulse"},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("animation",b):this.removeAttribute("animation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"width",{get:function(){var b=this.getAttribute("width");return $APP.n(b)?b:""},set:function(b){return typeof b===
5
- "string"&&$APP.N("",b)?this.setAttribute("width",b):this.removeAttribute("width")},enumerable:!0,configurable:!0});Object.defineProperty(a,"height",{get:function(){var b=this.getAttribute("height");return $APP.n(b)?b:""},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("height",b):this.removeAttribute("height")},enumerable:!0,configurable:!0})},sz=function(){var a=class extends HTMLElement{};a.observedAttributes=rz;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,
5
+ "string"&&$APP.N("",b)?this.setAttribute("width",b):this.removeAttribute("width")},enumerable:!0,configurable:!0});Object.defineProperty(a,"height",{get:function(){var b=this.getAttribute("height");return $APP.n(b)?b:""},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("height",b):this.removeAttribute("height")},enumerable:!0,configurable:!0})},rz=function(){var a=class extends HTMLElement{};a.observedAttributes=qz;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,
6
6
  "__xSkeletonInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div");c.textContent=":host{display:block;box-sizing:border-box;color-scheme:light dark;--x-skeleton-color:rgba(0,0,0,0.08);--x-skeleton-highlight:rgba(255,255,255,0.65);--x-skeleton-border-radius:4px;--x-skeleton-duration:1.5s;}@media (prefers-color-scheme:dark){:host{--x-skeleton-color:rgba(255,255,255,0.10);--x-skeleton-highlight:rgba(255,255,255,0.18);}}[part\x3dbase]{width:100%;height:1rem;position:relative;overflow:hidden;background:var(--x-skeleton-color);border-radius:var(--x-skeleton-border-radius);}[part\x3dbase][data-variant\x3d'text']{height:1em;border-radius:3px;}[part\x3dbase][data-variant\x3d'circle']{width:2.5rem;height:2.5rem;border-radius:50%;}[part\x3dshimmer]{position:absolute;inset:0;background:linear-gradient(90deg,transparent 0%,var(--x-skeleton-highlight) 50%,transparent 100%);transform:translateX(-100%);display:none;pointer-events:none;}@keyframes x-skeleton-pulse{0%,100%{opacity:1;}50%{opacity:0.4;}}@keyframes x-skeleton-wave{0%{transform:translateX(-100%);}100%{transform:translateX(200%);}}[part\x3dbase][data-animation\x3d'pulse']{animation:x-skeleton-pulse var(--x-skeleton-duration,1.5s) ease-in-out infinite;}[part\x3dbase][data-animation\x3d'wave'] [part\x3dshimmer]{display:block;animation:x-skeleton-wave var(--x-skeleton-duration,1.5s) linear infinite;}@media (prefers-reduced-motion:reduce){[part\x3dbase][data-animation\x3d'pulse']{animation:none;}[part\x3dbase][data-animation\x3d'wave'] [part\x3dshimmer]{animation:none;}}";
7
- d.setAttribute("part","base");e.setAttribute("part","shimmer");d.appendChild(e);b.appendChild(c);b.appendChild(d);this.__xSkeletonBase=d;this.__xSkeletonInit=!0}pz(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.l(this,"__xSkeletonInit"))&&pz(this);return null};qz(a.prototype);return a},tz=function(){$APP.n(customElements.get("x-skeleton"))||customElements.define("x-skeleton",sz());return null},
8
- mz=new $APP.K(null,"animation","animation",-1248293244);var nz=new $APP.R(null,new $APP.P(null,3,["text",null,"rect",null,"circle",null],null),null),oz=new $APP.R(null,new $APP.P(null,3,["none",null,"pulse",null,"wave",null],null),null),rz=["variant","animation","width","height"];$APP.ka("baredom.exports.x_skeleton.init",tz);export const init=tz;
7
+ d.setAttribute("part","base");e.setAttribute("part","shimmer");d.appendChild(e);b.appendChild(c);b.appendChild(d);this.__xSkeletonBase=d;this.__xSkeletonInit=!0}oz(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.l(this,"__xSkeletonInit"))&&oz(this);return null};pz(a.prototype);return a},sz=function(){$APP.n(customElements.get("x-skeleton"))||customElements.define("x-skeleton",rz());return null},
8
+ lz=new $APP.K(null,"animation","animation",-1248293244);var mz=new $APP.R(null,new $APP.P(null,3,["text",null,"rect",null,"circle",null],null),null),nz=new $APP.R(null,new $APP.P(null,3,["none",null,"pulse",null,"wave",null],null),null),qz=["variant","animation","width","height"];$APP.ka("baredom.exports.x_skeleton.init",sz);export const init=sz;
package/dist/x-slider.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var mu=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},nu=function(a,b,c){return a.setAttribute(b,c)},ou=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},tu=function(a){var b=$APP.l(a,"__xSliderRefs");if($APP.n(b)){var c=$APP.l(b,"base"),d=$APP.l(b,"header"),e=$APP.l(b,"label"),f=$APP.l(b,"value");b=$APP.l(b,"input");var h=$APP.bf([$APP.Vi,$APP.yi,$APP.$i,$APP.ii,$APP.T,$APP.ji,$APP.Oi,$APP.Ag,$APP.fh,$APP.W,$APP.Xi,$APP.bi,pu],[a.getAttribute("min"),
3
- a.hasAttribute("disabled"),a.hasAttribute("show-value"),a.getAttribute("name"),a.getAttribute("value"),a.hasAttribute("readonly"),a.getAttribute("aria-labelledby"),a.getAttribute("size"),a.getAttribute("max"),a.getAttribute("label"),a.getAttribute("aria-describedby"),a.getAttribute("aria-label"),a.getAttribute("step")]);var k=$APP.M(h);h=$APP.I(k,$APP.bi);var m=$APP.I(k,pu),q=$APP.I(k,$APP.Vi),r=$APP.I(k,$APP.yi),u=$APP.I(k,$APP.$i),w=$APP.I(k,$APP.T),z=$APP.I(k,$APP.ii),A=$APP.I(k,$APP.ji),C=$APP.I(k,
4
- $APP.Oi),F=$APP.I(k,$APP.Ag),E=$APP.I(k,$APP.W),Q=$APP.I(k,$APP.fh);k=$APP.I(k,$APP.Xi);q=mu(q,0);Q=mu(Q,100);w=$APP.lg.h($APP.kg.h(mu(w,0),q),Q);$APP.D.h(m,"any")?m="any":(m=typeof m==="string"?parseFloat(m):NaN,m=$APP.p(isNaN(m))&&m>0?""+$APP.S.g(m):"1");F=typeof F==="string"&&$APP.Cc(qu,F)?F:"md";r=$APP.J(r);A=$APP.J(A);u=$APP.J(u);var V=Q>q?$APP.lg.h($APP.kg.h((w-q)/(Q-q)*100,0),100):0;h=$APP.bf([$APP.Vi,$APP.cj,$APP.ii,$APP.T,$APP.Oi,ru,$APP.Ag,$APP.fh,$APP.W,$APP.Xi,$APP.bi,$APP.U,pu,su],[q,
5
- A,typeof z==="string"&&$APP.N("",z)?z:null,w,typeof C==="string"&&$APP.N("",C)?C:null,u,F,Q,typeof E==="string"&&$APP.N("",E)?E:null,typeof k==="string"&&$APP.N("",k)?k:null,typeof h==="string"&&$APP.N("",h)?h:null,r,m,V]);m=$APP.M(h);z=$APP.I(m,$APP.bi);C=$APP.I(m,$APP.U);E=$APP.I(m,pu);k=$APP.I(m,su);u=$APP.I(m,$APP.Vi);q=$APP.I(m,$APP.cj);h=$APP.I(m,$APP.T);A=$APP.I(m,$APP.Oi);Q=$APP.I(m,ru);r=$APP.I(m,$APP.Ag);w=$APP.I(m,$APP.W);F=$APP.I(m,$APP.fh);m=$APP.I(m,$APP.Xi);V=(V=w!=null)?V:Q;c.setAttribute("data-size",
6
- r);ou(a,"data-disabled",C);ou(a,"data-readonly",q);d.style.display=$APP.n(V)?"flex":"none";e.textContent=$APP.n(w)?w:"";e.style.display=w!=null?"":"none";f.textContent=$APP.n(Q)?""+$APP.S.g(h):"";f.style.display=$APP.n(Q)?"":"none";a.style.setProperty("--_x-slider-fill",""+$APP.S.g(k.toFixed(2))+"%");nu(b,"min",""+$APP.S.g(u));nu(b,"max",""+$APP.S.g(F));b.setAttribute("step",E);$APP.N(b.value,""+$APP.S.g(h))&&(b.value=""+$APP.S.g(h));nu(b,"aria-valuemin",""+$APP.S.g(u));nu(b,"aria-valuemax",""+$APP.S.g(F));
2
+ var mu=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},nu=function(a,b,c){return a.setAttribute(b,c)},ou=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},tu=function(a){var b=$APP.l(a,"__xSliderRefs");if($APP.n(b)){var c=$APP.l(b,"base"),d=$APP.l(b,"header"),e=$APP.l(b,"label"),g=$APP.l(b,"value");b=$APP.l(b,"input");var h=$APP.bf([$APP.Vi,$APP.yi,$APP.$i,$APP.ii,$APP.T,$APP.ji,$APP.Oi,$APP.Ag,$APP.fh,$APP.W,$APP.Xi,$APP.bi,pu],[a.getAttribute("min"),
3
+ a.hasAttribute("disabled"),a.hasAttribute("show-value"),a.getAttribute("name"),a.getAttribute("value"),a.hasAttribute("readonly"),a.getAttribute("aria-labelledby"),a.getAttribute("size"),a.getAttribute("max"),a.getAttribute("label"),a.getAttribute("aria-describedby"),a.getAttribute("aria-label"),a.getAttribute("step")]);var k=$APP.M(h);h=$APP.I(k,$APP.bi);var m=$APP.I(k,pu),q=$APP.I(k,$APP.Vi),r=$APP.I(k,$APP.yi),v=$APP.I(k,$APP.$i),w=$APP.I(k,$APP.T),z=$APP.I(k,$APP.ii),A=$APP.I(k,$APP.ji),C=$APP.I(k,
4
+ $APP.Oi),F=$APP.I(k,$APP.Ag),D=$APP.I(k,$APP.W),Q=$APP.I(k,$APP.fh);k=$APP.I(k,$APP.Xi);q=mu(q,0);Q=mu(Q,100);w=$APP.lg.h($APP.kg.h(mu(w,0),q),Q);$APP.E.h(m,"any")?m="any":(m=typeof m==="string"?parseFloat(m):NaN,m=$APP.p(isNaN(m))&&m>0?""+$APP.S.g(m):"1");F=typeof F==="string"&&$APP.Cc(qu,F)?F:"md";r=$APP.J(r);A=$APP.J(A);v=$APP.J(v);var V=Q>q?$APP.lg.h($APP.kg.h((w-q)/(Q-q)*100,0),100):0;h=$APP.bf([$APP.Vi,$APP.cj,$APP.ii,$APP.T,$APP.Oi,ru,$APP.Ag,$APP.fh,$APP.W,$APP.Xi,$APP.bi,$APP.U,pu,su],[q,
5
+ A,typeof z==="string"&&$APP.N("",z)?z:null,w,typeof C==="string"&&$APP.N("",C)?C:null,v,F,Q,typeof D==="string"&&$APP.N("",D)?D:null,typeof k==="string"&&$APP.N("",k)?k:null,typeof h==="string"&&$APP.N("",h)?h:null,r,m,V]);m=$APP.M(h);z=$APP.I(m,$APP.bi);C=$APP.I(m,$APP.U);D=$APP.I(m,pu);k=$APP.I(m,su);v=$APP.I(m,$APP.Vi);q=$APP.I(m,$APP.cj);h=$APP.I(m,$APP.T);A=$APP.I(m,$APP.Oi);Q=$APP.I(m,ru);r=$APP.I(m,$APP.Ag);w=$APP.I(m,$APP.W);F=$APP.I(m,$APP.fh);m=$APP.I(m,$APP.Xi);V=(V=w!=null)?V:Q;c.setAttribute("data-size",
6
+ r);ou(a,"data-disabled",C);ou(a,"data-readonly",q);d.style.display=$APP.n(V)?"flex":"none";e.textContent=$APP.n(w)?w:"";e.style.display=w!=null?"":"none";g.textContent=$APP.n(Q)?""+$APP.S.g(h):"";g.style.display=$APP.n(Q)?"":"none";a.style.setProperty("--_x-slider-fill",""+$APP.S.g(k.toFixed(2))+"%");nu(b,"min",""+$APP.S.g(v));nu(b,"max",""+$APP.S.g(F));b.setAttribute("step",D);$APP.N(b.value,""+$APP.S.g(h))&&(b.value=""+$APP.S.g(h));nu(b,"aria-valuemin",""+$APP.S.g(v));nu(b,"aria-valuemax",""+$APP.S.g(F));
7
7
  nu(b,"aria-valuenow",""+$APP.S.g(h));b.setAttribute("aria-readonly",$APP.n(q)?"true":"false");$APP.n(z)?b.setAttribute("aria-label",z):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(C)?b.setAttribute("disabled",""):b.removeAttribute("disabled");a=$APP.l(a,"__xSliderInternals");return $APP.n(a)?a.setFormValue(""+
8
- $APP.S.g(h)):null}return null},uu=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},vu=function(a){return function(){var b=$APP.l($APP.l(a,"__xSliderRefs"),"input").value,c=parseFloat(b),d=parseFloat(function(){var f=a.getAttribute("min");return $APP.n(f)?f:"0"}()),e=parseFloat(function(){var f=a.getAttribute("max");return $APP.n(f)?f:"100"}());a.setAttribute("value",b);return uu(a,"x-slider-input",{value:c,min:d,max:e})}},wu=function(a){return function(){var b=
8
+ $APP.S.g(h)):null}return null},uu=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},vu=function(a){return function(){var b=$APP.l($APP.l(a,"__xSliderRefs"),"input").value,c=parseFloat(b),d=parseFloat(function(){var g=a.getAttribute("min");return $APP.n(g)?g:"0"}()),e=parseFloat(function(){var g=a.getAttribute("max");return $APP.n(g)?g:"100"}());a.setAttribute("value",b);return uu(a,"x-slider-input",{value:c,min:d,max:e})}},wu=function(a){return function(){var b=
9
9
  parseFloat($APP.l($APP.l(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 uu(a,"x-slider-change",{value:b,min:c,max:d})}},xu=function(a){return function(b){var c=a.hasAttribute("disabled");return $APP.n($APP.n(c)?c:a.hasAttribute("readonly"))?(b.preventDefault(),b.stopPropagation()):null}},yu=function(a){var b=$APP.l(a,"__xSliderRefs");if($APP.n(b)){var c=
10
10
  $APP.l(a,"__xSliderHandlers");if($APP.n(c)){b=$APP.l(b,"input");b.removeEventListener("input",$APP.l(c,"input"));b.removeEventListener("change",$APP.l(c,"change"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xSliderHandlers=null;return}}return null},zu=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return ou(this,c,$APP.J(d))}})},Au=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
11
11
  get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.N(d)?nu(this,c,""+$APP.S.g(d)):this.removeAttribute(c)}})},Cu=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return Bu}});zu(b,"disabled","disabled");zu(b,"readOnly","readonly");zu(b,"showValue","show-value");Au(b,"value","value");Au(b,"min","min");Au(b,"max","max");Au(b,"step","step");Au(b,"name","name");
12
- Au(b,"label","label");Au(b,"size","size");b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSliderRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),f=document.createElement("div"),h=document.createElement("span"),k=document.createElement("span"),m=document.createElement("input");d.textContent=":host{display:block;color-scheme:light dark;--x-slider-track-color:rgba(0,0,0,0.15);--x-slider-fill-color:#3b82f6;--x-slider-thumb-color:#ffffff;--x-slider-thumb-border:2px solid #3b82f6;--x-slider-thumb-shadow:0 1px 4px rgba(0,0,0,0.20);--x-slider-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:9999px;}@media (prefers-color-scheme:dark){:host{--x-slider-track-color:rgba(255,255,255,0.15);--x-slider-fill-color:#3b82f6;--x-slider-thumb-color:#ffffff;--x-slider-thumb-border:2px solid #3b82f6;--x-slider-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;}}";
13
- e.setAttribute("part","base");f.setAttribute("part","header");h.setAttribute("part","label-text");k.setAttribute("part","value-text");m.setAttribute("part","input");m.setAttribute("type","range");f.appendChild(h);f.appendChild(k);e.appendChild(f);e.appendChild(m);c.appendChild(d);c.appendChild(e);this.__xSliderRefs={base:e,header:f,label:h,value:k,input:m};$APP.n(this.attachInternals)&&(this.__xSliderInternals=this.attachInternals())}yu(this);c=$APP.l(this,"__xSliderRefs");$APP.n(c)&&(c=$APP.l(c,
14
- "input"),d=vu(this),e=wu(this),f=xu(this),h={input:d,change:e,keydown:f},c.addEventListener("input",d),c.addEventListener("change",e),c.addEventListener("keydown",f),this.__xSliderHandlers=h);return tu(this)};b.disconnectedCallback=function(){return yu(this)};b.attributeChangedCallback=function(){return tu(this)};b.formDisabledCallback=function(c){ou(this,"disabled",$APP.J(c));return tu(this)};b.formResetCallback=function(){nu(this,"value",""+$APP.S.g(0));return tu(this)};return a},Du=function(){return $APP.n(customElements.get("x-slider"))?
12
+ Au(b,"label","label");Au(b,"size","size");b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSliderRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("span"),k=document.createElement("span"),m=document.createElement("input");d.textContent=":host{display:block;color-scheme:light dark;--x-slider-track-color:rgba(0,0,0,0.15);--x-slider-fill-color:#3b82f6;--x-slider-thumb-color:#ffffff;--x-slider-thumb-border:2px solid #3b82f6;--x-slider-thumb-shadow:0 1px 4px rgba(0,0,0,0.20);--x-slider-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:9999px;}@media (prefers-color-scheme:dark){:host{--x-slider-track-color:rgba(255,255,255,0.15);--x-slider-fill-color:#3b82f6;--x-slider-thumb-color:#ffffff;--x-slider-thumb-border:2px solid #3b82f6;--x-slider-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;}}";
13
+ e.setAttribute("part","base");g.setAttribute("part","header");h.setAttribute("part","label-text");k.setAttribute("part","value-text");m.setAttribute("part","input");m.setAttribute("type","range");g.appendChild(h);g.appendChild(k);e.appendChild(g);e.appendChild(m);c.appendChild(d);c.appendChild(e);this.__xSliderRefs={base:e,header:g,label:h,value:k,input:m};$APP.n(this.attachInternals)&&(this.__xSliderInternals=this.attachInternals())}yu(this);c=$APP.l(this,"__xSliderRefs");$APP.n(c)&&(c=$APP.l(c,
14
+ "input"),d=vu(this),e=wu(this),g=xu(this),h={input:d,change:e,keydown:g},c.addEventListener("input",d),c.addEventListener("change",e),c.addEventListener("keydown",g),this.__xSliderHandlers=h);return tu(this)};b.disconnectedCallback=function(){return yu(this)};b.attributeChangedCallback=function(){return tu(this)};b.formDisabledCallback=function(c){ou(this,"disabled",$APP.J(c));return tu(this)};b.formResetCallback=function(){nu(this,"value",""+$APP.S.g(0));return tu(this)};return a},Du=function(){return $APP.n(customElements.get("x-slider"))?
15
15
  null:customElements.define("x-slider",Cu())},ru=new $APP.K(null,"show-value?","show-value?",-1960833108),su=new $APP.K(null,"fill-percent","fill-percent",-1813848228),pu=new $APP.K(null,"step","step",1288888124);var qu=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),Bu="value min max step disabled readonly name label show-value size aria-label aria-labelledby aria-describedby".split(" ");
16
16
  $APP.bf([$APP.Vi,$APP.yi,$APP.Eg,$APP.ii,$APP.T,$APP.Ag,$APP.Bi,$APP.fh,$APP.W,pu],[new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Qg,"min"],null),new $APP.P(null,2,[$APP.Z,$APP.Li,$APP.Qg,"disabled"],null),new $APP.P(null,2,[$APP.Z,$APP.Li,$APP.Qg,"show-value"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Qg,"name"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Qg,"value"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Qg,"size"],null),new $APP.P(null,2,[$APP.Z,$APP.Li,$APP.Qg,"readonly"],null),new $APP.P(null,
17
17
  2,[$APP.Z,$APP.X,$APP.Qg,"max"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Qg,"label"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Qg,"step"],null)]);$APP.wd(["x-slider-input",new $APP.P(null,1,[$APP.Y,new $APP.P(null,3,[$APP.T,$APP.Gh,$APP.Vi,$APP.Gh,$APP.fh,$APP.Gh],null)],null),"x-slider-change",new $APP.P(null,1,[$APP.Y,new $APP.P(null,3,[$APP.T,$APP.Gh,$APP.Vi,$APP.Gh,$APP.fh,$APP.Gh],null)],null)]);$APP.ka("baredom.exports.x_slider.init",Du);export const init=Du;
package/dist/x-spacer.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var xv=function(a){return a!=null&&$APP.N((""+$APP.S.g(a)).trim().toLowerCase(),"false")},Dv=function(a){var b=new $APP.P(null,3,[$APP.hi,a.getAttribute("size"),yv,a.getAttribute("axis"),zv,a.getAttribute("grow")],null);b=$APP.M(b);var c=$APP.I(b,$APP.hi),d=$APP.I(b,yv);b=$APP.I(b,zv);c=typeof c==="string"&&c.trim().length>0?c.trim():"1rem";d=typeof d==="string"?d.trim().toLowerCase():null;d=$APP.Cc(Av,d)?d:"vertical";b=new $APP.P(null,3,[$APP.Ag,c,Bv,d,Cv,xv(b)],null);c=$APP.M(b);b=$APP.I(c,$APP.Ag);
3
- d=$APP.I(c,Bv);c=$APP.I(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")},Ev=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(b);return $APP.n(d)?d:c},set:function(d){return d!=null?this.setAttribute(b,""+$APP.S.g(d)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},Fv=function(a){Object.defineProperty(a,
4
- "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})},Gv=function(a){Ev(a,"size","1rem");Ev(a,"axis","vertical");Fv(a)},Iv=function(){var a=class extends HTMLElement{};a.observedAttributes=Hv;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSpacerRefs"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style");c.textContent=":host{display:block;flex-shrink:0;height:var(--x-spacer-size,1rem);width:0;pointer-events:none;}:host([data-axis\x3d'horizontal']){height:0;width:var(--x-spacer-size,1rem);}:host([data-grow\x3d'true']){flex:1 0 var(--x-spacer-size,0px);height:0;width:0;}";
5
- b.appendChild(c);this.__xSpacerRefs={root:b}}Dv(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){b=$APP.N(c,d);$APP.n(b?$APP.l(this,"__xSpacerRefs"):b)&&Dv(this);return null};Gv(a.prototype);return a},Jv=function(){$APP.n(customElements.get("x-spacer"))||customElements.define("x-spacer",Iv());return null},Bv=new $APP.K(null,"axis","axis",-1215390822),Cv=new $APP.K(null,"grow?","grow?",2124334580),zv=new $APP.K(null,"grow-raw",
6
- "grow-raw",441172903),yv=new $APP.K(null,"axis-raw","axis-raw",291213231);var Hv=["size","axis","grow"],Av=new $APP.R(null,new $APP.P(null,2,["vertical",null,"horizontal",null],null),null);$APP.ka("baredom.exports.x_spacer.init",Jv);export const init=Jv;
2
+ var wv=function(a){return a!=null&&$APP.N((""+$APP.S.g(a)).trim().toLowerCase(),"false")},Cv=function(a){var b=new $APP.P(null,3,[$APP.hi,a.getAttribute("size"),xv,a.getAttribute("axis"),yv,a.getAttribute("grow")],null);b=$APP.M(b);var c=$APP.I(b,$APP.hi),d=$APP.I(b,xv);b=$APP.I(b,yv);c=typeof c==="string"&&c.trim().length>0?c.trim():"1rem";d=typeof d==="string"?d.trim().toLowerCase():null;d=$APP.Cc(zv,d)?d:"vertical";b=new $APP.P(null,3,[$APP.Ag,c,Av,d,Bv,wv(b)],null);c=$APP.M(b);b=$APP.I(c,$APP.Ag);
3
+ d=$APP.I(c,Av);c=$APP.I(c,Bv);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")},Dv=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(b);return $APP.n(d)?d:c},set:function(d){return d!=null?this.setAttribute(b,""+$APP.S.g(d)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},Ev=function(a){Object.defineProperty(a,
4
+ "grow",{get:function(){return wv(this.getAttribute("grow"))},set:function(b){return $APP.n(b)?this.setAttribute("grow",""):this.removeAttribute("grow")},enumerable:!0,configurable:!0})},Fv=function(a){Dv(a,"size","1rem");Dv(a,"axis","vertical");Ev(a)},Hv=function(){var a=class extends HTMLElement{};a.observedAttributes=Gv;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSpacerRefs"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style");c.textContent=":host{display:block;flex-shrink:0;height:var(--x-spacer-size,1rem);width:0;pointer-events:none;}:host([data-axis\x3d'horizontal']){height:0;width:var(--x-spacer-size,1rem);}:host([data-grow\x3d'true']){flex:1 0 var(--x-spacer-size,0px);height:0;width:0;}";
5
+ b.appendChild(c);this.__xSpacerRefs={root:b}}Cv(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){b=$APP.N(c,d);$APP.n(b?$APP.l(this,"__xSpacerRefs"):b)&&Cv(this);return null};Fv(a.prototype);return a},Iv=function(){$APP.n(customElements.get("x-spacer"))||customElements.define("x-spacer",Hv());return null},Av=new $APP.K(null,"axis","axis",-1215390822),Bv=new $APP.K(null,"grow?","grow?",2124334580),yv=new $APP.K(null,"grow-raw",
6
+ "grow-raw",441172903),xv=new $APP.K(null,"axis-raw","axis-raw",291213231);var Gv=["size","axis","grow"],zv=new $APP.R(null,new $APP.P(null,2,["vertical",null,"horizontal",null],null),null);$APP.ka("baredom.exports.x_spacer.init",Iv);export const init=Iv;
package/dist/x-spinner.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var aG=function(a){var b=new $APP.P(null,3,[$APP.Ag,a.getAttribute("size"),$APP.Wg,a.getAttribute("variant"),$APP.W,a.getAttribute("label")],null);var c=$APP.M(b),d=$APP.I(c,$APP.Ag);b=$APP.I(c,$APP.Wg);c=$APP.I(c,$APP.W);d=typeof d==="string"&&$APP.Cc(ZF,d)?d:"md";b=typeof b==="string"&&$APP.Cc($F,b)?b:"default";c=typeof c==="string"&&$APP.N("",c.trim())?c.trim():"Loading";d=$APP.M(new $APP.P(null,3,[$APP.Ag,d,$APP.Wg,b,$APP.W,c],null));b=$APP.I(d,$APP.Ag);c=$APP.I(d,$APP.Wg);d=$APP.I(d,$APP.W);
3
- a.setAttribute("data-size",b);a.setAttribute("data-variant",c);a.setAttribute("aria-label",d)},bG=function(a){Object.defineProperty(a,"size",{get:function(){var b=this.getAttribute("size");return $APP.n(b)?b:"md"},set:function(b){return $APP.n(b)?this.setAttribute("size",""+$APP.S.g(b)):this.removeAttribute("size")},enumerable:!0,configurable:!0});Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?b:"default"},set:function(b){return $APP.n(b)?this.setAttribute("variant",
4
- ""+$APP.S.g(b)):this.removeAttribute("variant")},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:"Loading"},set:function(b){return $APP.n(b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},dG=function(){var a=class extends HTMLElement{};a.observedAttributes=cG;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSpinnerInit"))){var b=this.attachShadow({mode:"open"}),
2
+ var $F=function(a){var b=new $APP.P(null,3,[$APP.Ag,a.getAttribute("size"),$APP.Wg,a.getAttribute("variant"),$APP.W,a.getAttribute("label")],null);var c=$APP.M(b),d=$APP.I(c,$APP.Ag);b=$APP.I(c,$APP.Wg);c=$APP.I(c,$APP.W);d=typeof d==="string"&&$APP.Cc(YF,d)?d:"md";b=typeof b==="string"&&$APP.Cc(ZF,b)?b:"default";c=typeof c==="string"&&$APP.N("",c.trim())?c.trim():"Loading";d=$APP.M(new $APP.P(null,3,[$APP.Ag,d,$APP.Wg,b,$APP.W,c],null));b=$APP.I(d,$APP.Ag);c=$APP.I(d,$APP.Wg);d=$APP.I(d,$APP.W);
3
+ a.setAttribute("data-size",b);a.setAttribute("data-variant",c);a.setAttribute("aria-label",d)},aG=function(a){Object.defineProperty(a,"size",{get:function(){var b=this.getAttribute("size");return $APP.n(b)?b:"md"},set:function(b){return $APP.n(b)?this.setAttribute("size",""+$APP.S.g(b)):this.removeAttribute("size")},enumerable:!0,configurable:!0});Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?b:"default"},set:function(b){return $APP.n(b)?this.setAttribute("variant",
4
+ ""+$APP.S.g(b)):this.removeAttribute("variant")},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:"Loading"},set:function(b){return $APP.n(b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},cG=function(){var a=class extends HTMLElement{};a.observedAttributes=bG;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSpinnerInit"))){var b=this.attachShadow({mode:"open"}),
5
5
  c=document.createElement("style"),d=document.createElement("span");c.textContent=":host{display:inline-flex;align-items:center;justify-content:center;color-scheme:light dark;--x-spinner-size:24px;--x-spinner-color:currentColor;--x-spinner-track-color:rgba(0,0,0,0.12);--x-spinner-thickness:2px;--x-spinner-duration:0.75s;}@media (prefers-color-scheme:dark){:host{--x-spinner-track-color:rgba(255,255,255,0.15);}}:host([data-size\x3d'xs']){--x-spinner-size:16px;}:host([data-size\x3d'sm']){--x-spinner-size:20px;}:host([data-size\x3d'md']){--x-spinner-size:24px;}:host([data-size\x3d'lg']){--x-spinner-size:32px;}:host([data-size\x3d'xl']){--x-spinner-size:48px;}:host([data-variant\x3d'primary']){--x-spinner-color:#3b82f6;}:host([data-variant\x3d'success']){--x-spinner-color:#22c55e;}:host([data-variant\x3d'warning']){--x-spinner-color:#f59e0b;}:host([data-variant\x3d'danger']){--x-spinner-color:#ef4444;}[part\x3dring]{display:block;width:var(--x-spinner-size);height:var(--x-spinner-size);border-radius:50%;border:var(--x-spinner-thickness) solid var(--x-spinner-track-color);border-top-color:var(--x-spinner-color);box-sizing:border-box;animation:x-spinner-spin var(--x-spinner-duration) linear infinite;}@keyframes x-spinner-spin{to{transform:rotate(360deg);}}@media (prefers-reduced-motion:reduce){[part\x3dring]{animation-play-state:paused;}}";
6
- d.setAttribute("part","ring");d.setAttribute("aria-hidden","true");b.appendChild(c);b.appendChild(d);this.setAttribute("role","status");this.setAttribute("aria-live","polite");this.__xSpinnerRing=d;this.__xSpinnerInit=!0}aG(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){b=$APP.N(c,d);$APP.n(b?$APP.l(this,"__xSpinnerInit"):b)&&aG(this);return null};bG(a.prototype);return a},eG=function(){$APP.n(customElements.get("x-spinner"))||
7
- customElements.define("x-spinner",dG());return null};var cG=["size","variant","label"],ZF=new $APP.R(null,new $APP.P(null,5,["xs",null,"md",null,"lg",null,"xl",null,"sm",null],null),null),$F=new $APP.R(null,new $APP.P(null,5,["success",null,"warning",null,"primary",null,"danger",null,"default",null],null),null);$APP.ka("baredom.exports.x_spinner.init",eG);export const init=eG;
6
+ d.setAttribute("part","ring");d.setAttribute("aria-hidden","true");b.appendChild(c);b.appendChild(d);this.setAttribute("role","status");this.setAttribute("aria-live","polite");this.__xSpinnerRing=d;this.__xSpinnerInit=!0}$F(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){b=$APP.N(c,d);$APP.n(b?$APP.l(this,"__xSpinnerInit"):b)&&$F(this);return null};aG(a.prototype);return a},dG=function(){$APP.n(customElements.get("x-spinner"))||
7
+ customElements.define("x-spinner",cG());return null};var bG=["size","variant","label"],YF=new $APP.R(null,new $APP.P(null,5,["xs",null,"md",null,"lg",null,"xl",null,"sm",null],null),null),ZF=new $APP.R(null,new $APP.P(null,5,["success",null,"warning",null,"primary",null,"danger",null,"default",null],null),null);$APP.ka("baredom.exports.x_spinner.init",dG);export const init=dG;
package/dist/x-stat.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Iy=function(a,b,c){return $APP.Cc(b,a)?a:c},Jy=function(a){return $APP.n($APP.n(a)?$APP.N("",a):a)?a:null},Sy=function(a){var b=$APP.M(a),c=$APP.I(b,Ky),d=$APP.I(b,Ly),e=$APP.I(b,$APP.ei),f=$APP.I(b,$APP.Wg);a=$APP.I(b,$APP.T);var h=$APP.I(b,$APP.mi),k=$APP.I(b,$APP.Ag),m=$APP.I(b,$APP.Hh);b=$APP.I(b,$APP.W);f=Iy(f,My,"default");e=Iy(e,Ny,"start");k=Iy(k,Oy,"md");c=Iy(c,Py,"normal");d=Iy(d,Qy,"neutral");m=$APP.J(m);return $APP.bf([Ly,$APP.ei,$APP.Wg,$APP.T,$APP.mi,$APP.Ag,$APP.Hh,$APP.W,Ry,Ky],
3
- [d,e,f,Jy(a),Jy(h),k,m,Jy(b),m?"true":null,c])},Ty=function(a){return $APP.bf([Ly,$APP.ei,$APP.Wg,$APP.T,$APP.mi,$APP.Ag,$APP.Hh,$APP.W,Ky],[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")])},Uy=function(a,b){a.setAttribute("role","figure");var c=Ry.g(b);$APP.n(c)?a.setAttribute("aria-busy",c):a.removeAttribute("aria-busy");b=
4
- $APP.W.g(b);$APP.n(b)?a.setAttribute("aria-label",b):a.removeAttribute("aria-label")},Vy=function(a,b){a.setAttribute("data-variant",$APP.Wg.g(b));a.setAttribute("data-align",$APP.ei.g(b));a.setAttribute("data-size",$APP.Ag.g(b));a.setAttribute("data-emphasis",Ky.g(b));a.setAttribute("data-trend",Ly.g(b));$APP.n($APP.Hh.g(b))?a.setAttribute("data-loading","true"):a.removeAttribute("data-loading")},Wy=function(a){var b=Sy(Ty(a)),c=$APP.l(a,"__x_stat_base"),d=$APP.l(a,"__x_stat_label"),e=$APP.l(a,"__x_stat_value"),
5
- f=$APP.l(a,"__x_stat_hint");return $APP.n(c)?(Uy(a,b),Vy(c,b),d.textContent=function(){var h=$APP.W.g(b);return $APP.n(h)?h:""}(),e.textContent=function(){var h=$APP.T.g(b);return $APP.n(h)?h:""}(),f.textContent=function(){var h=$APP.mi.g(b);return $APP.n(h)?h:""}()):null},Xy=function(a){if($APP.l(a,"__x_stat_initialized")!==!0){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
- k=document.createElement("div"),m=document.createElement("div"),q=document.createElement("span"),r=document.createElement("span"),u=document.createElement("span"),w=document.createElement("slot"),z=document.createElement("slot"),A=document.createElement("slot"),C=document.createElement("slot"),F=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;}.base{display:grid;gap:6px;}.label{font-size:12px;opacity:0.8;}.value{font-weight:600;font-size:20px;}.hint{font-size:12px;opacity:0.7;}.base[data-loading\x3d'true']{opacity:0.6;}";
7
- d.setAttribute("part","base");e.setAttribute("part","icon");f.setAttribute("part","body");h.setAttribute("part","label");k.setAttribute("part","value");m.setAttribute("part","hint");w.setAttribute("name","icon");z.setAttribute("name","label");A.setAttribute("name","value");C.setAttribute("name","hint");e.appendChild(w);h.appendChild(z);h.appendChild(q);k.appendChild(A);k.appendChild(r);m.appendChild(C);m.appendChild(u);f.appendChild(h);f.appendChild(k);f.appendChild(m);f.appendChild(F);d.appendChild(e);
8
- d.appendChild(f);b.appendChild(c);b.appendChild(d);a.__x_stat_root=b;a.__x_stat_base=d;a.__x_stat_label=q;a.__x_stat_value=r;a.__x_stat_hint=u;a.__x_stat_initialized=!0}Wy(a);return a},Zy=function(){var a=class extends HTMLElement{};a.observedAttributes=Yy;a.prototype.connectedCallback=function(){return Xy(this)};a.prototype.attributeChangedCallback=function(){return $APP.l(this,"__x_stat_initialized")===!0?Wy(this):Xy(this)};return a},$y=function(){return $APP.n(customElements.get("x-stat"))?null:
9
- customElements.define("x-stat",Zy())},Ky=new $APP.K(null,"emphasis","emphasis",293543451),Ry=new $APP.K(null,"aria-busy","aria-busy",793864247),Ly=new $APP.K(null,"trend","trend",54563841);var Yy="variant align size emphasis trend loading label value hint".split(" "),My=new $APP.R(null,new $APP.P(null,5,["warning",null,"positive",null,"subtle",null,"danger",null,"default",null],null),null),Ny=new $APP.R(null,new $APP.P(null,3,["center",null,"start",null,"end",null],null),null),Oy=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),Py=new $APP.R(null,new $APP.P(null,2,["high",null,"normal",null],null),null),Qy=new $APP.R(null,new $APP.P(null,3,["neutral",null,
10
- "up",null,"down",null],null),null);$APP.ka("baredom.exports.x_stat.init",$y);export const init=$y;
2
+ var Hy=function(a,b,c){return $APP.Cc(b,a)?a:c},Iy=function(a){return $APP.n($APP.n(a)?$APP.N("",a):a)?a:null},Ry=function(a){var b=$APP.M(a),c=$APP.I(b,Jy),d=$APP.I(b,Ky),e=$APP.I(b,$APP.ei),g=$APP.I(b,$APP.Wg);a=$APP.I(b,$APP.T);var h=$APP.I(b,$APP.mi),k=$APP.I(b,$APP.Ag),m=$APP.I(b,$APP.Hh);b=$APP.I(b,$APP.W);g=Hy(g,Ly,"default");e=Hy(e,My,"start");k=Hy(k,Ny,"md");c=Hy(c,Oy,"normal");d=Hy(d,Py,"neutral");m=$APP.J(m);return $APP.bf([Ky,$APP.ei,$APP.Wg,$APP.T,$APP.mi,$APP.Ag,$APP.Hh,$APP.W,Qy,Jy],
3
+ [d,e,g,Iy(a),Iy(h),k,m,Iy(b),m?"true":null,c])},Sy=function(a){return $APP.bf([Ky,$APP.ei,$APP.Wg,$APP.T,$APP.mi,$APP.Ag,$APP.Hh,$APP.W,Jy],[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")])},Ty=function(a,b){a.setAttribute("role","figure");var c=Qy.g(b);$APP.n(c)?a.setAttribute("aria-busy",c):a.removeAttribute("aria-busy");b=
4
+ $APP.W.g(b);$APP.n(b)?a.setAttribute("aria-label",b):a.removeAttribute("aria-label")},Uy=function(a,b){a.setAttribute("data-variant",$APP.Wg.g(b));a.setAttribute("data-align",$APP.ei.g(b));a.setAttribute("data-size",$APP.Ag.g(b));a.setAttribute("data-emphasis",Jy.g(b));a.setAttribute("data-trend",Ky.g(b));$APP.n($APP.Hh.g(b))?a.setAttribute("data-loading","true"):a.removeAttribute("data-loading")},Vy=function(a){var b=Ry(Sy(a)),c=$APP.l(a,"__x_stat_base"),d=$APP.l(a,"__x_stat_label"),e=$APP.l(a,"__x_stat_value"),
5
+ g=$APP.l(a,"__x_stat_hint");return $APP.n(c)?(Ty(a,b),Uy(c,b),d.textContent=function(){var h=$APP.W.g(b);return $APP.n(h)?h:""}(),e.textContent=function(){var h=$APP.T.g(b);return $APP.n(h)?h:""}(),g.textContent=function(){var h=$APP.mi.g(b);return $APP.n(h)?h:""}()):null},Wy=function(a){if($APP.l(a,"__x_stat_initialized")!==!0){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("div"),
6
+ k=document.createElement("div"),m=document.createElement("div"),q=document.createElement("span"),r=document.createElement("span"),v=document.createElement("span"),w=document.createElement("slot"),z=document.createElement("slot"),A=document.createElement("slot"),C=document.createElement("slot"),F=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;}.base{display:grid;gap:6px;}.label{font-size:12px;opacity:0.8;}.value{font-weight:600;font-size:20px;}.hint{font-size:12px;opacity:0.7;}.base[data-loading\x3d'true']{opacity:0.6;}";
7
+ d.setAttribute("part","base");e.setAttribute("part","icon");g.setAttribute("part","body");h.setAttribute("part","label");k.setAttribute("part","value");m.setAttribute("part","hint");w.setAttribute("name","icon");z.setAttribute("name","label");A.setAttribute("name","value");C.setAttribute("name","hint");e.appendChild(w);h.appendChild(z);h.appendChild(q);k.appendChild(A);k.appendChild(r);m.appendChild(C);m.appendChild(v);g.appendChild(h);g.appendChild(k);g.appendChild(m);g.appendChild(F);d.appendChild(e);
8
+ d.appendChild(g);b.appendChild(c);b.appendChild(d);a.__x_stat_root=b;a.__x_stat_base=d;a.__x_stat_label=q;a.__x_stat_value=r;a.__x_stat_hint=v;a.__x_stat_initialized=!0}Vy(a);return a},Yy=function(){var a=class extends HTMLElement{};a.observedAttributes=Xy;a.prototype.connectedCallback=function(){return Wy(this)};a.prototype.attributeChangedCallback=function(){return $APP.l(this,"__x_stat_initialized")===!0?Vy(this):Wy(this)};return a},Zy=function(){return $APP.n(customElements.get("x-stat"))?null:
9
+ customElements.define("x-stat",Yy())},Jy=new $APP.K(null,"emphasis","emphasis",293543451),Qy=new $APP.K(null,"aria-busy","aria-busy",793864247),Ky=new $APP.K(null,"trend","trend",54563841);var Xy="variant align size emphasis trend loading label value hint".split(" "),Ly=new $APP.R(null,new $APP.P(null,5,["warning",null,"positive",null,"subtle",null,"danger",null,"default",null],null),null),My=new $APP.R(null,new $APP.P(null,3,["center",null,"start",null,"end",null],null),null),Ny=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),Oy=new $APP.R(null,new $APP.P(null,2,["high",null,"normal",null],null),null),Py=new $APP.R(null,new $APP.P(null,3,["neutral",null,
10
+ "up",null,"down",null],null),null);$APP.ka("baredom.exports.x_stat.init",Zy);export const init=Zy;
package/dist/x-stepper.js CHANGED
@@ -3,12 +3,12 @@ var Rk=function(a){a=$APP.I(Pk,typeof a==="string"?a.toLowerCase():null);return
3
3
  b)))return a=parseInt(b,10),a>0&&a<=200?$APP.Md(function(d){return new $APP.P(null,2,[$APP.W,"Step "+$APP.S.g(d),$APP.Dg,null],null)},$APP.Bf(1,a+1)):$APP.Ld;if($APP.n(function(){var d=$APP.N("",b);return d?b.startsWith("["):d}()))try{var c=JSON.parse(b);return $APP.n(Array.isArray(c))?$APP.Md(function(d){return new $APP.P(null,2,[$APP.W,function(){var e=$APP.l(d,"label");return typeof e==="string"?e:""}(),$APP.Dg,function(){var e=$APP.l(d,"description");return typeof e==="string"?e:null}()],null)},
4
4
  $APP.gc(c)):$APP.Ld}catch(d){return $APP.Ld}else return $APP.Ld}else return $APP.Ld},al=function(a){var b=$APP.l(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:0.875rem;--x-stepper-label-font-weight:500;--x-stepper-desc-font-size:0.75rem;--x-stepper-radius:999px;--x-stepper-motion:120ms;--x-stepper-press-scale:0.93;--x-stepper-focus-ring:rgba(0,0,0,0.55);--x-stepper-disabled-opacity:0.5;--x-stepper-complete-bg:rgba(16,140,72,1);--x-stepper-complete-color:#fff;--x-stepper-complete-connector:rgba(16,140,72,1);--x-stepper-current-bg:rgba(0,102,204,1);--x-stepper-current-color:#fff;--x-stepper-upcoming-bg:rgba(0,0,0,0.08);--x-stepper-upcoming-color:rgba(0,0,0,0.45);--x-stepper-idle-connector:rgba(0,0,0,0.12);--x-stepper-label-done-color:rgba(0,0,0,0.85);--x-stepper-label-current-color:rgba(0,0,0,0.85);--x-stepper-label-upcoming-color:rgba(0,0,0,0.4);--x-stepper-desc-color:rgba(0,0,0,0.4);}@media (prefers-color-scheme:dark){:host{--x-stepper-focus-ring:rgba(255,255,255,0.7);--x-stepper-complete-bg:rgba(60,210,120,1);--x-stepper-complete-color:#000;--x-stepper-complete-connector:rgba(60,210,120,1);--x-stepper-current-bg:rgba(80,160,255,1);--x-stepper-current-color:#000;--x-stepper-upcoming-bg:rgba(255,255,255,0.1);--x-stepper-upcoming-color:rgba(255,255,255,0.35);--x-stepper-idle-connector:rgba(255,255,255,0.12);--x-stepper-label-done-color:rgba(255,255,255,0.9);--x-stepper-label-current-color:rgba(255,255,255,0.9);--x-stepper-label-upcoming-color:rgba(255,255,255,0.3);--x-stepper-desc-color: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
5
  d.setAttribute("part","container");d.setAttribute("role","list");b.appendChild(c);b.appendChild(d);a.__xStepperRefs=new $APP.P(null,2,[$APP.sh,b,$APP.ri,d],null);return $APP.l(a,"__xStepperRefs")},fl=function(a){a=new $APP.P(null,5,[bl,a.getAttribute("steps"),cl,a.getAttribute("current"),$APP.li,a.getAttribute("orientation"),$APP.hi,a.getAttribute("size"),$APP.U,a.hasAttribute("disabled")],null);var b=$APP.M(a),c=$APP.I(b,bl);a=$APP.I(b,cl);var d=$APP.I(b,$APP.li),e=$APP.I(b,$APP.hi);b=$APP.I(b,$APP.U);
6
- c=$k(c);var f=$APP.B(c);return new $APP.P(null,5,[dl,c,el,f===0?0:$APP.kg.h(0,$APP.lg.h(Zk(a),f-1)),$APP.Ah,Rk(d),$APP.Ag,Wk(e),$APP.U,$APP.J(b)],null)},gl=function(a,b,c){return"Step "+$APP.S.g(a+1)+": "+$APP.S.g(b)+" ("+$APP.S.g(function(){var d=c instanceof $APP.K?c.oa:null;switch(d){case "complete":return"completed";case "current":return"current";case "upcoming":return"upcoming";default:throw Error("No matching clause: "+$APP.S.g(d));}}())+")"},hl=function(a,b,c,d){var e=$APP.M(b);b=$APP.I(e,
7
- $APP.W);e=$APP.I(e,$APP.Dg);var f=document.createElement("div"),h=document.createElement("div"),k=document.createElement("button"),m=document.createElement("span"),q=document.createElement("div"),r=document.createElement("div"),u=document.createElement("span"),w=document.createElement("span");a:{var z=c instanceof $APP.K?c.oa:null;switch(z){case "complete":z="complete";break a;case "current":z="current";break a;case "upcoming":z="upcoming";break a;default:throw Error("No matching clause: "+$APP.S.g(z));
8
- }}b=$APP.n(b)?b:"";f.setAttribute("part","step");f.setAttribute("role","listitem");f.setAttribute("data-index",""+$APP.S.g(a));f.setAttribute("data-state",z);h.setAttribute("part","step-track");k.setAttribute("part","step-indicator");k.setAttribute("type","button");k.setAttribute("aria-label",gl(a,b,c));$APP.D.h(c,el)?k.setAttribute("aria-current","step"):k.removeAttribute("aria-current");k.setAttribute("tabindex",$APP.n(d)?"-1":"0");m.setAttribute("part","step-number");m.setAttribute("aria-hidden",
9
- "true");m.textContent=$APP.D.h(c,$APP.Qi)?"✓":""+$APP.S.g(a+1);q.setAttribute("part","step-connector");q.setAttribute("aria-hidden","true");r.setAttribute("part","step-content");u.setAttribute("part","step-label");u.textContent=b;w.setAttribute("part","step-description");$APP.n($APP.n(e)?$APP.N(e,""):e)?(w.textContent=e,w.style.display="block"):w.style.display="none";k.appendChild(m);h.appendChild(k);h.appendChild(q);r.appendChild(u);r.appendChild(w);f.appendChild(h);f.appendChild(r);return f},jl=
10
- function(a){var b=fl(a);if($APP.N($APP.l(a,"__xStepperModel"),b)){b=$APP.M(b);var c=$APP.I(b,dl),d=$APP.I(b,el),e=$APP.I(b,$APP.Ah),f=$APP.I(b,$APP.Ag),h=$APP.I(b,$APP.U),k=al(a);k=$APP.M(k);k=$APP.I(k,$APP.ri);a.setAttribute("data-orientation",Tk(e));a.setAttribute("data-size",Yk(f));k.innerHTML="";c=$APP.v($APP.Bd($APP.og,c));e=null;for(var m=f=0;;)if(m<f){var q=e.F(null,m),r=$APP.H(q,0,null);q=$APP.H(q,1,null);var u=r<d?$APP.Qi:$APP.D.h(r,d)?el:il;k.appendChild(hl(r,q,u,h));m+=1}else if(c=$APP.v(c))$APP.yc(c)?
11
- (f=$APP.ob(c),c=$APP.pb(c),e=f,f=$APP.B(f)):(f=$APP.x(c),e=$APP.H(f,0,null),f=$APP.H(f,1,null),m=e<d?$APP.Qi:$APP.D.h(e,d)?el:il,k.appendChild(hl(e,f,m,h)),c=$APP.y(c),e=null,f=0),m=0;else break;a.__xStepperModel=b}},ll=function(a){function b(d){var e=$APP.l(a,"__xStepperModel");e=$APP.n(e)?e:fl(a);$APP.n($APP.U.g(e))||(d=d.target.closest("[part\x3dstep-indicator]"),$APP.n(d)&&(d=parseInt(d.closest("[part\x3dstep]").getAttribute("data-index"),10),e=el.g(e),typeof d==="number"&&$APP.p(isNaN(d))&&$APP.N(d,
6
+ c=$k(c);var g=$APP.B(c);return new $APP.P(null,5,[dl,c,el,g===0?0:$APP.kg.h(0,$APP.lg.h(Zk(a),g-1)),$APP.Ah,Rk(d),$APP.Ag,Wk(e),$APP.U,$APP.J(b)],null)},gl=function(a,b,c){return"Step "+$APP.S.g(a+1)+": "+$APP.S.g(b)+" ("+$APP.S.g(function(){var d=c instanceof $APP.K?c.oa:null;switch(d){case "complete":return"completed";case "current":return"current";case "upcoming":return"upcoming";default:throw Error("No matching clause: "+$APP.S.g(d));}}())+")"},hl=function(a,b,c,d){var e=$APP.M(b);b=$APP.I(e,
7
+ $APP.W);e=$APP.I(e,$APP.Dg);var g=document.createElement("div"),h=document.createElement("div"),k=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 z=c instanceof $APP.K?c.oa:null;switch(z){case "complete":z="complete";break a;case "current":z="current";break a;case "upcoming":z="upcoming";break a;default:throw Error("No matching clause: "+$APP.S.g(z));
8
+ }}b=$APP.n(b)?b:"";g.setAttribute("part","step");g.setAttribute("role","listitem");g.setAttribute("data-index",""+$APP.S.g(a));g.setAttribute("data-state",z);h.setAttribute("part","step-track");k.setAttribute("part","step-indicator");k.setAttribute("type","button");k.setAttribute("aria-label",gl(a,b,c));$APP.E.h(c,el)?k.setAttribute("aria-current","step"):k.removeAttribute("aria-current");k.setAttribute("tabindex",$APP.n(d)?"-1":"0");m.setAttribute("part","step-number");m.setAttribute("aria-hidden",
9
+ "true");m.textContent=$APP.E.h(c,$APP.Qi)?"✓":""+$APP.S.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;w.setAttribute("part","step-description");$APP.n($APP.n(e)?$APP.N(e,""):e)?(w.textContent=e,w.style.display="block"):w.style.display="none";k.appendChild(m);h.appendChild(k);h.appendChild(q);r.appendChild(v);r.appendChild(w);g.appendChild(h);g.appendChild(r);return g},jl=
10
+ function(a){var b=fl(a);if($APP.N($APP.l(a,"__xStepperModel"),b)){b=$APP.M(b);var c=$APP.I(b,dl),d=$APP.I(b,el),e=$APP.I(b,$APP.Ah),g=$APP.I(b,$APP.Ag),h=$APP.I(b,$APP.U),k=al(a);k=$APP.M(k);k=$APP.I(k,$APP.ri);a.setAttribute("data-orientation",Tk(e));a.setAttribute("data-size",Yk(g));k.innerHTML="";c=$APP.u($APP.Bd($APP.og,c));e=null;for(var m=g=0;;)if(m<g){var q=e.F(null,m),r=$APP.H(q,0,null);q=$APP.H(q,1,null);var v=r<d?$APP.Qi:$APP.E.h(r,d)?el:il;k.appendChild(hl(r,q,v,h));m+=1}else if(c=$APP.u(c))$APP.yc(c)?
11
+ (g=$APP.ob(c),c=$APP.pb(c),e=g,g=$APP.B(g)):(g=$APP.x(c),e=$APP.H(g,0,null),g=$APP.H(g,1,null),m=e<d?$APP.Qi:$APP.E.h(e,d)?el:il,k.appendChild(hl(e,g,m,h)),c=$APP.y(c),e=null,g=0),m=0;else break;a.__xStepperModel=b}},ll=function(a){function b(d){var e=$APP.l(a,"__xStepperModel");e=$APP.n(e)?e:fl(a);$APP.n($APP.U.g(e))||(d=d.target.closest("[part\x3dstep-indicator]"),$APP.n(d)&&(d=parseInt(d.closest("[part\x3dstep]").getAttribute("data-index"),10),e=el.g(e),typeof d==="number"&&$APP.p(isNaN(d))&&$APP.N(d,
12
12
  e)&&(e=$APP.xg(new $APP.P(null,2,[$APP.Mg,e,kl,d],null)),e=new CustomEvent("x-stepper-change",{detail:e,bubbles:!0,composed:!0,cancelable:!0}),e=a.dispatchEvent(e),$APP.n(e)&&a.setAttribute("current",""+$APP.S.g(d)))));return null}var c=al(a);c=$APP.M(c);$APP.I(c,$APP.ri).addEventListener("click",b);$APP.ma(a,"__xStepperHandlers",{click:b})},ml=function(a){var b=$APP.l(a,"__xStepperHandlers");if($APP.n(b)){var c=$APP.l(a,"__xStepperRefs");$APP.n(c)&&(c=$APP.ri.g(c),b=$APP.l(b,"click"),$APP.n($APP.n(c)?
13
13
  b:c)&&c.removeEventListener("click",b))}a.__xStepperHandlers=null},nl=function(a){Object.defineProperty(a,"steps",{get:function(){var b=this.getAttribute("steps");return $APP.n(b)?b:"[]"},set:function(b){return $APP.n(b)?this.setAttribute("steps",""+$APP.S.g(b)):this.removeAttribute("steps")},enumerable:!0,configurable:!0});Object.defineProperty(a,"current",{get:function(){return Zk(this.getAttribute("current"))},set:function(b){return b==null?this.removeAttribute("current"):this.setAttribute("current",
14
14
  ""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"orientation",{get:function(){return Tk(Rk(this.getAttribute("orientation")))},set:function(b){return $APP.n(b)?this.setAttribute("orientation",""+$APP.S.g(b)):this.removeAttribute("orientation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"size",{get:function(){return Yk(Wk(this.getAttribute("size")))},set:function(b){return $APP.n(b)?this.setAttribute("size",""+$APP.S.g(b)):this.removeAttribute("size")},enumerable:!0,
package/dist/x-switch.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var WA=function(a,b,c){return a.setAttribute(b,c)},XA=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},YA=function(a){a=$APP.bf([$APP.Kh,$APP.$h,$APP.Cg,$APP.Rg,$APP.ai,$APP.vi,$APP.Gi,$APP.Ei,$APP.ki],[a.getAttribute("name"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.getAttribute("aria-labelledby"),a.hasAttribute("checked"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.M(a);a=
3
- $APP.I(b,$APP.Ei);var c=$APP.I(b,$APP.ki),d=$APP.I(b,$APP.Kh),e=$APP.I(b,$APP.$h),f=$APP.I(b,$APP.Cg),h=$APP.I(b,$APP.Rg),k=$APP.I(b,$APP.ai),m=$APP.I(b,$APP.vi);b=$APP.I(b,$APP.Gi);k=$APP.J(k);f=$APP.J(f);return $APP.bf([$APP.bh,$APP.Xg,$APP.cj,$APP.pi,$APP.Ig,$APP.ii,$APP.T,$APP.Oi,$APP.Xi,$APP.bi,$APP.U],[f,k?"true":"false",$APP.J(m),k,$APP.n(f)?k:!0,d,b!=null?b:"on",h,c,a,$APP.J(e)])},ZA=function(a){var b=$APP.l(a,"__xSwitchRefs");if($APP.n(b)){var c=$APP.l(b,"control");b=YA(a);var d=$APP.U.g(b),
4
- e=$APP.pi.g(b);WA(c,"aria-checked",$APP.Xg.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");WA(c,"aria-required",$APP.n($APP.bh.g(b))?"true":"false");WA(c,"aria-readonly",$APP.n($APP.cj.g(b))?"true":"false");var f=$APP.bi.g(b);$APP.n(f)?c.setAttribute("aria-label",f):c.removeAttribute("aria-label");f=$APP.Oi.g(b);$APP.n(f)?c.setAttribute("aria-labelledby",f):c.removeAttribute("aria-labelledby");f=$APP.Xi.g(b);$APP.n(f)?c.setAttribute("aria-describedby",f):c.removeAttribute("aria-describedby");
5
- c.tabIndex=$APP.n(d)?-1:0;$APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");XA(a,"data-checked",e);XA(a,"data-disabled",d);a=$APP.l(a,"__xSwitchInternals");return $APP.n(a)?a.setFormValue($APP.n(e)?$APP.T.g(b):null):null}return null},$A=function(a){var b=YA(a),c=$APP.U.g(b),d=$APP.cj.g(b);if($APP.n($APP.n(c)?c:d))return null;d=$APP.pi.g(b);c=$APP.p(d);b=$APP.T.g(b);d=new CustomEvent("x-switch-change-request",{detail:{value:b,previousChecked:d,nextChecked:c},bubbles:!0,composed:!0,
6
- cancelable:!0});a.dispatchEvent(d);return $APP.p(d.defaultPrevented)?(XA(a,"checked",c),ZA(a),a.dispatchEvent(new CustomEvent("x-switch-change",{detail:{value:b,checked:c},bubbles:!0,composed:!0,cancelable:!1}))):null},aB=function(a){return function(){return $A(a)}},bB=function(a){return function(b){var c=b.key;return $APP.D.h(c," ")||$APP.D.h(c,"Enter")?(b.preventDefault(),$A(a)):null}},cB=function(a){var b=$APP.l(a,"__xSwitchRefs");if($APP.n(b)){var c=$APP.l(a,"__xSwitchHandlers");if($APP.n(c)){b=
7
- $APP.l(b,"control");b.removeEventListener("click",$APP.l(c,"click"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xSwitchHandlers=null;return}}return null},dB=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return XA(this,c,$APP.J(d))}})},eB=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=
8
- null&&$APP.N(d)?WA(this,c,""+$APP.S.g(d)):this.removeAttribute(c)}})},gB=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return fB}});dB(b,"checked","checked");dB(b,"disabled","disabled");dB(b,"readOnly","readonly");dB(b,"required","required");eB(b,"name","name");eB(b,"value","value");b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSwitchRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),
9
- e=document.createElement("button"),f=document.createElement("span"),h=document.createElement("span");d.textContent=":host{display:inline-block;vertical-align:middle;color-scheme:light dark;--x-switch-track-width:44px;--x-switch-track-height:24px;--x-switch-thumb-size:18px;--x-switch-thumb-offset:3px;--x-switch-track-radius:999px;--x-switch-track-bg:#d1d5db;--x-switch-track-bg-checked:#2563eb;--x-switch-thumb-bg:#ffffff;--x-switch-focus-ring:#60a5fa;--x-switch-disabled-opacity:0.45;--x-switch-transition:background 150ms ease,transform 150ms ease;}@media (prefers-color-scheme:dark){:host{--x-switch-track-bg:#4b5563;--x-switch-track-bg-checked:#3b82f6;--x-switch-thumb-bg:#f9fafb;--x-switch-focus-ring:#93c5fd;}}[part\x3dcontrol]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;padding:0;cursor:pointer;}[part\x3dcontrol][disabled]{cursor:default;opacity:var(--x-switch-disabled-opacity);}[part\x3dcontrol]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--x-switch-focus-ring);border-radius:calc(var(--x-switch-track-radius) + 2px);}[part\x3dtrack]{position:relative;display:inline-block;width:var(--x-switch-track-width);height:var(--x-switch-track-height);border-radius:var(--x-switch-track-radius);background:var(--x-switch-track-bg);transition:background 150ms ease;flex-shrink:0;}:host([data-checked]) [part\x3dtrack]{background:var(--x-switch-track-bg-checked);}[part\x3dthumb]{position:absolute;top:var(--x-switch-thumb-offset);left:var(--x-switch-thumb-offset);width:var(--x-switch-thumb-size);height:var(--x-switch-thumb-size);border-radius:50%;background:var(--x-switch-thumb-bg);box-shadow:0 1px 3px rgba(0,0,0,0.25);transition:transform 150ms ease;}:host([data-checked]) [part\x3dthumb]{transform:translateX(calc(var(--x-switch-track-width) - var(--x-switch-thumb-size) - calc(var(--x-switch-thumb-offset) * 2)));}@media (prefers-reduced-motion:reduce){[part\x3dtrack]{transition:none;}[part\x3dthumb]{transition:none;}}";
10
- e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","switch");f.setAttribute("part","track");h.setAttribute("part","thumb");f.appendChild(h);e.appendChild(f);c.appendChild(d);c.appendChild(e);this.__xSwitchRefs={root:c,control:e,track:f,thumb:h};$APP.n(this.attachInternals)&&(this.__xSwitchInternals=this.attachInternals())}cB(this);c=$APP.l(this,"__xSwitchRefs");$APP.n(c)&&(c=$APP.l(c,"control"),d=aB(this),e=bB(this),f={click:d,keydown:e},c.addEventListener("click",
11
- d),c.addEventListener("keydown",e),this.__xSwitchHandlers=f);d=this.getAttribute("id");$APP.n(d)&&(c=document.querySelector("label[for\x3d'"+$APP.S.g(d)+"']"),$APP.n(c)&&(e=c.getAttribute("id"),$APP.n(e)?c=e:(d="x-sw-lbl-"+$APP.S.g(d),c.setAttribute("id",d),c=d),d=$APP.l(this,"__xSwitchRefs"),$APP.n(d)&&$APP.l(d,"control").setAttribute("aria-labelledby",c)));return ZA(this)};b.disconnectedCallback=function(){return cB(this)};b.attributeChangedCallback=function(){return ZA(this)};b.formDisabledCallback=
12
- function(c){XA(this,"disabled",$APP.J(c));return ZA(this)};b.formResetCallback=function(){this.removeAttribute("checked");return ZA(this)};return a},hB=function(){return $APP.n(customElements.get("x-switch"))?null:customElements.define("x-switch",gB())};var fB="checked disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.wd(["x-switch-change-request",new $APP.P(null,2,[$APP.wi,!0,$APP.Y,new $APP.P(null,3,[$APP.T,$APP.X,$APP.Bg,$APP.Li,$APP.gi,$APP.Li],null)],null),"x-switch-change",new $APP.P(null,2,[$APP.wi,!1,$APP.Y,new $APP.P(null,2,[$APP.T,$APP.X,$APP.Si,$APP.Li],null)],null)]);$APP.ka("baredom.exports.x_switch.init",hB);export const init=hB;
2
+ var VA=function(a,b,c){return a.setAttribute(b,c)},WA=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},XA=function(a){a=$APP.bf([$APP.Kh,$APP.$h,$APP.Cg,$APP.Rg,$APP.ai,$APP.vi,$APP.Gi,$APP.Ei,$APP.ki],[a.getAttribute("name"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.getAttribute("aria-labelledby"),a.hasAttribute("checked"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.M(a);a=
3
+ $APP.I(b,$APP.Ei);var c=$APP.I(b,$APP.ki),d=$APP.I(b,$APP.Kh),e=$APP.I(b,$APP.$h),g=$APP.I(b,$APP.Cg),h=$APP.I(b,$APP.Rg),k=$APP.I(b,$APP.ai),m=$APP.I(b,$APP.vi);b=$APP.I(b,$APP.Gi);k=$APP.J(k);g=$APP.J(g);return $APP.bf([$APP.bh,$APP.Xg,$APP.cj,$APP.pi,$APP.Ig,$APP.ii,$APP.T,$APP.Oi,$APP.Xi,$APP.bi,$APP.U],[g,k?"true":"false",$APP.J(m),k,$APP.n(g)?k:!0,d,b!=null?b:"on",h,c,a,$APP.J(e)])},YA=function(a){var b=$APP.l(a,"__xSwitchRefs");if($APP.n(b)){var c=$APP.l(b,"control");b=XA(a);var d=$APP.U.g(b),
4
+ e=$APP.pi.g(b);VA(c,"aria-checked",$APP.Xg.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");VA(c,"aria-required",$APP.n($APP.bh.g(b))?"true":"false");VA(c,"aria-readonly",$APP.n($APP.cj.g(b))?"true":"false");var g=$APP.bi.g(b);$APP.n(g)?c.setAttribute("aria-label",g):c.removeAttribute("aria-label");g=$APP.Oi.g(b);$APP.n(g)?c.setAttribute("aria-labelledby",g):c.removeAttribute("aria-labelledby");g=$APP.Xi.g(b);$APP.n(g)?c.setAttribute("aria-describedby",g):c.removeAttribute("aria-describedby");
5
+ c.tabIndex=$APP.n(d)?-1:0;$APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");WA(a,"data-checked",e);WA(a,"data-disabled",d);a=$APP.l(a,"__xSwitchInternals");return $APP.n(a)?a.setFormValue($APP.n(e)?$APP.T.g(b):null):null}return null},ZA=function(a){var b=XA(a),c=$APP.U.g(b),d=$APP.cj.g(b);if($APP.n($APP.n(c)?c:d))return null;d=$APP.pi.g(b);c=$APP.p(d);b=$APP.T.g(b);d=new CustomEvent("x-switch-change-request",{detail:{value:b,previousChecked:d,nextChecked:c},bubbles:!0,composed:!0,
6
+ cancelable:!0});a.dispatchEvent(d);return $APP.p(d.defaultPrevented)?(WA(a,"checked",c),YA(a),a.dispatchEvent(new CustomEvent("x-switch-change",{detail:{value:b,checked:c},bubbles:!0,composed:!0,cancelable:!1}))):null},$A=function(a){return function(){return ZA(a)}},aB=function(a){return function(b){var c=b.key;return $APP.E.h(c," ")||$APP.E.h(c,"Enter")?(b.preventDefault(),ZA(a)):null}},bB=function(a){var b=$APP.l(a,"__xSwitchRefs");if($APP.n(b)){var c=$APP.l(a,"__xSwitchHandlers");if($APP.n(c)){b=
7
+ $APP.l(b,"control");b.removeEventListener("click",$APP.l(c,"click"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xSwitchHandlers=null;return}}return null},cB=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return WA(this,c,$APP.J(d))}})},dB=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=
8
+ null&&$APP.N(d)?VA(this,c,""+$APP.S.g(d)):this.removeAttribute(c)}})},fB=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return eB}});cB(b,"checked","checked");cB(b,"disabled","disabled");cB(b,"readOnly","readonly");cB(b,"required","required");dB(b,"name","name");dB(b,"value","value");b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSwitchRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),
9
+ e=document.createElement("button"),g=document.createElement("span"),h=document.createElement("span");d.textContent=":host{display:inline-block;vertical-align:middle;color-scheme:light dark;--x-switch-track-width:44px;--x-switch-track-height:24px;--x-switch-thumb-size:18px;--x-switch-thumb-offset:3px;--x-switch-track-radius:999px;--x-switch-track-bg:#d1d5db;--x-switch-track-bg-checked:#2563eb;--x-switch-thumb-bg:#ffffff;--x-switch-focus-ring:#60a5fa;--x-switch-disabled-opacity:0.45;--x-switch-transition:background 150ms ease,transform 150ms ease;}@media (prefers-color-scheme:dark){:host{--x-switch-track-bg:#4b5563;--x-switch-track-bg-checked:#3b82f6;--x-switch-thumb-bg:#f9fafb;--x-switch-focus-ring:#93c5fd;}}[part\x3dcontrol]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;padding:0;cursor:pointer;}[part\x3dcontrol][disabled]{cursor:default;opacity:var(--x-switch-disabled-opacity);}[part\x3dcontrol]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--x-switch-focus-ring);border-radius:calc(var(--x-switch-track-radius) + 2px);}[part\x3dtrack]{position:relative;display:inline-block;width:var(--x-switch-track-width);height:var(--x-switch-track-height);border-radius:var(--x-switch-track-radius);background:var(--x-switch-track-bg);transition:background 150ms ease;flex-shrink:0;}:host([data-checked]) [part\x3dtrack]{background:var(--x-switch-track-bg-checked);}[part\x3dthumb]{position:absolute;top:var(--x-switch-thumb-offset);left:var(--x-switch-thumb-offset);width:var(--x-switch-thumb-size);height:var(--x-switch-thumb-size);border-radius:50%;background:var(--x-switch-thumb-bg);box-shadow:0 1px 3px rgba(0,0,0,0.25);transition:transform 150ms ease;}:host([data-checked]) [part\x3dthumb]{transform:translateX(calc(var(--x-switch-track-width) - var(--x-switch-thumb-size) - calc(var(--x-switch-thumb-offset) * 2)));}@media (prefers-reduced-motion:reduce){[part\x3dtrack]{transition:none;}[part\x3dthumb]{transition:none;}}";
10
+ e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","switch");g.setAttribute("part","track");h.setAttribute("part","thumb");g.appendChild(h);e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xSwitchRefs={root:c,control:e,track:g,thumb:h};$APP.n(this.attachInternals)&&(this.__xSwitchInternals=this.attachInternals())}bB(this);c=$APP.l(this,"__xSwitchRefs");$APP.n(c)&&(c=$APP.l(c,"control"),d=$A(this),e=aB(this),g={click:d,keydown:e},c.addEventListener("click",
11
+ d),c.addEventListener("keydown",e),this.__xSwitchHandlers=g);d=this.getAttribute("id");$APP.n(d)&&(c=document.querySelector("label[for\x3d'"+$APP.S.g(d)+"']"),$APP.n(c)&&(e=c.getAttribute("id"),$APP.n(e)?c=e:(d="x-sw-lbl-"+$APP.S.g(d),c.setAttribute("id",d),c=d),d=$APP.l(this,"__xSwitchRefs"),$APP.n(d)&&$APP.l(d,"control").setAttribute("aria-labelledby",c)));return YA(this)};b.disconnectedCallback=function(){return bB(this)};b.attributeChangedCallback=function(){return YA(this)};b.formDisabledCallback=
12
+ function(c){WA(this,"disabled",$APP.J(c));return YA(this)};b.formResetCallback=function(){this.removeAttribute("checked");return YA(this)};return a},gB=function(){return $APP.n(customElements.get("x-switch"))?null:customElements.define("x-switch",fB())};var eB="checked disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.wd(["x-switch-change-request",new $APP.P(null,2,[$APP.wi,!0,$APP.Y,new $APP.P(null,3,[$APP.T,$APP.X,$APP.Bg,$APP.Li,$APP.gi,$APP.Li],null)],null),"x-switch-change",new $APP.P(null,2,[$APP.wi,!1,$APP.Y,new $APP.P(null,2,[$APP.T,$APP.X,$APP.Si,$APP.Li],null)],null)]);$APP.ka("baredom.exports.x_switch.init",gB);export const init=gB;
package/dist/x-tab.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var jj=function(a,b,c){return $APP.Cc(b,a)?a:c},rj=function(a){var b=$APP.M(a),c=$APP.I(b,$APP.bj),d=$APP.I(b,$APP.yi);a=$APP.I(b,$APP.Ah);var e=$APP.I(b,$APP.Ag),f=$APP.I(b,$APP.Wg),h=$APP.I(b,$APP.W);b=$APP.I(b,kj);c=$APP.J(c);var k=(d=$APP.J(d))?"-1":c?"0":"-1";return new $APP.P(null,8,[$APP.bj,c,$APP.yi,d,$APP.Ah,jj(a,lj,"horizontal"),$APP.Ag,jj(e,mj,"md"),$APP.Wg,jj(f,qj,"default"),$APP.W,h,kj,b,$APP.Ug,k],null)},sj=function(a){return new $APP.P(null,8,[$APP.T,a.getAttribute("value"),$APP.bj,
2
+ var jj=function(a,b,c){return $APP.Cc(b,a)?a:c},rj=function(a){var b=$APP.M(a),c=$APP.I(b,$APP.bj),d=$APP.I(b,$APP.yi);a=$APP.I(b,$APP.Ah);var e=$APP.I(b,$APP.Ag),g=$APP.I(b,$APP.Wg),h=$APP.I(b,$APP.W);b=$APP.I(b,kj);c=$APP.J(c);var k=(d=$APP.J(d))?"-1":c?"0":"-1";return new $APP.P(null,8,[$APP.bj,c,$APP.yi,d,$APP.Ah,jj(a,lj,"horizontal"),$APP.Ag,jj(e,mj,"md"),$APP.Wg,jj(g,nj,"default"),$APP.W,h,kj,b,$APP.Ug,k],null)},sj=function(a){return new $APP.P(null,8,[$APP.T,a.getAttribute("value"),$APP.bj,
3
3
  a.hasAttribute("selected"),$APP.yi,a.hasAttribute("disabled"),$APP.Ah,a.getAttribute("orientation"),$APP.Ag,a.getAttribute("size"),$APP.Wg,a.getAttribute("variant"),$APP.W,a.getAttribute("label"),kj,a.getAttribute("controls")],null)},tj=function(a){var b=rj(sj(a)),c=$APP.l(a,"__x_tab_base");if($APP.n(c)){a.setAttribute("role","tab");a.setAttribute("aria-selected",$APP.n($APP.bj.g(b))?"true":"false");$APP.n($APP.yi.g(b))?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");a.setAttribute("tabindex",
4
4
  $APP.Ug.g(b));var d=kj.g(b),e=$APP.W.g(b);$APP.n($APP.n(d)?$APP.N(d,""):d)?a.setAttribute("aria-controls",d):a.removeAttribute("aria-controls");$APP.n($APP.n(e)?$APP.N(e,""):e)?a.setAttribute("aria-label",e):a.removeAttribute("aria-label");c.setAttribute("data-selected",$APP.n($APP.bj.g(b))?"true":"false");c.setAttribute("data-disabled",$APP.n($APP.yi.g(b))?"true":"false");c.setAttribute("data-size",$APP.Ag.g(b));c.setAttribute("data-variant",$APP.Wg.g(b));return c.setAttribute("data-orientation",
5
- $APP.Ah.g(b))}return null},uj=function(a){var b=rj(sj(a)),c=$APP.M(b);b=$APP.I(c,$APP.bj);c=$APP.I(c,$APP.yi);$APP.p(c)&&$APP.p(b)?(b=a.getAttribute("value"),a=a.dispatchEvent(new CustomEvent("tab-select",{detail:{value:$APP.n(b)?b:""},bubbles:!0,composed:!0}))):a=null;return a},vj=function(a){a.addEventListener("click",function(){return uj(a)});a.addEventListener("keydown",function(b){var c=b.key;$APP.D.h(c,"Enter")||$APP.D.h(c," ")?(b.preventDefault(),b=uj(a)):b=null;return b})},wj=function(a){if($APP.l(a,
5
+ $APP.Ah.g(b))}return null},uj=function(a){var b=rj(sj(a)),c=$APP.M(b);b=$APP.I(c,$APP.bj);c=$APP.I(c,$APP.yi);$APP.p(c)&&$APP.p(b)?(b=a.getAttribute("value"),a=a.dispatchEvent(new CustomEvent("tab-select",{detail:{value:$APP.n(b)?b:""},bubbles:!0,composed:!0}))):a=null;return a},vj=function(a){a.addEventListener("click",function(){return uj(a)});a.addEventListener("keydown",function(b){var c=b.key;$APP.E.h(c,"Enter")||$APP.E.h(c," ")?(b.preventDefault(),b=uj(a)):b=null;return b})},wj=function(a){if($APP.l(a,
6
6
  "__x_tab_initialized")!==!0){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:inline-block;color-scheme:light dark;outline:none;--x-tab-color:#0f172a;--x-tab-hover-background:rgba(15,23,42,0.05);--x-tab-selected-color:#1d4ed8;--x-tab-selected-background:rgba(59,130,246,0.12);--x-tab-selected-border-color:transparent;}@media (prefers-color-scheme:dark){:host{--x-tab-color:#94a3b8;--x-tab-hover-background:rgba(248,250,252,0.06);--x-tab-selected-color:#60a5fa;--x-tab-selected-background:rgba(59,130,246,0.18);--x-tab-selected-border-color:#60a5fa;}}.base{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;user-select:none;padding:var(--x-tab-padding-md,10px 16px);border-radius:var(--x-tab-radius,8px);color:var(--x-tab-color);background:var(--x-tab-background,transparent);border:1px solid var(--x-tab-border-color,transparent);transition:background var(--x-tab-transition-duration,120ms) ease,color var(--x-tab-transition-duration,120ms) ease,border-color var(--x-tab-transition-duration,120ms) ease;}.base[data-size\x3d'sm']{padding:var(--x-tab-padding-sm,6px 12px);}.base[data-size\x3d'md']{padding:var(--x-tab-padding-md,10px 16px);}.base[data-size\x3d'lg']{padding:var(--x-tab-padding-lg,14px 20px);}.base:hover{background:var(--x-tab-hover-background);}.base[data-selected\x3d'true']{color:var(--x-tab-selected-color);background:var(--x-tab-selected-background);border-color:var(--x-tab-selected-border-color);}.base[data-variant\x3d'underline'][data-selected\x3d'true']{border-bottom:2px solid var(--x-tab-selected-color);background:transparent;}.base[data-variant\x3d'pill'][data-selected\x3d'true']{background:var(--x-tab-selected-background);}.base[data-disabled\x3d'true']{opacity:var(--x-tab-disabled-opacity,0.5);cursor:default;}:host(:focus-visible) .base{box-shadow:0 0 0 3px var(--x-tab-focus-ring,rgba(59,130,246,0.4));}@media (prefers-reduced-motion: reduce){.base{transition:none;}}";
7
7
  d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__x_tab_root=b;a.__x_tab_base=d;vj(a);a.__x_tab_initialized=!0}tj(a);return a},xj=function(a){Object.defineProperty(a.prototype,"selected",{get:function(){return this.hasAttribute("selected")},set:function(b){return $APP.n(b)?this.setAttribute("selected",""):this.removeAttribute("selected")},configurable:!0,enumerable:!0});Object.defineProperty(a.prototype,"disabled",{get:function(){return this.hasAttribute("disabled")},
8
8
  set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},configurable:!0,enumerable:!0});Object.defineProperty(a.prototype,"value",{get:function(){return this.getAttribute("value")},set:function(b){return $APP.n(b)?this.setAttribute("value",b):this.removeAttribute("value")},configurable:!0,enumerable:!0})},zj=function(){var a=class extends HTMLElement{};a.observedAttributes=yj;a.prototype.connectedCallback=function(){return wj(this)};a.prototype.attributeChangedCallback=
9
- function(){return $APP.l(this,"__x_tab_initialized")===!0?tj(this):wj(this)};xj(a);return a},Aj=function(){return $APP.n(customElements.get("x-tab"))?null:customElements.define("x-tab",zj())},kj=new $APP.K(null,"controls","controls",1340701452);var yj="value selected disabled orientation size variant label controls".split(" "),lj=new $APP.R(null,new $APP.P(null,2,["vertical",null,"horizontal",null],null),null),mj=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),qj=new $APP.R(null,new $APP.P(null,3,["default",null,"underline",null,"pill",null],null),null);$APP.wd(["tab-select",new $APP.P(null,1,[$APP.Y,new $APP.P(null,1,[$APP.T,$APP.X],null)],null)]);$APP.ka("baredom.exports.x_tab.init",Aj);export const init=Aj;
9
+ function(){return $APP.l(this,"__x_tab_initialized")===!0?tj(this):wj(this)};xj(a);return a},Aj=function(){return $APP.n(customElements.get("x-tab"))?null:customElements.define("x-tab",zj())},kj=new $APP.K(null,"controls","controls",1340701452);var yj="value selected disabled orientation size variant label controls".split(" "),lj=new $APP.R(null,new $APP.P(null,2,["vertical",null,"horizontal",null],null),null),mj=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),nj=new $APP.R(null,new $APP.P(null,3,["default",null,"underline",null,"pill",null],null),null);$APP.wd(["tab-select",new $APP.P(null,1,[$APP.Y,new $APP.P(null,1,[$APP.T,$APP.X],null)],null)]);$APP.ka("baredom.exports.x_tab.init",Aj);export const init=Aj;