@vanelsas/baredom 2.7.0 → 2.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +50 -0
- package/custom-elements.json +822 -16
- package/dist/baredom.d.ts +9 -0
- package/dist/base.js +455 -428
- package/dist/integrity.json +102 -93
- package/dist/x-alert.js +17 -18
- package/dist/x-avatar-group.js +9 -10
- package/dist/x-avatar.js +15 -15
- package/dist/x-badge.js +9 -10
- package/dist/x-bento-grid.js +5 -5
- package/dist/x-bento-item.js +4 -4
- package/dist/x-breadcrumbs.js +13 -14
- package/dist/x-button.js +17 -18
- package/dist/x-cancel-dialogue.js +13 -17
- package/dist/x-card.js +7 -7
- package/dist/x-carousel.js +33 -34
- package/dist/x-chart.d.ts +26 -0
- package/dist/x-chart.js +47 -46
- package/dist/x-checkbox.js +11 -10
- package/dist/x-chip.js +1 -9
- package/dist/x-collapse.js +10 -10
- package/dist/x-color-picker.js +45 -44
- package/dist/x-combobox.js +26 -26
- package/dist/x-command-palette.js +26 -26
- package/dist/x-confetti.d.ts +50 -0
- package/dist/x-confetti.js +23 -0
- package/dist/x-container.js +4 -4
- package/dist/x-context-menu.d.ts +31 -2
- package/dist/x-context-menu.js +20 -18
- package/dist/x-copy.js +20 -23
- package/dist/x-currency-field.js +23 -23
- package/dist/x-date-picker.d.ts +27 -0
- package/dist/x-date-picker.js +42 -41
- package/dist/x-divider.js +9 -9
- package/dist/x-drawer.js +10 -11
- package/dist/x-dropdown.js +11 -10
- package/dist/x-fieldset.js +5 -6
- package/dist/x-file-download.js +7 -7
- package/dist/x-file-upload.js +21 -21
- package/dist/x-form-field.js +15 -15
- package/dist/x-form.js +9 -8
- package/dist/x-gaussian-blur.js +13 -19
- package/dist/x-grid.js +6 -6
- package/dist/x-i18n-provider.d.ts +43 -0
- package/dist/x-i18n-provider.js +8 -0
- package/dist/x-i18n.d.ts +14 -0
- package/dist/x-i18n.js +5 -0
- package/dist/x-icon.js +6 -7
- package/dist/x-image.js +18 -19
- package/dist/x-kbd.d.ts +17 -0
- package/dist/x-kbd.js +17 -0
- package/dist/x-kinetic-canvas.d.ts +18 -0
- package/dist/x-kinetic-canvas.js +26 -0
- package/dist/x-kinetic-font.js +27 -28
- package/dist/x-kinetic-typography.js +33 -39
- package/dist/x-liquid-dock.js +38 -39
- package/dist/x-liquid-fill.js +45 -45
- package/dist/x-liquid-glass.js +47 -47
- package/dist/x-menu-item.js +8 -9
- package/dist/x-menu.js +10 -11
- package/dist/x-metaball-cursor.js +26 -27
- package/dist/x-modal.js +11 -12
- package/dist/x-morph-stack.js +37 -38
- package/dist/x-multi-combobox.d.ts +50 -0
- package/dist/x-multi-combobox.js +37 -0
- package/dist/x-navbar.js +12 -12
- package/dist/x-neural-glow.js +33 -33
- package/dist/x-notification-center.js +9 -9
- package/dist/x-organic-divider.js +17 -18
- package/dist/x-organic-progress.js +38 -38
- package/dist/x-organic-shape.js +13 -13
- package/dist/x-otp-input.d.ts +55 -0
- package/dist/x-otp-input.js +23 -0
- package/dist/x-pagination.js +15 -16
- package/dist/x-particle-button.js +51 -51
- package/dist/x-popover.js +26 -24
- package/dist/x-progress-circle.js +9 -10
- package/dist/x-progress.js +10 -11
- package/dist/x-proximity-list.d.ts +43 -0
- package/dist/x-proximity-list.js +20 -0
- package/dist/x-radio.js +11 -10
- package/dist/x-ripple-effect.js +11 -12
- package/dist/x-scroll-parallax.js +18 -19
- package/dist/x-scroll-stack.js +17 -18
- package/dist/x-scroll-story.js +34 -36
- package/dist/x-scroll-timeline.js +45 -46
- package/dist/x-scroll.js +40 -41
- package/dist/x-search-field.js +15 -15
- package/dist/x-select.js +10 -9
- package/dist/x-sidebar.js +17 -17
- package/dist/x-skeleton-group.js +12 -12
- package/dist/x-skeleton.js +1 -1
- package/dist/x-slider.js +15 -16
- package/dist/x-soft-body.js +22 -22
- package/dist/x-spacer.js +4 -5
- package/dist/x-spinner.js +4 -5
- package/dist/x-splash.js +12 -13
- package/dist/x-spotlight-card.d.ts +19 -0
- package/dist/x-spotlight-card.js +13 -0
- package/dist/x-stat.js +10 -12
- package/dist/x-stepper.js +14 -15
- package/dist/x-switch.js +10 -9
- package/dist/x-tab.js +7 -8
- package/dist/x-table-cell.js +20 -24
- package/dist/x-table-row.js +8 -9
- package/dist/x-table.js +12 -15
- package/dist/x-tabs.js +11 -11
- package/dist/x-text-area.js +18 -18
- package/dist/x-theme.js +25 -25
- package/dist/x-timeline-item.js +21 -23
- package/dist/x-timeline.js +8 -9
- package/dist/x-toast.js +22 -24
- package/dist/x-toaster.js +8 -8
- package/dist/x-tooltip.js +12 -11
- package/dist/x-typography.js +9 -11
- package/dist/x-welcome-tour.js +60 -64
- package/package.json +47 -2
package/dist/x-text-area.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
d=$APP.k(b,"label"),e=$APP.k(b,"hint");b=$APP.k(b,"error");var
|
|
4
|
-
a.getAttribute("placeholder")]);var h=$APP.
|
|
5
|
-
"string"&&$APP.
|
|
6
|
-
c.rows=$APP.
|
|
7
|
-
|
|
8
|
-
"__xTextAreaRefs");if($APP.n(b)){b=$APP.k(b,"textarea");var c=b.value,d=function(){var
|
|
9
|
-
if($APP.n(b)){b=$APP.k(b,"textarea");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.k(a,"__xTextAreaInternals");$APP.n(e)&&(e.setFormValue(c),
|
|
10
|
-
null;return}}return null},
|
|
2
|
+
var T6=function(a){return typeof a==="string"?(a=parseInt(a,10),$APP.p(isNaN(a))&&a>0?a:null):null},U6=function(a,b,c){var d=a.hasAttribute("error");var e=a.getAttribute("error");e=$APP.n(e)?e:"";a=a.hasAttribute("required");var f=c.value;return $APP.n(d)?b.setValidity({customError:!0},e,c):$APP.n($APP.n(a)?$APP.B.j(f,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):b.setValidity({},"",c)},b7=function(a){var b=$APP.k(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.k(b,"textarea"),
|
|
3
|
+
d=$APP.k(b,"label"),e=$APP.k(b,"hint");b=$APP.k(b,"error");var f=$APP.Hf([V6,$APP.Bh,$APP.Zm,$APP.Uj,$APP.lk,W6,$APP.Eh,X6,$APP.dj,$APP.al,$APP.Ch,$APP.Aj,Y6,$APP.ak],[a.getAttribute("resize"),a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.getAttribute("rows"),a.hasAttribute("disabled"),a.getAttribute("maxlength"),a.hasAttribute("required"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("minlength"),
|
|
4
|
+
a.getAttribute("placeholder")]);var h=$APP.H(f),l=$APP.C(h,Y6),m=$APP.C(h,$APP.ak),q=$APP.C(h,V6),r=$APP.C(h,$APP.Bh),v=$APP.C(h,$APP.Zm),w=$APP.C(h,$APP.Uj),y=$APP.C(h,$APP.lk),A=$APP.C(h,W6);f=$APP.C(h,$APP.Eh);var D=$APP.C(h,X6),G=$APP.C(h,$APP.dj),I=$APP.C(h,$APP.al),J=$APP.C(h,$APP.Ch);h=$APP.C(h,$APP.Aj);var K=$APP.n(w)?w:"",ba=$APP.n(y)?y:"",ia=$APP.n(r)?r:"";G=$APP.E(G);I=$APP.E(I);m=$APP.n(m)?m:"";y=typeof y==="string"&&$APP.M(y,"")&&y!=null;v=$APP.n(v)?v:"";J=$APP.n(J)?J:"";l=T6(l);r=typeof r===
|
|
5
|
+
"string"&&$APP.M(r,"")&&r!=null;w=typeof w==="string"&&$APP.M(w,"")&&w!=null;q=typeof q==="string"&&$APP.Vc(kea,q)?q:"vertical";A=T6(A);f=$APP.Hf([$APP.zj,$APP.Ko,$APP.bo,$APP.Gj,$APP.Ok,$APP.Fh,Z6,$APP.bn,$APP.wm,$6,$APP.Gn,a7,$APP.Ck,$APP.X,$APP.Qj,$APP.In,$APP.Y],[G,I,m,y,v,J,l,r,w,q,ba,T6(D),$APP.n(A)?A:3,ia,K,$APP.n(h)?h:"",$APP.E(f)]);D=$APP.wm.i(f);A=$APP.Gj.i(f);h=$APP.bn.i(f);c.name=$APP.Ok.i(f);c.placeholder=$APP.bo.i(f);c.disabled=$APP.Y.i(f);c.readOnly=$APP.Ko.i(f);c.required=$APP.zj.i(f);
|
|
6
|
+
c.rows=$APP.Ck.i(f);c.autocomplete=$APP.In.i(f);K=a7.i(f);$APP.n(K)?$APP.Zg(c,"maxlength",""+$APP.R.i(K)):c.removeAttribute("maxlength");K=Z6.i(f);$APP.n(K)?$APP.Zg(c,"minlength",""+$APP.R.i(K)):c.removeAttribute("minlength");a.style.setProperty("--x-text-area-resize",$6.i(f));$APP.Zg(c,"aria-required",$APP.n($APP.zj.i(f))?"true":"false");c.setAttribute("aria-invalid",$APP.n(D)?"true":"false");K=$APP.n($APP.n(A)?D:A)?"hint error":$APP.n(A)?"hint":$APP.n(D)?"error":null;$APP.n(K)?c.setAttribute("aria-describedby",
|
|
7
|
+
K):c.removeAttribute("aria-describedby");d.textContent=$APP.X.i(f);$APP.n(h)?d.classList.remove("label-hidden"):d.classList.add("label-hidden");e.textContent=$APP.Gn.i(f);$APP.n(A)?e.classList.remove("hint-hidden"):e.classList.add("hint-hidden");b.textContent=$APP.Qj.i(f);$APP.n(D)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");$APP.$g(a,"data-invalid",D);d=$APP.k(a,"__xTextAreaInternals");return $APP.n(d)?U6(a,d,c):null}return null},lea=function(a){return function(){var b=$APP.k(a,
|
|
8
|
+
"__xTextAreaRefs");if($APP.n(b)){b=$APP.k(b,"textarea");var c=b.value,d=function(){var f=a.getAttribute("value");return $APP.n(f)?f:""}(),e=function(){var f=a.getAttribute("name");return $APP.n(f)?f:""}();return $APP.bh(a,"x-text-area-change-request",{name:e,value:c,previousValue:d})?(d=$APP.k(a,"__xTextAreaInternals"),$APP.n(d)&&(d.setFormValue(c),U6(a,d,b)),$APP.ah(a,"x-text-area-input",{name:e,value:c})):b.value=d}return null}},mea=function(a){return function(){var b=$APP.k(a,"__xTextAreaRefs");
|
|
9
|
+
if($APP.n(b)){b=$APP.k(b,"textarea");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.k(a,"__xTextAreaInternals");$APP.n(e)&&(e.setFormValue(c),U6(a,e,b));return $APP.ah(a,"x-text-area-change",{name:d,value:c})}return null}},c7=function(a){var b=$APP.k(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.k(a,"__xTextAreaHandlers");if($APP.n(c)){b=$APP.k(b,"textarea");b.removeEventListener("input",$APP.k(c,"input"));b.removeEventListener("change",$APP.k(c,"change"));a.__xTextAreaHandlers=
|
|
10
|
+
null;return}}return null},nea=function(a,b){$APP.$g(a,"disabled",$APP.E(b));return b7(a)},oea=function(a){a.removeAttribute("value");var b=$APP.k(a,"__xTextAreaRefs");$APP.n(b)&&($APP.k(b,"textarea").value="");b=$APP.k(a,"__xTextAreaInternals");$APP.n(b)&&b.setFormValue("");return b7(a)},pea=function(a){if(!$APP.n($APP.k(a,"__xTextAreaRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("label"),f=document.createElement("div"),
|
|
11
11
|
h=document.createElement("textarea"),l=document.createElement("span"),m=document.createElement("span");c.textContent=":host{display:block;color-scheme:light dark;--x-text-area-label-color:#374151;--x-text-area-label-font-size:var(--x-font-size-sm,0.875rem);--x-text-area-bg:var(--x-color-surface,#ffffff);--x-text-area-color:#111827;--x-text-area-border:1px solid var(--x-color-border,#d1d5db);--x-text-area-border-radius:var(--x-radius-md,6px);--x-text-area-padding:0.5rem 0.75rem;--x-text-area-focus-ring-color:var(--x-color-primary,#2563eb);--x-text-area-error-color:var(--x-color-danger,#dc2626);--x-text-area-hint-color:var(--x-color-text-muted,#6b7280);--x-text-area-disabled-opacity:0.45;--x-text-area-min-height:5rem;--x-text-area-font-size:var(--x-font-size-base,1rem);--x-text-area-resize:vertical;}@media (prefers-color-scheme:dark){:host{--x-text-area-label-color:var(--x-color-border,#d1d5db);--x-text-area-bg:var(--x-color-surface,#1f2937);--x-text-area-color:#f9fafb;--x-text-area-border:1px solid var(--x-color-border,#4b5563);--x-text-area-focus-ring-color:var(--x-color-primary,#3b82f6);--x-text-area-error-color:#f87171;--x-text-area-hint-color:var(--x-color-text-muted,#9ca3af);}}[part\x3dfield]{display:flex;flex-direction:column;gap:0.25rem;}[part\x3dlabel]{display:block;font-size:var(--x-text-area-label-font-size);font-weight:500;color:var(--x-text-area-label-color);}.label-hidden{display:none;}[part\x3dtextarea-wrapper]{display:block;}[part\x3dtextarea]{display:block;width:100%;box-sizing:border-box;min-height:var(--x-text-area-min-height);padding:var(--x-text-area-padding);background:var(--x-text-area-bg);color:var(--x-text-area-color);border:var(--x-text-area-border);border-radius:var(--x-text-area-border-radius);font-size:var(--x-text-area-font-size);line-height:1.5;font-family:inherit;outline:none;resize:var(--x-text-area-resize);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dtextarea]:focus{border-color:var(--x-text-area-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dtextarea]{border-color:var(--x-text-area-error-color);}:host([data-invalid]) [part\x3dtextarea]:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-error-color) 20%,transparent);}[part\x3dtextarea]:disabled{opacity:var(--x-text-area-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:0.8125rem;color:var(--x-text-area-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:0.8125rem;color:var(--x-text-area-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dtextarea]{transition:none;}}";
|
|
12
|
-
d.setAttribute("part","field");e.setAttribute("part","label");e.setAttribute("id","label");e.setAttribute("for","textarea");
|
|
13
|
-
d.appendChild(e);d.appendChild(
|
|
14
|
-
$APP.n(b)&&(b=$APP.k(b,"textarea"),c=
|
|
15
|
-
"textarea").value;b=this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&$APP.
|
|
16
|
-
3);$APP.
|
|
17
|
-
"resize-raw","resize-raw",-287517888),
|
|
18
|
-
$APP.
|
|
19
|
-
|
|
20
|
-
$APP.
|
|
12
|
+
d.setAttribute("part","field");e.setAttribute("part","label");e.setAttribute("id","label");e.setAttribute("for","textarea");f.setAttribute("part","textarea-wrapper");h.setAttribute("part","textarea");h.setAttribute("id","textarea");h.setAttribute("aria-labelledby","label");l.setAttribute("part","hint");l.setAttribute("id","hint");l.setAttribute("aria-live","polite");m.setAttribute("part","error");m.setAttribute("id","error");m.setAttribute("role","alert");m.setAttribute("aria-live","assertive");f.appendChild(h);
|
|
13
|
+
d.appendChild(e);d.appendChild(f);d.appendChild(l);d.appendChild(m);b.appendChild(c);b.appendChild(d);a.__xTextAreaRefs={field:d,label:e,textarea:h,hint:l,error:m};$APP.n(a.attachInternals)&&(b=a.attachInternals(),a.__xTextAreaInternals=b)}c7(a);b=$APP.k(a,"__xTextAreaRefs");$APP.n(b)&&(b=$APP.k(b,"textarea"),c=a.getAttribute("value"),$APP.n(c)&&(b.value=c));b=$APP.k(a,"__xTextAreaInternals");$APP.n(b)&&(c=b.setFormValue,d=a.getAttribute("value"),c.call(b,$APP.n(d)?d:""));b=$APP.k(a,"__xTextAreaRefs");
|
|
14
|
+
$APP.n(b)&&(b=$APP.k(b,"textarea"),c=lea(a),d=mea(a),b.addEventListener("input",c),b.addEventListener("change",d),a.__xTextAreaHandlers={input:c,change:d});return b7(a)},qea=function(a){return c7(a)},rea=function(a,b,c,d){$APP.B.j(b,"value")&&(b=$APP.k(a,"__xTextAreaRefs"),$APP.n(b)&&(b=$APP.k(b,"textarea"),$APP.M(b.value,d)&&(b.value=$APP.n(d)?d:"")));return b7(a)},sea=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.k(this,"__xTextAreaRefs");if($APP.n(b))return $APP.k(b,
|
|
15
|
+
"textarea").value;b=this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&$APP.M(b)?""+$APP.R.i(b):"";this.setAttribute("value",b);var c=$APP.k(this,"__xTextAreaRefs");return $APP.n(c)?$APP.k(c,"textarea").value=b:null}})},tea=function(a){sea(a);$APP.dh(a,"name","name","");$APP.dh(a,"placeholder","placeholder","");$APP.dh(a,"autocomplete","autocomplete","");$APP.ch(a,"disabled","disabled");$APP.ch(a,"readOnly","readonly");$APP.ch(a,"required","required");$APP.fh(a,"rows","rows",
|
|
16
|
+
3);$APP.fh(a,"maxLength","maxlength",null);return $APP.fh(a,"minLength","minlength",null)},d7=function(){return $APP.Wg("x-text-area",new $APP.P(null,8,[$APP.Mg,uea,$APP.Ng,pea,$APP.Og,qea,$APP.Qg,rea,$APP.Rg,!0,$APP.Sg,nea,$APP.Tg,oea,$APP.Ug,tea],null))},Z6=new $APP.F(null,"minlength","minlength",259053545),Y6=new $APP.F(null,"minlength-raw","minlength-raw",-1245403779),X6=new $APP.F(null,"maxlength-raw","maxlength-raw",-886656470),a7=new $APP.F(null,"maxlength","maxlength",-1163911985),V6=new $APP.F(null,
|
|
17
|
+
"resize-raw","resize-raw",-287517888),W6=new $APP.F(null,"rows-raw","rows-raw",-1828357145),$6=new $APP.F(null,"resize","resize",297367086);var uea="label name value placeholder hint error disabled readonly required rows maxlength minlength autocomplete resize".split(" "),kea=new $APP.Q(null,new $APP.P(null,4,["none",null,"vertical",null,"both",null,"horizontal",null],null),null);
|
|
18
|
+
$APP.Hf([$APP.fl,$APP.Ok,$APP.Fh,new $APP.F(null,"minLength","minLength",-1538722770),$APP.Ck,$APP.Wn,new $APP.F(null,"maxLength","maxLength",-1633020073),$APP.In,$APP.Wl],[new $APP.P(null,2,[$APP.S,$APP.U,$APP.T,"disabled"],null),new $APP.P(null,2,[$APP.S,$APP.V,$APP.T,"name"],null),new $APP.P(null,2,[$APP.S,$APP.V,$APP.T,"value"],null),new $APP.P(null,2,[$APP.S,$APP.W,$APP.T,"minlength"],null),new $APP.P(null,2,[$APP.S,$APP.W,$APP.T,"rows"],null),new $APP.P(null,2,[$APP.S,$APP.U,$APP.T,"readonly"],
|
|
19
|
+
null),new $APP.P(null,2,[$APP.S,$APP.W,$APP.T,"maxlength"],null),new $APP.P(null,2,[$APP.S,$APP.V,$APP.T,"autocomplete"],null),new $APP.P(null,2,[$APP.S,$APP.U,$APP.T,"required"],null)]);
|
|
20
|
+
$APP.Ud(["x-text-area-change-request",new $APP.P(null,2,[$APP.Un,!0,$APP.Z,new $APP.P(null,3,[$APP.Ok,$APP.V,$APP.Fh,$APP.V,$APP.mm,$APP.V],null)],null),"x-text-area-input",new $APP.P(null,2,[$APP.Un,!1,$APP.Z,new $APP.P(null,2,[$APP.Ok,$APP.V,$APP.Fh,$APP.V],null)],null),"x-text-area-change",new $APP.P(null,2,[$APP.Un,!1,$APP.Z,new $APP.P(null,2,[$APP.Ok,$APP.V,$APP.Fh,$APP.V],null)],null)]);$APP.da("baredom.exports.x_text_area.init",d7);export const init=d7;
|
package/dist/x-theme.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
2,5,$APP.
|
|
4
|
-
return $APP.
|
|
5
|
-
":"+$APP.
|
|
6
|
-
c.textContent=
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"#ffffff #64748b #16a34a #64748b #d97706 #1e40af #cbd5e1 #f8fafc #dc2626 #334155 #475569 #475569 #f1f5f9 #60a5fa #2563eb #f8fafc #0f172a #64748b #1d4ed8 #94a3b8".split(" "))])),
|
|
11
|
-
"#111827 #94a3b8 #22c55e #94a3b8 #f59e0b #1d4ed8 #374151 #1f2937 #ef4444 #475569 #64748b #64748b #273449 #93c5fd #3b82f6 #0f172a #f1f5f9 #94a3b8 #2563eb #64748b".split(" "))]))],null),
|
|
12
|
-
"#ffffff #5f7a7a #059669 #2dd4bf #d97706 #155e75 #99f6e4 #f0fdfa #e11d48 #115e59 #0f766e #14b8a6 #ccfbf1 #22d3ee #0891b2 #f0fdfa #134e4a #0d9488 #0e7490 #5eead4".split(" "))])),
|
|
13
|
-
"#0c1a1f #5eead4 #34d399 #5eead4 #fbbf24 #0e7490 #164e63 #133e4a #fb7185 #0f766e #0d9488 #2dd4bf #164e5e #67e8f9 #06b6d4 #061216 #ecfdf5 #14b8a6 #0891b2 #2dd4bf".split(" "))]))],null),
|
|
14
|
-
"#fffbeb #65753a #15803d #84cc16 #ca8a04 #14532d #d9d2b0 #fef9c3 #dc2626 #3f6212 #4d7c0f #65a30d #fef3c7 #4ade80 #15803d #fefce8 #1a2e05 #65a30d #166534 #a3e635".split(" "))])),
|
|
15
|
-
"#1a1f12 #86efac #4ade80 #bef264 #fbbf24 #15803d #3a4a24 #2a3318 #f87171 #4d7c0f #65a30d #a3e635 #354020 #86efac #22c55e #111408 #f0fdf4 #84cc16 #16a34a #a3e635".split(" "))]))],null)
|
|
16
|
-
"#ffffff #9a7b6b #16a34a #f97316 #ca8a04 #9a3412 #fed7aa #fff7ed #be123c #9f1239 #be123c #ea580c #ffedd5 #fb923c #ea580c #fffbf5 #431407 #e11d48 #c2410c #fb923c".split(" "))])),
|
|
17
|
-
"#1c1210 #fdba74 #4ade80 #fb923c #fbbf24 #c2410c #4a2d1f #2a1c17 #fb7185 #e11d48 #f43f5e #f97316 #3d261d #fdba74 #f97316 #140d0a #fff7ed #fb7185 #ea580c #fdba74".split(" "))]))],null),
|
|
18
|
-
"8px 8px 0 #000000;#ffffff;700;#555555;#00cc66;0;3px 3px 0 #000000;#333333;#ffcc00;#333333;#000000;2px;0;#f5f5f5;#ff0000;#cc0044;#e6004c;0;#1a1a1a;#eeeeee;#ff3366;#000000;#ffffff;#000000;#ff3366;'Space Grotesk',system-ui,sans-serif;0;5px 5px 0 #000000;#1a1a1a;#555555;1rem".split(";"))])),
|
|
19
|
-
"8px 8px 0 #ffffff;#111111;#aaaaaa;#44ff88;3px 3px 0 #ffffff;#888888;#ffdd44;#cc0044;#ffffff;#1a1a1a;#ff4444;#cccccc;#e5e5e5;#666666;#222222;#ff3366;#ff3366;#000000;#ffffff;#ffffff;5px 5px 0 #ffffff;#e6004c;#aaaaaa".split(";"))],null),
|
|
20
|
-
"0 10px 30px rgba(139,92,246,0.15),0 4px 10px rgba(139,92,246,0.10);rgba(255,255,255,0.72);#7c7aad;#059669;0 1px 3px rgba(139,92,246,0.10);#0891b2;0.45;#d97706;#5b21b6;rgba(196,181,253,0.5);rgba(248,245,255,0.80);#e11d48;#be185d;#db2777;#0e7490;rgba(243,232,255,0.85);#a78bfa;#7c3aed;#faf5ff;#1e1b4b;#ec4899;0 4px 15px rgba(139,92,246,0.12),0 2px 4px rgba(139,92,246,0.08);#6d28d9;#06b6d4".split(";"))])),
|
|
21
|
-
"0 10px 30px rgba(139,92,246,0.30),0 4px 10px rgba(139,92,246,0.18);rgba(30,20,60,0.72);#a5b4fc;#34d399;0 1px 3px rgba(139,92,246,0.20);#06b6d4;#fbbf24;#7c3aed;rgba(139,92,246,0.3);rgba(45,30,80,0.78);#fb7185;#db2777;#ec4899;#0891b2;rgba(55,35,95,0.85);#c4b5fd;#a78bfa;#0f0720;#ede9fe;#f472b6;0 4px 15px rgba(139,92,246,0.25),0 2px 4px rgba(139,92,246,0.15);#8b5cf6;#22d3ee".split(";"))],null),
|
|
22
|
-
"0 10px 25px rgba(0,0,0,0.10),0 4px 10px rgba(0,0,0,0.06);#fafafa;600;#71717a;#22c55e;0 1px 2px rgba(0,0,0,0.06);#52525b;1rem;#eab308;#3f3f46;1.125rem;#d4d4d8;500;#f4f4f5;#ef4444;'JetBrains Mono',ui-monospace,monospace;#24c00a;#2ee00f;#3f3f46;#e4e4e7;#39ff14;0.875rem;#18181b;#ffffff;1.4;#18181b;#39ff14;'JetBrains Mono',ui-monospace,monospace;0.75rem;400;0 4px 10px rgba(0,0,0,0.08),0 2px 4px rgba(0,0,0,0.04);#27272a;#71717a".split(";"))])),
|
|
23
|
-
"0 10px 25px rgba(0,0,0,0.50),0 4px 10px rgba(0,0,0,0.35);#09090b;#71717a;#4ade80;0 1px 2px rgba(0,0,0,0.40);#71717a;#facc15;#14532d;#27272a;#18181b;#f87171;#a1a1aa;#d4d4d8;#52525b;#27272a;#39ff14;#15803d;#000000;#e4e4e7;#e4e4e7;0 4px 10px rgba(0,0,0,0.45),0 2px 4px rgba(0,0,0,0.30);#166534;#52525b".split(";"))],null),
|
|
24
|
-
"#fefdfb #8b7355 #4d7c0f #c49250 #ca8a04 #78350f #d6c4a8 #fdf8f0 #dc2626 #713f12 #854d0e #b08040 #f5ebe0 #d97706 #b45309 #fdf8f0 #3b2417 #a16207 #92400e #d6a56a".split(" "))])),
|
|
25
|
-
"#1e1c18 #9c9488 #84cc16 #8e847c #fbbf24 #8e4a38 #44403a #2a2822 #f87171 #8a7052 #a18360 #7a7068 #38352e #d4a574 #c2785a #14130f #e8e0d4 #b8976e #a8604a #7a7068".split(" "))]))],null),
|
|
26
|
-
null],null),null);$APP.
|
|
2
|
+
var KK=function(a,b){var c=GK.i(HK),d=IK.i(HK),e=b.light,f=b.dark;b=$APP.$f($APP.xc([c,$APP.n(e)?$APP.df.j($APP.Vd,function(){return function m(l){return new $APP.xd(null,function(){for(;;){var q=$APP.t(l);if(q){if($APP.Rc(q)){var r=$APP.yb(q),v=$APP.z(r),w=$APP.Ad(v);a:{for(var y=0;;)if(y<v){var A=$APP.Bc(r,y);w.add(new $APP.N(null,2,5,$APP.O,[A,$APP.k(e,A)],null));y+=1}else{r=!0;break a}r=void 0}return r?$APP.Dd(w.ba(),m($APP.zb(q))):$APP.Dd(w.ba(),null)}w=$APP.u(q);return $APP.ud(new $APP.N(null,
|
|
3
|
+
2,5,$APP.O,[w,$APP.k(e,w)],null),m($APP.$b(q)))}return null}},null)}(Object.keys(e))}()):null]));d=$APP.$f($APP.xc([d,$APP.n(f)?$APP.df.j($APP.Vd,function(){return function m(l){return new $APP.xd(null,function(){for(;;){var q=$APP.t(l);if(q){if($APP.Rc(q)){var r=$APP.yb(q),v=$APP.z(r),w=$APP.Ad(v);a:{for(var y=0;;)if(y<v){var A=$APP.Bc(r,y);w.add(new $APP.N(null,2,5,$APP.O,[A,$APP.k(f,A)],null));y+=1}else{r=!0;break a}r=void 0}return r?$APP.Dd(w.ba(),m($APP.zb(q))):$APP.Dd(w.ba(),null)}w=$APP.u(q);
|
|
4
|
+
return $APP.ud(new $APP.N(null,2,5,$APP.O,[w,$APP.k(f,w)],null),m($APP.$b(q)))}return null}},null)}(Object.keys(f))}()):null]));return $APP.fa(JK,a,new $APP.P(null,2,[GK,b,IK,d],null))},LK=function(a){var b=[];a=$APP.t(a);for(var c=null,d=0,e=0;;)if(e<d){var f=c.G(null,e),h=$APP.Dc(f,0,null);f=$APP.Dc(f,1,null);b.push(""+$APP.R.i(h)+":"+$APP.R.i(f)+";");e+=1}else if(a=$APP.t(a))$APP.Rc(a)?(d=$APP.yb(a),a=$APP.zb(a),c=d,d=$APP.z(d)):(d=$APP.u(a),c=$APP.Dc(d,0,null),d=$APP.Dc(d,1,null),b.push(""+$APP.R.i(c)+
|
|
5
|
+
":"+$APP.R.i(d)+";"),a=$APP.x(a),c=null,d=0),e=0;else break;return b.join("")},OK=function(a){a=typeof a!=="string"||!$APP.Vc(MK,a)&&$APP.k(JK,a)==null?"default":a;var b=$APP.k(JK,a);$APP.n(b)||(a=$APP.C(NK,a),b=$APP.n(a)?a:HK);a=GK.i(b);b=IK.i(b);return":host{display:contents;"+$APP.R.i(LK(a))+"}@media(prefers-color-scheme:dark){:host{"+$APP.R.i(LK(b))+"}}"},PK=function(a){if($APP.n($APP.k(a,"__xThemeRefs")))a=null;else{var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");
|
|
6
|
+
c.textContent=OK(a.getAttribute("preset"));b.appendChild(c);b.appendChild(d);a.__xThemeRefs={style:c};a=void 0}return a},QK=function(){return null},RK=function(a){var b=$APP.k(a,"__xThemeRefs");return $APP.n(b)?b.style.textContent=OK(a.getAttribute("preset")):null},SK=function(a){return $APP.eh(a,"preset","preset")},TK=function(a,b){return KK(a,b)},VK=function(){return $APP.Wg("x-theme",new $APP.P(null,5,[$APP.Mg,UK,$APP.Ng,PK,$APP.Og,QK,$APP.Qg,RK,$APP.Ug,SK],null))},GK=new $APP.F(null,"light","light",
|
|
7
|
+
1918998747),IK=new $APP.F(null,"dark","dark",1818973999);var UK=["preset"],WK=$APP.Hf("--x-font-weight-semibold --x-font-size-base --x-font-size-lg --x-font-weight-medium --x-font-family-mono --x-font-size-sm --x-line-height-normal --x-font-family --x-font-size-xs --x-font-weight-normal".split(" "),"600;1rem;1.125rem;500;ui-monospace,'SF Mono',monospace;0.875rem;1.5;system-ui,-apple-system,sans-serif;0.75rem;400".split(";")),XK=$APP.Ud("--x-radius-sm 0.375rem --x-radius-md 0.75rem --x-radius-lg 1rem --x-radius-full 9999px --x-border-width 1px".split(" ")),
|
|
8
|
+
YK=$APP.Ud(["--x-transition-duration","140ms","--x-transition-easing","cubic-bezier(0.2,0,0,1)"]),ZK=$APP.Ud("--x-space-xs 0.25rem --x-space-sm 0.5rem --x-space-md 0.75rem --x-space-lg 1rem --x-space-xl 1.5rem".split(" ")),$K=$APP.Ud("--x-z-dropdown 1000 --x-z-modal 1100 --x-z-toast 1200".split(" ")),aL=$APP.Ud(["--x-opacity-disabled","0.5","--x-opacity-placeholder","0.6"]),bL=$APP.Ud("--x-shadow-sm;0 1px 2px rgba(15,23,42,0.08);--x-shadow-md;0 4px 10px rgba(15,23,42,0.10),0 2px 4px rgba(15,23,42,0.06);--x-shadow-lg;0 10px 25px rgba(15,23,42,0.12),0 4px 10px rgba(15,23,42,0.08)".split(";")),
|
|
9
|
+
cL=$APP.Ud("--x-shadow-sm;0 1px 2px rgba(0,0,0,0.35);--x-shadow-md;0 6px 14px rgba(0,0,0,0.35),0 2px 6px rgba(0,0,0,0.24);--x-shadow-lg;0 12px 30px rgba(0,0,0,0.40),0 4px 12px rgba(0,0,0,0.30)".split(";")),HK=new $APP.P(null,2,[GK,$APP.$f($APP.xc([WK,XK,YK,bL,ZK,$K,aL,$APP.Hf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
10
|
+
"#ffffff #64748b #16a34a #64748b #d97706 #1e40af #cbd5e1 #f8fafc #dc2626 #334155 #475569 #475569 #f1f5f9 #60a5fa #2563eb #f8fafc #0f172a #64748b #1d4ed8 #94a3b8".split(" "))])),IK,$APP.$f($APP.xc([cL,$APP.Hf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
11
|
+
"#111827 #94a3b8 #22c55e #94a3b8 #f59e0b #1d4ed8 #374151 #1f2937 #ef4444 #475569 #64748b #64748b #273449 #93c5fd #3b82f6 #0f172a #f1f5f9 #94a3b8 #2563eb #64748b".split(" "))]))],null),dL=new $APP.P(null,2,[GK,$APP.$f($APP.xc([WK,XK,YK,bL,ZK,$K,aL,$APP.Hf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
12
|
+
"#ffffff #5f7a7a #059669 #2dd4bf #d97706 #155e75 #99f6e4 #f0fdfa #e11d48 #115e59 #0f766e #14b8a6 #ccfbf1 #22d3ee #0891b2 #f0fdfa #134e4a #0d9488 #0e7490 #5eead4".split(" "))])),IK,$APP.$f($APP.xc([cL,$APP.Hf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
13
|
+
"#0c1a1f #5eead4 #34d399 #5eead4 #fbbf24 #0e7490 #164e63 #133e4a #fb7185 #0f766e #0d9488 #2dd4bf #164e5e #67e8f9 #06b6d4 #061216 #ecfdf5 #14b8a6 #0891b2 #2dd4bf".split(" "))]))],null),eL=new $APP.P(null,2,[GK,$APP.$f($APP.xc([WK,XK,YK,bL,ZK,$K,aL,$APP.Hf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
14
|
+
"#fffbeb #65753a #15803d #84cc16 #ca8a04 #14532d #d9d2b0 #fef9c3 #dc2626 #3f6212 #4d7c0f #65a30d #fef3c7 #4ade80 #15803d #fefce8 #1a2e05 #65a30d #166534 #a3e635".split(" "))])),IK,$APP.$f($APP.xc([cL,$APP.Hf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
15
|
+
"#1a1f12 #86efac #4ade80 #bef264 #fbbf24 #15803d #3a4a24 #2a3318 #f87171 #4d7c0f #65a30d #a3e635 #354020 #86efac #22c55e #111408 #f0fdf4 #84cc16 #16a34a #a3e635".split(" "))]))],null),fL=new $APP.P(null,2,[GK,$APP.$f($APP.xc([WK,XK,YK,bL,ZK,$K,aL,$APP.Hf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
16
|
+
"#ffffff #9a7b6b #16a34a #f97316 #ca8a04 #9a3412 #fed7aa #fff7ed #be123c #9f1239 #be123c #ea580c #ffedd5 #fb923c #ea580c #fffbf5 #431407 #e11d48 #c2410c #fb923c".split(" "))])),IK,$APP.$f($APP.xc([cL,$APP.Hf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
17
|
+
"#1c1210 #fdba74 #4ade80 #fb923c #fbbf24 #c2410c #4a2d1f #2a1c17 #fb7185 #e11d48 #f43f5e #f97316 #3d261d #fdba74 #f97316 #140d0a #fff7ed #fb7185 #ea580c #fdba74".split(" "))]))],null),gL=new $APP.P(null,2,[GK,$APP.$f($APP.xc([WK,YK,ZK,$K,aL,$APP.Hf("--x-shadow-lg --x-color-surface --x-font-weight-semibold --x-color-text-muted --x-color-success --x-radius-sm --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-border-width --x-radius-full --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-radius-lg --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-font-family --x-radius-md --x-shadow-md --x-color-primary-hover --x-color-tertiary --x-space-md".split(" "),
|
|
18
|
+
"8px 8px 0 #000000;#ffffff;700;#555555;#00cc66;0;3px 3px 0 #000000;#333333;#ffcc00;#333333;#000000;2px;0;#f5f5f5;#ff0000;#cc0044;#e6004c;0;#1a1a1a;#eeeeee;#ff3366;#000000;#ffffff;#000000;#ff3366;'Space Grotesk',system-ui,sans-serif;0;5px 5px 0 #000000;#1a1a1a;#555555;1rem".split(";"))])),IK,$APP.Hf("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
19
|
+
"8px 8px 0 #ffffff;#111111;#aaaaaa;#44ff88;3px 3px 0 #ffffff;#888888;#ffdd44;#cc0044;#ffffff;#1a1a1a;#ff4444;#cccccc;#e5e5e5;#666666;#222222;#ff3366;#ff3366;#000000;#ffffff;#ffffff;5px 5px 0 #ffffff;#e6004c;#aaaaaa".split(";"))],null),hL=new $APP.P(null,2,[GK,$APP.$f($APP.xc([WK,XK,YK,ZK,$K,aL,$APP.Hf("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-opacity-disabled --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
20
|
+
"0 10px 30px rgba(139,92,246,0.15),0 4px 10px rgba(139,92,246,0.10);rgba(255,255,255,0.72);#7c7aad;#059669;0 1px 3px rgba(139,92,246,0.10);#0891b2;0.45;#d97706;#5b21b6;rgba(196,181,253,0.5);rgba(248,245,255,0.80);#e11d48;#be185d;#db2777;#0e7490;rgba(243,232,255,0.85);#a78bfa;#7c3aed;#faf5ff;#1e1b4b;#ec4899;0 4px 15px rgba(139,92,246,0.12),0 2px 4px rgba(139,92,246,0.08);#6d28d9;#06b6d4".split(";"))])),IK,$APP.Hf("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
21
|
+
"0 10px 30px rgba(139,92,246,0.30),0 4px 10px rgba(139,92,246,0.18);rgba(30,20,60,0.72);#a5b4fc;#34d399;0 1px 3px rgba(139,92,246,0.20);#06b6d4;#fbbf24;#7c3aed;rgba(139,92,246,0.3);rgba(45,30,80,0.78);#fb7185;#db2777;#ec4899;#0891b2;rgba(55,35,95,0.85);#c4b5fd;#a78bfa;#0f0720;#ede9fe;#f472b6;0 4px 15px rgba(139,92,246,0.25),0 2px 4px rgba(139,92,246,0.15);#8b5cf6;#22d3ee".split(";"))],null),iL=new $APP.P(null,2,[GK,$APP.$f($APP.xc([XK,YK,ZK,$K,aL,$APP.Hf("--x-shadow-lg --x-color-surface --x-font-weight-semibold --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-font-size-base --x-color-warning --x-color-primary-active --x-font-size-lg --x-color-border --x-font-weight-medium --x-color-surface-hover --x-color-danger --x-font-family-mono --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-font-size-sm --x-color-primary --x-color-bg --x-line-height-normal --x-color-text --x-color-secondary --x-font-family --x-font-size-xs --x-font-weight-normal --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
22
|
+
"0 10px 25px rgba(0,0,0,0.10),0 4px 10px rgba(0,0,0,0.06);#fafafa;600;#71717a;#22c55e;0 1px 2px rgba(0,0,0,0.06);#52525b;1rem;#eab308;#3f3f46;1.125rem;#d4d4d8;500;#f4f4f5;#ef4444;'JetBrains Mono',ui-monospace,monospace;#24c00a;#2ee00f;#3f3f46;#e4e4e7;#39ff14;0.875rem;#18181b;#ffffff;1.4;#18181b;#39ff14;'JetBrains Mono',ui-monospace,monospace;0.75rem;400;0 4px 10px rgba(0,0,0,0.08),0 2px 4px rgba(0,0,0,0.04);#27272a;#71717a".split(";"))])),IK,$APP.Hf("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
23
|
+
"0 10px 25px rgba(0,0,0,0.50),0 4px 10px rgba(0,0,0,0.35);#09090b;#71717a;#4ade80;0 1px 2px rgba(0,0,0,0.40);#71717a;#facc15;#14532d;#27272a;#18181b;#f87171;#a1a1aa;#d4d4d8;#52525b;#27272a;#39ff14;#15803d;#000000;#e4e4e7;#e4e4e7;0 4px 10px rgba(0,0,0,0.45),0 2px 4px rgba(0,0,0,0.30);#166534;#52525b".split(";"))],null),jL=new $APP.P(null,2,[GK,$APP.$f($APP.xc([WK,XK,YK,bL,ZK,$K,aL,$APP.Hf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
24
|
+
"#fefdfb #8b7355 #4d7c0f #c49250 #ca8a04 #78350f #d6c4a8 #fdf8f0 #dc2626 #713f12 #854d0e #b08040 #f5ebe0 #d97706 #b45309 #fdf8f0 #3b2417 #a16207 #92400e #d6a56a".split(" "))])),IK,$APP.$f($APP.xc([cL,$APP.Hf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
|
|
25
|
+
"#1e1c18 #9c9488 #84cc16 #8e847c #fbbf24 #8e4a38 #44403a #2a2822 #f87171 #8a7052 #a18360 #7a7068 #38352e #d4a574 #c2785a #14130f #e8e0d4 #b8976e #a8604a #7a7068".split(" "))]))],null),NK=new $APP.P(null,8,["default",HK,"ocean",dL,"forest",eL,"sunset",fL,"neo-brutalist",gL,"aurora",hL,"mono-ai",iL,"warm-mineral",jL],null),JK=Object.create(null),MK=new $APP.Q(null,new $APP.P(null,8,["warm-mineral",null,"mono-ai",null,"ocean",null,"aurora",null,"sunset",null,"forest",null,"neo-brutalist",null,"default",
|
|
26
|
+
null],null),null);$APP.da("baredom.exports.x_theme.registerPreset",TK);$APP.da("baredom.exports.x_theme.init",VK);export const init=VK;export const registerPreset=TK;
|
package/dist/x-timeline-item.js
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
b){a=$APP.
|
|
4
|
-
$APP.
|
|
5
|
-
$APP.
|
|
6
|
-
document.createElement("div"),
|
|
7
|
-
d.setAttribute("class","timeline-item");e.setAttribute("class","label-col");
|
|
8
|
-
"title");A.setAttribute("class","body");A.appendChild(
|
|
9
|
-
$APP.
|
|
10
|
-
d=$APP.
|
|
11
|
-
|
|
12
|
-
(a.__xTimelineItemEntered=!0,a.setAttribute("data-entering",""),a.addEventListener("animationend",function d(c){return $APP.B.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
$APP.Pd(["x-timeline-item-connected",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,4,[$APP.Rk,$APP.Y,$APP.T,$APP.Y,$APP.vn,$APP.Y,$APP.kk,$APP.uk],null),$APP.Km,!1],null),"x-timeline-item-disconnected",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,2,[$APP.Rk,$APP.Y,$APP.T,$APP.Y],null),$APP.Km,!1],null),"x-timeline-item-click",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,2,[$APP.Rk,$APP.Y,$APP.T,$APP.Y],null),$APP.Km,!0],null)]);
|
|
24
|
-
var Wn=new $APP.Q(null,5,["pending",$APP.Bi,"active",$APP.ck,"complete",$APP.gn,"error",$APP.Wi,"warning",$APP.Im],null),Yn=new $APP.Q(null,5,[$APP.Bi,"pending",$APP.ck,"active",$APP.gn,"complete",$APP.Wi,"error",$APP.Im,"warning"],null),mo=new $APP.Q(null,5,[$APP.Bi,"○",$APP.ck,"●",$APP.gn,"✓",$APP.Wi,"✕",$APP.Im,"!"],null),$n=new $APP.Q(null,3,["solid",ao,"dashed",Eo,"none",Fo],null),fo=new $APP.Q(null,2,["start",$APP.Lm,"end",$APP.cj],null);$APP.ha("baredom.exports.x_timeline_item.init",Qo);export const init=Qo;
|
|
2
|
+
var lp=function(a){a=$APP.C(kp,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.xj},np=function(a){a=$APP.C(mp,a);return $APP.n(a)?a:"pending"},qp=function(a){a=$APP.C(op,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:pp},rp=function(a){return typeof a==="string"?(a=a.trim(),$APP.M(a,"")&&$APP.M(a.toLowerCase(),"none")?a:null):null},sp=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>=0?a:null):null},up=function(a,
|
|
3
|
+
b){a=$APP.C(tp,typeof a==="string"?a.toLowerCase():null);$APP.n(a)?b=a:(b=$APP.C(tp,typeof b==="string"?b.toLowerCase():null),b=$APP.n(b)?b:$APP.Vn);return b},vp=function(a,b,c){a=np(a);c=c!=null?"Step "+$APP.R.i(c+1)+": ":null;return""+$APP.R.i(c)+$APP.R.i(typeof b==="string"&&$APP.M(b,"")?""+$APP.R.i(b)+" ":null)+"("+$APP.R.i(a)+")"},Fp=function(a){var b=$APP.H(a),c=$APP.C(b,wp);a=$APP.C(b,$APP.Y);var d=$APP.C(b,$APP.ol),e=$APP.C(b,$APP.Bh),f=$APP.C(b,xp),h=$APP.C(b,$APP.Pj),l=$APP.C(b,yp),m=$APP.C(b,
|
|
4
|
+
$APP.fk),q=$APP.C(b,zp),r=$APP.C(b,$APP.kj),v=$APP.C(b,$APP.Ll);b=$APP.C(b,$APP.Qk);var w=lp(m),y=rp(b),A=$APP.n($APP.n(r)?y==null:r)?$APP.Ho:y!=null?$APP.cn:$APP.hh;m=function(){var D=A instanceof $APP.F?A.pa:null;switch(D){case "default":return D=$APP.C(Ap,w),$APP.n(D)?D:$APP.C(Ap,$APP.xj);case "custom":return y;case "hidden":return null;default:throw Error("No matching clause: "+$APP.R.i(D));}}();c=sp(c);d=up(l,d);e=$APP.n(e)?e:"";v=$APP.n(v)?v:"";return $APP.Hf([$APP.Cj,Bp,Cp,xp,zp,$APP.hm,$APP.Jj,
|
|
5
|
+
$APP.Rl,$APP.X,Dp,$APP.Il,$APP.Y,Ep],[qp(h),c,m,$APP.E(f),$APP.E(q),$APP.B.j(A,$APP.cn)?y:null,v,w,e,vp(w,e,c),A,$APP.E(a),d])},Gp=function(a){a=$APP.H(a);a=$APP.C(a,$APP.Y);return $APP.p(a)},Qp=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"),f=document.createElement("slot"),h=document.createElement("span"),l=document.createElement("div"),m=
|
|
6
|
+
document.createElement("div"),q=document.createElement("slot"),r=document.createElement("span"),v=document.createElement("div"),w=document.createElement("div"),y=document.createElement("div"),A=document.createElement("div"),D=document.createElement("slot"),G=document.createElement("div"),I=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");f.setAttribute("name","label");h.setAttribute("class","label-text");f.appendChild(h);e.appendChild(f);l.setAttribute("class","track-col");m.setAttribute("class","marker");q.setAttribute("name","icon");r.setAttribute("class","default-icon");r.setAttribute("aria-hidden","true");q.appendChild(r);m.appendChild(q);v.setAttribute("class","connector");l.appendChild(m);l.appendChild(v);w.setAttribute("class","content-col");y.setAttribute("class",
|
|
8
|
+
"title");A.setAttribute("class","body");A.appendChild(D);G.setAttribute("class","actions");I.setAttribute("name","actions");G.appendChild(I);w.appendChild(y);w.appendChild(A);w.appendChild(G);d.appendChild(e);d.appendChild(l);d.appendChild(w);b.appendChild(c);b.appendChild(d);b=$APP.Hf([$APP.Cj,Hp,$APP.km,$APP.Bo,Ip,Jp,$APP.oo,Kp,$APP.Qh,Lp,$APP.om,Mp,Np,Op,$APP.Ik,Pp],[v,h,m,r,e,l,A,D,b,I,y,w,d,G,q,f]);a.__xTimelineItemRefs=b;return $APP.k(a,"__xTimelineItemRefs")},Rp=function(a){return Fp($APP.Hf([$APP.ol,
|
|
9
|
+
$APP.Bh,xp,$APP.Pj,yp,$APP.fk,zp,$APP.kj,$APP.Ll,$APP.Qk,wp,$APP.Y],[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")]))},Up=function(a){var b=Rp(a);if($APP.M($APP.k(a,"__xTimelineItemModel"),b)){b=$APP.H(b);var c=$APP.C(b,$APP.X),
|
|
10
|
+
d=$APP.C(b,$APP.Jj),e=$APP.C(b,$APP.Rl),f=$APP.C(b,Ep),h=$APP.C(b,$APP.Y),l=$APP.C(b,Cp),m=$APP.C(b,Dp),q=Qp(a),r=$APP.H(q);q=$APP.C(r,Hp);var v=$APP.C(r,$APP.km),w=$APP.C(r,$APP.om);r=$APP.C(r,$APP.Bo);$APP.Zg(a,"data-status",np(e));a.__xTimelineItemSelfPos=!0;$APP.Zg(a,"data-position",$APP.gg(f));a.__xTimelineItemSelfPos=null;$APP.B.j($APP.Cj.i(b),Sp)?a.setAttribute("data-connector","dashed"):$APP.B.j($APP.Cj.i(b),Tp)?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.M(d,"")?d:$APP.M(c,"")?c:null;$APP.n(e)?a.setAttribute("aria-label",e):a.removeAttribute("aria-label");v.setAttribute("aria-label",m);q.textContent=c;r.textContent=l!=null?l:"";$APP.M(d,"")?(w.removeAttribute("hidden"),w.textContent=d):(w.setAttribute("hidden",""),w.textContent="");a.__xTimelineItemModel=b}},Vp=function(a){$APP.n($APP.k(a,"__xTimelineItemEntered"))||
|
|
12
|
+
(a.__xTimelineItemEntered=!0,a.setAttribute("data-entering",""),a.addEventListener("animationend",function d(c){return $APP.B.j(c.target,a)?(a.removeEventListener("animationend",d),a.removeAttribute("data-entering")):null}))},Wp=function(a){var b=$APP.k(a,"__xTimelineItemModel");b=$APP.n(b)?b:Rp(a);var c=$APP.H(b);b=$APP.C(c,$APP.Rl);c=$APP.C(c,$APP.X);b=new $APP.P(null,2,[$APP.Rl,np(b),$APP.X,c],null);$APP.bh(a,"x-timeline-item-click",$APP.Wi(b))},Xp=function(a){function b(d){var e=d.key;if($APP.B.j(e,
|
|
13
|
+
"Enter")||$APP.B.j(e," "))e=$APP.k(a,"__xTimelineItemModel"),e=$APP.n(e)?e:Rp(a),Gp(e)&&(d.preventDefault(),Wp(a));return null}function c(){var d=$APP.k(a,"__xTimelineItemModel");d=$APP.n(d)?d:Rp(a);Gp(d)&&Wp(a);return null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.fa(a,"__xTimelineItemHandlers",{click:c,keydown:b})},Yp=function(a){var b=$APP.k(a,"__xTimelineItemHandlers");if($APP.n(b)){var c=$APP.k(b,"click");b=$APP.k(b,"keydown");$APP.n(c)&&a.removeEventListener("click",
|
|
14
|
+
c);$APP.n(b)&&a.removeEventListener("keydown",b)}a.__xTimelineItemHandlers=null},Zp=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.M(b,""):b)?this.setAttribute("label",""+$APP.R.i(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"title",{get:function(){var b=this.getAttribute("title");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?
|
|
15
|
+
$APP.M(b,""):b)?this.setAttribute("title",""+$APP.R.i(b)):this.removeAttribute("title")},enumerable:!0,configurable:!0});$APP.dh(a,"status","status","pending");$APP.eh(a,"icon","icon");$APP.dh(a,"connector","connector","solid");$APP.dh(a,"position","position","start");return $APP.ch(a,"disabled","disabled")},$p=function(a){Qp(a);Yp(a);Xp(a);var b=a.getAttribute("data-position");$APP.n(b)&&(a.__xTimelineItemParentPos=b);Up(a);Vp(a);b=$APP.k(a,"__xTimelineItemModel");b=$APP.n(b)?b:Rp(a);var c=$APP.H(b);
|
|
16
|
+
b=$APP.C(c,$APP.Rl);var d=$APP.C(c,$APP.X),e=$APP.C(c,Ep);c=$APP.C(c,$APP.Y);b=new $APP.P(null,4,[$APP.Rl,np(b),$APP.X,d,$APP.Io,$APP.gg(e),$APP.fl,$APP.E(c)],null);$APP.ah(a,"x-timeline-item-connected",$APP.Wi(b));return null},aq=function(a){var b=$APP.k(a,"__xTimelineItemModel");var c=$APP.n(b)?b:Rp(a);Yp(a);a.__xTimelineItemEntered=null;a=document;b=a.dispatchEvent;var d=CustomEvent,e=$APP.H(c);c=$APP.C(e,$APP.Rl);e=$APP.C(e,$APP.X);c=new $APP.P(null,2,[$APP.Rl,np(c),$APP.X,e],null);b.call(a,new d("x-timeline-item-disconnected",
|
|
17
|
+
{detail:$APP.Wi(c),bubbles:!1,composed:!1,cancelable:!1}));return null},bq=function(a,b,c,d){if(c=$APP.M(c,d))c=$APP.B.j(b,"data-position"),c=!$APP.n(c?$APP.k(a,"__xTimelineItemSelfPos"):c);c&&($APP.B.j(b,"data-position")&&(a.__xTimelineItemParentPos=d),Up(a));return null},dq=function(){return $APP.Wg("x-timeline-item",new $APP.P(null,5,[$APP.Mg,cq,$APP.Ng,$p,$APP.Og,aq,$APP.Qg,bq,$APP.Ug,Zp],null))},Jp=new $APP.F(null,"track-col","track-col",629248272),Lp=new $APP.F(null,"actions-slot","actions-slot",
|
|
18
|
+
1424248629),Ep=new $APP.F(null,"effective-position","effective-position",840072317),Ip=new $APP.F(null,"label-col","label-col",1883390160),Hp=new $APP.F(null,"label-text","label-text",-1566972381),xp=new $APP.F(null,"data-striped?","data-striped?",906911587),Op=new $APP.F(null,"actions-el","actions-el",1486248509),Mp=new $APP.F(null,"content-col","content-col",767367449),Sp=new $APP.F(null,"dashed","dashed",-1449249319),Np=new $APP.F(null,"item-div","item-div",1630512700),Dp=new $APP.F(null,"marker-aria",
|
|
19
|
+
"marker-aria",-353426855),Cp=new $APP.F(null,"marker-icon","marker-icon",424963779),pp=new $APP.F(null,"solid","solid",-2023773691),Kp=new $APP.F(null,"default-slot","default-slot",-1145647151),zp=new $APP.F(null,"data-last?","data-last?",-1110326839),yp=new $APP.F(null,"data-position-raw","data-position-raw",256144356),wp=new $APP.F(null,"data-index-raw","data-index-raw",491574874),Bp=new $APP.F(null,"data-index","data-index",1161508385),Pp=new $APP.F(null,"label-slot","label-slot",-1755862561),
|
|
20
|
+
Tp=new $APP.F(null,"none","none",1333468478);var cq="label title status icon connector position disabled data-last data-index data-position data-striped".split(" ");
|
|
21
|
+
$APP.Ud(["x-timeline-item-connected",new $APP.P(null,2,[$APP.Z,new $APP.P(null,4,[$APP.Rl,$APP.V,$APP.X,$APP.V,$APP.Io,$APP.V,$APP.fl,$APP.U],null),$APP.Un,!1],null),"x-timeline-item-disconnected",new $APP.P(null,2,[$APP.Z,new $APP.P(null,2,[$APP.Rl,$APP.V,$APP.X,$APP.V],null),$APP.Un,!1],null),"x-timeline-item-click",new $APP.P(null,2,[$APP.Z,new $APP.P(null,2,[$APP.Rl,$APP.V,$APP.X,$APP.V],null),$APP.Un,!0],null)]);
|
|
22
|
+
var kp=new $APP.P(null,5,["pending",$APP.xj,"active",$APP.$k,"complete",$APP.uo,"error",$APP.Qj,"warning",$APP.Rn],null),mp=new $APP.P(null,5,[$APP.xj,"pending",$APP.$k,"active",$APP.uo,"complete",$APP.Qj,"error",$APP.Rn,"warning"],null),Ap=new $APP.P(null,5,[$APP.xj,"○",$APP.$k,"●",$APP.uo,"✓",$APP.Qj,"✕",$APP.Rn,"!"],null),op=new $APP.P(null,3,["solid",pp,"dashed",Sp,"none",Tp],null),tp=new $APP.P(null,2,["start",$APP.Vn,"end",$APP.Wj],null);$APP.da("baredom.exports.x_timeline_item.init",dq);export const init=dq;
|
package/dist/x-timeline.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
d.setAttribute("part","label");d.setAttribute("hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xTimelineRefs=new $APP.
|
|
4
|
-
$APP.
|
|
5
|
-
c=$APP.
|
|
6
|
-
e=e.detail;typeof
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"label-div",1505730697);var p1=["label","position","striped"];$APP.Pd(["x-timeline-select",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,3,[$APP.wi,$APP.W,$APP.Rk,$APP.Y,$APP.T,$APP.Y],null),$APP.Km,!1],null)]);var b1=new $APP.R(null,new $APP.Q(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.ha("baredom.exports.x_timeline.init",q1);export const init=q1;
|
|
2
|
+
var r4=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.Vc(Qca,a)?a:"start"},Rca=function(a,b){switch(a){case "start":return"start";case "end":return"end";case "alternating":return $APP.jd(b,2)===0?"start":"end";default:return"start"}},t4=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.P(null,3,[$APP.Qh,b,s4,d,$APP.dn,e],null);return $APP.k(a,"__xTimelineRefs")},u4=function(a){a=new $APP.P(null,3,[$APP.Bh,a.getAttribute("label"),$APP.ol,a.getAttribute("position"),$APP.xm,a.hasAttribute("striped")],null);var b=$APP.H(a);a=$APP.C(b,$APP.Bh);var c=$APP.C(b,$APP.ol);b=$APP.C(b,$APP.xm);return new $APP.P(null,3,[$APP.X,$APP.n(a)?a:"",$APP.Io,r4(c),
|
|
4
|
+
$APP.xm,$APP.E(b)],null)},v4=function(a){var b=u4(a);if($APP.M($APP.k(a,"__xTimelineModel"),b)){b=$APP.H(b);var c=$APP.C(b,$APP.X),d=t4(a);d=$APP.H(d);d=$APP.C(d,s4);a.setAttribute("role","list");$APP.M(c,"")?a.setAttribute("aria-label",c):a.removeAttribute("aria-label");$APP.M(c,"")?(d.textContent=c,d.removeAttribute("hidden")):(d.textContent="",d.setAttribute("hidden",""));a.__xTimelineModel=b}},w4=function(a){var b=$APP.k(a,"__xTimelineModel");b=$APP.n(b)?b:u4(a);var c=$APP.H(b);b=$APP.C(c,$APP.Io);
|
|
5
|
+
c=$APP.C(c,$APP.xm);a=a.querySelectorAll("x-timeline-item");for(var d=a.length,e=0;;)if(e<d){var f=a[e],h=$APP.B.j(e,d-1);f.setAttribute("data-index",""+$APP.R.i(e));h?f.setAttribute("data-last",""):f.removeAttribute("data-last");f.setAttribute("data-position",Rca(b,e));$APP.n(c)?f.setAttribute("data-striped",""):f.removeAttribute("data-striped");e+=1}else break},Sca=function(a){function b(){$APP.n(a.isConnected)&&w4(a);return null}function c(e){e.stopPropagation();var f=e.target.getAttribute("data-index");
|
|
6
|
+
e=e.detail;typeof f==="string"?(f=parseInt(f,10),f=$APP.n(isNaN(f))?null:f):f=null;var h=$APP.k(e,"status");e=$APP.k(e,"label");$APP.ah(a,"x-timeline-select",$APP.Wi(new $APP.P(null,3,[$APP.sj,$APP.n(f)?f:0,$APP.Rl,$APP.n(h)?h:"",$APP.X,$APP.n(e)?e:""],null)));return null}function d(){w4(a);return null}a.addEventListener("x-timeline-item-connected",d);a.addEventListener("x-timeline-item-click",c);document.addEventListener("x-timeline-item-disconnected",b);$APP.fa(a,"__xTimelineHandlers",{"item-connected":d,
|
|
7
|
+
"item-click":c,"item-disconnected-doc":b})},x4=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},Tca=function(a){Object.defineProperty(a,"label",{get:function(){var b=
|
|
8
|
+
this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.M(b,""):b)?this.setAttribute("label",""+$APP.R.i(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return r4(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.R.i(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});return $APP.ch(a,"striped","striped")},Uca=function(a){t4(a);
|
|
9
|
+
v4(a);x4(a);Sca(a);w4(a);return null},Vca=function(a){x4(a);return null},Wca=function(a,b,c,d){$APP.M(c,d)&&(v4(a),w4(a));return null},y4=function(){return $APP.Wg("x-timeline",new $APP.P(null,5,[$APP.Mg,Xca,$APP.Ng,Uca,$APP.Og,Vca,$APP.Qg,Wca,$APP.Ug,Tca],null))},s4=new $APP.F(null,"label-div","label-div",1505730697);var Xca=["label","position","striped"];$APP.Ud(["x-timeline-select",new $APP.P(null,2,[$APP.Z,new $APP.P(null,3,[$APP.sj,$APP.W,$APP.Rl,$APP.V,$APP.X,$APP.V],null),$APP.Un,!1],null)]);var Qca=new $APP.Q(null,new $APP.P(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.da("baredom.exports.x_timeline.init",y4);export const init=y4;
|