@andespindola/ui-core 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ui-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/ui-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ui-alert.cjs.entry.js +40 -0
- package/dist/cjs/ui-avatar-group.cjs.entry.js +17 -0
- package/dist/cjs/ui-avatar.cjs.entry.js +2 -2
- package/dist/cjs/ui-badge.cjs.entry.js +7 -2
- package/dist/cjs/ui-breadcrumb-item.cjs.entry.js +23 -0
- package/dist/cjs/ui-breadcrumb.cjs.entry.js +17 -0
- package/dist/cjs/ui-button.cjs.entry.js +5 -3
- package/dist/cjs/ui-card.cjs.entry.js +1 -1
- package/dist/cjs/ui-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/ui-container.cjs.entry.js +26 -0
- 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-grid.cjs.entry.js +34 -0
- package/dist/cjs/ui-input.cjs.entry.js +10 -2
- package/dist/cjs/ui-label.cjs.entry.js +1 -1
- package/dist/cjs/ui-pagination.cjs.entry.js +63 -0
- package/dist/cjs/ui-popover.cjs.entry.js +1 -1
- package/dist/cjs/ui-progress.cjs.entry.js +1 -1
- package/dist/cjs/ui-radio-group.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/ui-segmented.cjs.entry.js +31 -0
- package/dist/cjs/ui-select.cjs.entry.js +1 -1
- package/dist/cjs/ui-separator.cjs.entry.js +1 -1
- package/dist/cjs/ui-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/ui-slider.cjs.entry.js +1 -1
- package/dist/cjs/ui-spinner.cjs.entry.js +1 -1
- package/dist/cjs/ui-stack.cjs.entry.js +53 -0
- package/dist/cjs/ui-stat.cjs.entry.js +28 -0
- 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 +1 -1
- 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 +1 -1
- package/dist/cjs/uikit.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +10 -0
- package/dist/collection/components/ui-accordion/ui-accordion.js +1 -1
- package/dist/collection/components/ui-accordion-item/ui-accordion-item.js +1 -1
- package/dist/collection/components/ui-alert/ui-alert.css +95 -0
- package/dist/collection/components/ui-alert/ui-alert.js +134 -0
- package/dist/collection/components/ui-avatar/ui-avatar.css +31 -0
- package/dist/collection/components/ui-avatar/ui-avatar.js +20 -1
- package/dist/collection/components/ui-avatar-group/ui-avatar-group.css +22 -0
- package/dist/collection/components/ui-avatar-group/ui-avatar-group.js +21 -0
- package/dist/collection/components/ui-badge/ui-badge.css +26 -0
- package/dist/collection/components/ui-badge/ui-badge.js +63 -1
- package/dist/collection/components/ui-breadcrumb/ui-breadcrumb.css +15 -0
- package/dist/collection/components/ui-breadcrumb/ui-breadcrumb.js +18 -0
- package/dist/collection/components/ui-breadcrumb-item/ui-breadcrumb-item.css +30 -0
- package/dist/collection/components/ui-breadcrumb-item/ui-breadcrumb-item.js +69 -0
- package/dist/collection/components/ui-button/ui-button.css +11 -1
- package/dist/collection/components/ui-button/ui-button.js +24 -2
- package/dist/collection/components/ui-card/ui-card.js +1 -1
- package/dist/collection/components/ui-checkbox/ui-checkbox.css +6 -2
- package/dist/collection/components/ui-checkbox/ui-checkbox.js +1 -1
- package/dist/collection/components/ui-container/ui-container.css +38 -0
- package/dist/collection/components/ui-container/ui-container.js +79 -0
- 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-grid/ui-grid.css +8 -0
- package/dist/collection/components/ui-grid/ui-grid.js +106 -0
- package/dist/collection/components/ui-input/ui-input.css +65 -14
- package/dist/collection/components/ui-input/ui-input.js +29 -1
- package/dist/collection/components/ui-label/ui-label.js +1 -1
- package/dist/collection/components/ui-pagination/ui-pagination.css +59 -0
- package/dist/collection/components/ui-pagination/ui-pagination.js +147 -0
- package/dist/collection/components/ui-popover/ui-popover.js +1 -1
- package/dist/collection/components/ui-progress/ui-progress.js +1 -1
- package/dist/collection/components/ui-radio-group/ui-radio-group.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.js +1 -1
- package/dist/collection/components/ui-segmented/ui-segmented.css +46 -0
- package/dist/collection/components/ui-segmented/ui-segmented.js +99 -0
- package/dist/collection/components/ui-select/ui-select.js +1 -1
- package/dist/collection/components/ui-separator/ui-separator.js +1 -1
- 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-spinner/ui-spinner.js +1 -1
- package/dist/collection/components/ui-stack/ui-stack.css +8 -0
- package/dist/collection/components/ui-stack/ui-stack.js +184 -0
- package/dist/collection/components/ui-stat/ui-stat.css +69 -0
- package/dist/collection/components/ui-stat/ui-stat.js +118 -0
- package/dist/collection/components/ui-switch/ui-switch.js +1 -1
- package/dist/collection/components/ui-tabs/ui-tabs.js +2 -2
- 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.js +1 -1
- package/dist/components/{p-Bz9HyboB.js → p-BwNtNvTb.js} +1 -1
- package/dist/components/{p-fApcMAzN.js → p-CgsjJD8o.js} +1 -1
- package/dist/components/ui-accordion-item.js +1 -1
- package/dist/components/ui-accordion.js +1 -1
- package/dist/components/ui-alert.d.ts +11 -0
- package/dist/components/ui-alert.js +1 -0
- package/dist/components/ui-avatar-group.d.ts +11 -0
- package/dist/components/ui-avatar-group.js +1 -0
- package/dist/components/ui-avatar.js +1 -1
- package/dist/components/ui-badge.js +1 -1
- package/dist/components/ui-breadcrumb-item.d.ts +11 -0
- package/dist/components/ui-breadcrumb-item.js +1 -0
- package/dist/components/ui-breadcrumb.d.ts +11 -0
- package/dist/components/ui-breadcrumb.js +1 -0
- package/dist/components/ui-button.js +1 -1
- package/dist/components/ui-card.js +1 -1
- package/dist/components/ui-checkbox.js +1 -1
- package/dist/components/ui-container.d.ts +11 -0
- package/dist/components/ui-container.js +1 -0
- 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-grid.d.ts +11 -0
- package/dist/components/ui-grid.js +1 -0
- package/dist/components/ui-input.js +1 -1
- package/dist/components/ui-label.js +1 -1
- package/dist/components/ui-loading-overlay.js +1 -1
- package/dist/components/ui-pagination.d.ts +11 -0
- package/dist/components/ui-pagination.js +1 -0
- package/dist/components/ui-popover.js +1 -1
- package/dist/components/ui-progress.js +1 -1
- package/dist/components/ui-radio-group.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-segmented.d.ts +11 -0
- package/dist/components/ui-segmented.js +1 -0
- package/dist/components/ui-select.js +1 -1
- package/dist/components/ui-separator.js +1 -1
- package/dist/components/ui-skeleton.js +1 -1
- package/dist/components/ui-slider.js +1 -1
- package/dist/components/ui-spinner.js +1 -1
- package/dist/components/ui-stack.d.ts +11 -0
- package/dist/components/ui-stack.js +1 -0
- package/dist/components/ui-stat.d.ts +11 -0
- package/dist/components/ui-stat.js +1 -0
- 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/loader.js +1 -1
- package/dist/esm/ui-accordion-item.entry.js +1 -1
- package/dist/esm/ui-accordion.entry.js +1 -1
- package/dist/esm/ui-alert.entry.js +38 -0
- package/dist/esm/ui-avatar-group.entry.js +15 -0
- package/dist/esm/ui-avatar.entry.js +2 -2
- package/dist/esm/ui-badge.entry.js +8 -3
- package/dist/esm/ui-breadcrumb-item.entry.js +21 -0
- package/dist/esm/ui-breadcrumb.entry.js +15 -0
- package/dist/esm/ui-button.entry.js +5 -3
- package/dist/esm/ui-card.entry.js +1 -1
- package/dist/esm/ui-checkbox.entry.js +2 -2
- package/dist/esm/ui-container.entry.js +24 -0
- 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-grid.entry.js +32 -0
- package/dist/esm/ui-input.entry.js +10 -2
- package/dist/esm/ui-label.entry.js +1 -1
- package/dist/esm/ui-pagination.entry.js +61 -0
- package/dist/esm/ui-popover.entry.js +1 -1
- package/dist/esm/ui-progress.entry.js +1 -1
- package/dist/esm/ui-radio-group.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/ui-segmented.entry.js +29 -0
- package/dist/esm/ui-select.entry.js +1 -1
- package/dist/esm/ui-separator.entry.js +1 -1
- package/dist/esm/ui-skeleton.entry.js +1 -1
- package/dist/esm/ui-slider.entry.js +1 -1
- package/dist/esm/ui-spinner.entry.js +1 -1
- package/dist/esm/ui-stack.entry.js +51 -0
- package/dist/esm/ui-stat.entry.js +26 -0
- 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 +1 -1
- 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 +1 -1
- package/dist/esm/uikit.js +1 -1
- package/dist/types/components/ui-alert/ui-alert.d.ts +17 -0
- package/dist/types/components/ui-avatar/ui-avatar.d.ts +2 -0
- package/dist/types/components/ui-avatar-group/ui-avatar-group.d.ts +6 -0
- package/dist/types/components/ui-badge/ui-badge.d.ts +7 -0
- package/dist/types/components/ui-breadcrumb/ui-breadcrumb.d.ts +3 -0
- package/dist/types/components/ui-breadcrumb-item/ui-breadcrumb-item.d.ts +8 -0
- package/dist/types/components/ui-button/ui-button.d.ts +2 -0
- package/dist/types/components/ui-container/ui-container.d.ts +8 -0
- package/dist/types/components/ui-grid/ui-grid.d.ts +10 -0
- package/dist/types/components/ui-input/ui-input.d.ts +3 -0
- package/dist/types/components/ui-pagination/ui-pagination.d.ts +15 -0
- package/dist/types/components/ui-segmented/ui-segmented.d.ts +15 -0
- package/dist/types/components/ui-stack/ui-stack.d.ts +17 -0
- package/dist/types/components/ui-stat/ui-stat.d.ts +13 -0
- package/dist/types/components.d.ts +552 -0
- package/dist/uikit/{p-29fe5b7f.entry.js → p-09895cd0.entry.js} +1 -1
- package/dist/uikit/p-0cba0d11.entry.js +1 -0
- package/dist/uikit/p-12db6a6e.entry.js +1 -0
- package/dist/uikit/{p-4a1abc1c.entry.js → p-1d016ea4.entry.js} +1 -1
- package/dist/uikit/p-25637424.entry.js +1 -0
- package/dist/uikit/p-2601d8b6.entry.js +1 -0
- package/dist/uikit/p-2de05aac.entry.js +1 -0
- package/dist/uikit/{p-e0652ddf.entry.js → p-3996590f.entry.js} +1 -1
- package/dist/uikit/{p-ed1111eb.entry.js → p-3fc062a6.entry.js} +1 -1
- package/dist/uikit/p-45e80e73.entry.js +1 -0
- package/dist/uikit/{p-97de6ea6.entry.js → p-55a23f91.entry.js} +1 -1
- package/dist/uikit/p-567f7496.entry.js +1 -0
- package/dist/uikit/p-5951a496.entry.js +1 -0
- package/dist/uikit/{p-9aa557d1.entry.js → p-595e146f.entry.js} +1 -1
- package/dist/uikit/p-635862e6.entry.js +1 -0
- package/dist/uikit/{p-777c6902.entry.js → p-67963692.entry.js} +1 -1
- package/dist/uikit/{p-7b2a9e68.entry.js → p-6c0e9809.entry.js} +1 -1
- package/dist/uikit/{p-b0aba484.entry.js → p-74b60a60.entry.js} +1 -1
- package/dist/uikit/p-7a3d85da.entry.js +1 -0
- package/dist/uikit/{p-38cbea54.entry.js → p-7f2c2924.entry.js} +1 -1
- package/dist/uikit/{p-8a238373.entry.js → p-81b45a43.entry.js} +1 -1
- package/dist/uikit/{p-d8e7ae10.entry.js → p-86ed6154.entry.js} +1 -1
- package/dist/uikit/p-94ad46a5.entry.js +1 -0
- package/dist/uikit/{p-9f0d4ae1.entry.js → p-95cd976e.entry.js} +1 -1
- package/dist/uikit/{p-777d8c7a.entry.js → p-979f6178.entry.js} +1 -1
- package/dist/uikit/p-97d4dbf4.entry.js +1 -0
- package/dist/uikit/p-9a4dc343.entry.js +1 -0
- package/dist/uikit/p-9a9590b9.entry.js +1 -0
- package/dist/uikit/p-a01305a5.entry.js +1 -0
- package/dist/uikit/p-a080f46a.entry.js +1 -0
- package/dist/uikit/p-a92a7b19.entry.js +1 -0
- package/dist/uikit/{p-d6c9bfbc.entry.js → p-a977a0db.entry.js} +1 -1
- package/dist/uikit/p-b2df8437.entry.js +1 -0
- package/dist/uikit/{p-58ed99a2.entry.js → p-c73c1009.entry.js} +1 -1
- package/dist/uikit/{p-83159bfc.entry.js → p-cd0ec835.entry.js} +1 -1
- package/dist/uikit/p-d20452b4.entry.js +1 -0
- package/dist/uikit/p-d7021157.entry.js +1 -0
- package/dist/uikit/{p-280337b0.entry.js → p-db07f9c5.entry.js} +1 -1
- package/dist/uikit/{p-9b43d670.entry.js → p-dca9f6f9.entry.js} +1 -1
- package/dist/uikit/p-ddd70374.entry.js +1 -0
- package/dist/uikit/{p-a0ccdb22.entry.js → p-faa98928.entry.js} +1 -1
- package/dist/uikit/{p-32df7fd0.entry.js → p-fd832f52.entry.js} +1 -1
- package/dist/uikit/uikit.esm.js +1 -1
- package/package.json +8 -3
- package/dist/uikit/p-0096eefe.entry.js +0 -1
- package/dist/uikit/p-11350db1.entry.js +0 -1
- package/dist/uikit/p-128ae3e4.entry.js +0 -1
- package/dist/uikit/p-24edfe3e.entry.js +0 -1
- package/dist/uikit/p-3c866608.entry.js +0 -1
- package/dist/uikit/p-5555523c.entry.js +0 -1
- package/dist/uikit/p-6fa4be86.entry.js +0 -1
- package/dist/uikit/p-9c57cf57.entry.js +0 -1
- package/dist/uikit/p-cf56c9ba.entry.js +0 -1
- package/dist/uikit/p-d13860dc.entry.js +0 -1
- package/dist/uikit/p-e54139a1.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as t,H as a,c as i,h as r,a as s}from"./index.js";const o=t(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiClose=i(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(s,{key:"
|
|
1
|
+
import{t as e,p as t,H as a,c as i,h as r,a as s}from"./index.js";const o=t(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiClose=i(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(s,{key:"79bd3e7ed207efd5ff62f5296ab11a06993ce347"},this.open&&r("div",{key:"15a138288380473dff3ff1880e3298e211377339",class:{toast:!0,[`variant-${this.variant}`]:!0},role:"status"},r("div",{key:"33adfee858ddfd37f144b34f8677f312b89c04f3",class:"body"},this.heading&&r("p",{key:"a56d837636f27897f06a8d693f28763b4bc95db6",class:"heading"},this.heading),this.description&&r("p",{key:"7c86fb20c84c42e3c5e3262cc91061e9a80804aa",class:"description"},this.description)),r("button",{key:"4d8160818b76b65c29a27e4404c39a7525441a72",class:"close",type:"button","aria-label":"Fechar",onClick:()=>this.dismiss()},r("svg",{key:"ce7ee6982cc1d742b4d4de8573ca11d18166c814",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:"c8440dbbb12ce67dd30a052aef92bc736a4532f9",x1:"18",y1:"6",x2:"6",y2:"18"}),r("line",{key:"9ee2d2ec78efa7566e63feb337e346a5574ccf55",x1:"6",y1:"6",x2:"18",y2:"18"})))))}static get watchers(){return{open:[{onOpenChange:0}]}}static get style(){return":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)}}"}},[1,"ui-toast",{open:[1540],variant:[1],heading:[1],description:[1],duration:[2],show:[64],close:[64]},void 0,{open:[{onOpenChange:0}]}]);function n(){"undefined"!=typeof customElements&&["ui-toast"].forEach((t=>{"ui-toast"===t&&(customElements.get(e(t))||customElements.define(e(t),o))}))}n();export{o as U,n as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as t,H as o,c as r,h as a,a as i}from"./index.js";const s=t(class extends o{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),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(i,{key:"
|
|
1
|
+
import{t as e,p as t,H as o,c as r,h as a,a as i}from"./index.js";const s=t(class extends o{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),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(i,{key:"4b2e9ef0cda9117df86bef529c4bead45bbe8090"},a("details",{key:"18c5ff6f8d9ac966d36240949670d84fc2603883",open:this.open,onToggle:this.onToggle},a("summary",{key:"608bb56fe9b4558d50dc50be2edb922233de35aa"},a("span",{key:"5d65f0199fff46a4a32139ab1565533dfb299ea9",class:"heading"},this.heading),a("svg",{key:"dd32e7223d4eab848185fe027e86892643e98070",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:"d9d02a5e5cfe20a77ae5cd6e383962656038d6d5",points:"6 9 12 15 18 9"}))),a("div",{key:"b82b7a754b6eb160044b0eadf85ff7a8812e80a5",class:"content"},a("slot",{key:"c6a5b13158bbef248980737d9cea866178d2122c"}))))}static get style(){return":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)}"}},[257,"ui-accordion-item",{heading:[1],open:[1540]}]);function n(){"undefined"!=typeof customElements&&["ui-accordion-item"].forEach((t=>{"ui-accordion-item"===t&&(customElements.get(e(t))||customElements.define(e(t),s))}))}n();const d=s,c=n;export{d as UiAccordionItem,c as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as
|
|
1
|
+
import{t,p as s,H as e,h as a,a as o}from"./index.js";const c=s(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}render(){return a(o,{key:"839f17ea9b81b97b0ca49e89d9907c6a0571f049"},a("slot",{key:"71badd4150a835acfaa0d5867287a30c8a0b7936"}))}static get style(){return":host{display:block;font-family:var(--ui-font-sans)}"}},[257,"ui-accordion"]);function n(){"undefined"!=typeof customElements&&["ui-accordion"].forEach((s=>{"ui-accordion"===s&&(customElements.get(t(s))||customElements.define(t(s),c))}))}n();const i=c,r=n;export{i as UiAccordion,r as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface UiAlert extends Components.UiAlert, HTMLElement {}
|
|
4
|
+
export const UiAlert: {
|
|
5
|
+
prototype: UiAlert;
|
|
6
|
+
new (): UiAlert;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as r,p as e,H as i,c as n,h as a,a as o}from"./index.js";const t=e(class extends i{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.uiClose=n(this,"uiClose"),this.variant="info",this.dismissible=!1,this.open=!0,this.dismiss=()=>{this.open=!1,this.uiClose.emit()}}renderIcon(){switch(this.variant){case"success":return a("svg",{class:"icon",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"},a("circle",{cx:"12",cy:"12",r:"10"}),a("path",{d:"M8 12l3 3 5-6"}));case"warning":return a("svg",{class:"icon",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"},a("path",{d:"M10.3 3.3 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.3a2 2 0 0 0-3.4 0Z"}),a("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),a("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"}));case"danger":return a("svg",{class:"icon",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"},a("circle",{cx:"12",cy:"12",r:"10"}),a("line",{x1:"15",y1:"9",x2:"9",y2:"15"}),a("line",{x1:"9",y1:"9",x2:"15",y2:"15"}));default:return a("svg",{class:"icon",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"},a("circle",{cx:"12",cy:"12",r:"10"}),a("line",{x1:"12",y1:"11",x2:"12",y2:"16"}),a("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"}))}}render(){return a(o,{key:"0de470e0aec991fe0ed4b47d4b14075d0153ef54"},this.open&&a("div",{key:"d17b7326f4c76fe99a32f402fb53a095721bf209",class:{alert:!0,["variant-"+this.variant]:!0},role:"alert"},a("span",{key:"124489a92f47b4c7751f9af674b13add775bf3d3",class:"indicator"},this.renderIcon()),a("div",{key:"9c0741a48bee7225f7831b18ab492156c217f5a5",class:"body"},this.heading&&a("p",{key:"f883db0bdd9b48cfc1915d209675f681cc846d95",class:"heading"},this.heading),a("div",{key:"4a1de1b6a5f6fc84eead49a0a0357067b6c3dcab",class:"content"},a("slot",{key:"21ac76a2d287bb4e8629bac25cd3753886d14b5d"}))),this.dismissible&&a("button",{key:"f96e21942bed9489b296f76b6bdcc026f4351141",class:"close",type:"button","aria-label":"Fechar",onClick:this.dismiss},a("svg",{key:"a64eaf844dbc6a0fd4fbc699deac73702a7ff300",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("line",{key:"e05e78664e7161af63d9e420a77726b52f14fff5",x1:"18",y1:"6",x2:"6",y2:"18"}),a("line",{key:"f6e62b74f93061762881b30866c105b332e79870",x1:"6",y1:"6",x2:"18",y2:"18"})))))}static get style(){return":host{display:block}.alert{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-info);border-radius:var(--ui-radius);font-family:var(--ui-font-sans)}.indicator{display:inline-flex;flex-shrink:0;margin-top:0.0625rem}.icon{display:block}.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)}.content{font-size:0.8125rem;color:var(--ui-text-soft)}.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)}.variant-info{border-left-color:var(--ui-info);background:color-mix(in srgb, var(--ui-info) 12%, transparent)}.variant-info .indicator{color:var(--ui-info)}.variant-success{border-left-color:var(--ui-success);background:color-mix(in srgb, var(--ui-success) 12%, transparent)}.variant-success .indicator{color:var(--ui-success)}.variant-warning{border-left-color:var(--ui-warning);background:color-mix(in srgb, var(--ui-warning) 12%, transparent)}.variant-warning .indicator{color:var(--ui-warning)}.variant-danger{border-left-color:var(--ui-danger);background:color-mix(in srgb, var(--ui-danger) 12%, transparent)}.variant-danger .indicator{color:var(--ui-danger)}"}},[257,"ui-alert",{variant:[1],heading:[1],dismissible:[4],open:[32]}]);function s(){"undefined"!=typeof customElements&&["ui-alert"].forEach((e=>{"ui-alert"===e&&(customElements.get(r(e))||customElements.define(r(e),t))}))}s();const c=t,d=s;export{c as UiAlert,d as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface UiAvatarGroup extends Components.UiAvatarGroup, HTMLElement {}
|
|
4
|
+
export const UiAvatarGroup: {
|
|
5
|
+
prototype: UiAvatarGroup;
|
|
6
|
+
new (): UiAvatarGroup;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e,p as t,H as r,h as s,a}from"./index.js";const i=t(class extends r{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return s(a,{key:"2413b9065333e5beb192143529b60daceefc11fe"},s("div",{key:"df93cb1e73bc05abfee09226111da32f50bf908d",class:"group"},s("slot",{key:"fa7fc7b57b009355e32c904cc78b46848403c0eb"})))}static get style(){return":host{display:inline-flex}.group{display:inline-flex;align-items:center}::slotted(*){border-radius:var(--ui-radius-full)}::slotted(*:not(:first-child)){margin-left:-0.6rem}::slotted(ui-avatar){outline:2px solid var(--ui-background);border-radius:var(--ui-radius-full)}"}},[257,"ui-avatar-group"]);function u(){"undefined"!=typeof customElements&&["ui-avatar-group"].forEach((t=>{"ui-avatar-group"===t&&(customElements.get(e(t))||customElements.define(e(t),i))}))}u();const o=i,l=u;export{o as UiAvatarGroup,l as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as
|
|
1
|
+
import{t as a,p as t,H as s,h as e,a as i}from"./index.js";const r=t(class extends s{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.alt=""}render(){return e(i,{key:"0a3b07acb18d2ddeecf3b072fcd6913dbc187474"},e("span",{key:"9b6c302f378ef47385f43d24a3fe491cdec0bfe0",class:"wrapper"},e("span",{key:"5093f8e180da9c3b1583da7f651bc69be89821b9",class:"avatar"},this.src?e("img",{class:"image",src:this.src,alt:this.alt}):e("span",{class:"fallback"},this.fallback)),this.status&&e("span",{key:"920d70149458e747aef1ac35c945a0b403986928",class:"status status-"+this.status,"aria-label":this.status})))}static get style(){return":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}.wrapper{position:relative;display:inline-flex}.status{position:absolute;right:0;bottom:0;width:28%;height:28%;min-width:0.55rem;min-height:0.55rem;border-radius:var(--ui-radius-full);border:2px solid var(--ui-background);box-sizing:border-box}.status-online{background:var(--ui-success)}.status-busy{background:var(--ui-danger)}.status-away{background:var(--ui-warning)}.status-offline{background:var(--ui-text-faint)}"}},[1,"ui-avatar",{src:[1],alt:[1],fallback:[1],status:[1]}]);function n(){"undefined"!=typeof customElements&&["ui-avatar"].forEach((t=>{"ui-avatar"===t&&(customElements.get(a(t))||customElements.define(a(t),r))}))}n();const o=r,u=n;export{o as UiAvatar,u as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as r,p as
|
|
1
|
+
import{t as r,p as e,H as a,c as i,h as t,a as o}from"./index.js";const n=e(class extends a{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.uiRemove=i(this,"uiRemove"),this.variant="default",this.dot=!1,this.removable=!1}render(){return t(o,{key:"30760a471c805c011e45b1ee2c59507de0774b3c"},t("span",{key:"f06905297a3c5641634104a014452737d34918cc",class:{badge:!0,["variant-"+this.variant]:!0}},this.dot&&t("span",{key:"255e4debacda174708abb165159347c6aeeffced",class:"dot"}),t("slot",{key:"e8fb22f25b0b1c805289e3e6d1108a1cb93b5e28"}),this.removable&&t("button",{key:"a30d3213f31780e4c3fa80d98b45ae539b711f43",class:"remove",type:"button","aria-label":"Remover",onClick:()=>this.uiRemove.emit()},t("svg",{key:"e57df3139096ea131fa1c3fbddf51f6507423346",viewBox:"0 0 24 24",width:"12",height:"12",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round"},t("path",{key:"da3810852846ac9cda68957d7dadcb3737be348d",d:"M18 6 6 18M6 6l12 12"})))))}static get style(){return":host{display:inline-flex}.badge{display:inline-flex;align-items:center;gap:0.25rem;border:1px solid transparent;border-radius:var(--ui-radius-full);padding:0.25rem 0.75rem;font-family:var(--ui-font-sans);font-size:0.75rem;font-weight:500;backdrop-filter:blur(22px)}.variant-default{background:var(--ui-chip);border-color:var(--ui-border);color:var(--ui-text-soft)}.variant-solid{background:var(--ui-accent);color:var(--ui-accent-contrast)}.variant-outline{border-color:var(--ui-border-strong);color:var(--ui-foreground)}.variant-success{background:color-mix(in srgb, var(--ui-success) 15%, transparent);color:var(--ui-success)}.variant-warning{background:color-mix(in srgb, var(--ui-warning) 15%, transparent);color:var(--ui-warning)}.variant-danger{background:color-mix(in srgb, var(--ui-danger) 15%, transparent);color:var(--ui-danger)}.variant-info{background:color-mix(in srgb, var(--ui-info) 15%, transparent);color:var(--ui-info)}.dot{width:0.4rem;height:0.4rem;border-radius:var(--ui-radius-full);background:currentColor}.remove{display:inline-flex;align-items:center;justify-content:center;margin:0 -0.25rem 0 0.125rem;padding:0.125rem;border:none;border-radius:var(--ui-radius-full);background:transparent;color:inherit;cursor:pointer;opacity:0.7;transition:opacity var(--ui-duration) var(--ui-ease)}.remove:hover{opacity:1}"}},[257,"ui-badge",{variant:[1],dot:[4],removable:[4]}]);function s(){"undefined"!=typeof customElements&&["ui-badge"].forEach((e=>{"ui-badge"===e&&(customElements.get(r(e))||customElements.define(r(e),n))}))}s();const c=n,d=s;export{c as UiBadge,d as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface UiBreadcrumbItem extends Components.UiBreadcrumbItem, HTMLElement {}
|
|
4
|
+
export const UiBreadcrumbItem: {
|
|
5
|
+
prototype: UiBreadcrumbItem;
|
|
6
|
+
new (): UiBreadcrumbItem;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e,p as t,H as r,h as i,a as n}from"./index.js";const s=t(class extends r{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.current=!1}renderSeparator(){return i("span",{class:"separator","aria-hidden":"true"},i("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},i("polyline",{points:"9 18 15 12 9 6"})))}render(){return i(n,{key:"20d22dde2f7b6b4c03a76b4e6be851a0c4cd39d5"},this.href&&!this.current?i("a",{class:"link",href:this.href},i("slot",null)):i("span",{class:"current","aria-current":this.current?"page":void 0},i("slot",null)),!this.current&&this.renderSeparator())}static get style(){return":host{display:inline-flex;align-items:center}.link{color:var(--ui-text-muted);text-decoration:none;transition:color var(--ui-duration) var(--ui-ease)}.link:hover{color:var(--ui-accent)}.current{color:var(--ui-foreground);font-weight:500}.separator{display:inline-flex;align-items:center;margin:0 0.5rem;color:var(--ui-text-faint)}.separator svg{display:block}"}},[257,"ui-breadcrumb-item",{href:[1],current:[4]}]);function o(){"undefined"!=typeof customElements&&["ui-breadcrumb-item"].forEach((t=>{"ui-breadcrumb-item"===t&&(customElements.get(e(t))||customElements.define(e(t),s))}))}o();const a=s,l=o;export{a as UiBreadcrumbItem,l as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface UiBreadcrumb extends Components.UiBreadcrumb, HTMLElement {}
|
|
4
|
+
export const UiBreadcrumb: {
|
|
5
|
+
prototype: UiBreadcrumb;
|
|
6
|
+
new (): UiBreadcrumb;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e,p as a,H as t,h as s,a as r}from"./index.js";const c=a(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return s(r,{key:"3c86ea43e5dde2c8486b49f8c2ece55f66c4dec5"},s("nav",{key:"6da35c2ffc4b7c2aa13d3321ed6227d97be59e80","aria-label":"breadcrumb"},s("ol",{key:"567cb7aaf4e8ae8f1e15369b45b482104f1264da"},s("slot",{key:"5f942426d1195ea0eae8256ebfb01d25b6f350ab"}))))}static get style(){return":host{display:block}ol{display:flex;flex-wrap:wrap;align-items:center;gap:0.5rem;margin:0;padding:0;list-style:none;font-family:var(--ui-font-sans);font-size:0.875rem}"}},[257,"ui-breadcrumb"]);function n(){"undefined"!=typeof customElements&&["ui-breadcrumb"].forEach((a=>{"ui-breadcrumb"===a&&(customElements.get(e(a))||customElements.define(e(a),c))}))}n();const d=c,i=n;export{d as UiBreadcrumb,i as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as r,p as t,H as e,h as i,a}from"./index.js";const
|
|
1
|
+
import{t as r,p as t,H as e,h as i,a}from"./index.js";const o=t(class extends e{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.variant="default",this.size="md",this.disabled=!1,this.loading=!1,this.type="button",this.full=!1}render(){return i(a,{key:"fa9886a20cac8424b127be543c0fd1ad04cc2fb1"},i("button",{key:"c54077dabce85b286733efcae8a08a435b81d72e",class:{btn:!0,["variant-"+this.variant]:!0,["size-"+this.size]:!0},type:this.type,disabled:this.disabled||this.loading,"aria-busy":this.loading?"true":null},this.loading&&i("span",{key:"8e557bd098d5655be256ea7fc0748990b7f11026",class:"spinner","aria-hidden":"true"}),i("slot",{key:"36946d065411700928e3541f351a3f6f75018ae9"})))}static get style(){return":host{display:inline-block}:host([full]){display:block;width:100%}:host([full]) .btn{width:100%}.btn{display:inline-flex;align-items:center;justify-content:center;gap:0.5rem;white-space:nowrap;border:1px solid transparent;border-radius:var(--ui-radius-full);font-family:var(--ui-font-sans);font-weight:500;cursor:pointer;outline:none;transition:all var(--ui-duration) var(--ui-ease)}.btn:active{transform:scale(0.98)}.btn:focus-visible{box-shadow:0 0 0 2px var(--ui-background), 0 0 0 4px var(--ui-ring)}.btn:disabled{pointer-events:none;opacity:0.5}.size-sm{height:2.25rem;padding:0 1rem;font-size:0.75rem}.size-md{height:2.75rem;padding:0 1.25rem;font-size:0.875rem}.size-lg{height:3rem;padding:0 1.5rem;font-size:1rem}.size-icon{height:2.5rem;width:2.5rem;padding:0}.variant-solid{background:var(--ui-accent);color:var(--ui-accent-contrast);box-shadow:var(--ui-shadow)}.variant-solid:hover{filter:brightness(1.1)}.variant-default{background:var(--ui-panel-strong);color:var(--ui-foreground);border-color:var(--ui-border);backdrop-filter:blur(22px)}.variant-default:hover{border-color:var(--ui-border-strong)}.variant-subtle{background:var(--ui-chip);color:var(--ui-foreground);border-color:var(--ui-border);backdrop-filter:blur(22px)}.variant-subtle:hover{background:var(--ui-panel)}.variant-outline{color:var(--ui-foreground);border-color:color-mix(in srgb, var(--ui-foreground) 30%, transparent)}.variant-outline:hover{background:var(--ui-chip);border-color:color-mix(in srgb, var(--ui-foreground) 45%, transparent)}.variant-ghost{color:var(--ui-text-soft)}.variant-ghost:hover{background:var(--ui-chip)}.variant-destructive{background:var(--ui-danger);color:var(--ui-on-status)}.variant-destructive:hover{filter:brightness(1.1)}.variant-link{color:var(--ui-accent);text-underline-offset:4px}.variant-link:hover{text-decoration:underline}.spinner{width:1rem;height:1rem;border-radius:9999px;border:2px solid currentColor;border-top-color:transparent;animation:ui-button-spin 0.7s linear infinite}@keyframes ui-button-spin{to{transform:rotate(360deg)}}"}},[257,"ui-button",{variant:[1],size:[1],disabled:[4],loading:[4],type:[1],full:[516]}]);function n(){"undefined"!=typeof customElements&&["ui-button"].forEach((t=>{"ui-button"===t&&(customElements.get(r(t))||customElements.define(r(t),o))}))}n();const s=o,u=n;export{s as UiButton,u as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as t,H as a,h as r,a as o}from"./index.js";const d=t(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return r(o,{key:"
|
|
1
|
+
import{t as e,p as t,H as a,h as r,a as o}from"./index.js";const d=t(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return r(o,{key:"39ddf0a9974086fcc9ad3fc89f1e1d6858e2fead"},r("div",{key:"e8e510a468dc662f9fc76affce785a9b37edc205",class:"card"},r("slot",{key:"ee92d4bc2fa1738d84689d989d4e113d515acc83",name:"title"}),r("slot",{key:"6e87c2406474b6ea2aa370d1602ff02a89c4f4d5",name:"description"}),r("slot",{key:"a388b4bc2d9c5e328ade55ac38c870afc9ade82c"}),r("slot",{key:"071ce297db672e332cf2d354a395b07e100b16a1",name:"footer"})))}static get style(){return':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}'}},[257,"ui-card"]);function s(){"undefined"!=typeof customElements&&["ui-card"].forEach((t=>{"ui-card"===t&&(customElements.get(e(t))||customElements.define(e(t),d))}))}s();const c=d,i=s;export{c as UiCard,i as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as
|
|
1
|
+
import{t as e,p as i,H as t,c as a,h as r,a as c}from"./index.js";const o=i(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiChange=a(this,"uiChange"),this.checked=!1,this.disabled=!1,this.toggle=()=>{this.disabled||(this.checked=!this.checked,this.uiChange.emit(this.checked))},this.onKeyDown=e=>{" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),this.toggle())}}render(){return r(c,{key:"73477b35af6a093e87ae8a5b33232690888ca98c"},r("button",{key:"235b0102bbdd9a0ef23c3230acbba9aebdb06898",class:"checkbox",type:"button",role:"checkbox","aria-checked":this.checked?"true":"false",disabled:this.disabled,onClick:this.toggle,onKeyDown:this.onKeyDown},r("svg",{key:"3aaa64d1d173991b2c785298586aab66471e9285",class:"check",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},r("polyline",{key:"baaca1ba97901e5a9d4e97640221f35cdeb02351",points:"20 6 9 17 4 12"}))))}static get style(){return':host{display:inline-flex}.checkbox{display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;padding:0;border:1.5px solid color-mix(in srgb, var(--ui-foreground) 32%, transparent);border-radius:var(--ui-radius-sm);background:var(--ui-chip);cursor:pointer;outline:none;transition:all var(--ui-duration) var(--ui-ease)}.checkbox:hover:not(:disabled):not([aria-checked="true"]){border-color:var(--ui-accent)}.checkbox:focus-visible{box-shadow:0 0 0 2px var(--ui-background), 0 0 0 4px var(--ui-ring)}.checkbox[aria-checked="true"]{background:var(--ui-accent);border-color:var(--ui-accent)}.checkbox:disabled{opacity:0.5;pointer-events:none}.check{width:0.875rem;height:0.875rem;color:var(--ui-accent-contrast);opacity:0;transform:scale(0.6);transition:all var(--ui-duration) var(--ui-ease)}.checkbox[aria-checked="true"] .check{opacity:1;transform:scale(1)}'}},[1,"ui-checkbox",{checked:[1540],disabled:[4],name:[1],value:[1]}]);function s(){"undefined"!=typeof customElements&&["ui-checkbox"].forEach((i=>{"ui-checkbox"===i&&(customElements.get(e(i))||customElements.define(e(i),o))}))}s();const n=o,d=s;export{n as UiCheckbox,d as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface UiContainer extends Components.UiContainer, HTMLElement {}
|
|
4
|
+
export const UiContainer: {
|
|
5
|
+
prototype: UiContainer;
|
|
6
|
+
new (): UiContainer;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e,p as i,H as t,h as n,a as s}from"./index.js";const d=i(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.size="lg",this.padded=!0}render(){return n(s,{key:"4f00ee39f0ae347fafac349ee8e42c991c8013dd"},n("div",{key:"a0f8f0c6d418f119c6631d0387f9328af8fbb416",class:{container:!0,["size-"+this.size]:!0,padded:this.padded}},n("slot",{key:"86178f8371c958123fcf8b7e6bfe059aeed9f690"})))}static get style(){return":host{display:block;width:100%}.container{margin-inline:auto;width:100%;font-family:var(--ui-font-sans)}.size-sm{max-width:40rem}.size-md{max-width:48rem}.size-lg{max-width:64rem}.size-xl{max-width:80rem}.size-full{max-width:none}.padded{padding-inline:1.25rem}@media (min-width: 640px){.padded{padding-inline:2rem}}"}},[257,"ui-container",{size:[1],padded:[4]}]);function a(){"undefined"!=typeof customElements&&["ui-container"].forEach((i=>{"ui-container"===i&&(customElements.get(e(i))||customElements.define(e(i),d))}))}a();const m=d,r=a;export{m as UiContainer,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as e,H as s,c as o,h as a,a as i}from"./index.js";const n=e(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.uiClose=o(this,"uiClose"),this.open=!1,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 a(i,{key:"
|
|
1
|
+
import{t,p as e,H as s,c as o,h as a,a as i}from"./index.js";const n=e(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.uiClose=o(this,"uiClose"),this.open=!1,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 a(i,{key:"e6c34700dc04fd3754eedeab279a67cd3997fb3d"},a("dialog",{key:"fdb23f89bd4b9aef79abaec586bf39add47ce013",class:"dialog",ref:t=>this.dialogEl=t,onClose:this.onClose,onCancel:this.onClose,onClick:this.onBackdropClick},a("div",{key:"8a86f47c263d4fac68debdcef9cc8ed7e0be7ca8",class:"content"},a("slot",{key:"fe9d9105c13670104b5a60c939f9256b44694e8e"}))))}static get watchers(){return{open:[{onOpenChange:0}]}}static get style(){return'.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)}}'}},[257,"ui-dialog",{open:[1540],show:[64],close:[64]},void 0,{open:[{onOpenChange:0}]}]);function r(){"undefined"!=typeof customElements&&["ui-dialog"].forEach((e=>{"ui-dialog"===e&&(customElements.get(t(e))||customElements.define(t(e),n))}))}r();const d=n,c=r;export{d as UiDialog,c as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as
|
|
1
|
+
import{t,p as r,H as e,c as i,h as o,a as s}from"./index.js";const a=r(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.uiClose=i(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 o(s,{key:"5d44e7d604eab21d2d30d5cbaaa225658c8e7e71"},o("dialog",{key:"ecdfc2057a8864f6b8dc961ddcd51c3f349b2b54",class:"drawer side-"+this.side,ref:t=>this.dialogEl=t,onClose:this.onClose,onCancel:this.onClose,onClick:this.onBackdropClick},o("div",{key:"c14965ebb97a2c77d06c4a50466d00bf4036bafa",class:"content"},o("slot",{key:"2bdbb4cbd2cd30ade870090c5383d398cfb6772b"}))))}static get watchers(){return{open:[{onOpenChange:0}]}}static get style(){return":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)}}"}},[257,"ui-drawer",{open:[1540],side:[513],show:[64],close:[64]},void 0,{open:[{onOpenChange:0}]}]);function d(){"undefined"!=typeof customElements&&["ui-drawer"].forEach((r=>{"ui-drawer"===r&&(customElements.get(t(r))||customElements.define(t(r),a))}))}d();const n=a,h=d;export{n as UiDrawer,h as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as t,H as i,c as s,h as o,a as r}from"./index.js";const n=t(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiSelect=s(this,"uiSelect"),this.disabled=!1,this.onClick=()=>{this.disabled||(this.uiSelect.emit(),this.host.dispatchEvent(new CustomEvent("uiDropdownClose",{bubbles:!0,composed:!0})))}}render(){return o(r,{key:"
|
|
1
|
+
import{t as e,p as t,H as i,c as s,h as o,a as r}from"./index.js";const n=t(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiSelect=s(this,"uiSelect"),this.disabled=!1,this.onClick=()=>{this.disabled||(this.uiSelect.emit(),this.host.dispatchEvent(new CustomEvent("uiDropdownClose",{bubbles:!0,composed:!0})))}}render(){return o(r,{key:"a73d394ff94b232151c37e749d398f4485f46bde"},o("button",{key:"3827857b88fc5d63681e80dc2cc470b58faf69e1",type:"button",class:"item",role:"menuitem",disabled:this.disabled,onClick:this.onClick},o("slot",{key:"a6dbd79c7b171ef6a8a53aa5da39fbca37725e1c"})))}get host(){return this}static get style(){return":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}"}},[257,"ui-dropdown-item",{disabled:[516]}]);function a(){"undefined"!=typeof customElements&&["ui-dropdown-item"].forEach((t=>{"ui-dropdown-item"===t&&(customElements.get(e(t))||customElements.define(e(t),n))}))}a();const d=n,u=a;export{d as UiDropdownItem,u as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as s,H as i,c as e,h as n,a as o}from"./index.js";import{a,c as r,o as
|
|
1
|
+
import{t,p as s,H as i,c as e,h as n,a as o}from"./index.js";import{a,c as r,o as c,f as d,s as h}from"./p-CyBRmmbs.js";const l=s(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.uiOpenChange=e(this,"uiOpenChange"),this.open=!1,this.placement="bottom",this.onTriggerClick=t=>{t.stopPropagation(),this.setOpen(!this.open)},this.onDocumentClick=t=>{this.open&&(t.composedPath().includes(this.host)||this.setOpen(!1))},this.onKeydown=t=>{"Escape"===t.key&&this.open&&this.setOpen(!1)}}onOpenChange(t){t?(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(t){this.open!==t&&(this.open=t,this.uiOpenChange.emit(t))}start(){this.triggerEl&&this.floatingEl&&(this.stop(),this.cleanup=a(this.triggerEl,this.floatingEl,(()=>{this.triggerEl&&this.floatingEl&&r(this.triggerEl,this.floatingEl,{placement:this.placement,middleware:[c(8),d(),h({padding:8})]}).then((({x:t,y:s})=>{Object.assign(this.floatingEl.style,{left:t+"px",top:s+"px"})}))})))}stop(){this.cleanup?.(),this.cleanup=void 0}render(){return n(o,{key:"6d1ac3cd9096527745a84f24443a3b230bf2aaf0"},n("span",{key:"5594e37030b1fd69260b4de30393aacfbc636ca3",class:"trigger",ref:t=>this.triggerEl=t,onClick:this.onTriggerClick},n("slot",{key:"763b6bf28fe4c79a13a2cc5a620d19e51ae5f6e2",name:"trigger"})),n("div",{key:"0bec01181593abbcb1a8634eb027ce0cef0d860d",class:{menu:!0,"is-open":this.open},role:"menu",ref:t=>this.floatingEl=t},n("slot",{key:"1b1fa528fc1186c81dd433d0cb9b775df8357641"})))}get host(){return this}static get watchers(){return{open:[{onOpenChange:0}]}}static get style(){return":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)}"}},[257,"ui-dropdown-menu",{open:[1540],placement:[1],show:[64],close:[64]},[[0,"uiDropdownClose","onItemClose"]],{open:[{onOpenChange:0}]}]);function u(){"undefined"!=typeof customElements&&["ui-dropdown-menu"].forEach((s=>{"ui-dropdown-menu"===s&&(customElements.get(t(s))||customElements.define(t(s),l))}))}u();const m=l,p=u;export{m as UiDropdownMenu,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as
|
|
1
|
+
import{t as e,p as a,H as i,h as r,a as s}from"./index.js";const t=a(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.required=!1}render(){return r(s,{key:"1910a6ce3a389ab7faa9e3b46e0397e6a9bfbaab"},r("div",{key:"fb76fb030b9af9129578f7b2f0b85eaffefc8d67",class:"field"},this.label&&r("label",{key:"659a7c0982360c133891a1a22a98cdae32a529ed",class:"label",htmlFor:this.fieldId},this.label,this.required&&r("span",{key:"de93f19b8a2dd063df1175c00c68c0b7c9b092d6",class:"required","aria-hidden":"true"}," *")),r("slot",{key:"a510f107aab90a202c178f1d22727689db828fdc"}),this.error?r("p",{class:"error",role:"alert"},this.error):this.description&&r("p",{class:"description"},this.description)))}static get style(){return":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)}"}},[257,"ui-field",{label:[1],description:[1],error:[1],required:[4],fieldId:[1,"field-id"]}]);function o(){"undefined"!=typeof customElements&&["ui-field"].forEach((a=>{"ui-field"===a&&(customElements.get(e(a))||customElements.define(e(a),t))}))}o();const f=t,l=o;export{f as UiField,l as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface UiGrid extends Components.UiGrid, HTMLElement {}
|
|
4
|
+
export const UiGrid: {
|
|
5
|
+
prototype: UiGrid;
|
|
6
|
+
new (): UiGrid;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e,p as t,H as s,h as i,a}from"./index.js";const r={xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem"},m=t(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.columns=12,this.gap="md"}render(){return i(a,{key:"465a816e064af42d8282185ee92e32477a6112fd"},i("div",{key:"da2e151c56959ced55477e3fe6c99aa5563b38aa",class:"grid",style:{gridTemplateColumns:this.minItemWidth?`repeat(auto-fit, minmax(${this.minItemWidth}, 1fr))`:`repeat(${this.columns}, minmax(0, 1fr))`,gap:r[this.gap]}},i("slot",{key:"5bb285ce0feaf16d066b627010fc3fb595a85c15"})))}static get style(){return":host{display:block}.grid{display:grid;font-family:var(--ui-font-sans)}"}},[257,"ui-grid",{columns:[2],gap:[1],minItemWidth:[1,"min-item-width"]}]);function d(){"undefined"!=typeof customElements&&["ui-grid"].forEach((t=>{"ui-grid"===t&&(customElements.get(e(t))||customElements.define(e(t),m))}))}d();const n=m,o=d;export{n as UiGrid,o as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as
|
|
1
|
+
import{t as e,p as i,H as a,c as t,h as r,a as s}from"./index.js";const n=i(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiInput=t(this,"uiInput"),this.uiChange=t(this,"uiChange"),this.value="",this.type="text",this.disabled=!1,this.invalid=!1,this.clearable=!1,this.onInput=e=>{const i=e.target;this.value=i.value,this.uiInput.emit(i.value)},this.onChange=e=>{this.uiChange.emit(e.target.value)},this.clear=()=>{this.value="",this.uiInput.emit(""),this.uiChange.emit("")}}render(){const e=this.clearable&&!!this.value&&!this.disabled;return r(s,{key:"a87a7c9a1aba5631099f2f9c3a3083a9e7374854"},r("div",{key:"04d3493ab32a4636f3f2540aaba0b30e4c018225",class:{field:!0,invalid:this.invalid,disabled:this.disabled}},r("span",{key:"66fa079a8b6ccc62dca78f4266d92800dd8727b0",class:"affix"},r("slot",{key:"c9db74515db3226bc730beb42a2a8f2d8eb6ee9f",name:"prefix"})),r("input",{key:"a8f4db568e49ee22b5eeae078c4e4b3fdbc48983",class:"input",type:this.type,value:this.value,name:this.name,placeholder:this.placeholder,disabled:this.disabled,"aria-invalid":this.invalid?"true":null,onInput:this.onInput,onChange:this.onChange}),e&&r("button",{key:"e38a2279db1b1c677274a6e22019bf3183ae1920",class:"clear",type:"button","aria-label":"Limpar",onClick:this.clear},r("svg",{key:"0982ea65d3b1598620953fcd600b1eb1945348ee",viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"},r("path",{key:"26f833d4ccf8feab9f2ec4f4527b8c8e9c00d09b",d:"M18 6 6 18M6 6l12 12"}))),r("span",{key:"22c7d4d4a030157a4a9eb73ef0a260f4db56c848",class:"affix"},r("slot",{key:"fa74011b1237908aa9eea78f88294afcdf09f0f5",name:"suffix"}))))}static get style(){return':host{display:block}.field{display:flex;align-items:center;gap:0.5rem;width:100%;height:2.75rem;padding:0 0.875rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius-sm);background:var(--ui-panel);backdrop-filter:blur(22px);transition:all var(--ui-duration) var(--ui-ease);box-sizing:border-box}.field:hover:not(.disabled){border-color:var(--ui-border-strong)}.field:focus-within{border-color:var(--ui-accent);box-shadow:0 0 0 2px var(--ui-ring)}.field.invalid{border-color:var(--ui-danger)}.field.invalid:focus-within{box-shadow:0 0 0 2px color-mix(in srgb, var(--ui-danger) 40%, transparent)}.field.disabled{opacity:0.5;pointer-events:none}.input{flex:1;min-width:0;height:100%;border:none;background:transparent;color:var(--ui-foreground);font-family:var(--ui-font-sans);font-size:0.875rem;outline:none}.input::placeholder{color:var(--ui-text-faint)}.affix{display:inline-flex;align-items:center;color:var(--ui-text-muted)}.affix::slotted(svg),::slotted([slot="prefix"]),::slotted([slot="suffix"]){display:inline-flex;color:var(--ui-text-muted)}.clear{display:inline-flex;align-items:center;justify-content:center;flex:none;width:1.25rem;height:1.25rem;padding:0;border:none;border-radius:var(--ui-radius-full);background:var(--ui-chip);color:var(--ui-text-muted);cursor:pointer;transition:all var(--ui-duration) var(--ui-ease)}.clear:hover{color:var(--ui-foreground);background:var(--ui-panel-strong)}'}},[257,"ui-input",{value:[1025],placeholder:[1],type:[1],disabled:[4],invalid:[4],name:[1],clearable:[4]}]);function o(){"undefined"!=typeof customElements&&["ui-input"].forEach((i=>{"ui-input"===i&&(customElements.get(e(i))||customElements.define(e(i),n))}))}o();const d=n,l=o;export{d as UiInput,l as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as t,H as
|
|
1
|
+
import{t as e,p as t,H as a,h as s,a as l}from"./index.js";const n=t(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return s(l,{key:"15695a208223a3270e49d72972a49c26fe3acd4d"},s("label",{key:"a6d0290c845797368e59fa936b80c8fee55dbcb1",class:"label"},s("slot",{key:"daae42c194f0c31d69a82bfad95a97b85cf2cdf2"})))}static get style(){return":host{display:inline-block}.label{font-family:var(--ui-font-sans);font-size:0.875rem;font-weight:500;color:var(--ui-foreground)}"}},[257,"ui-label"]);function o(){"undefined"!=typeof customElements&&["ui-label"].forEach((t=>{"ui-label"===t&&(customElements.get(e(t))||customElements.define(e(t),n))}))}o();const c=n,i=o;export{c as UiLabel,i as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as s,H as i,h as t,a as n}from"./index.js";import{d as r}from"./p-
|
|
1
|
+
import{t as e,p as s,H as i,h as t,a as n}from"./index.js";import{d as r}from"./p-BwNtNvTb.js";const o=s(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.visible=!1,this.spinnerSize="md"}render(){return this.visible?t(n,{role:"status","aria-live":"polite"},t("div",{class:"overlay"},t("ui-spinner",{size:this.spinnerSize}),this.label&&t("p",{class:"label"},this.label))):t(n,null)}static get style(){return":host{display:contents}.overlay{position:absolute;inset:0;z-index:40;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.75rem;background:var(--ui-overlay);backdrop-filter:blur(4px);border-radius:inherit;font-family:var(--ui-font-sans)}.label{margin:0;font-size:0.875rem;color:var(--ui-text-soft)}"}},[1,"ui-loading-overlay",{visible:[4],label:[1],spinnerSize:[1,"spinner-size"]}]);function a(){"undefined"!=typeof customElements&&["ui-loading-overlay","ui-spinner"].forEach((s=>{switch(s){case"ui-loading-overlay":customElements.get(e(s))||customElements.define(e(s),o);break;case"ui-spinner":customElements.get(e(s))||r()}}))}a();const l=o,u=a;export{l as UiLoadingOverlay,u as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface UiPagination extends Components.UiPagination, HTMLElement {}
|
|
4
|
+
export const UiPagination: {
|
|
5
|
+
prototype: UiPagination;
|
|
6
|
+
new (): UiPagination;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t,p as i,H as a,c as e,h as n,a as s}from"./index.js";const r=i(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.uiChange=e(this,"uiChange"),this.total=1,this.current=1,this.siblings=1,this.clamp=t=>Math.min(Math.max(t,1),Math.max(this.total,1)),this.go=t=>{const i=this.clamp(t);i!==this.current&&(this.current=i,this.uiChange.emit(i))},this.buildRange=()=>{const t=Math.max(this.total,1),i=this.clamp(this.current),a=Math.max(this.siblings,0),e=Math.max(i-a,1),n=Math.min(i+a,t),s=new Set([1,t]);for(let t=e;t<=n;t+=1)s.add(t);const r=Array.from(s).filter((i=>i>=1&&i<=t)).sort(((t,i)=>t-i)),o=[];let c=0;for(const t of r)c&&t-c>1&&o.push("..."),o.push(t),c=t;return o}}render(){const t=Math.max(this.total,1),i=this.clamp(this.current),a=this.buildRange();return n(s,{key:"405a1c41db3850f25ffc14a053b12c0767809b1e"},n("nav",{key:"bd9baa3307cb5576ca81ab82653b44ccd4cb0385",class:"pagination",role:"navigation","aria-label":"Paginação"},n("button",{key:"8efdfeb278037fabab6b82ba4083a7d23a00d612",class:"page nav",type:"button","aria-label":"Página anterior",disabled:i<=1,onClick:()=>this.go(i-1)},"‹"),a.map(((t,a)=>{if("..."===t)return n("span",{key:"ellipsis-"+a,class:"ellipsis","aria-hidden":"true"},"…");const e=t===i;return n("button",{key:t,class:{page:!0,active:e},type:"button","aria-label":"Página "+t,"aria-current":e?"page":void 0,onClick:()=>this.go(t)},t)})),n("button",{key:"5ba13b9a59857423e65a4d10630eb66cc32c30fe",class:"page nav",type:"button","aria-label":"Próxima página",disabled:i>=t,onClick:()=>this.go(i+1)},"›")))}static get style(){return":host{display:inline-block}.pagination{display:inline-flex;align-items:center;gap:0.25rem;font-family:var(--ui-font-sans)}.page{display:inline-flex;align-items:center;justify-content:center;min-width:2.25rem;height:2.25rem;padding:0 0.5rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius-sm);background:transparent;color:var(--ui-foreground);font-family:var(--ui-font-sans);font-size:0.875rem;cursor:pointer;outline:none;transition:all var(--ui-duration) var(--ui-ease)}.page:hover{border-color:var(--ui-border-strong);background:var(--ui-chip)}.page:focus-visible{box-shadow:0 0 0 2px var(--ui-ring)}.page:disabled{pointer-events:none;opacity:0.5}.page.active{background:var(--ui-accent);color:var(--ui-accent-contrast);border-color:var(--ui-accent);box-shadow:var(--ui-shadow-sm)}.ellipsis{display:inline-flex;align-items:center;justify-content:center;min-width:2.25rem;height:2.25rem;color:var(--ui-text-faint);font-size:0.875rem}"}},[1,"ui-pagination",{total:[2],current:[1538],siblings:[2]}]);function o(){"undefined"!=typeof customElements&&["ui-pagination"].forEach((i=>{"ui-pagination"===i&&(customElements.get(t(i))||customElements.define(t(i),r))}))}o();const c=r,l=o;export{c as UiPagination,l as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as s,H as i,c as e,h as a,a as o}from"./index.js";import{a as n,c as r,o as c,f as
|
|
1
|
+
import{t,p as s,H as i,c as e,h as a,a as o}from"./index.js";import{a as n,c as r,o as c,f as d,s as h}from"./p-CyBRmmbs.js";const p=s(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.uiOpenChange=e(this,"uiOpenChange"),this.open=!1,this.placement="bottom",this.onTriggerClick=t=>{t.stopPropagation(),this.setOpen(!this.open)},this.onDocumentClick=t=>{this.open&&(t.composedPath().includes(this.host)||this.setOpen(!1))},this.onKeydown=t=>{"Escape"===t.key&&this.open&&this.setOpen(!1)}}onOpenChange(t){t?(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(t){this.open!==t&&(this.open=t,this.uiOpenChange.emit(t))}start(){this.triggerEl&&this.floatingEl&&(this.stop(),this.cleanup=n(this.triggerEl,this.floatingEl,(()=>{this.triggerEl&&this.floatingEl&&r(this.triggerEl,this.floatingEl,{placement:this.placement,middleware:[c(8),d(),h({padding:8})]}).then((({x:t,y:s})=>{Object.assign(this.floatingEl.style,{left:t+"px",top:s+"px"})}))})))}stop(){this.cleanup?.(),this.cleanup=void 0}render(){return a(o,{key:"61b4088ff4d61701a3466619274e60ac64fcc420"},a("span",{key:"d2d00f4dbf391ea1bc119870e399187d98634de6",class:"trigger",ref:t=>this.triggerEl=t,onClick:this.onTriggerClick},a("slot",{key:"ece70edbdda096821de68295e55a3fba3caeada4",name:"trigger"})),a("div",{key:"f30e5a570e49eb9c7056fd820bc57408dd78e013",class:{panel:!0,"is-open":this.open},ref:t=>this.floatingEl=t},a("slot",{key:"5823d3c7ed47946d812a2c34002fc5fd0cfc8a29"})))}get host(){return this}static get watchers(){return{open:[{onOpenChange:0}]}}static get style(){return":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)}"}},[257,"ui-popover",{open:[1540],placement:[1],show:[64],close:[64]},void 0,{open:[{onOpenChange:0}]}]);function l(){"undefined"!=typeof customElements&&["ui-popover"].forEach((s=>{"ui-popover"===s&&(customElements.get(t(s))||customElements.define(t(s),p))}))}l();const u=p,m=l;export{u as UiPopover,m as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as i,p as
|
|
1
|
+
import{t as i,p as e,H as r,h as t,a as s}from"./index.js";const a=e(class extends r{constructor(i){super(),!1!==i&&this.__registerHost(),this.__attachShadow(),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 t(s,{key:"8f40e0e4a439959e1474d2952f0f891438fb3ecf",role:"progressbar","aria-valuenow":i?this.value+"":void 0,"aria-valuemin":i?"0":void 0,"aria-valuemax":i?this.max+"":void 0},t("div",{key:"9bfd7557efbfad05a8b170764b96935f00cbdaeb",class:"track"},t("div",{key:"02205ac65e75f27f52869991b168c6397c8b2760",class:{indicator:!0,indeterminate:this.isIndeterminate},style:i?{width:this.percent+"%"}:void 0})))}static get style(){return":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%)}}"}},[1,"ui-progress",{value:[2],max:[2],indeterminate:[4]}]);function n(){"undefined"!=typeof customElements&&["ui-progress"].forEach((e=>{"ui-progress"===e&&(customElements.get(i(e))||customElements.define(i(e),a))}))}n();const o=a,d=n;export{o as UiProgress,d as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as i,p as r,H as e,c as a,h as t,a as o}from"./index.js";const s=r(class extends e{constructor(i){super(),!1!==i&&this.__registerHost(),this.__attachShadow(),this.uiChange=a(this,"uiChange"),this.options=[],this.disabled=!1,this.select=i=>{this.disabled||i===this.value||(this.value=i,this.uiChange.emit(i))},this.onKeyDown=(i,r)=>{if(this.disabled)return;const e=this.options.length;if(0===e)return;let a=-1;"ArrowDown"===i.key||"ArrowRight"===i.key?a=(r+1)%e:"ArrowUp"!==i.key&&"ArrowLeft"!==i.key||(a=(r-1+e)%e),a>=0&&(i.preventDefault(),this.select(this.options[a].value))}}render(){return t(o,{key:"
|
|
1
|
+
import{t as i,p as r,H as e,c as a,h as t,a as o}from"./index.js";const s=r(class extends e{constructor(i){super(),!1!==i&&this.__registerHost(),this.__attachShadow(),this.uiChange=a(this,"uiChange"),this.options=[],this.disabled=!1,this.select=i=>{this.disabled||i===this.value||(this.value=i,this.uiChange.emit(i))},this.onKeyDown=(i,r)=>{if(this.disabled)return;const e=this.options.length;if(0===e)return;let a=-1;"ArrowDown"===i.key||"ArrowRight"===i.key?a=(r+1)%e:"ArrowUp"!==i.key&&"ArrowLeft"!==i.key||(a=(r-1+e)%e),a>=0&&(i.preventDefault(),this.select(this.options[a].value))}}render(){return t(o,{key:"67c377ec552ea8cb6ea3d015bab1ee3d66ee436c"},t("div",{key:"aa52c74b8473ca06b762811a900d90cdfc8f7422",class:"group",role:"radiogroup"},this.options.map(((i,r)=>{const e=i.value===this.value;return t("button",{class:"radio",type:"button",role:"radio","aria-checked":e?"true":"false",tabindex:e||!this.value&&0===r?"0":"-1",disabled:this.disabled,onClick:()=>this.select(i.value),onKeyDown:i=>this.onKeyDown(i,r)},t("span",{class:"indicator"},t("span",{class:"dot"})),t("span",{class:"label"},i.label))}))))}static get style(){return':host{display:block}.group{display:flex;flex-direction:column;gap:0.5rem}.radio{display:inline-flex;align-items:center;gap:0.625rem;padding:0;border:none;background:transparent;color:var(--ui-foreground);font-family:var(--ui-font-sans);font-size:0.875rem;cursor:pointer;outline:none}.radio:disabled{opacity:0.5;pointer-events:none}.indicator{display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;border:1px solid var(--ui-border-strong);border-radius:var(--ui-radius-full);background:var(--ui-panel);transition:all var(--ui-duration) var(--ui-ease)}.radio:focus-visible .indicator{box-shadow:0 0 0 2px var(--ui-background), 0 0 0 4px var(--ui-ring)}.radio[aria-checked="true"] .indicator{border-color:var(--ui-accent)}.dot{width:0.625rem;height:0.625rem;border-radius:var(--ui-radius-full);background:var(--ui-accent);opacity:0;transform:scale(0.4);transition:all var(--ui-duration) var(--ui-ease)}.radio[aria-checked="true"] .dot{opacity:1;transform:scale(1)}.label{line-height:1.25rem}'}},[1,"ui-radio-group",{value:[1025],name:[1],options:[16],disabled:[4]}]);function n(){"undefined"!=typeof customElements&&["ui-radio-group"].forEach((r=>{"ui-radio-group"===r&&(customElements.get(i(r))||customElements.define(i(r),s))}))}n();const d=s,c=n;export{d as UiRadioGroup,c as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as t,H as s,h as i,a
|
|
1
|
+
import{t as e,p as t,H as s,h as i,a}from"./index.js";const r=t(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.delay=0,this.visible=!1}connectedCallback(){"undefined"!=typeof IntersectionObserver?(this.observer=new IntersectionObserver((e=>{for(const t of e)if(t.isIntersecting){this.visible=!0,this.observer?.disconnect();break}})),this.observer.observe(this.host)):this.visible=!0}disconnectedCallback(){this.observer?.disconnect()}render(){return i(a,{key:"4ab570c0eaa9fb6b4d6a9d01887fde6edd72ba8d"},i("div",{key:"cf0287499bfa5107fb49cadc85c85f2f70063967",class:{reveal:!0,visible:this.visible},style:{transitionDelay:this.delay+"ms"}},i("slot",{key:"b46502732e597f13d60ec55be0d456dba8181386"})))}get host(){return this}static get style(){return":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}"}},[257,"ui-reveal",{delay:[2],visible:[32]}]);function n(){"undefined"!=typeof customElements&&["ui-reveal"].forEach((t=>{"ui-reveal"===t&&(customElements.get(e(t))||customElements.define(e(t),r))}))}n();const o=r,c=n;export{o as UiReveal,c as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as s,H as t,h as r,a as i}from"./index.js";const n=s(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.progress=0,this.onScroll=()=>{if("undefined"==typeof document)return;const e=document.documentElement,s=e.scrollHeight-e.clientHeight;this.progress=s>0?e.scrollTop/s: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(i,{key:"
|
|
1
|
+
import{t as e,p as s,H as t,h as r,a as i}from"./index.js";const n=s(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.progress=0,this.onScroll=()=>{if("undefined"==typeof document)return;const e=document.documentElement,s=e.scrollHeight-e.clientHeight;this.progress=s>0?e.scrollTop/s: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(i,{key:"cb2d746b6e0ca3642a0460cff5685f2eb83a6301"},r("div",{key:"7fdb8b414f833110c389aef8620c313fb8c001c7",class:"bar",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(100*this.progress),style:{transform:`scaleX(${this.progress})`}}))}static get style(){return":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)}"}},[1,"ui-scroll-progress",{progress:[32]}]);function o(){"undefined"!=typeof customElements&&["ui-scroll-progress"].forEach((s=>{"ui-scroll-progress"===s&&(customElements.get(e(s))||customElements.define(e(s),n))}))}o();const a=n,c=o;export{a as UiScrollProgress,c as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as t,H as i,h as r,a as s}from"./index.js";const a=t(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.eyebrow="",this.heading="",this.description=""}render(){return r(s,{key:"
|
|
1
|
+
import{t as e,p as t,H as i,h as r,a as s}from"./index.js";const a=t(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.eyebrow="",this.heading="",this.description=""}render(){return r(s,{key:"71344e4d5a4c6bccade1bf5151aeba1dffa14d7f"},r("section",{key:"404cb27c6db128f60608b4eff44fa6e05520016b"},this.eyebrow&&r("p",{key:"204ced95531d3bf77c2a32f940c3ec4bc0e76f53",class:"eyebrow"},this.eyebrow),this.heading&&r("h2",{key:"46818123dd264ef60db8ff9c7a2ad93979d71434",class:"heading"},this.heading),this.description&&r("p",{key:"eaba39853cd12a874c9079e2181aca9e0fc130b7",class:"description"},this.description),r("slot",{key:"24d02b1d9176e42d7906ef43881807d7cfda2e52"})))}static get style(){return":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)}"}},[257,"ui-section",{eyebrow:[1],heading:[1],description:[1]}]);function c(){"undefined"!=typeof customElements&&["ui-section"].forEach((t=>{"ui-section"===t&&(customElements.get(e(t))||customElements.define(e(t),a))}))}c();const n=a,o=c;export{n as UiSection,o as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface UiSegmented extends Components.UiSegmented, HTMLElement {}
|
|
4
|
+
export const UiSegmented: {
|
|
5
|
+
prototype: UiSegmented;
|
|
6
|
+
new (): UiSegmented;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e,p as t,H as i,c as r,h as s,a as n}from"./index.js";const a=t(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiChange=r(this,"uiChange"),this.items=[],this.value="",this.select=e=>{e!==this.value&&(this.value=e,this.uiChange.emit(e))}}render(){return s(n,{key:"92649a392383aebb62bab90e3f20a008783f2ed2"},s("div",{key:"22983cd496ee1f9ed1dbf49d989c409cdca3c8b4",class:"track",role:"radiogroup"},this.items.map((e=>{const t=e.value===this.value;return s("button",{key:e.value,class:{segment:!0,active:t},type:"button",role:"radio","aria-checked":t?"true":"false",onClick:()=>this.select(e.value)},e.label)}))))}static get style(){return":host{display:inline-block}.track{display:inline-flex;align-items:center;gap:0.125rem;padding:0.25rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius-full);background:var(--ui-chip);font-family:var(--ui-font-sans)}.segment{display:inline-flex;align-items:center;justify-content:center;height:2rem;padding:0 0.875rem;border:none;border-radius:var(--ui-radius-full);background:transparent;color:var(--ui-text-muted);font-family:var(--ui-font-sans);font-size:0.8125rem;font-weight:500;cursor:pointer;outline:none;transition:all var(--ui-duration) var(--ui-ease)}.segment:hover{color:var(--ui-foreground)}.segment:focus-visible{box-shadow:0 0 0 2px var(--ui-ring)}.segment.active{background:var(--ui-panel-strong);color:var(--ui-foreground);box-shadow:var(--ui-shadow-sm)}"}},[1,"ui-segmented",{items:[16],value:[1537]}]);function o(){"undefined"!=typeof customElements&&["ui-segmented"].forEach((t=>{"ui-segmented"===t&&(customElements.get(e(t))||customElements.define(e(t),a))}))}o();const u=a,d=o;export{u as UiSegmented,d as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as t,H as s,c as i,h as o,a as r}from"./index.js";const a=t(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiChange=i(this,"uiChange"),this.disabled=!1,this.options=[],this.onChange=e=>{const t=e.target.value;this.value=t,this.uiChange.emit(t)}}render(){return o(r,{key:"
|
|
1
|
+
import{t as e,p as t,H as s,c as i,h as o,a as r}from"./index.js";const a=t(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiChange=i(this,"uiChange"),this.disabled=!1,this.options=[],this.onChange=e=>{const t=e.target.value;this.value=t,this.uiChange.emit(t)}}render(){return o(r,{key:"5f41047362d77643cc663925900c15c6cd10ec60"},o("div",{key:"53ec77b2100bdd6de568ad549a42ad8fd080ac6a",class:"wrapper"},o("select",{key:"b0b4b1def7b7166bf24f996f9736a670a9b7b052",class:"select",name:this.name,disabled:this.disabled,onChange:this.onChange},this.placeholder&&o("option",{key:"e83b039418ac74bb3124c151dca9af43ff05dd61",value:"",disabled:!0,selected:!(void 0!==this.value&&""!==this.value)},this.placeholder),this.options.map((e=>o("option",{value:e.value,selected:e.value===this.value},e.label)))),o("svg",{key:"bb3165c856d11b352b2c7a64cc12ab4284541fb4",class:"chevron",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},o("polyline",{key:"ab5e3cb2419dc63fbcd3804740b781c856ae8240",points:"6 9 12 15 18 9"}))))}static get style(){return":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}"}},[1,"ui-select",{value:[1025],disabled:[4],name:[1],options:[16],placeholder:[1]}]);function n(){"undefined"!=typeof customElements&&["ui-select"].forEach((t=>{"ui-select"===t&&(customElements.get(e(t))||customElements.define(e(t),a))}))}n();const c=a,d=n;export{c as UiSelect,d as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as e,H as o,h as i,a as s}from"./index.js";const r=e(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.orientation="horizontal"}render(){return i(s,{key:"
|
|
1
|
+
import{t,p as e,H as o,h as i,a as s}from"./index.js";const r=e(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.orientation="horizontal"}render(){return i(s,{key:"33e452485ff7838e37a378f9acba10f242069cfc",role:"separator","aria-orientation":this.orientation,class:"orientation-"+this.orientation})}static get style(){return":host{display:block;background:var(--ui-border)}:host(.orientation-horizontal){width:100%;height:1px}:host(.orientation-vertical){display:inline-block;width:1px;height:100%}"}},[1,"ui-separator",{orientation:[513]}]);function a(){"undefined"!=typeof customElements&&["ui-separator"].forEach((e=>{"ui-separator"===e&&(customElements.get(t(e))||customElements.define(t(e),r))}))}a();const n=r,c=a;export{n as UiSeparator,c as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as s,H as t,h as n,a}from"./index.js";const
|
|
1
|
+
import{t as e,p as s,H as t,h as n,a as r}from"./index.js";const i=s(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return n(r,{key:"8f839817a493a8221e9d3b2e95fd7ae5ece2e70e"},n("span",{key:"295dce8e9e6489def8b20a703f04c65ad3740ce8",class:"skeleton"}))}static get style(){return":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}}"}},[1,"ui-skeleton"]);function o(){"undefined"!=typeof customElements&&["ui-skeleton"].forEach((s=>{"ui-skeleton"===s&&(customElements.get(e(s))||customElements.define(e(s),i))}))}o();const a=i,u=o;export{a as UiSkeleton,u as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as r,p as e,H as i,c as s,h as a,a as t}from"./index.js";const n=e(class extends i{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.uiInput=s(this,"uiInput"),this.uiChange=s(this,"uiChange"),this.value=50,this.min=0,this.max=100,this.step=1,this.disabled=!1,this.onInput=r=>{const e=Number(r.target.value);this.value=e,this.uiInput.emit(e)},this.onChange=r=>{this.uiChange.emit(Number(r.target.value))}}render(){return a(t,{key:"
|
|
1
|
+
import{t as r,p as e,H as i,c as s,h as a,a as t}from"./index.js";const n=e(class extends i{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.uiInput=s(this,"uiInput"),this.uiChange=s(this,"uiChange"),this.value=50,this.min=0,this.max=100,this.step=1,this.disabled=!1,this.onInput=r=>{const e=Number(r.target.value);this.value=e,this.uiInput.emit(e)},this.onChange=r=>{this.uiChange.emit(Number(r.target.value))}}render(){return a(t,{key:"22fe57f0e95edb2e169718c8b1fb5c2f3d78ddfe"},a("input",{key:"a9e16ef8f97f412c22911f72c4b7212f6d04a293",class:"slider",type:"range",min:this.min,max:this.max,step:this.step,value:this.value,disabled:this.disabled,onInput:this.onInput,onChange:this.onChange}))}static get style(){return":host{display:block}.slider{width:100%;height:1.25rem;margin:0;background:transparent;cursor:pointer;outline:none;-webkit-appearance:none;appearance:none}.slider:disabled{opacity:0.5;pointer-events:none}.slider::-webkit-slider-runnable-track{height:0.375rem;border-radius:var(--ui-radius-full);background:var(--ui-chip)}.slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:1.125rem;height:1.125rem;margin-top:-0.375rem;border-radius:var(--ui-radius-full);background:var(--ui-accent);box-shadow:var(--ui-shadow-sm);transition:transform var(--ui-duration) var(--ui-ease)}.slider::-webkit-slider-thumb:hover{transform:scale(1.1)}.slider:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 2px var(--ui-background), 0 0 0 4px var(--ui-ring)}.slider::-moz-range-track{height:0.375rem;border-radius:var(--ui-radius-full);background:var(--ui-chip)}.slider::-moz-range-progress{height:0.375rem;border-radius:var(--ui-radius-full);background:var(--ui-accent)}.slider::-moz-range-thumb{width:1.125rem;height:1.125rem;border:none;border-radius:var(--ui-radius-full);background:var(--ui-accent);box-shadow:var(--ui-shadow-sm);transition:transform var(--ui-duration) var(--ui-ease)}.slider::-moz-range-thumb:hover{transform:scale(1.1)}.slider:focus-visible::-moz-range-thumb{box-shadow:0 0 0 2px var(--ui-background), 0 0 0 4px var(--ui-ring)}"}},[1,"ui-slider",{value:[1026],min:[2],max:[2],step:[2],disabled:[4]}]);function u(){"undefined"!=typeof customElements&&["ui-slider"].forEach((e=>{"ui-slider"===e&&(customElements.get(r(e))||customElements.define(r(e),n))}))}u();const o=n,d=u;export{o as UiSlider,d as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{U as o,d as s}from"./p-
|
|
1
|
+
import{U as o,d as s}from"./p-BwNtNvTb.js";const t=o,p=s;export{t as UiSpinner,p as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface UiStack extends Components.UiStack, HTMLElement {}
|
|
4
|
+
export const UiStack: {
|
|
5
|
+
prototype: UiStack;
|
|
6
|
+
new (): UiStack;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t,p as e,H as s,h as a,a as r}from"./index.js";const n={xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem"},i={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"},c={start:"flex-start",center:"center",end:"flex-end",between:"space-between"},l=e(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.direction="vertical",this.gap="md",this.align="stretch",this.justify="start",this.wrap=!1}render(){return a(r,{key:"ba9547e72877aa05a5e93afbe098d7402b315df3"},a("div",{key:"e0fd73777e2211925435f2fd8bfcb74ad2eb8085",class:"stack",style:{flexDirection:"horizontal"===this.direction?"row":"column",gap:n[this.gap],alignItems:i[this.align],justifyContent:c[this.justify],flexWrap:this.wrap?"wrap":"nowrap"}},a("slot",{key:"3a5aa50721c641f0cc81328a21262ff5d375e55c"})))}static get style(){return":host{display:block}.stack{display:flex;font-family:var(--ui-font-sans)}"}},[257,"ui-stack",{direction:[1],gap:[1],align:[1],justify:[1],wrap:[4]}]);function f(){"undefined"!=typeof customElements&&["ui-stack"].forEach((e=>{"ui-stack"===e&&(customElements.get(t(e))||customElements.define(t(e),l))}))}f();const o=l,d=f;export{o as UiStack,d as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface UiStat extends Components.UiStat, HTMLElement {}
|
|
4
|
+
export const UiStat: {
|
|
5
|
+
prototype: UiStat;
|
|
6
|
+
new (): UiStat;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e,p as a,H as r,h as t,a as i}from"./index.js";const s=a(class extends r{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.trend="neutral"}renderArrow(){return"down"===this.trend?t("svg",{width:"10",height:"10",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true"},t("path",{d:"M6 11 1 4h10z"})):"up"===this.trend?t("svg",{width:"10",height:"10",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true"},t("path",{d:"M6 1 11 8H1z"})):null}render(){return t(i,{key:"7afc03397921ff23d08da136999896a40d8a31be"},t("div",{key:"35a7d594e9ebb426f10ff256ba4805ee88a0100c",class:"card"},t("p",{key:"92a82cf415c22f884ed782d410e25559ff391017",class:"label"},this.label),t("div",{key:"1c8d08800ca0a6f38e574930c5187ec979666a62",class:"value-row"},t("span",{key:"0bb5e825e9d51a045638f48616c24bdc7a4a0ee0",class:"value"},this.value),this.delta&&t("span",{key:"01aa434582c8eee2c1fd6b69c16de0262fb89daf",class:{delta:!0,["trend-"+this.trend]:!0}},this.renderArrow(),this.delta)),t("div",{key:"4446e15c156412cc8b6c72f823a49396f31e8e74",class:"extra"},t("slot",{key:"ca4e0cc60f588840d3fd88e3efaecabb84cd633d"}))))}static get style(){return":host{display:block}.card{display:flex;flex-direction:column;gap:0.5rem;padding:1.25rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius-lg);background:var(--ui-panel);backdrop-filter:blur(22px);font-family:var(--ui-font-sans)}.label{margin:0;text-transform:uppercase;letter-spacing:0.08em;font-size:0.7rem;font-weight:500;color:var(--ui-text-faint)}.value-row{display:flex;align-items:baseline;gap:0.625rem}.value{font-size:1.875rem;font-weight:600;line-height:1.1;color:var(--ui-foreground)}.delta{display:inline-flex;align-items:center;gap:0.25rem;padding:0.125rem 0.5rem;border-radius:var(--ui-radius-full);font-size:0.75rem;font-weight:600}.delta svg{display:block}.trend-up{color:var(--ui-success);background:color-mix(in srgb, var(--ui-success) 14%, transparent)}.trend-down{color:var(--ui-danger);background:color-mix(in srgb, var(--ui-danger) 14%, transparent)}.trend-neutral{color:var(--ui-text-muted);background:var(--ui-chip)}.extra{font-size:0.8125rem;color:var(--ui-text-muted)}"}},[257,"ui-stat",{label:[1],value:[1],delta:[1],trend:[1]}]);function d(){"undefined"!=typeof customElements&&["ui-stat"].forEach((a=>{"ui-stat"===a&&(customElements.get(e(a))||customElements.define(e(a),s))}))}d();const n=s,l=d;export{n as UiStat,l as defineCustomElement}
|