@vanelsas/baredom 2.0.1 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/CHANGELOG.md +39 -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,25 +1,25 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var rm=function(a){a=$APP.G(qm,typeof a==="string"?a.toLowerCase():null);return $APP.r(a)?a:$APP.Ih},tm=function(a){a=$APP.G(sm,a);return $APP.r(a)?a:"pending"},wm=function(a){a=$APP.G(um,typeof a==="string"?a.toLowerCase():null);return $APP.r(a)?a:vm},xm=function(a){return typeof a==="string"?(a=a.trim(),$APP.O(a,"")&&$APP.O(a.toLowerCase(),"none")?a:null):null},ym=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.t(isNaN(a))&&a>=0?a:null):null},Am=function(a,
3
- b){a=$APP.G(zm,typeof a==="string"?a.toLowerCase():null);$APP.r(a)?b=a:(b=$APP.G(zm,typeof b==="string"?b.toLowerCase():null),b=$APP.r(b)?b:$APP.ml);return b},Bm=function(a,b,c){a=tm(a);c=c!=null?"Step "+$APP.S.g(c+1)+": ":null;return""+$APP.S.g(c)+$APP.S.g(typeof b==="string"&&$APP.O(b,"")?""+$APP.S.g(b)+" ":null)+"("+$APP.S.g(a)+")"},Pm=function(a){var b=$APP.N(a),c=$APP.G(b,Cm);a=$APP.G(b,$APP.W);var d=$APP.G(b,$APP.nj),e=$APP.G(b,$APP.Oh),g=$APP.G(b,Dm),h=$APP.G(b,Em),k=$APP.G(b,Fm),m=$APP.G(b,
4
- $APP.mi),p=$APP.G(b,Gm),q=$APP.G(b,$APP.yh),w=$APP.G(b,Hm);b=$APP.G(b,$APP.Vi);var x=rm(m),y=xm(b),A=$APP.r($APP.r(q)?y==null:q)?$APP.Rl:y!=null?$APP.Jk:$APP.Kh;m=function(){var B=A instanceof $APP.K?A.ra:null;switch(B){case "default":return B=$APP.G(Im,x),$APP.r(B)?B:$APP.G(Im,$APP.Ih);case "custom":return y;case "hidden":return null;default:throw Error("No matching clause: "+$APP.S.g(B));}}();c=ym(c);d=Am(k,d);e=$APP.r(e)?e:"";w=$APP.r(w)?w:"";return $APP.Q([Jm,Km,Lm,Dm,Gm,$APP.Xj,Mm,$APP.Ij,$APP.T,
5
- Nm,$APP.Bj,$APP.W,Om],[wm(h),c,m,$APP.I(g),$APP.I(p),$APP.D.i(A,$APP.Jk)?y:null,w,x,e,Bm(x,e,c),A,$APP.I(a),d])},Qm=function(a){a=$APP.N(a);a=$APP.G(a,$APP.W);return $APP.t(a)},an=function(a){var b=$APP.l(a,"__xTimelineItemRefs");if($APP.r(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("slot"),h=document.createElement("span"),k=document.createElement("div"),m=document.createElement("div"),
6
- p=document.createElement("slot"),q=document.createElement("span"),w=document.createElement("div"),x=document.createElement("div"),y=document.createElement("div"),A=document.createElement("div"),B=document.createElement("slot"),E=document.createElement("div"),H=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-timeline-item-marker-size:2rem;--x-timeline-item-marker-bg:var(--x-color-border,rgba(0,0,0,0.06));--x-timeline-item-marker-color:var(--x-color-text-muted,rgba(0,0,0,0.45));--x-timeline-item-connector-color:var(--x-color-border,rgba(0,0,0,0.12));--x-timeline-item-connector-width:2px;--x-timeline-item-gap:0.75rem;--x-timeline-item-label-width:6rem;--x-timeline-item-label-color:var(--x-color-text-muted,rgba(0,0,0,0.5));--x-timeline-item-label-font-size:var(--x-font-size-sm,0.8125rem);--x-timeline-item-title-font-size:0.9375rem;--x-timeline-item-stripe-bg:var(--x-color-surface,rgba(0,0,0,0.025));--x-timeline-item-motion:var(--x-transition-duration,150ms);--x-timeline-item-motion-ease:var(--x-transition-easing,cubic-bezier(0.2,0,0,1));--x-timeline-item-enter-duration:160ms;--x-timeline-item-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-timeline-item-marker-bg:var(--x-color-border,rgba(255,255,255,0.10));--x-timeline-item-marker-color:var(--x-color-text-muted,rgba(255,255,255,0.55));--x-timeline-item-connector-color:var(--x-color-border,rgba(255,255,255,0.15));--x-timeline-item-label-color:var(--x-color-text-muted,rgba(255,255,255,0.5));--x-timeline-item-stripe-bg:var(--x-color-surface,rgba(255,255,255,0.03));}}:host([data-status\x3d'active']){--x-timeline-item-marker-bg:var(--x-color-primary,rgba(0,102,204,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-primary,rgba(0,102,204,0.4));}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:var(--x-color-success,rgba(16,140,72,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-success,rgba(16,140,72,0.5));}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:var(--x-color-danger,rgba(190,20,40,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-danger,rgba(190,20,40,0.4));}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:var(--x-color-warning,rgba(204,120,0,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-warning,rgba(204,120,0,0.4));}@media (prefers-color-scheme:dark){:host([data-status\x3d'active']){--x-timeline-item-marker-bg:var(--x-color-primary,rgba(80,160,255,1));--x-timeline-item-connector-color:var(--x-color-primary,rgba(80,160,255,0.4));}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:var(--x-color-success,rgba(60,210,120,1));--x-timeline-item-connector-color:var(--x-color-success,rgba(60,210,120,0.5));}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:var(--x-color-danger,rgba(255,90,110,1));--x-timeline-item-connector-color:var(--x-color-danger,rgba(255,90,110,0.4));}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:var(--x-color-warning,rgba(255,190,90,1));--x-timeline-item-connector-color:var(--x-color-warning,rgba(255,190,90,0.4));}}:host([data-striped]){background:var(--x-timeline-item-stripe-bg);border-radius:var(--x-radius-sm,4px);}:host([disabled]){opacity:var(--x-timeline-item-disabled-opacity);pointer-events:none;}:host(:not([disabled])){cursor:pointer;}:host(:not([disabled])):focus{outline:none;}:host(:not([disabled])):focus-visible{outline:2px solid var(--x-color-focus-ring,rgba(0,102,204,0.55));outline-offset:2px;}@media (prefers-color-scheme:dark){:host(:not([disabled])):focus-visible{outline-color:var(--x-color-focus-ring,rgba(80,160,255,0.7));}}.timeline-item{display:grid;grid-template-columns:var(--x-timeline-item-label-width) var(--x-timeline-item-marker-size) 1fr;grid-template-areas:'label track content';align-items:start;gap:0 var(--x-timeline-item-gap);}:host([data-position\x3d'end']) .timeline-item{grid-template-columns:1fr var(--x-timeline-item-marker-size) var(--x-timeline-item-label-width);grid-template-areas:'content track label';}.label-col{grid-area:label;display:flex;align-items:center;justify-content:flex-end;min-height:var(--x-timeline-item-marker-size);font-size:var(--x-timeline-item-label-font-size);color:var(--x-timeline-item-label-color);overflow:hidden;min-width:0;}:host([data-position\x3d'end']) .label-col{justify-content:flex-start;}.track-col{grid-area:track;display:flex;flex-direction:column;align-items:center;}.marker{display:inline-flex;align-items:center;justify-content:center;width:var(--x-timeline-item-marker-size);height:var(--x-timeline-item-marker-size);border-radius:999px;background:var(--x-timeline-item-marker-bg);color:var(--x-timeline-item-marker-color);font-size:0.875em;flex-shrink:0;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease),color var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}.connector{flex:1;width:var(--x-timeline-item-connector-width);background:var(--x-timeline-item-connector-color);min-height:1rem;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}:host([data-connector\x3d'dashed']) .connector{background:repeating-linear-gradient(to bottom,var(--x-timeline-item-connector-color) 0,var(--x-timeline-item-connector-color) 4px,transparent 4px,transparent 8px);}:host([data-connector\x3d'none']) .connector,:host([data-last]) .connector{display:none;}.content-col{grid-area:content;display:flex;flex-direction:column;min-width:0;padding-bottom:var(--x-timeline-item-gap);}.title{font-weight:600;font-size:var(--x-timeline-item-title-font-size);line-height:1.25;min-height:var(--x-timeline-item-marker-size);display:flex;align-items:center;overflow-wrap:anywhere;min-width:0;}.title[hidden]{display:none;}.body{margin-top:0.25rem;}.actions{margin-top:0.5rem;}:host([data-entering]){animation:x-timeline-item-enter var(--x-timeline-item-enter-duration) var(--x-timeline-item-motion-ease) both;}@keyframes x-timeline-item-enter{from{opacity:0;transform:translateX(-4px);}to{opacity:1;transform:translateX(0);}}:host([data-position\x3d'end'][data-entering]){animation-name:x-timeline-item-enter-end;}@keyframes x-timeline-item-enter-end{from{opacity:0;transform:translateX(4px);}to{opacity:1;transform:translateX(0);}}@media (prefers-reduced-motion:reduce){:host([data-entering]){animation:none !important;}.marker,.connector{transition:none !important;}}";
7
- d.setAttribute("class","timeline-item");e.setAttribute("class","label-col");g.setAttribute("name","label");h.setAttribute("class","label-text");g.appendChild(h);e.appendChild(g);k.setAttribute("class","track-col");m.setAttribute("class","marker");p.setAttribute("name","icon");q.setAttribute("class","default-icon");q.setAttribute("aria-hidden","true");p.appendChild(q);m.appendChild(p);w.setAttribute("class","connector");k.appendChild(m);k.appendChild(w);x.setAttribute("class","content-col");y.setAttribute("class",
8
- "title");A.setAttribute("class","body");A.appendChild(B);E.setAttribute("class","actions");H.setAttribute("name","actions");E.appendChild(H);x.appendChild(y);x.appendChild(A);x.appendChild(E);d.appendChild(e);d.appendChild(k);d.appendChild(x);b.appendChild(c);b.appendChild(d);b=$APP.Q([Jm,Rm,$APP.Yj,$APP.Ml,Sm,Tm,$APP.Bl,Um,$APP.bi,Vm,Wm,Xm,Ym,Zm,$APP.Pi,$m],[w,h,m,q,e,k,A,B,b,H,y,x,d,E,p,g]);a.__xTimelineItemRefs=b;return $APP.l(a,"__xTimelineItemRefs")},bn=function(a){return Pm($APP.Q([$APP.nj,
9
- $APP.Oh,Dm,Em,Fm,$APP.mi,Gm,$APP.yh,Hm,$APP.Vi,Cm,$APP.W],[a.getAttribute("position"),a.getAttribute("label"),a.hasAttribute("data-striped"),a.getAttribute("connector"),$APP.l(a,"__xTimelineItemParentPos"),a.getAttribute("status"),a.hasAttribute("data-last"),a.hasAttribute("icon"),a.getAttribute("title"),a.getAttribute("icon"),a.getAttribute("data-index"),a.hasAttribute("disabled")]))},en=function(a){var b=bn(a);if($APP.O($APP.l(a,"__xTimelineItemModel"),b)){b=$APP.N(b);var c=$APP.G(b,$APP.T),d=$APP.G(b,
10
- Mm),e=$APP.G(b,$APP.Ij),g=$APP.G(b,Om),h=$APP.G(b,$APP.W),k=$APP.G(b,Lm),m=$APP.G(b,Nm),p=an(a),q=$APP.N(p);p=$APP.G(q,Rm);var w=$APP.G(q,$APP.Yj),x=$APP.G(q,Wm);q=$APP.G(q,$APP.Ml);a.setAttribute("data-status",tm(e));a.__xTimelineItemSelfPos=!0;a.setAttribute("data-position",$APP.bg(g));a.__xTimelineItemSelfPos=null;$APP.D.i(Jm.g(b),cn)?a.setAttribute("data-connector","dashed"):$APP.D.i(Jm.g(b),dn)?a.setAttribute("data-connector","none"):a.removeAttribute("data-connector");a.setAttribute("role",
11
- "listitem");$APP.r(h)?(a.setAttribute("aria-disabled","true"),a.tabIndex=-1):(a.removeAttribute("aria-disabled"),a.tabIndex=0);e=$APP.O(d,"")?d:$APP.O(c,"")?c:null;$APP.r(e)?a.setAttribute("aria-label",e):a.removeAttribute("aria-label");w.setAttribute("aria-label",m);p.textContent=c;q.textContent=k!=null?k:"";$APP.O(d,"")?(x.removeAttribute("hidden"),x.textContent=d):(x.setAttribute("hidden",""),x.textContent="");a.__xTimelineItemModel=b}},fn=function(a){$APP.r($APP.l(a,"__xTimelineItemEntered"))||
12
- (a.__xTimelineItemEntered=!0,a.setAttribute("data-entering",""),a.addEventListener("animationend",function d(c){return $APP.D.i(c.target,a)?(a.removeEventListener("animationend",d),a.removeAttribute("data-entering")):null}))},gn=function(a){var b=$APP.l(a,"__xTimelineItemModel");var c=$APP.r(b)?b:bn(a);b=a.dispatchEvent;var d=CustomEvent,e=$APP.N(c);c=$APP.G(e,$APP.Ij);e=$APP.G(e,$APP.T);c=new $APP.P(null,2,[$APP.Ij,tm(c),$APP.T,e],null);b.call(a,new d("x-timeline-item-click",{detail:$APP.nh(c),bubbles:!0,
13
- composed:!0,cancelable:!0}))},hn=function(a){function b(d){var e=d.key;if($APP.D.i(e,"Enter")||$APP.D.i(e," "))e=$APP.l(a,"__xTimelineItemModel"),e=$APP.r(e)?e:bn(a),Qm(e)&&(d.preventDefault(),gn(a));return null}function c(){var d=$APP.l(a,"__xTimelineItemModel");d=$APP.r(d)?d:bn(a);Qm(d)&&gn(a);return null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.n(a,"__xTimelineItemHandlers",{click:c,keydown:b})},jn=function(a){var b=$APP.l(a,"__xTimelineItemHandlers");if($APP.r(b)){var c=
14
- $APP.l(b,"click");b=$APP.l(b,"keydown");$APP.r(c)&&a.removeEventListener("click",c);$APP.r(b)&&a.removeEventListener("keydown",b)}a.__xTimelineItemHandlers=null},kn=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.r(b)?b:""},set:function(b){return $APP.r($APP.r(b)?$APP.O(b,""):b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"title",{get:function(){var b=this.getAttribute("title");
15
- return $APP.r(b)?b:""},set:function(b){return $APP.r($APP.r(b)?$APP.O(b,""):b)?this.setAttribute("title",""+$APP.S.g(b)):this.removeAttribute("title")},enumerable:!0,configurable:!0});Object.defineProperty(a,"status",{get:function(){var b=this.getAttribute("status");return $APP.r(b)?b:"pending"},set:function(b){return $APP.r(b)?this.setAttribute("status",""+$APP.S.g(b)):this.removeAttribute("status")},enumerable:!0,configurable:!0});Object.defineProperty(a,"icon",{get:function(){return this.getAttribute("icon")},
16
- set:function(b){return $APP.r(b)?this.setAttribute("icon",""+$APP.S.g(b)):this.removeAttribute("icon")},enumerable:!0,configurable:!0});Object.defineProperty(a,"connector",{get:function(){var b=this.getAttribute("connector");return $APP.r(b)?b:"solid"},set:function(b){return $APP.r(b)?this.setAttribute("connector",""+$APP.S.g(b)):this.removeAttribute("connector")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){var b=this.getAttribute("position");return $APP.r(b)?
17
- b:"start"},set:function(b){return $APP.r(b)?this.setAttribute("position",""+$APP.S.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.r(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},mn=function(){var a=class extends HTMLElement{};a.observedAttributes=ln;a.prototype.connectedCallback=function(){an(this);jn(this);
18
- hn(this);var b=this.getAttribute("data-position");$APP.r(b)&&(this.__xTimelineItemParentPos=b);en(this);fn(this);b=$APP.l(this,"__xTimelineItemModel");var c=$APP.r(b)?b:bn(this);b=this.dispatchEvent;var d=CustomEvent,e=$APP.N(c);c=$APP.G(e,$APP.Ij);var g=$APP.G(e,$APP.T),h=$APP.G(e,Om);e=$APP.G(e,$APP.W);c=new $APP.P(null,4,[$APP.Ij,tm(c),$APP.T,g,$APP.Sl,$APP.bg(h),$APP.gj,$APP.I(e)],null);b.call(this,new d("x-timeline-item-connected",{detail:$APP.nh(c),bubbles:!0,composed:!0,cancelable:!1}));return null};
19
- a.prototype.disconnectedCallback=function(){var b=$APP.l(this,"__xTimelineItemModel");var c=$APP.r(b)?b:bn(this);jn(this);this.__xTimelineItemEntered=null;b=document;var d=b.dispatchEvent,e=CustomEvent,g=$APP.N(c);c=$APP.G(g,$APP.Ij);g=$APP.G(g,$APP.T);c=new $APP.P(null,2,[$APP.Ij,tm(c),$APP.T,g],null);d.call(b,new e("x-timeline-item-disconnected",{detail:$APP.nh(c),bubbles:!1,composed:!1,cancelable:!1}));return null};a.prototype.attributeChangedCallback=function(b,c,d){if(c=$APP.O(c,d))c=$APP.D.i(b,
20
- "data-position"),c=!$APP.r(c?$APP.l(this,"__xTimelineItemSelfPos"):c);c&&($APP.D.i(b,"data-position")&&(this.__xTimelineItemParentPos=d),en(this));return null};kn(a.prototype);return a},nn=function(){$APP.r(customElements.get("x-timeline-item"))||customElements.define("x-timeline-item",mn());return null},Tm=new $APP.K(null,"track-col","track-col",629248272),Vm=new $APP.K(null,"actions-slot","actions-slot",1424248629),Jm=new $APP.K(null,"connector","connector",-1517293248),Mm=new $APP.K(null,"title",
21
- "title",636505583),Em=new $APP.K(null,"connector-raw","connector-raw",106333796),Om=new $APP.K(null,"effective-position","effective-position",840072317),Sm=new $APP.K(null,"label-col","label-col",1883390160),Rm=new $APP.K(null,"label-text","label-text",-1566972381),Dm=new $APP.K(null,"data-striped?","data-striped?",906911587),Zm=new $APP.K(null,"actions-el","actions-el",1486248509),Xm=new $APP.K(null,"content-col","content-col",767367449),cn=new $APP.K(null,"dashed","dashed",-1449249319),Ym=new $APP.K(null,
22
- "item-div","item-div",1630512700),Nm=new $APP.K(null,"marker-aria","marker-aria",-353426855),Hm=new $APP.K(null,"title-raw","title-raw",976469452),Lm=new $APP.K(null,"marker-icon","marker-icon",424963779),vm=new $APP.K(null,"solid","solid",-2023773691),Wm=new $APP.K(null,"title-el","title-el",-401767816),Um=new $APP.K(null,"default-slot","default-slot",-1145647151),Gm=new $APP.K(null,"data-last?","data-last?",-1110326839),Fm=new $APP.K(null,"data-position-raw","data-position-raw",256144356),Cm=new $APP.K(null,
23
- "data-index-raw","data-index-raw",491574874),Km=new $APP.K(null,"data-index","data-index",1161508385),$m=new $APP.K(null,"label-slot","label-slot",-1755862561),dn=new $APP.K(null,"none","none",1333468478);var ln="label title status icon connector position disabled data-last data-index data-position data-striped".split(" ");
24
- $APP.Sd(["x-timeline-item-connected",new $APP.P(null,2,[$APP.U,new $APP.P(null,4,[$APP.Ij,$APP.X,$APP.T,$APP.X,$APP.Sl,$APP.X,$APP.gj,$APP.qj],null),$APP.ll,!1],null),"x-timeline-item-disconnected",new $APP.P(null,2,[$APP.U,new $APP.P(null,2,[$APP.Ij,$APP.X,$APP.T,$APP.X],null),$APP.ll,!1],null),"x-timeline-item-click",new $APP.P(null,2,[$APP.U,new $APP.P(null,2,[$APP.Ij,$APP.X,$APP.T,$APP.X],null),$APP.ll,!0],null)]);
25
- var qm=new $APP.P(null,5,["pending",$APP.Ih,"active",$APP.bj,"complete",$APP.Fl,"error",$APP.Zh,"warning",$APP.jl],null),sm=new $APP.P(null,5,[$APP.Ih,"pending",$APP.bj,"active",$APP.Fl,"complete",$APP.Zh,"error",$APP.jl,"warning"],null),Im=new $APP.P(null,5,[$APP.Ih,"○",$APP.bj,"●",$APP.Fl,"✓",$APP.Zh,"✕",$APP.jl,"!"],null),um=new $APP.P(null,3,["solid",vm,"dashed",cn,"none",dn],null),zm=new $APP.P(null,2,["start",$APP.ml,"end",$APP.ei],null);$APP.ka("baredom.exports.x_timeline_item.init",nn);export const init=nn;
2
+ var Km=function(a){a=$APP.D(Jm,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.Qh},Mm=function(a){a=$APP.D(Lm,a);return $APP.n(a)?a:"pending"},Pm=function(a){a=$APP.D(Nm,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:Om},Qm=function(a){return typeof a==="string"?(a=a.trim(),$APP.N(a,"")&&$APP.N(a.toLowerCase(),"none")?a:null):null},Rm=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.r(isNaN(a))&&a>=0?a:null):null},Tm=function(a,
3
+ b){a=$APP.D(Sm,typeof a==="string"?a.toLowerCase():null);$APP.n(a)?b=a:(b=$APP.D(Sm,typeof b==="string"?b.toLowerCase():null),b=$APP.n(b)?b:$APP.xl);return b},Um=function(a,b,c){a=Mm(a);c=c!=null?"Step "+$APP.T.g(c+1)+": ":null;return""+$APP.T.g(c)+$APP.T.g(typeof b==="string"&&$APP.N(b,"")?""+$APP.T.g(b)+" ":null)+"("+$APP.T.g(a)+")"},hn=function(a){var b=$APP.M(a),c=$APP.D(b,Vm);a=$APP.D(b,$APP.W);var d=$APP.D(b,$APP.xj),e=$APP.D(b,$APP.Wh),g=$APP.D(b,Wm),h=$APP.D(b,Xm),l=$APP.D(b,Ym),m=$APP.D(b,
4
+ $APP.ui),p=$APP.D(b,Zm),q=$APP.D(b,$APP.Ah),v=$APP.D(b,$m);b=$APP.D(b,$APP.aj);var x=Km(m),y=Qm(b),A=$APP.n($APP.n(q)?y==null:q)?$APP.jm:y!=null?$APP.Sk:$APP.Sh;m=function(){var B=A instanceof $APP.K?A.pa:null;switch(B){case "default":return B=$APP.D(an,x),$APP.n(B)?B:$APP.D(an,$APP.Qh);case "custom":return y;case "hidden":return null;default:throw Error("No matching clause: "+$APP.T.g(B));}}();c=Rm(c);d=Tm(l,d);e=$APP.n(e)?e:"";v=$APP.n(v)?v:"";return $APP.xf([bn,cn,dn,Wm,Zm,$APP.lk,en,$APP.Vj,$APP.U,
5
+ fn,$APP.Oj,$APP.W,gn],[Pm(h),c,m,$APP.F(g),$APP.F(p),$APP.C.i(A,$APP.Sk)?y:null,v,x,e,Um(x,e,c),A,$APP.F(a),d])},jn=function(a){a=$APP.M(a);a=$APP.D(a,$APP.W);return $APP.r(a)},un=function(a){var b=$APP.k(a,"__xTimelineItemRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("slot"),h=document.createElement("span"),l=document.createElement("div"),m=document.createElement("div"),
6
+ p=document.createElement("slot"),q=document.createElement("span"),v=document.createElement("div"),x=document.createElement("div"),y=document.createElement("div"),A=document.createElement("div"),B=document.createElement("slot"),E=document.createElement("div"),H=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-timeline-item-marker-size:2rem;--x-timeline-item-marker-bg:var(--x-color-border,rgba(0,0,0,0.06));--x-timeline-item-marker-color:var(--x-color-text-muted,rgba(0,0,0,0.45));--x-timeline-item-connector-color:var(--x-color-border,rgba(0,0,0,0.12));--x-timeline-item-connector-width:2px;--x-timeline-item-gap:0.75rem;--x-timeline-item-label-width:6rem;--x-timeline-item-label-color:var(--x-color-text-muted,rgba(0,0,0,0.5));--x-timeline-item-label-font-size:var(--x-font-size-sm,0.8125rem);--x-timeline-item-title-font-size:0.9375rem;--x-timeline-item-stripe-bg:var(--x-color-surface,rgba(0,0,0,0.025));--x-timeline-item-motion:var(--x-transition-duration,150ms);--x-timeline-item-motion-ease:var(--x-transition-easing,cubic-bezier(0.2,0,0,1));--x-timeline-item-enter-duration:160ms;--x-timeline-item-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-timeline-item-marker-bg:var(--x-color-border,rgba(255,255,255,0.10));--x-timeline-item-marker-color:var(--x-color-text-muted,rgba(255,255,255,0.55));--x-timeline-item-connector-color:var(--x-color-border,rgba(255,255,255,0.15));--x-timeline-item-label-color:var(--x-color-text-muted,rgba(255,255,255,0.5));--x-timeline-item-stripe-bg:var(--x-color-surface,rgba(255,255,255,0.03));}}:host([data-status\x3d'active']){--x-timeline-item-marker-bg:var(--x-color-primary,rgba(0,102,204,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-primary,rgba(0,102,204,0.4));}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:var(--x-color-success,rgba(16,140,72,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-success,rgba(16,140,72,0.5));}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:var(--x-color-danger,rgba(190,20,40,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-danger,rgba(190,20,40,0.4));}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:var(--x-color-warning,rgba(204,120,0,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-warning,rgba(204,120,0,0.4));}@media (prefers-color-scheme:dark){:host([data-status\x3d'active']){--x-timeline-item-marker-bg:var(--x-color-primary,rgba(80,160,255,1));--x-timeline-item-connector-color:var(--x-color-primary,rgba(80,160,255,0.4));}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:var(--x-color-success,rgba(60,210,120,1));--x-timeline-item-connector-color:var(--x-color-success,rgba(60,210,120,0.5));}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:var(--x-color-danger,rgba(255,90,110,1));--x-timeline-item-connector-color:var(--x-color-danger,rgba(255,90,110,0.4));}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:var(--x-color-warning,rgba(255,190,90,1));--x-timeline-item-connector-color:var(--x-color-warning,rgba(255,190,90,0.4));}}:host([data-striped]){background:var(--x-timeline-item-stripe-bg);border-radius:var(--x-radius-sm,4px);}:host([disabled]){opacity:var(--x-timeline-item-disabled-opacity);pointer-events:none;}:host(:not([disabled])){cursor:pointer;}:host(:not([disabled])):focus{outline:none;}:host(:not([disabled])):focus-visible{outline:2px solid var(--x-color-focus-ring,rgba(0,102,204,0.55));outline-offset:2px;}@media (prefers-color-scheme:dark){:host(:not([disabled])):focus-visible{outline-color:var(--x-color-focus-ring,rgba(80,160,255,0.7));}}.timeline-item{display:grid;grid-template-columns:var(--x-timeline-item-label-width) var(--x-timeline-item-marker-size) 1fr;grid-template-areas:'label track content';align-items:start;gap:0 var(--x-timeline-item-gap);}:host([data-position\x3d'end']) .timeline-item{grid-template-columns:1fr var(--x-timeline-item-marker-size) var(--x-timeline-item-label-width);grid-template-areas:'content track label';}.label-col{grid-area:label;display:flex;align-items:center;justify-content:flex-end;min-height:var(--x-timeline-item-marker-size);font-size:var(--x-timeline-item-label-font-size);color:var(--x-timeline-item-label-color);overflow:hidden;min-width:0;}:host([data-position\x3d'end']) .label-col{justify-content:flex-start;}.track-col{grid-area:track;display:flex;flex-direction:column;align-items:center;}.marker{display:inline-flex;align-items:center;justify-content:center;width:var(--x-timeline-item-marker-size);height:var(--x-timeline-item-marker-size);border-radius:999px;background:var(--x-timeline-item-marker-bg);color:var(--x-timeline-item-marker-color);font-size:0.875em;flex-shrink:0;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease),color var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}.connector{flex:1;width:var(--x-timeline-item-connector-width);background:var(--x-timeline-item-connector-color);min-height:1rem;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}:host([data-connector\x3d'dashed']) .connector{background:repeating-linear-gradient(to bottom,var(--x-timeline-item-connector-color) 0,var(--x-timeline-item-connector-color) 4px,transparent 4px,transparent 8px);}:host([data-connector\x3d'none']) .connector,:host([data-last]) .connector{display:none;}.content-col{grid-area:content;display:flex;flex-direction:column;min-width:0;padding-bottom:var(--x-timeline-item-gap);}.title{font-weight:600;font-size:var(--x-timeline-item-title-font-size);line-height:1.25;min-height:var(--x-timeline-item-marker-size);display:flex;align-items:center;overflow-wrap:anywhere;min-width:0;}.title[hidden]{display:none;}.body{margin-top:0.25rem;}.actions{margin-top:0.5rem;}:host([data-entering]){animation:x-timeline-item-enter var(--x-timeline-item-enter-duration) var(--x-timeline-item-motion-ease) both;}@keyframes x-timeline-item-enter{from{opacity:0;transform:translateX(-4px);}to{opacity:1;transform:translateX(0);}}:host([data-position\x3d'end'][data-entering]){animation-name:x-timeline-item-enter-end;}@keyframes x-timeline-item-enter-end{from{opacity:0;transform:translateX(4px);}to{opacity:1;transform:translateX(0);}}@media (prefers-reduced-motion:reduce){:host([data-entering]){animation:none !important;}.marker,.connector{transition:none !important;}}";
7
+ d.setAttribute("class","timeline-item");e.setAttribute("class","label-col");g.setAttribute("name","label");h.setAttribute("class","label-text");g.appendChild(h);e.appendChild(g);l.setAttribute("class","track-col");m.setAttribute("class","marker");p.setAttribute("name","icon");q.setAttribute("class","default-icon");q.setAttribute("aria-hidden","true");p.appendChild(q);m.appendChild(p);v.setAttribute("class","connector");l.appendChild(m);l.appendChild(v);x.setAttribute("class","content-col");y.setAttribute("class",
8
+ "title");A.setAttribute("class","body");A.appendChild(B);E.setAttribute("class","actions");H.setAttribute("name","actions");E.appendChild(H);x.appendChild(y);x.appendChild(A);x.appendChild(E);d.appendChild(e);d.appendChild(l);d.appendChild(x);b.appendChild(c);b.appendChild(d);b=$APP.xf([bn,kn,$APP.mk,$APP.dm,ln,mn,$APP.Tl,nn,$APP.ji,on,pn,qn,rn,sn,$APP.Vi,tn],[v,h,m,q,e,l,A,B,b,H,y,x,d,E,p,g]);a.__xTimelineItemRefs=b;return $APP.k(a,"__xTimelineItemRefs")},vn=function(a){return hn($APP.xf([$APP.xj,
9
+ $APP.Wh,Wm,Xm,Ym,$APP.ui,Zm,$APP.Ah,$m,$APP.aj,Vm,$APP.W],[a.getAttribute("position"),a.getAttribute("label"),a.hasAttribute("data-striped"),a.getAttribute("connector"),$APP.k(a,"__xTimelineItemParentPos"),a.getAttribute("status"),a.hasAttribute("data-last"),a.hasAttribute("icon"),a.getAttribute("title"),a.getAttribute("icon"),a.getAttribute("data-index"),a.hasAttribute("disabled")]))},yn=function(a){var b=vn(a);if($APP.N($APP.k(a,"__xTimelineItemModel"),b)){b=$APP.M(b);var c=$APP.D(b,$APP.U),d=$APP.D(b,
10
+ en),e=$APP.D(b,$APP.Vj),g=$APP.D(b,gn),h=$APP.D(b,$APP.W),l=$APP.D(b,dn),m=$APP.D(b,fn),p=un(a),q=$APP.M(p);p=$APP.D(q,kn);var v=$APP.D(q,$APP.mk),x=$APP.D(q,pn);q=$APP.D(q,$APP.dm);a.setAttribute("data-status",Mm(e));a.__xTimelineItemSelfPos=!0;a.setAttribute("data-position",$APP.Wf(g));a.__xTimelineItemSelfPos=null;$APP.C.i(bn.g(b),wn)?a.setAttribute("data-connector","dashed"):$APP.C.i(bn.g(b),xn)?a.setAttribute("data-connector","none"):a.removeAttribute("data-connector");a.setAttribute("role",
11
+ "listitem");$APP.n(h)?(a.setAttribute("aria-disabled","true"),a.tabIndex=-1):(a.removeAttribute("aria-disabled"),a.tabIndex=0);e=$APP.N(d,"")?d:$APP.N(c,"")?c:null;$APP.n(e)?a.setAttribute("aria-label",e):a.removeAttribute("aria-label");v.setAttribute("aria-label",m);p.textContent=c;q.textContent=l!=null?l:"";$APP.N(d,"")?(x.removeAttribute("hidden"),x.textContent=d):(x.setAttribute("hidden",""),x.textContent="");a.__xTimelineItemModel=b}},zn=function(a){$APP.n($APP.k(a,"__xTimelineItemEntered"))||
12
+ (a.__xTimelineItemEntered=!0,a.setAttribute("data-entering",""),a.addEventListener("animationend",function d(c){return $APP.C.i(c.target,a)?(a.removeEventListener("animationend",d),a.removeAttribute("data-entering")):null}))},An=function(a){var b=$APP.k(a,"__xTimelineItemModel");var c=$APP.n(b)?b:vn(a);b=a.dispatchEvent;var d=CustomEvent,e=$APP.M(c);c=$APP.D(e,$APP.Vj);e=$APP.D(e,$APP.U);c=new $APP.R(null,2,[$APP.Vj,Mm(c),$APP.U,e],null);b.call(a,new d("x-timeline-item-click",{detail:$APP.ph(c),bubbles:!0,
13
+ composed:!0,cancelable:!0}))},Bn=function(a){function b(d){var e=d.key;if($APP.C.i(e,"Enter")||$APP.C.i(e," "))e=$APP.k(a,"__xTimelineItemModel"),e=$APP.n(e)?e:vn(a),jn(e)&&(d.preventDefault(),An(a));return null}function c(){var d=$APP.k(a,"__xTimelineItemModel");d=$APP.n(d)?d:vn(a);jn(d)&&An(a);return null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.ia(a,"__xTimelineItemHandlers",{click:c,keydown:b})},Cn=function(a){var b=$APP.k(a,"__xTimelineItemHandlers");if($APP.n(b)){var c=
14
+ $APP.k(b,"click");b=$APP.k(b,"keydown");$APP.n(c)&&a.removeEventListener("click",c);$APP.n(b)&&a.removeEventListener("keydown",b)}a.__xTimelineItemHandlers=null},Dn=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.N(b,""):b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"title",{get:function(){var b=this.getAttribute("title");
15
+ return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.N(b,""):b)?this.setAttribute("title",""+$APP.T.g(b)):this.removeAttribute("title")},enumerable:!0,configurable:!0});Object.defineProperty(a,"status",{get:function(){var b=this.getAttribute("status");return $APP.n(b)?b:"pending"},set:function(b){return $APP.n(b)?this.setAttribute("status",""+$APP.T.g(b)):this.removeAttribute("status")},enumerable:!0,configurable:!0});Object.defineProperty(a,"icon",{get:function(){return this.getAttribute("icon")},
16
+ set:function(b){return $APP.n(b)?this.setAttribute("icon",""+$APP.T.g(b)):this.removeAttribute("icon")},enumerable:!0,configurable:!0});Object.defineProperty(a,"connector",{get:function(){var b=this.getAttribute("connector");return $APP.n(b)?b:"solid"},set:function(b){return $APP.n(b)?this.setAttribute("connector",""+$APP.T.g(b)):this.removeAttribute("connector")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){var b=this.getAttribute("position");return $APP.n(b)?
17
+ b:"start"},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.T.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},Fn=function(){var a=class extends HTMLElement{};a.observedAttributes=En;a.prototype.connectedCallback=function(){un(this);Cn(this);
18
+ Bn(this);var b=this.getAttribute("data-position");$APP.n(b)&&(this.__xTimelineItemParentPos=b);yn(this);zn(this);b=$APP.k(this,"__xTimelineItemModel");var c=$APP.n(b)?b:vn(this);b=this.dispatchEvent;var d=CustomEvent,e=$APP.M(c);c=$APP.D(e,$APP.Vj);var g=$APP.D(e,$APP.U),h=$APP.D(e,gn);e=$APP.D(e,$APP.W);c=new $APP.R(null,4,[$APP.Vj,Mm(c),$APP.U,g,$APP.km,$APP.Wf(h),$APP.mj,$APP.F(e)],null);b.call(this,new d("x-timeline-item-connected",{detail:$APP.ph(c),bubbles:!0,composed:!0,cancelable:!1}));return null};
19
+ a.prototype.disconnectedCallback=function(){var b=$APP.k(this,"__xTimelineItemModel");var c=$APP.n(b)?b:vn(this);Cn(this);this.__xTimelineItemEntered=null;b=document;var d=b.dispatchEvent,e=CustomEvent,g=$APP.M(c);c=$APP.D(g,$APP.Vj);g=$APP.D(g,$APP.U);c=new $APP.R(null,2,[$APP.Vj,Mm(c),$APP.U,g],null);d.call(b,new e("x-timeline-item-disconnected",{detail:$APP.ph(c),bubbles:!1,composed:!1,cancelable:!1}));return null};a.prototype.attributeChangedCallback=function(b,c,d){if(c=$APP.N(c,d))c=$APP.C.i(b,
20
+ "data-position"),c=!$APP.n(c?$APP.k(this,"__xTimelineItemSelfPos"):c);c&&($APP.C.i(b,"data-position")&&(this.__xTimelineItemParentPos=d),yn(this));return null};Dn(a.prototype);return a},Gn=function(){$APP.n(customElements.get("x-timeline-item"))||customElements.define("x-timeline-item",Fn());return null},mn=new $APP.K(null,"track-col","track-col",629248272),on=new $APP.K(null,"actions-slot","actions-slot",1424248629),bn=new $APP.K(null,"connector","connector",-1517293248),en=new $APP.K(null,"title",
21
+ "title",636505583),Xm=new $APP.K(null,"connector-raw","connector-raw",106333796),gn=new $APP.K(null,"effective-position","effective-position",840072317),ln=new $APP.K(null,"label-col","label-col",1883390160),kn=new $APP.K(null,"label-text","label-text",-1566972381),Wm=new $APP.K(null,"data-striped?","data-striped?",906911587),sn=new $APP.K(null,"actions-el","actions-el",1486248509),qn=new $APP.K(null,"content-col","content-col",767367449),wn=new $APP.K(null,"dashed","dashed",-1449249319),rn=new $APP.K(null,
22
+ "item-div","item-div",1630512700),fn=new $APP.K(null,"marker-aria","marker-aria",-353426855),$m=new $APP.K(null,"title-raw","title-raw",976469452),dn=new $APP.K(null,"marker-icon","marker-icon",424963779),Om=new $APP.K(null,"solid","solid",-2023773691),pn=new $APP.K(null,"title-el","title-el",-401767816),nn=new $APP.K(null,"default-slot","default-slot",-1145647151),Zm=new $APP.K(null,"data-last?","data-last?",-1110326839),Ym=new $APP.K(null,"data-position-raw","data-position-raw",256144356),Vm=new $APP.K(null,
23
+ "data-index-raw","data-index-raw",491574874),cn=new $APP.K(null,"data-index","data-index",1161508385),tn=new $APP.K(null,"label-slot","label-slot",-1755862561),xn=new $APP.K(null,"none","none",1333468478);var En="label title status icon connector position disabled data-last data-index data-position data-striped".split(" ");
24
+ $APP.Pd(["x-timeline-item-connected",new $APP.R(null,2,[$APP.yj,new $APP.R(null,4,[$APP.Vj,$APP.X,$APP.U,$APP.X,$APP.km,$APP.X,$APP.mj,$APP.Bj],null),$APP.wl,!1],null),"x-timeline-item-disconnected",new $APP.R(null,2,[$APP.yj,new $APP.R(null,2,[$APP.Vj,$APP.X,$APP.U,$APP.X],null),$APP.wl,!1],null),"x-timeline-item-click",new $APP.R(null,2,[$APP.yj,new $APP.R(null,2,[$APP.Vj,$APP.X,$APP.U,$APP.X],null),$APP.wl,!0],null)]);
25
+ var Jm=new $APP.R(null,5,["pending",$APP.Qh,"active",$APP.hj,"complete",$APP.Xl,"error",$APP.gi,"warning",$APP.ul],null),Lm=new $APP.R(null,5,[$APP.Qh,"pending",$APP.hj,"active",$APP.Xl,"complete",$APP.gi,"error",$APP.ul,"warning"],null),an=new $APP.R(null,5,[$APP.Qh,"○",$APP.hj,"●",$APP.Xl,"✓",$APP.gi,"✕",$APP.ul,"!"],null),Nm=new $APP.R(null,3,["solid",Om,"dashed",wn,"none",xn],null),Sm=new $APP.R(null,2,["start",$APP.xl,"end",$APP.mi],null);$APP.fa("baredom.exports.x_timeline_item.init",Gn);export const init=Gn;
@@ -1,10 +1,10 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var NS=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.J(MS,a)?a:"start"},OS=function(a,b){switch(a){case "start":return"start";case "end":return"end";case "alternating":return $APP.hd(b,2)===0?"start":"end";default:return"start"}},QS=function(a){var b=$APP.l(a,"__xTimelineRefs");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:flex;flex-direction:column;color-scheme:light dark;--x-timeline-gap:0;--x-timeline-label-color:var(--x-color-text,inherit);--x-timeline-label-font-size:var(--x-font-size-sm,0.875rem);--x-timeline-label-font-weight:600;--x-timeline-label-padding:0 0 0.5rem;}slot{display:contents;}[part\x3dlabel]{color:var(--x-timeline-label-color);font-size:var(--x-timeline-label-font-size);font-weight:var(--x-timeline-label-font-weight);padding:var(--x-timeline-label-padding);box-sizing:border-box;}[part\x3dlabel][hidden]{display:none !important;}";
3
- d.setAttribute("part","label");d.setAttribute("hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xTimelineRefs=new $APP.P(null,3,[$APP.bi,b,PS,d,$APP.Kk,e],null);return $APP.l(a,"__xTimelineRefs")},RS=function(a){a=new $APP.P(null,3,[$APP.Oh,a.getAttribute("label"),$APP.nj,a.getAttribute("position"),$APP.ek,a.hasAttribute("striped")],null);var b=$APP.N(a);a=$APP.G(b,$APP.Oh);var c=$APP.G(b,$APP.nj);b=$APP.G(b,$APP.ek);return new $APP.P(null,3,[$APP.T,$APP.r(a)?a:"",$APP.Sl,NS(c),
4
- $APP.ek,$APP.I(b)],null)},SS=function(a){var b=RS(a);if($APP.O($APP.l(a,"__xTimelineModel"),b)){b=$APP.N(b);var c=$APP.G(b,$APP.T),d=QS(a);d=$APP.N(d);d=$APP.G(d,PS);a.setAttribute("role","list");$APP.O(c,"")?a.setAttribute("aria-label",c):a.removeAttribute("aria-label");$APP.O(c,"")?(d.textContent=c,d.removeAttribute("hidden")):(d.textContent="",d.setAttribute("hidden",""));a.__xTimelineModel=b}},TS=function(a){var b=$APP.l(a,"__xTimelineModel");b=$APP.r(b)?b:RS(a);var c=$APP.N(b);b=$APP.G(c,$APP.Sl);
5
- c=$APP.G(c,$APP.ek);a=a.querySelectorAll("x-timeline-item");for(var d=a.length,e=0;;)if(e<d){var g=a[e],h=$APP.D.i(e,d-1);g.setAttribute("data-index",""+$APP.S.g(e));h?g.setAttribute("data-last",""):g.removeAttribute("data-last");g.setAttribute("data-position",OS(b,e));$APP.r(c)?g.setAttribute("data-striped",""):g.removeAttribute("data-striped");e+=1}else break},US=function(a){function b(){$APP.r(a.isConnected)&&TS(a);return null}function c(e){e.stopPropagation();var g=e.target.getAttribute("data-index");
6
- e=e.detail;typeof g==="string"?(g=parseInt(g,10),g=$APP.r(isNaN(g))?null:g):g=null;var h=$APP.l(e,"status");e=$APP.l(e,"label");e=$APP.nh(new $APP.P(null,3,[$APP.Eh,$APP.r(g)?g:0,$APP.Ij,$APP.r(h)?h:"",$APP.T,$APP.r(e)?e:""],null));a.dispatchEvent(new CustomEvent("x-timeline-select",{detail:e,bubbles:!0,composed:!0,cancelable:!1}));return null}function d(){TS(a);return null}a.addEventListener("x-timeline-item-connected",d);a.addEventListener("x-timeline-item-click",c);document.addEventListener("x-timeline-item-disconnected",
7
- b);$APP.n(a,"__xTimelineHandlers",{"item-connected":d,"item-click":c,"item-disconnected-doc":b})},VS=function(a){var b=$APP.l(a,"__xTimelineHandlers");if($APP.r(b)){var c=$APP.l(b,"item-connected"),d=$APP.l(b,"item-click");b=$APP.l(b,"item-disconnected-doc");$APP.r(c)&&a.removeEventListener("x-timeline-item-connected",c);$APP.r(d)&&a.removeEventListener("x-timeline-item-click",d);$APP.r(b)&&document.removeEventListener("x-timeline-item-disconnected",b)}a.__xTimelineHandlers=null},WS=function(a){Object.defineProperty(a,
8
- "label",{get:function(){var b=this.getAttribute("label");return $APP.r(b)?b:""},set:function(b){return $APP.r($APP.r(b)?$APP.O(b,""):b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return NS(this.getAttribute("position"))},set:function(b){return $APP.r(b)?this.setAttribute("position",""+$APP.S.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,
9
- "striped",{get:function(){return this.hasAttribute("striped")},set:function(b){return $APP.r(b)?this.setAttribute("striped",""):this.removeAttribute("striped")},enumerable:!0,configurable:!0})},YS=function(){var a=class extends HTMLElement{};a.observedAttributes=XS;a.prototype.connectedCallback=function(){QS(this);SS(this);VS(this);US(this);TS(this);return null};a.prototype.disconnectedCallback=function(){VS(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&(SS(this),
10
- TS(this));return null};WS(a.prototype);return a},ZS=function(){$APP.r(customElements.get("x-timeline"))||customElements.define("x-timeline",YS());return null},PS=new $APP.K(null,"label-div","label-div",1505730697);var XS=["label","position","striped"];$APP.Sd(["x-timeline-select",new $APP.P(null,2,[$APP.U,new $APP.P(null,3,[$APP.Eh,$APP.V,$APP.Ij,$APP.X,$APP.T,$APP.X],null),$APP.ll,!1],null)]);var MS=new $APP.R(null,new $APP.P(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.ka("baredom.exports.x_timeline.init",ZS);export const init=ZS;
2
+ var LU=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.J(KU,a)?a:"start"},MU=function(a,b){switch(a){case "start":return"start";case "end":return"end";case "alternating":return $APP.ed(b,2)===0?"start":"end";default:return"start"}},OU=function(a){var b=$APP.k(a,"__xTimelineRefs");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:flex;flex-direction:column;color-scheme:light dark;--x-timeline-gap:0;--x-timeline-label-color:var(--x-color-text,inherit);--x-timeline-label-font-size:var(--x-font-size-sm,0.875rem);--x-timeline-label-font-weight:600;--x-timeline-label-padding:0 0 0.5rem;}slot{display:contents;}[part\x3dlabel]{color:var(--x-timeline-label-color);font-size:var(--x-timeline-label-font-size);font-weight:var(--x-timeline-label-font-weight);padding:var(--x-timeline-label-padding);box-sizing:border-box;}[part\x3dlabel][hidden]{display:none !important;}";
3
+ d.setAttribute("part","label");d.setAttribute("hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xTimelineRefs=new $APP.R(null,3,[$APP.ji,b,NU,d,$APP.Tk,e],null);return $APP.k(a,"__xTimelineRefs")},PU=function(a){a=new $APP.R(null,3,[$APP.Wh,a.getAttribute("label"),$APP.xj,a.getAttribute("position"),$APP.tk,a.hasAttribute("striped")],null);var b=$APP.M(a);a=$APP.D(b,$APP.Wh);var c=$APP.D(b,$APP.xj);b=$APP.D(b,$APP.tk);return new $APP.R(null,3,[$APP.U,$APP.n(a)?a:"",$APP.km,LU(c),
4
+ $APP.tk,$APP.F(b)],null)},QU=function(a){var b=PU(a);if($APP.N($APP.k(a,"__xTimelineModel"),b)){b=$APP.M(b);var c=$APP.D(b,$APP.U),d=OU(a);d=$APP.M(d);d=$APP.D(d,NU);a.setAttribute("role","list");$APP.N(c,"")?a.setAttribute("aria-label",c):a.removeAttribute("aria-label");$APP.N(c,"")?(d.textContent=c,d.removeAttribute("hidden")):(d.textContent="",d.setAttribute("hidden",""));a.__xTimelineModel=b}},RU=function(a){var b=$APP.k(a,"__xTimelineModel");b=$APP.n(b)?b:PU(a);var c=$APP.M(b);b=$APP.D(c,$APP.km);
5
+ c=$APP.D(c,$APP.tk);a=a.querySelectorAll("x-timeline-item");for(var d=a.length,e=0;;)if(e<d){var g=a[e],h=$APP.C.i(e,d-1);g.setAttribute("data-index",""+$APP.T.g(e));h?g.setAttribute("data-last",""):g.removeAttribute("data-last");g.setAttribute("data-position",MU(b,e));$APP.n(c)?g.setAttribute("data-striped",""):g.removeAttribute("data-striped");e+=1}else break},SU=function(a){function b(){$APP.n(a.isConnected)&&RU(a);return null}function c(e){e.stopPropagation();var g=e.target.getAttribute("data-index");
6
+ e=e.detail;typeof g==="string"?(g=parseInt(g,10),g=$APP.n(isNaN(g))?null:g):g=null;var h=$APP.k(e,"status");e=$APP.k(e,"label");e=$APP.ph(new $APP.R(null,3,[$APP.Lh,$APP.n(g)?g:0,$APP.Vj,$APP.n(h)?h:"",$APP.U,$APP.n(e)?e:""],null));a.dispatchEvent(new CustomEvent("x-timeline-select",{detail:e,bubbles:!0,composed:!0,cancelable:!1}));return null}function d(){RU(a);return null}a.addEventListener("x-timeline-item-connected",d);a.addEventListener("x-timeline-item-click",c);document.addEventListener("x-timeline-item-disconnected",
7
+ b);$APP.ia(a,"__xTimelineHandlers",{"item-connected":d,"item-click":c,"item-disconnected-doc":b})},TU=function(a){var b=$APP.k(a,"__xTimelineHandlers");if($APP.n(b)){var c=$APP.k(b,"item-connected"),d=$APP.k(b,"item-click");b=$APP.k(b,"item-disconnected-doc");$APP.n(c)&&a.removeEventListener("x-timeline-item-connected",c);$APP.n(d)&&a.removeEventListener("x-timeline-item-click",d);$APP.n(b)&&document.removeEventListener("x-timeline-item-disconnected",b)}a.__xTimelineHandlers=null},UU=function(a){Object.defineProperty(a,
8
+ "label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.N(b,""):b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return LU(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.T.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,
9
+ "striped",{get:function(){return this.hasAttribute("striped")},set:function(b){return $APP.n(b)?this.setAttribute("striped",""):this.removeAttribute("striped")},enumerable:!0,configurable:!0})},WU=function(){var a=class extends HTMLElement{};a.observedAttributes=VU;a.prototype.connectedCallback=function(){OU(this);QU(this);TU(this);SU(this);RU(this);return null};a.prototype.disconnectedCallback=function(){TU(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&(QU(this),
10
+ RU(this));return null};UU(a.prototype);return a},XU=function(){$APP.n(customElements.get("x-timeline"))||customElements.define("x-timeline",WU());return null},NU=new $APP.K(null,"label-div","label-div",1505730697);var VU=["label","position","striped"];$APP.Pd(["x-timeline-select",new $APP.R(null,2,[$APP.yj,new $APP.R(null,3,[$APP.Lh,$APP.V,$APP.Vj,$APP.X,$APP.U,$APP.X],null),$APP.wl,!1],null)]);var KU=new $APP.S(null,new $APP.R(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.fa("baredom.exports.x_timeline.init",XU);export const init=XU;
package/dist/x-toast.js CHANGED
@@ -1,26 +1,26 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Xp=function(a){a=$APP.G(Wp,typeof a==="string"?a.toLowerCase():null);return $APP.r(a)?a:$APP.wk},Zp=function(a){a=$APP.G(Yp,a);return $APP.r(a)?a:"info"},$p=function(a){return a==null?!0:$APP.O((""+$APP.S.g(a)).trim().toLowerCase(),"false")},aq=function(a){return a==null?!1:$APP.O((""+$APP.S.g(a)).trim().toLowerCase(),"false")},bq=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.t(isNaN(a))&&a>0?a:null):null},cq=function(a){return typeof a==="string"?(a=
3
- a.trim(),$APP.O(a,"")&&$APP.O(a.toLowerCase(),"none")?a:null):null},fq=function(a){var b=$APP.N(a),c=$APP.G(b,$APP.Jj),d=$APP.G(b,$APP.Gk);a=$APP.G(b,$APP.Li);var e=$APP.G(b,$APP.Sk),g=$APP.G(b,$APP.Th),h=$APP.G(b,$APP.yh),k=$APP.G(b,dq),m=$APP.G(b,$APP.Uh);b=$APP.G(b,$APP.Vi);m=Xp(m);b=cq(b);h=$APP.r($APP.r(h)?b==null:h)?$APP.Rl:b!=null?$APP.Jk:$APP.Kh;return $APP.Q([eq,$APP.hi,$APP.Z,$APP.Xj,$APP.Bj,$APP.W,$APP.ul,$APP.Jj,$APP.Gk],[aq(k),$p(a),m,$APP.D.i(h,$APP.Jk)?b:null,h,$APP.I(e),bq(g),function(){var p=
4
- typeof c==="string"?c.trim():null;return $APP.r(p)?p:""}(),function(){var p=typeof d==="string"?d.trim():null;return $APP.r(p)?p:""}()])},gq=function(a){var b=$APP.N(a);a=$APP.G(b,$APP.hi);b=$APP.G(b,$APP.W);return $APP.r(a)?$APP.t(b):a},hq=function(a,b){var c=$APP.N(a);a=$APP.G(c,$APP.Z);var d=$APP.G(c,$APP.Gk);c=$APP.G(c,$APP.Jj);return new $APP.P(null,4,[$APP.Z,Zp(a),$APP.ji,b,$APP.Gk,d,$APP.Jj,c],null)},iq=function(a){var b=$APP.N(a);a=$APP.G(b,eq);b=$APP.G(b,$APP.ul);return $APP.I($APP.r(a)?
5
- b!=null&&b>0:a)},nq=function(a){var b=$APP.l(a,"__xToastRefs");if($APP.r(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("span"),h=document.createElement("slot"),k=document.createElement("span"),m=document.createElement("div"),p=document.createElement("span"),q=document.createElement("span"),w=document.createElement("button"),x=document.createElement("span"),y=document.createElement("div"),
6
- A=document.createElement("div");c.textContent=":host{display:block;color-scheme:light dark;--x-toast-radius:var(--x-radius-lg,12px);--x-toast-padding-y:14px;--x-toast-padding-x:16px;--x-toast-gap:12px;--x-toast-font-size:var(--x-font-size-sm,0.875rem);--x-toast-heading-font-size:0.9375rem;--x-toast-heading-weight:600;--x-toast-min-width:min(280px,calc(100vw - 2rem));--x-toast-max-width:min(480px,calc(100vw - 2rem));--x-toast-border-width:1px;--x-toast-shadow:0 4px 16px rgba(0,0,0,0.12),0 1px 4px rgba(0,0,0,0.08);--x-toast-motion-fast:var(--x-transition-duration,120ms);--x-toast-motion-ease:var(--x-transition-easing,cubic-bezier(0.2,0,0,1));--x-toast-enter-duration:200ms;--x-toast-exit-duration:180ms;--x-toast-press-scale:0.97;--x-toast-disabled-opacity:0.55;--x-toast-focus-ring:rgba(0,0,0,0.6);--x-toast-dismiss-color:rgba(0,0,0,0.50);--x-toast-dismiss-hover-bg:rgba(0,0,0,0.06);--x-toast-progress-height:3px;--x-toast-progress-bg:rgba(0,0,0,0.08);--x-toast-info-bg:var(--x-color-bg,#ffffff);--x-toast-info-border:rgba(0,102,204,0.30);--x-toast-info-color:rgba(15,23,42,0.92);--x-toast-info-icon-color:rgba(0,102,204,0.85);--x-toast-info-progress-fill:rgba(0,102,204,0.70);--x-toast-success-bg:var(--x-color-bg,#ffffff);--x-toast-success-border:rgba(16,140,72,0.30);--x-toast-success-color:rgba(15,23,42,0.92);--x-toast-success-icon-color:rgba(16,140,72,0.85);--x-toast-success-progress-fill:rgba(16,140,72,0.70);--x-toast-warning-bg:var(--x-color-bg,#ffffff);--x-toast-warning-border:rgba(204,120,0,0.40);--x-toast-warning-color:rgba(15,23,42,0.92);--x-toast-warning-icon-color:rgba(180,100,0,0.85);--x-toast-warning-progress-fill:rgba(204,120,0,0.70);--x-toast-error-bg:var(--x-color-bg,#ffffff);--x-toast-error-border:rgba(190,20,40,0.40);--x-toast-error-color:rgba(15,23,42,0.92);--x-toast-error-icon-color:rgba(190,20,40,0.85);--x-toast-error-progress-fill:rgba(190,20,40,0.70);--x-toast-bg:transparent;--x-toast-border-color:transparent;--x-toast-color:inherit;--x-toast-icon-color:inherit;--x-toast-progress-fill:currentColor;}@media (prefers-color-scheme:dark){:host{--x-toast-shadow:0 4px 20px rgba(0,0,0,0.40),0 1px 6px rgba(0,0,0,0.30);--x-toast-focus-ring:rgba(255,255,255,0.75);--x-toast-dismiss-color:rgba(255,255,255,0.65);--x-toast-dismiss-hover-bg:rgba(255,255,255,0.12);--x-toast-progress-bg:rgba(255,255,255,0.10);--x-toast-info-bg:var(--x-color-bg,#1e293b);--x-toast-info-border:rgba(80,160,255,0.35);--x-toast-info-color:rgba(248,250,252,0.92);--x-toast-info-icon-color:rgba(96,165,250,0.90);--x-toast-info-progress-fill:rgba(96,165,250,0.75);--x-toast-success-bg:var(--x-color-bg,#1e293b);--x-toast-success-border:rgba(60,210,120,0.35);--x-toast-success-color:rgba(248,250,252,0.92);--x-toast-success-icon-color:rgba(52,211,153,0.90);--x-toast-success-progress-fill:rgba(52,211,153,0.75);--x-toast-warning-bg:var(--x-color-bg,#1e293b);--x-toast-warning-border:rgba(255,190,90,0.40);--x-toast-warning-color:rgba(248,250,252,0.92);--x-toast-warning-icon-color:rgba(251,191,36,0.90);--x-toast-warning-progress-fill:rgba(251,191,36,0.75);--x-toast-error-bg:var(--x-color-bg,#1e293b);--x-toast-error-border:rgba(255,90,110,0.40);--x-toast-error-color:rgba(248,250,252,0.92);--x-toast-error-icon-color:rgba(248,113,113,0.90);--x-toast-error-progress-fill:rgba(248,113,113,0.75);}}:host([data-type\x3d'info']){--x-toast-bg:var(--x-toast-info-bg);--x-toast-border-color:var(--x-toast-info-border);--x-toast-color:var(--x-toast-info-color);--x-toast-icon-color:var(--x-toast-info-icon-color);--x-toast-progress-fill:var(--x-toast-info-progress-fill);}:host([data-type\x3d'success']){--x-toast-bg:var(--x-toast-success-bg);--x-toast-border-color:var(--x-toast-success-border);--x-toast-color:var(--x-toast-success-color);--x-toast-icon-color:var(--x-toast-success-icon-color);--x-toast-progress-fill:var(--x-toast-success-progress-fill);}:host([data-type\x3d'warning']){--x-toast-bg:var(--x-toast-warning-bg);--x-toast-border-color:var(--x-toast-warning-border);--x-toast-color:var(--x-toast-warning-color);--x-toast-icon-color:var(--x-toast-warning-icon-color);--x-toast-progress-fill:var(--x-toast-warning-progress-fill);}:host([data-type\x3d'error']){--x-toast-bg:var(--x-toast-error-bg);--x-toast-border-color:var(--x-toast-error-border);--x-toast-color:var(--x-toast-error-color);--x-toast-icon-color:var(--x-toast-error-icon-color);--x-toast-progress-fill:var(--x-toast-error-progress-fill);}[part\x3dcontainer]{display:flex;flex-direction:column;background:var(--x-toast-bg);border:var(--x-toast-border-width) solid var(--x-toast-border-color);border-radius:var(--x-toast-radius);box-shadow:var(--x-toast-shadow);color:var(--x-toast-color);min-width:var(--x-toast-min-width);max-width:var(--x-toast-max-width);overflow:hidden;transition:background var(--x-toast-motion-fast) var(--x-toast-motion-ease),border-color var(--x-toast-motion-fast) var(--x-toast-motion-ease),opacity var(--x-toast-motion-fast) var(--x-toast-motion-ease),transform var(--x-toast-motion-fast) var(--x-toast-motion-ease);}[part\x3dinner]{display:flex;align-items:flex-start;gap:var(--x-toast-gap);padding:var(--x-toast-padding-y) var(--x-toast-padding-x);}[part\x3dicon]{flex:0 0 auto;color:var(--x-toast-icon-color);line-height:1;margin-top:0.15em;}slot[name\x3dicon]::slotted(*){display:block;}[part\x3dbody]{flex:1 1 auto;display:flex;flex-direction:column;gap:3px;min-width:0;}[part\x3dheading]{font-size:var(--x-toast-heading-font-size);font-weight:var(--x-toast-heading-weight);line-height:1.2;overflow-wrap:anywhere;}[part\x3dmessage]{font-size:var(--x-toast-font-size);line-height:1.35;overflow-wrap:anywhere;opacity:0.82;}[part\x3ddismiss]{flex:0 0 auto;appearance:none;border:0;background:transparent;color:var(--x-toast-dismiss-color);width:1.5em;height:1.5em;padding:0;margin:0;border-radius:999px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background var(--x-toast-motion-fast) var(--x-toast-motion-ease),transform var(--x-toast-motion-fast) var(--x-toast-motion-ease);}:host(:not([disabled])) [part\x3ddismiss]:hover{background:var(--x-toast-dismiss-hover-bg);}:host(:not([disabled])) [part\x3ddismiss]:active{transform:scale(var(--x-toast-press-scale));}[part\x3ddismiss]:focus{outline:none;}:host(:not([disabled])) [part\x3ddismiss]:focus-visible{outline:2px solid var(--x-toast-focus-ring);outline-offset:2px;}:host([disabled]){opacity:var(--x-toast-disabled-opacity);}:host([disabled]) [part\x3ddismiss]{cursor:default;pointer-events:none;}[part\x3dprogress]{height:var(--x-toast-progress-height);background:var(--x-toast-progress-bg);overflow:hidden;display:none;}[part\x3dprogress-bar]{height:100%;width:100%;background:var(--x-toast-progress-fill);animation:x-toast-progress var(--x-toast-timeout,0ms) linear forwards;animation-play-state:paused;}:host([data-progress-active]) [part\x3dprogress-bar]{animation-play-state:running;}@keyframes x-toast-progress{from{width:100%;}to{width:0%;}}:host([data-entering]) [part\x3dcontainer]{animation:x-toast-enter var(--x-toast-enter-duration) var(--x-toast-motion-ease) both;}@keyframes x-toast-enter{from{opacity:0;transform:translateY(-8px);}to{opacity:1;transform:translateY(0);}}:host([data-exiting]) [part\x3dcontainer]{animation:x-toast-exit var(--x-toast-exit-duration) var(--x-toast-motion-ease) forwards;}@keyframes x-toast-exit{from{opacity:1;transform:translateY(0);}to{opacity:0;transform:translateY(-8px);}}@media (prefers-reduced-motion:reduce){[part\x3dcontainer],[part\x3ddismiss]{transition:none !important;}:host([data-entering]) [part\x3dcontainer],:host([data-exiting]) [part\x3dcontainer]{animation:none !important;}:host([data-progress-active]) [part\x3dprogress-bar]{animation:none !important;}}";
7
- d.setAttribute("part","container");e.setAttribute("part","inner");g.setAttribute("part","icon");g.setAttribute("aria-hidden","true");h.setAttribute("name","icon");k.setAttribute("part","default-icon");h.appendChild(k);g.appendChild(h);m.setAttribute("part","body");p.setAttribute("part","heading");q.setAttribute("part","message");m.appendChild(p);m.appendChild(q);w.setAttribute("part","dismiss");w.setAttribute("type","button");w.setAttribute("aria-label","Dismiss toast");x.setAttribute("aria-hidden",
8
- "true");x.textContent="×";w.appendChild(x);e.appendChild(g);e.appendChild(m);e.appendChild(w);y.setAttribute("part","progress");A.setAttribute("part","progress-bar");y.appendChild(A);d.appendChild(e);d.appendChild(y);b.appendChild(c);b.appendChild(d);b=$APP.Q([jq,$APP.Ml,kq,$APP.Zj,$APP.Bl,lq,$APP.bi,$APP.Zi,$APP.Ei,$APP.uh,$APP.Pi,mq],[A,k,q,w,m,e,b,d,y,g,h,p]);a.__xToastRefs=b;return $APP.l(a,"__xToastRefs")},oq=function(a){return fq($APP.Q([$APP.Li,$APP.Sk,$APP.Th,$APP.yh,dq,$APP.Vi,$APP.Uh,$APP.Jj,
9
- $APP.Gk],[a.getAttribute("dismissible"),a.hasAttribute("disabled"),a.getAttribute("timeout-ms"),a.hasAttribute("icon"),a.getAttribute("show-progress"),a.getAttribute("icon"),a.getAttribute("type"),a.getAttribute("message"),a.getAttribute("heading")]))},qq=function(a){var b=oq(a);if($APP.O($APP.l(a,"__xToastModel"),b)){b=$APP.N(b);var c=$APP.G(b,$APP.Z),d=$APP.G(b,$APP.Gk),e=$APP.G(b,$APP.Jj),g=$APP.G(b,$APP.Bj),h=$APP.G(b,$APP.Xj),k=$APP.G(b,$APP.hi),m=$APP.G(b,$APP.W),p=$APP.G(b,$APP.ul),q=nq(a),
10
- w=$APP.N(q),x=$APP.G(w,$APP.Pi);q=$APP.G(w,mq);var y=$APP.G(w,jq),A=$APP.G(w,$APP.Ml),B=$APP.G(w,kq),E=$APP.G(w,$APP.Zj),H=$APP.G(w,$APP.Zi),F=$APP.G(w,$APP.Ei);w=$APP.G(w,$APP.uh);x=$APP.r(x)?x.assignedNodes().length>0:null;$APP.D.i(g,$APP.Jk)||(h=$APP.G(pq,c),h=$APP.r(h)?h:$APP.G(pq,$APP.wk));g=$APP.t(x)&&$APP.D.i(g,$APP.Rl);x=iq(b);a.setAttribute("data-type",Zp(c));var M=H.setAttribute;c=$APP.D.i(c,$APP.jl)||$APP.D.i(c,$APP.Zh)?"alert":"status";M.call(H,"role",c);q.textContent=d;q.style.display=
11
- $APP.D.i(d,"")?"none":"";B.textContent=e;g?(A.textContent="",w.style.display="none"):(A.textContent=h,w.style.display="inline");$APP.r(k)?(E.disabled=$APP.I(m),E.style.display="inline-flex"):(E.disabled=!0,E.style.display="none");x?(F.style.display="block",y.style.setProperty("--x-toast-timeout",""+$APP.S.g(p)+"ms")):F.style.display="none";d=$APP.r(k)?$APP.t(m):k;a.tabIndex=$APP.r(d)?0:-1;$APP.r(m)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");$APP.r(d)?a.setAttribute("aria-keyshortcuts",
12
- "Escape"):a.removeAttribute("aria-keyshortcuts");a.__xToastModel=b}},rq=function(){return $APP.I(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},sq=function(a){a=typeof a==="string"?a.trim():"";return $APP.D.i(a,"")||$APP.D.i(a,"0")||$APP.D.i(a,"0ms")||$APP.D.i(a,"0s")?0:$APP.r(a.endsWith("ms"))?(a=parseFloat(a.slice(0,a.length-2)),$APP.r(isNaN(a))?0:Math.max(0,Math.round(a))):$APP.r(a.endsWith("s"))?(a=parseFloat(a.slice(0,a.length-1)),$APP.r(isNaN(a))?0:Math.max(0,Math.round(1E3*
13
- a))):0},tq=function(a){var b=window.getComputedStyle(a);a=sq(b.getPropertyValue("--x-toast-exit-duration"));b=sq(b.getPropertyValue("--x-motion-exit-duration"));return a>0?a:b>0?b:180},uq=function(a){var b=$APP.l(a,"__xToastTimeout");$APP.r(b)&&(clearTimeout(b),a.__xToastTimeout=null)},wq=function(a){uq(a);var b=function(){var c=$APP.l(a,"__xToastModel");return $APP.r(c)?c:oq(a)}();$APP.r(function(){var c=gq(b);return $APP.r(c)?typeof $APP.ul.g(b)==="number"&&$APP.t($APP.l(a,"__xToastExiting")):c}())&&
14
- $APP.n(a,"__xToastTimeout",setTimeout(function(){a.__xToastTimeout=null;if($APP.r(function(){var d=a.isConnected;return $APP.r(d)?$APP.t($APP.l(a,"__xToastExiting")):d}())){var c=function(){var d=$APP.l(a,"__xToastModel");return $APP.r(d)?d:oq(a)}();if($APP.r(gq(c)))return c=$APP.nh(hq(c,"timeout")),c=new CustomEvent("x-toast-dismiss",{detail:c,bubbles:!0,composed:!0,cancelable:!0}),c=a.dispatchEvent(c),$APP.r(c)?vq.g?vq.g(a):vq.call(null,a):null}return null},$APP.ul.g(b)));return null},xq=function(a){var b=
15
- $APP.l(a,"__xToastModel");$APP.r($APP.r(b)?iq(b):b)&&a.setAttribute("data-progress-active","");return wq(a)},yq=function(a){if(!$APP.r($APP.l(a,"__xToastEntered")))if(a.__xToastEntered=!0,a.setAttribute("data-entering",""),rq())a.removeAttribute("data-entering"),xq(a);else{var b=nq(a);b=$APP.N(b);var c=$APP.G(b,$APP.Zi);c.addEventListener("animationend",function g(e){return $APP.D.i(e.target,c)?(c.removeEventListener("animationend",g),a.removeAttribute("data-entering"),xq(a)):null})}},vq=function(a){if(!$APP.r($APP.l(a,
16
- "__xToastExiting"))){a.__xToastExiting=!0;uq(a);a.removeAttribute("data-entering");a.removeAttribute("data-progress-active");var b=tq(a);if(b===0||rq())a.remove();else{var c=nq(a);c=$APP.N(c);var d=$APP.G(c,$APP.Zi),e=function k(h){return $APP.D.i(h.target,d)?(d.removeEventListener("animationend",k),h=$APP.l(a,"__xToastExitTimer"),$APP.r(h)&&(clearTimeout(h),a.__xToastExitTimer=null),$APP.r(a.isConnected)?a.remove():null):null};a.setAttribute("data-exiting","");d.addEventListener("animationend",e);
17
- $APP.n(a,"__xToastExitTimer",setTimeout(function(){var h=a.isConnected;return $APP.r($APP.r(h)?$APP.l(a,"__xToastExiting"):h)?(d.removeEventListener("animationend",e),a.__xToastExitTimer=null,a.remove()):null},b+60))}}return null},zq=function(a,b){var c=$APP.l(a,"__xToastModel");c=$APP.r(c)?c:oq(a);b=$APP.nh(hq(c,b));b=new CustomEvent("x-toast-dismiss",{detail:b,bubbles:!0,composed:!0,cancelable:!0});b=a.dispatchEvent(b);$APP.r(b)&&vq(a)},Aq=function(a,b){var c=function(){var d=$APP.l(a,"__xToastModel");
18
- return $APP.r(d)?d:oq(a)}();$APP.r(function(){var d=gq(c);return $APP.r(d)?$APP.t($APP.l(a,"__xToastExiting")):d}())&&(b.preventDefault(),zq(a,"button"));return null},Bq=function(a,b){if($APP.D.i(b.key,"Escape")){var c=function(){var d=$APP.l(a,"__xToastModel");return $APP.r(d)?d:oq(a)}();$APP.r(function(){var d=gq(c);return $APP.r(d)?$APP.t($APP.l(a,"__xToastExiting")):d}())&&(b.preventDefault(),zq(a,"keyboard"))}return null},Cq=function(a){function b(e){return Bq(a,e)}function c(e){return Aq(a,
19
- e)}var d=nq(a);d=$APP.N(d);$APP.G(d,$APP.Zj).addEventListener("click",c);a.addEventListener("keydown",b);$APP.n(a,"__xToastHandlers",{click:c,keydown:b})},Dq=function(a){uq(a);var b=$APP.l(a,"__xToastExitTimer");$APP.r(b)&&(clearTimeout(b),a.__xToastExitTimer=null);b=$APP.l(a,"__xToastHandlers");var c=$APP.l(a,"__xToastRefs");if($APP.r($APP.r(b)?c:b)){c=$APP.Zj.g(c);var d=$APP.l(b,"click");b=$APP.l(b,"keydown");$APP.r(d)&&c.removeEventListener("click",d);$APP.r(b)&&a.removeEventListener("keydown",
20
- b)}a.__xToastHandlers=null},Eq=function(a){Object.defineProperty(a,"type",{get:function(){var b=this.getAttribute("type");return $APP.r(b)?b:"info"},set:function(b){return $APP.r(b)?this.setAttribute("type",""+$APP.S.g(b)):this.removeAttribute("type")},enumerable:!0,configurable:!0});Object.defineProperty(a,"heading",{get:function(){var b=this.getAttribute("heading");return $APP.r(b)?b:""},set:function(b){return $APP.r(b)?this.setAttribute("heading",""+$APP.S.g(b)):this.removeAttribute("heading")},
21
- enumerable:!0,configurable:!0});Object.defineProperty(a,"message",{get:function(){var b=this.getAttribute("message");return $APP.r(b)?b:""},set:function(b){return $APP.r(b)?this.setAttribute("message",""+$APP.S.g(b)):this.removeAttribute("message")},enumerable:!0,configurable:!0});Object.defineProperty(a,"icon",{get:function(){return this.getAttribute("icon")},set:function(b){return $APP.r(b)?this.setAttribute("icon",""+$APP.S.g(b)):this.removeAttribute("icon")},enumerable:!0,configurable:!0});Object.defineProperty(a,
22
- "dismissible",{get:function(){return $p(this.getAttribute("dismissible"))},set:function(b){return $APP.r(b)?this.setAttribute("dismissible",""):this.setAttribute("dismissible","false")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.r(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"timeoutMs",{get:function(){return bq(this.getAttribute("timeout-ms"))},
23
- set:function(b){return b==null?this.removeAttribute("timeout-ms"):this.setAttribute("timeout-ms",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"showProgress",{get:function(){return aq(this.getAttribute("show-progress"))},set:function(b){return $APP.r(b)?this.setAttribute("show-progress",""):this.removeAttribute("show-progress")},enumerable:!0,configurable:!0})},Fq=function(a){a.dismiss=function(b){var c=$APP.t($APP.l(this,"__xToastExiting"));$APP.r(c?this.isConnected:
24
- c)&&zq(this,typeof b==="string"?b:"api");return null}},Hq=function(){var a=class extends HTMLElement{};a.observedAttributes=Gq;a.prototype.connectedCallback=function(){nq(this);Dq(this);Cq(this);qq(this);yq(this);return null};a.prototype.disconnectedCallback=function(){Dq(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&(qq(this),$APP.r(this.isConnected)&&wq(this));return null};Eq(a.prototype);Fq(a.prototype);return a},Iq=function(){$APP.r(customElements.get("x-toast"))||
25
- customElements.define("x-toast",Hq());return null},mq=new $APP.K(null,"heading-el","heading-el",-1277272161),eq=new $APP.K(null,"show-progress?","show-progress?",-1681518912),lq=new $APP.K(null,"inner","inner",-1383171215),kq=new $APP.K(null,"message-el","message-el",-683533234),jq=new $APP.K(null,"progress-bar","progress-bar",-123877022),dq=new $APP.K(null,"show-progress-attr","show-progress-attr",1680262066);var Gq="type heading message icon dismissible disabled timeout-ms show-progress".split(" ");$APP.Sd(["x-toast-dismiss",new $APP.P(null,2,[$APP.U,new $APP.P(null,4,[$APP.Z,$APP.X,$APP.ji,$APP.X,$APP.Gk,$APP.X,$APP.Jj,$APP.X],null),$APP.ll,!0],null)]);
26
- var Wp=new $APP.P(null,4,["info",$APP.wk,"success",$APP.Sj,"warning",$APP.jl,"error",$APP.Zh],null),Yp=new $APP.P(null,4,[$APP.wk,"info",$APP.Sj,"success",$APP.jl,"warning",$APP.Zh,"error"],null),pq=new $APP.P(null,4,[$APP.wk,"ℹ",$APP.Sj,"✓",$APP.jl,"!",$APP.Zh,"⨯"],null);$APP.ka("baredom.exports.x_toast.init",Iq);export const init=Iq;
2
+ var nq=function(a){a=$APP.D(mq,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.Ek},pq=function(a){a=$APP.D(oq,a);return $APP.n(a)?a:"info"},qq=function(a){return a==null?!0:$APP.N((""+$APP.T.g(a)).trim().toLowerCase(),"false")},rq=function(a){return a==null?!1:$APP.N((""+$APP.T.g(a)).trim().toLowerCase(),"false")},sq=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.r(isNaN(a))&&a>0?a:null):null},tq=function(a){return typeof a==="string"?(a=
3
+ a.trim(),$APP.N(a,"")&&$APP.N(a.toLowerCase(),"none")?a:null):null},wq=function(a){var b=$APP.M(a),c=$APP.D(b,$APP.Wj),d=$APP.D(b,$APP.Pk);a=$APP.D(b,$APP.Ri);var e=$APP.D(b,$APP.al),g=$APP.D(b,$APP.ai),h=$APP.D(b,$APP.Ah),l=$APP.D(b,uq),m=$APP.D(b,$APP.bi);b=$APP.D(b,$APP.aj);m=nq(m);b=tq(b);h=$APP.n($APP.n(h)?b==null:h)?$APP.jm:b!=null?$APP.Sk:$APP.Sh;return $APP.xf([vq,$APP.pi,$APP.Z,$APP.lk,$APP.Oj,$APP.W,$APP.Ml,$APP.Wj,$APP.Pk],[rq(l),qq(a),m,$APP.C.i(h,$APP.Sk)?b:null,h,$APP.F(e),sq(g),function(){var p=
4
+ typeof c==="string"?c.trim():null;return $APP.n(p)?p:""}(),function(){var p=typeof d==="string"?d.trim():null;return $APP.n(p)?p:""}()])},xq=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.pi);b=$APP.D(b,$APP.W);return $APP.n(a)?$APP.r(b):a},yq=function(a,b){var c=$APP.M(a);a=$APP.D(c,$APP.Z);var d=$APP.D(c,$APP.Pk);c=$APP.D(c,$APP.Wj);return new $APP.R(null,4,[$APP.Z,pq(a),$APP.ri,b,$APP.Pk,d,$APP.Wj,c],null)},zq=function(a){var b=$APP.M(a);a=$APP.D(b,vq);b=$APP.D(b,$APP.Ml);return $APP.F($APP.n(a)?
5
+ b!=null&&b>0:a)},Eq=function(a){var b=$APP.k(a,"__xToastRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("span"),h=document.createElement("slot"),l=document.createElement("span"),m=document.createElement("div"),p=document.createElement("span"),q=document.createElement("span"),v=document.createElement("button"),x=document.createElement("span"),y=document.createElement("div"),
6
+ A=document.createElement("div");c.textContent=":host{display:block;color-scheme:light dark;--x-toast-radius:var(--x-radius-lg,12px);--x-toast-padding-y:14px;--x-toast-padding-x:16px;--x-toast-gap:12px;--x-toast-font-size:var(--x-font-size-sm,0.875rem);--x-toast-heading-font-size:0.9375rem;--x-toast-heading-weight:600;--x-toast-min-width:min(280px,calc(100vw - 2rem));--x-toast-max-width:min(480px,calc(100vw - 2rem));--x-toast-border-width:1px;--x-toast-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12),0 1px 4px rgba(0,0,0,0.08));--x-toast-motion-fast:var(--x-transition-duration,120ms);--x-toast-motion-ease:var(--x-transition-easing,cubic-bezier(0.2,0,0,1));--x-toast-enter-duration:200ms;--x-toast-exit-duration:180ms;--x-toast-press-scale:0.97;--x-toast-disabled-opacity:0.55;--x-toast-focus-ring:var(--x-color-focus-ring,rgba(0,0,0,0.6));--x-toast-dismiss-color:var(--x-color-text-muted,rgba(0,0,0,0.50));--x-toast-dismiss-hover-bg:var(--x-color-surface-hover,rgba(0,0,0,0.06));--x-toast-progress-height:3px;--x-toast-progress-bg:var(--x-color-border,rgba(0,0,0,0.08));--x-toast-info-bg:var(--x-color-bg,#ffffff);--x-toast-info-border:rgba(0,102,204,0.30);--x-toast-info-color:rgba(15,23,42,0.92);--x-toast-info-icon-color:rgba(0,102,204,0.85);--x-toast-info-progress-fill:rgba(0,102,204,0.70);--x-toast-success-bg:var(--x-color-bg,#ffffff);--x-toast-success-border:rgba(16,140,72,0.30);--x-toast-success-color:rgba(15,23,42,0.92);--x-toast-success-icon-color:rgba(16,140,72,0.85);--x-toast-success-progress-fill:rgba(16,140,72,0.70);--x-toast-warning-bg:var(--x-color-bg,#ffffff);--x-toast-warning-border:rgba(204,120,0,0.40);--x-toast-warning-color:rgba(15,23,42,0.92);--x-toast-warning-icon-color:rgba(180,100,0,0.85);--x-toast-warning-progress-fill:rgba(204,120,0,0.70);--x-toast-error-bg:var(--x-color-bg,#ffffff);--x-toast-error-border:rgba(190,20,40,0.40);--x-toast-error-color:rgba(15,23,42,0.92);--x-toast-error-icon-color:rgba(190,20,40,0.85);--x-toast-error-progress-fill:rgba(190,20,40,0.70);--x-toast-bg:transparent;--x-toast-border-color:transparent;--x-toast-color:inherit;--x-toast-icon-color:inherit;--x-toast-progress-fill:currentColor;}@media (prefers-color-scheme:dark){:host{--x-toast-shadow:var(--x-shadow-md,0 4px 20px rgba(0,0,0,0.40),0 1px 6px rgba(0,0,0,0.30));--x-toast-focus-ring:var(--x-color-focus-ring,rgba(255,255,255,0.75));--x-toast-dismiss-color:var(--x-color-text-muted,rgba(255,255,255,0.65));--x-toast-dismiss-hover-bg:var(--x-color-surface-hover,rgba(255,255,255,0.12));--x-toast-progress-bg:var(--x-color-border,rgba(255,255,255,0.10));--x-toast-info-bg:var(--x-color-bg,#1e293b);--x-toast-info-border:rgba(80,160,255,0.35);--x-toast-info-color:rgba(248,250,252,0.92);--x-toast-info-icon-color:rgba(96,165,250,0.90);--x-toast-info-progress-fill:rgba(96,165,250,0.75);--x-toast-success-bg:var(--x-color-bg,#1e293b);--x-toast-success-border:rgba(60,210,120,0.35);--x-toast-success-color:rgba(248,250,252,0.92);--x-toast-success-icon-color:rgba(52,211,153,0.90);--x-toast-success-progress-fill:rgba(52,211,153,0.75);--x-toast-warning-bg:var(--x-color-bg,#1e293b);--x-toast-warning-border:rgba(255,190,90,0.40);--x-toast-warning-color:rgba(248,250,252,0.92);--x-toast-warning-icon-color:rgba(251,191,36,0.90);--x-toast-warning-progress-fill:rgba(251,191,36,0.75);--x-toast-error-bg:var(--x-color-bg,#1e293b);--x-toast-error-border:rgba(255,90,110,0.40);--x-toast-error-color:rgba(248,250,252,0.92);--x-toast-error-icon-color:rgba(248,113,113,0.90);--x-toast-error-progress-fill:rgba(248,113,113,0.75);}}:host([data-type\x3d'info']){--x-toast-bg:var(--x-toast-info-bg);--x-toast-border-color:var(--x-toast-info-border);--x-toast-color:var(--x-toast-info-color);--x-toast-icon-color:var(--x-toast-info-icon-color);--x-toast-progress-fill:var(--x-toast-info-progress-fill);}:host([data-type\x3d'success']){--x-toast-bg:var(--x-toast-success-bg);--x-toast-border-color:var(--x-toast-success-border);--x-toast-color:var(--x-toast-success-color);--x-toast-icon-color:var(--x-toast-success-icon-color);--x-toast-progress-fill:var(--x-toast-success-progress-fill);}:host([data-type\x3d'warning']){--x-toast-bg:var(--x-toast-warning-bg);--x-toast-border-color:var(--x-toast-warning-border);--x-toast-color:var(--x-toast-warning-color);--x-toast-icon-color:var(--x-toast-warning-icon-color);--x-toast-progress-fill:var(--x-toast-warning-progress-fill);}:host([data-type\x3d'error']){--x-toast-bg:var(--x-toast-error-bg);--x-toast-border-color:var(--x-toast-error-border);--x-toast-color:var(--x-toast-error-color);--x-toast-icon-color:var(--x-toast-error-icon-color);--x-toast-progress-fill:var(--x-toast-error-progress-fill);}[part\x3dcontainer]{display:flex;flex-direction:column;background:var(--x-toast-bg);border:var(--x-toast-border-width) solid var(--x-toast-border-color);border-radius:var(--x-toast-radius);box-shadow:var(--x-toast-shadow);color:var(--x-toast-color);min-width:var(--x-toast-min-width);max-width:var(--x-toast-max-width);overflow:hidden;transition:background var(--x-toast-motion-fast) var(--x-toast-motion-ease),border-color var(--x-toast-motion-fast) var(--x-toast-motion-ease),opacity var(--x-toast-motion-fast) var(--x-toast-motion-ease),transform var(--x-toast-motion-fast) var(--x-toast-motion-ease);}[part\x3dinner]{display:flex;align-items:flex-start;gap:var(--x-toast-gap);padding:var(--x-toast-padding-y) var(--x-toast-padding-x);}[part\x3dicon]{flex:0 0 auto;color:var(--x-toast-icon-color);line-height:1;margin-top:0.15em;}slot[name\x3dicon]::slotted(*){display:block;}[part\x3dbody]{flex:1 1 auto;display:flex;flex-direction:column;gap:3px;min-width:0;}[part\x3dheading]{font-size:var(--x-toast-heading-font-size);font-weight:var(--x-toast-heading-weight);line-height:1.2;overflow-wrap:anywhere;}[part\x3dmessage]{font-size:var(--x-toast-font-size);line-height:1.35;overflow-wrap:anywhere;opacity:0.82;}[part\x3ddismiss]{flex:0 0 auto;appearance:none;border:0;background:transparent;color:var(--x-toast-dismiss-color);width:1.5em;height:1.5em;padding:0;margin:0;border-radius:999px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background var(--x-toast-motion-fast) var(--x-toast-motion-ease),transform var(--x-toast-motion-fast) var(--x-toast-motion-ease);}:host(:not([disabled])) [part\x3ddismiss]:hover{background:var(--x-toast-dismiss-hover-bg);}:host(:not([disabled])) [part\x3ddismiss]:active{transform:scale(var(--x-toast-press-scale));}[part\x3ddismiss]:focus{outline:none;}:host(:not([disabled])) [part\x3ddismiss]:focus-visible{outline:2px solid var(--x-toast-focus-ring);outline-offset:2px;}:host([disabled]){opacity:var(--x-toast-disabled-opacity);}:host([disabled]) [part\x3ddismiss]{cursor:default;pointer-events:none;}[part\x3dprogress]{height:var(--x-toast-progress-height);background:var(--x-toast-progress-bg);overflow:hidden;display:none;}[part\x3dprogress-bar]{height:100%;width:100%;background:var(--x-toast-progress-fill);animation:x-toast-progress var(--x-toast-timeout,0ms) linear forwards;animation-play-state:paused;}:host([data-progress-active]) [part\x3dprogress-bar]{animation-play-state:running;}@keyframes x-toast-progress{from{width:100%;}to{width:0%;}}:host([data-entering]) [part\x3dcontainer]{animation:x-toast-enter var(--x-toast-enter-duration) var(--x-toast-motion-ease) both;}@keyframes x-toast-enter{from{opacity:0;transform:translateY(-8px);}to{opacity:1;transform:translateY(0);}}:host([data-exiting]) [part\x3dcontainer]{animation:x-toast-exit var(--x-toast-exit-duration) var(--x-toast-motion-ease) forwards;}@keyframes x-toast-exit{from{opacity:1;transform:translateY(0);}to{opacity:0;transform:translateY(-8px);}}@media (prefers-reduced-motion:reduce){[part\x3dcontainer],[part\x3ddismiss]{transition:none !important;}:host([data-entering]) [part\x3dcontainer],:host([data-exiting]) [part\x3dcontainer]{animation:none !important;}:host([data-progress-active]) [part\x3dprogress-bar]{animation:none !important;}}";
7
+ d.setAttribute("part","container");e.setAttribute("part","inner");g.setAttribute("part","icon");g.setAttribute("aria-hidden","true");h.setAttribute("name","icon");l.setAttribute("part","default-icon");h.appendChild(l);g.appendChild(h);m.setAttribute("part","body");p.setAttribute("part","heading");q.setAttribute("part","message");m.appendChild(p);m.appendChild(q);v.setAttribute("part","dismiss");v.setAttribute("type","button");v.setAttribute("aria-label","Dismiss toast");x.setAttribute("aria-hidden",
8
+ "true");x.textContent="×";v.appendChild(x);e.appendChild(g);e.appendChild(m);e.appendChild(v);y.setAttribute("part","progress");A.setAttribute("part","progress-bar");y.appendChild(A);d.appendChild(e);d.appendChild(y);b.appendChild(c);b.appendChild(d);b=$APP.xf([Aq,$APP.dm,Bq,$APP.nk,$APP.Tl,Cq,$APP.ji,$APP.ej,$APP.Ki,$APP.wh,$APP.Vi,Dq],[A,l,q,v,m,e,b,d,y,g,h,p]);a.__xToastRefs=b;return $APP.k(a,"__xToastRefs")},Fq=function(a){return wq($APP.xf([$APP.Ri,$APP.al,$APP.ai,$APP.Ah,uq,$APP.aj,$APP.bi,
9
+ $APP.Wj,$APP.Pk],[a.getAttribute("dismissible"),a.hasAttribute("disabled"),a.getAttribute("timeout-ms"),a.hasAttribute("icon"),a.getAttribute("show-progress"),a.getAttribute("icon"),a.getAttribute("type"),a.getAttribute("message"),a.getAttribute("heading")]))},Hq=function(a){var b=Fq(a);if($APP.N($APP.k(a,"__xToastModel"),b)){b=$APP.M(b);var c=$APP.D(b,$APP.Z),d=$APP.D(b,$APP.Pk),e=$APP.D(b,$APP.Wj),g=$APP.D(b,$APP.Oj),h=$APP.D(b,$APP.lk),l=$APP.D(b,$APP.pi),m=$APP.D(b,$APP.W),p=$APP.D(b,$APP.Ml),
10
+ q=Eq(a),v=$APP.M(q),x=$APP.D(v,$APP.Vi);q=$APP.D(v,Dq);var y=$APP.D(v,Aq),A=$APP.D(v,$APP.dm),B=$APP.D(v,Bq),E=$APP.D(v,$APP.nk),H=$APP.D(v,$APP.ej),G=$APP.D(v,$APP.Ki);v=$APP.D(v,$APP.wh);x=$APP.n(x)?x.assignedNodes().length>0:null;$APP.C.i(g,$APP.Sk)||(h=$APP.D(Gq,c),h=$APP.n(h)?h:$APP.D(Gq,$APP.Ek));g=$APP.r(x)&&$APP.C.i(g,$APP.jm);x=zq(b);a.setAttribute("data-type",pq(c));var I=H.setAttribute;c=$APP.C.i(c,$APP.ul)||$APP.C.i(c,$APP.gi)?"alert":"status";I.call(H,"role",c);q.textContent=d;q.style.display=
11
+ $APP.C.i(d,"")?"none":"";B.textContent=e;g?(A.textContent="",v.style.display="none"):(A.textContent=h,v.style.display="inline");$APP.n(l)?(E.disabled=$APP.F(m),E.style.display="inline-flex"):(E.disabled=!0,E.style.display="none");x?(G.style.display="block",y.style.setProperty("--x-toast-timeout",""+$APP.T.g(p)+"ms")):G.style.display="none";d=$APP.n(l)?$APP.r(m):l;a.tabIndex=$APP.n(d)?0:-1;$APP.n(m)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");$APP.n(d)?a.setAttribute("aria-keyshortcuts",
12
+ "Escape"):a.removeAttribute("aria-keyshortcuts");a.__xToastModel=b}},Iq=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},Jq=function(a){a=typeof a==="string"?a.trim():"";return $APP.C.i(a,"")||$APP.C.i(a,"0")||$APP.C.i(a,"0ms")||$APP.C.i(a,"0s")?0:$APP.n(a.endsWith("ms"))?(a=parseFloat(a.slice(0,a.length-2)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(a))):$APP.n(a.endsWith("s"))?(a=parseFloat(a.slice(0,a.length-1)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(1E3*
13
+ a))):0},Kq=function(a){var b=window.getComputedStyle(a);a=Jq(b.getPropertyValue("--x-toast-exit-duration"));b=Jq(b.getPropertyValue("--x-motion-exit-duration"));return a>0?a:b>0?b:180},Lq=function(a){var b=$APP.k(a,"__xToastTimeout");$APP.n(b)&&(clearTimeout(b),a.__xToastTimeout=null)},Nq=function(a){Lq(a);var b=function(){var c=$APP.k(a,"__xToastModel");return $APP.n(c)?c:Fq(a)}();$APP.n(function(){var c=xq(b);return $APP.n(c)?typeof $APP.Ml.g(b)==="number"&&$APP.r($APP.k(a,"__xToastExiting")):c}())&&
14
+ $APP.ia(a,"__xToastTimeout",setTimeout(function(){a.__xToastTimeout=null;if($APP.n(function(){var d=a.isConnected;return $APP.n(d)?$APP.r($APP.k(a,"__xToastExiting")):d}())){var c=function(){var d=$APP.k(a,"__xToastModel");return $APP.n(d)?d:Fq(a)}();if($APP.n(xq(c)))return c=$APP.ph(yq(c,"timeout")),c=new CustomEvent("x-toast-dismiss",{detail:c,bubbles:!0,composed:!0,cancelable:!0}),c=a.dispatchEvent(c),$APP.n(c)?Mq.g?Mq.g(a):Mq.call(null,a):null}return null},$APP.Ml.g(b)));return null},Oq=function(a){var b=
15
+ $APP.k(a,"__xToastModel");$APP.n($APP.n(b)?zq(b):b)&&a.setAttribute("data-progress-active","");return Nq(a)},Pq=function(a){if(!$APP.n($APP.k(a,"__xToastEntered")))if(a.__xToastEntered=!0,a.setAttribute("data-entering",""),Iq())a.removeAttribute("data-entering"),Oq(a);else{var b=Eq(a);b=$APP.M(b);var c=$APP.D(b,$APP.ej);c.addEventListener("animationend",function g(e){return $APP.C.i(e.target,c)?(c.removeEventListener("animationend",g),a.removeAttribute("data-entering"),Oq(a)):null})}},Mq=function(a){if(!$APP.n($APP.k(a,
16
+ "__xToastExiting"))){a.__xToastExiting=!0;Lq(a);a.removeAttribute("data-entering");a.removeAttribute("data-progress-active");var b=Kq(a);if(b===0||Iq())a.remove();else{var c=Eq(a);c=$APP.M(c);var d=$APP.D(c,$APP.ej),e=function l(h){return $APP.C.i(h.target,d)?(d.removeEventListener("animationend",l),h=$APP.k(a,"__xToastExitTimer"),$APP.n(h)&&(clearTimeout(h),a.__xToastExitTimer=null),$APP.n(a.isConnected)?a.remove():null):null};a.setAttribute("data-exiting","");d.addEventListener("animationend",e);
17
+ $APP.ia(a,"__xToastExitTimer",setTimeout(function(){var h=a.isConnected;return $APP.n($APP.n(h)?$APP.k(a,"__xToastExiting"):h)?(d.removeEventListener("animationend",e),a.__xToastExitTimer=null,a.remove()):null},b+60))}}return null},Qq=function(a,b){var c=$APP.k(a,"__xToastModel");c=$APP.n(c)?c:Fq(a);b=$APP.ph(yq(c,b));b=new CustomEvent("x-toast-dismiss",{detail:b,bubbles:!0,composed:!0,cancelable:!0});b=a.dispatchEvent(b);$APP.n(b)&&Mq(a)},Rq=function(a,b){var c=function(){var d=$APP.k(a,"__xToastModel");
18
+ return $APP.n(d)?d:Fq(a)}();$APP.n(function(){var d=xq(c);return $APP.n(d)?$APP.r($APP.k(a,"__xToastExiting")):d}())&&(b.preventDefault(),Qq(a,"button"));return null},Sq=function(a,b){if($APP.C.i(b.key,"Escape")){var c=function(){var d=$APP.k(a,"__xToastModel");return $APP.n(d)?d:Fq(a)}();$APP.n(function(){var d=xq(c);return $APP.n(d)?$APP.r($APP.k(a,"__xToastExiting")):d}())&&(b.preventDefault(),Qq(a,"keyboard"))}return null},Tq=function(a){function b(e){return Sq(a,e)}function c(e){return Rq(a,
19
+ e)}var d=Eq(a);d=$APP.M(d);$APP.D(d,$APP.nk).addEventListener("click",c);a.addEventListener("keydown",b);$APP.ia(a,"__xToastHandlers",{click:c,keydown:b})},Uq=function(a){Lq(a);var b=$APP.k(a,"__xToastExitTimer");$APP.n(b)&&(clearTimeout(b),a.__xToastExitTimer=null);b=$APP.k(a,"__xToastHandlers");var c=$APP.k(a,"__xToastRefs");if($APP.n($APP.n(b)?c:b)){c=$APP.nk.g(c);var d=$APP.k(b,"click");b=$APP.k(b,"keydown");$APP.n(d)&&c.removeEventListener("click",d);$APP.n(b)&&a.removeEventListener("keydown",
20
+ b)}a.__xToastHandlers=null},Vq=function(a){Object.defineProperty(a,"type",{get:function(){var b=this.getAttribute("type");return $APP.n(b)?b:"info"},set:function(b){return $APP.n(b)?this.setAttribute("type",""+$APP.T.g(b)):this.removeAttribute("type")},enumerable:!0,configurable:!0});Object.defineProperty(a,"heading",{get:function(){var b=this.getAttribute("heading");return $APP.n(b)?b:""},set:function(b){return $APP.n(b)?this.setAttribute("heading",""+$APP.T.g(b)):this.removeAttribute("heading")},
21
+ enumerable:!0,configurable:!0});Object.defineProperty(a,"message",{get:function(){var b=this.getAttribute("message");return $APP.n(b)?b:""},set:function(b){return $APP.n(b)?this.setAttribute("message",""+$APP.T.g(b)):this.removeAttribute("message")},enumerable:!0,configurable:!0});Object.defineProperty(a,"icon",{get:function(){return this.getAttribute("icon")},set:function(b){return $APP.n(b)?this.setAttribute("icon",""+$APP.T.g(b)):this.removeAttribute("icon")},enumerable:!0,configurable:!0});Object.defineProperty(a,
22
+ "dismissible",{get:function(){return qq(this.getAttribute("dismissible"))},set:function(b){return $APP.n(b)?this.setAttribute("dismissible",""):this.setAttribute("dismissible","false")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"timeoutMs",{get:function(){return sq(this.getAttribute("timeout-ms"))},
23
+ set:function(b){return b==null?this.removeAttribute("timeout-ms"):this.setAttribute("timeout-ms",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"showProgress",{get:function(){return rq(this.getAttribute("show-progress"))},set:function(b){return $APP.n(b)?this.setAttribute("show-progress",""):this.removeAttribute("show-progress")},enumerable:!0,configurable:!0})},Wq=function(a){a.dismiss=function(b){var c=$APP.r($APP.k(this,"__xToastExiting"));$APP.n(c?this.isConnected:
24
+ c)&&Qq(this,typeof b==="string"?b:"api");return null}},Yq=function(){var a=class extends HTMLElement{};a.observedAttributes=Xq;a.prototype.connectedCallback=function(){Eq(this);Uq(this);Tq(this);Hq(this);Pq(this);return null};a.prototype.disconnectedCallback=function(){Uq(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&(Hq(this),$APP.n(this.isConnected)&&Nq(this));return null};Vq(a.prototype);Wq(a.prototype);return a},Zq=function(){$APP.n(customElements.get("x-toast"))||
25
+ customElements.define("x-toast",Yq());return null},Dq=new $APP.K(null,"heading-el","heading-el",-1277272161),vq=new $APP.K(null,"show-progress?","show-progress?",-1681518912),Cq=new $APP.K(null,"inner","inner",-1383171215),Bq=new $APP.K(null,"message-el","message-el",-683533234),Aq=new $APP.K(null,"progress-bar","progress-bar",-123877022),uq=new $APP.K(null,"show-progress-attr","show-progress-attr",1680262066);var Xq="type heading message icon dismissible disabled timeout-ms show-progress".split(" ");$APP.Pd(["x-toast-dismiss",new $APP.R(null,2,[$APP.yj,new $APP.R(null,4,[$APP.Z,$APP.X,$APP.ri,$APP.X,$APP.Pk,$APP.X,$APP.Wj,$APP.X],null),$APP.wl,!0],null)]);
26
+ var mq=new $APP.R(null,4,["info",$APP.Ek,"success",$APP.gk,"warning",$APP.ul,"error",$APP.gi],null),oq=new $APP.R(null,4,[$APP.Ek,"info",$APP.gk,"success",$APP.ul,"warning",$APP.gi,"error"],null),Gq=new $APP.R(null,4,[$APP.Ek,"ℹ",$APP.gk,"✓",$APP.ul,"!",$APP.gi,"⨯"],null);$APP.fa("baredom.exports.x_toast.init",Zq);export const init=Zq;
package/dist/x-toaster.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Hs=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.J(Gs,a)?a:"top-end"},Is=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.t(isNaN(a))&&a>0?Math.floor(a):null):null},Ks=function(a){if(!$APP.r($APP.l(a,"__xToasterRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");c.textContent=Js;b.appendChild(c);b.appendChild(d);a.__xToasterRefs=new $APP.P(null,2,[$APP.bi,b,$APP.Kk,d],null)}},Ns=function(a){a=
3
- new $APP.P(null,3,[$APP.nj,a.getAttribute("position"),Ls,a.getAttribute("max-toasts"),$APP.Oh,a.getAttribute("label")],null);var b=$APP.N(a),c=$APP.G(b,$APP.nj);a=$APP.G(b,Ls);b=$APP.G(b,$APP.Oh);c=Hs(c);a=Is(a);return new $APP.P(null,3,[$APP.Sl,c,Ms,$APP.r(a)?a:5,$APP.T,typeof b==="string"&&$APP.O(b.trim(),"")?b:"Notifications"],null)},Os=function(a){var b=Ns(a);if($APP.O($APP.l(a,"__xToasterModel"),b)){b=$APP.N(b);var c=$APP.G(b,$APP.Sl),d=$APP.G(b,$APP.T);Ks(a);a.setAttribute("role","region");
4
- a.setAttribute("aria-label",d);a.setAttribute("data-position",c);a.__xToasterModel=b}},Ps=function(a){function b(c){var d=c.detail;if($APP.O($APP.l(d,"reason"),"toaster-remove")){c.preventDefault();var e=$APP.l(d,"type");var g=$APP.l(d,"reason"),h=$APP.l(d,"heading");d=$APP.l(d,"message");e=$APP.nh(new $APP.P(null,4,[$APP.Z,$APP.r(e)?e:"info",$APP.ji,$APP.r(g)?g:"",$APP.Gk,$APP.r(h)?h:"",$APP.Jj,$APP.r(d)?d:""],null));e=new CustomEvent("x-toaster-dismiss",{detail:e,bubbles:!0,composed:!0,cancelable:!0});
5
- e=a.dispatchEvent(e);$APP.r(e)&&c.target.dismiss("toaster-remove")}return null}a.addEventListener("x-toast-dismiss",b);$APP.n(a,"__xToasterHandlers",{dismiss:b})},Qs=function(a){var b=$APP.l(a,"__xToasterHandlers");$APP.r(b)&&(b=$APP.l(b,"dismiss"),$APP.r(b)&&a.removeEventListener("x-toast-dismiss",b));a.__xToasterHandlers=null},Rs=function(a){a=a.prototype;Object.defineProperty(a,"position",{get:function(){return Hs(this.getAttribute("position"))},set:function(b){return $APP.r(b)?this.setAttribute("position",
6
- ""+$APP.S.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.r(b)?b:"Notifications"},set:function(b){return $APP.r($APP.r(b)?$APP.O(b,""):b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"maxToasts",{get:function(){var b=Is(this.getAttribute("max-toasts"));return $APP.r(b)?b:5},set:function(b){return b==
7
- null?this.removeAttribute("max-toasts"):this.setAttribute("max-toasts",""+$APP.S.g(Math.floor(b)))},enumerable:!0,configurable:!0});Object.defineProperty(a,"toast",{value:function(b){b=$APP.r(b)?b:{};var c=$APP.l(this,"__xToasterModel");c=$APP.r(c)?c:Ns(this);var d=Ms.g(c);c=this.querySelectorAll("x-toast");var e=c.length;if(e>=d)for(d=e-d- -1,e=0;;)if(e<d)c[e].dismiss("toaster-remove"),e+=1;else break;c=document.createElement("x-toast");d=$APP.l(b,"type");$APP.r(d)&&c.setAttribute("type",d);d=$APP.l(b,
8
- "heading");$APP.r(d)&&c.setAttribute("heading",d);d=$APP.l(b,"message");$APP.r(d)&&c.setAttribute("message",d);d=$APP.l(b,"icon");$APP.r(d)&&c.setAttribute("icon",d);$APP.l(b,"dismissible")===!1&&c.setAttribute("dismissible","false");d=$APP.l(b,"timeoutMs");$APP.r(d)&&c.setAttribute("timeout-ms",""+$APP.S.g(d));$APP.r($APP.l(b,"showProgress"))&&c.setAttribute("show-progress","");this.appendChild(c);return c},writable:!0,configurable:!0})},Ts=function(){var a=class extends HTMLElement{};a.observedAttributes=
9
- Ss;a.prototype.connectedCallback=function(){Ks(this);Qs(this);Ps(this);Os(this);return null};a.prototype.disconnectedCallback=function(){Qs(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&Os(this);return null};Rs(a);return a},Us=function(){$APP.r(customElements.get("x-toaster"))||customElements.define("x-toaster",Ts());return null},Ls=new $APP.K(null,"max-toasts-raw","max-toasts-raw",-815087069),Ms=new $APP.K(null,"max-toasts","max-toasts",-1982289139);var Ss=["position","max-toasts","label"];$APP.Sd(["x-toaster-dismiss",new $APP.P(null,2,[$APP.U,new $APP.P(null,4,[$APP.Z,$APP.X,$APP.ji,$APP.X,$APP.Gk,$APP.X,$APP.Jj,$APP.X],null),$APP.ll,!0],null)]);var Gs=new $APP.R(null,new $APP.P(null,6,["top-center",null,"bottom-start",null,"bottom-end",null,"bottom-center",null,"top-end",null,"top-start",null],null),null);var Js=":host{display:flex;position:fixed;z-index:var(--x-toaster-z-index,9000);gap:var(--x-toaster-gap,8px);width:max-content;max-width:var(--x-toaster-max-width,min(480px,calc(100vw - 2rem)));box-sizing:border-box;pointer-events:none;color-scheme:light dark;}::slotted("+$APP.S.g("x-toast")+"){pointer-events:auto;}slot{display:contents;}:host([data-position\x3d'top-start']){top:var(--x-toaster-inset,16px);inset-inline-start:var(--x-toaster-inset,16px);flex-direction:column-reverse;}:host([data-position\x3d'top-center']){top:var(--x-toaster-inset,16px);left:50%;transform:translateX(-50%);flex-direction:column-reverse;align-items:center;}:host([data-position\x3d'top-end']){top:var(--x-toaster-inset,16px);inset-inline-end:var(--x-toaster-inset,16px);flex-direction:column-reverse;}:host([data-position\x3d'bottom-start']){bottom:var(--x-toaster-inset,16px);inset-inline-start:var(--x-toaster-inset,16px);flex-direction:column;}:host([data-position\x3d'bottom-center']){bottom:var(--x-toaster-inset,16px);left:50%;transform:translateX(-50%);flex-direction:column;align-items:center;}:host([data-position\x3d'bottom-end']){bottom:var(--x-toaster-inset,16px);inset-inline-end:var(--x-toaster-inset,16px);flex-direction:column;}";$APP.ka("baredom.exports.x_toaster.init",Us);export const init=Us;
2
+ var Ks=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.J(Js,a)?a:"top-end"},Ls=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.r(isNaN(a))&&a>0?Math.floor(a):null):null},Ns=function(a){if(!$APP.n($APP.k(a,"__xToasterRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");c.textContent=Ms;b.appendChild(c);b.appendChild(d);a.__xToasterRefs=new $APP.R(null,2,[$APP.ji,b,$APP.Tk,d],null)}},Qs=function(a){a=
3
+ new $APP.R(null,3,[$APP.xj,a.getAttribute("position"),Os,a.getAttribute("max-toasts"),$APP.Wh,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,$APP.xj);a=$APP.D(b,Os);b=$APP.D(b,$APP.Wh);c=Ks(c);a=Ls(a);return new $APP.R(null,3,[$APP.km,c,Ps,$APP.n(a)?a:5,$APP.U,typeof b==="string"&&$APP.N(b.trim(),"")?b:"Notifications"],null)},Rs=function(a){var b=Qs(a);if($APP.N($APP.k(a,"__xToasterModel"),b)){b=$APP.M(b);var c=$APP.D(b,$APP.km),d=$APP.D(b,$APP.U);Ns(a);a.setAttribute("role","region");
4
+ a.setAttribute("aria-label",d);a.setAttribute("data-position",c);a.__xToasterModel=b}},Ss=function(a){function b(c){var d=c.detail;if($APP.N($APP.k(d,"reason"),"toaster-remove")){c.preventDefault();var e=$APP.k(d,"type");var g=$APP.k(d,"reason"),h=$APP.k(d,"heading");d=$APP.k(d,"message");e=$APP.ph(new $APP.R(null,4,[$APP.Z,$APP.n(e)?e:"info",$APP.ri,$APP.n(g)?g:"",$APP.Pk,$APP.n(h)?h:"",$APP.Wj,$APP.n(d)?d:""],null));e=new CustomEvent("x-toaster-dismiss",{detail:e,bubbles:!0,composed:!0,cancelable:!0});
5
+ e=a.dispatchEvent(e);$APP.n(e)&&c.target.dismiss("toaster-remove")}return null}a.addEventListener("x-toast-dismiss",b);$APP.ia(a,"__xToasterHandlers",{dismiss:b})},Ts=function(a){var b=$APP.k(a,"__xToasterHandlers");$APP.n(b)&&(b=$APP.k(b,"dismiss"),$APP.n(b)&&a.removeEventListener("x-toast-dismiss",b));a.__xToasterHandlers=null},Us=function(a){a=a.prototype;Object.defineProperty(a,"position",{get:function(){return Ks(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",
6
+ ""+$APP.T.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:"Notifications"},set:function(b){return $APP.n($APP.n(b)?$APP.N(b,""):b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"maxToasts",{get:function(){var b=Ls(this.getAttribute("max-toasts"));return $APP.n(b)?b:5},set:function(b){return b==
7
+ null?this.removeAttribute("max-toasts"):this.setAttribute("max-toasts",""+$APP.T.g(Math.floor(b)))},enumerable:!0,configurable:!0});Object.defineProperty(a,"toast",{value:function(b){b=$APP.n(b)?b:{};var c=$APP.k(this,"__xToasterModel");c=$APP.n(c)?c:Qs(this);var d=Ps.g(c);c=this.querySelectorAll("x-toast");var e=c.length;if(e>=d)for(d=e-d- -1,e=0;;)if(e<d)c[e].dismiss("toaster-remove"),e+=1;else break;c=document.createElement("x-toast");d=$APP.k(b,"type");$APP.n(d)&&c.setAttribute("type",d);d=$APP.k(b,
8
+ "heading");$APP.n(d)&&c.setAttribute("heading",d);d=$APP.k(b,"message");$APP.n(d)&&c.setAttribute("message",d);d=$APP.k(b,"icon");$APP.n(d)&&c.setAttribute("icon",d);$APP.k(b,"dismissible")===!1&&c.setAttribute("dismissible","false");d=$APP.k(b,"timeoutMs");$APP.n(d)&&c.setAttribute("timeout-ms",""+$APP.T.g(d));$APP.n($APP.k(b,"showProgress"))&&c.setAttribute("show-progress","");this.appendChild(c);return c},writable:!0,configurable:!0})},Ws=function(){var a=class extends HTMLElement{};a.observedAttributes=
9
+ Vs;a.prototype.connectedCallback=function(){Ns(this);Ts(this);Ss(this);Rs(this);return null};a.prototype.disconnectedCallback=function(){Ts(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&Rs(this);return null};Us(a);return a},Xs=function(){$APP.n(customElements.get("x-toaster"))||customElements.define("x-toaster",Ws());return null},Os=new $APP.K(null,"max-toasts-raw","max-toasts-raw",-815087069),Ps=new $APP.K(null,"max-toasts","max-toasts",-1982289139);var Vs=["position","max-toasts","label"];$APP.Pd(["x-toaster-dismiss",new $APP.R(null,2,[$APP.yj,new $APP.R(null,4,[$APP.Z,$APP.X,$APP.ri,$APP.X,$APP.Pk,$APP.X,$APP.Wj,$APP.X],null),$APP.wl,!0],null)]);var Js=new $APP.S(null,new $APP.R(null,6,["top-center",null,"bottom-start",null,"bottom-end",null,"bottom-center",null,"top-end",null,"top-start",null],null),null);var Ms=":host{display:flex;position:fixed;z-index:var(--x-toaster-z-index,9000);gap:var(--x-toaster-gap,8px);width:max-content;max-width:var(--x-toaster-max-width,min(480px,calc(100vw - 2rem)));box-sizing:border-box;pointer-events:none;color-scheme:light dark;}::slotted("+$APP.T.g("x-toast")+"){pointer-events:auto;}slot{display:contents;}:host([data-position\x3d'top-start']){top:var(--x-toaster-inset,16px);inset-inline-start:var(--x-toaster-inset,16px);flex-direction:column-reverse;}:host([data-position\x3d'top-center']){top:var(--x-toaster-inset,16px);left:50%;transform:translateX(-50%);flex-direction:column-reverse;align-items:center;}:host([data-position\x3d'top-end']){top:var(--x-toaster-inset,16px);inset-inline-end:var(--x-toaster-inset,16px);flex-direction:column-reverse;}:host([data-position\x3d'bottom-start']){bottom:var(--x-toaster-inset,16px);inset-inline-start:var(--x-toaster-inset,16px);flex-direction:column;}:host([data-position\x3d'bottom-center']){bottom:var(--x-toaster-inset,16px);left:50%;transform:translateX(-50%);flex-direction:column;align-items:center;}:host([data-position\x3d'bottom-end']){bottom:var(--x-toaster-inset,16px);inset-inline-end:var(--x-toaster-inset,16px);flex-direction:column;}";$APP.fa("baredom.exports.x_toaster.init",Xs);export const init=Xs;
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var nC=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.t(isNaN(a))&&a>0?a:null):null},pC=function(a){var b=$APP.l(a,"__xTypographyRefs");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=oC;d.setAttribute("part","container");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xTypographyRefs=new $APP.P(null,2,[$APP.bi,b,$APP.Zi,d],null);
3
- return $APP.l(a,"__xTypographyRefs")},vC=function(a){var b=new $APP.P(null,4,[$APP.Bk,a.getAttribute("variant"),$APP.qi,a.getAttribute("align"),qC,a.getAttribute("truncate"),rC,a.getAttribute("line-clamp")],null);var c=$APP.N(b),d=$APP.G(c,$APP.Bk),e=$APP.G(c,$APP.qi);b=$APP.G(c,qC);c=$APP.G(c,rC);d=typeof d==="string"?d.toLowerCase():null;d=$APP.J(sC,d)?d:"body1";e=typeof e==="string"?e.toLowerCase():null;e=$APP.J(tC,e)?e:"left";b=new $APP.P(null,4,[$APP.Fh,d,$APP.Qi,e,$APP.fi,b!=null,uC,nC(c)],
4
- null);if($APP.O($APP.l(a,"__xTypographyModel"),b)){b=$APP.N(b);e=$APP.G(b,$APP.Fh);d=$APP.G(b,$APP.Qi);var g=$APP.G(b,$APP.fi);c=$APP.G(b,uC);var h=pC(a);h=$APP.N(h);h=$APP.G(h,$APP.Zi);a.setAttribute("data-variant",e);a.setAttribute("data-align",d);$APP.r(g)?h.setAttribute("data-truncate",""):h.removeAttribute("data-truncate");c!=null&&$APP.t(g)?(e=h.style,e.display="-webkit-box",e.setProperty("-webkit-box-orient","vertical"),e.overflow="hidden",e.setProperty("-webkit-line-clamp",""+$APP.S.g(c))):
5
- (c=h.style,c.removeProperty("display"),c.removeProperty("-webkit-box-orient"),c.removeProperty("overflow"),c.removeProperty("-webkit-line-clamp"));a.__xTypographyModel=b}},wC=function(a){Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.r(b)?b:"body1"},set:function(b){return $APP.r(b)?this.setAttribute("variant",""+$APP.S.g(b)):this.removeAttribute("variant")},enumerable:!0,configurable:!0});Object.defineProperty(a,"align",{get:function(){var b=this.getAttribute("align");
6
- return $APP.r(b)?b:"left"},set:function(b){return $APP.r(b)?this.setAttribute("align",""+$APP.S.g(b)):this.removeAttribute("align")},enumerable:!0,configurable:!0});Object.defineProperty(a,"truncate",{get:function(){return this.hasAttribute("truncate")},set:function(b){return $APP.r(b)?this.setAttribute("truncate",""):this.removeAttribute("truncate")},enumerable:!0,configurable:!0});Object.defineProperty(a,"lineClamp",{get:function(){return nC(this.getAttribute("line-clamp"))},set:function(b){return b==
7
- null?this.removeAttribute("line-clamp"):this.setAttribute("line-clamp",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0})},yC=function(){var a=class extends HTMLElement{};a.observedAttributes=xC;a.prototype.connectedCallback=function(){pC(this);vC(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&vC(this);return null};wC(a.prototype);return a},zC=function(){$APP.r(customElements.get("x-typography"))||customElements.define("x-typography",
8
- yC());return null},rC=new $APP.K(null,"line-clamp-raw","line-clamp-raw",-1982923204),uC=new $APP.K(null,"line-clamp","line-clamp",-1079334403),qC=new $APP.K(null,"truncate-raw","truncate-raw",1178232402);var xC=["variant","align","truncate","line-clamp"],sC=new $APP.R(null,new $APP.P(null,16,["subtitle2",null,"overline",null,"h3",null,"body1",null,"body2",null,"small",null,"subtitle1",null,"h2",null,"kbd",null,"h4",null,"h5",null,"blockquote",null,"h1",null,"caption",null,"code",null,"h6",null],null),null),tC=new $APP.R(null,new $APP.P(null,4,["right",null,"justify",null,"center",null,"left",null],null),null);var oC=":host{display:block;color-scheme:light dark;font-family:var(--x-typography-font-family,"+$APP.S.g("system-ui,-apple-system,sans-serif")+");color:var(--x-typography-color,var(--x-color-text,inherit));}[part\x3dcontainer]{margin:0;padding:0;}:host(:not([data-variant])),:host([data-variant\x3d'body1']){font-size:1rem;font-weight:400;line-height:1.5;letter-spacing:normal;}:host([data-variant\x3d'h1']){font-size:2.5rem;font-weight:700;line-height:1.2;letter-spacing:-0.02em;}:host([data-variant\x3d'h2']){font-size:2rem;font-weight:700;line-height:1.25;letter-spacing:-0.015em;}:host([data-variant\x3d'h3']){font-size:1.75rem;font-weight:600;line-height:1.3;letter-spacing:-0.01em;}:host([data-variant\x3d'h4']){font-size:1.5rem;font-weight:600;line-height:1.35;letter-spacing:-0.005em;}:host([data-variant\x3d'h5']){font-size:1.25rem;font-weight:600;line-height:1.4;letter-spacing:normal;}:host([data-variant\x3d'h6']){font-size:1.125rem;font-weight:600;line-height:1.4;letter-spacing:normal;}:host([data-variant\x3d'subtitle1']){font-size:1.125rem;font-weight:500;line-height:1.4;letter-spacing:0.005em;}:host([data-variant\x3d'subtitle2']){font-size:0.875rem;font-weight:500;line-height:1.4;letter-spacing:0.01em;}:host([data-variant\x3d'body2']){font-size:0.875rem;font-weight:400;line-height:1.5;letter-spacing:normal;}:host([data-variant\x3d'caption']){font-size:0.75rem;font-weight:400;line-height:1.4;letter-spacing:0.02em;}:host([data-variant\x3d'overline']){font-size:0.625rem;font-weight:600;line-height:1.5;letter-spacing:0.1em;text-transform:uppercase;}:host([data-variant\x3d'small']){font-size:0.8125rem;font-weight:400;line-height:1.4;letter-spacing:normal;}:host([data-variant\x3d'blockquote']){font-size:1.125rem;font-weight:400;line-height:1.6;letter-spacing:normal;font-style:italic;}:host([data-variant\x3d'blockquote']) [part\x3dcontainer]{border-left:3px solid var(--x-typography-blockquote-border-color,var(--x-color-border,"+
9
- $APP.S.g("rgba(0,0,0,0.2)")+"));padding:var(--x-typography-blockquote-padding,0 0 0 1em);}@media (prefers-color-scheme:dark){:host([data-variant\x3d'blockquote']) [part\x3dcontainer]{border-left-color:var(--x-typography-blockquote-border-color,var(--x-color-border,"+$APP.S.g("rgba(255,255,255,0.25)")+"));}}:host([data-variant\x3d'code']){font-family:var(--x-typography-mono-font-family,"+$APP.S.g('ui-monospace,"SFMono-Regular","SF Mono",Menlo,Consolas,monospace')+");font-size:0.875rem;font-weight:400;line-height:1.5;}:host([data-variant\x3d'code']) [part\x3dcontainer]{background:var(--x-typography-code-bg,var(--x-color-surface,"+
10
- $APP.S.g("rgba(0,0,0,0.06)")+"));border-radius:var(--x-typography-code-radius,var(--x-radius-sm,4px));padding:var(--x-typography-code-padding,0.15em 0.35em);}@media (prefers-color-scheme:dark){:host([data-variant\x3d'code']) [part\x3dcontainer]{background:var(--x-typography-code-bg,var(--x-color-surface,"+$APP.S.g("rgba(255,255,255,0.1)")+"));}}:host([data-variant\x3d'kbd']){font-family:var(--x-typography-mono-font-family,"+$APP.S.g('ui-monospace,"SFMono-Regular","SF Mono",Menlo,Consolas,monospace')+
11
- ");font-size:0.875rem;font-weight:400;line-height:1.5;}:host([data-variant\x3d'kbd']) [part\x3dcontainer]{background:var(--x-typography-kbd-bg,var(--x-color-surface,"+$APP.S.g("rgba(0,0,0,0.06)")+"));border:1px solid var(--x-typography-kbd-border,var(--x-color-border,"+$APP.S.g("rgba(0,0,0,0.15)")+"));border-radius:var(--x-typography-kbd-radius,var(--x-radius-sm,4px));padding:var(--x-typography-kbd-padding,0.15em 0.4em);}@media (prefers-color-scheme:dark){:host([data-variant\x3d'kbd']) [part\x3dcontainer]{background:var(--x-typography-kbd-bg,var(--x-color-surface,"+
12
- $APP.S.g("rgba(255,255,255,0.1)")+"));border-color:var(--x-typography-kbd-border,var(--x-color-border,"+$APP.S.g("rgba(255,255,255,0.2)")+"));}}:host([data-align\x3d'left']){text-align:left;}:host([data-align\x3d'center']){text-align:center;}:host([data-align\x3d'right']){text-align:right;}:host([data-align\x3d'justify']){text-align:justify;}[part\x3dcontainer][data-truncate]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}";$APP.ka("baredom.exports.x_typography.init",zC);export const init=zC;
2
+ var vE=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.r(isNaN(a))&&a>0?a:null):null},xE=function(a){var b=$APP.k(a,"__xTypographyRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=wE;d.setAttribute("part","container");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xTypographyRefs=new $APP.R(null,2,[$APP.ji,b,$APP.ej,d],null);
3
+ return $APP.k(a,"__xTypographyRefs")},DE=function(a){var b=new $APP.R(null,4,[$APP.Jk,a.getAttribute("variant"),$APP.yi,a.getAttribute("align"),yE,a.getAttribute("truncate"),zE,a.getAttribute("line-clamp")],null);var c=$APP.M(b),d=$APP.D(c,$APP.Jk),e=$APP.D(c,$APP.yi);b=$APP.D(c,yE);c=$APP.D(c,zE);d=typeof d==="string"?d.toLowerCase():null;d=$APP.J(AE,d)?d:"body1";e=typeof e==="string"?e.toLowerCase():null;e=$APP.J(BE,e)?e:"left";b=new $APP.R(null,4,[$APP.Nh,d,$APP.Wi,e,$APP.ni,b!=null,CE,vE(c)],
4
+ null);if($APP.N($APP.k(a,"__xTypographyModel"),b)){b=$APP.M(b);e=$APP.D(b,$APP.Nh);d=$APP.D(b,$APP.Wi);var g=$APP.D(b,$APP.ni);c=$APP.D(b,CE);var h=xE(a);h=$APP.M(h);h=$APP.D(h,$APP.ej);a.setAttribute("data-variant",e);a.setAttribute("data-align",d);$APP.n(g)?h.setAttribute("data-truncate",""):h.removeAttribute("data-truncate");c!=null&&$APP.r(g)?(e=h.style,e.display="-webkit-box",e.setProperty("-webkit-box-orient","vertical"),e.overflow="hidden",e.setProperty("-webkit-line-clamp",""+$APP.T.g(c))):
5
+ (c=h.style,c.removeProperty("display"),c.removeProperty("-webkit-box-orient"),c.removeProperty("overflow"),c.removeProperty("-webkit-line-clamp"));a.__xTypographyModel=b}},EE=function(a){Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?b:"body1"},set:function(b){return $APP.n(b)?this.setAttribute("variant",""+$APP.T.g(b)):this.removeAttribute("variant")},enumerable:!0,configurable:!0});Object.defineProperty(a,"align",{get:function(){var b=this.getAttribute("align");
6
+ return $APP.n(b)?b:"left"},set:function(b){return $APP.n(b)?this.setAttribute("align",""+$APP.T.g(b)):this.removeAttribute("align")},enumerable:!0,configurable:!0});Object.defineProperty(a,"truncate",{get:function(){return this.hasAttribute("truncate")},set:function(b){return $APP.n(b)?this.setAttribute("truncate",""):this.removeAttribute("truncate")},enumerable:!0,configurable:!0});Object.defineProperty(a,"lineClamp",{get:function(){return vE(this.getAttribute("line-clamp"))},set:function(b){return b==
7
+ null?this.removeAttribute("line-clamp"):this.setAttribute("line-clamp",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0})},GE=function(){var a=class extends HTMLElement{};a.observedAttributes=FE;a.prototype.connectedCallback=function(){xE(this);DE(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&DE(this);return null};EE(a.prototype);return a},HE=function(){$APP.n(customElements.get("x-typography"))||customElements.define("x-typography",
8
+ GE());return null},zE=new $APP.K(null,"line-clamp-raw","line-clamp-raw",-1982923204),CE=new $APP.K(null,"line-clamp","line-clamp",-1079334403),yE=new $APP.K(null,"truncate-raw","truncate-raw",1178232402);var FE=["variant","align","truncate","line-clamp"],AE=new $APP.S(null,new $APP.R(null,16,["subtitle2",null,"overline",null,"h3",null,"body1",null,"body2",null,"small",null,"subtitle1",null,"h2",null,"kbd",null,"h4",null,"h5",null,"blockquote",null,"h1",null,"caption",null,"code",null,"h6",null],null),null),BE=new $APP.S(null,new $APP.R(null,4,["right",null,"justify",null,"center",null,"left",null],null),null);var wE=":host{display:block;color-scheme:light dark;font-family:var(--x-typography-font-family,"+$APP.T.g("system-ui,-apple-system,sans-serif")+");color:var(--x-typography-color,var(--x-color-text,inherit));}[part\x3dcontainer]{margin:0;padding:0;}:host(:not([data-variant])),:host([data-variant\x3d'body1']){font-size:1rem;font-weight:400;line-height:1.5;letter-spacing:normal;}:host([data-variant\x3d'h1']){font-size:2.5rem;font-weight:700;line-height:1.2;letter-spacing:-0.02em;}:host([data-variant\x3d'h2']){font-size:2rem;font-weight:700;line-height:1.25;letter-spacing:-0.015em;}:host([data-variant\x3d'h3']){font-size:1.75rem;font-weight:600;line-height:1.3;letter-spacing:-0.01em;}:host([data-variant\x3d'h4']){font-size:1.5rem;font-weight:600;line-height:1.35;letter-spacing:-0.005em;}:host([data-variant\x3d'h5']){font-size:1.25rem;font-weight:600;line-height:1.4;letter-spacing:normal;}:host([data-variant\x3d'h6']){font-size:1.125rem;font-weight:600;line-height:1.4;letter-spacing:normal;}:host([data-variant\x3d'subtitle1']){font-size:1.125rem;font-weight:500;line-height:1.4;letter-spacing:0.005em;}:host([data-variant\x3d'subtitle2']){font-size:0.875rem;font-weight:500;line-height:1.4;letter-spacing:0.01em;}:host([data-variant\x3d'body2']){font-size:0.875rem;font-weight:400;line-height:1.5;letter-spacing:normal;}:host([data-variant\x3d'caption']){font-size:0.75rem;font-weight:400;line-height:1.4;letter-spacing:0.02em;}:host([data-variant\x3d'overline']){font-size:0.625rem;font-weight:600;line-height:1.5;letter-spacing:0.1em;text-transform:uppercase;}:host([data-variant\x3d'small']){font-size:0.8125rem;font-weight:400;line-height:1.4;letter-spacing:normal;}:host([data-variant\x3d'blockquote']){font-size:1.125rem;font-weight:400;line-height:1.6;letter-spacing:normal;font-style:italic;}:host([data-variant\x3d'blockquote']) [part\x3dcontainer]{border-left:3px solid var(--x-typography-blockquote-border-color,var(--x-color-border,"+
9
+ $APP.T.g("rgba(0,0,0,0.2)")+"));padding:var(--x-typography-blockquote-padding,0 0 0 1em);}@media (prefers-color-scheme:dark){:host([data-variant\x3d'blockquote']) [part\x3dcontainer]{border-left-color:var(--x-typography-blockquote-border-color,var(--x-color-border,"+$APP.T.g("rgba(255,255,255,0.25)")+"));}}:host([data-variant\x3d'code']){font-family:var(--x-typography-mono-font-family,"+$APP.T.g('ui-monospace,"SFMono-Regular","SF Mono",Menlo,Consolas,monospace')+");font-size:0.875rem;font-weight:400;line-height:1.5;}:host([data-variant\x3d'code']) [part\x3dcontainer]{background:var(--x-typography-code-bg,var(--x-color-surface,"+
10
+ $APP.T.g("rgba(0,0,0,0.06)")+"));border-radius:var(--x-typography-code-radius,var(--x-radius-sm,4px));padding:var(--x-typography-code-padding,0.15em 0.35em);}@media (prefers-color-scheme:dark){:host([data-variant\x3d'code']) [part\x3dcontainer]{background:var(--x-typography-code-bg,var(--x-color-surface,"+$APP.T.g("rgba(255,255,255,0.1)")+"));}}:host([data-variant\x3d'kbd']){font-family:var(--x-typography-mono-font-family,"+$APP.T.g('ui-monospace,"SFMono-Regular","SF Mono",Menlo,Consolas,monospace')+
11
+ ");font-size:0.875rem;font-weight:400;line-height:1.5;}:host([data-variant\x3d'kbd']) [part\x3dcontainer]{background:var(--x-typography-kbd-bg,var(--x-color-surface,"+$APP.T.g("rgba(0,0,0,0.06)")+"));border:1px solid var(--x-typography-kbd-border,var(--x-color-border,"+$APP.T.g("rgba(0,0,0,0.15)")+"));border-radius:var(--x-typography-kbd-radius,var(--x-radius-sm,4px));padding:var(--x-typography-kbd-padding,0.15em 0.4em);}@media (prefers-color-scheme:dark){:host([data-variant\x3d'kbd']) [part\x3dcontainer]{background:var(--x-typography-kbd-bg,var(--x-color-surface,"+
12
+ $APP.T.g("rgba(255,255,255,0.1)")+"));border-color:var(--x-typography-kbd-border,var(--x-color-border,"+$APP.T.g("rgba(255,255,255,0.2)")+"));}}:host([data-align\x3d'left']){text-align:left;}:host([data-align\x3d'center']){text-align:center;}:host([data-align\x3d'right']){text-align:right;}:host([data-align\x3d'justify']){text-align:justify;}[part\x3dcontainer][data-truncate]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}";$APP.fa("baredom.exports.x_typography.init",HE);export const init=HE;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "description" : "80 native Web Components with centralised theming — stateless, framework-free, zero runtime. Built with ClojureScript, compiled to tree-shakeable ESM.",
2
+ "description" : "Native Web Components with centralised theming — stateless, framework-free, zero runtime. Built with ClojureScript, compiled to tree-shakeable ESM.",
3
3
  "engines" : {
4
4
  "node" : ">=18"
5
5
  },
@@ -180,6 +180,10 @@
180
180
  "import" : "./dist/x-collapse.js",
181
181
  "default" : "./dist/x-collapse.js"
182
182
  },
183
+ "./x-color-picker" : {
184
+ "import" : "./dist/x-color-picker.js",
185
+ "default" : "./dist/x-color-picker.js"
186
+ },
183
187
  "./x-timeline-item" : {
184
188
  "import" : "./dist/x-timeline-item.js",
185
189
  "default" : "./dist/x-timeline-item.js"
@@ -248,6 +252,10 @@
248
252
  "import" : "./dist/x-card.js",
249
253
  "default" : "./dist/x-card.js"
250
254
  },
255
+ "./x-carousel" : {
256
+ "import" : "./dist/x-carousel.js",
257
+ "default" : "./dist/x-carousel.js"
258
+ },
251
259
  "./x-copy" : {
252
260
  "import" : "./dist/x-copy.js",
253
261
  "default" : "./dist/x-copy.js"
@@ -344,6 +352,10 @@
344
352
  "import" : "./dist/x-morph-stack.js",
345
353
  "default" : "./dist/x-morph-stack.js"
346
354
  },
355
+ "./x-particle-button" : {
356
+ "import" : "./dist/x-particle-button.js",
357
+ "default" : "./dist/x-particle-button.js"
358
+ },
347
359
  "./x-theme" : {
348
360
  "import" : "./dist/x-theme.js",
349
361
  "default" : "./dist/x-theme.js"
@@ -356,6 +368,6 @@
356
368
  "shadow-cljs" : "^3.3.6"
357
369
  },
358
370
  "files" : [ "dist", "README.md", "LICENSE", "CHANGELOG.md" ],
359
- "version" : "2.0.1",
371
+ "version" : "2.1.1",
360
372
  "sideEffects" : [ "./dist/*.js" ]
361
373
  }