@vanelsas/baredom 2.0.1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +26 -7
  3. package/dist/base.js +405 -403
  4. package/dist/x-alert.js +19 -19
  5. package/dist/x-avatar-group.js +11 -11
  6. package/dist/x-avatar.js +15 -15
  7. package/dist/x-badge.js +11 -11
  8. package/dist/x-bento-grid.js +5 -5
  9. package/dist/x-bento-item.js +4 -4
  10. package/dist/x-breadcrumbs.js +14 -14
  11. package/dist/x-button.js +16 -16
  12. package/dist/x-cancel-dialogue.js +17 -17
  13. package/dist/x-card.js +7 -7
  14. package/dist/x-carousel.js +35 -0
  15. package/dist/x-chart.js +48 -48
  16. package/dist/x-checkbox.js +11 -11
  17. package/dist/x-chip.js +9 -9
  18. package/dist/x-collapse.js +11 -11
  19. package/dist/x-color-picker.js +46 -0
  20. package/dist/x-command-palette.js +27 -32
  21. package/dist/x-container.js +6 -6
  22. package/dist/x-context-menu.js +20 -20
  23. package/dist/x-copy.js +23 -23
  24. package/dist/x-currency-field.js +23 -23
  25. package/dist/x-date-picker.js +42 -42
  26. package/dist/x-divider.js +10 -13
  27. package/dist/x-drawer.js +12 -12
  28. package/dist/x-dropdown.js +10 -10
  29. package/dist/x-fieldset.js +6 -6
  30. package/dist/x-file-download.js +7 -7
  31. package/dist/x-form-field.js +16 -16
  32. package/dist/x-form.js +10 -10
  33. package/dist/x-gaussian-blur.js +18 -18
  34. package/dist/x-grid.js +6 -6
  35. package/dist/x-kinetic-font.js +29 -28
  36. package/dist/x-kinetic-typography.js +39 -39
  37. package/dist/x-liquid-dock.js +39 -39
  38. package/dist/x-liquid-fill.js +45 -44
  39. package/dist/x-liquid-glass.js +47 -47
  40. package/dist/x-menu-item.js +10 -10
  41. package/dist/x-menu.js +11 -12
  42. package/dist/x-metaball-cursor.js +27 -28
  43. package/dist/x-modal.js +13 -13
  44. package/dist/x-morph-stack.js +39 -39
  45. package/dist/x-navbar.js +13 -13
  46. package/dist/x-neural-glow.js +34 -34
  47. package/dist/x-notification-center.js +10 -9
  48. package/dist/x-organic-divider.js +19 -19
  49. package/dist/x-organic-progress.js +38 -38
  50. package/dist/x-organic-shape.js +14 -14
  51. package/dist/x-pagination.js +16 -16
  52. package/dist/x-particle-button.js +53 -0
  53. package/dist/x-popover.js +15 -15
  54. package/dist/x-progress-circle.js +11 -11
  55. package/dist/x-progress.js +11 -11
  56. package/dist/x-radio.js +11 -11
  57. package/dist/x-ripple-effect.js +12 -12
  58. package/dist/x-scroll-parallax.js +19 -19
  59. package/dist/x-scroll-stack.js +19 -19
  60. package/dist/x-scroll-story.js +36 -36
  61. package/dist/x-scroll-timeline.js +47 -47
  62. package/dist/x-scroll.js +42 -42
  63. package/dist/x-search-field.js +15 -15
  64. package/dist/x-select.js +11 -11
  65. package/dist/x-sidebar.js +17 -17
  66. package/dist/x-skeleton.js +6 -6
  67. package/dist/x-slider.js +16 -16
  68. package/dist/x-soft-body.js +22 -22
  69. package/dist/x-spacer.js +5 -5
  70. package/dist/x-spinner.js +5 -5
  71. package/dist/x-splash.js +13 -13
  72. package/dist/x-stat.js +11 -11
  73. package/dist/x-stepper.js +16 -16
  74. package/dist/x-switch.js +10 -10
  75. package/dist/x-tab.js +8 -8
  76. package/dist/x-table-cell.js +24 -24
  77. package/dist/x-table-row.js +10 -10
  78. package/dist/x-table.js +16 -16
  79. package/dist/x-tabs.js +11 -11
  80. package/dist/x-text-area.js +19 -19
  81. package/dist/x-theme.js +25 -24
  82. package/dist/x-timeline-item.js +24 -24
  83. package/dist/x-timeline.js +9 -9
  84. package/dist/x-toast.js +25 -25
  85. package/dist/x-toaster.js +8 -8
  86. package/dist/x-typography.js +11 -11
  87. package/package.json +14 -2
