@vanelsas/baredom 2.0.1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +26 -7
  3. package/dist/base.js +405 -403
  4. package/dist/x-alert.js +19 -19
  5. package/dist/x-avatar-group.js +11 -11
  6. package/dist/x-avatar.js +15 -15
  7. package/dist/x-badge.js +11 -11
  8. package/dist/x-bento-grid.js +5 -5
  9. package/dist/x-bento-item.js +4 -4
  10. package/dist/x-breadcrumbs.js +14 -14
  11. package/dist/x-button.js +16 -16
  12. package/dist/x-cancel-dialogue.js +17 -17
  13. package/dist/x-card.js +7 -7
  14. package/dist/x-carousel.js +35 -0
  15. package/dist/x-chart.js +48 -48
  16. package/dist/x-checkbox.js +11 -11
  17. package/dist/x-chip.js +9 -9
  18. package/dist/x-collapse.js +11 -11
  19. package/dist/x-color-picker.js +46 -0
  20. package/dist/x-command-palette.js +27 -32
  21. package/dist/x-container.js +6 -6
  22. package/dist/x-context-menu.js +20 -20
  23. package/dist/x-copy.js +23 -23
  24. package/dist/x-currency-field.js +23 -23
  25. package/dist/x-date-picker.js +42 -42
  26. package/dist/x-divider.js +10 -13
  27. package/dist/x-drawer.js +12 -12
  28. package/dist/x-dropdown.js +10 -10
  29. package/dist/x-fieldset.js +6 -6
  30. package/dist/x-file-download.js +7 -7
  31. package/dist/x-form-field.js +16 -16
  32. package/dist/x-form.js +10 -10
  33. package/dist/x-gaussian-blur.js +18 -18
  34. package/dist/x-grid.js +6 -6
  35. package/dist/x-kinetic-font.js +29 -28
  36. package/dist/x-kinetic-typography.js +39 -39
  37. package/dist/x-liquid-dock.js +39 -39
  38. package/dist/x-liquid-fill.js +45 -44
  39. package/dist/x-liquid-glass.js +47 -47
  40. package/dist/x-menu-item.js +10 -10
  41. package/dist/x-menu.js +11 -12
  42. package/dist/x-metaball-cursor.js +27 -28
  43. package/dist/x-modal.js +13 -13
  44. package/dist/x-morph-stack.js +39 -39
  45. package/dist/x-navbar.js +13 -13
  46. package/dist/x-neural-glow.js +34 -34
  47. package/dist/x-notification-center.js +10 -9
  48. package/dist/x-organic-divider.js +19 -19
  49. package/dist/x-organic-progress.js +38 -38
  50. package/dist/x-organic-shape.js +14 -14
  51. package/dist/x-pagination.js +16 -16
  52. package/dist/x-particle-button.js +53 -0
  53. package/dist/x-popover.js +15 -15
  54. package/dist/x-progress-circle.js +11 -11
  55. package/dist/x-progress.js +11 -11
  56. package/dist/x-radio.js +11 -11
  57. package/dist/x-ripple-effect.js +12 -12
  58. package/dist/x-scroll-parallax.js +19 -19
  59. package/dist/x-scroll-stack.js +19 -19
  60. package/dist/x-scroll-story.js +36 -36
  61. package/dist/x-scroll-timeline.js +47 -47
  62. package/dist/x-scroll.js +42 -42
  63. package/dist/x-search-field.js +15 -15
  64. package/dist/x-select.js +11 -11
  65. package/dist/x-sidebar.js +17 -17
  66. package/dist/x-skeleton.js +6 -6
  67. package/dist/x-slider.js +16 -16
  68. package/dist/x-soft-body.js +22 -22
  69. package/dist/x-spacer.js +5 -5
  70. package/dist/x-spinner.js +5 -5
  71. package/dist/x-splash.js +13 -13
  72. package/dist/x-stat.js +11 -11
  73. package/dist/x-stepper.js +16 -16
  74. package/dist/x-switch.js +10 -10
  75. package/dist/x-tab.js +8 -8
  76. package/dist/x-table-cell.js +24 -24
  77. package/dist/x-table-row.js +10 -10
  78. package/dist/x-table.js +16 -16
  79. package/dist/x-tabs.js +11 -11
  80. package/dist/x-text-area.js +19 -19
  81. package/dist/x-theme.js +25 -24
  82. package/dist/x-timeline-item.js +24 -24
  83. package/dist/x-timeline.js +9 -9
  84. package/dist/x-toast.js +25 -25
  85. package/dist/x-toaster.js +8 -8
  86. package/dist/x-typography.js +11 -11
  87. package/package.json +14 -2
