@andespindola/ui-core 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/ui-accordion-item.cjs.entry.js +2 -2
- package/dist/cjs/ui-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ui-avatar.cjs.entry.js +1 -1
- package/dist/cjs/ui-card.cjs.entry.js +2 -2
- package/dist/cjs/ui-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/ui-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ui-drawer.cjs.entry.js +1 -1
- package/dist/cjs/ui-dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/ui-dropdown-menu.cjs.entry.js +1 -1
- package/dist/cjs/ui-field.cjs.entry.js +1 -1
- package/dist/cjs/ui-input.cjs.entry.js +1 -1
- package/dist/cjs/ui-label.cjs.entry.js +1 -1
- package/dist/cjs/ui-popover.cjs.entry.js +1 -1
- package/dist/cjs/ui-progress.cjs.entry.js +2 -2
- package/dist/cjs/ui-reveal.cjs.entry.js +1 -1
- package/dist/cjs/ui-scroll-progress.cjs.entry.js +1 -1
- package/dist/cjs/ui-section.cjs.entry.js +2 -2
- package/dist/cjs/ui-select.cjs.entry.js +1 -1
- package/dist/cjs/ui-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/ui-slider.cjs.entry.js +1 -1
- package/dist/cjs/ui-switch.cjs.entry.js +1 -1
- package/dist/cjs/ui-tabs.cjs.entry.js +2 -2
- package/dist/cjs/ui-textarea.cjs.entry.js +2 -2
- package/dist/cjs/ui-theme-toggle.cjs.entry.js +1 -1
- package/dist/cjs/ui-toast.cjs.entry.js +1 -1
- package/dist/cjs/ui-toaster.cjs.entry.js +1 -1
- package/dist/cjs/ui-tooltip.cjs.entry.js +2 -2
- package/dist/collection/components/ui-accordion/ui-accordion.js +1 -1
- package/dist/collection/components/ui-accordion-item/ui-accordion-item.css +8 -0
- package/dist/collection/components/ui-accordion-item/ui-accordion-item.js +1 -1
- package/dist/collection/components/ui-avatar/ui-avatar.js +1 -1
- package/dist/collection/components/ui-card/ui-card.css +17 -3
- package/dist/collection/components/ui-card/ui-card.js +1 -1
- package/dist/collection/components/ui-checkbox/ui-checkbox.js +1 -1
- package/dist/collection/components/ui-dialog/ui-dialog.js +1 -1
- package/dist/collection/components/ui-drawer/ui-drawer.js +1 -1
- package/dist/collection/components/ui-dropdown-item/ui-dropdown-item.js +1 -1
- package/dist/collection/components/ui-dropdown-menu/ui-dropdown-menu.js +1 -1
- package/dist/collection/components/ui-field/ui-field.js +1 -1
- package/dist/collection/components/ui-input/ui-input.js +1 -1
- package/dist/collection/components/ui-label/ui-label.js +1 -1
- package/dist/collection/components/ui-popover/ui-popover.js +1 -1
- package/dist/collection/components/ui-progress/ui-progress.css +9 -4
- package/dist/collection/components/ui-progress/ui-progress.js +1 -1
- package/dist/collection/components/ui-reveal/ui-reveal.js +1 -1
- package/dist/collection/components/ui-scroll-progress/ui-scroll-progress.js +1 -1
- package/dist/collection/components/ui-section/ui-section.css +12 -5
- package/dist/collection/components/ui-section/ui-section.js +1 -1
- package/dist/collection/components/ui-select/ui-select.css +4 -0
- package/dist/collection/components/ui-skeleton/ui-skeleton.css +9 -6
- package/dist/collection/components/ui-skeleton/ui-skeleton.js +1 -1
- package/dist/collection/components/ui-slider/ui-slider.js +1 -1
- package/dist/collection/components/ui-switch/ui-switch.js +1 -1
- package/dist/collection/components/ui-tabs/ui-tabs.css +12 -0
- package/dist/collection/components/ui-tabs/ui-tabs.js +1 -1
- package/dist/collection/components/ui-textarea/ui-textarea.css +4 -0
- package/dist/collection/components/ui-textarea/ui-textarea.js +1 -1
- package/dist/collection/components/ui-theme-toggle/ui-theme-toggle.js +1 -1
- package/dist/collection/components/ui-toast/ui-toast.js +1 -1
- package/dist/collection/components/ui-toaster/ui-toaster.js +1 -1
- package/dist/collection/components/ui-tooltip/ui-tooltip.css +5 -4
- package/dist/collection/components/ui-tooltip/ui-tooltip.js +1 -1
- package/dist/components/{p-C8ePpPG3.js → p-fApcMAzN.js} +1 -1
- package/dist/components/ui-accordion-item.js +1 -1
- package/dist/components/ui-accordion.js +1 -1
- package/dist/components/ui-avatar.js +1 -1
- package/dist/components/ui-card.js +1 -1
- package/dist/components/ui-checkbox.js +1 -1
- package/dist/components/ui-dialog.js +1 -1
- package/dist/components/ui-drawer.js +1 -1
- package/dist/components/ui-dropdown-item.js +1 -1
- package/dist/components/ui-dropdown-menu.js +1 -1
- package/dist/components/ui-field.js +1 -1
- package/dist/components/ui-input.js +1 -1
- package/dist/components/ui-label.js +1 -1
- package/dist/components/ui-popover.js +1 -1
- package/dist/components/ui-progress.js +1 -1
- package/dist/components/ui-reveal.js +1 -1
- package/dist/components/ui-scroll-progress.js +1 -1
- package/dist/components/ui-section.js +1 -1
- package/dist/components/ui-select.js +1 -1
- package/dist/components/ui-skeleton.js +1 -1
- package/dist/components/ui-slider.js +1 -1
- package/dist/components/ui-switch.js +1 -1
- package/dist/components/ui-tabs.js +1 -1
- package/dist/components/ui-textarea.js +1 -1
- package/dist/components/ui-theme-toggle.js +1 -1
- package/dist/components/ui-toast.js +1 -1
- package/dist/components/ui-toaster.js +1 -1
- package/dist/components/ui-tooltip.js +1 -1
- package/dist/esm/ui-accordion-item.entry.js +2 -2
- package/dist/esm/ui-accordion.entry.js +1 -1
- package/dist/esm/ui-avatar.entry.js +1 -1
- package/dist/esm/ui-card.entry.js +2 -2
- package/dist/esm/ui-checkbox.entry.js +1 -1
- package/dist/esm/ui-dialog.entry.js +1 -1
- package/dist/esm/ui-drawer.entry.js +1 -1
- package/dist/esm/ui-dropdown-item.entry.js +1 -1
- package/dist/esm/ui-dropdown-menu.entry.js +1 -1
- package/dist/esm/ui-field.entry.js +1 -1
- package/dist/esm/ui-input.entry.js +1 -1
- package/dist/esm/ui-label.entry.js +1 -1
- package/dist/esm/ui-popover.entry.js +1 -1
- package/dist/esm/ui-progress.entry.js +2 -2
- package/dist/esm/ui-reveal.entry.js +1 -1
- package/dist/esm/ui-scroll-progress.entry.js +1 -1
- package/dist/esm/ui-section.entry.js +2 -2
- package/dist/esm/ui-select.entry.js +1 -1
- package/dist/esm/ui-skeleton.entry.js +2 -2
- package/dist/esm/ui-slider.entry.js +1 -1
- package/dist/esm/ui-switch.entry.js +1 -1
- package/dist/esm/ui-tabs.entry.js +2 -2
- package/dist/esm/ui-textarea.entry.js +2 -2
- package/dist/esm/ui-theme-toggle.entry.js +1 -1
- package/dist/esm/ui-toast.entry.js +1 -1
- package/dist/esm/ui-toaster.entry.js +1 -1
- package/dist/esm/ui-tooltip.entry.js +2 -2
- package/dist/uikit/{p-8bcd423c.entry.js → p-0096eefe.entry.js} +1 -1
- package/dist/uikit/{p-0fb4949b.entry.js → p-11350db1.entry.js} +1 -1
- package/dist/uikit/p-128ae3e4.entry.js +1 -0
- package/dist/uikit/p-280337b0.entry.js +1 -0
- package/dist/uikit/{p-8cebbe65.entry.js → p-29fe5b7f.entry.js} +1 -1
- package/dist/uikit/p-32df7fd0.entry.js +1 -0
- package/dist/uikit/{p-f7402442.entry.js → p-38cbea54.entry.js} +1 -1
- package/dist/uikit/p-3c866608.entry.js +1 -0
- package/dist/uikit/{p-9d784b04.entry.js → p-5555523c.entry.js} +1 -1
- package/dist/uikit/{p-9e7b81ef.entry.js → p-58ed99a2.entry.js} +1 -1
- package/dist/uikit/p-6fa4be86.entry.js +1 -0
- package/dist/uikit/{p-c72ed105.entry.js → p-777c6902.entry.js} +1 -1
- package/dist/uikit/{p-4382718f.entry.js → p-777d8c7a.entry.js} +1 -1
- package/dist/uikit/p-7b2a9e68.entry.js +1 -0
- package/dist/uikit/{p-5df32809.entry.js → p-8a238373.entry.js} +1 -1
- package/dist/uikit/{p-b61e3df4.entry.js → p-97de6ea6.entry.js} +1 -1
- package/dist/uikit/p-9b43d670.entry.js +1 -0
- package/dist/uikit/{p-e410c789.entry.js → p-9f0d4ae1.entry.js} +1 -1
- package/dist/uikit/{p-629c1728.entry.js → p-a0ccdb22.entry.js} +1 -1
- package/dist/uikit/p-b0aba484.entry.js +1 -0
- package/dist/uikit/p-cf56c9ba.entry.js +1 -0
- package/dist/uikit/p-d13860dc.entry.js +1 -0
- package/dist/uikit/p-d6c9bfbc.entry.js +1 -0
- package/dist/uikit/p-d8e7ae10.entry.js +1 -0
- package/dist/uikit/{p-3d30bc7a.entry.js → p-e0652ddf.entry.js} +1 -1
- package/dist/uikit/{p-90d49509.entry.js → p-e54139a1.entry.js} +1 -1
- package/dist/uikit/p-ed1111eb.entry.js +1 -0
- package/dist/uikit/uikit.esm.js +1 -1
- package/package.json +1 -1
- package/dist/uikit/p-06d6d907.entry.js +0 -1
- package/dist/uikit/p-162302d1.entry.js +0 -1
- package/dist/uikit/p-19b81437.entry.js +0 -1
- package/dist/uikit/p-57058c30.entry.js +0 -1
- package/dist/uikit/p-5ea42ee5.entry.js +0 -1
- package/dist/uikit/p-76f0f79f.entry.js +0 -1
- package/dist/uikit/p-94fb298e.entry.js +0 -1
- package/dist/uikit/p-9f7c6ca8.entry.js +0 -1
- package/dist/uikit/p-a7be1c69.entry.js +0 -1
- package/dist/uikit/p-b30aa6a6.entry.js +0 -1
- package/dist/uikit/p-cb2adfb7.entry.js +0 -1
- package/dist/uikit/p-cf10ca3b.entry.js +0 -1
- package/dist/uikit/p-fd1648bf.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as r,h as a,H as o}from"./p-DYwlrXg_.js";const t=class{constructor(a){e(this,a),this.uiToggle=r(this,"uiToggle"),this.heading="",this.open=!1,this.onToggle=e=>{this.open=e.currentTarget.open,this.uiToggle.emit(this.open)}}render(){return a(o,{key:"a6753eab6e0dc158aadd47469da57bf73274cb99"},a("details",{key:"c98130b641f5cca70f27867ecc23769de0871733",open:this.open,onToggle:this.onToggle},a("summary",{key:"ed84e054379bc2f3133c675b5ddd8b6b69bb205c"},a("span",{key:"49d66f1f5ade0c22d4b13f1ead38d712d8dc0310",class:"heading"},this.heading),a("svg",{key:"74261819a62cf9dc397d8ca50c654897e080801b",class:"chevron",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},a("polyline",{key:"d69ebaaa12602c3c2d4a44d1c5b5ca6ed523f254",points:"6 9 12 15 18 9"}))),a("div",{key:"98178b28965c4595c0330299a358cc821424985f",class:"content"},a("slot",{key:"d633bc20693f7ac970e6fa1cf55760841243a870"}))))}};t.style=":host{display:block;font-family:var(--ui-font-sans);border-bottom:1px solid var(--ui-border)}summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 0;cursor:pointer;font-weight:500;color:var(--ui-foreground);list-style:none;outline:none}summary::-webkit-details-marker{display:none}summary:hover{color:var(--ui-accent)}summary:hover .chevron{color:var(--ui-accent)}summary:focus-visible{box-shadow:0 0 0 2px var(--ui-background), 0 0 0 4px var(--ui-ring);border-radius:var(--ui-radius-sm)}.chevron{flex:none;color:var(--ui-text-muted);transition:transform var(--ui-duration) var(--ui-ease)}details[open] .chevron{transform:rotate(180deg)}.content{padding-bottom:1rem;color:var(--ui-text-muted)}";export{t as ui_accordion_item}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as
|
|
1
|
+
import{r as e,h as r,H as a}from"./p-DYwlrXg_.js";const i=class{constructor(r){e(this,r),this.progress=0,this.onScroll=()=>{if("undefined"==typeof document)return;const e=document.documentElement,r=e.scrollHeight-e.clientHeight;this.progress=r>0?e.scrollTop/r:0}}connectedCallback(){"undefined"!=typeof window&&(window.addEventListener("scroll",this.onScroll,{passive:!0}),this.onScroll())}disconnectedCallback(){"undefined"!=typeof window&&window.removeEventListener("scroll",this.onScroll)}render(){return r(a,{key:"36bb4460d8219c028ff63216ef562f0d157fd04d"},r("div",{key:"345b9675be89ede7875c56ad3f86ae2eecdf4f16",class:"bar",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(100*this.progress),style:{transform:`scaleX(${this.progress})`}}))}};i.style=":host{display:block}.bar{position:fixed;top:0;left:0;width:100%;height:2px;transform-origin:left;transform:scaleX(0);background:linear-gradient( 90deg, var(--ui-accent), var(--ui-accent-strong) );z-index:100;transition:transform var(--ui-duration) var(--ui-ease)}";export{i as ui_scroll_progress}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,h as t,H as s,a as o}from"./p-DYwlrXg_.js";import{a,c as e,o as r,f as h,s as n}from"./p-CyBRmmbs.js";const d=class{constructor(t){i(this,t),this.content="",this.placement="top",this.openDelay=200,this.visible=!1,this.onEnter=()=>{this.timer&&clearTimeout(this.timer),this.timer=setTimeout((()=>{this.visible=!0,requestAnimationFrame((()=>this.start()))}),this.openDelay)},this.onLeave=()=>{this.timer&&clearTimeout(this.timer),this.visible=!1,this.stop()}}disconnectedCallback(){this.stop(),this.timer&&clearTimeout(this.timer)}start(){this.triggerEl&&this.floatingEl&&(this.stop(),this.cleanup=a(this.triggerEl,this.floatingEl,(()=>{this.triggerEl&&this.floatingEl&&e(this.triggerEl,this.floatingEl,{placement:this.placement,middleware:[r(8),h(),n({padding:8})]}).then((({x:i,y:t})=>{Object.assign(this.floatingEl.style,{left:`${i}px`,top:`${t}px`})}))})))}stop(){this.cleanup?.(),this.cleanup=void 0}render(){return t(s,{key:"5a3f2a7cf235a6c31c8a4d3ebd4f0d517c7e7b5d",onMouseEnter:this.onEnter,onMouseLeave:this.onLeave,onFocusin:this.onEnter,onFocusout:this.onLeave},t("span",{key:"f626c5ec5686959449c5a2dd1c80551fd6b19087",class:"trigger",ref:i=>this.triggerEl=i},t("slot",{key:"08a19214efd0eba04d715b76a63a2cc53ed3a5c6"})),t("div",{key:"b598af62ab976599a5274cc85f01b4ab7543dabf",class:{tooltip:!0,"is-visible":this.visible},role:"tooltip",ref:i=>this.floatingEl=i},this.content))}get host(){return o(this)}};d.style=":host{display:inline-block}.trigger{display:inline-flex}.tooltip{position:fixed;top:0;left:0;z-index:50;width:max-content;max-width:18rem;padding:0.4rem 0.7rem;font-family:var(--ui-font-sans);font-size:0.75rem;font-weight:500;line-height:1.4;color:var(--ui-foreground);background:color-mix(in srgb, var(--ui-background) 90%, var(--ui-foreground) 8%);border:1px solid var(--ui-border-strong);box-shadow:var(--ui-shadow-lg);border-radius:var(--ui-radius-sm);pointer-events:none;opacity:0;transform:scale(0.96);transition:opacity var(--ui-duration) var(--ui-ease), transform var(--ui-duration) var(--ui-ease)}.tooltip.is-visible{opacity:1;transform:scale(1)}";export{d as ui_tooltip}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,h as i,H as
|
|
1
|
+
import{r as a,h as i,H as e}from"./p-DYwlrXg_.js";const r=class{constructor(i){a(this,i),this.alt=""}render(){return i(e,{key:"7a6bbef0807d0d3dc25692a6bf87171131579e46"},i("span",{key:"6b548ed4e5ec0dc7bb52dcb3660ffc188705439f",class:"avatar"},this.src?i("img",{class:"image",src:this.src,alt:this.alt}):i("span",{class:"fallback"},this.fallback)))}};r.style=":host{display:inline-block;}.avatar{display:inline-flex;align-items:center;justify-content:center;width:var(--ui-avatar-size, 2.5rem);height:var(--ui-avatar-size, 2.5rem);border-radius:var(--ui-radius-full);border:1px solid var(--ui-border);background:var(--ui-chip);overflow:hidden;font-family:var(--ui-font-sans)}.image{width:100%;height:100%;object-fit:cover}.fallback{font-size:0.875rem;font-weight:500;color:var(--ui-text-muted);line-height:1}";export{r as ui_avatar}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,c as t,h as i,H as s}from"./p-DYwlrXg_.js";const o=class{constructor(i){a(this,i),this.uiClose=t(this,"uiClose"),this.open=!1,this.onClose=()=>{this.open&&(this.open=!1,this.uiClose.emit())},this.onBackdropClick=a=>{a.target===this.dialogEl&&this.close()}}onOpenChange(a){this.sync(a)}componentDidLoad(){this.sync(this.open)}sync(a){this.dialogEl&&(a&&!this.dialogEl.open?this.dialogEl.showModal():!a&&this.dialogEl.open&&this.dialogEl.close())}async show(){this.open=!0}async close(){this.open=!1}render(){return i(s,{key:"
|
|
1
|
+
import{r as a,c as t,h as i,H as s}from"./p-DYwlrXg_.js";const o=class{constructor(i){a(this,i),this.uiClose=t(this,"uiClose"),this.open=!1,this.onClose=()=>{this.open&&(this.open=!1,this.uiClose.emit())},this.onBackdropClick=a=>{a.target===this.dialogEl&&this.close()}}onOpenChange(a){this.sync(a)}componentDidLoad(){this.sync(this.open)}sync(a){this.dialogEl&&(a&&!this.dialogEl.open?this.dialogEl.showModal():!a&&this.dialogEl.open&&this.dialogEl.close())}async show(){this.open=!0}async close(){this.open=!1}render(){return i(s,{key:"df811bec2a6a250e90cbb6d9c85202b2d3c2c964"},i("dialog",{key:"49572b35ec17863fb83e9973c548a8cafa0308b6",class:"dialog",ref:a=>this.dialogEl=a,onClose:this.onClose,onCancel:this.onClose,onClick:this.onBackdropClick},i("div",{key:"53c82b2c7a1b8831d64a060b4665a60bbdc7e39a",class:"content"},i("slot",{key:"b398a9692fdf2826b86125723bc232791e6b9e4b"}))))}static get watchers(){return{open:[{onOpenChange:0}]}}};o.style='.dialog{padding:0;border:none;background:transparent;max-width:32rem;width:calc(100% - 2rem);color:var(--ui-foreground)}.dialog::backdrop{background:var(--ui-overlay);backdrop-filter:blur(4px)}.dialog[open]{animation:ui-dialog-in var(--ui-duration) var(--ui-ease)}.content{border:1px solid var(--ui-border);background:var(--ui-panel-strong);box-shadow:var(--ui-shadow-lg);backdrop-filter:blur(22px) saturate(140%);border-radius:var(--ui-radius-xl);padding:1.5rem;font-family:var(--ui-font-sans)}::slotted([slot="title"]){font-size:1.125rem;font-weight:600}::slotted([slot="description"]){color:var(--ui-text-muted);font-size:0.875rem}@keyframes ui-dialog-in{from{opacity:0;transform:scale(0.96) translateY(6px)}to{opacity:1;transform:scale(1) translateY(0)}}';export{o as ui_dialog}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as r,H as a}from"./p-DYwlrXg_.js";const i=class{constructor(r){e(this,r),this.eyebrow="",this.heading="",this.description=""}render(){return r(a,{key:"17a6e52fb6d1822d7a8a08eef052d972cc322c0a"},r("section",{key:"228e9c1e4ca2515f585cafa2684932bfac70a25b"},this.eyebrow&&r("p",{key:"93c307b49c39fe2c0b2363d75c9763b3c09446a5",class:"eyebrow"},this.eyebrow),this.heading&&r("h2",{key:"889c652e358f1788c5785f1154f5a45508fa2a61",class:"heading"},this.heading),this.description&&r("p",{key:"09cb09edfbc0dce2b7fd5e9938cafc63e2ddbd9a",class:"description"},this.description),r("slot",{key:"4f480d0c56263f1e38909e8af8d7cd8d8c2375fe"})))}};i.style=":host{display:block;font-family:var(--ui-font-sans)}section{max-width:80rem;margin:0 auto;padding:3.5rem 1.5rem}.eyebrow{display:inline-block;margin:0 0 0.75rem;padding:0.25rem 0.625rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius-full);background:var(--ui-chip);text-transform:uppercase;letter-spacing:0.12em;font-size:0.6875rem;font-weight:600;color:var(--ui-accent)}.heading{margin:0 0 0.75rem;font-size:2.25rem;font-weight:600;letter-spacing:-0.02em;line-height:1.1;color:var(--ui-foreground)}.description{margin:0 0 2rem;max-width:42rem;color:var(--ui-text-muted)}";export{i as ui_section}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as r,h as i,H as
|
|
1
|
+
import{r as t,c as r,h as i,H as e}from"./p-DYwlrXg_.js";const o=class{constructor(i){t(this,i),this.uiClose=r(this,"uiClose"),this.open=!1,this.side="right",this.onClose=()=>{this.open&&(this.open=!1,this.uiClose.emit())},this.onBackdropClick=t=>{t.target===this.dialogEl&&this.close()}}onOpenChange(t){this.sync(t)}componentDidLoad(){this.sync(this.open)}sync(t){this.dialogEl&&(t&&!this.dialogEl.open?this.dialogEl.showModal():!t&&this.dialogEl.open&&this.dialogEl.close())}async show(){this.open=!0}async close(){this.open=!1}render(){return i(e,{key:"9f2f27dcc087f608a3aeed4fe64a65eb8fe4011b"},i("dialog",{key:"92471e4a732f00e4187efb37cbba553651c2f9dd",class:`drawer side-${this.side}`,ref:t=>this.dialogEl=t,onClose:this.onClose,onCancel:this.onClose,onClick:this.onBackdropClick},i("div",{key:"d6706d4943f8559aee320b6df509138c44857bf0",class:"content"},i("slot",{key:"5cb218bde44c73fd02c640c1d0da736427f2707c"}))))}static get watchers(){return{open:[{onOpenChange:0}]}}};o.style=":host{display:contents}.drawer{position:fixed;margin:0;padding:0;border:none;max-width:none;max-height:none;background:transparent;overflow:visible}.drawer::backdrop{background:var(--ui-overlay);backdrop-filter:blur(2px)}.side-right{top:0;right:0;bottom:0;height:100%;width:min(24rem, 100%)}.side-bottom{left:0;right:0;bottom:0;width:100%;max-height:85vh}.content{box-sizing:border-box;width:100%;height:100%;padding:1.5rem;overflow:auto;font-family:var(--ui-font-sans);color:var(--ui-foreground);border:1px solid var(--ui-border);background:var(--ui-panel-strong);box-shadow:var(--ui-shadow-lg);backdrop-filter:blur(22px)}.side-right .content{border-top-left-radius:var(--ui-radius-xl);border-bottom-left-radius:var(--ui-radius-xl)}.side-bottom .content{border-top-left-radius:var(--ui-radius-xl);border-top-right-radius:var(--ui-radius-xl)}.side-right[open]{animation:ui-drawer-slide-right var(--ui-duration) var(--ui-ease)}.side-bottom[open]{animation:ui-drawer-slide-bottom var(--ui-duration) var(--ui-ease)}@keyframes ui-drawer-slide-right{from{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes ui-drawer-slide-bottom{from{transform:translateY(100%)}to{transform:translateY(0)}}";export{o as ui_drawer}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,c as t,h as r,H as
|
|
1
|
+
import{r as i,c as t,h as r,H as a}from"./p-DYwlrXg_.js";const s=class{constructor(r){i(this,r),this.uiChange=t(this,"uiChange"),this.checked=!1,this.disabled=!1,this.toggle=()=>{this.disabled||(this.checked=!this.checked,this.uiChange.emit(this.checked))},this.onKeyDown=i=>{" "!==i.key&&"Enter"!==i.key||(i.preventDefault(),this.toggle())}}render(){return r(a,{key:"0650dcb564622448421a576b17093cfeeb7a3a6d"},r("button",{key:"09e705ce9642f4c11b84bc876577b9e55dab1e52",class:"switch",type:"button",role:"switch","aria-checked":this.checked?"true":"false",disabled:this.disabled,onClick:this.toggle,onKeyDown:this.onKeyDown},r("span",{key:"d237bee4724d5f9a199f4794217d1528c074caac",class:"thumb"})))}};s.style=':host{display:inline-flex}.switch{position:relative;width:2.75rem;height:1.5rem;padding:0;border:1px solid var(--ui-border);border-radius:var(--ui-radius-full);background:var(--ui-chip);cursor:pointer;outline:none;transition:background var(--ui-duration) var(--ui-ease)}.switch:focus-visible{box-shadow:0 0 0 2px var(--ui-background), 0 0 0 4px var(--ui-ring)}.switch[aria-checked="true"]{background:var(--ui-accent);border-color:var(--ui-accent)}.switch:disabled{opacity:0.5;pointer-events:none}.thumb{position:absolute;top:50%;left:0.125rem;width:1.25rem;height:1.25rem;border-radius:9999px;background:var(--ui-on-status);box-shadow:var(--ui-shadow-sm);transform:translateY(-50%);transition:transform var(--ui-duration) var(--ui-ease)}.switch[aria-checked="true"] .thumb{transform:translate(1.25rem, -50%)}';export{s as ui_switch}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as i,H as e}from"./p-DYwlrXg_.js";const s=class{constructor(i){t(this,i),this.items=[],this.counter=0}async toast(t){const i=`toast-${this.counter++}-${Math.random().toString(36).slice(2)}`;this.items=[...this.items,{...t,id:i}]}remove(t){this.items=this.items.filter((i=>i.id!==t))}render(){return i(e,{key:"18ad65a18488bd061c2fa8eb2ad33c41a472d850"},i("div",{key:"de7ae9b62cd155d13c5a8d018ea2970d509e74e6",class:"container"},this.items.map((t=>i("ui-toast",{key:t.id,open:!0,heading:t.heading,description:t.description,variant:t.variant??"default",duration:t.duration??4e3,onUiClose:()=>this.remove(t.id)})))))}};s.style=":host{display:contents}.container{position:fixed;bottom:0;right:0;z-index:100;display:flex;flex-direction:column;gap:0.5rem;padding:1rem;max-width:24rem}";export{s as ui_toaster}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as a,h as r,H as t}from"./p-DYwlrXg_.js";const i=class{constructor(r){e(this,r),this.uiClose=a(this,"uiClose"),this.open=!1,this.variant="default",this.duration=4e3}onOpenChange(e){e?this.startTimer():this.clearTimer()}componentDidLoad(){this.open&&this.startTimer()}disconnectedCallback(){this.clearTimer()}startTimer(){this.clearTimer(),this.duration>0&&(this.timer=setTimeout((()=>this.dismiss()),this.duration))}clearTimer(){this.timer&&(clearTimeout(this.timer),this.timer=void 0)}dismiss(){this.clearTimer(),this.open=!1,this.uiClose.emit()}async show(){this.open=!0}async close(){this.dismiss()}render(){return r(t,{key:"
|
|
1
|
+
import{r as e,c as a,h as r,H as t}from"./p-DYwlrXg_.js";const i=class{constructor(r){e(this,r),this.uiClose=a(this,"uiClose"),this.open=!1,this.variant="default",this.duration=4e3}onOpenChange(e){e?this.startTimer():this.clearTimer()}componentDidLoad(){this.open&&this.startTimer()}disconnectedCallback(){this.clearTimer()}startTimer(){this.clearTimer(),this.duration>0&&(this.timer=setTimeout((()=>this.dismiss()),this.duration))}clearTimer(){this.timer&&(clearTimeout(this.timer),this.timer=void 0)}dismiss(){this.clearTimer(),this.open=!1,this.uiClose.emit()}async show(){this.open=!0}async close(){this.dismiss()}render(){return r(t,{key:"fe0318f91899e78faeb2ac07a7a06bfe42f9d3fd"},this.open&&r("div",{key:"66dc197d7a493ad7a7cb9aa982fc92bc0541d21f",class:{toast:!0,[`variant-${this.variant}`]:!0},role:"status"},r("div",{key:"df1fbb34582de4d10a84402653e7d7d528d8faa0",class:"body"},this.heading&&r("p",{key:"7c14d43a9397320bda3a79b60637da9d48c31945",class:"heading"},this.heading),this.description&&r("p",{key:"6c83f1b075b3df34c1ce05e8c43627903ddbba4e",class:"description"},this.description)),r("button",{key:"922acc1bc264b59ce708014decb078182d7909b4",class:"close",type:"button","aria-label":"Fechar",onClick:()=>this.dismiss()},r("svg",{key:"10541297b8fc83a5da11b640933f6c3695602cb0",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},r("line",{key:"964b3dc70120841eb01fffeef9e7ddcbd30880ec",x1:"18",y1:"6",x2:"6",y2:"18"}),r("line",{key:"e45490846076269a527a0f722e32e61206cc2d9d",x1:"6",y1:"6",x2:"18",y2:"18"})))))}static get watchers(){return{open:[{onOpenChange:0}]}}};i.style=":host{display:block}.toast{display:flex;align-items:flex-start;gap:0.75rem;padding:0.875rem 1rem;border:1px solid var(--ui-border);border-left:3px solid var(--ui-accent);border-radius:var(--ui-radius);background:var(--ui-panel-strong);backdrop-filter:blur(22px);box-shadow:var(--ui-shadow-lg);font-family:var(--ui-font-sans);animation:ui-toast-pop var(--ui-duration) var(--ui-ease)}.variant-default{border-left-color:var(--ui-accent)}.variant-success{border-left-color:var(--ui-success)}.variant-warning{border-left-color:var(--ui-warning)}.variant-danger{border-left-color:var(--ui-danger)}.body{flex:1;min-width:0;display:flex;flex-direction:column;gap:0.25rem}.heading{margin:0;font-size:0.875rem;font-weight:600;color:var(--ui-foreground)}.description{margin:0;font-size:0.8125rem;color:var(--ui-text-muted)}.close{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;padding:0.125rem;border:none;background:transparent;color:var(--ui-text-muted);cursor:pointer;border-radius:var(--ui-radius-sm);transition:color var(--ui-duration) var(--ui-ease)}.close:hover{color:var(--ui-foreground)}@keyframes ui-toast-pop{from{opacity:0;transform:translateY(0.5rem) scale(0.98)}to{opacity:1;transform:translateY(0) scale(1)}}";export{i as ui_toast}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,c as s,h as t,H as e,a}from"./p-DYwlrXg_.js";import{a as r,c as o,o as n,f as
|
|
1
|
+
import{r as i,c as s,h as t,H as e,a}from"./p-DYwlrXg_.js";import{a as r,c as o,o as n,f as c,s as h}from"./p-CyBRmmbs.js";const d=class{constructor(t){i(this,t),this.uiOpenChange=s(this,"uiOpenChange"),this.open=!1,this.placement="bottom",this.onTriggerClick=i=>{i.stopPropagation(),this.setOpen(!this.open)},this.onDocumentClick=i=>{this.open&&(i.composedPath().includes(this.host)||this.setOpen(!1))},this.onKeydown=i=>{"Escape"===i.key&&this.open&&this.setOpen(!1)}}onOpenChange(i){i?(requestAnimationFrame((()=>this.start())),document.addEventListener("click",this.onDocumentClick),document.addEventListener("keydown",this.onKeydown)):(this.stop(),document.removeEventListener("click",this.onDocumentClick),document.removeEventListener("keydown",this.onKeydown))}disconnectedCallback(){this.stop(),document.removeEventListener("click",this.onDocumentClick),document.removeEventListener("keydown",this.onKeydown)}async show(){this.setOpen(!0)}async close(){this.setOpen(!1)}setOpen(i){this.open!==i&&(this.open=i,this.uiOpenChange.emit(i))}start(){this.triggerEl&&this.floatingEl&&(this.stop(),this.cleanup=r(this.triggerEl,this.floatingEl,(()=>{this.triggerEl&&this.floatingEl&&o(this.triggerEl,this.floatingEl,{placement:this.placement,middleware:[n(8),c(),h({padding:8})]}).then((({x:i,y:s})=>{Object.assign(this.floatingEl.style,{left:`${i}px`,top:`${s}px`})}))})))}stop(){this.cleanup?.(),this.cleanup=void 0}render(){return t(e,{key:"583667abe2df75e7c9e058b7a668661527ec0b8a"},t("span",{key:"46eaca2ca8c70acff629ccc5c3c201b42136c30d",class:"trigger",ref:i=>this.triggerEl=i,onClick:this.onTriggerClick},t("slot",{key:"d81cf859a9887d3b6964ac8e67829cf1a84c58b2",name:"trigger"})),t("div",{key:"da09ed4fa3eee00ef72fb4c0eba6f0a1b827df15",class:{panel:!0,"is-open":this.open},ref:i=>this.floatingEl=i},t("slot",{key:"f2483196e778a14fbe1d537dd7a3c8a6453c0daf"})))}get host(){return a(this)}static get watchers(){return{open:[{onOpenChange:0}]}}};d.style=":host{display:inline-block}.trigger{display:inline-flex}.panel{position:fixed;top:0;left:0;z-index:50;width:18rem;max-width:calc(100vw - 1rem);padding:1rem;font-family:var(--ui-font-sans);color:var(--ui-foreground);border:1px solid var(--ui-border);background:var(--ui-panel-strong);box-shadow:var(--ui-shadow-lg);backdrop-filter:blur(22px);border-radius:var(--ui-radius);visibility:hidden;opacity:0;transform:scale(0.96);transition:opacity var(--ui-duration) var(--ui-ease), transform var(--ui-duration) var(--ui-ease)}.panel.is-open{visibility:visible;opacity:1;transform:scale(1)}";export{d as ui_popover}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,h as r,H as a}from"./p-DYwlrXg_.js";const t=class{constructor(r){i(this,r),this.value=null,this.max=100,this.indeterminate=!1}get isIndeterminate(){return this.indeterminate||null===this.value}get percent(){return null===this.value||this.max<=0?0:Math.min(Math.max(this.value,0),this.max)/this.max*100}render(){const i=!this.isIndeterminate;return r(a,{key:"66c467df7d762604b0da866268ea75bce4499472",role:"progressbar","aria-valuenow":i?String(this.value):void 0,"aria-valuemin":i?"0":void 0,"aria-valuemax":i?String(this.max):void 0},r("div",{key:"fab67d49344ddd90fbca231212a495c7d2d7a0b1",class:"track"},r("div",{key:"dfbd8b412ad24a297e3dacfabd646b812066421e",class:{indicator:!0,indeterminate:this.isIndeterminate},style:i?{width:`${this.percent}%`}:void 0})))}};t.style=":host{display:block}.track{width:100%;height:0.5rem;border-radius:var(--ui-radius-full);background:var(--ui-chip);border:1px solid var(--ui-border);overflow:hidden;box-sizing:border-box}.indicator{height:100%;min-width:0.5rem;border-radius:var(--ui-radius-full);background:linear-gradient(90deg, var(--ui-accent), var(--ui-accent-strong));box-shadow:0 0 12px color-mix(in srgb, var(--ui-accent) 55%, transparent);transition:width var(--ui-duration) var(--ui-ease)}.indicator.indeterminate{width:40%;min-width:0;animation:ui-progress-slide 1.3s var(--ui-ease) infinite}@keyframes ui-progress-slide{0%{transform:translateX(-110%)}100%{transform:translateX(360%)}}";export{t as ui_progress}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as i,h as r,H as t}from"./p-DYwlrXg_.js";const n="ui-theme",o=class{constructor(r){e(this,r),this.uiThemeChange=i(this,"uiThemeChange"),this.isDark=!1,this.toggle=()=>{if(this.isDark=!this.isDark,"undefined"!=typeof window)try{window.localStorage.setItem(n,this.isDark?"dark":"light")}catch{}this.applyTheme(),this.uiThemeChange.emit(this.isDark?"dark":"light")}}connectedCallback(){this.isDark=this.resolveInitialTheme(),this.applyTheme()}resolveInitialTheme(){if("undefined"==typeof window)return!1;try{const e=window.localStorage.getItem(n);if("dark"===e)return!0;if("light"===e)return!1}catch{}return"function"==typeof window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}applyTheme(){"undefined"!=typeof document&&document.documentElement.classList.toggle("dark",this.isDark)}renderIcon(){return this.isDark?r("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},r("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})):r("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},r("circle",{cx:"12",cy:"12",r:"4"}),r("line",{x1:"12",y1:"2",x2:"12",y2:"4"}),r("line",{x1:"12",y1:"20",x2:"12",y2:"22"}),r("line",{x1:"2",y1:"12",x2:"4",y2:"12"}),r("line",{x1:"20",y1:"12",x2:"22",y2:"12"}),r("line",{x1:"4.93",y1:"4.93",x2:"6.34",y2:"6.34"}),r("line",{x1:"17.66",y1:"17.66",x2:"19.07",y2:"19.07"}),r("line",{x1:"4.93",y1:"19.07",x2:"6.34",y2:"17.66"}),r("line",{x1:"17.66",y1:"6.34",x2:"19.07",y2:"4.93"}))}render(){return r(t,{key:"
|
|
1
|
+
import{r as e,c as i,h as r,H as t}from"./p-DYwlrXg_.js";const n="ui-theme",o=class{constructor(r){e(this,r),this.uiThemeChange=i(this,"uiThemeChange"),this.isDark=!1,this.toggle=()=>{if(this.isDark=!this.isDark,"undefined"!=typeof window)try{window.localStorage.setItem(n,this.isDark?"dark":"light")}catch{}this.applyTheme(),this.uiThemeChange.emit(this.isDark?"dark":"light")}}connectedCallback(){this.isDark=this.resolveInitialTheme(),this.applyTheme()}resolveInitialTheme(){if("undefined"==typeof window)return!1;try{const e=window.localStorage.getItem(n);if("dark"===e)return!0;if("light"===e)return!1}catch{}return"function"==typeof window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}applyTheme(){"undefined"!=typeof document&&document.documentElement.classList.toggle("dark",this.isDark)}renderIcon(){return this.isDark?r("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},r("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})):r("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},r("circle",{cx:"12",cy:"12",r:"4"}),r("line",{x1:"12",y1:"2",x2:"12",y2:"4"}),r("line",{x1:"12",y1:"20",x2:"12",y2:"22"}),r("line",{x1:"2",y1:"12",x2:"4",y2:"12"}),r("line",{x1:"20",y1:"12",x2:"22",y2:"12"}),r("line",{x1:"4.93",y1:"4.93",x2:"6.34",y2:"6.34"}),r("line",{x1:"17.66",y1:"17.66",x2:"19.07",y2:"19.07"}),r("line",{x1:"4.93",y1:"19.07",x2:"6.34",y2:"17.66"}),r("line",{x1:"17.66",y1:"6.34",x2:"19.07",y2:"4.93"}))}render(){return r(t,{key:"6b55c31df3938ab37336e4e4c4ed90e9b149a440"},r("button",{key:"7640122c47871bc67aad6f74b59229219fdb348b",class:"toggle",type:"button","aria-label":this.isDark?"Ativar tema claro":"Ativar tema escuro","aria-pressed":this.isDark?"true":"false",onClick:this.toggle},this.renderIcon()))}};o.style=":host{display:inline-flex}.toggle{display:inline-flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;padding:0;border:1px solid var(--ui-border);border-radius:var(--ui-radius-full);background:var(--ui-chip);color:var(--ui-foreground);cursor:pointer;outline:none;transition:background var(--ui-duration) var(--ui-ease), color var(--ui-duration) var(--ui-ease)}.toggle:focus-visible{box-shadow:0 0 0 2px var(--ui-background), 0 0 0 4px var(--ui-ring)}.toggle:hover{color:var(--ui-accent)}";export{o as ui_theme_toggle}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as t,h as i,H as r,a as s}from"./p-DYwlrXg_.js";const o=class{constructor(i){e(this,i),this.uiSelect=t(this,"uiSelect"),this.disabled=!1,this.onClick=()=>{this.disabled||(this.uiSelect.emit(),this.host.dispatchEvent(new CustomEvent("uiDropdownClose",{bubbles:!0,composed:!0})))}}render(){return i(r,{key:"
|
|
1
|
+
import{r as e,c as t,h as i,H as r,a as s}from"./p-DYwlrXg_.js";const o=class{constructor(i){e(this,i),this.uiSelect=t(this,"uiSelect"),this.disabled=!1,this.onClick=()=>{this.disabled||(this.uiSelect.emit(),this.host.dispatchEvent(new CustomEvent("uiDropdownClose",{bubbles:!0,composed:!0})))}}render(){return i(r,{key:"57af1c437b63fb19cfe297741b2b0f8d34564be9"},i("button",{key:"e3df81eb4c921d8b447c46da5140d21fb8126417",type:"button",class:"item",role:"menuitem",disabled:this.disabled,onClick:this.onClick},i("slot",{key:"162d876af4ed9913c79964afcdceda7539feb95b"})))}get host(){return s(this)}};o.style=":host{display:block}.item{display:flex;align-items:center;gap:0.5rem;width:100%;padding:0.5rem 0.625rem;font-family:var(--ui-font-sans);font-size:0.875rem;text-align:left;color:var(--ui-foreground);background:transparent;border:none;border-radius:var(--ui-radius-sm);cursor:pointer;outline:none;transition:background var(--ui-duration) var(--ui-ease)}.item:hover,.item:focus-visible{background:var(--ui-chip)}.item:focus-visible{box-shadow:0 0 0 2px var(--ui-ring)}.item:disabled{pointer-events:none;opacity:0.5;cursor:default}";export{o as ui_dropdown_item}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as r,H as a}from"./p-DYwlrXg_.js";const o=class{constructor(r){e(this,r)}render(){return r(a,{key:"1608f7f7bd8addc04064a70965fdb28a67a1abef"},r("div",{key:"976e8fa507f78649789161f5eaaa2308547c7040",class:"card"},r("slot",{key:"803ef160438006449051c2068246fd6f20562cc5",name:"title"}),r("slot",{key:"84bfdd0d56b015d09598e53e0002b9ac5e69934d",name:"description"}),r("slot",{key:"97d8522f426b54ab6a8b51038bd8f2b8e2413d0e"}),r("slot",{key:"8b36ab658e61cdebb391d6bb8dc427d809a81b30",name:"footer"})))}};o.style=':host{display:block}.card{display:flex;flex-direction:column;gap:0.5rem;padding:1.5rem;border:1px solid var(--ui-border);background:var(--ui-panel);box-shadow:var(--ui-shadow-lg);backdrop-filter:blur(22px) saturate(140%);border-radius:var(--ui-radius-xl);color:var(--ui-text-soft);font-family:var(--ui-font-sans)}::slotted([slot="title"]){margin:0;font-size:1.125rem;font-weight:600;letter-spacing:-0.01em;color:var(--ui-foreground)}::slotted([slot="description"]){margin:0;font-size:0.875rem;color:var(--ui-text-muted)}::slotted([slot="footer"]){display:flex;gap:0.75rem;margin-top:0.5rem}';export{o as ui_card}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as a,H as f}from"./p-DYwlrXg_.js";const l=class{constructor(a){e(this,a)}render(){return a(f,{key:"5ded9464de8fe01a6bb830f4de51975cfd720746"},a("label",{key:"1a14229c5e511eac3cb4244f546aee71a4f5d399",class:"label"},a("slot",{key:"7c5def32e92ffdc6dcb1b83c044f5199957f5951"})))}};l.style=":host{display:inline-block}.label{font-family:var(--ui-font-sans);font-size:0.875rem;font-weight:500;color:var(--ui-foreground)}";export{l as ui_label}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,h as s,H as o}from"./p-DYwlrXg_.js";const r=class{constructor(s){a(this,s)}render(){return s(o,{key:"e6332a0fa193f07001cf71f61531729529607b2b"},s("slot",{key:"95ab7de2a8344e267fe97cae784b75635cafd289"}))}};r.style=":host{display:block;font-family:var(--ui-font-sans)}";export{r as ui_accordion}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,h as e,H as r}from"./p-DYwlrXg_.js";const i=class{constructor(e){a(this,e)}render(){return e(r,{key:"a7ce8aa1c475aaa92353b0eb6bad5ded231a5cd1"},e("span",{key:"0611976380d3fb93d1ac64bfdc5d4686568c5129",class:"skeleton"}))}};i.style=":host{display:block}.skeleton{display:block;width:100%;height:100%;min-height:1rem;border-radius:var(--ui-radius-sm);background-color:var(--ui-chip);background-image:linear-gradient( 90deg, transparent, color-mix(in srgb, var(--ui-foreground) 12%, transparent), transparent );background-size:200% 100%;background-repeat:no-repeat;animation:ui-skeleton-shimmer 1.5s ease-in-out infinite}@keyframes ui-skeleton-shimmer{0%{background-position:-150% 0}100%{background-position:150% 0}}";export{i as ui_skeleton}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as r,h as i,H as o}from"./p-DYwlrXg_.js";const a=class{constructor(i){e(this,i),this.uiChange=r(this,"uiChange"),this.disabled=!1,this.options=[],this.onChange=e=>{const r=e.target.value;this.value=r,this.uiChange.emit(r)}}render(){return i(o,{key:"1ebd6a8472a116ad071e9504ab0756daddb27824"},i("div",{key:"5d2d00f41b8f74202156d0af7c150b89d79dc1a4",class:"wrapper"},i("select",{key:"7b370433247f03a126ce13005a3697ba5b04845f",class:"select",name:this.name,disabled:this.disabled,onChange:this.onChange},this.placeholder&&i("option",{key:"9e482642eebeab0b1b1c5b56a6730fb5ecbd9617",value:"",disabled:!0,selected:!(void 0!==this.value&&""!==this.value)},this.placeholder),this.options.map((e=>i("option",{value:e.value,selected:e.value===this.value},e.label)))),i("svg",{key:"7d66788b8d8b51169ae28e5e5c5a31c0b637e377",class:"chevron",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},i("polyline",{key:"aaa00671ba95ebd20f81174fc27bf218b16dfc64",points:"6 9 12 15 18 9"}))))}};a.style=":host{display:block}.wrapper{position:relative;display:block;width:100%}.select{width:100%;height:2.75rem;padding:0 2.5rem 0 1rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius-sm);background:var(--ui-panel);color:var(--ui-foreground);font-family:var(--ui-font-sans);font-size:0.875rem;outline:none;backdrop-filter:blur(22px);transition:all var(--ui-duration) var(--ui-ease);box-sizing:border-box;cursor:pointer;-webkit-appearance:none;appearance:none}.select:hover:not(:disabled){border-color:var(--ui-border-strong)}.select:focus-visible{border-color:var(--ui-accent);box-shadow:0 0 0 2px var(--ui-ring)}.select:disabled{opacity:0.5;pointer-events:none}.chevron{position:absolute;top:50%;right:0.875rem;width:1.125rem;height:1.125rem;color:var(--ui-text-muted);transform:translateY(-50%);pointer-events:none}";export{a as ui_select}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,c as s,h as t,H as e,a}from"./p-DYwlrXg_.js";import{a as o,c as r,o as n,f as
|
|
1
|
+
import{r as i,c as s,h as t,H as e,a}from"./p-DYwlrXg_.js";import{a as o,c as r,o as n,f as d,s as h}from"./p-CyBRmmbs.js";const c=class{constructor(t){i(this,t),this.uiOpenChange=s(this,"uiOpenChange"),this.open=!1,this.placement="bottom",this.onTriggerClick=i=>{i.stopPropagation(),this.setOpen(!this.open)},this.onDocumentClick=i=>{this.open&&(i.composedPath().includes(this.host)||this.setOpen(!1))},this.onKeydown=i=>{"Escape"===i.key&&this.open&&this.setOpen(!1)}}onOpenChange(i){i?(requestAnimationFrame((()=>this.start())),document.addEventListener("click",this.onDocumentClick),document.addEventListener("keydown",this.onKeydown)):(this.stop(),document.removeEventListener("click",this.onDocumentClick),document.removeEventListener("keydown",this.onKeydown))}disconnectedCallback(){this.stop(),document.removeEventListener("click",this.onDocumentClick),document.removeEventListener("keydown",this.onKeydown)}async show(){this.setOpen(!0)}async close(){this.setOpen(!1)}onItemClose(){this.setOpen(!1)}setOpen(i){this.open!==i&&(this.open=i,this.uiOpenChange.emit(i))}start(){this.triggerEl&&this.floatingEl&&(this.stop(),this.cleanup=o(this.triggerEl,this.floatingEl,(()=>{this.triggerEl&&this.floatingEl&&r(this.triggerEl,this.floatingEl,{placement:this.placement,middleware:[n(8),d(),h({padding:8})]}).then((({x:i,y:s})=>{Object.assign(this.floatingEl.style,{left:`${i}px`,top:`${s}px`})}))})))}stop(){this.cleanup?.(),this.cleanup=void 0}render(){return t(e,{key:"65adc044508abd9ebf4b866fba02058bdcd22d5d"},t("span",{key:"e70a23e1b41c7936ab1dc3a87cd3593b3db43088",class:"trigger",ref:i=>this.triggerEl=i,onClick:this.onTriggerClick},t("slot",{key:"40f2226b6ba6f1d3032cd2b2f2477fbcdf9617b5",name:"trigger"})),t("div",{key:"6af4ab3c98a9334d805e75da724d5572e4c986aa",class:{menu:!0,"is-open":this.open},role:"menu",ref:i=>this.floatingEl=i},t("slot",{key:"7f99ba16ab9544d5cf63b28f77f18fd4d0fbbed2"})))}get host(){return a(this)}static get watchers(){return{open:[{onOpenChange:0}]}}};c.style=":host{display:inline-block}.trigger{display:inline-flex}.menu{position:fixed;top:0;left:0;z-index:50;display:flex;flex-direction:column;gap:0.125rem;min-width:10rem;max-width:calc(100vw - 1rem);padding:0.375rem;font-family:var(--ui-font-sans);color:var(--ui-foreground);border:1px solid var(--ui-border);background:var(--ui-panel-strong);box-shadow:var(--ui-shadow-lg);backdrop-filter:blur(22px);border-radius:var(--ui-radius);visibility:hidden;opacity:0;transform:scale(0.96);transition:opacity var(--ui-duration) var(--ui-ease), transform var(--ui-duration) var(--ui-ease)}.menu.is-open{visibility:visible;opacity:1;transform:scale(1)}";export{c as ui_dropdown_menu}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as s,H as t,a as r}from"./p-DYwlrXg_.js";const a=class{constructor(s){e(this,s),this.delay=0,this.visible=!1}connectedCallback(){"undefined"!=typeof IntersectionObserver?(this.observer=new IntersectionObserver((e=>{for(const s of e)if(s.isIntersecting){this.visible=!0,this.observer?.disconnect();break}})),this.observer.observe(this.host)):this.visible=!0}disconnectedCallback(){this.observer?.disconnect()}render(){return s(t,{key:"
|
|
1
|
+
import{r as e,h as s,H as t,a as r}from"./p-DYwlrXg_.js";const a=class{constructor(s){e(this,s),this.delay=0,this.visible=!1}connectedCallback(){"undefined"!=typeof IntersectionObserver?(this.observer=new IntersectionObserver((e=>{for(const s of e)if(s.isIntersecting){this.visible=!0,this.observer?.disconnect();break}})),this.observer.observe(this.host)):this.visible=!0}disconnectedCallback(){this.observer?.disconnect()}render(){return s(t,{key:"0af93c131bf8564bf952ca61637041089b5c34b7"},s("div",{key:"94a0fc0cf5445b9832994c19eb5600f6227ccc97",class:{reveal:!0,visible:this.visible},style:{transitionDelay:`${this.delay}ms`}},s("slot",{key:"2a47e0af589790cbe5cfbc10ef49ffde1aced931"})))}get host(){return r(this)}};a.style=":host{display:block}.reveal{opacity:0;transform:translateY(16px);filter:blur(8px);transition:opacity 0.6s var(--ui-ease), transform 0.6s var(--ui-ease), filter 0.6s var(--ui-ease)}.reveal.visible{opacity:1;transform:none;filter:none}";export{a as ui_reveal}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,c as i,h as a,H as t}from"./p-DYwlrXg_.js";const e=class{constructor(a){r(this,a),this.uiInput=i(this,"uiInput"),this.uiChange=i(this,"uiChange"),this.value="",this.disabled=!1,this.invalid=!1,this.rows=4,this.onInput=r=>{const i=r.target;this.value=i.value,this.uiInput.emit(i.value)},this.onChange=r=>{this.uiChange.emit(r.target.value)}}render(){return a(t,{key:"f0bafb6320cd48642dac3b5f1e07399f88a78b03"},a("textarea",{key:"fc99c0b899dd17477928b9f38273fd822d46935b",class:{textarea:!0,invalid:this.invalid},name:this.name,rows:this.rows,placeholder:this.placeholder,disabled:this.disabled,"aria-invalid":this.invalid?"true":null,onInput:this.onInput,onChange:this.onChange},this.value))}};e.style=":host{display:block}.textarea{width:100%;min-height:7rem;padding:0.75rem 1rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius-sm);background:var(--ui-panel);color:var(--ui-foreground);font-family:var(--ui-font-sans);font-size:0.875rem;line-height:1.5;outline:none;backdrop-filter:blur(22px);transition:all var(--ui-duration) var(--ui-ease);box-sizing:border-box;resize:vertical}.textarea::placeholder{color:var(--ui-text-faint)}.textarea:hover:not(:disabled){border-color:var(--ui-border-strong)}.textarea:focus-visible{border-color:var(--ui-accent);box-shadow:0 0 0 2px var(--ui-ring)}.textarea:disabled{opacity:0.5;pointer-events:none}.textarea.invalid{border-color:var(--ui-danger)}.textarea.invalid:focus-visible{box-shadow:0 0 0 2px color-mix(in srgb, var(--ui-danger) 40%, transparent)}";export{e as ui_textarea}
|
package/dist/uikit/uikit.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,g as
|
|
1
|
+
import{p as e,g as a,b as i}from"./p-DYwlrXg_.js";export{s as setNonce}from"./p-DYwlrXg_.js";(()=>{const a=import.meta.url,i={};return""!==a&&(i.resourcesUrl=new URL(".",a).href),e(i)})().then((async e=>(await a(),i([["p-fd05c146",[[1,"ui-loading-overlay",{visible:[4],label:[1],spinnerSize:[1,"spinner-size"]}]]],["p-7b2a9e68",[[1,"ui-toaster",{items:[32],toast:[64]}]]],["p-d13860dc",[[257,"ui-accordion"]]],["p-32df7fd0",[[257,"ui-accordion-item",{heading:[1],open:[1540]}]]],["p-5555523c",[[1,"ui-avatar",{src:[1],alt:[1],fallback:[1]}]]],["p-24edfe3e",[[257,"ui-badge",{variant:[1]}]]],["p-9c57cf57",[[257,"ui-button",{variant:[1],size:[1],disabled:[4],loading:[4],type:[1]}]]],["p-b0aba484",[[257,"ui-card"]]],["p-0096eefe",[[1,"ui-checkbox",{checked:[1540],disabled:[4],name:[1],value:[1]}]]],["p-58ed99a2",[[257,"ui-dialog",{open:[1540],show:[64],close:[64]},null,{open:[{onOpenChange:0}]}]]],["p-777c6902",[[257,"ui-drawer",{open:[1540],side:[513],show:[64],close:[64]},null,{open:[{onOpenChange:0}]}]]],["p-a0ccdb22",[[257,"ui-dropdown-item",{disabled:[516]}]]],["p-e0652ddf",[[257,"ui-dropdown-menu",{open:[1540],placement:[1],show:[64],close:[64]},[[0,"uiDropdownClose","onItemClose"]],{open:[{onOpenChange:0}]}]]],["p-128ae3e4",[[257,"ui-field",{label:[1],description:[1],error:[1],required:[4],fieldId:[1,"field-id"]}]]],["p-11350db1",[[1,"ui-input",{value:[1025],placeholder:[1],type:[1],disabled:[4],invalid:[4],name:[1]}]]],["p-cf56c9ba",[[257,"ui-label"]]],["p-97de6ea6",[[257,"ui-popover",{open:[1540],placement:[1],show:[64],close:[64]},null,{open:[{onOpenChange:0}]}]]],["p-9b43d670",[[1,"ui-progress",{value:[2],max:[2],indeterminate:[4]}]]],["p-4a1abc1c",[[1,"ui-radio-group",{value:[1025],name:[1],options:[16],disabled:[4]}]]],["p-e54139a1",[[257,"ui-reveal",{delay:[2],visible:[32]}]]],["p-38cbea54",[[1,"ui-scroll-progress",{progress:[32]}]]],["p-6fa4be86",[[257,"ui-section",{eyebrow:[1],heading:[1],description:[1]}]]],["p-d8e7ae10",[[1,"ui-select",{value:[1025],disabled:[4],name:[1],options:[16],placeholder:[1]}]]],["p-9aa557d1",[[1,"ui-separator",{orientation:[513]}]]],["p-d6c9bfbc",[[1,"ui-skeleton"]]],["p-29fe5b7f",[[1,"ui-slider",{value:[1026],min:[2],max:[2],step:[2],disabled:[4]}]]],["p-777d8c7a",[[1,"ui-switch",{checked:[1540],disabled:[4]}]]],["p-280337b0",[[257,"ui-tabs",{value:[1537],items:[16]}]]],["p-ed1111eb",[[1,"ui-textarea",{value:[1025],placeholder:[1],disabled:[4],invalid:[4],name:[1],rows:[2]}]]],["p-9f0d4ae1",[[1,"ui-theme-toggle",{isDark:[32]}]]],["p-3c866608",[[257,"ui-tooltip",{content:[1],placement:[1],openDelay:[2,"open-delay"],visible:[32]}]]],["p-83159bfc",[[1,"ui-spinner",{size:[1]}]]],["p-8a238373",[[1,"ui-toast",{open:[1540],variant:[1],heading:[1],description:[1],duration:[2],show:[64],close:[64]},null,{open:[{onOpenChange:0}]}]]]],e))));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@andespindola/ui-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Web Components (design system) com a identidade visual do portfólio andersonespindola.com — base agnóstica de framework para React, Angular e qualquer app.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Anderson Espindola <andersonfaustinolima@gmail.com>",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,c as r,h as i,H as t}from"./p-DYwlrXg_.js";const e=class{constructor(i){a(this,i),this.uiChange=r(this,"uiChange"),this.value="",this.items=[],this.select=a=>{a!==this.value&&(this.value=a,this.uiChange.emit(a))}}render(){return i(t,{key:"8828dc9385a8c206a751e39fda9869116dda3001"},i("div",{key:"8e13dc53f1c03da5a52adb8ec86da91c78c502b2",class:"tablist",role:"tablist"},this.items.map((a=>{const r=a.value===this.value;return i("button",{key:a.value,class:{tab:!0,active:r},type:"button",role:"tab","aria-selected":r?"true":"false",onClick:()=>this.select(a.value)},a.label)}))),i("slot",{key:"1cd08dfe5ae2e2b6bf55eb90cb55f2c757c5589f",name:this.value}))}};e.style=":host{display:block;font-family:var(--ui-font-sans)}.tablist{display:inline-flex;gap:0.25rem;padding:0.25rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius-full);background:var(--ui-chip)}.tab{appearance:none;border:none;padding:0.375rem 0.875rem;border-radius:var(--ui-radius-full);background:transparent;color:var(--ui-text-muted);font:inherit;font-size:0.875rem;font-weight:500;cursor:pointer;outline:none;transition:background var(--ui-duration) var(--ui-ease), color var(--ui-duration) var(--ui-ease)}.tab:focus-visible{box-shadow:0 0 0 2px var(--ui-background), 0 0 0 4px var(--ui-ring)}.tab.active{background:var(--ui-panel-strong);color:var(--ui-foreground)}";export{e as ui_tabs}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,H as i}from"./p-DYwlrXg_.js";const s=class{constructor(e){t(this,e),this.items=[],this.counter=0}async toast(t){const e=`toast-${this.counter++}-${Math.random().toString(36).slice(2)}`;this.items=[...this.items,{...t,id:e}]}remove(t){this.items=this.items.filter((e=>e.id!==t))}render(){return e(i,{key:"51de8367f0037a6b7ea809bb643d0a20e41553bf"},e("div",{key:"34a6d8310ce460ee5cec6e87ab20266a9a522177",class:"container"},this.items.map((t=>e("ui-toast",{key:t.id,open:!0,heading:t.heading,description:t.description,variant:t.variant??"default",duration:t.duration??4e3,onUiClose:()=>this.remove(t.id)})))))}};s.style=":host{display:contents}.container{position:fixed;bottom:0;right:0;z-index:100;display:flex;flex-direction:column;gap:0.5rem;padding:1rem;max-width:24rem}";export{s as ui_toaster}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,h as t,H as s,a as e}from"./p-DYwlrXg_.js";import{a as o,c as r,o as a,f as h,s as n}from"./p-CyBRmmbs.js";const d=class{constructor(t){i(this,t),this.content="",this.placement="top",this.openDelay=200,this.visible=!1,this.onEnter=()=>{this.timer&&clearTimeout(this.timer),this.timer=setTimeout((()=>{this.visible=!0,requestAnimationFrame((()=>this.start()))}),this.openDelay)},this.onLeave=()=>{this.timer&&clearTimeout(this.timer),this.visible=!1,this.stop()}}disconnectedCallback(){this.stop(),this.timer&&clearTimeout(this.timer)}start(){this.triggerEl&&this.floatingEl&&(this.stop(),this.cleanup=o(this.triggerEl,this.floatingEl,(()=>{this.triggerEl&&this.floatingEl&&r(this.triggerEl,this.floatingEl,{placement:this.placement,middleware:[a(8),h(),n({padding:8})]}).then((({x:i,y:t})=>{Object.assign(this.floatingEl.style,{left:`${i}px`,top:`${t}px`})}))})))}stop(){this.cleanup?.(),this.cleanup=void 0}render(){return t(s,{key:"49f898bc54da31cf9f6b5189577bae89f6681bf8",onMouseEnter:this.onEnter,onMouseLeave:this.onLeave,onFocusin:this.onEnter,onFocusout:this.onLeave},t("span",{key:"394744f0b34ec0c534b417ba520f2b805b582802",class:"trigger",ref:i=>this.triggerEl=i},t("slot",{key:"7afd6d807490d8af4fffeb38e69de825f7d3c138"})),t("div",{key:"3d12cffd7fd903ec6178961bf40476b063ee1563",class:{tooltip:!0,"is-visible":this.visible},role:"tooltip",ref:i=>this.floatingEl=i},this.content))}get host(){return e(this)}};d.style=":host{display:inline-block}.trigger{display:inline-flex}.tooltip{position:fixed;top:0;left:0;z-index:50;width:max-content;max-width:18rem;padding:0.375rem 0.75rem;font-family:var(--ui-font-sans);font-size:0.75rem;line-height:1.4;color:var(--ui-foreground);border:1px solid var(--ui-border);background:var(--ui-panel-strong);box-shadow:var(--ui-shadow-lg);backdrop-filter:blur(22px);border-radius:var(--ui-radius-sm);pointer-events:none;opacity:0;transform:scale(0.96);transition:opacity var(--ui-duration) var(--ui-ease), transform var(--ui-duration) var(--ui-ease)}.tooltip.is-visible{opacity:1;transform:scale(1)}";export{d as ui_tooltip}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as a,H as c}from"./p-DYwlrXg_.js";const l=class{constructor(a){e(this,a)}render(){return a(c,{key:"bb726d8b26a82776e688532b6fbe69c178308c75"},a("label",{key:"bfd33ad1561fcee62395be37e83894cdce0ec259",class:"label"},a("slot",{key:"c0ac5938df3aea7219a59caf46cb7cd152046770"})))}};l.style=":host{display:inline-block}.label{font-family:var(--ui-font-sans);font-size:0.875rem;font-weight:500;color:var(--ui-foreground)}";export{l as ui_label}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,h as s,H as o}from"./p-DYwlrXg_.js";const r=class{constructor(s){a(this,s)}render(){return s(o,{key:"0d6a0faf16d8cacc925818349b38f8acaa186fdb"},s("slot",{key:"060f07d2ed0104666101f2984affc84eb33239d0"}))}};r.style=":host{display:block;font-family:var(--ui-font-sans)}";export{r as ui_accordion}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as r,H as a}from"./p-DYwlrXg_.js";const i=class{constructor(r){e(this,r),this.required=!1}render(){return r(a,{key:"1f944085a10d6c795ce06a7a91021fee46780347"},r("div",{key:"a2f2fde238292d543c65bf6e1ed0dfd0dce424f9",class:"field"},this.label&&r("label",{key:"4f450b5e43f1ea8dda3b3134022a010391a2f404",class:"label",htmlFor:this.fieldId},this.label,this.required&&r("span",{key:"1853d16b19752584b646a294dcbe2b8359ec12b4",class:"required","aria-hidden":"true"}," *")),r("slot",{key:"75adc24c2264e3e954618737769232535caa13e4"}),this.error?r("p",{class:"error",role:"alert"},this.error):this.description&&r("p",{class:"description"},this.description)))}};i.style=":host{display:block}.field{display:flex;flex-direction:column;gap:0.375rem}.label{font-family:var(--ui-font-sans);font-size:0.875rem;font-weight:500;color:var(--ui-foreground)}.required{color:var(--ui-danger)}.error{margin:0;font-family:var(--ui-font-sans);font-size:0.75rem;color:var(--ui-danger)}.description{margin:0;font-family:var(--ui-font-sans);font-size:0.75rem;color:var(--ui-text-muted)}";export{i as ui_field}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as a,H as t}from"./p-DYwlrXg_.js";const r=class{constructor(a){e(this,a),this.eyebrow="",this.heading="",this.description=""}render(){return a(t,{key:"63ee126b1e457a4dcd01a66aa519e6fae8377db6"},a("section",{key:"34f3c07dca2e9f6a3c288b7c41abaf2a3502129f"},this.eyebrow&&a("p",{key:"7c71e3e38e56872757d017ba4f59949f50518c6f",class:"eyebrow"},this.eyebrow),this.heading&&a("h2",{key:"b8f42a4ae5d2e5d8fb80a4cb9de07ca10c2423fd",class:"heading"},this.heading),this.description&&a("p",{key:"faeba9733afaa52e7a08629459dd708b4f647740",class:"description"},this.description),a("slot",{key:"99e906d4ca93461c35125acb4eb3401ed76929fe"})))}};r.style=":host{display:block;font-family:var(--ui-font-sans)}section{max-width:80rem;margin:0 auto;padding:5rem 1.25rem}.eyebrow{margin:0 0 0.75rem;text-transform:uppercase;letter-spacing:0.08em;font-size:0.75rem;font-weight:600;color:var(--ui-accent)}.heading{margin:0 0 1rem;font-size:1.875rem;font-weight:600;color:var(--ui-foreground)}.description{margin:0 0 2rem;max-width:42rem;color:var(--ui-text-muted)}";export{r as ui_section}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,h as r,H as t}from"./p-DYwlrXg_.js";const e=class{constructor(r){i(this,r),this.value=null,this.max=100,this.indeterminate=!1}get isIndeterminate(){return this.indeterminate||null===this.value}get percent(){return null===this.value||this.max<=0?0:Math.min(Math.max(this.value,0),this.max)/this.max*100}render(){const i=!this.isIndeterminate;return r(t,{key:"0be3e6f551bf5401e033a7faba2787eb4166eb0a",role:"progressbar","aria-valuenow":i?String(this.value):void 0,"aria-valuemin":i?"0":void 0,"aria-valuemax":i?String(this.max):void 0},r("div",{key:"89151bf96326053ce60b71a2f2f9b6c13d721e39",class:"track"},r("div",{key:"2cdf8f8cbbe7729813e8e78b671fc43b7ebec153",class:{indicator:!0,indeterminate:this.isIndeterminate},style:i?{width:`${this.percent}%`}:void 0})))}};e.style=":host{display:block}.track{width:100%;height:0.5rem;border-radius:var(--ui-radius-full);background:var(--ui-chip);overflow:hidden}.indicator{height:100%;border-radius:var(--ui-radius-full);background:var(--ui-accent);transition:width var(--ui-duration) var(--ui-ease)}.indicator.indeterminate{width:40%;animation:ui-progress-slide 1.2s ease-in-out infinite}@keyframes ui-progress-slide{0%{transform:translateX(-100%)}100%{transform:translateX(250%)}}";export{e as ui_progress}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,c as r,h as a,H as e}from"./p-DYwlrXg_.js";const t=class{constructor(a){i(this,a),this.uiInput=r(this,"uiInput"),this.uiChange=r(this,"uiChange"),this.value="",this.disabled=!1,this.invalid=!1,this.rows=4,this.onInput=i=>{const r=i.target;this.value=r.value,this.uiInput.emit(r.value)},this.onChange=i=>{this.uiChange.emit(i.target.value)}}render(){return a(e,{key:"9dfb606e8b193b4ce3cc9f085454ff849892e838"},a("textarea",{key:"0f4aa4078cae931c3e246613d51645162673b7d5",class:{textarea:!0,invalid:this.invalid},name:this.name,rows:this.rows,placeholder:this.placeholder,disabled:this.disabled,"aria-invalid":this.invalid?"true":null,onInput:this.onInput,onChange:this.onChange},this.value))}};t.style=":host{display:block}.textarea{width:100%;min-height:7rem;padding:0.75rem 1rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius-sm);background:var(--ui-panel);color:var(--ui-foreground);font-family:var(--ui-font-sans);font-size:0.875rem;line-height:1.5;outline:none;backdrop-filter:blur(22px);transition:all var(--ui-duration) var(--ui-ease);box-sizing:border-box;resize:vertical}.textarea::placeholder{color:var(--ui-text-faint)}.textarea:focus-visible{border-color:var(--ui-accent);box-shadow:0 0 0 2px var(--ui-ring)}.textarea:disabled{opacity:0.5;pointer-events:none}.textarea.invalid{border-color:var(--ui-danger)}.textarea.invalid:focus-visible{box-shadow:0 0 0 2px color-mix(in srgb, var(--ui-danger) 40%, transparent)}";export{t as ui_textarea}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as i,H as s}from"./p-DYwlrXg_.js";const a=class{constructor(i){e(this,i)}render(){return i(s,{key:"19b59c75e9ff1607c731227bd344a0d082de5366"},i("span",{key:"6eb968b5bd87768818381db897a090a2783ad938",class:"skeleton"}))}};a.style=":host{display:block}.skeleton{display:block;width:100%;height:100%;border-radius:var(--ui-radius-sm);background:linear-gradient( 90deg, var(--ui-chip), var(--ui-panel), var(--ui-chip) );background-size:200% 100%;animation:ui-skeleton-shimmer 1.5s ease-in-out infinite}@keyframes ui-skeleton-shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}";export{a as ui_skeleton}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r,h as e,H as o}from"./p-DYwlrXg_.js";const d=class{constructor(e){r(this,e)}render(){return e(o,{key:"7e2833cdc6f37c6b8577c17677840913fb7cd9e1"},e("div",{key:"223c291e98af73ee2c299b8649773cfcf54388d7",class:"card"},e("slot",{key:"e948386bcd492c31e264d50cf27d26e98dd771eb"})))}};d.style=':host{display:block}.card{border:1px solid var(--ui-border);background:var(--ui-panel);box-shadow:var(--ui-shadow-lg);backdrop-filter:blur(22px) saturate(140%);border-radius:var(--ui-radius-xl);color:var(--ui-foreground);padding:1.5rem}::slotted([slot="title"]){font-size:1.125rem;font-weight:600;letter-spacing:-0.01em}::slotted([slot="description"]){color:var(--ui-text-muted);font-size:0.875rem}';export{d as ui_card}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as i,h as r,H as a}from"./p-DYwlrXg_.js";const t=class{constructor(r){e(this,r),this.uiChange=i(this,"uiChange"),this.disabled=!1,this.options=[],this.onChange=e=>{const i=e.target.value;this.value=i,this.uiChange.emit(i)}}render(){return r(a,{key:"1ebd6a8472a116ad071e9504ab0756daddb27824"},r("div",{key:"5d2d00f41b8f74202156d0af7c150b89d79dc1a4",class:"wrapper"},r("select",{key:"7b370433247f03a126ce13005a3697ba5b04845f",class:"select",name:this.name,disabled:this.disabled,onChange:this.onChange},this.placeholder&&r("option",{key:"9e482642eebeab0b1b1c5b56a6730fb5ecbd9617",value:"",disabled:!0,selected:!(void 0!==this.value&&""!==this.value)},this.placeholder),this.options.map((e=>r("option",{value:e.value,selected:e.value===this.value},e.label)))),r("svg",{key:"7d66788b8d8b51169ae28e5e5c5a31c0b637e377",class:"chevron",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},r("polyline",{key:"aaa00671ba95ebd20f81174fc27bf218b16dfc64",points:"6 9 12 15 18 9"}))))}};t.style=":host{display:block}.wrapper{position:relative;display:block;width:100%}.select{width:100%;height:2.75rem;padding:0 2.5rem 0 1rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius-sm);background:var(--ui-panel);color:var(--ui-foreground);font-family:var(--ui-font-sans);font-size:0.875rem;outline:none;backdrop-filter:blur(22px);transition:all var(--ui-duration) var(--ui-ease);box-sizing:border-box;cursor:pointer;-webkit-appearance:none;appearance:none}.select:focus-visible{border-color:var(--ui-accent);box-shadow:0 0 0 2px var(--ui-ring)}.select:disabled{opacity:0.5;pointer-events:none}.chevron{position:absolute;top:50%;right:0.875rem;width:1.125rem;height:1.125rem;color:var(--ui-text-muted);transform:translateY(-50%);pointer-events:none}";export{t as ui_select}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as a,h as r,H as o}from"./p-DYwlrXg_.js";const t=class{constructor(r){e(this,r),this.uiToggle=a(this,"uiToggle"),this.heading="",this.open=!1,this.onToggle=e=>{this.open=e.currentTarget.open,this.uiToggle.emit(this.open)}}render(){return r(o,{key:"c1c8a792a0e8ab52c4750af995c98ffda3b47cf0"},r("details",{key:"3eaa096ad9a9b0f22fe0b2a34b254deb4e6b7df5",open:this.open,onToggle:this.onToggle},r("summary",{key:"eb86d25aa684879440b87ce1113d282fb07e81ce"},r("span",{key:"c70e1823bec0a32432cf74438c6d62a7b145e067",class:"heading"},this.heading),r("svg",{key:"65f9e9179ec29d10115a6938be5fb2481bdcbcfc",class:"chevron",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},r("polyline",{key:"def877261275e0eb0f830651fe35d524497686b9",points:"6 9 12 15 18 9"}))),r("div",{key:"91c0120a4a7c02cbdb97bded4c77e6eeea63ce83",class:"content"},r("slot",{key:"590ed083fb0a3969bdadb2376532b4ceb9bcc597"}))))}};t.style=":host{display:block;font-family:var(--ui-font-sans);border-bottom:1px solid var(--ui-border)}summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 0;cursor:pointer;font-weight:500;color:var(--ui-foreground);list-style:none;outline:none}summary::-webkit-details-marker{display:none}summary:focus-visible{box-shadow:0 0 0 2px var(--ui-background), 0 0 0 4px var(--ui-ring);border-radius:var(--ui-radius-sm)}.chevron{flex:none;color:var(--ui-text-muted);transition:transform var(--ui-duration) var(--ui-ease)}details[open] .chevron{transform:rotate(180deg)}.content{padding-bottom:1rem;color:var(--ui-text-muted)}";export{t as ui_accordion_item}
|