@@ -1,11 +1,11 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var aw=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.t(isNaN(a))&&a>0?Math.floor(a):null):null},bw=function(a){var b=$APP.N(a);a=$APP.G(b,$APP.Nk);b=$APP.G(b,$APP.W);return $APP.r(a)?$APP.t(b):a},cw=function(a){if(!$APP.r($APP.l(a,"__xTableRowRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");c.textContent=":host{display:grid;grid-template-columns:subgrid;grid-column:1 / -1;box-sizing:border-box;color-scheme:light dark;--x-table-row-bg:transparent;--x-table-row-hover-bg:rgba(0,0,0,0.03);--x-table-row-selected-bg:rgba(59,130,246,0.08);--x-table-row-selected-hover-bg:rgba(59,130,246,0.12);--x-table-row-focus-ring:var(--x-color-focus-ring,rgba(59,130,246,0.5));--x-table-row-transition-duration:var(--x-transition-duration,150ms);--x-table-row-disabled-opacity:0.45;--x-table-row-cursor:pointer;background:var(--x-table-row-bg);transition:background var(--x-table-row-transition-duration) ease;}@media (prefers-color-scheme:dark){:host{--x-table-row-hover-bg:rgba(255,255,255,0.04);--x-table-row-selected-bg:rgba(99,160,255,0.12);--x-table-row-selected-hover-bg:rgba(99,160,255,0.16);}}:host([data-selected]){background:var(--x-table-row-selected-bg);}:host([data-interactive]){cursor:var(--x-table-row-cursor);}:host([data-interactive]:hover){background:var(--x-table-row-hover-bg);}:host([data-interactive][data-selected]:hover){background:var(--x-table-row-selected-hover-bg);}:host([data-interactive]:focus){outline:none;}:host([data-interactive]:focus-visible){outline:2px solid var(--x-table-row-focus-ring);outline-offset:-2px;}:host([disabled]){opacity:var(--x-table-row-disabled-opacity);pointer-events:none;}slot{display:contents;}@media (prefers-reduced-motion:reduce){:host{transition:none !important;}}";
3
- b.appendChild(c);b.appendChild(d);a.__xTableRowRefs=new $APP.P(null,2,[$APP.bi,b,$APP.Kk,d],null)}},fw=function(a){a=new $APP.P(null,4,[$APP.vi,a.hasAttribute("selected"),$APP.W,a.hasAttribute("disabled"),$APP.Nk,a.hasAttribute("interactive"),dw,a.getAttribute("row-index")],null);var b=$APP.N(a);a=$APP.G(b,$APP.vi);var c=$APP.G(b,$APP.W),d=$APP.G(b,$APP.Nk);b=$APP.G(b,dw);return new $APP.P(null,4,[$APP.vi,$APP.I(a),$APP.W,$APP.I(c),$APP.Nk,$APP.I(d),ew,aw(b)],null)},gw=function(a){var b=fw(a);if($APP.O($APP.l(a,
4
- "__xTableRowModel"),b)){cw(a);var c=$APP.N(b),d=$APP.G(c,$APP.vi),e=$APP.G(c,$APP.W),g=$APP.G(c,$APP.Nk),h=$APP.G(c,ew);a.setAttribute("role","row");var k=$APP.N(c);var m=$APP.G(k,$APP.vi);k=$APP.G(k,$APP.Nk);m=$APP.r(m)?"true":$APP.r(k)?"false":null;$APP.r(m)?a.setAttribute("aria-selected",m):a.removeAttribute("aria-selected");$APP.r(e)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");h!=null?a.setAttribute("aria-rowindex",""+$APP.S.g(h)):a.removeAttribute("aria-rowindex");
5
- $APP.r(d)?a.setAttribute("data-selected",""):a.removeAttribute("data-selected");$APP.r(g)?a.setAttribute("data-interactive",""):a.removeAttribute("data-interactive");a.tabIndex=$APP.r(bw(c))?0:-1;a.__xTableRowModel=b}},hw=function(a){var b=$APP.l(a,"__xTableRowModel");var c=$APP.r(b)?b:fw(a);b=a.dispatchEvent;var d=CustomEvent,e=$APP.N(c);c=$APP.G(e,$APP.vi);var g=$APP.G(e,$APP.W);e=$APP.G(e,ew);b.call(a,new d("x-table-row-click",{detail:$APP.nh(new $APP.P(null,3,[$APP.aj,$APP.r(e)?e:0,$APP.zj,c,
6
- $APP.gj,g],null)),bubbles:!0,composed:!0,cancelable:!0}))},iw=function(a){function b(d){var e=d.key;if($APP.D.i(e,"Enter")||$APP.D.i(e," "))e=$APP.l(a,"__xTableRowModel"),e=$APP.r(e)?e:fw(a),$APP.r(bw(e))&&(d.preventDefault(),hw(a));return null}function c(){var d=$APP.l(a,"__xTableRowModel");d=$APP.r(d)?d:fw(a);$APP.r(bw(d))&&hw(a);return null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.n(a,"__xTableRowHandlers",{click:c,keydown:b})},jw=function(a){var b=$APP.l(a,"__xTableRowHandlers");
7
- if($APP.r(b)){var c=$APP.l(b,"click");b=$APP.l(b,"keydown");$APP.r(c)&&a.removeEventListener("click",c);$APP.r(b)&&a.removeEventListener("keydown",b)}a.__xTableRowHandlers=null},kw=function(a){Object.defineProperty(a,"selected",{get:function(){return this.hasAttribute("selected")},set:function(b){return $APP.r(b)?this.setAttribute("selected",""):this.removeAttribute("selected")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},
8
- set:function(b){return $APP.r(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"interactive",{get:function(){return this.hasAttribute("interactive")},set:function(b){return $APP.r(b)?this.setAttribute("interactive",""):this.removeAttribute("interactive")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rowIndex",{get:function(){return aw(this.getAttribute("row-index"))},set:function(b){b=parseInt(b,10);return $APP.t(isNaN(b))&&
9
- b>0?this.setAttribute("row-index",""+$APP.S.g(b)):this.removeAttribute("row-index")},enumerable:!0,configurable:!0})},mw=function(){var a=class extends HTMLElement{};a.observedAttributes=lw;a.prototype.connectedCallback=function(){cw(this);jw(this);iw(this);gw(this);var b=$APP.l(this,"__xTableRowModel");var c=$APP.r(b)?b:fw(this);b=this.dispatchEvent;var d=CustomEvent,e=$APP.N(c);c=$APP.G(e,$APP.vi);var g=$APP.G(e,$APP.W),h=$APP.G(e,$APP.Nk);e=$APP.G(e,ew);b.call(this,new d("x-table-row-connected",
10
- {detail:$APP.nh(new $APP.P(null,4,[$APP.aj,$APP.r(e)?e:0,$APP.zj,c,$APP.gj,g,$APP.Gi,h],null)),bubbles:!0,composed:!0,cancelable:!1}));return null};a.prototype.disconnectedCallback=function(){jw(this);document.dispatchEvent(new CustomEvent("x-table-row-disconnected",{detail:{},bubbles:!1,composed:!1,cancelable:!1}));return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&gw(this);return null};kw(a.prototype);return a},nw=function(){$APP.r(customElements.get("x-table-row"))||
11
- customElements.define("x-table-row",mw());return null},ew=new $APP.K(null,"row-index","row-index",-828710296),dw=new $APP.K(null,"row-index-raw","row-index-raw",1490649093);var lw=["selected","disabled","interactive","row-index"];$APP.Sd(["x-table-row-click",new $APP.P(null,2,[$APP.U,new $APP.P(null,3,[$APP.aj,$APP.V,$APP.zj,$APP.qj,$APP.gj,$APP.qj],null),$APP.ll,!0],null),"x-table-row-connected",new $APP.P(null,2,[$APP.U,new $APP.P(null,4,[$APP.aj,$APP.V,$APP.zj,$APP.qj,$APP.gj,$APP.qj,$APP.Gi,$APP.qj],null),$APP.ll,!1],null),"x-table-row-disconnected",new $APP.P(null,2,[$APP.U,$APP.Td,$APP.ll,!1],null)]);$APP.ka("baredom.exports.x_table_row.init",nw);export const init=nw;
2
+ var Zw=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.r(isNaN(a))&&a>0?Math.floor(a):null):null},$w=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.Wk);b=$APP.D(b,$APP.W);return $APP.n(a)?$APP.r(b):a},ax=function(a){if(!$APP.n($APP.k(a,"__xTableRowRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");c.textContent=":host{display:grid;grid-template-columns:subgrid;grid-column:1 / -1;box-sizing:border-box;color-scheme:light dark;--x-table-row-bg:transparent;--x-table-row-hover-bg:rgba(0,0,0,0.03);--x-table-row-selected-bg:rgba(59,130,246,0.08);--x-table-row-selected-hover-bg:rgba(59,130,246,0.12);--x-table-row-focus-ring:var(--x-color-focus-ring,rgba(59,130,246,0.5));--x-table-row-transition-duration:var(--x-transition-duration,150ms);--x-table-row-disabled-opacity:0.45;--x-table-row-cursor:pointer;background:var(--x-table-row-bg);transition:background var(--x-table-row-transition-duration) ease;}@media (prefers-color-scheme:dark){:host{--x-table-row-hover-bg:rgba(255,255,255,0.04);--x-table-row-selected-bg:rgba(99,160,255,0.12);--x-table-row-selected-hover-bg:rgba(99,160,255,0.16);}}:host([data-selected]){background:var(--x-table-row-selected-bg);}:host([data-interactive]){cursor:var(--x-table-row-cursor);}:host([data-interactive]:hover){background:var(--x-table-row-hover-bg);}:host([data-interactive][data-selected]:hover){background:var(--x-table-row-selected-hover-bg);}:host([data-interactive]:focus){outline:none;}:host([data-interactive]:focus-visible){outline:2px solid var(--x-table-row-focus-ring);outline-offset:-2px;}:host([disabled]){opacity:var(--x-table-row-disabled-opacity);pointer-events:none;}slot{display:contents;}@media (prefers-reduced-motion:reduce){:host{transition:none !important;}}";
3
+ b.appendChild(c);b.appendChild(d);a.__xTableRowRefs=new $APP.R(null,2,[$APP.ji,b,$APP.Tk,d],null)}},dx=function(a){a=new $APP.R(null,4,[$APP.Ei,a.hasAttribute("selected"),$APP.W,a.hasAttribute("disabled"),$APP.Wk,a.hasAttribute("interactive"),bx,a.getAttribute("row-index")],null);var b=$APP.M(a);a=$APP.D(b,$APP.Ei);var c=$APP.D(b,$APP.W),d=$APP.D(b,$APP.Wk);b=$APP.D(b,bx);return new $APP.R(null,4,[$APP.Ei,$APP.F(a),$APP.W,$APP.F(c),$APP.Wk,$APP.F(d),cx,Zw(b)],null)},ex=function(a){var b=dx(a);if($APP.N($APP.k(a,
4
+ "__xTableRowModel"),b)){ax(a);var c=$APP.M(b),d=$APP.D(c,$APP.Ei),e=$APP.D(c,$APP.W),g=$APP.D(c,$APP.Wk),h=$APP.D(c,cx);a.setAttribute("role","row");var l=$APP.M(c);var m=$APP.D(l,$APP.Ei);l=$APP.D(l,$APP.Wk);m=$APP.n(m)?"true":$APP.n(l)?"false":null;$APP.n(m)?a.setAttribute("aria-selected",m):a.removeAttribute("aria-selected");$APP.n(e)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");h!=null?a.setAttribute("aria-rowindex",""+$APP.T.g(h)):a.removeAttribute("aria-rowindex");
5
+ $APP.n(d)?a.setAttribute("data-selected",""):a.removeAttribute("data-selected");$APP.n(g)?a.setAttribute("data-interactive",""):a.removeAttribute("data-interactive");a.tabIndex=$APP.n($w(c))?0:-1;a.__xTableRowModel=b}},fx=function(a){var b=$APP.k(a,"__xTableRowModel");var c=$APP.n(b)?b:dx(a);b=a.dispatchEvent;var d=CustomEvent,e=$APP.M(c);c=$APP.D(e,$APP.Ei);var g=$APP.D(e,$APP.W);e=$APP.D(e,cx);b.call(a,new d("x-table-row-click",{detail:$APP.ph(new $APP.R(null,3,[$APP.gj,$APP.n(e)?e:0,$APP.Lj,c,
6
+ $APP.mj,g],null)),bubbles:!0,composed:!0,cancelable:!0}))},gx=function(a){function b(d){var e=d.key;if($APP.C.i(e,"Enter")||$APP.C.i(e," "))e=$APP.k(a,"__xTableRowModel"),e=$APP.n(e)?e:dx(a),$APP.n($w(e))&&(d.preventDefault(),fx(a));return null}function c(){var d=$APP.k(a,"__xTableRowModel");d=$APP.n(d)?d:dx(a);$APP.n($w(d))&&fx(a);return null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.ia(a,"__xTableRowHandlers",{click:c,keydown:b})},hx=function(a){var b=$APP.k(a,"__xTableRowHandlers");
7
+ if($APP.n(b)){var c=$APP.k(b,"click");b=$APP.k(b,"keydown");$APP.n(c)&&a.removeEventListener("click",c);$APP.n(b)&&a.removeEventListener("keydown",b)}a.__xTableRowHandlers=null},ix=function(a){Object.defineProperty(a,"selected",{get:function(){return this.hasAttribute("selected")},set:function(b){return $APP.n(b)?this.setAttribute("selected",""):this.removeAttribute("selected")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},
8
+ set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"interactive",{get:function(){return this.hasAttribute("interactive")},set:function(b){return $APP.n(b)?this.setAttribute("interactive",""):this.removeAttribute("interactive")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rowIndex",{get:function(){return Zw(this.getAttribute("row-index"))},set:function(b){b=parseInt(b,10);return $APP.r(isNaN(b))&&
9
+ b>0?this.setAttribute("row-index",""+$APP.T.g(b)):this.removeAttribute("row-index")},enumerable:!0,configurable:!0})},kx=function(){var a=class extends HTMLElement{};a.observedAttributes=jx;a.prototype.connectedCallback=function(){ax(this);hx(this);gx(this);ex(this);var b=$APP.k(this,"__xTableRowModel");var c=$APP.n(b)?b:dx(this);b=this.dispatchEvent;var d=CustomEvent,e=$APP.M(c);c=$APP.D(e,$APP.Ei);var g=$APP.D(e,$APP.W),h=$APP.D(e,$APP.Wk);e=$APP.D(e,cx);b.call(this,new d("x-table-row-connected",
10
+ {detail:$APP.ph(new $APP.R(null,4,[$APP.gj,$APP.n(e)?e:0,$APP.Lj,c,$APP.mj,g,$APP.Mi,h],null)),bubbles:!0,composed:!0,cancelable:!1}));return null};a.prototype.disconnectedCallback=function(){hx(this);document.dispatchEvent(new CustomEvent("x-table-row-disconnected",{detail:{},bubbles:!1,composed:!1,cancelable:!1}));return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&ex(this);return null};ix(a.prototype);return a},lx=function(){$APP.n(customElements.get("x-table-row"))||
11
+ customElements.define("x-table-row",kx());return null},cx=new $APP.K(null,"row-index","row-index",-828710296),bx=new $APP.K(null,"row-index-raw","row-index-raw",1490649093);var jx=["selected","disabled","interactive","row-index"];$APP.Pd(["x-table-row-click",new $APP.R(null,2,[$APP.yj,new $APP.R(null,3,[$APP.gj,$APP.V,$APP.Lj,$APP.Bj,$APP.mj,$APP.Bj],null),$APP.wl,!0],null),"x-table-row-connected",new $APP.R(null,2,[$APP.yj,new $APP.R(null,4,[$APP.gj,$APP.V,$APP.Lj,$APP.Bj,$APP.mj,$APP.Bj,$APP.Mi,$APP.Bj],null),$APP.wl,!1],null),"x-table-row-disconnected",new $APP.R(null,2,[$APP.yj,$APP.Qd,$APP.wl,!1],null)]);$APP.fa("baredom.exports.x_table_row.init",lx);export const init=lx;
package/dist/x-table.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Iz=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.t(isNaN(a))&&a>0?Math.floor(a):null):null},Kz=function(a){var b=$APP.l(a,"__xTableRefs");if($APP.r(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:grid;box-sizing:border-box;color-scheme:light dark;--x-table-border-color:var(--x-color-border,rgba(0,0,0,0.1));--x-table-border-radius:var(--x-radius-md,8px);--x-table-stripe-bg:rgba(0,0,0,0.025);--x-table-caption-color:var(--x-color-text,inherit);--x-table-caption-font-size:0.875rem;--x-table-caption-font-weight:600;--x-table-caption-padding:0 0 0.5rem;--x-table-compact-padding:0.25rem 0.5rem;}@media (prefers-color-scheme:dark){:host{--x-table-border-color:var(--x-color-border,rgba(255,255,255,0.1));--x-table-stripe-bg:rgba(255,255,255,0.03);}}:host([data-bordered]){border:1px solid var(--x-table-border-color);border-radius:var(--x-table-border-radius);overflow:hidden;}:host([data-full-width]){width:100%;}:host([data-compact]){--x-table-cell-padding:var(--x-table-compact-padding);}:host([data-striped]) ::slotted(x-table-row[data-stripe\x3d'even']){--x-table-row-bg:var(--x-table-stripe-bg);}[part\x3dcaption]{grid-column:1 / -1;color:var(--x-table-caption-color);font-size:var(--x-table-caption-font-size);font-weight:var(--x-table-caption-font-weight);padding:var(--x-table-caption-padding);box-sizing:border-box;}[part\x3dcaption][hidden]{display:none !important;}slot{display:contents;}";
3
- d.setAttribute("part","caption");d.setAttribute("hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xTableRefs=new $APP.P(null,3,[$APP.bi,b,Jz,d,$APP.Kk,e],null);return $APP.l(a,"__xTableRefs")},Wz=function(a){a=new $APP.P(null,8,[Lz,a.getAttribute("columns"),Mz,a.getAttribute("caption"),Nz,a.getAttribute("selectable"),$APP.ek,a.hasAttribute("striped"),Oz,a.hasAttribute("bordered"),Pz,a.hasAttribute("full-width"),Qz,a.hasAttribute("compact"),Rz,a.getAttribute("row-count")],null);var b=
4
- $APP.N(a),c=$APP.G(b,Lz),d=$APP.G(b,Mz),e=$APP.G(b,Nz);a=$APP.G(b,$APP.ek);var g=$APP.G(b,Oz),h=$APP.G(b,Pz),k=$APP.G(b,Qz);b=$APP.G(b,Rz);a:{if(typeof c==="string"&&(c=c.trim(),$APP.O(c,""))){var m=parseInt(c,10);c=$APP.t(isNaN(m))&&m>0&&$APP.D.i(c,""+$APP.S.g(m))?"repeat("+$APP.S.g(m)+",1fr)":c;break a}c=null}d=$APP.r(d)?d:"";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.J(Sz,e)?e:"none";return new $APP.P(null,8,[$APP.Tj,c,Tz,d,Uz,e,$APP.ek,$APP.I(a),Oz,$APP.I(g),Pz,$APP.I(h),Qz,$APP.I(k),
5
- Vz,Iz(b)],null)},Xz=function(a){a=a.querySelectorAll("x-table-row");for(var b=a.length,c=0;;)if(c<b){var d=a[c];$APP.hd(c+1,2)===0?d.setAttribute("data-stripe","even"):d.removeAttribute("data-stripe");c+=1}else break},Yz=function(a){var b=Wz(a);if($APP.O($APP.l(a,"__xTableModel"),b)){b=$APP.N(b);var c=$APP.G(b,$APP.Tj),d=$APP.G(b,Tz),e=$APP.G(b,Uz),g=$APP.G(b,$APP.ek),h=$APP.G(b,Oz),k=$APP.G(b,Pz),m=$APP.G(b,Qz),p=$APP.G(b,Vz),q=Kz(a);q=$APP.N(q);q=$APP.G(q,Jz);a.style.gridTemplateColumns=$APP.r(c)?
6
- c:"";a.setAttribute("role",$APP.D.i(e,"none")?"table":"grid");c=$APP.D.i(e,"multi")?"true":null;$APP.r(c)?a.setAttribute("aria-multiselectable",c):a.removeAttribute("aria-multiselectable");p!=null?a.setAttribute("aria-rowcount",""+$APP.S.g(p)):a.removeAttribute("aria-rowcount");$APP.O(d,"")?a.setAttribute("aria-label",d):a.removeAttribute("aria-label");$APP.O(d,"")?(q.textContent=d,q.removeAttribute("hidden")):(q.textContent="",q.setAttribute("hidden",""));$APP.r(g)?a.setAttribute("data-striped",
7
- ""):a.removeAttribute("data-striped");$APP.r(h)?a.setAttribute("data-bordered",""):a.removeAttribute("data-bordered");$APP.r(k)?a.setAttribute("data-full-width",""):a.removeAttribute("data-full-width");$APP.r(m)?a.setAttribute("data-compact",""):a.removeAttribute("data-compact");$APP.r(g)&&Xz(a);a.__xTableModel=b}},aA=function(a){function b(){var e=$APP.l(a,"__xTableModel");e=$APP.r(e)?e:Wz(a);$APP.r($APP.ek.g(e))&&Xz(a);return null}function c(e){var g=$APP.l(a,"__xTableModel");g=$APP.r(g)?g:Wz(a);
8
- var h=Uz.g(g);if($APP.O(h,"none"))if(g=e.target,e=$APP.l(e.detail,"rowIndex"),e=$APP.nh(new $APP.P(null,3,[$APP.aj,$APP.r(e)?e:0,$APP.zj,$APP.t(g.hasAttribute("selected")),Zz,h],null)),a.dispatchEvent(new CustomEvent("x-table-row-select",{detail:e,bubbles:!0,composed:!0,cancelable:!0})),$APP.D.i(h,"single")){e=g.hasAttribute("selected");h=a.querySelectorAll("x-table-row[selected]");for(var k=h.length,m=0;;)if(m<k)h[m].removeAttribute("selected"),m+=1;else break;$APP.r(e)||g.setAttribute("selected",
9
- "")}else $APP.D.i(h,"multi")&&($APP.r(g.hasAttribute("selected"))?g.removeAttribute("selected"):g.setAttribute("selected",""));return null}function d(e){var g=e.target;g=Array.from(g.parentElement.querySelectorAll("x-table-cell")).indexOf(g);var h=$APP.l(e.detail,"direction"),k=$APP.l(e.detail,"previousDirection");g>=0&&(e.stopPropagation(),e=$APP.nh(new $APP.P(null,3,[$z,g,$APP.Ni,h,$APP.zl,k],null)),a.dispatchEvent(new CustomEvent("x-table-sort",{detail:e,bubbles:!0,composed:!0,cancelable:!0})));
10
- return null}a.addEventListener("x-table-cell-sort",d);a.addEventListener("x-table-row-click",c);a.addEventListener("x-table-row-connected",b);$APP.n(a,"__xTableHandlers",{sort:d,"row-click":c,"row-conn":b})},bA=function(a){var b=$APP.l(a,"__xTableHandlers");if($APP.r(b)){var c=$APP.l(b,"sort"),d=$APP.l(b,"row-click");b=$APP.l(b,"row-conn");$APP.r(c)&&a.removeEventListener("x-table-cell-sort",c);$APP.r(d)&&a.removeEventListener("x-table-row-click",d);$APP.r(b)&&a.removeEventListener("x-table-row-connected",
11
- b)}a.__xTableHandlers=null},cA=function(a){Object.defineProperty(a,"columns",{get:function(){var b=this.getAttribute("columns");return $APP.r(b)?b:""},set:function(b){return $APP.r(b)?this.setAttribute("columns",""+$APP.S.g(b)):this.removeAttribute("columns")},enumerable:!0,configurable:!0});Object.defineProperty(a,"caption",{get:function(){var b=this.getAttribute("caption");return $APP.r(b)?b:""},set:function(b){return $APP.r(b)?this.setAttribute("caption",""+$APP.S.g(b)):this.removeAttribute("caption")},
12
- enumerable:!0,configurable:!0});Object.defineProperty(a,"selectable",{get:function(){var b=this.getAttribute("selectable");return $APP.r(b)?b:"none"},set:function(b){return $APP.r(b)?this.setAttribute("selectable",""+$APP.S.g(b)):this.removeAttribute("selectable")},enumerable:!0,configurable:!0});Object.defineProperty(a,"striped",{get:function(){return this.hasAttribute("striped")},set:function(b){return $APP.r(b)?this.setAttribute("striped",""):this.removeAttribute("striped")},enumerable:!0,configurable:!0});
13
- Object.defineProperty(a,"bordered",{get:function(){return this.hasAttribute("bordered")},set:function(b){return $APP.r(b)?this.setAttribute("bordered",""):this.removeAttribute("bordered")},enumerable:!0,configurable:!0});Object.defineProperty(a,"compact",{get:function(){return this.hasAttribute("compact")},set:function(b){return $APP.r(b)?this.setAttribute("compact",""):this.removeAttribute("compact")},enumerable:!0,configurable:!0});Object.defineProperty(a,"fullWidth",{get:function(){return this.hasAttribute("full-width")},
14
- set:function(b){return $APP.r(b)?this.setAttribute("full-width",""):this.removeAttribute("full-width")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rowCount",{get:function(){return Iz(this.getAttribute("row-count"))},set:function(b){return b==null?this.removeAttribute("row-count"):this.setAttribute("row-count",""+$APP.S.g(Math.floor(b)))},enumerable:!0,configurable:!0})},eA=function(){var a=class extends HTMLElement{};a.observedAttributes=dA;a.prototype.connectedCallback=function(){Kz(this);
15
- bA(this);aA(this);Yz(this);return null};a.prototype.disconnectedCallback=function(){bA(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&Yz(this);return null};cA(a.prototype);return a},fA=function(){$APP.r(customElements.get("x-table"))||customElements.define("x-table",eA());return null},Pz=new $APP.K(null,"full-width?","full-width?",1477288349),Rz=new $APP.K(null,"row-count-raw","row-count-raw",-1432781274),Nz=new $APP.K(null,"selectable-raw","selectable-raw",-1276314763),
16
- $z=new $APP.K(null,"colIndex","colIndex",171239635),Vz=new $APP.K(null,"row-count","row-count",1060167988),Mz=new $APP.K(null,"caption-raw","caption-raw",-375935083),Zz=new $APP.K(null,"selectionMode","selectionMode",1264773367),Lz=new $APP.K(null,"columns-raw","columns-raw",-2093994046),Uz=new $APP.K(null,"selectable","selectable",370587038),Tz=new $APP.K(null,"caption","caption",-855383902),Oz=new $APP.K(null,"bordered?","bordered?",562358476),Jz=new $APP.K(null,"caption-div","caption-div",1485363333),
17
- Qz=new $APP.K(null,"compact?","compact?",1216893298);var dA="columns caption selectable striped bordered full-width compact row-count".split(" ");$APP.Sd(["x-table-sort",new $APP.P(null,2,[$APP.U,new $APP.P(null,3,[$z,$APP.V,$APP.Ni,$APP.X,$APP.zl,$APP.X],null),$APP.ll,!0],null),"x-table-row-select",new $APP.P(null,2,[$APP.U,new $APP.P(null,3,[$APP.aj,$APP.V,$APP.zj,$APP.qj,Zz,$APP.X],null),$APP.ll,!0],null)]);var Sz=new $APP.R(null,new $APP.P(null,3,["none",null,"single",null,"multi",null],null),null);$APP.ka("baredom.exports.x_table.init",fA);export const init=fA;
2
+ var NB=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.r(isNaN(a))&&a>0?Math.floor(a):null):null},PB=function(a){var b=$APP.k(a,"__xTableRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:grid;box-sizing:border-box;color-scheme:light dark;--x-table-border-color:var(--x-color-border,rgba(0,0,0,0.1));--x-table-border-radius:var(--x-radius-md,8px);--x-table-stripe-bg:rgba(0,0,0,0.025);--x-table-caption-color:var(--x-color-text,inherit);--x-table-caption-font-size:0.875rem;--x-table-caption-font-weight:600;--x-table-caption-padding:0 0 0.5rem;--x-table-compact-padding:0.25rem 0.5rem;}@media (prefers-color-scheme:dark){:host{--x-table-border-color:var(--x-color-border,rgba(255,255,255,0.1));--x-table-stripe-bg:rgba(255,255,255,0.03);}}:host([data-bordered]){border:1px solid var(--x-table-border-color);border-radius:var(--x-table-border-radius);overflow:hidden;}:host([data-full-width]){width:100%;}:host([data-compact]){--x-table-cell-padding:var(--x-table-compact-padding);}:host([data-striped]) ::slotted(x-table-row[data-stripe\x3d'even']){--x-table-row-bg:var(--x-table-stripe-bg);}[part\x3dcaption]{grid-column:1 / -1;color:var(--x-table-caption-color);font-size:var(--x-table-caption-font-size);font-weight:var(--x-table-caption-font-weight);padding:var(--x-table-caption-padding);box-sizing:border-box;}[part\x3dcaption][hidden]{display:none !important;}slot{display:contents;}";
3
+ d.setAttribute("part","caption");d.setAttribute("hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xTableRefs=new $APP.R(null,3,[$APP.ji,b,OB,d,$APP.Tk,e],null);return $APP.k(a,"__xTableRefs")},aC=function(a){a=new $APP.R(null,8,[QB,a.getAttribute("columns"),RB,a.getAttribute("caption"),SB,a.getAttribute("selectable"),$APP.tk,a.hasAttribute("striped"),TB,a.hasAttribute("bordered"),UB,a.hasAttribute("full-width"),VB,a.hasAttribute("compact"),WB,a.getAttribute("row-count")],null);var b=
4
+ $APP.M(a),c=$APP.D(b,QB),d=$APP.D(b,RB),e=$APP.D(b,SB);a=$APP.D(b,$APP.tk);var g=$APP.D(b,TB),h=$APP.D(b,UB),l=$APP.D(b,VB);b=$APP.D(b,WB);a:{if(typeof c==="string"&&(c=c.trim(),$APP.N(c,""))){var m=parseInt(c,10);c=$APP.r(isNaN(m))&&m>0&&$APP.C.i(c,""+$APP.T.g(m))?"repeat("+$APP.T.g(m)+",1fr)":c;break a}c=null}d=$APP.n(d)?d:"";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.J(XB,e)?e:"none";return new $APP.R(null,8,[$APP.hk,c,YB,d,ZB,e,$APP.tk,$APP.F(a),TB,$APP.F(g),UB,$APP.F(h),VB,$APP.F(l),
5
+ $B,NB(b)],null)},bC=function(a){a=a.querySelectorAll("x-table-row");for(var b=a.length,c=0;;)if(c<b){var d=a[c];$APP.ed(c+1,2)===0?d.setAttribute("data-stripe","even"):d.removeAttribute("data-stripe");c+=1}else break},cC=function(a){var b=aC(a);if($APP.N($APP.k(a,"__xTableModel"),b)){b=$APP.M(b);var c=$APP.D(b,$APP.hk),d=$APP.D(b,YB),e=$APP.D(b,ZB),g=$APP.D(b,$APP.tk),h=$APP.D(b,TB),l=$APP.D(b,UB),m=$APP.D(b,VB),p=$APP.D(b,$B),q=PB(a);q=$APP.M(q);q=$APP.D(q,OB);a.style.gridTemplateColumns=$APP.n(c)?
6
+ c:"";a.setAttribute("role",$APP.C.i(e,"none")?"table":"grid");c=$APP.C.i(e,"multi")?"true":null;$APP.n(c)?a.setAttribute("aria-multiselectable",c):a.removeAttribute("aria-multiselectable");p!=null?a.setAttribute("aria-rowcount",""+$APP.T.g(p)):a.removeAttribute("aria-rowcount");$APP.N(d,"")?a.setAttribute("aria-label",d):a.removeAttribute("aria-label");$APP.N(d,"")?(q.textContent=d,q.removeAttribute("hidden")):(q.textContent="",q.setAttribute("hidden",""));$APP.n(g)?a.setAttribute("data-striped",
7
+ ""):a.removeAttribute("data-striped");$APP.n(h)?a.setAttribute("data-bordered",""):a.removeAttribute("data-bordered");$APP.n(l)?a.setAttribute("data-full-width",""):a.removeAttribute("data-full-width");$APP.n(m)?a.setAttribute("data-compact",""):a.removeAttribute("data-compact");$APP.n(g)&&bC(a);a.__xTableModel=b}},fC=function(a){function b(){var e=$APP.k(a,"__xTableModel");e=$APP.n(e)?e:aC(a);$APP.n($APP.tk.g(e))&&bC(a);return null}function c(e){var g=$APP.k(a,"__xTableModel");g=$APP.n(g)?g:aC(a);
8
+ var h=ZB.g(g);if($APP.N(h,"none"))if(g=e.target,e=$APP.k(e.detail,"rowIndex"),e=$APP.ph(new $APP.R(null,3,[$APP.gj,$APP.n(e)?e:0,$APP.Lj,$APP.r(g.hasAttribute("selected")),dC,h],null)),a.dispatchEvent(new CustomEvent("x-table-row-select",{detail:e,bubbles:!0,composed:!0,cancelable:!0})),$APP.C.i(h,"single")){e=g.hasAttribute("selected");h=a.querySelectorAll("x-table-row[selected]");for(var l=h.length,m=0;;)if(m<l)h[m].removeAttribute("selected"),m+=1;else break;$APP.n(e)||g.setAttribute("selected",
9
+ "")}else $APP.C.i(h,"multi")&&($APP.n(g.hasAttribute("selected"))?g.removeAttribute("selected"):g.setAttribute("selected",""));return null}function d(e){var g=e.target;g=Array.from(g.parentElement.querySelectorAll("x-table-cell")).indexOf(g);var h=$APP.k(e.detail,"direction"),l=$APP.k(e.detail,"previousDirection");g>=0&&(e.stopPropagation(),e=$APP.ph(new $APP.R(null,3,[eC,g,$APP.Ti,h,$APP.Rl,l],null)),a.dispatchEvent(new CustomEvent("x-table-sort",{detail:e,bubbles:!0,composed:!0,cancelable:!0})));
10
+ return null}a.addEventListener("x-table-cell-sort",d);a.addEventListener("x-table-row-click",c);a.addEventListener("x-table-row-connected",b);$APP.ia(a,"__xTableHandlers",{sort:d,"row-click":c,"row-conn":b})},gC=function(a){var b=$APP.k(a,"__xTableHandlers");if($APP.n(b)){var c=$APP.k(b,"sort"),d=$APP.k(b,"row-click");b=$APP.k(b,"row-conn");$APP.n(c)&&a.removeEventListener("x-table-cell-sort",c);$APP.n(d)&&a.removeEventListener("x-table-row-click",d);$APP.n(b)&&a.removeEventListener("x-table-row-connected",
11
+ b)}a.__xTableHandlers=null},hC=function(a){Object.defineProperty(a,"columns",{get:function(){var b=this.getAttribute("columns");return $APP.n(b)?b:""},set:function(b){return $APP.n(b)?this.setAttribute("columns",""+$APP.T.g(b)):this.removeAttribute("columns")},enumerable:!0,configurable:!0});Object.defineProperty(a,"caption",{get:function(){var b=this.getAttribute("caption");return $APP.n(b)?b:""},set:function(b){return $APP.n(b)?this.setAttribute("caption",""+$APP.T.g(b)):this.removeAttribute("caption")},
12
+ enumerable:!0,configurable:!0});Object.defineProperty(a,"selectable",{get:function(){var b=this.getAttribute("selectable");return $APP.n(b)?b:"none"},set:function(b){return $APP.n(b)?this.setAttribute("selectable",""+$APP.T.g(b)):this.removeAttribute("selectable")},enumerable:!0,configurable:!0});Object.defineProperty(a,"striped",{get:function(){return this.hasAttribute("striped")},set:function(b){return $APP.n(b)?this.setAttribute("striped",""):this.removeAttribute("striped")},enumerable:!0,configurable:!0});
13
+ Object.defineProperty(a,"bordered",{get:function(){return this.hasAttribute("bordered")},set:function(b){return $APP.n(b)?this.setAttribute("bordered",""):this.removeAttribute("bordered")},enumerable:!0,configurable:!0});Object.defineProperty(a,"compact",{get:function(){return this.hasAttribute("compact")},set:function(b){return $APP.n(b)?this.setAttribute("compact",""):this.removeAttribute("compact")},enumerable:!0,configurable:!0});Object.defineProperty(a,"fullWidth",{get:function(){return this.hasAttribute("full-width")},
14
+ set:function(b){return $APP.n(b)?this.setAttribute("full-width",""):this.removeAttribute("full-width")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rowCount",{get:function(){return NB(this.getAttribute("row-count"))},set:function(b){return b==null?this.removeAttribute("row-count"):this.setAttribute("row-count",""+$APP.T.g(Math.floor(b)))},enumerable:!0,configurable:!0})},jC=function(){var a=class extends HTMLElement{};a.observedAttributes=iC;a.prototype.connectedCallback=function(){PB(this);
15
+ gC(this);fC(this);cC(this);return null};a.prototype.disconnectedCallback=function(){gC(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&cC(this);return null};hC(a.prototype);return a},kC=function(){$APP.n(customElements.get("x-table"))||customElements.define("x-table",jC());return null},UB=new $APP.K(null,"full-width?","full-width?",1477288349),WB=new $APP.K(null,"row-count-raw","row-count-raw",-1432781274),SB=new $APP.K(null,"selectable-raw","selectable-raw",-1276314763),
16
+ eC=new $APP.K(null,"colIndex","colIndex",171239635),$B=new $APP.K(null,"row-count","row-count",1060167988),RB=new $APP.K(null,"caption-raw","caption-raw",-375935083),dC=new $APP.K(null,"selectionMode","selectionMode",1264773367),QB=new $APP.K(null,"columns-raw","columns-raw",-2093994046),ZB=new $APP.K(null,"selectable","selectable",370587038),YB=new $APP.K(null,"caption","caption",-855383902),TB=new $APP.K(null,"bordered?","bordered?",562358476),OB=new $APP.K(null,"caption-div","caption-div",1485363333),
17
+ VB=new $APP.K(null,"compact?","compact?",1216893298);var iC="columns caption selectable striped bordered full-width compact row-count".split(" ");$APP.Pd(["x-table-sort",new $APP.R(null,2,[$APP.yj,new $APP.R(null,3,[eC,$APP.V,$APP.Ti,$APP.X,$APP.Rl,$APP.X],null),$APP.wl,!0],null),"x-table-row-select",new $APP.R(null,2,[$APP.yj,new $APP.R(null,3,[$APP.gj,$APP.V,$APP.Lj,$APP.Bj,dC,$APP.X],null),$APP.wl,!0],null)]);var XB=new $APP.S(null,new $APP.R(null,3,["none",null,"single",null,"multi",null],null),null);$APP.fa("baredom.exports.x_table.init",kC);export const init=kC;
package/dist/x-tabs.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var DC=function(a){var b=$APP.N(a);a=$APP.G(b,$APP.ri);var c=$APP.G(b,$APP.yk),d=$APP.G(b,AC),e=$APP.G(b,$APP.T);b=$APP.G(b,$APP.Al);c=$APP.J(BC,c)?c:"horizontal";d=$APP.J(CC,d)?d:"auto";return new $APP.P(null,5,[$APP.ri,a,$APP.yk,c,AC,d,$APP.T,e,$APP.Al,$APP.I(b)],null)},EC=function(a){return $APP.l(a,"__x_tabs_initialized")===!0},FC=function(a){return new $APP.P(null,5,[$APP.ri,a.getAttribute("value"),$APP.yk,a.getAttribute("orientation"),AC,a.getAttribute("activation"),$APP.T,a.getAttribute("label"),
3
- $APP.Al,a.hasAttribute("loop")],null)},GC=function(a){return $APP.Be($APP.ge(function(b){return $APP.D.i("X-TAB",b.tagName)},$APP.wc(a.children)))},HC=function(a){return $APP.t(a.hasAttribute("disabled"))},IC=function(a){return a.getAttribute("value")},JC=function(a){return $APP.Wd(function(b){return HC(b)?b:null},a)},KC=function(a,b){var c=a.getAttribute("value");$APP.r($APP.r(b)?$APP.O(c,b):b)?a.setAttribute("value",b):(b=b==null||$APP.D.i(b,""),$APP.r(b?c:b)&&a.removeAttribute("value"))},LC=function(a,
4
- b){var c=a.hasAttribute("selected");$APP.r($APP.r(b)?$APP.t(c):b)?a.setAttribute("selected",""):(b=$APP.t(b),$APP.r(b?c:b)&&a.removeAttribute("selected"))},MC=function(a,b){var c=a.getAttribute("tabindex");$APP.O(c,b)&&a.setAttribute("tabindex",b)},NC=function(a,b){a=a.getAttribute("controls");$APP.r($APP.r(a)?$APP.O(a,""):a)&&(a=document.getElementById(a),$APP.r(a)&&($APP.r(b)?a.removeAttribute("hidden"):a.setAttribute("hidden","")))},OC=function(a){var b=GC(a),c=a.getAttribute("value"),d=$APP.ag($APP.$d(IC,
5
- b));$APP.r($APP.r(c)?$APP.J(d,c):c)||(c=JC(b),c=$APP.r(c)?IC(c):null);if($APP.r(c)){a:{d=$APP.u(b);for(var e=null,g=0,h=0;;)if(h<g){var k=e.G(null,h),m=$APP.D.i(IC(k),c);LC(k,m);m&&HC(k)?MC(k,"0"):MC(k,"-1");h+=1}else if(d=$APP.u(d))$APP.Pc(d)?(e=$APP.yb(d),d=$APP.zb(d),k=e,g=$APP.C(e),e=k):(k=$APP.v(d),e=$APP.D.i(IC(k),c),LC(k,e),e&&HC(k)?MC(k,"0"):MC(k,"-1"),d=$APP.z(d),e=null,g=0),h=0;else break a}a:for(b=$APP.u(b),d=null,g=e=0;;)if(g<e)k=d.G(null,g),NC(k,$APP.D.i(IC(k),c)),g+=1;else if(b=$APP.u(b))d=
6
- b,$APP.Pc(d)?(b=$APP.yb(d),e=$APP.zb(d),d=b,k=$APP.C(b),b=e,e=k):(k=$APP.v(d),NC(k,$APP.D.i(IC(k),c)),b=$APP.z(d),d=null,e=0),g=0;else break a;KC(a,c)}return c},PC=function(a,b){var c=a.getAttribute("value");return $APP.r($APP.r(b)?$APP.O(c,b):b)?(KC(a,b),OC(a),a.dispatchEvent(new CustomEvent("value-change",{detail:{value:$APP.r(b)?b:""},bubbles:!0,composed:!0}))):null},QC=function(a,b,c){b=$APP.C(b)-1;var d=a+1;return d<=b?d:$APP.r(c)?0:a},RC=function(a,b,c){var d=a-1;b=$APP.C(b)-1;return d>=0?d:
7
- $APP.r(c)?b:a},SC=function(a){var b=$APP.l(a,"__x_tabs_base"),c=DC(FC(a));$APP.r(b)&&(b.setAttribute("role","tablist"),b.setAttribute("aria-orientation",$APP.yk.g(c)),c=$APP.T.g(c),$APP.r($APP.r(c)?$APP.O(c,""):c)?b.setAttribute("aria-label",c):b.removeAttribute("aria-label"));return OC(a)},TC=function(a){var b=new MutationObserver(function(){return SC(a)});b.observe(a,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value","selected","disabled","controls"]});a.__x_tabs_observer=b},UC=function(a){function b(d){a:{var e=
8
- $APP.Be($APP.ge(HC,GC(a))),g=DC(FC(a)),h=$APP.yk.g(g);var k=AC.g(g);g=$APP.Al.g(g);var m=d.key,p=e.indexOf(document.activeElement);if(p>=0&&(h=$APP.D.i(h,"horizontal")&&$APP.D.i(m,"ArrowRight")?QC(p,e,g):$APP.D.i(h,"horizontal")&&$APP.D.i(m,"ArrowLeft")?RC(p,e,g):$APP.D.i(h,"vertical")&&$APP.D.i(m,"ArrowDown")?QC(p,e,g):$APP.D.i(h,"vertical")&&$APP.D.i(m,"ArrowUp")?RC(p,e,g):$APP.D.i(m,"Home")?0:$APP.D.i(m,"End")?$APP.C(e)-1:null,h!=null)){d.preventDefault();d=$APP.Cc(e,h,null);$APP.r(d)?d.focus():
9
- d=null;k=$APP.r(d)?$APP.D.i(k,"auto")?PC(a,IC(d)):null:null;break a}k=null}return k}function c(d){d.stopPropagation();return PC(a,d.detail.value)}a.addEventListener("tab-select",c);a.addEventListener("keydown",b);a.__x_tabs_on_tab_select=c;a.__x_tabs_on_keydown=b;TC(a)},VC=function(a){Object.defineProperty(a.prototype,"value",{get:function(){return this.getAttribute("value")},set:function(b){return $APP.r(b)?this.setAttribute("value",b):this.removeAttribute("value")},configurable:!0,enumerable:!0})},
10
- XC=function(){var a=class extends HTMLElement{};a.observedAttributes=WC;a.prototype.connectedCallback=function(){if(EC(this)){UC(this);var b=SC(this)}else{if(!EC(this)){b=this.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;}.base{display:flex;flex-direction:row;}.base[aria-orientation\x3d'vertical']{flex-direction:column;}::slotted(x-tab){margin-inline-end:var(--x-tabs-gap,8px);}:host([orientation\x3d'vertical']) ::slotted(x-tab){margin-inline-end:0;margin-block-end:var(--x-tabs-gap,8px);}";
11
- d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);this.__x_tabs_root=b;this.__x_tabs_base=d;this.__x_tabs_slot=e;UC(this);this.__x_tabs_initialized=!0}SC(this);b=this}return b};a.prototype.disconnectedCallback=function(){var b=$APP.l(this,"__x_tabs_on_tab_select");$APP.r(b)&&this.removeEventListener("tab-select",b);b=$APP.l(this,"__x_tabs_on_keydown");$APP.r(b)&&this.removeEventListener("keydown",b);b=$APP.l(this,"__x_tabs_observer");return $APP.r(b)?
12
- b.disconnect():null};a.prototype.attributeChangedCallback=function(){return EC(this)?SC(this):null};VC(a);return a},YC=function(){return $APP.r(customElements.get("x-tabs"))?null:customElements.define("x-tabs",XC())},AC=new $APP.K(null,"activation","activation",2128521072);var WC=["value","orientation","activation","label","loop"],BC=new $APP.R(null,new $APP.P(null,2,["vertical",null,"horizontal",null],null),null),CC=new $APP.R(null,new $APP.P(null,2,["auto",null,"manual",null],null),null);$APP.Sd(["value-change",new $APP.P(null,1,[$APP.U,new $APP.P(null,1,[$APP.ri,$APP.X],null)],null)]);$APP.ka("baredom.exports.x_tabs.init",YC);export const init=YC;
2
+ var LE=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.zi);var c=$APP.D(b,$APP.Gk),d=$APP.D(b,IE),e=$APP.D(b,$APP.U);b=$APP.D(b,$APP.Sl);c=$APP.J(JE,c)?c:"horizontal";d=$APP.J(KE,d)?d:"auto";return new $APP.R(null,5,[$APP.zi,a,$APP.Gk,c,IE,d,$APP.U,e,$APP.Sl,$APP.F(b)],null)},ME=function(a){return new $APP.R(null,5,[$APP.zi,a.getAttribute("value"),$APP.Gk,a.getAttribute("orientation"),IE,a.getAttribute("activation"),$APP.U,a.getAttribute("label"),$APP.Sl,a.hasAttribute("loop")],null)},NE=function(a){return $APP.ve($APP.ce(function(b){return $APP.C.i("X-TAB",
3
+ b.tagName)},$APP.tc(a.children)))},OE=function(a){return $APP.r(a.hasAttribute("disabled"))},PE=function(a){return a.getAttribute("value")},QE=function(a){return $APP.Td(function(b){return OE(b)?b:null},a)},RE=function(a,b){var c=a.getAttribute("value");$APP.n($APP.n(b)?$APP.N(c,b):b)?a.setAttribute("value",b):(b=b==null||$APP.C.i(b,""),$APP.n(b?c:b)&&a.removeAttribute("value"))},SE=function(a,b){var c=a.hasAttribute("selected");$APP.n($APP.n(b)?$APP.r(c):b)?a.setAttribute("selected",""):(b=$APP.r(b),
4
+ $APP.n(b?c:b)&&a.removeAttribute("selected"))},TE=function(a,b){var c=a.getAttribute("tabindex");$APP.N(c,b)&&a.setAttribute("tabindex",b)},UE=function(a,b){a=a.getAttribute("controls");$APP.n($APP.n(a)?$APP.N(a,""):a)&&(a=document.getElementById(a),$APP.n(a)&&($APP.n(b)?a.removeAttribute("hidden"):a.setAttribute("hidden","")))},VE=function(a){var b=NE(a),c=a.getAttribute("value"),d=$APP.Vf($APP.Xd(PE,b));$APP.n($APP.n(c)?$APP.J(d,c):c)||(c=QE(b),c=$APP.n(c)?PE(c):null);if($APP.n(c)){a:{d=$APP.t(b);
5
+ for(var e=null,g=0,h=0;;)if(h<g){var l=e.G(null,h),m=$APP.C.i(PE(l),c);SE(l,m);m&&OE(l)?TE(l,"0"):TE(l,"-1");h+=1}else if(d=$APP.t(d))$APP.Nc(d)?(e=$APP.xb(d),d=$APP.yb(d),l=e,g=$APP.z(e),e=l):(l=$APP.u(d),e=$APP.C.i(PE(l),c),SE(l,e),e&&OE(l)?TE(l,"0"):TE(l,"-1"),d=$APP.w(d),e=null,g=0),h=0;else break a}a:for(b=$APP.t(b),d=null,g=e=0;;)if(g<e)l=d.G(null,g),UE(l,$APP.C.i(PE(l),c)),g+=1;else if(b=$APP.t(b))d=b,$APP.Nc(d)?(b=$APP.xb(d),e=$APP.yb(d),d=b,l=$APP.z(b),b=e,e=l):(l=$APP.u(d),UE(l,$APP.C.i(PE(l),
6
+ c)),b=$APP.w(d),d=null,e=0),g=0;else break a;RE(a,c)}return c},WE=function(a,b){var c=a.getAttribute("value");return $APP.n($APP.n(b)?$APP.N(c,b):b)?(RE(a,b),VE(a),a.dispatchEvent(new CustomEvent("value-change",{detail:{value:$APP.n(b)?b:""},bubbles:!0,composed:!0}))):null},XE=function(a,b,c){b=$APP.z(b)-1;var d=a+1;return d<=b?d:$APP.n(c)?0:a},YE=function(a,b,c){var d=a-1;b=$APP.z(b)-1;return d>=0?d:$APP.n(c)?b:a},ZE=function(a){var b=$APP.k(a,"__x_tabs_base"),c=LE(ME(a));$APP.n(b)&&(b.setAttribute("role",
7
+ "tablist"),b.setAttribute("aria-orientation",$APP.Gk.g(c)),c=$APP.U.g(c),$APP.n($APP.n(c)?$APP.N(c,""):c)?b.setAttribute("aria-label",c):b.removeAttribute("aria-label"));return VE(a)},$E=function(a){var b=new MutationObserver(function(){return ZE(a)});b.observe(a,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value","selected","disabled","controls"]});a.__x_tabs_observer=b},aF=function(a){function b(d){a:{var e=$APP.ve($APP.ce(OE,NE(a))),g=LE(ME(a)),h=$APP.Gk.g(g);var l=IE.g(g);g=$APP.Sl.g(g);
8
+ var m=d.key,p=e.indexOf(document.activeElement);if(p>=0&&(h=$APP.C.i(h,"horizontal")&&$APP.C.i(m,"ArrowRight")?XE(p,e,g):$APP.C.i(h,"horizontal")&&$APP.C.i(m,"ArrowLeft")?YE(p,e,g):$APP.C.i(h,"vertical")&&$APP.C.i(m,"ArrowDown")?XE(p,e,g):$APP.C.i(h,"vertical")&&$APP.C.i(m,"ArrowUp")?YE(p,e,g):$APP.C.i(m,"Home")?0:$APP.C.i(m,"End")?$APP.z(e)-1:null,h!=null)){d.preventDefault();d=$APP.zc(e,h,null);$APP.n(d)?d.focus():d=null;l=$APP.n(d)?$APP.C.i(l,"auto")?WE(a,PE(d)):null:null;break a}l=null}return l}
9
+ function c(d){d.stopPropagation();return WE(a,d.detail.value)}a.addEventListener("tab-select",c);a.addEventListener("keydown",b);a.__x_tabs_on_tab_select=c;a.__x_tabs_on_keydown=b;$E(a)},bF=function(a){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})},dF=function(){var a=class extends HTMLElement{};a.observedAttributes=cF;a.prototype.connectedCallback=
10
+ function(){if($APP.Bg(this,"__x_tabs_initialized")){aF(this);var b=ZE(this)}else{if(!$APP.Bg(this,"__x_tabs_initialized")){b=this.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;}.base{display:flex;flex-direction:row;}.base[aria-orientation\x3d'vertical']{flex-direction:column;}::slotted(x-tab){margin-inline-end:var(--x-tabs-gap,8px);}:host([orientation\x3d'vertical']) ::slotted(x-tab){margin-inline-end:0;margin-block-end:var(--x-tabs-gap,8px);}";
11
+ d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);this.__x_tabs_root=b;this.__x_tabs_base=d;this.__x_tabs_slot=e;aF(this);this.__x_tabs_initialized=!0}ZE(this);b=this}return b};a.prototype.disconnectedCallback=function(){var b=$APP.k(this,"__x_tabs_on_tab_select");$APP.n(b)&&this.removeEventListener("tab-select",b);b=$APP.k(this,"__x_tabs_on_keydown");$APP.n(b)&&this.removeEventListener("keydown",b);b=$APP.k(this,"__x_tabs_observer");return $APP.n(b)?
12
+ b.disconnect():null};a.prototype.attributeChangedCallback=function(){return $APP.Bg(this,"__x_tabs_initialized")?ZE(this):null};bF(a);return a},eF=function(){return $APP.n(customElements.get("x-tabs"))?null:customElements.define("x-tabs",dF())},IE=new $APP.K(null,"activation","activation",2128521072);var cF=["value","orientation","activation","label","loop"],JE=new $APP.S(null,new $APP.R(null,2,["vertical",null,"horizontal",null],null),null),KE=new $APP.S(null,new $APP.R(null,2,["auto",null,"manual",null],null),null);$APP.Pd(["value-change",new $APP.R(null,1,[$APP.yj,new $APP.R(null,1,[$APP.zi,$APP.X],null)],null)]);$APP.fa("baredom.exports.x_tabs.init",eF);export const init=eF;
@@ -1,20 +1,20 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var BV=function(a){return typeof a==="string"?(a=parseInt(a,10),$APP.t(isNaN(a))&&a>0?a:null):null},CV=function(a,b,c){return a.setAttribute(b,c)},DV=function(a,b,c){return $APP.r(c)?a.setAttribute(b,""):a.removeAttribute(b)},EV=function(a,b,c){var d=a.hasAttribute("error");var e=a.getAttribute("error");e=$APP.r(e)?e:"";a=a.hasAttribute("required");var g=c.value;return $APP.r(d)?b.setValidity({customError:!0},e,c):$APP.r($APP.r(a)?$APP.D.i(g,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",
3
- c):b.setValidity({},"",c)},NV=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.r(b)){var c=$APP.l(b,"textarea"),d=$APP.l(b,"label"),e=$APP.l(b,"hint");b=$APP.l(b,"error");var g=$APP.Q([FV,$APP.Oh,$APP.Fk,$APP.ci,$APP.ti,GV,$APP.Sk,HV,$APP.sh,$APP.cj,$APP.wl,$APP.Nh,IV,$APP.ii],[a.getAttribute("resize"),a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.getAttribute("rows"),a.hasAttribute("disabled"),a.getAttribute("maxlength"),a.hasAttribute("required"),
4
- a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("minlength"),a.getAttribute("placeholder")]);var h=$APP.N(g),k=$APP.G(h,IV),m=$APP.G(h,$APP.ii),p=$APP.G(h,FV),q=$APP.G(h,$APP.Oh),w=$APP.G(h,$APP.Fk),x=$APP.G(h,$APP.ci),y=$APP.G(h,$APP.ti),A=$APP.G(h,GV);g=$APP.G(h,$APP.Sk);var B=$APP.G(h,HV),E=$APP.G(h,$APP.sh),H=$APP.G(h,$APP.cj),F=$APP.G(h,$APP.wl);h=$APP.G(h,$APP.Nh);var M=$APP.r(x)?x:"",Y=$APP.r(y)?y:"",ea=$APP.r(q)?q:"";E=$APP.I(E);H=$APP.I(H);
5
- m=$APP.r(m)?m:"";y=typeof y==="string"&&$APP.O(y,"")&&y!=null;w=$APP.r(w)?w:"";F=$APP.r(F)?F:"";k=BV(k);q=typeof q==="string"&&$APP.O(q,"")&&q!=null;x=typeof x==="string"&&$APP.O(x,"")&&x!=null;p=typeof p==="string"&&$APP.J(JV,p)?p:"vertical";A=BV(A);g=$APP.Q([$APP.Lh,$APP.Tl,$APP.sl,$APP.Sh,$APP.Si,$APP.ri,KV,$APP.Ik,$APP.dk,LV,$APP.al,MV,$APP.Ji,$APP.T,$APP.Zh,$APP.cl,$APP.W],[E,H,m,y,w,F,k,q,x,p,Y,BV(B),$APP.r(A)?A:3,ea,M,$APP.r(h)?h:"",$APP.I(g)]);B=$APP.dk.g(g);A=$APP.Sh.g(g);h=$APP.Ik.g(g);
6
- c.name=$APP.Si.g(g);c.placeholder=$APP.sl.g(g);c.disabled=$APP.W.g(g);c.readOnly=$APP.Tl.g(g);c.required=$APP.Lh.g(g);c.rows=$APP.Ji.g(g);c.autocomplete=$APP.cl.g(g);M=MV.g(g);$APP.r(M)?CV(c,"maxlength",""+$APP.S.g(M)):c.removeAttribute("maxlength");M=KV.g(g);$APP.r(M)?CV(c,"minlength",""+$APP.S.g(M)):c.removeAttribute("minlength");a.style.setProperty("--x-text-area-resize",LV.g(g));CV(c,"aria-required",$APP.r($APP.Lh.g(g))?"true":"false");c.setAttribute("aria-invalid",$APP.r(B)?"true":"false");M=
7
- $APP.r($APP.r(A)?B:A)?"hint error":$APP.r(A)?"hint":$APP.r(B)?"error":null;$APP.r(M)?c.setAttribute("aria-describedby",M):c.removeAttribute("aria-describedby");d.textContent=$APP.T.g(g);$APP.r(h)?d.classList.remove("label-hidden"):d.classList.add("label-hidden");e.textContent=$APP.al.g(g);$APP.r(A)?e.classList.remove("hint-hidden"):e.classList.add("hint-hidden");b.textContent=$APP.Zh.g(g);$APP.r(B)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");DV(a,"data-invalid",B);d=$APP.l(a,
8
- "__xTextAreaInternals");return $APP.r(d)?EV(a,d,c):null}return null},OV=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},PV=function(a){return function(){var b=$APP.l(a,"__xTextAreaRefs");if($APP.r(b)){b=$APP.l(b,"textarea");var c=b.value;var d=a.getAttribute("name");d=$APP.r(d)?d:"";var e=$APP.l(a,"__xTextAreaInternals");$APP.r(e)&&(e.setFormValue(c),EV(a,e,b));return OV(a,"x-text-area-input",{name:d,value:c})}return null}},QV=function(a){return function(){var b=
9
- $APP.l(a,"__xTextAreaRefs");if($APP.r(b)){b=$APP.l(b,"textarea");var c=b.value;var d=a.getAttribute("name");d=$APP.r(d)?d:"";var e=$APP.l(a,"__xTextAreaInternals");$APP.r(e)&&(e.setFormValue(c),EV(a,e,b));return OV(a,"x-text-area-change",{name:d,value:c})}return null}},RV=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.r(b)){var c=$APP.l(a,"__xTextAreaHandlers");if($APP.r(c)){b=$APP.l(b,"textarea");b.removeEventListener("input",$APP.l(c,"input"));b.removeEventListener("change",$APP.l(c,"change"));
10
- a.__xTextAreaHandlers=null;return}}return null},SV=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.r(d)?d:""},set:function(d){return d!=null&&$APP.O(d)?CV(this,c,""+$APP.S.g(d)):this.removeAttribute(c)}})},TV=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return DV(this,c,$APP.I(d))}})},UV=function(a,b,c,d){Object.defineProperty(a,b,{configurable:!0,
11
- enumerable:!0,get:function(){var e=BV(this.getAttribute(c));return $APP.r(e)?e:d},set:function(e){return e!=null&&$APP.O(e)&&e>0?CV(this,c,""+$APP.S.g(Math.floor(e))):this.removeAttribute(c)}})},VV=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xTextAreaRefs");if($APP.r(b))return $APP.l(b,"textarea").value;b=this.getAttribute("value");return $APP.r(b)?b:""},set:function(b){b=b!=null&&$APP.O(b)?""+$APP.S.g(b):"";this.setAttribute("value",
12
- b);var c=$APP.l(this,"__xTextAreaRefs");return $APP.r(c)?$APP.l(c,"textarea").value=b:null}})},XV=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return WV}});VV(b);SV(b,"name","name");SV(b,"placeholder","placeholder");SV(b,"autocomplete","autocomplete");TV(b,"disabled","disabled");TV(b,"readOnly","readonly");TV(b,"required","required");UV(b,"rows","rows",3);UV(b,"maxLength","maxlength",null);UV(b,"minLength",
13
- "minlength",null);b.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xTextAreaRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("label"),h=document.createElement("div"),k=document.createElement("textarea"),m=document.createElement("span"),p=document.createElement("span");d.textContent=":host{display:block;color-scheme:light dark;--x-text-area-label-color:#374151;--x-text-area-label-font-size:var(--x-font-size-sm,0.875rem);--x-text-area-bg:var(--x-color-surface,#ffffff);--x-text-area-color:#111827;--x-text-area-border:1px solid var(--x-color-border,#d1d5db);--x-text-area-border-radius:var(--x-radius-md,6px);--x-text-area-padding:0.5rem 0.75rem;--x-text-area-focus-ring-color:var(--x-color-primary,#2563eb);--x-text-area-error-color:var(--x-color-danger,#dc2626);--x-text-area-hint-color:var(--x-color-text-muted,#6b7280);--x-text-area-disabled-opacity:0.45;--x-text-area-min-height:5rem;--x-text-area-font-size:var(--x-font-size-base,1rem);--x-text-area-resize:vertical;}@media (prefers-color-scheme:dark){:host{--x-text-area-label-color:var(--x-color-border,#d1d5db);--x-text-area-bg:var(--x-color-surface,#1f2937);--x-text-area-color:#f9fafb;--x-text-area-border:1px solid var(--x-color-border,#4b5563);--x-text-area-focus-ring-color:var(--x-color-primary,#3b82f6);--x-text-area-error-color:#f87171;--x-text-area-hint-color:var(--x-color-text-muted,#9ca3af);}}[part\x3dfield]{display:flex;flex-direction:column;gap:0.25rem;}[part\x3dlabel]{display:block;font-size:var(--x-text-area-label-font-size);font-weight:500;color:var(--x-text-area-label-color);}.label-hidden{display:none;}[part\x3dtextarea-wrapper]{display:block;}[part\x3dtextarea]{display:block;width:100%;box-sizing:border-box;min-height:var(--x-text-area-min-height);padding:var(--x-text-area-padding);background:var(--x-text-area-bg);color:var(--x-text-area-color);border:var(--x-text-area-border);border-radius:var(--x-text-area-border-radius);font-size:var(--x-text-area-font-size);line-height:1.5;font-family:inherit;outline:none;resize:var(--x-text-area-resize);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dtextarea]:focus{border-color:var(--x-text-area-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dtextarea]{border-color:var(--x-text-area-error-color);}:host([data-invalid]) [part\x3dtextarea]:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-error-color) 20%,transparent);}[part\x3dtextarea]:disabled{opacity:var(--x-text-area-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:0.8125rem;color:var(--x-text-area-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:0.8125rem;color:var(--x-text-area-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dtextarea]{transition:none;}}";
14
- e.setAttribute("part","field");g.setAttribute("part","label");g.setAttribute("id","label");g.setAttribute("for","textarea");h.setAttribute("part","textarea-wrapper");k.setAttribute("part","textarea");k.setAttribute("id","textarea");k.setAttribute("aria-labelledby","label");m.setAttribute("part","hint");m.setAttribute("id","hint");m.setAttribute("aria-live","polite");p.setAttribute("part","error");p.setAttribute("id","error");p.setAttribute("role","alert");p.setAttribute("aria-live","assertive");h.appendChild(k);
15
- e.appendChild(g);e.appendChild(h);e.appendChild(m);e.appendChild(p);c.appendChild(d);c.appendChild(e);this.__xTextAreaRefs={field:e,label:g,textarea:k,hint:m,error:p};$APP.r(this.attachInternals)&&(this.__xTextAreaInternals=this.attachInternals())}RV(this);c=$APP.l(this,"__xTextAreaRefs");$APP.r(c)&&(c=$APP.l(c,"textarea"),d=this.getAttribute("value"),$APP.r(d)&&(c.value=d));c=$APP.l(this,"__xTextAreaInternals");$APP.r(c)&&(d=c.setFormValue,e=this.getAttribute("value"),d.call(c,$APP.r(e)?e:""));c=
16
- $APP.l(this,"__xTextAreaRefs");$APP.r(c)&&(c=$APP.l(c,"textarea"),d=PV(this),e=QV(this),c.addEventListener("input",d),c.addEventListener("change",e),this.__xTextAreaHandlers={input:d,change:e});return NV(this)};b.disconnectedCallback=function(){return RV(this)};b.attributeChangedCallback=function(c,d,e){$APP.D.i(c,"value")&&(c=$APP.l(this,"__xTextAreaRefs"),$APP.r(c)&&(c=$APP.l(c,"textarea"),$APP.O(c.value,e)&&(c.value=$APP.r(e)?e:"")));return NV(this)};b.formDisabledCallback=function(c){DV(this,
17
- "disabled",$APP.I(c));return NV(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.l(this,"__xTextAreaRefs");$APP.r(c)&&($APP.l(c,"textarea").value="");c=$APP.l(this,"__xTextAreaInternals");$APP.r(c)&&c.setFormValue("");return NV(this)};return a},YV=function(){return $APP.r(customElements.get("x-text-area"))?null:customElements.define("x-text-area",XV())},KV=new $APP.K(null,"minlength","minlength",259053545),IV=new $APP.K(null,"minlength-raw","minlength-raw",-1245403779),
18
- HV=new $APP.K(null,"maxlength-raw","maxlength-raw",-886656470),MV=new $APP.K(null,"maxlength","maxlength",-1163911985),FV=new $APP.K(null,"resize-raw","resize-raw",-287517888),GV=new $APP.K(null,"rows-raw","rows-raw",-1828357145),LV=new $APP.K(null,"resize","resize",297367086);var WV="label name value placeholder hint error disabled readonly required rows maxlength minlength autocomplete resize".split(" "),JV=new $APP.R(null,new $APP.P(null,4,["none",null,"vertical",null,"both",null,"horizontal",null],null),null);
19
- $APP.Q([$APP.gj,$APP.Si,$APP.ri,new $APP.K(null,"minLength","minLength",-1538722770),$APP.Ji,$APP.nl,new $APP.K(null,"maxLength","maxLength",-1633020073),$APP.cl,$APP.Kj],[new $APP.P(null,2,[$APP.Z,$APP.qj,$APP.Pj,"disabled"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"name"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"value"],null),new $APP.P(null,2,[$APP.Z,$APP.V,$APP.Pj,"minlength"],null),new $APP.P(null,2,[$APP.Z,$APP.V,$APP.Pj,"rows"],null),new $APP.P(null,2,[$APP.Z,$APP.qj,$APP.Pj,"readonly"],
20
- null),new $APP.P(null,2,[$APP.Z,$APP.V,$APP.Pj,"maxlength"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"autocomplete"],null),new $APP.P(null,2,[$APP.Z,$APP.qj,$APP.Pj,"required"],null)]);$APP.ka("baredom.exports.x_text_area.init",YV);export const init=YV;
2
+ var cZ=function(a){return typeof a==="string"?(a=parseInt(a,10),$APP.r(isNaN(a))&&a>0?a:null):null},dZ=function(a,b,c){return a.setAttribute(b,c)},eZ=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},fZ=function(a,b,c){var d=a.hasAttribute("error");var e=a.getAttribute("error");e=$APP.n(e)?e:"";a=a.hasAttribute("required");var g=c.value;return $APP.n(d)?b.setValidity({customError:!0},e,c):$APP.n($APP.n(a)?$APP.C.i(g,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",
3
+ c):b.setValidity({},"",c)},oZ=function(a){var b=$APP.k(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.k(b,"textarea"),d=$APP.k(b,"label"),e=$APP.k(b,"hint");b=$APP.k(b,"error");var g=$APP.xf([gZ,$APP.Wh,$APP.Ok,$APP.ki,$APP.Bi,hZ,$APP.al,iZ,$APP.uh,$APP.ij,$APP.Ol,$APP.Vh,jZ,$APP.qi],[a.getAttribute("resize"),a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.getAttribute("rows"),a.hasAttribute("disabled"),a.getAttribute("maxlength"),a.hasAttribute("required"),
4
+ a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("minlength"),a.getAttribute("placeholder")]);var h=$APP.M(g),l=$APP.D(h,jZ),m=$APP.D(h,$APP.qi),p=$APP.D(h,gZ),q=$APP.D(h,$APP.Wh),v=$APP.D(h,$APP.Ok),x=$APP.D(h,$APP.ki),y=$APP.D(h,$APP.Bi),A=$APP.D(h,hZ);g=$APP.D(h,$APP.al);var B=$APP.D(h,iZ),E=$APP.D(h,$APP.uh),H=$APP.D(h,$APP.ij),G=$APP.D(h,$APP.Ol);h=$APP.D(h,$APP.Vh);var I=$APP.n(x)?x:"",Q=$APP.n(y)?y:"",Y=$APP.n(q)?q:"";E=$APP.F(E);H=$APP.F(H);
5
+ m=$APP.n(m)?m:"";y=typeof y==="string"&&$APP.N(y,"")&&y!=null;v=$APP.n(v)?v:"";G=$APP.n(G)?G:"";l=cZ(l);q=typeof q==="string"&&$APP.N(q,"")&&q!=null;x=typeof x==="string"&&$APP.N(x,"")&&x!=null;p=typeof p==="string"&&$APP.J(kZ,p)?p:"vertical";A=cZ(A);g=$APP.xf([$APP.Th,$APP.lm,$APP.Kl,$APP.$h,$APP.Yi,$APP.zi,lZ,$APP.Rk,$APP.sk,mZ,$APP.kl,nZ,$APP.Pi,$APP.U,$APP.gi,$APP.ml,$APP.W],[E,H,m,y,v,G,l,q,x,p,Q,cZ(B),$APP.n(A)?A:3,Y,I,$APP.n(h)?h:"",$APP.F(g)]);B=$APP.sk.g(g);A=$APP.$h.g(g);h=$APP.Rk.g(g);
6
+ c.name=$APP.Yi.g(g);c.placeholder=$APP.Kl.g(g);c.disabled=$APP.W.g(g);c.readOnly=$APP.lm.g(g);c.required=$APP.Th.g(g);c.rows=$APP.Pi.g(g);c.autocomplete=$APP.ml.g(g);I=nZ.g(g);$APP.n(I)?dZ(c,"maxlength",""+$APP.T.g(I)):c.removeAttribute("maxlength");I=lZ.g(g);$APP.n(I)?dZ(c,"minlength",""+$APP.T.g(I)):c.removeAttribute("minlength");a.style.setProperty("--x-text-area-resize",mZ.g(g));dZ(c,"aria-required",$APP.n($APP.Th.g(g))?"true":"false");c.setAttribute("aria-invalid",$APP.n(B)?"true":"false");I=
7
+ $APP.n($APP.n(A)?B:A)?"hint error":$APP.n(A)?"hint":$APP.n(B)?"error":null;$APP.n(I)?c.setAttribute("aria-describedby",I):c.removeAttribute("aria-describedby");d.textContent=$APP.U.g(g);$APP.n(h)?d.classList.remove("label-hidden"):d.classList.add("label-hidden");e.textContent=$APP.kl.g(g);$APP.n(A)?e.classList.remove("hint-hidden"):e.classList.add("hint-hidden");b.textContent=$APP.gi.g(g);$APP.n(B)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");eZ(a,"data-invalid",B);d=$APP.k(a,
8
+ "__xTextAreaInternals");return $APP.n(d)?fZ(a,d,c):null}return null},pZ=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},qZ=function(a){return function(){var b=$APP.k(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.k(b,"textarea");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.k(a,"__xTextAreaInternals");$APP.n(e)&&(e.setFormValue(c),fZ(a,e,b));return pZ(a,"x-text-area-input",{name:d,value:c})}return null}},rZ=function(a){return function(){var b=
9
+ $APP.k(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.k(b,"textarea");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.k(a,"__xTextAreaInternals");$APP.n(e)&&(e.setFormValue(c),fZ(a,e,b));return pZ(a,"x-text-area-change",{name:d,value:c})}return null}},sZ=function(a){var b=$APP.k(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.k(a,"__xTextAreaHandlers");if($APP.n(c)){b=$APP.k(b,"textarea");b.removeEventListener("input",$APP.k(c,"input"));b.removeEventListener("change",$APP.k(c,"change"));
10
+ a.__xTextAreaHandlers=null;return}}return null},tZ=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){return d!=null&&$APP.N(d)?dZ(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},uZ=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return eZ(this,c,$APP.F(d))}})},vZ=function(a,b,c,d){Object.defineProperty(a,b,{configurable:!0,
11
+ enumerable:!0,get:function(){var e=cZ(this.getAttribute(c));return $APP.n(e)?e:d},set:function(e){return e!=null&&$APP.N(e)&&e>0?dZ(this,c,""+$APP.T.g(Math.floor(e))):this.removeAttribute(c)}})},wZ=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.k(this,"__xTextAreaRefs");if($APP.n(b))return $APP.k(b,"textarea").value;b=this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&$APP.N(b)?""+$APP.T.g(b):"";this.setAttribute("value",
12
+ b);var c=$APP.k(this,"__xTextAreaRefs");return $APP.n(c)?$APP.k(c,"textarea").value=b:null}})},yZ=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return xZ}});wZ(b);tZ(b,"name","name");tZ(b,"placeholder","placeholder");tZ(b,"autocomplete","autocomplete");uZ(b,"disabled","disabled");uZ(b,"readOnly","readonly");uZ(b,"required","required");vZ(b,"rows","rows",3);vZ(b,"maxLength","maxlength",null);vZ(b,"minLength",
13
+ "minlength",null);b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xTextAreaRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("label"),h=document.createElement("div"),l=document.createElement("textarea"),m=document.createElement("span"),p=document.createElement("span");d.textContent=":host{display:block;color-scheme:light dark;--x-text-area-label-color:#374151;--x-text-area-label-font-size:var(--x-font-size-sm,0.875rem);--x-text-area-bg:var(--x-color-surface,#ffffff);--x-text-area-color:#111827;--x-text-area-border:1px solid var(--x-color-border,#d1d5db);--x-text-area-border-radius:var(--x-radius-md,6px);--x-text-area-padding:0.5rem 0.75rem;--x-text-area-focus-ring-color:var(--x-color-primary,#2563eb);--x-text-area-error-color:var(--x-color-danger,#dc2626);--x-text-area-hint-color:var(--x-color-text-muted,#6b7280);--x-text-area-disabled-opacity:0.45;--x-text-area-min-height:5rem;--x-text-area-font-size:var(--x-font-size-base,1rem);--x-text-area-resize:vertical;}@media (prefers-color-scheme:dark){:host{--x-text-area-label-color:var(--x-color-border,#d1d5db);--x-text-area-bg:var(--x-color-surface,#1f2937);--x-text-area-color:#f9fafb;--x-text-area-border:1px solid var(--x-color-border,#4b5563);--x-text-area-focus-ring-color:var(--x-color-primary,#3b82f6);--x-text-area-error-color:#f87171;--x-text-area-hint-color:var(--x-color-text-muted,#9ca3af);}}[part\x3dfield]{display:flex;flex-direction:column;gap:0.25rem;}[part\x3dlabel]{display:block;font-size:var(--x-text-area-label-font-size);font-weight:500;color:var(--x-text-area-label-color);}.label-hidden{display:none;}[part\x3dtextarea-wrapper]{display:block;}[part\x3dtextarea]{display:block;width:100%;box-sizing:border-box;min-height:var(--x-text-area-min-height);padding:var(--x-text-area-padding);background:var(--x-text-area-bg);color:var(--x-text-area-color);border:var(--x-text-area-border);border-radius:var(--x-text-area-border-radius);font-size:var(--x-text-area-font-size);line-height:1.5;font-family:inherit;outline:none;resize:var(--x-text-area-resize);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dtextarea]:focus{border-color:var(--x-text-area-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dtextarea]{border-color:var(--x-text-area-error-color);}:host([data-invalid]) [part\x3dtextarea]:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-error-color) 20%,transparent);}[part\x3dtextarea]:disabled{opacity:var(--x-text-area-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:0.8125rem;color:var(--x-text-area-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:0.8125rem;color:var(--x-text-area-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dtextarea]{transition:none;}}";
14
+ e.setAttribute("part","field");g.setAttribute("part","label");g.setAttribute("id","label");g.setAttribute("for","textarea");h.setAttribute("part","textarea-wrapper");l.setAttribute("part","textarea");l.setAttribute("id","textarea");l.setAttribute("aria-labelledby","label");m.setAttribute("part","hint");m.setAttribute("id","hint");m.setAttribute("aria-live","polite");p.setAttribute("part","error");p.setAttribute("id","error");p.setAttribute("role","alert");p.setAttribute("aria-live","assertive");h.appendChild(l);
15
+ e.appendChild(g);e.appendChild(h);e.appendChild(m);e.appendChild(p);c.appendChild(d);c.appendChild(e);this.__xTextAreaRefs={field:e,label:g,textarea:l,hint:m,error:p};$APP.n(this.attachInternals)&&(this.__xTextAreaInternals=this.attachInternals())}sZ(this);c=$APP.k(this,"__xTextAreaRefs");$APP.n(c)&&(c=$APP.k(c,"textarea"),d=this.getAttribute("value"),$APP.n(d)&&(c.value=d));c=$APP.k(this,"__xTextAreaInternals");$APP.n(c)&&(d=c.setFormValue,e=this.getAttribute("value"),d.call(c,$APP.n(e)?e:""));c=
16
+ $APP.k(this,"__xTextAreaRefs");$APP.n(c)&&(c=$APP.k(c,"textarea"),d=qZ(this),e=rZ(this),c.addEventListener("input",d),c.addEventListener("change",e),this.__xTextAreaHandlers={input:d,change:e});return oZ(this)};b.disconnectedCallback=function(){return sZ(this)};b.attributeChangedCallback=function(c,d,e){$APP.C.i(c,"value")&&(c=$APP.k(this,"__xTextAreaRefs"),$APP.n(c)&&(c=$APP.k(c,"textarea"),$APP.N(c.value,e)&&(c.value=$APP.n(e)?e:"")));return oZ(this)};b.formDisabledCallback=function(c){eZ(this,
17
+ "disabled",$APP.F(c));return oZ(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.k(this,"__xTextAreaRefs");$APP.n(c)&&($APP.k(c,"textarea").value="");c=$APP.k(this,"__xTextAreaInternals");$APP.n(c)&&c.setFormValue("");return oZ(this)};return a},zZ=function(){return $APP.n(customElements.get("x-text-area"))?null:customElements.define("x-text-area",yZ())},lZ=new $APP.K(null,"minlength","minlength",259053545),jZ=new $APP.K(null,"minlength-raw","minlength-raw",-1245403779),
18
+ iZ=new $APP.K(null,"maxlength-raw","maxlength-raw",-886656470),nZ=new $APP.K(null,"maxlength","maxlength",-1163911985),gZ=new $APP.K(null,"resize-raw","resize-raw",-287517888),hZ=new $APP.K(null,"rows-raw","rows-raw",-1828357145),mZ=new $APP.K(null,"resize","resize",297367086);var xZ="label name value placeholder hint error disabled readonly required rows maxlength minlength autocomplete resize".split(" "),kZ=new $APP.S(null,new $APP.R(null,4,["none",null,"vertical",null,"both",null,"horizontal",null],null),null);
19
+ $APP.xf([$APP.mj,$APP.Yi,$APP.zi,new $APP.K(null,"minLength","minLength",-1538722770),$APP.Pi,$APP.yl,new $APP.K(null,"maxLength","maxLength",-1633020073),$APP.ml,$APP.Yj],[new $APP.R(null,2,[$APP.Z,$APP.Bj,$APP.dk,"disabled"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"name"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"value"],null),new $APP.R(null,2,[$APP.Z,$APP.V,$APP.dk,"minlength"],null),new $APP.R(null,2,[$APP.Z,$APP.V,$APP.dk,"rows"],null),new $APP.R(null,2,[$APP.Z,$APP.Bj,$APP.dk,
20
+ "readonly"],null),new $APP.R(null,2,[$APP.Z,$APP.V,$APP.dk,"maxlength"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"autocomplete"],null),new $APP.R(null,2,[$APP.Z,$APP.Bj,$APP.dk,"required"],null)]);$APP.fa("baredom.exports.x_text_area.init",zZ);export const init=zZ;
package/dist/x-theme.js CHANGED
@@ -1,25 +1,26 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var kA=function(a,b){var c=gA.g(hA),d=iA.g(hA),e=b.light,g=b.dark;b=$APP.Vf($APP.wc([c,$APP.r(e)?$APP.af.i($APP.Td,function(){return function m(k){return new $APP.ud(null,function(){for(;;){var p=$APP.u(k);if(p){if($APP.Pc(p)){var q=$APP.yb(p),w=$APP.C(q),x=$APP.xd(w);a:{for(var y=0;;)if(y<w){var A=$APP.Ac(q,y);x.add(new $APP.ve(null,2,5,$APP.we,[A,$APP.l(e,A)],null));y+=1}else{q=!0;break a}q=void 0}return q?$APP.Ad(x.ba(),m($APP.zb(p))):$APP.Ad(x.ba(),null)}x=$APP.v(p);return $APP.rd(new $APP.ve(null,
3
- 2,5,$APP.we,[x,$APP.l(e,x)],null),m($APP.Zb(p)))}return null}},null)}(Object.keys(e))}()):null]));d=$APP.Vf($APP.wc([d,$APP.r(g)?$APP.af.i($APP.Td,function(){return function m(k){return new $APP.ud(null,function(){for(;;){var p=$APP.u(k);if(p){if($APP.Pc(p)){var q=$APP.yb(p),w=$APP.C(q),x=$APP.xd(w);a:{for(var y=0;;)if(y<w){var A=$APP.Ac(q,y);x.add(new $APP.ve(null,2,5,$APP.we,[A,$APP.l(g,A)],null));y+=1}else{q=!0;break a}q=void 0}return q?$APP.Ad(x.ba(),m($APP.zb(p))):$APP.Ad(x.ba(),null)}x=$APP.v(p);
4
- return $APP.rd(new $APP.ve(null,2,5,$APP.we,[x,$APP.l(g,x)],null),m($APP.Zb(p)))}return null}},null)}(Object.keys(g))}()):null]));return $APP.n(jA,a,new $APP.P(null,2,[gA,b,iA,d],null))},lA=function(a){var b=[];a=$APP.u(a);for(var c=null,d=0,e=0;;)if(e<d){var g=c.G(null,e),h=$APP.Cc(g,0,null);g=$APP.Cc(g,1,null);b.push(""+$APP.S.g(h)+":"+$APP.S.g(g)+";");e+=1}else if(a=$APP.u(a))$APP.Pc(a)?(d=$APP.yb(a),a=$APP.zb(a),c=d,d=$APP.C(d)):(d=$APP.v(a),c=$APP.Cc(d,0,null),d=$APP.Cc(d,1,null),b.push(""+$APP.S.g(c)+
5
- ":"+$APP.S.g(d)+";"),a=$APP.z(a),c=null,d=0),e=0;else break;return b.join("")},oA=function(a){a=typeof a!=="string"||!$APP.J(mA,a)&&$APP.l(jA,a)==null?"default":a;var b=$APP.l(jA,a);$APP.r(b)||(a=$APP.G(nA,a),b=$APP.r(a)?a:hA);a=gA.g(b);b=iA.g(b);return":host{display:contents;"+$APP.S.g(lA(a))+"}@media(prefers-color-scheme:dark){:host{"+$APP.S.g(lA(b))+"}}"},pA=function(a){Object.defineProperty(a,"preset",{get:function(){return this.getAttribute("preset")},set:function(b){return b!=null?this.setAttribute("preset",
6
- ""+$APP.S.g(b)):this.removeAttribute("preset")},enumerable:!0,configurable:!0})},rA=function(){var a=class extends HTMLElement{};a.observedAttributes=qA;a.prototype.connectedCallback=function(){if($APP.r($APP.l(this,"__xThemeRefs")))var b=null;else{b=this.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("slot");c.textContent=oA(this.getAttribute("preset"));b.appendChild(c);b.appendChild(d);this.__xThemeRefs={style:c};b=void 0}return b};a.prototype.disconnectedCallback=
7
- function(){return null};a.prototype.attributeChangedCallback=function(){var b=$APP.l(this,"__xThemeRefs");return $APP.r(b)?b.style.textContent=oA(this.getAttribute("preset")):null};pA(a.prototype);return a},sA=function(a,b){return kA(a,b)},tA=function(){return $APP.r(customElements.get("x-theme"))?null:customElements.define("x-theme",rA())},gA=new $APP.K(null,"light","light",1918998747),iA=new $APP.K(null,"dark","dark",1818973999);var qA=["preset"],uA=$APP.Sd("--x-font-family;system-ui,-apple-system,sans-serif;--x-font-family-mono;ui-monospace,'SF Mono',monospace;--x-font-size-sm;0.875rem;--x-font-size-base;1rem".split(";")),vA=$APP.Sd("--x-radius-sm 0.375rem --x-radius-md 0.75rem --x-radius-lg 1rem --x-radius-full 9999px".split(" ")),wA=$APP.Sd(["--x-transition-duration","140ms","--x-transition-easing","cubic-bezier(0.2,0,0,1)"]),xA=$APP.Sd("--x-shadow-sm;0 1px 2px rgba(15,23,42,0.08);--x-shadow-md;0 4px 10px rgba(15,23,42,0.10),0 2px 4px rgba(15,23,42,0.06);--x-shadow-lg;0 10px 25px rgba(15,23,42,0.12),0 4px 10px rgba(15,23,42,0.08)".split(";")),
8
- yA=$APP.Sd("--x-shadow-sm;0 1px 2px rgba(0,0,0,0.35);--x-shadow-md;0 6px 14px rgba(0,0,0,0.35),0 2px 6px rgba(0,0,0,0.24);--x-shadow-lg;0 12px 30px rgba(0,0,0,0.40),0 4px 12px rgba(0,0,0,0.30)".split(";")),hA=new $APP.P(null,2,[gA,$APP.Vf($APP.wc([uA,vA,wA,xA,$APP.Q("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
9
- "#ffffff #64748b #16a34a #64748b #d97706 #1e40af #cbd5e1 #f8fafc #dc2626 #334155 #475569 #475569 #f1f5f9 #60a5fa #2563eb #f8fafc #0f172a #64748b #1d4ed8 #94a3b8".split(" "))])),iA,$APP.Vf($APP.wc([yA,$APP.Q("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
10
- "#111827 #94a3b8 #22c55e #94a3b8 #f59e0b #1d4ed8 #374151 #1f2937 #ef4444 #475569 #64748b #64748b #273449 #93c5fd #3b82f6 #0f172a #f1f5f9 #94a3b8 #2563eb #64748b".split(" "))]))],null),zA=new $APP.P(null,2,[gA,$APP.Vf($APP.wc([uA,vA,wA,xA,$APP.Q("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
11
- "#ffffff #5f7a7a #059669 #2dd4bf #d97706 #155e75 #99f6e4 #f0fdfa #e11d48 #115e59 #0f766e #14b8a6 #ccfbf1 #22d3ee #0891b2 #f0fdfa #134e4a #0d9488 #0e7490 #5eead4".split(" "))])),iA,$APP.Vf($APP.wc([yA,$APP.Q("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
12
- "#0c1a1f #5eead4 #34d399 #5eead4 #fbbf24 #0e7490 #164e63 #133e4a #fb7185 #0f766e #0d9488 #2dd4bf #164e5e #67e8f9 #06b6d4 #061216 #ecfdf5 #14b8a6 #0891b2 #2dd4bf".split(" "))]))],null),AA=new $APP.P(null,2,[gA,$APP.Vf($APP.wc([uA,vA,wA,xA,$APP.Q("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
13
- "#fffbeb #65753a #15803d #84cc16 #ca8a04 #14532d #d9d2b0 #fef9c3 #dc2626 #3f6212 #4d7c0f #65a30d #fef3c7 #4ade80 #15803d #fefce8 #1a2e05 #65a30d #166534 #a3e635".split(" "))])),iA,$APP.Vf($APP.wc([yA,$APP.Q("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
14
- "#1a1f12 #86efac #4ade80 #bef264 #fbbf24 #15803d #3a4a24 #2a3318 #f87171 #4d7c0f #65a30d #a3e635 #354020 #86efac #22c55e #111408 #f0fdf4 #84cc16 #16a34a #a3e635".split(" "))]))],null),BA=new $APP.P(null,2,[gA,$APP.Vf($APP.wc([uA,vA,wA,xA,$APP.Q("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
15
- "#ffffff #9a7b6b #16a34a #f97316 #ca8a04 #9a3412 #fed7aa #fff7ed #be123c #9f1239 #be123c #ea580c #ffedd5 #fb923c #ea580c #fffbf5 #431407 #e11d48 #c2410c #fb923c".split(" "))])),iA,$APP.Vf($APP.wc([yA,$APP.Q("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
16
- "#1c1210 #fdba74 #4ade80 #fb923c #fbbf24 #c2410c #4a2d1f #2a1c17 #fb7185 #e11d48 #f43f5e #f97316 #3d261d #fdba74 #f97316 #140d0a #fff7ed #fb7185 #ea580c #fdba74".split(" "))]))],null),CA=new $APP.P(null,2,[gA,$APP.Vf($APP.wc([uA,wA,$APP.Q("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-radius-sm --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-radius-full --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-radius-lg --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-font-family --x-radius-md --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
17
- "8px 8px 0 #000000;#ffffff;#555555;#00cc66;0;3px 3px 0 #000000;#333333;#ffcc00;#333333;#000000;0;#f5f5f5;#ff0000;#cc0044;#e6004c;0;#1a1a1a;#eeeeee;#ff3366;#000000;#ffffff;#000000;#ff3366;'Space Grotesk',system-ui,sans-serif;0;5px 5px 0 #000000;#1a1a1a;#555555".split(";"))])),iA,$APP.Q("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
18
- "8px 8px 0 #ffffff;#111111;#aaaaaa;#44ff88;3px 3px 0 #ffffff;#888888;#ffdd44;#cc0044;#ffffff;#1a1a1a;#ff4444;#cccccc;#e5e5e5;#666666;#222222;#ff3366;#ff3366;#000000;#ffffff;#ffffff;5px 5px 0 #ffffff;#e6004c;#aaaaaa".split(";"))],null),DA=new $APP.P(null,2,[gA,$APP.Vf($APP.wc([uA,vA,wA,$APP.Q("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
19
- "0 10px 30px rgba(139,92,246,0.15),0 4px 10px rgba(139,92,246,0.10);rgba(255,255,255,0.72);#7c7aad;#059669;0 1px 3px rgba(139,92,246,0.10);#0891b2;#d97706;#5b21b6;rgba(196,181,253,0.5);rgba(248,245,255,0.80);#e11d48;#be185d;#db2777;#0e7490;rgba(243,232,255,0.85);#a78bfa;#7c3aed;#faf5ff;#1e1b4b;#ec4899;0 4px 15px rgba(139,92,246,0.12),0 2px 4px rgba(139,92,246,0.08);#6d28d9;#06b6d4".split(";"))])),iA,$APP.Q("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
20
- "0 10px 30px rgba(139,92,246,0.30),0 4px 10px rgba(139,92,246,0.18);rgba(30,20,60,0.72);#a5b4fc;#34d399;0 1px 3px rgba(139,92,246,0.20);#06b6d4;#fbbf24;#7c3aed;rgba(139,92,246,0.3);rgba(45,30,80,0.78);#fb7185;#db2777;#ec4899;#0891b2;rgba(55,35,95,0.85);#c4b5fd;#a78bfa;#0f0720;#ede9fe;#f472b6;0 4px 15px rgba(139,92,246,0.25),0 2px 4px rgba(139,92,246,0.15);#8b5cf6;#22d3ee".split(";"))],null),EA=new $APP.P(null,2,[gA,$APP.Vf($APP.wc([vA,wA,$APP.Q("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-font-family-mono --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-font-family --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
21
- "0 10px 25px rgba(0,0,0,0.10),0 4px 10px rgba(0,0,0,0.06);#fafafa;#71717a;#22c55e;0 1px 2px rgba(0,0,0,0.06);#52525b;#eab308;#3f3f46;#d4d4d8;#f4f4f5;#ef4444;'JetBrains Mono',ui-monospace,monospace;#24c00a;#2ee00f;#3f3f46;#e4e4e7;#39ff14;#18181b;#ffffff;#18181b;#39ff14;'JetBrains Mono',ui-monospace,monospace;0 4px 10px rgba(0,0,0,0.08),0 2px 4px rgba(0,0,0,0.04);#27272a;#71717a".split(";"))])),iA,$APP.Q("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
22
- "0 10px 25px rgba(0,0,0,0.50),0 4px 10px rgba(0,0,0,0.35);#09090b;#71717a;#4ade80;0 1px 2px rgba(0,0,0,0.40);#71717a;#facc15;#14532d;#27272a;#18181b;#f87171;#a1a1aa;#d4d4d8;#52525b;#27272a;#39ff14;#15803d;#000000;#e4e4e7;#e4e4e7;0 4px 10px rgba(0,0,0,0.45),0 2px 4px rgba(0,0,0,0.30);#166534;#52525b".split(";"))],null),FA=new $APP.P(null,2,[gA,$APP.Vf($APP.wc([uA,vA,wA,xA,$APP.Q("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
23
- "#fefdfb #8b7355 #4d7c0f #c49250 #ca8a04 #78350f #d6c4a8 #fdf8f0 #dc2626 #713f12 #854d0e #b08040 #f5ebe0 #d97706 #b45309 #fdf8f0 #3b2417 #a16207 #92400e #d6a56a".split(" "))])),iA,$APP.Vf($APP.wc([yA,$APP.Q("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
24
- "#1e1c18 #9c9488 #84cc16 #8e847c #fbbf24 #8e4a38 #44403a #2a2822 #f87171 #8a7052 #a18360 #7a7068 #38352e #d4a574 #c2785a #14130f #e8e0d4 #b8976e #a8604a #7a7068".split(" "))]))],null),nA=new $APP.P(null,8,["default",hA,"ocean",zA,"forest",AA,"sunset",BA,"neo-brutalist",CA,"aurora",DA,"mono-ai",EA,"warm-mineral",FA],null),jA=Object.create(null),mA=new $APP.R(null,new $APP.P(null,8,["warm-mineral",null,"mono-ai",null,"ocean",null,"aurora",null,"sunset",null,"forest",null,"neo-brutalist",null,"default",
25
- null],null),null);$APP.ka("baredom.exports.x_theme.registerPreset",sA);$APP.ka("baredom.exports.x_theme.init",tA);export const init=tA;export const registerPreset=sA;
2
+ var pC=function(a,b){var c=lC.g(mC),d=nC.g(mC),e=b.light,g=b.dark;b=$APP.Pf($APP.tc([c,$APP.n(e)?$APP.Ue.i($APP.Qd,function(){return function m(l){return new $APP.qd(null,function(){for(;;){var p=$APP.t(l);if(p){if($APP.Nc(p)){var q=$APP.xb(p),v=$APP.z(q),x=$APP.td(v);a:{for(var y=0;;)if(y<v){var A=$APP.xc(q,y);x.add(new $APP.O(null,2,5,$APP.P,[A,$APP.k(e,A)],null));y+=1}else{q=!0;break a}q=void 0}return q?$APP.wd(x.aa(),m($APP.yb(p))):$APP.wd(x.aa(),null)}x=$APP.u(p);return $APP.nd(new $APP.O(null,
3
+ 2,5,$APP.P,[x,$APP.k(e,x)],null),m($APP.Yb(p)))}return null}},null)}(Object.keys(e))}()):null]));d=$APP.Pf($APP.tc([d,$APP.n(g)?$APP.Ue.i($APP.Qd,function(){return function m(l){return new $APP.qd(null,function(){for(;;){var p=$APP.t(l);if(p){if($APP.Nc(p)){var q=$APP.xb(p),v=$APP.z(q),x=$APP.td(v);a:{for(var y=0;;)if(y<v){var A=$APP.xc(q,y);x.add(new $APP.O(null,2,5,$APP.P,[A,$APP.k(g,A)],null));y+=1}else{q=!0;break a}q=void 0}return q?$APP.wd(x.aa(),m($APP.yb(p))):$APP.wd(x.aa(),null)}x=$APP.u(p);
4
+ return $APP.nd(new $APP.O(null,2,5,$APP.P,[x,$APP.k(g,x)],null),m($APP.Yb(p)))}return null}},null)}(Object.keys(g))}()):null]));return $APP.ia(oC,a,new $APP.R(null,2,[lC,b,nC,d],null))},qC=function(a){var b=[];a=$APP.t(a);for(var c=null,d=0,e=0;;)if(e<d){var g=c.G(null,e),h=$APP.zc(g,0,null);g=$APP.zc(g,1,null);b.push(""+$APP.T.g(h)+":"+$APP.T.g(g)+";");e+=1}else if(a=$APP.t(a))$APP.Nc(a)?(d=$APP.xb(a),a=$APP.yb(a),c=d,d=$APP.z(d)):(d=$APP.u(a),c=$APP.zc(d,0,null),d=$APP.zc(d,1,null),b.push(""+$APP.T.g(c)+
5
+ ":"+$APP.T.g(d)+";"),a=$APP.w(a),c=null,d=0),e=0;else break;return b.join("")},tC=function(a){a=typeof a!=="string"||!$APP.J(rC,a)&&$APP.k(oC,a)==null?"default":a;var b=$APP.k(oC,a);$APP.n(b)||(a=$APP.D(sC,a),b=$APP.n(a)?a:mC);a=lC.g(b);b=nC.g(b);return":host{display:contents;"+$APP.T.g(qC(a))+"}@media(prefers-color-scheme:dark){:host{"+$APP.T.g(qC(b))+"}}"},uC=function(a){Object.defineProperty(a,"preset",{get:function(){return this.getAttribute("preset")},set:function(b){return b!=null?this.setAttribute("preset",
6
+ ""+$APP.T.g(b)):this.removeAttribute("preset")},enumerable:!0,configurable:!0})},wC=function(){var a=class extends HTMLElement{};a.observedAttributes=vC;a.prototype.connectedCallback=function(){if($APP.n($APP.k(this,"__xThemeRefs")))var b=null;else{b=this.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("slot");c.textContent=tC(this.getAttribute("preset"));b.appendChild(c);b.appendChild(d);this.__xThemeRefs={style:c};b=void 0}return b};a.prototype.disconnectedCallback=
7
+ function(){return null};a.prototype.attributeChangedCallback=function(){var b=$APP.k(this,"__xThemeRefs");return $APP.n(b)?b.style.textContent=tC(this.getAttribute("preset")):null};uC(a.prototype);return a},xC=function(a,b){return pC(a,b)},yC=function(){return $APP.n(customElements.get("x-theme"))?null:customElements.define("x-theme",wC())},lC=new $APP.K(null,"light","light",1918998747),nC=new $APP.K(null,"dark","dark",1818973999);var vC=["preset"],zC=$APP.xf("--x-font-weight-semibold --x-font-size-base --x-font-size-lg --x-font-weight-medium --x-font-family-mono --x-font-size-sm --x-line-height-normal --x-font-family --x-font-size-xs --x-font-weight-normal".split(" "),"600;1rem;1.125rem;500;ui-monospace,'SF Mono',monospace;0.875rem;1.5;system-ui,-apple-system,sans-serif;0.75rem;400".split(";")),AC=$APP.Pd("--x-radius-sm 0.375rem --x-radius-md 0.75rem --x-radius-lg 1rem --x-radius-full 9999px --x-border-width 1px".split(" ")),
8
+ BC=$APP.Pd(["--x-transition-duration","140ms","--x-transition-easing","cubic-bezier(0.2,0,0,1)"]),CC=$APP.Pd("--x-space-xs 0.25rem --x-space-sm 0.5rem --x-space-md 0.75rem --x-space-lg 1rem --x-space-xl 1.5rem".split(" ")),DC=$APP.Pd("--x-z-dropdown 1000 --x-z-modal 1100 --x-z-toast 1200".split(" ")),EC=$APP.Pd(["--x-opacity-disabled","0.5","--x-opacity-placeholder","0.6"]),FC=$APP.Pd("--x-shadow-sm;0 1px 2px rgba(15,23,42,0.08);--x-shadow-md;0 4px 10px rgba(15,23,42,0.10),0 2px 4px rgba(15,23,42,0.06);--x-shadow-lg;0 10px 25px rgba(15,23,42,0.12),0 4px 10px rgba(15,23,42,0.08)".split(";")),
9
+ GC=$APP.Pd("--x-shadow-sm;0 1px 2px rgba(0,0,0,0.35);--x-shadow-md;0 6px 14px rgba(0,0,0,0.35),0 2px 6px rgba(0,0,0,0.24);--x-shadow-lg;0 12px 30px rgba(0,0,0,0.40),0 4px 12px rgba(0,0,0,0.30)".split(";")),mC=new $APP.R(null,2,[lC,$APP.Pf($APP.tc([zC,AC,BC,FC,CC,DC,EC,$APP.xf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
10
+ "#ffffff #64748b #16a34a #64748b #d97706 #1e40af #cbd5e1 #f8fafc #dc2626 #334155 #475569 #475569 #f1f5f9 #60a5fa #2563eb #f8fafc #0f172a #64748b #1d4ed8 #94a3b8".split(" "))])),nC,$APP.Pf($APP.tc([GC,$APP.xf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
11
+ "#111827 #94a3b8 #22c55e #94a3b8 #f59e0b #1d4ed8 #374151 #1f2937 #ef4444 #475569 #64748b #64748b #273449 #93c5fd #3b82f6 #0f172a #f1f5f9 #94a3b8 #2563eb #64748b".split(" "))]))],null),HC=new $APP.R(null,2,[lC,$APP.Pf($APP.tc([zC,AC,BC,FC,CC,DC,EC,$APP.xf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
12
+ "#ffffff #5f7a7a #059669 #2dd4bf #d97706 #155e75 #99f6e4 #f0fdfa #e11d48 #115e59 #0f766e #14b8a6 #ccfbf1 #22d3ee #0891b2 #f0fdfa #134e4a #0d9488 #0e7490 #5eead4".split(" "))])),nC,$APP.Pf($APP.tc([GC,$APP.xf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
13
+ "#0c1a1f #5eead4 #34d399 #5eead4 #fbbf24 #0e7490 #164e63 #133e4a #fb7185 #0f766e #0d9488 #2dd4bf #164e5e #67e8f9 #06b6d4 #061216 #ecfdf5 #14b8a6 #0891b2 #2dd4bf".split(" "))]))],null),IC=new $APP.R(null,2,[lC,$APP.Pf($APP.tc([zC,AC,BC,FC,CC,DC,EC,$APP.xf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
14
+ "#fffbeb #65753a #15803d #84cc16 #ca8a04 #14532d #d9d2b0 #fef9c3 #dc2626 #3f6212 #4d7c0f #65a30d #fef3c7 #4ade80 #15803d #fefce8 #1a2e05 #65a30d #166534 #a3e635".split(" "))])),nC,$APP.Pf($APP.tc([GC,$APP.xf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
15
+ "#1a1f12 #86efac #4ade80 #bef264 #fbbf24 #15803d #3a4a24 #2a3318 #f87171 #4d7c0f #65a30d #a3e635 #354020 #86efac #22c55e #111408 #f0fdf4 #84cc16 #16a34a #a3e635".split(" "))]))],null),JC=new $APP.R(null,2,[lC,$APP.Pf($APP.tc([zC,AC,BC,FC,CC,DC,EC,$APP.xf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
16
+ "#ffffff #9a7b6b #16a34a #f97316 #ca8a04 #9a3412 #fed7aa #fff7ed #be123c #9f1239 #be123c #ea580c #ffedd5 #fb923c #ea580c #fffbf5 #431407 #e11d48 #c2410c #fb923c".split(" "))])),nC,$APP.Pf($APP.tc([GC,$APP.xf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
17
+ "#1c1210 #fdba74 #4ade80 #fb923c #fbbf24 #c2410c #4a2d1f #2a1c17 #fb7185 #e11d48 #f43f5e #f97316 #3d261d #fdba74 #f97316 #140d0a #fff7ed #fb7185 #ea580c #fdba74".split(" "))]))],null),KC=new $APP.R(null,2,[lC,$APP.Pf($APP.tc([zC,BC,CC,DC,EC,$APP.xf("--x-shadow-lg --x-color-surface --x-font-weight-semibold --x-color-text-muted --x-color-success --x-radius-sm --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-border-width --x-radius-full --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-radius-lg --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-font-family --x-radius-md --x-shadow-md --x-color-primary-hover --x-color-tertiary --x-space-md".split(" "),
18
+ "8px 8px 0 #000000;#ffffff;700;#555555;#00cc66;0;3px 3px 0 #000000;#333333;#ffcc00;#333333;#000000;2px;0;#f5f5f5;#ff0000;#cc0044;#e6004c;0;#1a1a1a;#eeeeee;#ff3366;#000000;#ffffff;#000000;#ff3366;'Space Grotesk',system-ui,sans-serif;0;5px 5px 0 #000000;#1a1a1a;#555555;1rem".split(";"))])),nC,$APP.xf("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
19
+ "8px 8px 0 #ffffff;#111111;#aaaaaa;#44ff88;3px 3px 0 #ffffff;#888888;#ffdd44;#cc0044;#ffffff;#1a1a1a;#ff4444;#cccccc;#e5e5e5;#666666;#222222;#ff3366;#ff3366;#000000;#ffffff;#ffffff;5px 5px 0 #ffffff;#e6004c;#aaaaaa".split(";"))],null),LC=new $APP.R(null,2,[lC,$APP.Pf($APP.tc([zC,AC,BC,CC,DC,EC,$APP.xf("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-opacity-disabled --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
20
+ "0 10px 30px rgba(139,92,246,0.15),0 4px 10px rgba(139,92,246,0.10);rgba(255,255,255,0.72);#7c7aad;#059669;0 1px 3px rgba(139,92,246,0.10);#0891b2;0.45;#d97706;#5b21b6;rgba(196,181,253,0.5);rgba(248,245,255,0.80);#e11d48;#be185d;#db2777;#0e7490;rgba(243,232,255,0.85);#a78bfa;#7c3aed;#faf5ff;#1e1b4b;#ec4899;0 4px 15px rgba(139,92,246,0.12),0 2px 4px rgba(139,92,246,0.08);#6d28d9;#06b6d4".split(";"))])),nC,$APP.xf("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
21
+ "0 10px 30px rgba(139,92,246,0.30),0 4px 10px rgba(139,92,246,0.18);rgba(30,20,60,0.72);#a5b4fc;#34d399;0 1px 3px rgba(139,92,246,0.20);#06b6d4;#fbbf24;#7c3aed;rgba(139,92,246,0.3);rgba(45,30,80,0.78);#fb7185;#db2777;#ec4899;#0891b2;rgba(55,35,95,0.85);#c4b5fd;#a78bfa;#0f0720;#ede9fe;#f472b6;0 4px 15px rgba(139,92,246,0.25),0 2px 4px rgba(139,92,246,0.15);#8b5cf6;#22d3ee".split(";"))],null),MC=new $APP.R(null,2,[lC,$APP.Pf($APP.tc([AC,BC,CC,DC,EC,$APP.xf("--x-shadow-lg --x-color-surface --x-font-weight-semibold --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-font-size-base --x-color-warning --x-color-primary-active --x-font-size-lg --x-color-border --x-font-weight-medium --x-color-surface-hover --x-color-danger --x-font-family-mono --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-font-size-sm --x-color-primary --x-color-bg --x-line-height-normal --x-color-text --x-color-secondary --x-font-family --x-font-size-xs --x-font-weight-normal --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
22
+ "0 10px 25px rgba(0,0,0,0.10),0 4px 10px rgba(0,0,0,0.06);#fafafa;600;#71717a;#22c55e;0 1px 2px rgba(0,0,0,0.06);#52525b;1rem;#eab308;#3f3f46;1.125rem;#d4d4d8;500;#f4f4f5;#ef4444;'JetBrains Mono',ui-monospace,monospace;#24c00a;#2ee00f;#3f3f46;#e4e4e7;#39ff14;0.875rem;#18181b;#ffffff;1.4;#18181b;#39ff14;'JetBrains Mono',ui-monospace,monospace;0.75rem;400;0 4px 10px rgba(0,0,0,0.08),0 2px 4px rgba(0,0,0,0.04);#27272a;#71717a".split(";"))])),nC,$APP.xf("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
23
+ "0 10px 25px rgba(0,0,0,0.50),0 4px 10px rgba(0,0,0,0.35);#09090b;#71717a;#4ade80;0 1px 2px rgba(0,0,0,0.40);#71717a;#facc15;#14532d;#27272a;#18181b;#f87171;#a1a1aa;#d4d4d8;#52525b;#27272a;#39ff14;#15803d;#000000;#e4e4e7;#e4e4e7;0 4px 10px rgba(0,0,0,0.45),0 2px 4px rgba(0,0,0,0.30);#166534;#52525b".split(";"))],null),NC=new $APP.R(null,2,[lC,$APP.Pf($APP.tc([zC,AC,BC,FC,CC,DC,EC,$APP.xf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
24
+ "#fefdfb #8b7355 #4d7c0f #c49250 #ca8a04 #78350f #d6c4a8 #fdf8f0 #dc2626 #713f12 #854d0e #b08040 #f5ebe0 #d97706 #b45309 #fdf8f0 #3b2417 #a16207 #92400e #d6a56a".split(" "))])),nC,$APP.Pf($APP.tc([GC,$APP.xf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
25
+ "#1e1c18 #9c9488 #84cc16 #8e847c #fbbf24 #8e4a38 #44403a #2a2822 #f87171 #8a7052 #a18360 #7a7068 #38352e #d4a574 #c2785a #14130f #e8e0d4 #b8976e #a8604a #7a7068".split(" "))]))],null),sC=new $APP.R(null,8,["default",mC,"ocean",HC,"forest",IC,"sunset",JC,"neo-brutalist",KC,"aurora",LC,"mono-ai",MC,"warm-mineral",NC],null),oC=Object.create(null),rC=new $APP.S(null,new $APP.R(null,8,["warm-mineral",null,"mono-ai",null,"ocean",null,"aurora",null,"sunset",null,"forest",null,"neo-brutalist",null,"default",
26
+ null],null),null);$APP.fa("baredom.exports.x_theme.registerPreset",xC);$APP.fa("baredom.exports.x_theme.init",yC);export const init=yC;export const registerPreset=xC;