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