@@ -1,17 +1,17 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var po=function(a,b,c){return $APP.r(c)?a.setAttribute(b,""):a.removeAttribute(b)},qo=function(a,b,c){a=$APP.D.i("",a.value);c=c.hasAttribute("disabled");$APP.r(a?a:c)?b.classList.add("clear-hidden"):b.classList.remove("clear-hidden")},ro=function(a,b,c){a=a.hasAttribute("required");var d=c.value;return $APP.r($APP.r(a)?$APP.D.i(d,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):b.setValidity({},"",c)},to=function(a){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.r(b)){var c=$APP.l(b,
3
- "input");b=$APP.l(b,"clear");var d=new $APP.P(null,7,[$APP.Fk,a.getAttribute("name"),$APP.wl,a.getAttribute("value"),$APP.ii,a.getAttribute("placeholder"),$APP.Oh,a.getAttribute("label"),$APP.Sk,a.hasAttribute("disabled"),$APP.sh,a.hasAttribute("required"),$APP.Nh,a.getAttribute("autocomplete")],null);var e=$APP.N(d),g=$APP.G(e,$APP.Fk),h=$APP.G(e,$APP.wl),k=$APP.G(e,$APP.ii),m=$APP.G(e,$APP.Oh),p=$APP.G(e,$APP.Sk);d=$APP.G(e,$APP.sh);e=$APP.G(e,$APP.Nh);g=$APP.r(g)?g:"";h=$APP.r(h)?h:"";k=$APP.r(k)?
4
- k:"";m=$APP.r(m)?m:"";p=$APP.I(p);d=$APP.I(d);e=typeof e==="string"&&$APP.J(so,e)?e:"off";d=new $APP.P(null,7,[$APP.Si,g,$APP.ri,h,$APP.sl,k,$APP.T,m,$APP.W,p,$APP.Lh,d,$APP.cl,e],null);c.name=$APP.Si.g(d);c.placeholder=$APP.sl.g(d);c.disabled=$APP.W.g(d);c.required=$APP.Lh.g(d);c.autocomplete=$APP.cl.g(d);e=$APP.T.g(d);$APP.r($APP.r(e)?$APP.O(e,""):e)?c.setAttribute("aria-label",e):c.removeAttribute("aria-label");d=$APP.r($APP.Lh.g(d))?"true":"false";c.setAttribute("aria-required",d);qo(c,b,a);b=
5
- $APP.l(a,"__xSearchFieldInternals");return $APP.r(b)?ro(a,b,c):null}return null},uo=function(a,b,c,d){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:$APP.I(d)}))},vo=function(a){return function(){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.r(b)){var c=$APP.l(b,"input");b=$APP.l(b,"clear");var d=c.value;var e=a.getAttribute("name");e=$APP.r(e)?e:"";var g=$APP.l(a,"__xSearchFieldInternals");$APP.r(g)&&(g.setFormValue(d),ro(a,g,c));qo(c,b,a);return uo(a,"x-search-field-input",
6
- {name:e,value:d},!1)}return null}},wo=function(a){return function(){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.r(b)){b=$APP.l(b,"input");var c=b.value;var d=a.getAttribute("name");d=$APP.r(d)?d:"";var e=$APP.l(a,"__xSearchFieldInternals");$APP.r(e)&&(e.setFormValue(c),ro(a,e,b));return uo(a,"x-search-field-change",{name:d,value:c},!1)}return null}},xo=function(a){return function(b){if($APP.D.i("Enter",b.key)&&(b.preventDefault(),b=$APP.l(a,"__xSearchFieldRefs"),$APP.r(b))){var c=$APP.l(b,"input").value;
7
- b=function(){var d=a.getAttribute("name");return $APP.r(d)?d:""}();return $APP.r(function(){var d=a.hasAttribute("required");return $APP.r(d)?$APP.D.i(c,""):d}())?(b=$APP.l(a,"__xSearchFieldInternals"),$APP.r(b)?b.reportValidity():null):uo(a,"x-search-field-search",{name:b,value:c},!0)}return null}},yo=function(a){return function(){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.r(b)){var c=$APP.l(b,"input");b=$APP.l(b,"clear");var d=a.getAttribute("name");d=$APP.r(d)?d:"";c.value="";var e=$APP.l(a,
8
- "__xSearchFieldInternals");$APP.r(e)&&(e.setFormValue(""),ro(a,e,c));qo(c,b,a);uo(a,"x-search-field-clear",{name:d},!1);return c.focus()}return null}},zo=function(a){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.r(b)){var c=$APP.l(a,"__xSearchFieldHandlers");if($APP.r(c)){var d=$APP.l(b,"input");b=$APP.l(b,"clear");d.removeEventListener("input",$APP.l(c,"input"));d.removeEventListener("change",$APP.l(c,"change"));d.removeEventListener("keydown",$APP.l(c,"keydown"));b.removeEventListener("click",$APP.l(c,
9
- "click"));a.__xSearchFieldHandlers=null;return}}return null},Ao=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.r(d)?d:""},set:function(d){d!=null&&$APP.O(d)?(d=""+$APP.S.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},Bo=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return po(this,c,$APP.I(d))}})},Co=function(a){Object.defineProperty(a,
10
- "value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xSearchFieldRefs");if($APP.r(b))return $APP.l(b,"input").value;b=this.getAttribute("value");return $APP.r(b)?b:""},set:function(b){b=b!=null&&$APP.O(b)?""+$APP.S.g(b):"";this.setAttribute("value",b);var c=$APP.l(this,"__xSearchFieldRefs");return $APP.r(c)?$APP.l(c,"input").value=b:null}})},Eo=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return Do}});
11
- Co(b);Ao(b,"name","name");Ao(b,"placeholder","placeholder");Ao(b,"label","label");Ao(b,"autocomplete","autocomplete");Bo(b,"disabled","disabled");Bo(b,"required","required");b.checkValidity=function(){var c=$APP.l(this,"__xSearchFieldInternals");return $APP.r(c)?c.checkValidity():!0};b.reportValidity=function(){var c=$APP.l(this,"__xSearchFieldInternals");return $APP.r(c)?c.reportValidity():!0};b.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xSearchFieldRefs"))){if(!$APP.r(this.shadowRoot)){var c=
12
- this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("span"),h=document.createElement("input"),k=document.createElement("button");d.textContent=":host{display:block;color-scheme:light dark;--x-search-field-bg:var(--x-color-surface,#ffffff);--x-search-field-color:#111827;--x-search-field-border:1px solid var(--x-color-border,#d1d5db);--x-search-field-border-radius:var(--x-radius-md,6px);--x-search-field-focus-ring-color:var(--x-color-primary,#2563eb);--x-search-field-icon-color:var(--x-color-border,#9ca3af);--x-search-field-clear-color:var(--x-color-border,#9ca3af);--x-search-field-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-search-field-bg:var(--x-color-surface,#1f2937);--x-search-field-color:#f9fafb;--x-search-field-border:1px solid var(--x-color-border,#4b5563);--x-search-field-focus-ring-color:var(--x-color-primary,#3b82f6);--x-search-field-icon-color:#6b7280;--x-search-field-clear-color:#6b7280;}}[part\x3dwrapper]{display:flex;align-items:center;position:relative;background:var(--x-search-field-bg);border:var(--x-search-field-border);border-radius:var(--x-search-field-border-radius);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dwrapper]:focus-within{border-color:var(--x-search-field-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-search-field-focus-ring-color) 20%,transparent);}[part\x3dicon]{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;color:var(--x-search-field-icon-color);pointer-events:none;}[part\x3dinput]{flex:1;min-width:0;padding:0.5rem 0.25rem;background:transparent;color:var(--x-search-field-color);border:none;outline:none;font-size:1rem;line-height:1.5;font-family:inherit;}[part\x3dinput]::-webkit-search-cancel-button{-webkit-appearance:none;}[part\x3dinput]::-webkit-search-decoration{-webkit-appearance:none;}[part\x3dclear]{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;margin-right:2px;background:none;border:none;cursor:pointer;color:var(--x-search-field-clear-color);font-size:1.125rem;line-height:1;border-radius:4px;padding:0;}[part\x3dclear]:hover{color:var(--x-search-field-color);}.clear-hidden{display:none;}:host([disabled]) [part\x3dwrapper]{opacity:var(--x-search-field-disabled-opacity);cursor:not-allowed;}:host([disabled]) [part\x3dinput]{cursor:not-allowed;}@media (prefers-reduced-motion:reduce){[part\x3dwrapper]{transition:none;}}";
2
+ var yo=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},zo=function(a,b,c){a=$APP.C.i("",a.value);c=c.hasAttribute("disabled");$APP.n(a?a:c)?b.classList.add("clear-hidden"):b.classList.remove("clear-hidden")},Ao=function(a,b,c){a=a.hasAttribute("required");var d=c.value;return $APP.n($APP.n(a)?$APP.C.i(d,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):b.setValidity({},"",c)},Co=function(a){var b=$APP.k(a,"__xSearchFieldRefs");if($APP.n(b)){var c=$APP.k(b,
3
+ "input");b=$APP.k(b,"clear");var d=new $APP.R(null,7,[$APP.Ok,a.getAttribute("name"),$APP.Ol,a.getAttribute("value"),$APP.qi,a.getAttribute("placeholder"),$APP.Wh,a.getAttribute("label"),$APP.al,a.hasAttribute("disabled"),$APP.uh,a.hasAttribute("required"),$APP.Vh,a.getAttribute("autocomplete")],null);var e=$APP.M(d),g=$APP.D(e,$APP.Ok),h=$APP.D(e,$APP.Ol),l=$APP.D(e,$APP.qi),m=$APP.D(e,$APP.Wh),p=$APP.D(e,$APP.al);d=$APP.D(e,$APP.uh);e=$APP.D(e,$APP.Vh);g=$APP.n(g)?g:"";h=$APP.n(h)?h:"";l=$APP.n(l)?
4
+ l:"";m=$APP.n(m)?m:"";p=$APP.F(p);d=$APP.F(d);e=typeof e==="string"&&$APP.J(Bo,e)?e:"off";d=new $APP.R(null,7,[$APP.Yi,g,$APP.zi,h,$APP.Kl,l,$APP.U,m,$APP.W,p,$APP.Th,d,$APP.ml,e],null);c.name=$APP.Yi.g(d);c.placeholder=$APP.Kl.g(d);c.disabled=$APP.W.g(d);c.required=$APP.Th.g(d);c.autocomplete=$APP.ml.g(d);e=$APP.U.g(d);$APP.n($APP.n(e)?$APP.N(e,""):e)?c.setAttribute("aria-label",e):c.removeAttribute("aria-label");d=$APP.n($APP.Th.g(d))?"true":"false";c.setAttribute("aria-required",d);zo(c,b,a);b=
5
+ $APP.k(a,"__xSearchFieldInternals");return $APP.n(b)?Ao(a,b,c):null}return null},Do=function(a,b,c,d){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:$APP.F(d)}))},Eo=function(a){return function(){var b=$APP.k(a,"__xSearchFieldRefs");if($APP.n(b)){var c=$APP.k(b,"input");b=$APP.k(b,"clear");var d=c.value;var e=a.getAttribute("name");e=$APP.n(e)?e:"";var g=$APP.k(a,"__xSearchFieldInternals");$APP.n(g)&&(g.setFormValue(d),Ao(a,g,c));zo(c,b,a);return Do(a,"x-search-field-input",
6
+ {name:e,value:d},!1)}return null}},Fo=function(a){return function(){var b=$APP.k(a,"__xSearchFieldRefs");if($APP.n(b)){b=$APP.k(b,"input");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.k(a,"__xSearchFieldInternals");$APP.n(e)&&(e.setFormValue(c),Ao(a,e,b));return Do(a,"x-search-field-change",{name:d,value:c},!1)}return null}},Go=function(a){return function(b){if($APP.C.i("Enter",b.key)&&(b.preventDefault(),b=$APP.k(a,"__xSearchFieldRefs"),$APP.n(b))){var c=$APP.k(b,"input").value;
7
+ b=function(){var d=a.getAttribute("name");return $APP.n(d)?d:""}();return $APP.n(function(){var d=a.hasAttribute("required");return $APP.n(d)?$APP.C.i(c,""):d}())?(b=$APP.k(a,"__xSearchFieldInternals"),$APP.n(b)?b.reportValidity():null):Do(a,"x-search-field-search",{name:b,value:c},!0)}return null}},Ho=function(a){return function(){var b=$APP.k(a,"__xSearchFieldRefs");if($APP.n(b)){var c=$APP.k(b,"input");b=$APP.k(b,"clear");var d=a.getAttribute("name");d=$APP.n(d)?d:"";c.value="";var e=$APP.k(a,
8
+ "__xSearchFieldInternals");$APP.n(e)&&(e.setFormValue(""),Ao(a,e,c));zo(c,b,a);Do(a,"x-search-field-clear",{name:d},!1);return c.focus()}return null}},Io=function(a){var b=$APP.k(a,"__xSearchFieldRefs");if($APP.n(b)){var c=$APP.k(a,"__xSearchFieldHandlers");if($APP.n(c)){var d=$APP.k(b,"input");b=$APP.k(b,"clear");d.removeEventListener("input",$APP.k(c,"input"));d.removeEventListener("change",$APP.k(c,"change"));d.removeEventListener("keydown",$APP.k(c,"keydown"));b.removeEventListener("click",$APP.k(c,
9
+ "click"));a.__xSearchFieldHandlers=null;return}}return null},Jo=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){d!=null&&$APP.N(d)?(d=""+$APP.T.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},Ko=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return yo(this,c,$APP.F(d))}})},Lo=function(a){Object.defineProperty(a,
10
+ "value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.k(this,"__xSearchFieldRefs");if($APP.n(b))return $APP.k(b,"input").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",b);var c=$APP.k(this,"__xSearchFieldRefs");return $APP.n(c)?$APP.k(c,"input").value=b:null}})},No=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return Mo}});
11
+ Lo(b);Jo(b,"name","name");Jo(b,"placeholder","placeholder");Jo(b,"label","label");Jo(b,"autocomplete","autocomplete");Ko(b,"disabled","disabled");Ko(b,"required","required");b.checkValidity=function(){var c=$APP.k(this,"__xSearchFieldInternals");return $APP.n(c)?c.checkValidity():!0};b.reportValidity=function(){var c=$APP.k(this,"__xSearchFieldInternals");return $APP.n(c)?c.reportValidity():!0};b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xSearchFieldRefs"))){if(!$APP.n(this.shadowRoot)){var c=
12
+ this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("span"),h=document.createElement("input"),l=document.createElement("button");d.textContent=":host{display:block;color-scheme:light dark;--x-search-field-bg:var(--x-color-surface,#ffffff);--x-search-field-color:#111827;--x-search-field-border:1px solid var(--x-color-border,#d1d5db);--x-search-field-border-radius:var(--x-radius-md,6px);--x-search-field-focus-ring-color:var(--x-color-primary,#2563eb);--x-search-field-icon-color:var(--x-color-border,#9ca3af);--x-search-field-clear-color:var(--x-color-border,#9ca3af);--x-search-field-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-search-field-bg:var(--x-color-surface,#1f2937);--x-search-field-color:#f9fafb;--x-search-field-border:1px solid var(--x-color-border,#4b5563);--x-search-field-focus-ring-color:var(--x-color-primary,#3b82f6);--x-search-field-icon-color:#6b7280;--x-search-field-clear-color:#6b7280;}}[part\x3dwrapper]{display:flex;align-items:center;position:relative;background:var(--x-search-field-bg);border:var(--x-search-field-border);border-radius:var(--x-search-field-border-radius);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dwrapper]:focus-within{border-color:var(--x-search-field-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-search-field-focus-ring-color) 20%,transparent);}[part\x3dicon]{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;color:var(--x-search-field-icon-color);pointer-events:none;}[part\x3dinput]{flex:1;min-width:0;padding:0.5rem 0.25rem;background:transparent;color:var(--x-search-field-color);border:none;outline:none;font-size:1rem;line-height:1.5;font-family:inherit;}[part\x3dinput]::-webkit-search-cancel-button{-webkit-appearance:none;}[part\x3dinput]::-webkit-search-decoration{-webkit-appearance:none;}[part\x3dclear]{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;margin-right:2px;background:none;border:none;cursor:pointer;color:var(--x-search-field-clear-color);font-size:1.125rem;line-height:1;border-radius:4px;padding:0;}[part\x3dclear]:hover{color:var(--x-search-field-color);}.clear-hidden{display:none;}:host([disabled]) [part\x3dwrapper]{opacity:var(--x-search-field-disabled-opacity);cursor:not-allowed;}:host([disabled]) [part\x3dinput]{cursor:not-allowed;}@media (prefers-reduced-motion:reduce){[part\x3dwrapper]{transition:none;}}";
13
13
  e.setAttribute("part","wrapper");g.setAttribute("part","icon");g.innerHTML='\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" width\x3d"16" height\x3d"16" viewBox\x3d"0 0 24 24" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"2" stroke-linecap\x3d"round" stroke-linejoin\x3d"round" aria-hidden\x3d"true"\x3e\x3ccircle cx\x3d"11" cy\x3d"11" r\x3d"8"/\x3e\x3cline x1\x3d"21" y1\x3d"21" x2\x3d"16.65" y2\x3d"16.65"/\x3e\x3c/svg\x3e';h.setAttribute("part","input");h.setAttribute("type","search");h.setAttribute("spellcheck",
14
- "false");k.setAttribute("part","clear");k.setAttribute("type","button");k.setAttribute("aria-label","Clear search");k.textContent="×";k.classList.add("clear-hidden");e.appendChild(g);e.appendChild(h);e.appendChild(k);c.appendChild(d);c.appendChild(e);this.__xSearchFieldRefs={wrapper:e,icon:g,input:h,clear:k}}$APP.r(this.attachInternals)&&(this.__xSearchFieldInternals=this.attachInternals())}zo(this);c=$APP.l(this,"__xSearchFieldRefs");$APP.r(c)&&(c=$APP.l(c,"input"),d=this.getAttribute("value"),$APP.r(d)&&
15
- (c.value=d));c=$APP.l(this,"__xSearchFieldInternals");$APP.r(c)&&(d=c.setFormValue,e=this.getAttribute("value"),d.call(c,$APP.r(e)?e:""));d=$APP.l(this,"__xSearchFieldRefs");$APP.r(d)&&(c=$APP.l(d,"input"),d=$APP.l(d,"clear"),e=vo(this),g=wo(this),h=xo(this),k=yo(this),c.addEventListener("input",e),c.addEventListener("change",g),c.addEventListener("keydown",h),d.addEventListener("click",k),this.__xSearchFieldHandlers={input:e,change:g,keydown:h,click:k});return to(this)};b.disconnectedCallback=function(){return zo(this)};
16
- b.attributeChangedCallback=function(c,d,e){$APP.D.i(c,"value")&&(c=$APP.l(this,"__xSearchFieldRefs"),$APP.r(c)&&(c=$APP.l(c,"input"),$APP.O(c.value,e)&&(c.value=$APP.r(e)?e:"")));return to(this)};b.formDisabledCallback=function(c){po(this,"disabled",$APP.I(c));return to(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.l(this,"__xSearchFieldRefs");$APP.r(c)&&($APP.l(c,"input").value="");c=$APP.l(this,"__xSearchFieldInternals");$APP.r(c)&&c.setFormValue("");return to(this)};
17
- return a},Fo=function(){return $APP.r(customElements.get("x-search-field"))?null:customElements.define("x-search-field",Eo())};var Do="name value placeholder label disabled required autocomplete".split(" "),so=new $APP.R(null,new $APP.P(null,2,["off",null,"on",null],null),null);$APP.ka("baredom.exports.x_search_field.init",Fo);export const init=Fo;
14
+ "false");l.setAttribute("part","clear");l.setAttribute("type","button");l.setAttribute("aria-label","Clear search");l.textContent="×";l.classList.add("clear-hidden");e.appendChild(g);e.appendChild(h);e.appendChild(l);c.appendChild(d);c.appendChild(e);this.__xSearchFieldRefs={wrapper:e,icon:g,input:h,clear:l}}$APP.n(this.attachInternals)&&(this.__xSearchFieldInternals=this.attachInternals())}Io(this);c=$APP.k(this,"__xSearchFieldRefs");$APP.n(c)&&(c=$APP.k(c,"input"),d=this.getAttribute("value"),$APP.n(d)&&
15
+ (c.value=d));c=$APP.k(this,"__xSearchFieldInternals");$APP.n(c)&&(d=c.setFormValue,e=this.getAttribute("value"),d.call(c,$APP.n(e)?e:""));d=$APP.k(this,"__xSearchFieldRefs");$APP.n(d)&&(c=$APP.k(d,"input"),d=$APP.k(d,"clear"),e=Eo(this),g=Fo(this),h=Go(this),l=Ho(this),c.addEventListener("input",e),c.addEventListener("change",g),c.addEventListener("keydown",h),d.addEventListener("click",l),this.__xSearchFieldHandlers={input:e,change:g,keydown:h,click:l});return Co(this)};b.disconnectedCallback=function(){return Io(this)};
16
+ b.attributeChangedCallback=function(c,d,e){$APP.C.i(c,"value")&&(c=$APP.k(this,"__xSearchFieldRefs"),$APP.n(c)&&(c=$APP.k(c,"input"),$APP.N(c.value,e)&&(c.value=$APP.n(e)?e:"")));return Co(this)};b.formDisabledCallback=function(c){yo(this,"disabled",$APP.F(c));return Co(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.k(this,"__xSearchFieldRefs");$APP.n(c)&&($APP.k(c,"input").value="");c=$APP.k(this,"__xSearchFieldInternals");$APP.n(c)&&c.setFormValue("");return Co(this)};
17
+ return a},Oo=function(){return $APP.n(customElements.get("x-search-field"))?null:customElements.define("x-search-field",No())};var Mo="name value placeholder label disabled required autocomplete".split(" "),Bo=new $APP.S(null,new $APP.R(null,2,["off",null,"on",null],null),null);$APP.fa("baredom.exports.x_search_field.init",Oo);export const init=Oo;
package/dist/x-select.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var bL=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.r(b)){var c=new $APP.P(null,6,[$APP.Sk,a.hasAttribute("disabled"),$APP.sh,a.hasAttribute("required"),$APP.Zk,a.getAttribute("size"),$APP.ii,a.getAttribute("placeholder"),$APP.wl,a.getAttribute("value"),$APP.Fk,a.getAttribute("name")],null);var d=$APP.N(c),e=$APP.G(d,$APP.Sk),g=$APP.G(d,$APP.sh),h=$APP.G(d,$APP.Zk);c=$APP.G(d,$APP.ii);var k=$APP.G(d,$APP.wl);d=$APP.G(d,$APP.Fk);e=$APP.I(e);g=$APP.I(g);h=typeof h==="string"&&$APP.J(aL,h)?h:
3
- "md";c=new $APP.P(null,6,[$APP.W,e,$APP.Lh,g,$APP.rh,h,$APP.sl,c,$APP.ri,k,$APP.Si,d],null);if($APP.O(c,$APP.l(a,"__xSelectModel"))){a.__xSelectModel=c;a=$APP.l(b,"wrapper");k=$APP.l(b,"select");b=$APP.l(b,"placeholder-opt");h=$APP.W.g(c);d=$APP.Lh.g(c);g=$APP.rh.g(c);e=$APP.sl.g(c);var m=$APP.ri.g(c);c=$APP.Si.g(c);k.disabled=h;$APP.r(d)?k.setAttribute("required",""):k.removeAttribute("required");typeof c==="string"&&$APP.O(c,"")?k.setAttribute("name",c):k.removeAttribute("name");typeof e==="string"&&
4
- $APP.O(e,"")?(b.textContent=e,b.hidden=!1):b.hidden=!0;k.value=$APP.r(m)?m:"";a.setAttribute("data-size",g);$APP.r(h)?a.setAttribute("data-disabled",""):a.removeAttribute("data-disabled");return c==null||$APP.D.i(c,"")?k.setAttribute("aria-label",$APP.r(e)?e:"select"):k.removeAttribute("aria-label")}}return null},cL=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.r(b)){var c=$APP.l(b,"select"),d=$APP.l(b,"placeholder-opt");for(b=$APP.l(b,"slot").assignedElements({flatten:!0});;){var e=c.lastChild,
5
- g=e;if($APP.r($APP.r(g)?e!==d:g))c.removeChild(e);else break}d=$APP.u($APP.wc(b));b=null;for(g=e=0;;)if(g<e){var h=b.G(null,g),k=h.tagName.toLowerCase();($APP.D.i(k,"option")||$APP.D.i(k,"optgroup"))&&c.appendChild(h.cloneNode(!0));g+=1}else if(d=$APP.u(d))$APP.Pc(d)?(e=$APP.yb(d),d=$APP.zb(d),b=e,e=$APP.C(e)):(b=$APP.v(d),e=b.tagName.toLowerCase(),($APP.D.i(e,"option")||$APP.D.i(e,"optgroup"))&&c.appendChild(b.cloneNode(!0)),d=$APP.z(d),b=null,e=0),g=0;else break;a.__xSelectModel=null;return bL(a)}return null},
6
- dL=function(a){return function(){var b=$APP.l(a,"__xSelectRefs");return $APP.r(b)?(b=$APP.l(b,"select"),a.dispatchEvent(new CustomEvent("select-change",{detail:{value:b.value,label:b.selectedOptions.length>0?b.selectedOptions[0].text:""},bubbles:!0,composed:!0,cancelable:!1}))):null}},eL=function(a){return function(){return cL(a)}},fL=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.r(b)){var c=$APP.l(a,"__xSelectHandlers");if($APP.r(c)){var d=$APP.l(b,"slot");$APP.l(b,"select").removeEventListener("change",
7
- $APP.l(c,"change"));d.removeEventListener("slotchange",$APP.l(c,"slotchange"));a.__xSelectHandlers=null;return}}return null},gL=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.r($APP.I(d))?this.setAttribute(c,""):this.removeAttribute(c)}})},hL=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("value");return $APP.r(b)?b:null},set:function(b){b!=
8
- null&&$APP.O(b)?(b=""+$APP.S.g(b),b=this.setAttribute("value",b)):b=this.removeAttribute("value");return b}})},jL=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return iL}});gL(b,"disabled","disabled");gL(b,"required","required");hL(b);b.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xSelectRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("select"),
9
- h=document.createElement("option"),k=document.createElement("span"),m=document.createElement("slot");d.textContent=":host{display:inline-block;color-scheme:light dark;--x-select-height-sm:2rem;--x-select-height-md:2.5rem;--x-select-height-lg:3rem;--x-select-radius:var(--x-radius-md,0.5rem);--x-select-font-size-sm:0.75rem;--x-select-font-size-md:var(--x-font-size-sm,0.875rem);--x-select-font-size-lg:var(--x-font-size-base,1rem);--x-select-padding-inline:0.75rem;--x-select-bg:var(--x-color-bg,#ffffff);--x-select-bg-disabled:var(--x-color-bg,#f8fafc);--x-select-fg:var(--x-color-text,#0f172a);--x-select-fg-disabled:var(--x-color-text-muted,#94a3b8);--x-select-placeholder-fg:var(--x-color-text-muted,#94a3b8);--x-select-border:var(--x-color-border,#cbd5e1);--x-select-border-hover:var(--x-color-border,#94a3b8);--x-select-border-focus:var(--x-color-primary,#3b82f6);--x-select-chevron:var(--x-color-text-muted,#64748b);--x-select-focus-ring:var(--x-color-focus-ring,#93c5fd);--x-select-shadow:var(--x-shadow-sm,0 1px 2px rgba(15,23,42,0.06));--x-select-transition-duration:var(--x-transition-duration,140ms);}@media (prefers-color-scheme:dark){:host{--x-select-bg:var(--x-color-bg,#1f2937);--x-select-bg-disabled:var(--x-color-bg,#111827);--x-select-fg:var(--x-color-text,#f1f5f9);--x-select-border:var(--x-color-border,#374151);--x-select-border-hover:var(--x-color-border,#4b5563);--x-select-border-focus:var(--x-color-focus-ring,#60a5fa);--x-select-chevron:var(--x-color-text-muted,#94a3b8);}}[part\x3dwrapper]{position:relative;display:flex;align-items:stretch;height:var(--x-select-height-md);border:1px solid var(--x-select-border);border-radius:var(--x-select-radius);background:var(--x-select-bg);box-shadow:var(--x-select-shadow);transition:border-color var(--x-select-transition-duration) ease,box-shadow var(--x-select-transition-duration) ease;overflow:hidden;font-size:var(--x-select-font-size-md);}[part\x3dwrapper][data-size\x3dsm]{height:var(--x-select-height-sm);font-size:var(--x-select-font-size-sm);}[part\x3dwrapper][data-size\x3dlg]{height:var(--x-select-height-lg);font-size:var(--x-select-font-size-lg);}[part\x3dwrapper][data-disabled]{background:var(--x-select-bg-disabled);opacity:0.6;pointer-events:none;}[part\x3dwrapper]:hover:not([data-disabled]){border-color:var(--x-select-border-hover);}[part\x3dwrapper]:focus-within:not([data-disabled]){border-color:var(--x-select-border-focus);box-shadow:0 0 0 3px var(--x-select-focus-ring);}[part\x3dselect]{appearance:none;-webkit-appearance:none;flex:1;min-width:0;background:transparent;border:none;outline:none;color:var(--x-select-fg);font-size:inherit;font-family:inherit;padding-inline:var(--x-select-padding-inline);padding-inline-end:calc(var(--x-select-padding-inline) + 1.75rem);cursor:pointer;width:100%;}[part\x3dselect]:disabled{color:var(--x-select-fg-disabled);cursor:default;}[part\x3dselect] option[data-placeholder]{color:var(--x-select-placeholder-fg);}[part\x3dchevron]{position:absolute;right:var(--x-select-padding-inline);top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;pointer-events:none;color:var(--x-select-chevron);width:1rem;height:1rem;}slot{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dwrapper]{transition:none;}}";
10
- e.setAttribute("part","wrapper");g.setAttribute("part","select");k.setAttribute("part","chevron");k.setAttribute("aria-hidden","true");h.setAttribute("data-placeholder","");h.setAttribute("value","");h.hidden=!0;h.disabled=!0;h.selected=!0;k.innerHTML='\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"2" stroke-linecap\x3d"round" stroke-linejoin\x3d"round" aria-hidden\x3d"true"\x3e\x3cpolyline points\x3d"4 6 8 10 12 6"/\x3e\x3c/svg\x3e';
11
- g.appendChild(h);e.appendChild(g);e.appendChild(k);c.appendChild(d);c.appendChild(e);c.appendChild(m);this.__xSelectRefs={root:c,wrapper:e,select:g,"placeholder-opt":h,slot:m,chevron:k}}fL(this);c=$APP.l(this,"__xSelectRefs");$APP.r(c)&&(d=$APP.l(c,"slot"),e=dL(this),g=eL(this),h={change:e,slotchange:g},$APP.l(c,"select").addEventListener("change",e),d.addEventListener("slotchange",g),this.__xSelectHandlers=h);cL(this);return bL(this)};b.disconnectedCallback=function(){return fL(this)};b.attributeChangedCallback=
12
- function(c,d,e){return $APP.O(d,e)?bL(this):null};return a},kL=function(){return $APP.r(customElements.get("x-select"))?null:customElements.define("x-select",jL())};var aL=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),iL="disabled required size placeholder value name".split(" ");$APP.Sd(["select-change",new $APP.P(null,2,[$APP.ll,!1,$APP.U,new $APP.P(null,2,[$APP.ri,$APP.X,$APP.T,$APP.X],null)],null)]);$APP.ka("baredom.exports.x_select.init",kL);export const init=kL;
2
+ var gN=function(a){var b=$APP.k(a,"__xSelectRefs");if($APP.n(b)){var c=new $APP.R(null,6,[$APP.al,a.hasAttribute("disabled"),$APP.uh,a.hasAttribute("required"),$APP.il,a.getAttribute("size"),$APP.qi,a.getAttribute("placeholder"),$APP.Ol,a.getAttribute("value"),$APP.Ok,a.getAttribute("name")],null);var d=$APP.M(c),e=$APP.D(d,$APP.al),g=$APP.D(d,$APP.uh),h=$APP.D(d,$APP.il);c=$APP.D(d,$APP.qi);var l=$APP.D(d,$APP.Ol);d=$APP.D(d,$APP.Ok);e=$APP.F(e);g=$APP.F(g);h=typeof h==="string"&&$APP.J(fN,h)?h:
3
+ "md";c=new $APP.R(null,6,[$APP.W,e,$APP.Th,g,$APP.th,h,$APP.Kl,c,$APP.zi,l,$APP.Yi,d],null);if($APP.N(c,$APP.k(a,"__xSelectModel"))){a.__xSelectModel=c;a=$APP.k(b,"wrapper");l=$APP.k(b,"select");b=$APP.k(b,"placeholder-opt");h=$APP.W.g(c);d=$APP.Th.g(c);g=$APP.th.g(c);e=$APP.Kl.g(c);var m=$APP.zi.g(c);c=$APP.Yi.g(c);l.disabled=h;$APP.n(d)?l.setAttribute("required",""):l.removeAttribute("required");typeof c==="string"&&$APP.N(c,"")?l.setAttribute("name",c):l.removeAttribute("name");typeof e==="string"&&
4
+ $APP.N(e,"")?(b.textContent=e,b.hidden=!1):b.hidden=!0;l.value=$APP.n(m)?m:"";a.setAttribute("data-size",g);$APP.n(h)?a.setAttribute("data-disabled",""):a.removeAttribute("data-disabled");return c==null||$APP.C.i(c,"")?l.setAttribute("aria-label",$APP.n(e)?e:"select"):l.removeAttribute("aria-label")}}return null},hN=function(a){var b=$APP.k(a,"__xSelectRefs");if($APP.n(b)){var c=$APP.k(b,"select"),d=$APP.k(b,"placeholder-opt");for(b=$APP.k(b,"slot").assignedElements({flatten:!0});;){var e=c.lastChild,
5
+ g=e;if($APP.n($APP.n(g)?e!==d:g))c.removeChild(e);else break}d=$APP.t($APP.tc(b));b=null;for(g=e=0;;)if(g<e){var h=b.G(null,g),l=h.tagName.toLowerCase();($APP.C.i(l,"option")||$APP.C.i(l,"optgroup"))&&c.appendChild(h.cloneNode(!0));g+=1}else if(d=$APP.t(d))$APP.Nc(d)?(e=$APP.xb(d),d=$APP.yb(d),b=e,e=$APP.z(e)):(b=$APP.u(d),e=b.tagName.toLowerCase(),($APP.C.i(e,"option")||$APP.C.i(e,"optgroup"))&&c.appendChild(b.cloneNode(!0)),d=$APP.w(d),b=null,e=0),g=0;else break;a.__xSelectModel=null;return gN(a)}return null},
6
+ iN=function(a){return function(){var b=$APP.k(a,"__xSelectRefs");return $APP.n(b)?(b=$APP.k(b,"select"),a.dispatchEvent(new CustomEvent("select-change",{detail:{value:b.value,label:b.selectedOptions.length>0?b.selectedOptions[0].text:""},bubbles:!0,composed:!0,cancelable:!1}))):null}},jN=function(a){return function(){return hN(a)}},kN=function(a){var b=$APP.k(a,"__xSelectRefs");if($APP.n(b)){var c=$APP.k(a,"__xSelectHandlers");if($APP.n(c)){var d=$APP.k(b,"slot");$APP.k(b,"select").removeEventListener("change",
7
+ $APP.k(c,"change"));d.removeEventListener("slotchange",$APP.k(c,"slotchange"));a.__xSelectHandlers=null;return}}return null},lN=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n($APP.F(d))?this.setAttribute(c,""):this.removeAttribute(c)}})},mN=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:null},set:function(b){b!=
8
+ null&&$APP.N(b)?(b=""+$APP.T.g(b),b=this.setAttribute("value",b)):b=this.removeAttribute("value");return b}})},oN=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return nN}});lN(b,"disabled","disabled");lN(b,"required","required");mN(b);b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xSelectRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("select"),
9
+ h=document.createElement("option"),l=document.createElement("span"),m=document.createElement("slot");d.textContent=":host{display:inline-block;color-scheme:light dark;--x-select-height-sm:2rem;--x-select-height-md:2.5rem;--x-select-height-lg:3rem;--x-select-radius:var(--x-radius-md,0.5rem);--x-select-font-size-sm:0.75rem;--x-select-font-size-md:var(--x-font-size-sm,0.875rem);--x-select-font-size-lg:var(--x-font-size-base,1rem);--x-select-padding-inline:0.75rem;--x-select-bg:var(--x-color-bg,#ffffff);--x-select-bg-disabled:var(--x-color-bg,#f8fafc);--x-select-fg:var(--x-color-text,#0f172a);--x-select-fg-disabled:var(--x-color-text-muted,#94a3b8);--x-select-placeholder-fg:var(--x-color-text-muted,#94a3b8);--x-select-border:var(--x-color-border,#cbd5e1);--x-select-border-hover:var(--x-color-border,#94a3b8);--x-select-border-focus:var(--x-color-primary,#3b82f6);--x-select-chevron:var(--x-color-text-muted,#64748b);--x-select-focus-ring:var(--x-color-focus-ring,#93c5fd);--x-select-shadow:var(--x-shadow-sm,0 1px 2px rgba(15,23,42,0.06));--x-select-transition-duration:var(--x-transition-duration,140ms);}@media (prefers-color-scheme:dark){:host{--x-select-bg:var(--x-color-bg,#1f2937);--x-select-bg-disabled:var(--x-color-bg,#111827);--x-select-fg:var(--x-color-text,#f1f5f9);--x-select-border:var(--x-color-border,#374151);--x-select-border-hover:var(--x-color-border,#4b5563);--x-select-border-focus:var(--x-color-focus-ring,#60a5fa);--x-select-chevron:var(--x-color-text-muted,#94a3b8);}}[part\x3dwrapper]{position:relative;display:flex;align-items:stretch;height:var(--x-select-height-md);border:1px solid var(--x-select-border);border-radius:var(--x-select-radius);background:var(--x-select-bg);box-shadow:var(--x-select-shadow);transition:border-color var(--x-select-transition-duration) ease,box-shadow var(--x-select-transition-duration) ease;overflow:hidden;font-size:var(--x-select-font-size-md);}[part\x3dwrapper][data-size\x3dsm]{height:var(--x-select-height-sm);font-size:var(--x-select-font-size-sm);}[part\x3dwrapper][data-size\x3dlg]{height:var(--x-select-height-lg);font-size:var(--x-select-font-size-lg);}[part\x3dwrapper][data-disabled]{background:var(--x-select-bg-disabled);opacity:0.6;pointer-events:none;}[part\x3dwrapper]:hover:not([data-disabled]){border-color:var(--x-select-border-hover);}[part\x3dwrapper]:focus-within:not([data-disabled]){border-color:var(--x-select-border-focus);box-shadow:0 0 0 3px var(--x-select-focus-ring);}[part\x3dselect]{appearance:none;-webkit-appearance:none;flex:1;min-width:0;background:transparent;border:none;outline:none;color:var(--x-select-fg);font-size:inherit;font-family:inherit;padding-inline:var(--x-select-padding-inline);padding-inline-end:calc(var(--x-select-padding-inline) + 1.75rem);cursor:pointer;width:100%;}[part\x3dselect]:disabled{color:var(--x-select-fg-disabled);cursor:default;}[part\x3dselect] option[data-placeholder]{color:var(--x-select-placeholder-fg);}[part\x3dchevron]{position:absolute;right:var(--x-select-padding-inline);top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;pointer-events:none;color:var(--x-select-chevron);width:1rem;height:1rem;}slot{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dwrapper]{transition:none;}}";
10
+ e.setAttribute("part","wrapper");g.setAttribute("part","select");l.setAttribute("part","chevron");l.setAttribute("aria-hidden","true");h.setAttribute("data-placeholder","");h.setAttribute("value","");h.hidden=!0;h.disabled=!0;h.selected=!0;l.innerHTML='\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"2" stroke-linecap\x3d"round" stroke-linejoin\x3d"round" aria-hidden\x3d"true"\x3e\x3cpolyline points\x3d"4 6 8 10 12 6"/\x3e\x3c/svg\x3e';
11
+ g.appendChild(h);e.appendChild(g);e.appendChild(l);c.appendChild(d);c.appendChild(e);c.appendChild(m);this.__xSelectRefs={root:c,wrapper:e,select:g,"placeholder-opt":h,slot:m,chevron:l}}kN(this);c=$APP.k(this,"__xSelectRefs");$APP.n(c)&&(d=$APP.k(c,"slot"),e=iN(this),g=jN(this),h={change:e,slotchange:g},$APP.k(c,"select").addEventListener("change",e),d.addEventListener("slotchange",g),this.__xSelectHandlers=h);hN(this);return gN(this)};b.disconnectedCallback=function(){return kN(this)};b.attributeChangedCallback=
12
+ function(c,d,e){return $APP.N(d,e)?gN(this):null};return a},pN=function(){return $APP.n(customElements.get("x-select"))?null:customElements.define("x-select",oN())};var fN=new $APP.S(null,new $APP.R(null,3,["md",null,"lg",null,"sm",null],null),null),nN="disabled required size placeholder value name".split(" ");$APP.Pd(["select-change",new $APP.R(null,2,[$APP.wl,!1,$APP.yj,new $APP.R(null,2,[$APP.zi,$APP.X,$APP.U,$APP.X],null)],null)]);$APP.fa("baredom.exports.x_select.init",pN);export const init=pN;
package/dist/x-sidebar.js CHANGED
@@ -1,18 +1,18 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var fW=function(a,b,c){return $APP.r(c)?a.setAttribute(b,""):a.removeAttribute(b)},gW=function(a,b,c){a.dispatchEvent(new CustomEvent(b,$APP.nh(new $APP.P(null,3,[$APP.U,c,$APP.yl,!0,$APP.Kl,!0],null))))},iW=function(a,b){$APP.J(hW,b)&&gW(a,"dismiss",new $APP.P(null,1,[$APP.ji,b],null))},jW=function(a){var b=window.getComputedStyle(a);return $APP.O("none",b.display)&&$APP.O("hidden",b.visibility)&&a.offsetWidth>0&&a.offsetHeight>0},kW=function(a){var b=$APP.l(a,"_panel");$APP.r(b.hasAttribute("tabindex"))||
3
- (b.setAttribute("tabindex","-1"),a._panelTabindexAdded=!0);return b.focus()},lW=function(a){var b=$APP.l(a,"_restoreFocusTarget"),c=$APP.l(a,"_panel"),d=$APP.l(a,"_panelTabindexAdded")===!0,e=$APP.l(a,"_root");var g=$APP.l(a,"_sidebar");e=$APP.r(e)?e.activeElement:null;var h=document.activeElement;g=$APP.r($APP.r(e)?$APP.r(g)?g.contains(e):g:e)?e:$APP.r($APP.r(h)?$APP.r(g)?g.contains(h):g:h)?h:null;$APP.r(g)&&g.blur();a._tabbables=null;a._restoreFocusTarget=null;$APP.r($APP.r(c)?d:c)&&(c.removeAttribute("tabindex"),
4
- a._panelTabindexAdded=!1);return $APP.r($APP.r(b)?b.isConnected:b)?b.focus():null},mW=function(a,b){var c=$APP.l(a,"_tabbables");c=$APP.r(c)?$APP.Be($APP.wc(c)):$APP.ie;var d=$APP.l(a,"_panel");if($APP.Jc(c))return b.preventDefault(),$APP.r(d)?kW(a):null;a=document.activeElement;d=$APP.v(c);c=$APP.zc(c);var e=b.shiftKey;return $APP.r($APP.r(e)?$APP.D.i(a,d):e)?(b.preventDefault(),c.focus()):$APP.t(e)&&$APP.D.i(a,c)?(b.preventDefault(),d.focus()):null},nW=function(a){if(!$APP.r($APP.l(a,"_root"))){var b=
5
- a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("aside"),g=document.createElement("div"),h=document.createElement("slot");c.textContent=":host { --x-sidebar-bg: var(--x-color-bg, Canvas); --x-sidebar-fg: var(--x-color-text, CanvasText); --x-sidebar-backdrop: rgb(0 0 0 / 0.4); --x-sidebar-shadow: var(--x-shadow-lg, 0 8px 24px rgb(0 0 0 / 0.18)); --x-sidebar-width: 18rem; --x-sidebar-collapsed-width: 4rem; --x-sidebar-duration: var(--x-transition-duration, 180ms); --x-sidebar-easing: var(--x-transition-easing, ease); display: block; position: relative;}:host([hidden]) { display: none; }.backdrop[hidden] { display: none; }.backdrop { position: fixed; inset: 0; background: var(--x-sidebar-backdrop); opacity: 0; z-index: 999; pointer-events: none; transition: opacity var(--x-sidebar-duration) var(--x-sidebar-easing);}.backdrop[data-active\x3d'true'] { opacity: 1; pointer-events: auto;}.sidebar { position: relative; color: var(--x-sidebar-fg); block-size: 100%;}.panel { background: var(--x-sidebar-bg); color: var(--x-sidebar-fg); inline-size: var(--x-sidebar-width); min-block-size: 100%; overflow: hidden; box-shadow: var(--x-sidebar-shadow); will-change: transform, inline-size; transition: transform var(--x-sidebar-duration) var(--x-sidebar-easing), inline-size var(--x-sidebar-duration) var(--x-sidebar-easing), opacity var(--x-sidebar-duration) var(--x-sidebar-easing);}:host([data-effective-variant\x3d'docked']) .panel[data-collapsed\x3d'true'] { inline-size: var(--x-sidebar-collapsed-width);}:host([data-effective-variant\x3d'overlay']) .sidebar,:host([data-effective-variant\x3d'modal']) .sidebar { position: fixed; inset-block: 0; z-index: 1000; pointer-events: none;}:host([data-effective-variant\x3d'overlay'][data-open\x3d'true']) .sidebar,:host([data-effective-variant\x3d'modal'][data-open\x3d'true']) .sidebar { pointer-events: auto;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'left']) .sidebar,:host([data-effective-variant\x3d'modal'][data-placement\x3d'left']) .sidebar { inset-inline-start: 0;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'right']) .sidebar,:host([data-effective-variant\x3d'modal'][data-placement\x3d'right']) .sidebar { inset-inline-end: 0;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'left']) .panel[data-open\x3d'false'],:host([data-effective-variant\x3d'modal'][data-placement\x3d'left']) .panel[data-open\x3d'false'] { transform: translateX(-100%); pointer-events: none;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'right']) .panel[data-open\x3d'false'],:host([data-effective-variant\x3d'modal'][data-placement\x3d'right']) .panel[data-open\x3d'false'] { transform: translateX(100%); pointer-events: none;}:host([data-effective-variant\x3d'overlay']) .panel[data-open\x3d'true'],:host([data-effective-variant\x3d'modal']) .panel[data-open\x3d'true'] { transform: translateX(0); pointer-events: auto;}:host([data-reduced-motion\x3d'true']) .panel,:host([data-reduced-motion\x3d'true']) .backdrop { transition: none;}@media (prefers-color-scheme: dark) { :host { --x-sidebar-bg: var(--x-color-bg, #1f2937); --x-sidebar-fg: var(--x-color-text, #f9fafb); --x-sidebar-shadow: var(--x-shadow-lg, 0 8px 24px rgb(0 0 0 / 0.4)); }}";
6
- d.className="backdrop";d.setAttribute("part","backdrop");d.hidden=!0;e.className="sidebar";e.setAttribute("part","sidebar");g.className="panel";g.setAttribute("part","panel");g.appendChild(h);e.appendChild(g);b.appendChild(c);b.appendChild(d);b.appendChild(e);a._root=b;a._backdrop=d;a._sidebar=e;a._panel=g;a._slot=h}},JW=function(a){nW(a);var b=$APP.l(a,"_prevState");b=$APP.r(b)?b:$APP.Td;var c=a.hasAttribute("open"),d=a.hasAttribute("collapsed"),e=a.getAttribute("placement"),g=a.getAttribute("variant"),
7
- h=a.getAttribute("breakpoint"),k=a.getAttribute("label"),m=window.innerWidth,p=window.matchMedia("(prefers-reduced-motion: reduce)");c=$APP.N(new $APP.P(null,8,[oW,c,pW,d,qW,e,rW,g,sW,h,tW,k,uW,m,vW,$APP.I(p.matches)],null));k=$APP.G(c,oW);h=$APP.G(c,pW);d=$APP.G(c,qW);e=$APP.G(c,rW);m=$APP.G(c,sW);p=$APP.G(c,tW);g=$APP.G(c,uW);c=$APP.G(c,vW);d=$APP.J(wW,d)?d:$APP.hj.g(xW);e=$APP.J(yW,e)?e:$APP.Fh.g(xW);var q=$APP.Di.g(xW);m=m==null?null:""+$APP.S.g(m);m=m==null?null:(0,$APP.Mg)(m);$APP.u(m)?(m=Number(m),
8
- m=$APP.r(Number.isFinite(m))?m:q):m=q;p=p!=null?(0,$APP.Mg)(p):null;p=$APP.u(p)?p:null;p=$APP.r(p)?p:$APP.T.g(xW);k=$APP.N(new $APP.P(null,1,[oW,k],null));k=$APP.G(k,oW);k=$APP.I(k);h=$APP.I(h);g=g<m?"modal":e;q=$APP.D.i(g,"modal");var w=$APP.D.i(g,"overlay"),x=$APP.D.i(g,"docked");c=$APP.Q([$APP.il,zW,AW,BW,$APP.Di,CW,DW,EW,FW,$APP.T,$APP.hj,GW,HW,IW],[k,g,!k,x&&h,m,x,h,e,k&&(q||w),p,d,$APP.I(c),q,w]);k=$APP.N(c);d=$APP.G(k,zW);e=$APP.G(k,$APP.hj);g=$APP.G(k,$APP.il);h=$APP.G(k,BW);k=$APP.G(k,GW);
9
- a.setAttribute("data-effective-variant",d);a.setAttribute("data-placement",e);a.setAttribute("data-open",$APP.r(g)?"true":"false");a.setAttribute("data-collapsed",$APP.r(h)?"true":"false");a.setAttribute("data-reduced-motion",$APP.r(k)?"true":"false");d=HW.g(c);$APP.r(d)&&(d=$APP.il.g(c),$APP.r(d)&&(d=HW.g(b),d=$APP.r(d)?$APP.il.g(b):d,d=$APP.t(d)));$APP.r(d)?(d=$APP.Be($APP.ge(jW,$APP.wc($APP.l(a,"_panel").querySelectorAll("a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex\x3d'-1'])")))),
10
- a._restoreFocusTarget=document.activeElement,e=$APP.nh(d),a._tabbables=e,$APP.u(d)?$APP.v(d).focus():kW(a)):(d=HW.g(b),$APP.r(d)&&(d=$APP.il.g(b),$APP.r(d)&&(d=HW.g(c),d=$APP.r(d)?$APP.il.g(c):d,d=$APP.t(d))),$APP.r(d)&&lW(a));e=$APP.N(c);d=$APP.G(e,$APP.T);e=$APP.G(e,AW);g=$APP.l(a,"_sidebar");$APP.r(g)&&(g.setAttribute("role","navigation"),g.setAttribute("aria-label",d),g.setAttribute("aria-hidden",$APP.r(e)?"true":"false"));d=$APP.N(c);d=$APP.G(d,FW);e=$APP.l(a,"_backdrop");$APP.r(e)&&(e.setAttribute("data-active",
11
- $APP.r(d)?"true":"false"),e.hidden=$APP.t(d),e.inert!=null&&(e.inert=$APP.t(d)));h=$APP.N(c);d=$APP.G(h,$APP.il);e=$APP.G(h,$APP.hj);g=$APP.G(h,zW);h=$APP.G(h,BW);k=$APP.l(a,"_panel");$APP.r(k)&&(k.setAttribute("data-open",$APP.r(d)?"true":"false"),k.setAttribute("data-placement",e),k.setAttribute("data-variant",g),k.setAttribute("data-collapsed",$APP.r(h)?"true":"false"));$APP.O($APP.il.g(b),$APP.il.g(c))&&(b=$APP.il.g(c),gW(a,"toggle",new $APP.P(null,1,[$APP.il,$APP.I(b)],null)));a._prevState=c},
12
- KW=function(a,b){var c=$APP.l(a,"_prevState"),d=b.key;return $APP.r(function(){var e=HW.g(c);e=$APP.r(e)?e:IW.g(c);return $APP.r(e)?$APP.il.g(c):e}())?$APP.D.i(d,"Escape")?(b.preventDefault(),iW(a,"escape"),fW(a,"open",!1)):$APP.r(function(){var e=HW.g(c);return $APP.r(e)?$APP.D.i(d,"Tab"):e}())?mW(a,b):null:null},LW=function(a){$APP.r($APP.l(a,"_handlers"))||$APP.n(a,"_handlers",{onBackdropClick:function(b){var c=$APP.l(a,"_prevState"),d=$APP.l(a,"_backdrop");var e=HW.g(c);e=$APP.r(e)?e:IW.g(c);
13
- $APP.r(e)?(c=$APP.il.g(c),b=$APP.r(c)?$APP.D.i(b.target,d):c):b=e;$APP.r(b)?(iW(a,"backdrop"),b=fW(a,"open",!1)):b=null;return b},onKeydown:function(b){return KW(a,b)},onResize:function(){return JW(a)}})},MW=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return fW(this,"open",$APP.I(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"collapsed",{get:function(){return this.hasAttribute("collapsed")},set:function(b){return fW(this,
14
- "collapsed",$APP.I(b))},enumerable:!0,configurable:!0})},OW=function(){var a=class extends HTMLElement{};a.observedAttributes=NW;a.prototype.connectedCallback=function(){nW(this);LW(this);if($APP.l(this,"_listening")!==!0){var b=$APP.l(this,"_handlers"),c=$APP.l(this,"_backdrop"),d=$APP.l(this,"_root");$APP.r($APP.r(c)?b:c)&&c.addEventListener("click",$APP.l(b,"onBackdropClick"));$APP.r($APP.r(d)?b:d)&&d.addEventListener("keydown",$APP.l(b,"onKeydown"));$APP.r(b)&&window.addEventListener("resize",
15
- $APP.l(b,"onResize"));this._listening=!0}return JW(this)};a.prototype.disconnectedCallback=function(){if($APP.l(this,"_listening")===!0){var b=$APP.l(this,"_handlers"),c=$APP.l(this,"_backdrop"),d=$APP.l(this,"_root");$APP.r($APP.r(c)?b:c)&&c.removeEventListener("click",$APP.l(b,"onBackdropClick"));$APP.r($APP.r(d)?b:d)&&d.removeEventListener("keydown",$APP.l(b,"onKeydown"));$APP.r(b)&&window.removeEventListener("resize",$APP.l(b,"onResize"));this._listening=!1}return lW(this)};a.prototype.attributeChangedCallback=
16
- function(b,c,d){return $APP.O(c,d)?JW(this):null};MW(a.prototype);return a},PW=function(){return $APP.r(customElements.get("x-sidebar"))?null:customElements.define("x-sidebar",OW())},EW=new $APP.K(null,"declared-variant","declared-variant",-2054964950),uW=new $APP.K(null,"viewport-width","viewport-width",-1146235948),AW=new $APP.K(null,"aria-hidden","aria-hidden",399337029),DW=new $APP.K(null,"collapsed-requested","collapsed-requested",1573505800),FW=new $APP.K(null,"show-backdrop","show-backdrop",
17
- -532209910),pW=new $APP.K(null,"collapsed-attr","collapsed-attr",-1535396832),qW=new $APP.K(null,"placement-attr","placement-attr",-1321967286),oW=new $APP.K(null,"open-attr","open-attr",-1772289801),QW=new $APP.K(null,"collapsed","collapsed",-628494523),vW=new $APP.K(null,"prefers-reduced-motion","prefers-reduced-motion",-2023150975),sW=new $APP.K(null,"breakpoint-attr","breakpoint-attr",-250275627),rW=new $APP.K(null,"variant-attr","variant-attr",-1143729279),zW=new $APP.K(null,"effective-variant",
18
- "effective-variant",-829495195),GW=new $APP.K(null,"reduced-motion","reduced-motion",79621277),CW=new $APP.K(null,"is-docked","is-docked",875310728),HW=new $APP.K(null,"is-modal","is-modal",1610761086),IW=new $APP.K(null,"is-overlay","is-overlay",1953921119),tW=new $APP.K(null,"label-attr","label-attr",-571749887),BW=new $APP.K(null,"collapsed-applied","collapsed-applied",-1696231706);var NW="open collapsed placement variant breakpoint label".split(" "),wW=$APP.Yf(["right","left"]),yW=$APP.Yf(["overlay","docked","modal"]),hW=$APP.Yf(["backdrop","escape"]),xW=new $APP.P(null,6,[$APP.hj,"left",$APP.Fh,"docked",$APP.Di,768,$APP.T,"Sidebar",$APP.il,!1,QW,!1],null);$APP.Sd(["toggle",new $APP.P(null,1,[$APP.U,new $APP.P(null,1,[$APP.il,$APP.qj],null)],null),"dismiss",new $APP.P(null,1,[$APP.U,new $APP.P(null,1,[$APP.ji,$APP.X],null)],null)]);$APP.ka("baredom.exports.x_sidebar.init",PW);export const init=PW;
2
+ var HZ=function(a,b,c){a.dispatchEvent(new CustomEvent(b,$APP.ph(new $APP.R(null,3,[$APP.yj,c,$APP.Ql,!0,$APP.bm,!0],null))))},JZ=function(a,b){$APP.J(IZ,b)&&HZ(a,"dismiss",new $APP.R(null,1,[$APP.ri,b],null))},KZ=function(a){var b=window.getComputedStyle(a);return $APP.N("none",b.display)&&$APP.N("hidden",b.visibility)&&a.offsetWidth>0&&a.offsetHeight>0},LZ=function(a){var b=$APP.k(a,"_panel");$APP.n(b.hasAttribute("tabindex"))||(b.setAttribute("tabindex","-1"),a._panelTabindexAdded=!0);return b.focus()},
3
+ MZ=function(a){var b=$APP.k(a,"_restoreFocusTarget"),c=$APP.k(a,"_panel"),d=$APP.k(a,"_panelTabindexAdded")===!0,e=$APP.k(a,"_root");var g=$APP.k(a,"_sidebar");e=$APP.n(e)?e.activeElement:null;var h=document.activeElement;g=$APP.n($APP.n(e)?$APP.n(g)?g.contains(e):g:e)?e:$APP.n($APP.n(h)?$APP.n(g)?g.contains(h):g:h)?h:null;$APP.n(g)&&g.blur();a._tabbables=null;a._restoreFocusTarget=null;$APP.n($APP.n(c)?d:c)&&(c.removeAttribute("tabindex"),a._panelTabindexAdded=!1);return $APP.n($APP.n(b)?b.isConnected:
4
+ b)?b.focus():null},NZ=function(a,b){var c=$APP.k(a,"_tabbables");c=$APP.n(c)?$APP.ve($APP.tc(c)):$APP.ee;var d=$APP.k(a,"_panel");if($APP.Gc(c))return b.preventDefault(),$APP.n(d)?LZ(a):null;a=document.activeElement;d=$APP.u(c);c=$APP.wc(c);var e=b.shiftKey;return $APP.n($APP.n(e)?$APP.C.i(a,d):e)?(b.preventDefault(),c.focus()):$APP.r(e)&&$APP.C.i(a,c)?(b.preventDefault(),d.focus()):null},OZ=function(a){if(!$APP.n($APP.k(a,"_root"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),
5
+ d=document.createElement("div"),e=document.createElement("aside"),g=document.createElement("div"),h=document.createElement("slot");c.textContent=":host { --x-sidebar-bg: var(--x-color-bg, Canvas); --x-sidebar-fg: var(--x-color-text, CanvasText); --x-sidebar-backdrop: rgb(0 0 0 / 0.4); --x-sidebar-shadow: var(--x-shadow-lg, 0 8px 24px rgb(0 0 0 / 0.18)); --x-sidebar-width: 18rem; --x-sidebar-collapsed-width: 4rem; --x-sidebar-duration: var(--x-transition-duration, 180ms); --x-sidebar-easing: var(--x-transition-easing, ease); display: block; position: relative;}:host([hidden]) { display: none; }.backdrop[hidden] { display: none; }.backdrop { position: fixed; inset: 0; background: var(--x-sidebar-backdrop); opacity: 0; z-index: 999; pointer-events: none; transition: opacity var(--x-sidebar-duration) var(--x-sidebar-easing);}.backdrop[data-active\x3d'true'] { opacity: 1; pointer-events: auto;}.sidebar { position: relative; color: var(--x-sidebar-fg); block-size: 100%;}.panel { background: var(--x-sidebar-bg); color: var(--x-sidebar-fg); inline-size: var(--x-sidebar-width); min-block-size: 100%; overflow: hidden; box-shadow: var(--x-sidebar-shadow); will-change: transform, inline-size; transition: transform var(--x-sidebar-duration) var(--x-sidebar-easing), inline-size var(--x-sidebar-duration) var(--x-sidebar-easing), opacity var(--x-sidebar-duration) var(--x-sidebar-easing);}:host([data-effective-variant\x3d'docked']) .panel[data-collapsed\x3d'true'] { inline-size: var(--x-sidebar-collapsed-width);}:host([data-effective-variant\x3d'overlay']) .sidebar,:host([data-effective-variant\x3d'modal']) .sidebar { position: fixed; inset-block: 0; z-index: 1000; pointer-events: none;}:host([data-effective-variant\x3d'overlay'][data-open\x3d'true']) .sidebar,:host([data-effective-variant\x3d'modal'][data-open\x3d'true']) .sidebar { pointer-events: auto;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'left']) .sidebar,:host([data-effective-variant\x3d'modal'][data-placement\x3d'left']) .sidebar { inset-inline-start: 0;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'right']) .sidebar,:host([data-effective-variant\x3d'modal'][data-placement\x3d'right']) .sidebar { inset-inline-end: 0;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'left']) .panel[data-open\x3d'false'],:host([data-effective-variant\x3d'modal'][data-placement\x3d'left']) .panel[data-open\x3d'false'] { transform: translateX(-100%); pointer-events: none;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'right']) .panel[data-open\x3d'false'],:host([data-effective-variant\x3d'modal'][data-placement\x3d'right']) .panel[data-open\x3d'false'] { transform: translateX(100%); pointer-events: none;}:host([data-effective-variant\x3d'overlay']) .panel[data-open\x3d'true'],:host([data-effective-variant\x3d'modal']) .panel[data-open\x3d'true'] { transform: translateX(0); pointer-events: auto;}:host([data-reduced-motion\x3d'true']) .panel,:host([data-reduced-motion\x3d'true']) .backdrop { transition: none;}@media (prefers-color-scheme: dark) { :host { --x-sidebar-bg: var(--x-color-bg, #1f2937); --x-sidebar-fg: var(--x-color-text, #f9fafb); --x-sidebar-shadow: var(--x-shadow-lg, 0 8px 24px rgb(0 0 0 / 0.4)); }}";
6
+ d.className="backdrop";d.setAttribute("part","backdrop");d.hidden=!0;e.className="sidebar";e.setAttribute("part","sidebar");g.className="panel";g.setAttribute("part","panel");g.appendChild(h);e.appendChild(g);b.appendChild(c);b.appendChild(d);b.appendChild(e);a._root=b;a._backdrop=d;a._sidebar=e;a._panel=g;a._slot=h}},j_=function(a){OZ(a);var b=$APP.k(a,"_prevState");b=$APP.n(b)?b:$APP.Qd;var c=a.hasAttribute("open"),d=a.hasAttribute("collapsed"),e=a.getAttribute("placement"),g=a.getAttribute("variant"),
7
+ h=a.getAttribute("breakpoint"),l=a.getAttribute("label"),m=window.innerWidth,p=window.matchMedia("(prefers-reduced-motion: reduce)");c=$APP.M(new $APP.R(null,8,[PZ,c,QZ,d,RZ,e,SZ,g,TZ,h,UZ,l,VZ,m,WZ,$APP.F(p.matches)],null));l=$APP.D(c,PZ);h=$APP.D(c,QZ);d=$APP.D(c,RZ);e=$APP.D(c,SZ);m=$APP.D(c,TZ);p=$APP.D(c,UZ);g=$APP.D(c,VZ);c=$APP.D(c,WZ);d=$APP.J(XZ,d)?d:$APP.nj.g(YZ);e=$APP.J(ZZ,e)?e:$APP.Nh.g(YZ);var q=$APP.Ji.g(YZ);m=m==null?null:""+$APP.T.g(m);m=m==null?null:(0,$APP.Sg)(m);$APP.t(m)?(m=Number(m),
8
+ m=$APP.n(Number.isFinite(m))?m:q):m=q;p=p!=null?(0,$APP.Sg)(p):null;p=$APP.t(p)?p:null;p=$APP.n(p)?p:$APP.U.g(YZ);l=$APP.M(new $APP.R(null,1,[PZ,l],null));l=$APP.D(l,PZ);l=$APP.F(l);h=$APP.F(h);g=g<m?"modal":e;q=$APP.C.i(g,"modal");var v=$APP.C.i(g,"overlay"),x=$APP.C.i(g,"docked");c=$APP.xf([$APP.tl,$Z,a_,b_,$APP.Ji,c_,d_,e_,f_,$APP.U,$APP.nj,g_,h_,i_],[l,g,!l,x&&h,m,x,h,e,l&&(q||v),p,d,$APP.F(c),q,v]);l=$APP.M(c);d=$APP.D(l,$Z);e=$APP.D(l,$APP.nj);g=$APP.D(l,$APP.tl);h=$APP.D(l,b_);l=$APP.D(l,g_);
9
+ a.setAttribute("data-effective-variant",d);a.setAttribute("data-placement",e);a.setAttribute("data-open",$APP.n(g)?"true":"false");a.setAttribute("data-collapsed",$APP.n(h)?"true":"false");a.setAttribute("data-reduced-motion",$APP.n(l)?"true":"false");d=h_.g(c);$APP.n(d)&&(d=$APP.tl.g(c),$APP.n(d)&&(d=h_.g(b),d=$APP.n(d)?$APP.tl.g(b):d,d=$APP.r(d)));$APP.n(d)?(d=$APP.ve($APP.ce(KZ,$APP.tc($APP.k(a,"_panel").querySelectorAll("a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex\x3d'-1'])")))),
10
+ a._restoreFocusTarget=document.activeElement,e=$APP.ph(d),a._tabbables=e,$APP.t(d)?$APP.u(d).focus():LZ(a)):(d=h_.g(b),$APP.n(d)&&(d=$APP.tl.g(b),$APP.n(d)&&(d=h_.g(c),d=$APP.n(d)?$APP.tl.g(c):d,d=$APP.r(d))),$APP.n(d)&&MZ(a));e=$APP.M(c);d=$APP.D(e,$APP.U);e=$APP.D(e,a_);g=$APP.k(a,"_sidebar");$APP.n(g)&&(g.setAttribute("role","navigation"),g.setAttribute("aria-label",d),g.setAttribute("aria-hidden",$APP.n(e)?"true":"false"));d=$APP.M(c);d=$APP.D(d,f_);e=$APP.k(a,"_backdrop");$APP.n(e)&&(e.setAttribute("data-active",
11
+ $APP.n(d)?"true":"false"),e.hidden=$APP.r(d),e.inert!=null&&(e.inert=$APP.r(d)));h=$APP.M(c);d=$APP.D(h,$APP.tl);e=$APP.D(h,$APP.nj);g=$APP.D(h,$Z);h=$APP.D(h,b_);l=$APP.k(a,"_panel");$APP.n(l)&&(l.setAttribute("data-open",$APP.n(d)?"true":"false"),l.setAttribute("data-placement",e),l.setAttribute("data-variant",g),l.setAttribute("data-collapsed",$APP.n(h)?"true":"false"));$APP.N($APP.tl.g(b),$APP.tl.g(c))&&(b=$APP.tl.g(c),HZ(a,"toggle",new $APP.R(null,1,[$APP.tl,$APP.F(b)],null)));a._prevState=c},
12
+ k_=function(a,b){var c=$APP.k(a,"_prevState"),d=b.key;return $APP.n(function(){var e=h_.g(c);e=$APP.n(e)?e:i_.g(c);return $APP.n(e)?$APP.tl.g(c):e}())?$APP.C.i(d,"Escape")?(b.preventDefault(),JZ(a,"escape"),$APP.Cg(a,"open",!1)):$APP.n(function(){var e=h_.g(c);return $APP.n(e)?$APP.C.i(d,"Tab"):e}())?NZ(a,b):null:null},l_=function(a){$APP.n($APP.k(a,"_handlers"))||$APP.ia(a,"_handlers",{onBackdropClick:function(b){var c=$APP.k(a,"_prevState"),d=$APP.k(a,"_backdrop");var e=h_.g(c);e=$APP.n(e)?e:i_.g(c);
13
+ $APP.n(e)?(c=$APP.tl.g(c),b=$APP.n(c)?$APP.C.i(b.target,d):c):b=e;$APP.n(b)?(JZ(a,"backdrop"),b=$APP.Cg(a,"open",!1)):b=null;return b},onKeydown:function(b){return k_(a,b)},onResize:function(){return j_(a)}})},m_=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return $APP.Cg(this,"open",$APP.F(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"collapsed",{get:function(){return this.hasAttribute("collapsed")},set:function(b){return $APP.Cg(this,
14
+ "collapsed",$APP.F(b))},enumerable:!0,configurable:!0})},o_=function(){var a=class extends HTMLElement{};a.observedAttributes=n_;a.prototype.connectedCallback=function(){OZ(this);l_(this);if($APP.k(this,"_listening")!==!0){var b=$APP.k(this,"_handlers"),c=$APP.k(this,"_backdrop"),d=$APP.k(this,"_root");$APP.n($APP.n(c)?b:c)&&c.addEventListener("click",$APP.k(b,"onBackdropClick"));$APP.n($APP.n(d)?b:d)&&d.addEventListener("keydown",$APP.k(b,"onKeydown"));$APP.n(b)&&window.addEventListener("resize",
15
+ $APP.k(b,"onResize"));this._listening=!0}return j_(this)};a.prototype.disconnectedCallback=function(){if($APP.k(this,"_listening")===!0){var b=$APP.k(this,"_handlers"),c=$APP.k(this,"_backdrop"),d=$APP.k(this,"_root");$APP.n($APP.n(c)?b:c)&&c.removeEventListener("click",$APP.k(b,"onBackdropClick"));$APP.n($APP.n(d)?b:d)&&d.removeEventListener("keydown",$APP.k(b,"onKeydown"));$APP.n(b)&&window.removeEventListener("resize",$APP.k(b,"onResize"));this._listening=!1}return MZ(this)};a.prototype.attributeChangedCallback=
16
+ function(b,c,d){return $APP.N(c,d)?j_(this):null};m_(a.prototype);return a},p_=function(){return $APP.n(customElements.get("x-sidebar"))?null:customElements.define("x-sidebar",o_())},e_=new $APP.K(null,"declared-variant","declared-variant",-2054964950),VZ=new $APP.K(null,"viewport-width","viewport-width",-1146235948),a_=new $APP.K(null,"aria-hidden","aria-hidden",399337029),d_=new $APP.K(null,"collapsed-requested","collapsed-requested",1573505800),f_=new $APP.K(null,"show-backdrop","show-backdrop",
17
+ -532209910),QZ=new $APP.K(null,"collapsed-attr","collapsed-attr",-1535396832),RZ=new $APP.K(null,"placement-attr","placement-attr",-1321967286),PZ=new $APP.K(null,"open-attr","open-attr",-1772289801),q_=new $APP.K(null,"collapsed","collapsed",-628494523),WZ=new $APP.K(null,"prefers-reduced-motion","prefers-reduced-motion",-2023150975),TZ=new $APP.K(null,"breakpoint-attr","breakpoint-attr",-250275627),SZ=new $APP.K(null,"variant-attr","variant-attr",-1143729279),$Z=new $APP.K(null,"effective-variant",
18
+ "effective-variant",-829495195),g_=new $APP.K(null,"reduced-motion","reduced-motion",79621277),c_=new $APP.K(null,"is-docked","is-docked",875310728),h_=new $APP.K(null,"is-modal","is-modal",1610761086),i_=new $APP.K(null,"is-overlay","is-overlay",1953921119),UZ=new $APP.K(null,"label-attr","label-attr",-571749887),b_=new $APP.K(null,"collapsed-applied","collapsed-applied",-1696231706);var n_="open collapsed placement variant breakpoint label".split(" "),XZ=$APP.Sf(["right","left"]),ZZ=$APP.Sf(["overlay","docked","modal"]),IZ=$APP.Sf(["backdrop","escape"]),YZ=new $APP.R(null,6,[$APP.nj,"left",$APP.Nh,"docked",$APP.Ji,768,$APP.U,"Sidebar",$APP.tl,!1,q_,!1],null);$APP.Pd(["toggle",new $APP.R(null,1,[$APP.yj,new $APP.R(null,1,[$APP.tl,$APP.Bj],null)],null),"dismiss",new $APP.R(null,1,[$APP.yj,new $APP.R(null,1,[$APP.ri,$APP.X],null)],null)]);$APP.fa("baredom.exports.x_sidebar.init",p_);export const init=p_;
@@ -1,7 +1,7 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var lL=function(a){return typeof a==="string"&&$APP.O("",a)?a:null},oL=function(a){var b=new $APP.P(null,4,[$APP.Fh,a.getAttribute("variant"),$APP.Oi,a.getAttribute("animation"),$APP.Lj,a.getAttribute("width"),$APP.pj,a.getAttribute("height")],null);var c=$APP.N(b),d=$APP.G(c,$APP.Fh),e=$APP.G(c,$APP.Oi);b=$APP.G(c,$APP.Lj);c=$APP.G(c,$APP.pj);d=typeof d==="string"&&$APP.J(mL,d)?d:"rect";e=typeof e==="string"&&$APP.J(nL,e)?e:"pulse";b=new $APP.P(null,4,[$APP.Fh,d,$APP.Oi,e,$APP.Lj,lL(b),$APP.pj,lL(c)],
3
- null);d=$APP.N(b);b=$APP.G(d,$APP.Fh);e=$APP.G(d,$APP.Oi);c=$APP.G(d,$APP.Lj);d=$APP.G(d,$APP.pj);var g=$APP.l(a,"__xSkeletonBase");g.setAttribute("data-variant",b);g.setAttribute("data-animation",e);$APP.r(c)?g.style.setProperty("width",c):g.style.removeProperty("width");$APP.r(d)?g.style.setProperty("height",d):g.style.removeProperty("height");a.setAttribute("aria-hidden","true")},pL=function(a){Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.r(b)?
4
- b:"rect"},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("variant",b):this.removeAttribute("variant")},enumerable:!0,configurable:!0});Object.defineProperty(a,"animation",{get:function(){var b=this.getAttribute("animation");return $APP.r(b)?b:"pulse"},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("animation",b):this.removeAttribute("animation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"width",{get:function(){var b=this.getAttribute("width");
5
- return $APP.r(b)?b:""},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("width",b):this.removeAttribute("width")},enumerable:!0,configurable:!0});Object.defineProperty(a,"height",{get:function(){var b=this.getAttribute("height");return $APP.r(b)?b:""},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("height",b):this.removeAttribute("height")},enumerable:!0,configurable:!0})},rL=function(){var a=class extends HTMLElement{};a.observedAttributes=qL;
6
- a.prototype.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xSkeletonInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div");c.textContent=":host{display:block;box-sizing:border-box;color-scheme:light dark;--x-skeleton-color:var(--x-color-border,rgba(0,0,0,0.08));--x-skeleton-highlight:rgba(255,255,255,0.65);--x-skeleton-border-radius:var(--x-radius-sm,4px);--x-skeleton-duration:1.5s;}@media (prefers-color-scheme:dark){:host{--x-skeleton-color:var(--x-color-border,rgba(255,255,255,0.10));--x-skeleton-highlight:rgba(255,255,255,0.18);}}[part\x3dbase]{width:100%;height:1rem;position:relative;overflow:hidden;background:var(--x-skeleton-color);border-radius:var(--x-skeleton-border-radius);}[part\x3dbase][data-variant\x3d'text']{height:1em;border-radius:3px;}[part\x3dbase][data-variant\x3d'circle']{width:2.5rem;height:2.5rem;border-radius:50%;}[part\x3dshimmer]{position:absolute;inset:0;background:linear-gradient(90deg,transparent 0%,var(--x-skeleton-highlight) 50%,transparent 100%);transform:translateX(-100%);display:none;pointer-events:none;}@keyframes x-skeleton-pulse{0%,100%{opacity:1;}50%{opacity:0.4;}}@keyframes x-skeleton-wave{0%{transform:translateX(-100%);}100%{transform:translateX(200%);}}[part\x3dbase][data-animation\x3d'pulse']{animation:x-skeleton-pulse var(--x-skeleton-duration,1.5s) ease-in-out infinite;}[part\x3dbase][data-animation\x3d'wave'] [part\x3dshimmer]{display:block;animation:x-skeleton-wave var(--x-skeleton-duration,1.5s) linear infinite;}@media (prefers-reduced-motion:reduce){[part\x3dbase][data-animation\x3d'pulse']{animation:none;}[part\x3dbase][data-animation\x3d'wave'] [part\x3dshimmer]{animation:none;}}";
7
- d.setAttribute("part","base");e.setAttribute("part","shimmer");d.appendChild(e);b.appendChild(c);b.appendChild(d);this.__xSkeletonBase=d;this.__xSkeletonInit=!0}oL(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&$APP.r($APP.l(this,"__xSkeletonInit"))&&oL(this);return null};pL(a.prototype);return a},sL=function(){$APP.r(customElements.get("x-skeleton"))||customElements.define("x-skeleton",rL());return null};var mL=new $APP.R(null,new $APP.P(null,3,["text",null,"rect",null,"circle",null],null),null),nL=new $APP.R(null,new $APP.P(null,3,["none",null,"pulse",null,"wave",null],null),null),qL=["variant","animation","width","height"];$APP.ka("baredom.exports.x_skeleton.init",sL);export const init=sL;
2
+ var qN=function(a){return typeof a==="string"&&$APP.N("",a)?a:null},tN=function(a){var b=new $APP.R(null,4,[$APP.Nh,a.getAttribute("variant"),$APP.Ui,a.getAttribute("animation"),$APP.Zj,a.getAttribute("width"),$APP.Aj,a.getAttribute("height")],null);var c=$APP.M(b),d=$APP.D(c,$APP.Nh),e=$APP.D(c,$APP.Ui);b=$APP.D(c,$APP.Zj);c=$APP.D(c,$APP.Aj);d=typeof d==="string"&&$APP.J(rN,d)?d:"rect";e=typeof e==="string"&&$APP.J(sN,e)?e:"pulse";b=new $APP.R(null,4,[$APP.Nh,d,$APP.Ui,e,$APP.Zj,qN(b),$APP.Aj,qN(c)],
3
+ null);d=$APP.M(b);b=$APP.D(d,$APP.Nh);e=$APP.D(d,$APP.Ui);c=$APP.D(d,$APP.Zj);d=$APP.D(d,$APP.Aj);var g=$APP.k(a,"__xSkeletonBase");g.setAttribute("data-variant",b);g.setAttribute("data-animation",e);$APP.n(c)?g.style.setProperty("width",c):g.style.removeProperty("width");$APP.n(d)?g.style.setProperty("height",d):g.style.removeProperty("height");a.setAttribute("aria-hidden","true")},uN=function(a){Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?
4
+ b:"rect"},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("variant",b):this.removeAttribute("variant")},enumerable:!0,configurable:!0});Object.defineProperty(a,"animation",{get:function(){var b=this.getAttribute("animation");return $APP.n(b)?b:"pulse"},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("animation",b):this.removeAttribute("animation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"width",{get:function(){var b=this.getAttribute("width");
5
+ return $APP.n(b)?b:""},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("width",b):this.removeAttribute("width")},enumerable:!0,configurable:!0});Object.defineProperty(a,"height",{get:function(){var b=this.getAttribute("height");return $APP.n(b)?b:""},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("height",b):this.removeAttribute("height")},enumerable:!0,configurable:!0})},wN=function(){var a=class extends HTMLElement{};a.observedAttributes=vN;
6
+ a.prototype.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xSkeletonInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div");c.textContent=":host{display:block;box-sizing:border-box;color-scheme:light dark;--x-skeleton-color:var(--x-color-border,rgba(0,0,0,0.08));--x-skeleton-highlight:rgba(255,255,255,0.65);--x-skeleton-border-radius:var(--x-radius-sm,4px);--x-skeleton-duration:1.5s;}@media (prefers-color-scheme:dark){:host{--x-skeleton-color:var(--x-color-border,rgba(255,255,255,0.10));--x-skeleton-highlight:rgba(255,255,255,0.18);}}[part\x3dbase]{width:100%;height:1rem;position:relative;overflow:hidden;background:var(--x-skeleton-color);border-radius:var(--x-skeleton-border-radius);}[part\x3dbase][data-variant\x3d'text']{height:1em;border-radius:3px;}[part\x3dbase][data-variant\x3d'circle']{width:2.5rem;height:2.5rem;border-radius:50%;}[part\x3dshimmer]{position:absolute;inset:0;background:linear-gradient(90deg,transparent 0%,var(--x-skeleton-highlight) 50%,transparent 100%);transform:translateX(-100%);display:none;pointer-events:none;}@keyframes x-skeleton-pulse{0%,100%{opacity:1;}50%{opacity:0.4;}}@keyframes x-skeleton-wave{0%{transform:translateX(-100%);}100%{transform:translateX(200%);}}[part\x3dbase][data-animation\x3d'pulse']{animation:x-skeleton-pulse var(--x-skeleton-duration,1.5s) ease-in-out infinite;}[part\x3dbase][data-animation\x3d'wave'] [part\x3dshimmer]{display:block;animation:x-skeleton-wave var(--x-skeleton-duration,1.5s) linear infinite;}@media (prefers-reduced-motion:reduce){[part\x3dbase][data-animation\x3d'pulse']{animation:none;}[part\x3dbase][data-animation\x3d'wave'] [part\x3dshimmer]{animation:none;}}";
7
+ d.setAttribute("part","base");e.setAttribute("part","shimmer");d.appendChild(e);b.appendChild(c);b.appendChild(d);this.__xSkeletonBase=d;this.__xSkeletonInit=!0}tN(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xSkeletonInit"))&&tN(this);return null};uN(a.prototype);return a},xN=function(){$APP.n(customElements.get("x-skeleton"))||customElements.define("x-skeleton",wN());return null};var rN=new $APP.S(null,new $APP.R(null,3,["text",null,"rect",null,"circle",null],null),null),sN=new $APP.S(null,new $APP.R(null,3,["none",null,"pulse",null,"wave",null],null),null),vN=["variant","animation","width","height"];$APP.fa("baredom.exports.x_skeleton.init",xN);export const init=xN;
package/dist/x-slider.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var xE=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.r(isNaN(a))?b:a):b},yE=function(a,b,c){return a.setAttribute(b,c)},zE=function(a,b,c){return $APP.r(c)?a.setAttribute(b,""):a.removeAttribute(b)},EE=function(a){var b=$APP.l(a,"__xSliderRefs");if($APP.r(b)){var c=$APP.l(b,"base"),d=$APP.l(b,"header"),e=$APP.l(b,"label"),g=$APP.l(b,"value");b=$APP.l(b,"input");var h=$APP.Q([$APP.vj,$APP.gj,$APP.yj,$APP.Si,$APP.ri,$APP.Ti,$APP.sj,$APP.rh,$APP.ak,$APP.T,$APP.Pl,$APP.Uk,AE],[a.getAttribute("min"),
3
- a.hasAttribute("disabled"),a.hasAttribute("show-value"),a.getAttribute("name"),a.getAttribute("value"),a.hasAttribute("readonly"),a.getAttribute("aria-labelledby"),a.getAttribute("size"),a.getAttribute("max"),a.getAttribute("label"),a.getAttribute("aria-describedby"),a.getAttribute("aria-label"),a.getAttribute("step")]);var k=$APP.N(h);h=$APP.G(k,$APP.Uk);var m=$APP.G(k,AE),p=$APP.G(k,$APP.vj),q=$APP.G(k,$APP.gj),w=$APP.G(k,$APP.yj),x=$APP.G(k,$APP.ri),y=$APP.G(k,$APP.Si),A=$APP.G(k,$APP.Ti),B=$APP.G(k,
4
- $APP.sj),E=$APP.G(k,$APP.rh),H=$APP.G(k,$APP.T),F=$APP.G(k,$APP.ak);k=$APP.G(k,$APP.Pl);p=xE(p,0);F=xE(F,100);x=$APP.Zg.i($APP.Yg.i(xE(x,0),p),F);$APP.D.i(m,"any")?m="any":(m=typeof m==="string"?parseFloat(m):NaN,m=$APP.t(isNaN(m))&&m>0?""+$APP.S.g(m):"1");E=typeof E==="string"&&$APP.J(BE,E)?E:"md";q=$APP.I(q);A=$APP.I(A);w=$APP.I(w);var M=F>p?$APP.Zg.i($APP.Yg.i((x-p)/(F-p)*100,0),100):0;h=$APP.Q([$APP.vj,$APP.Tl,$APP.Si,$APP.ri,$APP.sj,CE,$APP.rh,$APP.ak,$APP.T,$APP.Pl,$APP.Uk,$APP.W,AE,DE],[p,
5
- A,typeof y==="string"&&$APP.O("",y)?y:null,x,typeof B==="string"&&$APP.O("",B)?B:null,w,E,F,typeof H==="string"&&$APP.O("",H)?H:null,typeof k==="string"&&$APP.O("",k)?k:null,typeof h==="string"&&$APP.O("",h)?h:null,q,m,M]);m=$APP.N(h);y=$APP.G(m,$APP.Uk);B=$APP.G(m,$APP.W);H=$APP.G(m,AE);k=$APP.G(m,DE);w=$APP.G(m,$APP.vj);p=$APP.G(m,$APP.Tl);h=$APP.G(m,$APP.ri);A=$APP.G(m,$APP.sj);F=$APP.G(m,CE);q=$APP.G(m,$APP.rh);x=$APP.G(m,$APP.T);E=$APP.G(m,$APP.ak);m=$APP.G(m,$APP.Pl);M=(M=x!=null)?M:F;c.setAttribute("data-size",
6
- q);zE(a,"data-disabled",B);zE(a,"data-readonly",p);d.style.display=$APP.r(M)?"flex":"none";e.textContent=$APP.r(x)?x:"";e.style.display=x!=null?"":"none";g.textContent=$APP.r(F)?""+$APP.S.g(h):"";g.style.display=$APP.r(F)?"":"none";a.style.setProperty("--_x-slider-fill",""+$APP.S.g(k.toFixed(2))+"%");yE(b,"min",""+$APP.S.g(w));yE(b,"max",""+$APP.S.g(E));b.setAttribute("step",H);$APP.O(b.value,""+$APP.S.g(h))&&(b.value=""+$APP.S.g(h));yE(b,"aria-valuemin",""+$APP.S.g(w));yE(b,"aria-valuemax",""+$APP.S.g(E));
7
- yE(b,"aria-valuenow",""+$APP.S.g(h));b.setAttribute("aria-readonly",$APP.r(p)?"true":"false");$APP.r(y)?b.setAttribute("aria-label",y):x!=null?b.setAttribute("aria-label",x):b.removeAttribute("aria-label");$APP.r(A)?b.setAttribute("aria-labelledby",A):b.removeAttribute("aria-labelledby");$APP.r(m)?b.setAttribute("aria-describedby",m):b.removeAttribute("aria-describedby");$APP.r(B)?b.setAttribute("disabled",""):b.removeAttribute("disabled");a=$APP.l(a,"__xSliderInternals");return $APP.r(a)?a.setFormValue(""+
8
- $APP.S.g(h)):null}return null},FE=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},GE=function(a){return function(){if($APP.r(a.hasAttribute("disabled")))return null;var b=$APP.l($APP.l(a,"__xSliderRefs"),"input").value,c=parseFloat(b),d=parseFloat(function(){var g=a.getAttribute("min");return $APP.r(g)?g:"0"}()),e=parseFloat(function(){var g=a.getAttribute("max");return $APP.r(g)?g:"100"}());a.setAttribute("value",b);return FE(a,"x-slider-input",
9
- {value:c,min:d,max:e})}},HE=function(a){return function(){if($APP.r(a.hasAttribute("disabled")))return null;var b=parseFloat($APP.l($APP.l(a,"__xSliderRefs"),"input").value),c=parseFloat(function(){var e=a.getAttribute("min");return $APP.r(e)?e:"0"}()),d=parseFloat(function(){var e=a.getAttribute("max");return $APP.r(e)?e:"100"}());return FE(a,"x-slider-change",{value:b,min:c,max:d})}},JE=function(a){return function(b){var c=a.hasAttribute("readonly");c=$APP.r(c)?$APP.J(IE,b.key):c;return $APP.r(c)?
10
- b.preventDefault():null}},KE=function(a){var b=$APP.l(a,"__xSliderRefs");if($APP.r(b)){var c=$APP.l(a,"__xSliderHandlers");if($APP.r(c)){b=$APP.l(b,"input");b.removeEventListener("input",$APP.l(c,"input"));b.removeEventListener("change",$APP.l(c,"change"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xSliderHandlers=null;return}}return null},LE=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return zE(this,
11
- c,$APP.I(d))}})},ME=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.r(d)?d:null},set:function(d){return d!=null&&$APP.O(d)?yE(this,c,""+$APP.S.g(d)):this.removeAttribute(c)}})},OE=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return NE}});LE(b,"disabled","disabled");LE(b,"readOnly","readonly");LE(b,"showValue","show-value");ME(b,
12
- "value","value");ME(b,"min","min");ME(b,"max","max");ME(b,"step","step");ME(b,"name","name");ME(b,"label","label");ME(b,"size","size");b.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xSliderRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("span"),k=document.createElement("span"),m=document.createElement("input");d.textContent=":host{display:block;color-scheme:light dark;--x-slider-track-color:rgba(0,0,0,0.15);--x-slider-fill-color:var(--x-color-primary,#3b82f6);--x-slider-thumb-color:var(--x-color-surface,#ffffff);--x-slider-thumb-border:2px solid var(--x-color-primary,#3b82f6);--x-slider-thumb-shadow:0 1px 4px rgba(0,0,0,0.20);--x-slider-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-slider-disabled-opacity:0.45;--x-slider-label-color:rgba(0,0,0,0.60);--x-slider-value-color:rgba(0,0,0,0.50);--x-slider-radius:var(--x-radius-full,9999px);}@media (prefers-color-scheme:dark){:host{--x-slider-track-color:rgba(255,255,255,0.15);--x-slider-fill-color:var(--x-color-primary,#3b82f6);--x-slider-thumb-color:var(--x-color-surface,#ffffff);--x-slider-thumb-border:2px solid var(--x-color-primary,#3b82f6);--x-slider-focus-ring:var(--x-color-focus-ring,#93c5fd);--x-slider-label-color:rgba(255,255,255,0.60);--x-slider-value-color:rgba(255,255,255,0.50);}}[part\x3dbase]{width:100%;box-sizing:border-box;}[part\x3dbase][data-size\x3dsm]{--_x-slider-track-h:4px;--_x-slider-thumb-sz:14px;}[part\x3dbase][data-size\x3dmd]{--_x-slider-track-h:6px;--_x-slider-thumb-sz:18px;}[part\x3dbase][data-size\x3dlg]{--_x-slider-track-h:8px;--_x-slider-thumb-sz:22px;}[part\x3dheader]{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px;}[part\x3dlabel-text]{font-size:0.875rem;color:var(--x-slider-label-color);font-weight:500;}[part\x3dvalue-text]{font-size:0.8125rem;color:var(--x-slider-value-color);}[part\x3dinput]{-webkit-appearance:none;appearance:none;display:block;width:100%;height:var(--_x-slider-thumb-sz,18px);cursor:pointer;margin:0;padding:0;background:transparent;outline:none;box-sizing:border-box;}[part\x3dinput]::-webkit-slider-runnable-track{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:linear-gradient(to right,var(--x-slider-fill-color) var(--_x-slider-fill,0%),var(--x-slider-track-color) var(--_x-slider-fill,0%));}[part\x3dinput]::-moz-range-track{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:var(--x-slider-track-color);border:none;}[part\x3dinput]::-moz-range-progress{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:var(--x-slider-fill-color);}[part\x3dinput]::-webkit-slider-thumb{-webkit-appearance:none;width:var(--_x-slider-thumb-sz,18px);height:var(--_x-slider-thumb-sz,18px);border-radius:50%;background:var(--x-slider-thumb-color);border:var(--x-slider-thumb-border);box-shadow:var(--x-slider-thumb-shadow);margin-top:calc(var(--_x-slider-track-h,6px)/2 - var(--_x-slider-thumb-sz,18px)/2);cursor:pointer;transition:box-shadow 100ms ease;}[part\x3dinput]::-moz-range-thumb{width:var(--_x-slider-thumb-sz,18px);height:var(--_x-slider-thumb-sz,18px);border-radius:50%;background:var(--x-slider-thumb-color);border:var(--x-slider-thumb-border);box-shadow:var(--x-slider-thumb-shadow);cursor:pointer;transition:box-shadow 100ms ease;}[part\x3dinput]:focus-visible::-webkit-slider-thumb{box-shadow:var(--x-slider-thumb-shadow),0 0 0 3px var(--x-slider-focus-ring);}[part\x3dinput]:focus-visible::-moz-range-thumb{box-shadow:var(--x-slider-thumb-shadow),0 0 0 3px var(--x-slider-focus-ring);}:host([data-disabled]) [part\x3dinput]{opacity:var(--x-slider-disabled-opacity);cursor:default;pointer-events:none;}:host([data-readonly]) [part\x3dinput]{pointer-events:none;}@media (prefers-reduced-motion:reduce){[part\x3dinput]::-webkit-slider-thumb{transition:none;}[part\x3dinput]::-moz-range-thumb{transition:none;}}@media (pointer:coarse){[part\x3dbase]{--_x-slider-thumb-sz:28px;}}";
13
- e.setAttribute("part","base");g.setAttribute("part","header");h.setAttribute("part","label-text");k.setAttribute("part","value-text");m.setAttribute("part","input");m.setAttribute("type","range");g.appendChild(h);g.appendChild(k);e.appendChild(g);e.appendChild(m);c.appendChild(d);c.appendChild(e);this.__xSliderRefs={base:e,header:g,label:h,value:k,input:m};$APP.r(this.attachInternals)&&(this.__xSliderInternals=this.attachInternals())}KE(this);c=$APP.l(this,"__xSliderRefs");$APP.r(c)&&(c=$APP.l(c,
14
- "input"),d=GE(this),e=HE(this),g=JE(this),h={input:d,change:e,keydown:g},c.addEventListener("input",d),c.addEventListener("change",e),c.addEventListener("keydown",g),this.__xSliderHandlers=h);return EE(this)};b.disconnectedCallback=function(){return KE(this)};b.attributeChangedCallback=function(){return EE(this)};b.formDisabledCallback=function(c){zE(this,"disabled",$APP.I(c));return EE(this)};b.formResetCallback=function(){yE(this,"value",""+$APP.S.g(0));return EE(this)};return a},PE=function(){return $APP.r(customElements.get("x-slider"))?
15
- null:customElements.define("x-slider",OE())},CE=new $APP.K(null,"show-value?","show-value?",-1960833108),DE=new $APP.K(null,"fill-percent","fill-percent",-1813848228),AE=new $APP.K(null,"step","step",1288888124);var BE=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),NE="value min max step disabled readonly name label show-value size aria-label aria-labelledby aria-describedby".split(" ");
16
- $APP.Q([$APP.vj,$APP.gj,$APP.th,$APP.Si,$APP.ri,$APP.rh,$APP.nl,$APP.ak,$APP.T,AE],[new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"min"],null),new $APP.P(null,2,[$APP.Z,$APP.qj,$APP.Pj,"disabled"],null),new $APP.P(null,2,[$APP.Z,$APP.qj,$APP.Pj,"show-value"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"name"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"value"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"size"],null),new $APP.P(null,2,[$APP.Z,$APP.qj,$APP.Pj,"readonly"],null),new $APP.P(null,
17
- 2,[$APP.Z,$APP.X,$APP.Pj,"max"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"label"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"step"],null)]);$APP.Sd(["x-slider-input",new $APP.P(null,1,[$APP.U,new $APP.P(null,3,[$APP.ri,$APP.V,$APP.vj,$APP.V,$APP.ak,$APP.V],null)],null),"x-slider-change",new $APP.P(null,1,[$APP.U,new $APP.P(null,3,[$APP.ri,$APP.V,$APP.vj,$APP.V,$APP.ak,$APP.V],null)],null)]);var IE=new $APP.R(null,new $APP.P(null,8,["PageDown",null,"ArrowUp",null,"ArrowDown",null,"End",null,"ArrowRight",null,"ArrowLeft",null,"PageUp",null,"Home",null],null),null);$APP.ka("baredom.exports.x_slider.init",PE);export const init=PE;
2
+ var EG=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},FG=function(a,b,c){return a.setAttribute(b,c)},GG=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},LG=function(a){var b=$APP.k(a,"__xSliderRefs");if($APP.n(b)){var c=$APP.k(b,"base"),d=$APP.k(b,"header"),e=$APP.k(b,"label"),g=$APP.k(b,"value");b=$APP.k(b,"input");var h=$APP.xf([$APP.Hj,$APP.mj,$APP.Kj,$APP.Yi,$APP.zi,$APP.Zi,$APP.Dj,$APP.th,$APP.ok,$APP.U,$APP.hm,$APP.cl,HG],[a.getAttribute("min"),
3
+ a.hasAttribute("disabled"),a.hasAttribute("show-value"),a.getAttribute("name"),a.getAttribute("value"),a.hasAttribute("readonly"),a.getAttribute("aria-labelledby"),a.getAttribute("size"),a.getAttribute("max"),a.getAttribute("label"),a.getAttribute("aria-describedby"),a.getAttribute("aria-label"),a.getAttribute("step")]);var l=$APP.M(h);h=$APP.D(l,$APP.cl);var m=$APP.D(l,HG),p=$APP.D(l,$APP.Hj),q=$APP.D(l,$APP.mj),v=$APP.D(l,$APP.Kj),x=$APP.D(l,$APP.zi),y=$APP.D(l,$APP.Yi),A=$APP.D(l,$APP.Zi),B=$APP.D(l,
4
+ $APP.Dj),E=$APP.D(l,$APP.th),H=$APP.D(l,$APP.U),G=$APP.D(l,$APP.ok);l=$APP.D(l,$APP.hm);p=EG(p,0);G=EG(G,100);x=$APP.ah.i($APP.$g.i(EG(x,0),p),G);$APP.C.i(m,"any")?m="any":(m=typeof m==="string"?parseFloat(m):NaN,m=$APP.r(isNaN(m))&&m>0?""+$APP.T.g(m):"1");E=typeof E==="string"&&$APP.J(IG,E)?E:"md";q=$APP.F(q);A=$APP.F(A);v=$APP.F(v);var I=G>p?$APP.ah.i($APP.$g.i((x-p)/(G-p)*100,0),100):0;h=$APP.xf([$APP.Hj,$APP.lm,$APP.Yi,$APP.zi,$APP.Dj,JG,$APP.th,$APP.ok,$APP.U,$APP.hm,$APP.cl,$APP.W,HG,KG],[p,
5
+ A,typeof y==="string"&&$APP.N("",y)?y:null,x,typeof B==="string"&&$APP.N("",B)?B:null,v,E,G,typeof H==="string"&&$APP.N("",H)?H:null,typeof l==="string"&&$APP.N("",l)?l:null,typeof h==="string"&&$APP.N("",h)?h:null,q,m,I]);m=$APP.M(h);y=$APP.D(m,$APP.cl);B=$APP.D(m,$APP.W);H=$APP.D(m,HG);l=$APP.D(m,KG);v=$APP.D(m,$APP.Hj);p=$APP.D(m,$APP.lm);h=$APP.D(m,$APP.zi);A=$APP.D(m,$APP.Dj);G=$APP.D(m,JG);q=$APP.D(m,$APP.th);x=$APP.D(m,$APP.U);E=$APP.D(m,$APP.ok);m=$APP.D(m,$APP.hm);I=(I=x!=null)?I:G;c.setAttribute("data-size",
6
+ q);GG(a,"data-disabled",B);GG(a,"data-readonly",p);d.style.display=$APP.n(I)?"flex":"none";e.textContent=$APP.n(x)?x:"";e.style.display=x!=null?"":"none";g.textContent=$APP.n(G)?""+$APP.T.g(h):"";g.style.display=$APP.n(G)?"":"none";a.style.setProperty("--_x-slider-fill",""+$APP.T.g(l.toFixed(2))+"%");FG(b,"min",""+$APP.T.g(v));FG(b,"max",""+$APP.T.g(E));b.setAttribute("step",H);$APP.N(b.value,""+$APP.T.g(h))&&(b.value=""+$APP.T.g(h));FG(b,"aria-valuemin",""+$APP.T.g(v));FG(b,"aria-valuemax",""+$APP.T.g(E));
7
+ FG(b,"aria-valuenow",""+$APP.T.g(h));b.setAttribute("aria-readonly",$APP.n(p)?"true":"false");$APP.n(y)?b.setAttribute("aria-label",y):x!=null?b.setAttribute("aria-label",x):b.removeAttribute("aria-label");$APP.n(A)?b.setAttribute("aria-labelledby",A):b.removeAttribute("aria-labelledby");$APP.n(m)?b.setAttribute("aria-describedby",m):b.removeAttribute("aria-describedby");$APP.n(B)?b.setAttribute("disabled",""):b.removeAttribute("disabled");a=$APP.k(a,"__xSliderInternals");return $APP.n(a)?a.setFormValue(""+
8
+ $APP.T.g(h)):null}return null},MG=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},NG=function(a){return function(){if($APP.n(a.hasAttribute("disabled")))return null;var b=$APP.k($APP.k(a,"__xSliderRefs"),"input").value,c=parseFloat(b),d=parseFloat(function(){var g=a.getAttribute("min");return $APP.n(g)?g:"0"}()),e=parseFloat(function(){var g=a.getAttribute("max");return $APP.n(g)?g:"100"}());a.setAttribute("value",b);return MG(a,"x-slider-input",
9
+ {value:c,min:d,max:e})}},OG=function(a){return function(){if($APP.n(a.hasAttribute("disabled")))return null;var b=parseFloat($APP.k($APP.k(a,"__xSliderRefs"),"input").value),c=parseFloat(function(){var e=a.getAttribute("min");return $APP.n(e)?e:"0"}()),d=parseFloat(function(){var e=a.getAttribute("max");return $APP.n(e)?e:"100"}());return MG(a,"x-slider-change",{value:b,min:c,max:d})}},QG=function(a){return function(b){var c=a.hasAttribute("readonly");c=$APP.n(c)?$APP.J(PG,b.key):c;return $APP.n(c)?
10
+ b.preventDefault():null}},RG=function(a){var b=$APP.k(a,"__xSliderRefs");if($APP.n(b)){var c=$APP.k(a,"__xSliderHandlers");if($APP.n(c)){b=$APP.k(b,"input");b.removeEventListener("input",$APP.k(c,"input"));b.removeEventListener("change",$APP.k(c,"change"));b.removeEventListener("keydown",$APP.k(c,"keydown"));a.__xSliderHandlers=null;return}}return null},SG=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return GG(this,
11
+ c,$APP.F(d))}})},TG=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.N(d)?FG(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},VG=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return UG}});SG(b,"disabled","disabled");SG(b,"readOnly","readonly");SG(b,"showValue","show-value");TG(b,
12
+ "value","value");TG(b,"min","min");TG(b,"max","max");TG(b,"step","step");TG(b,"name","name");TG(b,"label","label");TG(b,"size","size");b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xSliderRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("span"),l=document.createElement("span"),m=document.createElement("input");d.textContent=":host{display:block;color-scheme:light dark;--x-slider-track-color:rgba(0,0,0,0.15);--x-slider-fill-color:var(--x-color-primary,#3b82f6);--x-slider-thumb-color:var(--x-color-surface,#ffffff);--x-slider-thumb-border:2px solid var(--x-color-primary,#3b82f6);--x-slider-thumb-shadow:0 1px 4px rgba(0,0,0,0.20);--x-slider-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-slider-disabled-opacity:0.45;--x-slider-label-color:rgba(0,0,0,0.60);--x-slider-value-color:rgba(0,0,0,0.50);--x-slider-radius:var(--x-radius-full,9999px);}@media (prefers-color-scheme:dark){:host{--x-slider-track-color:rgba(255,255,255,0.15);--x-slider-fill-color:var(--x-color-primary,#3b82f6);--x-slider-thumb-color:var(--x-color-surface,#ffffff);--x-slider-thumb-border:2px solid var(--x-color-primary,#3b82f6);--x-slider-focus-ring:var(--x-color-focus-ring,#93c5fd);--x-slider-label-color:rgba(255,255,255,0.60);--x-slider-value-color:rgba(255,255,255,0.50);}}[part\x3dbase]{width:100%;box-sizing:border-box;}[part\x3dbase][data-size\x3dsm]{--_x-slider-track-h:4px;--_x-slider-thumb-sz:14px;}[part\x3dbase][data-size\x3dmd]{--_x-slider-track-h:6px;--_x-slider-thumb-sz:18px;}[part\x3dbase][data-size\x3dlg]{--_x-slider-track-h:8px;--_x-slider-thumb-sz:22px;}[part\x3dheader]{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px;}[part\x3dlabel-text]{font-size:0.875rem;color:var(--x-slider-label-color);font-weight:500;}[part\x3dvalue-text]{font-size:0.8125rem;color:var(--x-slider-value-color);}[part\x3dinput]{-webkit-appearance:none;appearance:none;display:block;width:100%;height:var(--_x-slider-thumb-sz,18px);cursor:pointer;margin:0;padding:0;background:transparent;outline:none;box-sizing:border-box;}[part\x3dinput]::-webkit-slider-runnable-track{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:linear-gradient(to right,var(--x-slider-fill-color) var(--_x-slider-fill,0%),var(--x-slider-track-color) var(--_x-slider-fill,0%));}[part\x3dinput]::-moz-range-track{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:var(--x-slider-track-color);border:none;}[part\x3dinput]::-moz-range-progress{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:var(--x-slider-fill-color);}[part\x3dinput]::-webkit-slider-thumb{-webkit-appearance:none;width:var(--_x-slider-thumb-sz,18px);height:var(--_x-slider-thumb-sz,18px);border-radius:50%;background:var(--x-slider-thumb-color);border:var(--x-slider-thumb-border);box-shadow:var(--x-slider-thumb-shadow);margin-top:calc(var(--_x-slider-track-h,6px)/2 - var(--_x-slider-thumb-sz,18px)/2);cursor:pointer;transition:box-shadow 100ms ease;}[part\x3dinput]::-moz-range-thumb{width:var(--_x-slider-thumb-sz,18px);height:var(--_x-slider-thumb-sz,18px);border-radius:50%;background:var(--x-slider-thumb-color);border:var(--x-slider-thumb-border);box-shadow:var(--x-slider-thumb-shadow);cursor:pointer;transition:box-shadow 100ms ease;}[part\x3dinput]:focus-visible::-webkit-slider-thumb{box-shadow:var(--x-slider-thumb-shadow),0 0 0 3px var(--x-slider-focus-ring);}[part\x3dinput]:focus-visible::-moz-range-thumb{box-shadow:var(--x-slider-thumb-shadow),0 0 0 3px var(--x-slider-focus-ring);}:host([data-disabled]) [part\x3dinput]{opacity:var(--x-slider-disabled-opacity);cursor:default;pointer-events:none;}:host([data-readonly]) [part\x3dinput]{pointer-events:none;}@media (prefers-reduced-motion:reduce){[part\x3dinput]::-webkit-slider-thumb{transition:none;}[part\x3dinput]::-moz-range-thumb{transition:none;}}@media (pointer:coarse){[part\x3dbase]{--_x-slider-thumb-sz:28px;}}";
13
+ e.setAttribute("part","base");g.setAttribute("part","header");h.setAttribute("part","label-text");l.setAttribute("part","value-text");m.setAttribute("part","input");m.setAttribute("type","range");g.appendChild(h);g.appendChild(l);e.appendChild(g);e.appendChild(m);c.appendChild(d);c.appendChild(e);this.__xSliderRefs={base:e,header:g,label:h,value:l,input:m};$APP.n(this.attachInternals)&&(this.__xSliderInternals=this.attachInternals())}RG(this);c=$APP.k(this,"__xSliderRefs");$APP.n(c)&&(c=$APP.k(c,
14
+ "input"),d=NG(this),e=OG(this),g=QG(this),h={input:d,change:e,keydown:g},c.addEventListener("input",d),c.addEventListener("change",e),c.addEventListener("keydown",g),this.__xSliderHandlers=h);return LG(this)};b.disconnectedCallback=function(){return RG(this)};b.attributeChangedCallback=function(){return LG(this)};b.formDisabledCallback=function(c){GG(this,"disabled",$APP.F(c));return LG(this)};b.formResetCallback=function(){FG(this,"value",""+$APP.T.g(0));return LG(this)};return a},WG=function(){return $APP.n(customElements.get("x-slider"))?
15
+ null:customElements.define("x-slider",VG())},JG=new $APP.K(null,"show-value?","show-value?",-1960833108),KG=new $APP.K(null,"fill-percent","fill-percent",-1813848228),HG=new $APP.K(null,"step","step",1288888124);var IG=new $APP.S(null,new $APP.R(null,3,["md",null,"lg",null,"sm",null],null),null),UG="value min max step disabled readonly name label show-value size aria-label aria-labelledby aria-describedby".split(" ");
16
+ $APP.xf([$APP.Hj,$APP.mj,$APP.vh,$APP.Yi,$APP.zi,$APP.th,$APP.yl,$APP.ok,$APP.U,HG],[new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"min"],null),new $APP.R(null,2,[$APP.Z,$APP.Bj,$APP.dk,"disabled"],null),new $APP.R(null,2,[$APP.Z,$APP.Bj,$APP.dk,"show-value"],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.X,$APP.dk,"size"],null),new $APP.R(null,2,[$APP.Z,$APP.Bj,$APP.dk,"readonly"],null),new $APP.R(null,
17
+ 2,[$APP.Z,$APP.X,$APP.dk,"max"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"label"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"step"],null)]);$APP.Pd(["x-slider-input",new $APP.R(null,1,[$APP.yj,new $APP.R(null,3,[$APP.zi,$APP.V,$APP.Hj,$APP.V,$APP.ok,$APP.V],null)],null),"x-slider-change",new $APP.R(null,1,[$APP.yj,new $APP.R(null,3,[$APP.zi,$APP.V,$APP.Hj,$APP.V,$APP.ok,$APP.V],null)],null)]);var PG=new $APP.S(null,new $APP.R(null,8,["PageDown",null,"ArrowUp",null,"ArrowDown",null,"End",null,"ArrowRight",null,"ArrowLeft",null,"PageUp",null,"Home",null],null),null);$APP.fa("baredom.exports.x_slider.init",WG);export const init=WG;
@@ -1,23 +1,23 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var aE=function(a,b,c,d){if(typeof a==="string"){a=a.trim();if($APP.D.i(a,""))return b;a=parseFloat(a);return $APP.r(isNaN(a))?b:Math.min(d,Math.max(c,a))}return b},bE=function(a,b,c,d,e,g){b=c+(e*(b-a)-g*c)*d;return[a+b*d,b]},cE=function(a,b,c,d,e,g,h){a=c-a;b=d-b;d=Math.sqrt(a*a+b*b);if(d<=.001||d>=e)return[0,0];e=1-d/e;g*=e*e*($APP.r(h)?50:20);return[a/d*g,b/d*g]},dE=function(){return $APP.I(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},eE=function(a,b){for(var c=0;;){if(c>=20)return!0;
3
- if(Math.abs(a[c])>.1||Math.abs(b[c])>.1)return!1;c+=1}},gE=function(a){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElementNS("http://www.w3.org/2000/svg","svg"),e=document.createElementNS("http://www.w3.org/2000/svg","path"),g=document.createElement("div"),h=document.createElement("slot");c.textContent=fE;d.setAttribute("part","svg");d.setAttribute("viewBox","0 0 300 200");d.setAttribute("preserveAspectRatio","none");d.setAttribute("aria-hidden","true");
4
- e.setAttribute("part","shape");g.setAttribute("part","content");d.appendChild(e);g.appendChild(h);b.appendChild(c);b.appendChild(d);b.appendChild(g);a.__xSoftBodyRefs=new $APP.P(null,4,[$APP.bi,b,$APP.xj,d,$APP.bk,e,$APP.Vh,g],null)},jE=function(a){a=new $APP.P(null,6,[$APP.kl,a.getAttribute("stiffness"),$APP.Nl,a.getAttribute("damping"),$APP.$i,a.getAttribute("radius"),$APP.Nj,a.getAttribute("intensity"),hE,a.getAttribute("grab-radius"),$APP.Ai,a.getAttribute("disabled")],null);var b=$APP.N(a);a=
5
- $APP.G(b,$APP.kl);var c=$APP.G(b,$APP.Nl),d=$APP.G(b,$APP.$i),e=$APP.G(b,$APP.Nj),g=$APP.G(b,hE);b=$APP.G(b,$APP.Ai);return new $APP.P(null,6,[$APP.Wk,aE(a,180,10,1E3),$APP.Wj,aE(c,12,1,100),$APP.Jl,aE(d,16,6,200),$APP.Gj,aE(e,1,0,5),iE,aE(g,80,10,500),$APP.W,b!=null],null)},kE=function(a,b,c){var d=$APP.Jl.g($APP.l(a,"__xSoftBodyModel"));d=Math.max(6,Math.min(d,Math.min(b,c)/2));var e=Math.cos(Math.PI/6),g=Math.sin(Math.PI/6),h=Math.cos(Math.PI/3),k=Math.sin(Math.PI/3),m=new Float64Array(20),p=new Float64Array(20);
6
- m[0]=d;p[0]=0;m[1]=b*.5;p[1]=0;m[2]=b-d;p[2]=0;m[3]=b-d+d*g;p[3]=d-d*e;m[4]=b-d+d*k;p[4]=d-d*h;m[5]=b;p[5]=d;m[6]=b;p[6]=c*.5;m[7]=b;p[7]=c-d;m[8]=b-d+d*e;p[8]=c-d+d*g;m[9]=b-d+d*h;p[9]=c-d+d*k;m[10]=b-d;p[10]=c;m[11]=b*.5;p[11]=c;m[12]=d;p[12]=c;m[13]=d-d*g;p[13]=c-d+d*e;m[14]=d-d*k;p[14]=c-d+d*h;m[15]=0;p[15]=c-d;m[16]=0;p[16]=c*.5;m[17]=0;p[17]=d;m[18]=d-d*e;p[18]=d-d*g;m[19]=d-d*h;p[19]=d-d*k;c=[m,p];b=c[0];c=c[1];d=new Float64Array(20);e=new Float64Array(20);g=new Float64Array(20);h=new Float64Array(20);
7
- for(k=0;;)if(k<20)d[k]=b[k],e[k]=c[k],g[k]=0,h[k]=0,k+=1;else break;a.__xSoftBodyRX=b;a.__xSoftBodyRY=c;a.__xSoftBodyCX=d;a.__xSoftBodyCY=e;a.__xSoftBodyVX=g;a.__xSoftBodyVY=h},lE=function(a){var b=$APP.N($APP.l(a,"__xSoftBodyRefs"));b=$APP.G(b,$APP.bk);var c=$APP.l(a,"__xSoftBodyCX");a=$APP.l(a,"__xSoftBodyCY");var d=[];d.push("M"+$APP.S.g(c[0].toFixed(2))+","+$APP.S.g(a[0].toFixed(2)));for(var e=0;;)if(e<20){var g=$APP.hd(e+19,20),h=e,k=$APP.hd(e+1,20),m=$APP.hd(e+2,20),p=(c[k]-c[g])/6,q=(a[k]-
8
- a[g])/6;g=(c[m]-c[h])/6;m=(a[m]-a[h])/6;var w=c[k]-c[h],x=a[k]-a[h];x=Math.sqrt(w*w+x*x)*.4;w=Math.sqrt(p*p+q*q);w=w>x?x/(w+.001):1;q=a[h]+q*w;var y=Math.sqrt(g*g+m*m);x=y>x?x/(y+.001):1;g=c[k]-g*x;m=a[k]-m*x;d.push("C"+$APP.S.g((c[h]+p*w).toFixed(2))+","+$APP.S.g(q.toFixed(2))+" "+$APP.S.g(g.toFixed(2))+","+$APP.S.g(m.toFixed(2))+" "+$APP.S.g(c[k].toFixed(2))+","+$APP.S.g(a[k].toFixed(2)));e+=1}else break;d.push("Z");b.setAttribute("d",d.join(""))},mE=function(a){var b=$APP.N($APP.l(a,"__xSoftBodyRefs"));
9
- b=$APP.G(b,$APP.bk);var c=$APP.l(a,"__xSoftBodyW"),d=$APP.l(a,"__xSoftBodyH");a=$APP.Jl.g($APP.l(a,"__xSoftBodyModel"));a=Math.max(6,Math.min(a,Math.min(c,d)/2));var e=.5522847498*a;c="M"+$APP.S.g(a.toFixed(2))+",0L"+$APP.S.g((c-a).toFixed(2))+",0C"+$APP.S.g((c-a+e).toFixed(2))+",0 "+$APP.S.g(c.toFixed(2))+","+$APP.S.g((a-e).toFixed(2))+" "+$APP.S.g(c.toFixed(2))+","+$APP.S.g(a.toFixed(2))+"L"+$APP.S.g(c.toFixed(2))+","+$APP.S.g((d-a).toFixed(2))+"C"+$APP.S.g(c.toFixed(2))+","+$APP.S.g((d-a+e).toFixed(2))+
10
- " "+$APP.S.g((c-a+e).toFixed(2))+","+$APP.S.g(d.toFixed(2))+" "+$APP.S.g((c-a).toFixed(2))+","+$APP.S.g(d.toFixed(2))+"L"+$APP.S.g(a.toFixed(2))+","+$APP.S.g(d.toFixed(2))+"C"+$APP.S.g((a-e).toFixed(2))+","+$APP.S.g(d.toFixed(2))+" 0,"+$APP.S.g((d-a+e).toFixed(2))+" 0,"+$APP.S.g((d-a).toFixed(2))+"L0,"+$APP.S.g(a.toFixed(2))+"C0,"+$APP.S.g((a-e).toFixed(2))+" "+$APP.S.g((a-e).toFixed(2))+",0 "+$APP.S.g(a.toFixed(2))+",0Z";b.setAttribute("d",c)},oE=function(a){$APP.r($APP.l(a,"__xSoftBodyRaf"))||($APP.n(a,
11
- "__xSoftBodyLF",performance.now()),$APP.n(a,"__xSoftBodyRaf",requestAnimationFrame(function(){return nE(a)})))},pE=function(a){var b=$APP.l(a,"__xSoftBodyRaf");$APP.r(b)&&(cancelAnimationFrame(b),a.__xSoftBodyRaf=null)},qE=function(a,b){var c=$APP.N($APP.l(a,"__xSoftBodyRefs"));c=$APP.G(c,$APP.xj).getBoundingClientRect();a.__xSoftBodyPX=b.clientX-c.left;a.__xSoftBodyPY=b.clientY-c.top;return null},rE=function(a){function b(){a.__xSoftBodyGrab=!1;a.dispatchEvent(new CustomEvent("x-soft-body-release",
12
- {bubbles:!0,composed:!0,detail:{}}));return null}function c(h){a.__xSoftBodyGrab=!0;qE(a,h);a.dispatchEvent(new CustomEvent("x-soft-body-grab",{bubbles:!0,composed:!0,detail:{}}));return null}function d(){a.__xSoftBodyPA=!1;a.__xSoftBodyGrab=!1;return null}function e(){a.__xSoftBodyPA=!0;var h=$APP.W.g($APP.l(a,"__xSoftBodyModel"));h=$APP.r(h)?h:dE();$APP.r(h)||oE(a);return null}function g(h){return qE(a,h)}$APP.n(a,"__xSoftBodyHdl",{move:g,enter:e,leave:d,down:c,up:b});a.addEventListener("pointermove",
13
- g,{passive:!0});a.addEventListener("pointerenter",e);a.addEventListener("pointerleave",d);a.addEventListener("pointerdown",c);a.addEventListener("pointerup",b)},sE=function(a){var b=$APP.l(a,"__xSoftBodyHdl");$APP.r(b)&&(a.removeEventListener("pointermove",$APP.l(b,"move")),a.removeEventListener("pointerenter",$APP.l(b,"enter")),a.removeEventListener("pointerleave",$APP.l(b,"leave")),a.removeEventListener("pointerdown",$APP.l(b,"down")),a.removeEventListener("pointerup",$APP.l(b,"up")),a.__xSoftBodyHdl=
14
- null)},tE=function(a){Object.defineProperty(a,"stiffness",{get:function(){var b=this.getAttribute("stiffness");return aE(b,180,10,1E3)},set:function(b){return b==null?this.removeAttribute("stiffness"):this.setAttribute("stiffness",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"damping",{get:function(){var b=this.getAttribute("damping");return aE(b,12,1,100)},set:function(b){return b==null?this.removeAttribute("damping"):this.setAttribute("damping",""+$APP.S.g(b))},enumerable:!0,
15
- configurable:!0});Object.defineProperty(a,"radius",{get:function(){var b=this.getAttribute("radius");return aE(b,16,6,200)},set:function(b){return b==null?this.removeAttribute("radius"):this.setAttribute("radius",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"intensity",{get:function(){var b=this.getAttribute("intensity");return aE(b,1,0,5)},set:function(b){return b==null?this.removeAttribute("intensity"):this.setAttribute("intensity",""+$APP.S.g(b))},enumerable:!0,configurable:!0});
16
- Object.defineProperty(a,"grabRadius",{get:function(){var b=this.getAttribute("grab-radius");return aE(b,80,10,500)},set:function(b){return b==null?this.removeAttribute("grab-radius"):this.setAttribute("grab-radius",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.r(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},vE=function(){var a=
17
- class extends HTMLElement{};a.observedAttributes=uE;a.prototype.connectedCallback=function(){var b=this,c=jE(b);b.__xSoftBodyModel=c;$APP.r($APP.l(b,"__xSoftBodyRefs"))||gE(b);b.__xSoftBodyPA=!1;b.__xSoftBodyGrab=!1;b.__xSoftBodyPX=0;b.__xSoftBodyPY=0;c=new ResizeObserver(function(d){if(d.length>0){var e=d[0].contentRect;d=e.width;e=e.height;if(d>0&&e>0){b.__xSoftBodyW=d;b.__xSoftBodyH=e;var g=$APP.N($APP.l(b,"__xSoftBodyRefs"));$APP.G(g,$APP.xj).setAttribute("viewBox","0 0 "+$APP.S.g(d)+" "+$APP.S.g(e));
18
- kE(b,d,e);d=$APP.W.g($APP.l(b,"__xSoftBodyModel"));d=$APP.r(d)?d:dE();$APP.r(d)?mE(b):(lE(b),oE(b))}}return null});b.__xSoftBodyRO=c;c.observe(b);sE(b);rE(b);return null};a.prototype.disconnectedCallback=function(){pE(this);sE(this);var b=$APP.l(this,"__xSoftBodyRO");$APP.r(b)&&(b.disconnect(),this.__xSoftBodyRO=null);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&$APP.r($APP.l(this,"__xSoftBodyRefs"))&&(this.__xSoftBodyModel=b=jE(this),c=$APP.l(this,"__xSoftBodyW"),
19
- d=$APP.l(this,"__xSoftBodyH"),$APP.r($APP.r(c)?$APP.r(d)?c>0&&d>0:d:c)&&(kE(this,c,d),b=$APP.W.g(b),b=$APP.r(b)?b:dE(),$APP.r(b)?(pE(this),mE(this)):(lE(this),oE(this))));return null};tE(a.prototype);return a},wE=function(){$APP.r(customElements.get("x-soft-body"))||customElements.define("x-soft-body",vE());return null},iE=new $APP.K(null,"grab-radius","grab-radius",771838535),hE=new $APP.K(null,"grab-radius-raw","grab-radius-raw",-1019405976);var uE="stiffness damping radius intensity grab-radius disabled".split(" ");$APP.Sd(["x-soft-body-grab",new $APP.P(null,2,[$APP.U,$APP.Td,$APP.ll,!1],null),"x-soft-body-release",new $APP.P(null,2,[$APP.U,$APP.Td,$APP.ll,!1],null)]);var fE=":host{display:block;position:relative;background:none;overflow:visible;"+$APP.S.g("--x-soft-body-bg")+":var(--x-color-surface,#ffffff);"+$APP.S.g("--x-soft-body-border")+":var(--x-color-border,#e2e8f0);"+$APP.S.g("--x-soft-body-border-width")+":1.5;"+$APP.S.g("--x-soft-body-shadow")+":var(--x-shadow-sm,0 1px 3px rgba(0,0,0,0.1));"+$APP.S.g("--x-soft-body-padding")+":1rem;}[part\x3dsvg]{display:block;width:100%;height:100%;position:absolute;inset:0;overflow:visible;pointer-events:none;}[part\x3dshape]{fill:var("+
20
- $APP.S.g("--x-soft-body-bg")+",#ffffff);stroke:var("+$APP.S.g("--x-soft-body-border")+",#e2e8f0);stroke-width:var("+$APP.S.g("--x-soft-body-border-width")+",1.5);filter:drop-shadow(var("+$APP.S.g("--x-soft-body-shadow")+",0 1px 3px rgba(0,0,0,0.1)));}[part\x3dcontent]{position:relative;background:none;padding:var("+$APP.S.g("--x-soft-body-padding")+",1rem);z-index:1;}@media(prefers-color-scheme:dark){:host{"+$APP.S.g("--x-soft-body-bg")+":var(--x-color-surface,#1e293b);"+$APP.S.g("--x-soft-body-border")+
21
- ":var(--x-color-border,#475569);"+$APP.S.g("--x-soft-body-shadow")+":var(--x-shadow-sm,0 1px 3px rgba(0,0,0,0.3));}}@media(prefers-reduced-motion:reduce){[part\x3dshape]{transition:none!important;}}",nE=function nE(a){if($APP.r(a.isConnected)){var c=$APP.l(a,"__xSoftBodyModel"),d=performance.now(),e=Math.min(d-$APP.l(a,"__xSoftBodyLF"),100)/1E3,g=$APP.Wk.g(c),h=$APP.Wj.g(c),k=$APP.Gj.g(c),m=iE.g(c);c=$APP.l(a,"__xSoftBodyRX");var p=$APP.l(a,"__xSoftBodyRY"),q=$APP.l(a,"__xSoftBodyCX"),w=$APP.l(a,
22
- "__xSoftBodyCY"),x=$APP.l(a,"__xSoftBodyVX"),y=$APP.l(a,"__xSoftBodyVY"),A=$APP.l(a,"__xSoftBodyPA"),B=$APP.l(a,"__xSoftBodyPX"),E=$APP.l(a,"__xSoftBodyPY"),H=$APP.l(a,"__xSoftBodyGrab");a.__xSoftBodyLF=d;for(d=0;;)if(d<20){var F=c[d],M=p[d],Y=$APP.r(A)?cE(F,M,B,E,m,k,H):[0,0];F=bE(q[d],F+Y[0],x[d],e,g,h);M=bE(w[d],M+Y[1],y[d],e,g,h);q[d]=F[0];x[d]=F[1];w[d]=M[0];y[d]=M[1];d+=1}else break;lE(a);if($APP.r($APP.r(A)?A:!eE(x,y)))$APP.n(a,"__xSoftBodyRaf",requestAnimationFrame(function(){return nE.g?
23
- nE.g(a):nE.call(null,a)}));else{for(e=0;;)if(e<20)q[e]=c[e],w[e]=p[e],e+=1;else break;lE(a);a.__xSoftBodyRaf=null}}return null};$APP.ka("baredom.exports.x_soft_body.init",wE);export const init=wE;
2
+ var hG=function(a,b,c,d){if(typeof a==="string"){a=a.trim();if($APP.C.i(a,""))return b;a=parseFloat(a);return $APP.n(isNaN(a))?b:Math.min(d,Math.max(c,a))}return b},iG=function(a,b,c,d,e,g){b=c+(e*(b-a)-g*c)*d;return[a+b*d,b]},jG=function(a,b,c,d,e,g,h){a=c-a;b=d-b;d=Math.sqrt(a*a+b*b);if(d<=.001||d>=e)return[0,0];e=1-d/e;g*=e*e*($APP.n(h)?50:20);return[a/d*g,b/d*g]},kG=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},lG=function(a,b){for(var c=0;;){if(c>=20)return!0;
3
+ if(Math.abs(a[c])>.1||Math.abs(b[c])>.1)return!1;c+=1}},nG=function(a){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElementNS("http://www.w3.org/2000/svg","svg"),e=document.createElementNS("http://www.w3.org/2000/svg","path"),g=document.createElement("div"),h=document.createElement("slot");c.textContent=mG;d.setAttribute("part","svg");d.setAttribute("viewBox","0 0 300 200");d.setAttribute("preserveAspectRatio","none");d.setAttribute("aria-hidden","true");
4
+ e.setAttribute("part","shape");g.setAttribute("part","content");d.appendChild(e);g.appendChild(h);b.appendChild(c);b.appendChild(d);b.appendChild(g);a.__xSoftBodyRefs=new $APP.R(null,4,[$APP.ji,b,$APP.Jj,d,$APP.qk,e,$APP.ci,g],null)},qG=function(a){a=new $APP.R(null,6,[$APP.vl,a.getAttribute("stiffness"),$APP.fm,a.getAttribute("damping"),$APP.fj,a.getAttribute("radius"),$APP.bk,a.getAttribute("intensity"),oG,a.getAttribute("grab-radius"),$APP.Gi,a.getAttribute("disabled")],null);var b=$APP.M(a);a=
5
+ $APP.D(b,$APP.vl);var c=$APP.D(b,$APP.fm),d=$APP.D(b,$APP.fj),e=$APP.D(b,$APP.bk),g=$APP.D(b,oG);b=$APP.D(b,$APP.Gi);return new $APP.R(null,6,[$APP.fl,hG(a,180,10,1E3),$APP.kk,hG(c,12,1,100),$APP.am,hG(d,16,6,200),$APP.Tj,hG(e,1,0,5),pG,hG(g,80,10,500),$APP.W,b!=null],null)},rG=function(a,b,c){var d=$APP.am.g($APP.k(a,"__xSoftBodyModel"));d=Math.max(6,Math.min(d,Math.min(b,c)/2));var e=Math.cos(Math.PI/6),g=Math.sin(Math.PI/6),h=Math.cos(Math.PI/3),l=Math.sin(Math.PI/3),m=new Float64Array(20),p=new Float64Array(20);
6
+ m[0]=d;p[0]=0;m[1]=b*.5;p[1]=0;m[2]=b-d;p[2]=0;m[3]=b-d+d*g;p[3]=d-d*e;m[4]=b-d+d*l;p[4]=d-d*h;m[5]=b;p[5]=d;m[6]=b;p[6]=c*.5;m[7]=b;p[7]=c-d;m[8]=b-d+d*e;p[8]=c-d+d*g;m[9]=b-d+d*h;p[9]=c-d+d*l;m[10]=b-d;p[10]=c;m[11]=b*.5;p[11]=c;m[12]=d;p[12]=c;m[13]=d-d*g;p[13]=c-d+d*e;m[14]=d-d*l;p[14]=c-d+d*h;m[15]=0;p[15]=c-d;m[16]=0;p[16]=c*.5;m[17]=0;p[17]=d;m[18]=d-d*e;p[18]=d-d*g;m[19]=d-d*h;p[19]=d-d*l;c=[m,p];b=c[0];c=c[1];d=new Float64Array(20);e=new Float64Array(20);g=new Float64Array(20);h=new Float64Array(20);
7
+ for(l=0;;)if(l<20)d[l]=b[l],e[l]=c[l],g[l]=0,h[l]=0,l+=1;else break;a.__xSoftBodyRX=b;a.__xSoftBodyRY=c;a.__xSoftBodyCX=d;a.__xSoftBodyCY=e;a.__xSoftBodyVX=g;a.__xSoftBodyVY=h},sG=function(a){var b=$APP.M($APP.k(a,"__xSoftBodyRefs"));b=$APP.D(b,$APP.qk);var c=$APP.k(a,"__xSoftBodyCX");a=$APP.k(a,"__xSoftBodyCY");var d=[];d.push("M"+$APP.T.g(c[0].toFixed(2))+","+$APP.T.g(a[0].toFixed(2)));for(var e=0;;)if(e<20){var g=$APP.ed(e+19,20),h=e,l=$APP.ed(e+1,20),m=$APP.ed(e+2,20),p=(c[l]-c[g])/6,q=(a[l]-
8
+ a[g])/6;g=(c[m]-c[h])/6;m=(a[m]-a[h])/6;var v=c[l]-c[h],x=a[l]-a[h];x=Math.sqrt(v*v+x*x)*.4;v=Math.sqrt(p*p+q*q);v=v>x?x/(v+.001):1;q=a[h]+q*v;var y=Math.sqrt(g*g+m*m);x=y>x?x/(y+.001):1;g=c[l]-g*x;m=a[l]-m*x;d.push("C"+$APP.T.g((c[h]+p*v).toFixed(2))+","+$APP.T.g(q.toFixed(2))+" "+$APP.T.g(g.toFixed(2))+","+$APP.T.g(m.toFixed(2))+" "+$APP.T.g(c[l].toFixed(2))+","+$APP.T.g(a[l].toFixed(2)));e+=1}else break;d.push("Z");b.setAttribute("d",d.join(""))},tG=function(a){var b=$APP.M($APP.k(a,"__xSoftBodyRefs"));
9
+ b=$APP.D(b,$APP.qk);var c=$APP.k(a,"__xSoftBodyW"),d=$APP.k(a,"__xSoftBodyH");a=$APP.am.g($APP.k(a,"__xSoftBodyModel"));a=Math.max(6,Math.min(a,Math.min(c,d)/2));var e=.5522847498*a;c="M"+$APP.T.g(a.toFixed(2))+",0L"+$APP.T.g((c-a).toFixed(2))+",0C"+$APP.T.g((c-a+e).toFixed(2))+",0 "+$APP.T.g(c.toFixed(2))+","+$APP.T.g((a-e).toFixed(2))+" "+$APP.T.g(c.toFixed(2))+","+$APP.T.g(a.toFixed(2))+"L"+$APP.T.g(c.toFixed(2))+","+$APP.T.g((d-a).toFixed(2))+"C"+$APP.T.g(c.toFixed(2))+","+$APP.T.g((d-a+e).toFixed(2))+
10
+ " "+$APP.T.g((c-a+e).toFixed(2))+","+$APP.T.g(d.toFixed(2))+" "+$APP.T.g((c-a).toFixed(2))+","+$APP.T.g(d.toFixed(2))+"L"+$APP.T.g(a.toFixed(2))+","+$APP.T.g(d.toFixed(2))+"C"+$APP.T.g((a-e).toFixed(2))+","+$APP.T.g(d.toFixed(2))+" 0,"+$APP.T.g((d-a+e).toFixed(2))+" 0,"+$APP.T.g((d-a).toFixed(2))+"L0,"+$APP.T.g(a.toFixed(2))+"C0,"+$APP.T.g((a-e).toFixed(2))+" "+$APP.T.g((a-e).toFixed(2))+",0 "+$APP.T.g(a.toFixed(2))+",0Z";b.setAttribute("d",c)},vG=function(a){$APP.n($APP.k(a,"__xSoftBodyRaf"))||($APP.ia(a,
11
+ "__xSoftBodyLF",performance.now()),$APP.ia(a,"__xSoftBodyRaf",requestAnimationFrame(function(){return uG(a)})))},wG=function(a){var b=$APP.k(a,"__xSoftBodyRaf");$APP.n(b)&&(cancelAnimationFrame(b),a.__xSoftBodyRaf=null)},xG=function(a,b){var c=$APP.M($APP.k(a,"__xSoftBodyRefs"));c=$APP.D(c,$APP.Jj).getBoundingClientRect();a.__xSoftBodyPX=b.clientX-c.left;a.__xSoftBodyPY=b.clientY-c.top;return null},yG=function(a){function b(){a.__xSoftBodyGrab=!1;a.dispatchEvent(new CustomEvent("x-soft-body-release",
12
+ {bubbles:!0,composed:!0,detail:{}}));return null}function c(h){a.__xSoftBodyGrab=!0;xG(a,h);a.dispatchEvent(new CustomEvent("x-soft-body-grab",{bubbles:!0,composed:!0,detail:{}}));return null}function d(){a.__xSoftBodyPA=!1;a.__xSoftBodyGrab=!1;return null}function e(){a.__xSoftBodyPA=!0;var h=$APP.W.g($APP.k(a,"__xSoftBodyModel"));h=$APP.n(h)?h:kG();$APP.n(h)||vG(a);return null}function g(h){return xG(a,h)}$APP.ia(a,"__xSoftBodyHdl",{move:g,enter:e,leave:d,down:c,up:b});a.addEventListener("pointermove",
13
+ g,{passive:!0});a.addEventListener("pointerenter",e);a.addEventListener("pointerleave",d);a.addEventListener("pointerdown",c);a.addEventListener("pointerup",b)},zG=function(a){var b=$APP.k(a,"__xSoftBodyHdl");$APP.n(b)&&(a.removeEventListener("pointermove",$APP.k(b,"move")),a.removeEventListener("pointerenter",$APP.k(b,"enter")),a.removeEventListener("pointerleave",$APP.k(b,"leave")),a.removeEventListener("pointerdown",$APP.k(b,"down")),a.removeEventListener("pointerup",$APP.k(b,"up")),a.__xSoftBodyHdl=
14
+ null)},AG=function(a){Object.defineProperty(a,"stiffness",{get:function(){var b=this.getAttribute("stiffness");return hG(b,180,10,1E3)},set:function(b){return b==null?this.removeAttribute("stiffness"):this.setAttribute("stiffness",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"damping",{get:function(){var b=this.getAttribute("damping");return hG(b,12,1,100)},set:function(b){return b==null?this.removeAttribute("damping"):this.setAttribute("damping",""+$APP.T.g(b))},enumerable:!0,
15
+ configurable:!0});Object.defineProperty(a,"radius",{get:function(){var b=this.getAttribute("radius");return hG(b,16,6,200)},set:function(b){return b==null?this.removeAttribute("radius"):this.setAttribute("radius",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"intensity",{get:function(){var b=this.getAttribute("intensity");return hG(b,1,0,5)},set:function(b){return b==null?this.removeAttribute("intensity"):this.setAttribute("intensity",""+$APP.T.g(b))},enumerable:!0,configurable:!0});
16
+ Object.defineProperty(a,"grabRadius",{get:function(){var b=this.getAttribute("grab-radius");return hG(b,80,10,500)},set:function(b){return b==null?this.removeAttribute("grab-radius"):this.setAttribute("grab-radius",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},CG=function(){var a=
17
+ class extends HTMLElement{};a.observedAttributes=BG;a.prototype.connectedCallback=function(){var b=this,c=qG(b);b.__xSoftBodyModel=c;$APP.n($APP.k(b,"__xSoftBodyRefs"))||nG(b);b.__xSoftBodyPA=!1;b.__xSoftBodyGrab=!1;b.__xSoftBodyPX=0;b.__xSoftBodyPY=0;c=new ResizeObserver(function(d){if(d.length>0){var e=d[0].contentRect;d=e.width;e=e.height;if(d>0&&e>0){b.__xSoftBodyW=d;b.__xSoftBodyH=e;var g=$APP.M($APP.k(b,"__xSoftBodyRefs"));$APP.D(g,$APP.Jj).setAttribute("viewBox","0 0 "+$APP.T.g(d)+" "+$APP.T.g(e));
18
+ rG(b,d,e);d=$APP.W.g($APP.k(b,"__xSoftBodyModel"));d=$APP.n(d)?d:kG();$APP.n(d)?tG(b):(sG(b),vG(b))}}return null});b.__xSoftBodyRO=c;c.observe(b);zG(b);yG(b);return null};a.prototype.disconnectedCallback=function(){wG(this);zG(this);var b=$APP.k(this,"__xSoftBodyRO");$APP.n(b)&&(b.disconnect(),this.__xSoftBodyRO=null);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xSoftBodyRefs"))&&(this.__xSoftBodyModel=b=qG(this),c=$APP.k(this,"__xSoftBodyW"),
19
+ d=$APP.k(this,"__xSoftBodyH"),$APP.n($APP.n(c)?$APP.n(d)?c>0&&d>0:d:c)&&(rG(this,c,d),b=$APP.W.g(b),b=$APP.n(b)?b:kG(),$APP.n(b)?(wG(this),tG(this)):(sG(this),vG(this))));return null};AG(a.prototype);return a},DG=function(){$APP.n(customElements.get("x-soft-body"))||customElements.define("x-soft-body",CG());return null},pG=new $APP.K(null,"grab-radius","grab-radius",771838535),oG=new $APP.K(null,"grab-radius-raw","grab-radius-raw",-1019405976);var BG="stiffness damping radius intensity grab-radius disabled".split(" ");$APP.Pd(["x-soft-body-grab",new $APP.R(null,2,[$APP.yj,$APP.Qd,$APP.wl,!1],null),"x-soft-body-release",new $APP.R(null,2,[$APP.yj,$APP.Qd,$APP.wl,!1],null)]);var mG=":host{display:block;position:relative;background:none;overflow:visible;"+$APP.T.g("--x-soft-body-bg")+":var(--x-color-surface,#ffffff);"+$APP.T.g("--x-soft-body-border")+":var(--x-color-border,#e2e8f0);"+$APP.T.g("--x-soft-body-border-width")+":1.5;"+$APP.T.g("--x-soft-body-shadow")+":var(--x-shadow-sm,0 1px 3px rgba(0,0,0,0.1));"+$APP.T.g("--x-soft-body-padding")+":1rem;}[part\x3dsvg]{display:block;width:100%;height:100%;position:absolute;inset:0;overflow:visible;pointer-events:none;}[part\x3dshape]{fill:var("+
20
+ $APP.T.g("--x-soft-body-bg")+",#ffffff);stroke:var("+$APP.T.g("--x-soft-body-border")+",#e2e8f0);stroke-width:var("+$APP.T.g("--x-soft-body-border-width")+",1.5);filter:drop-shadow(var("+$APP.T.g("--x-soft-body-shadow")+",0 1px 3px rgba(0,0,0,0.1)));}[part\x3dcontent]{position:relative;background:none;padding:var("+$APP.T.g("--x-soft-body-padding")+",1rem);z-index:1;}@media(prefers-color-scheme:dark){:host{"+$APP.T.g("--x-soft-body-bg")+":var(--x-color-surface,#1e293b);"+$APP.T.g("--x-soft-body-border")+
21
+ ":var(--x-color-border,#475569);"+$APP.T.g("--x-soft-body-shadow")+":var(--x-shadow-sm,0 1px 3px rgba(0,0,0,0.3));}}@media(prefers-reduced-motion:reduce){[part\x3dshape]{transition:none!important;}}",uG=function uG(a){if($APP.n(a.isConnected)){var c=$APP.k(a,"__xSoftBodyModel"),d=performance.now(),e=Math.min(d-$APP.k(a,"__xSoftBodyLF"),100)/1E3,g=$APP.fl.g(c),h=$APP.kk.g(c),l=$APP.Tj.g(c),m=pG.g(c);c=$APP.k(a,"__xSoftBodyRX");var p=$APP.k(a,"__xSoftBodyRY"),q=$APP.k(a,"__xSoftBodyCX"),v=$APP.k(a,
22
+ "__xSoftBodyCY"),x=$APP.k(a,"__xSoftBodyVX"),y=$APP.k(a,"__xSoftBodyVY"),A=$APP.k(a,"__xSoftBodyPA"),B=$APP.k(a,"__xSoftBodyPX"),E=$APP.k(a,"__xSoftBodyPY"),H=$APP.k(a,"__xSoftBodyGrab");a.__xSoftBodyLF=d;for(d=0;;)if(d<20){var G=c[d],I=p[d],Q=$APP.n(A)?jG(G,I,B,E,m,l,H):[0,0];G=iG(q[d],G+Q[0],x[d],e,g,h);I=iG(v[d],I+Q[1],y[d],e,g,h);q[d]=G[0];x[d]=G[1];v[d]=I[0];y[d]=I[1];d+=1}else break;sG(a);if($APP.n($APP.n(A)?A:!lG(x,y)))$APP.ia(a,"__xSoftBodyRaf",requestAnimationFrame(function(){return uG.g?
23
+ uG.g(a):uG.call(null,a)}));else{for(e=0;;)if(e<20)q[e]=c[e],v[e]=p[e],e+=1;else break;sG(a);a.__xSoftBodyRaf=null}}return null};$APP.fa("baredom.exports.x_soft_body.init",DG);export const init=DG;
package/dist/x-spacer.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var hH=function(a){return a!=null&&$APP.O((""+$APP.S.g(a)).trim().toLowerCase(),"false")},nH=function(a){var b=new $APP.P(null,3,[$APP.Zk,a.getAttribute("size"),iH,a.getAttribute("axis"),jH,a.getAttribute("grow")],null);b=$APP.N(b);var c=$APP.G(b,$APP.Zk),d=$APP.G(b,iH);b=$APP.G(b,jH);c=typeof c==="string"&&c.trim().length>0?c.trim():"1rem";d=typeof d==="string"?d.trim().toLowerCase():null;d=$APP.J(kH,d)?d:"vertical";b=new $APP.P(null,3,[$APP.rh,c,lH,d,mH,hH(b)],null);c=$APP.N(b);b=$APP.G(c,$APP.rh);
3
- d=$APP.G(c,lH);c=$APP.G(c,mH);var e=a.style;a.setAttribute("data-axis",d);a.setAttribute("data-grow",$APP.r(c)?"true":"false");e.setProperty("--x-spacer-size",b);a.setAttribute("role","none");a.setAttribute("aria-hidden","true")},oH=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(b);return $APP.r(d)?d:c},set:function(d){return d!=null?this.setAttribute(b,""+$APP.S.g(d)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},pH=function(a){Object.defineProperty(a,
4
- "grow",{get:function(){return hH(this.getAttribute("grow"))},set:function(b){return $APP.r(b)?this.setAttribute("grow",""):this.removeAttribute("grow")},enumerable:!0,configurable:!0})},qH=function(a){oH(a,"size","1rem");oH(a,"axis","vertical");pH(a)},sH=function(){var a=class extends HTMLElement{};a.observedAttributes=rH;a.prototype.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xSpacerRefs"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style");c.textContent=":host{display:block;flex-shrink:0;height:var(--x-spacer-size,1rem);width:0;pointer-events:none;}:host([data-axis\x3d'horizontal']){height:0;width:var(--x-spacer-size,1rem);}:host([data-grow\x3d'true']){flex:1 0 var(--x-spacer-size,0px);height:0;width:0;}";
5
- b.appendChild(c);this.__xSpacerRefs={root:b}}nH(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){b=$APP.O(c,d);$APP.r(b?$APP.l(this,"__xSpacerRefs"):b)&&nH(this);return null};qH(a.prototype);return a},tH=function(){$APP.r(customElements.get("x-spacer"))||customElements.define("x-spacer",sH());return null},lH=new $APP.K(null,"axis","axis",-1215390822),mH=new $APP.K(null,"grow?","grow?",2124334580),jH=new $APP.K(null,"grow-raw",
6
- "grow-raw",441172903),iH=new $APP.K(null,"axis-raw","axis-raw",291213231);var rH=["size","axis","grow"],kH=new $APP.R(null,new $APP.P(null,2,["vertical",null,"horizontal",null],null),null);$APP.ka("baredom.exports.x_spacer.init",tH);export const init=tH;
2
+ var mJ=function(a){return a!=null&&$APP.N((""+$APP.T.g(a)).trim().toLowerCase(),"false")},sJ=function(a){var b=new $APP.R(null,3,[$APP.il,a.getAttribute("size"),nJ,a.getAttribute("axis"),oJ,a.getAttribute("grow")],null);b=$APP.M(b);var c=$APP.D(b,$APP.il),d=$APP.D(b,nJ);b=$APP.D(b,oJ);c=typeof c==="string"&&c.trim().length>0?c.trim():"1rem";d=typeof d==="string"?d.trim().toLowerCase():null;d=$APP.J(pJ,d)?d:"vertical";b=new $APP.R(null,3,[$APP.th,c,qJ,d,rJ,mJ(b)],null);c=$APP.M(b);b=$APP.D(c,$APP.th);
3
+ d=$APP.D(c,qJ);c=$APP.D(c,rJ);var e=a.style;a.setAttribute("data-axis",d);a.setAttribute("data-grow",$APP.n(c)?"true":"false");e.setProperty("--x-spacer-size",b);a.setAttribute("role","none");a.setAttribute("aria-hidden","true")},tJ=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(b);return $APP.n(d)?d:c},set:function(d){return d!=null?this.setAttribute(b,""+$APP.T.g(d)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},uJ=function(a){Object.defineProperty(a,
4
+ "grow",{get:function(){return mJ(this.getAttribute("grow"))},set:function(b){return $APP.n(b)?this.setAttribute("grow",""):this.removeAttribute("grow")},enumerable:!0,configurable:!0})},vJ=function(a){tJ(a,"size","1rem");tJ(a,"axis","vertical");uJ(a)},xJ=function(){var a=class extends HTMLElement{};a.observedAttributes=wJ;a.prototype.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xSpacerRefs"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style");c.textContent=":host{display:block;flex-shrink:0;height:var(--x-spacer-size,1rem);width:0;pointer-events:none;}:host([data-axis\x3d'horizontal']){height:0;width:var(--x-spacer-size,1rem);}:host([data-grow\x3d'true']){flex:1 0 var(--x-spacer-size,0px);height:0;width:0;}";
5
+ b.appendChild(c);this.__xSpacerRefs={root:b}}sJ(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){b=$APP.N(c,d);$APP.n(b?$APP.k(this,"__xSpacerRefs"):b)&&sJ(this);return null};vJ(a.prototype);return a},yJ=function(){$APP.n(customElements.get("x-spacer"))||customElements.define("x-spacer",xJ());return null},qJ=new $APP.K(null,"axis","axis",-1215390822),rJ=new $APP.K(null,"grow?","grow?",2124334580),oJ=new $APP.K(null,"grow-raw",
6
+ "grow-raw",441172903),nJ=new $APP.K(null,"axis-raw","axis-raw",291213231);var wJ=["size","axis","grow"],pJ=new $APP.S(null,new $APP.R(null,2,["vertical",null,"horizontal",null],null),null);$APP.fa("baredom.exports.x_spacer.init",yJ);export const init=yJ;