@andespindola/ui-core 0.2.0 → 0.3.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/{floating-ui.dom-BPemvNRD.js → floating-ui.dom-BZk7Blsu.js} +93 -0
- 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-avatar-group.cjs.entry.js +1 -1
- package/dist/cjs/ui-avatar.cjs.entry.js +1 -1
- package/dist/cjs/ui-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/ui-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ui-button.cjs.entry.js +1 -1
- package/dist/cjs/ui-card.cjs.entry.js +1 -1
- package/dist/cjs/ui-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/ui-combobox.cjs.entry.js +153 -0
- package/dist/cjs/ui-container.cjs.entry.js +1 -1
- package/dist/cjs/ui-date-picker.cjs.entry.js +171 -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 +2 -2
- package/dist/cjs/ui-field.cjs.entry.js +1 -1
- package/dist/cjs/ui-file-upload.cjs.entry.js +57 -0
- package/dist/cjs/ui-grid.cjs.entry.js +1 -1
- package/dist/cjs/ui-input.cjs.entry.js +1 -1
- package/dist/cjs/ui-label.cjs.entry.js +1 -1
- package/dist/cjs/ui-navbar.cjs.entry.js +17 -0
- package/dist/cjs/ui-pagination.cjs.entry.js +2 -2
- package/dist/cjs/ui-popover.cjs.entry.js +2 -2
- package/dist/cjs/ui-progress-circular.cjs.entry.js +44 -0
- 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-rating.cjs.entry.js +45 -0
- 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 +1 -1
- 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 +1 -1
- package/dist/cjs/ui-stat.cjs.entry.js +1 -1
- package/dist/cjs/ui-switch.cjs.entry.js +1 -1
- package/dist/cjs/ui-table.cjs.entry.js +25 -0
- 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 +2 -2
- package/dist/cjs/uikit.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +7 -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-avatar/ui-avatar.js +1 -1
- package/dist/collection/components/ui-avatar-group/ui-avatar-group.js +1 -1
- package/dist/collection/components/ui-breadcrumb/ui-breadcrumb.js +1 -1
- package/dist/collection/components/ui-breadcrumb-item/ui-breadcrumb-item.js +1 -1
- package/dist/collection/components/ui-button/ui-button.css +2 -0
- package/dist/collection/components/ui-card/ui-card.js +1 -1
- package/dist/collection/components/ui-checkbox/ui-checkbox.js +1 -1
- package/dist/collection/components/ui-combobox/ui-combobox.css +93 -0
- package/dist/collection/components/ui-combobox/ui-combobox.js +248 -0
- package/dist/collection/components/ui-container/ui-container.js +1 -1
- package/dist/collection/components/ui-date-picker/ui-date-picker.css +176 -0
- package/dist/collection/components/ui-date-picker/ui-date-picker.js +243 -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-file-upload/ui-file-upload.css +79 -0
- package/dist/collection/components/ui-file-upload/ui-file-upload.js +151 -0
- package/dist/collection/components/ui-grid/ui-grid.js +1 -1
- package/dist/collection/components/ui-input/ui-input.js +1 -1
- package/dist/collection/components/ui-label/ui-label.js +1 -1
- package/dist/collection/components/ui-navbar/ui-navbar.css +36 -0
- package/dist/collection/components/ui-navbar/ui-navbar.js +18 -0
- package/dist/collection/components/ui-pagination/ui-pagination.js +2 -2
- 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-progress-circular/ui-progress-circular.css +46 -0
- package/dist/collection/components/ui-progress-circular/ui-progress-circular.js +171 -0
- package/dist/collection/components/ui-radio-group/ui-radio-group.js +1 -1
- package/dist/collection/components/ui-rating/ui-rating.css +52 -0
- package/dist/collection/components/ui-rating/ui-rating.js +134 -0
- 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.js +1 -1
- 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.js +1 -1
- package/dist/collection/components/ui-stat/ui-stat.js +1 -1
- package/dist/collection/components/ui-switch/ui-switch.js +1 -1
- package/dist/collection/components/ui-table/ui-table.css +46 -0
- package/dist/collection/components/ui-table/ui-table.js +119 -0
- 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-CgsjJD8o.js → p-DDJE__UC.js} +1 -1
- package/dist/{uikit/p-CyBRmmbs.js → components/p-DDtwbwIl.js} +1 -1
- package/dist/components/{p-BwNtNvTb.js → p-DUT2Q8Df.js} +1 -1
- package/dist/components/ui-accordion-item.js +1 -1
- package/dist/components/ui-accordion.js +1 -1
- package/dist/components/ui-avatar-group.js +1 -1
- package/dist/components/ui-avatar.js +1 -1
- package/dist/components/ui-breadcrumb-item.js +1 -1
- package/dist/components/ui-breadcrumb.js +1 -1
- 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-combobox.d.ts +11 -0
- package/dist/components/ui-combobox.js +1 -0
- package/dist/components/ui-container.js +1 -1
- package/dist/components/ui-date-picker.d.ts +11 -0
- package/dist/components/ui-date-picker.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-file-upload.d.ts +11 -0
- package/dist/components/ui-file-upload.js +1 -0
- package/dist/components/ui-grid.js +1 -1
- 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-navbar.d.ts +11 -0
- package/dist/components/ui-navbar.js +1 -0
- package/dist/components/ui-pagination.js +1 -1
- package/dist/components/ui-popover.js +1 -1
- package/dist/components/ui-progress-circular.d.ts +11 -0
- package/dist/components/ui-progress-circular.js +1 -0
- package/dist/components/ui-progress.js +1 -1
- package/dist/components/ui-radio-group.js +1 -1
- package/dist/components/ui-rating.d.ts +11 -0
- package/dist/components/ui-rating.js +1 -0
- 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.js +1 -1
- 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.js +1 -1
- package/dist/components/ui-stat.js +1 -1
- package/dist/components/ui-switch.js +1 -1
- package/dist/components/ui-table.d.ts +11 -0
- package/dist/components/ui-table.js +1 -0
- 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/{floating-ui.dom-CyBRmmbs.js → floating-ui.dom-DDtwbwIl.js} +93 -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-avatar-group.entry.js +1 -1
- package/dist/esm/ui-avatar.entry.js +1 -1
- package/dist/esm/ui-breadcrumb-item.entry.js +1 -1
- package/dist/esm/ui-breadcrumb.entry.js +1 -1
- package/dist/esm/ui-button.entry.js +1 -1
- package/dist/esm/ui-card.entry.js +1 -1
- package/dist/esm/ui-checkbox.entry.js +1 -1
- package/dist/esm/ui-combobox.entry.js +151 -0
- package/dist/esm/ui-container.entry.js +1 -1
- package/dist/esm/ui-date-picker.entry.js +169 -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 +2 -2
- package/dist/esm/ui-field.entry.js +1 -1
- package/dist/esm/ui-file-upload.entry.js +55 -0
- package/dist/esm/ui-grid.entry.js +1 -1
- package/dist/esm/ui-input.entry.js +1 -1
- package/dist/esm/ui-label.entry.js +1 -1
- package/dist/esm/ui-navbar.entry.js +15 -0
- package/dist/esm/ui-pagination.entry.js +2 -2
- package/dist/esm/ui-popover.entry.js +2 -2
- package/dist/esm/ui-progress-circular.entry.js +42 -0
- package/dist/esm/ui-progress.entry.js +1 -1
- package/dist/esm/ui-radio-group.entry.js +1 -1
- package/dist/esm/ui-rating.entry.js +43 -0
- 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 +1 -1
- 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 +1 -1
- package/dist/esm/ui-stat.entry.js +1 -1
- package/dist/esm/ui-switch.entry.js +1 -1
- package/dist/esm/ui-table.entry.js +23 -0
- 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 +2 -2
- package/dist/esm/uikit.js +1 -1
- package/dist/types/components/ui-combobox/ui-combobox.d.ts +38 -0
- package/dist/types/components/ui-date-picker/ui-date-picker.d.ts +42 -0
- package/dist/types/components/ui-file-upload/ui-file-upload.d.ts +24 -0
- package/dist/types/components/ui-navbar/ui-navbar.d.ts +3 -0
- package/dist/types/components/ui-progress-circular/ui-progress-circular.d.ts +17 -0
- package/dist/types/components/ui-rating/ui-rating.d.ts +17 -0
- package/dist/types/components/ui-table/ui-table.d.ts +16 -0
- package/dist/types/components.d.ts +409 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/uikit/{p-81b45a43.entry.js → p-008118af.entry.js} +1 -1
- package/dist/uikit/p-0715db16.entry.js +1 -0
- package/dist/uikit/p-10afa395.entry.js +1 -0
- package/dist/uikit/{p-25637424.entry.js → p-1449f229.entry.js} +1 -1
- package/dist/uikit/{p-567f7496.entry.js → p-1514ae37.entry.js} +1 -1
- package/dist/uikit/{p-cd0ec835.entry.js → p-1685191b.entry.js} +1 -1
- package/dist/uikit/p-1ef7948f.entry.js +1 -0
- package/dist/uikit/p-283e7623.entry.js +1 -0
- package/dist/uikit/p-2d92ce04.entry.js +1 -0
- package/dist/uikit/{p-faa98928.entry.js → p-3995852d.entry.js} +1 -1
- package/dist/uikit/p-3b1f92da.entry.js +1 -0
- package/dist/uikit/p-3fdfad2e.entry.js +1 -0
- package/dist/uikit/p-4044ebde.entry.js +1 -0
- package/dist/uikit/{p-95cd976e.entry.js → p-413cfbc6.entry.js} +1 -1
- package/dist/uikit/p-4ba0e4bc.entry.js +1 -0
- package/dist/uikit/{p-635862e6.entry.js → p-5e0bc34a.entry.js} +1 -1
- package/dist/uikit/{p-86ed6154.entry.js → p-60910c03.entry.js} +1 -1
- package/dist/uikit/{p-c73c1009.entry.js → p-62881327.entry.js} +1 -1
- package/dist/uikit/p-6c51a216.entry.js +1 -0
- package/dist/uikit/p-6d363a02.entry.js +1 -0
- package/dist/uikit/{p-67963692.entry.js → p-8535f5c9.entry.js} +1 -1
- package/dist/uikit/{p-2601d8b6.entry.js → p-88238a16.entry.js} +1 -1
- package/dist/uikit/{p-595e146f.entry.js → p-894fc85f.entry.js} +1 -1
- package/dist/uikit/p-8b882367.entry.js +1 -0
- package/dist/uikit/{p-12db6a6e.entry.js → p-9310b73b.entry.js} +1 -1
- package/dist/uikit/{p-1d016ea4.entry.js → p-99b7e461.entry.js} +1 -1
- package/dist/uikit/p-9d8d420e.entry.js +1 -0
- package/dist/uikit/{p-55a23f91.entry.js → p-9dbe7e12.entry.js} +1 -1
- package/dist/uikit/{p-09895cd0.entry.js → p-9f09fcec.entry.js} +1 -1
- package/dist/{components/p-CyBRmmbs.js → uikit/p-DDtwbwIl.js} +1 -1
- package/dist/uikit/{p-a977a0db.entry.js → p-a3d819cd.entry.js} +1 -1
- package/dist/uikit/{p-979f6178.entry.js → p-b0f2b1c8.entry.js} +1 -1
- package/dist/uikit/{p-3996590f.entry.js → p-b7e30398.entry.js} +1 -1
- package/dist/uikit/p-bac2c523.entry.js +1 -0
- package/dist/uikit/p-bbc718ef.entry.js +1 -0
- package/dist/uikit/{p-74b60a60.entry.js → p-bdd30484.entry.js} +1 -1
- package/dist/uikit/{p-fd832f52.entry.js → p-c1a9db7c.entry.js} +1 -1
- package/dist/uikit/p-c2138fb9.entry.js +1 -0
- package/dist/uikit/{p-ddd70374.entry.js → p-c94492ff.entry.js} +1 -1
- package/dist/uikit/{p-7f2c2924.entry.js → p-ccca2aeb.entry.js} +1 -1
- package/dist/uikit/{p-a01305a5.entry.js → p-d7ab158f.entry.js} +1 -1
- package/dist/uikit/p-da807078.entry.js +1 -0
- package/dist/uikit/p-e2065caa.entry.js +1 -0
- package/dist/uikit/{p-dca9f6f9.entry.js → p-f2983e94.entry.js} +1 -1
- package/dist/uikit/{p-2de05aac.entry.js → p-f4344cce.entry.js} +1 -1
- package/dist/uikit/{p-3fc062a6.entry.js → p-fb89d9a4.entry.js} +1 -1
- package/dist/uikit/p-fbe7806c.entry.js +1 -0
- package/dist/uikit/p-ffcd1faf.entry.js +1 -0
- package/dist/uikit/uikit.esm.js +1 -1
- package/package.json +1 -1
- package/dist/uikit/p-0cba0d11.entry.js +0 -1
- package/dist/uikit/p-6c0e9809.entry.js +0 -1
- package/dist/uikit/p-7a3d85da.entry.js +0 -1
- package/dist/uikit/p-94ad46a5.entry.js +0 -1
- package/dist/uikit/p-97d4dbf4.entry.js +0 -1
- package/dist/uikit/p-9a4dc343.entry.js +0 -1
- package/dist/uikit/p-9a9590b9.entry.js +0 -1
- package/dist/uikit/p-a080f46a.entry.js +0 -1
- package/dist/uikit/p-a92a7b19.entry.js +0 -1
- package/dist/uikit/p-b2df8437.entry.js +0 -1
- package/dist/uikit/p-d20452b4.entry.js +0 -1
- package/dist/uikit/p-d7021157.entry.js +0 -1
- package/dist/uikit/p-db07f9c5.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as s,H as i,h as r,a as n}from"./index.js";const t=s(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.size="md"}render(){return r(n,{key:"
|
|
1
|
+
import{t as e,p as s,H as i,h as r,a as n}from"./index.js";const t=s(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.size="md"}render(){return r(n,{key:"3ce50c4de9703a057c0971fbaa71f6535a30c196",role:"status"},r("span",{key:"83aba34de038600be6535662d7243489d4db79f1",class:{spinner:!0,[`size-${this.size}`]:!0}}),r("span",{key:"ff7523e8ab8e073dea03314b72c93aaf566fa32e",class:"sr-only"},"Carregando"))}static get style(){return":host{display:inline-flex;color:var(--ui-accent)}.spinner{display:inline-block;border-radius:var(--ui-radius-full);border:2px solid currentColor;border-top-color:transparent;animation:ui-spinner-spin 0.7s linear infinite}.size-sm{width:1rem;height:1rem}.size-md{width:1.5rem;height:1.5rem}.size-lg{width:2rem;height:2rem}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@keyframes ui-spinner-spin{to{transform:rotate(360deg)}}"}},[1,"ui-spinner",{size:[1]}]);function a(){"undefined"!=typeof customElements&&["ui-spinner"].forEach((s=>{"ui-spinner"===s&&(customElements.get(e(s))||customElements.define(e(s),t))}))}a();export{t as U,a 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:"613b3accfe538702304aeaa7d826297948cd2c45"},a("details",{key:"912854f32a5e15fbb2e708b4de5e0c4059733722",open:this.open,onToggle:this.onToggle},a("summary",{key:"814a3332eb5dd4fbf340ae7cdb55fe8f618c0253"},a("span",{key:"63ab8d2d1a60ea7327577b80547897aa0d78e2dd",class:"heading"},this.heading),a("svg",{key:"c6812c39cbe86ad0e09d61d44bfff3784c93d462",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:"67969ddf96e125133c9b7a4d59edb5a9af21a319",points:"6 9 12 15 18 9"}))),a("div",{key:"e8e1adb834e3749848db663b0a27b672fb33302d",class:"content"},a("slot",{key:"3d22b0d25f5000e6e9402658ec52996c2f9f3c09"}))))}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 e,H as s,h as o,a as n}from"./index.js";const c=e(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}render(){return o(n,{key:"0242c529aecf9b0f35958f21f9df65d4cba8ba37"},o("slot",{key:"394493e0939fa0224be6233830f588e88e49a2d3"}))}static get style(){return":host{display:block;font-family:var(--ui-font-sans)}"}},[257,"ui-accordion"]);function a(){"undefined"!=typeof customElements&&["ui-accordion"].forEach((e=>{"ui-accordion"===e&&(customElements.get(t(e))||customElements.define(t(e),c))}))}a();const i=c,r=a;export{i as UiAccordion,r 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 r,a as s}from"./index.js";const i=t(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return r(s,{key:"ffbc4f069a58a5c5e9bf014ec9fc41d11ceb24b8"},r("div",{key:"c6f7c559740f193c0347f7834169fbd2eb252272",class:"group"},r("slot",{key:"d66719ad68488098d753eefc8da5cc65bf6a85a4"})))}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,d=u;export{o as UiAvatarGroup,d as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as a,p as t,H as s,h as
|
|
1
|
+
import{t as a,p as t,H as s,h as i,a as e}from"./index.js";const r=t(class extends s{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.alt=""}render(){return i(e,{key:"3f5862531fd7c0df254cca0be373c4f5661bac1c"},i("span",{key:"2c831417964e89d68f3535321868aa0fab82df26",class:"wrapper"},i("span",{key:"7573d9b9bdd3c07e7913002923722e19eb652d8e",class:"avatar"},this.src?i("img",{class:"image",src:this.src,alt:this.alt}):i("span",{class:"fallback"},this.fallback)),this.status&&i("span",{key:"adb6bf39438427a853fffe2eb84b95474aa8c123",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 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:"
|
|
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:"20f1a108e5275c29e2fbb243720a8b70efb10b24"},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}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as
|
|
1
|
+
import{t as e,p as t,H as a,h as s,a as c}from"./index.js";const r=t(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return s(c,{key:"93726eb6ef05c505f409ec5b313e7db50c0d0a78"},s("nav",{key:"dc02b8d95d1c0998e2e7533ab8ed214fb9c19a63","aria-label":"breadcrumb"},s("ol",{key:"41dc2d7fe3cbf1b684723d759ef0d00f17bf2e00"},s("slot",{key:"eb64652ac37ca5ce1ebd865260ad1ac2c5dd7548"}))))}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 d(){"undefined"!=typeof customElements&&["ui-breadcrumb"].forEach((t=>{"ui-breadcrumb"===t&&(customElements.get(e(t))||customElements.define(e(t),r))}))}d();const n=r,b=d;export{n as UiBreadcrumb,b as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
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
|
+
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);background:transparent;color:var(--ui-foreground);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
|
|
1
|
+
import{t as e,p as t,H as a,h as r,a as o}from"./index.js";const s=t(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return r(o,{key:"2f6568112992159a78a5c9dac99bd1a453cd779a"},r("div",{key:"3d76798bf20f98b20a8d7b1847896f9641585cda",class:"card"},r("slot",{key:"cf396f9448c56b96859072327f5f82bb00f0c36d",name:"title"}),r("slot",{key:"04fdf85b8c4ffa318b084616ba902998d085a990",name:"description"}),r("slot",{key:"a716446f123d47c8f47bea6915ac7489dd41fd45"}),r("slot",{key:"9b2e4abc3987a04e72b13eff8cacf3257b89f174",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 d(){"undefined"!=typeof customElements&&["ui-card"].forEach((t=>{"ui-card"===t&&(customElements.get(e(t))||customElements.define(e(t),s))}))}d();const i=s,c=d;export{i as UiCard,c as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as i,H as t,c
|
|
1
|
+
import{t as e,p as i,H as t,c,h as r,a}from"./index.js";const o=i(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiChange=c(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(a,{key:"ec07dd3898dfb9eeac1a07d41895be145a8f03f0"},r("button",{key:"7d1e72daf042994ba140703e5f8ce2bb5558932d",class:"checkbox",type:"button",role:"checkbox","aria-checked":this.checked?"true":"false",disabled:this.disabled,onClick:this.toggle,onKeyDown:this.onKeyDown},r("svg",{key:"f1a59bc59f90e6bce5b289a4a05da51778788c19",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:"6ea7bc0406e6e8befd6ceea7193423bd433d9a63",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 UiCombobox extends Components.UiCombobox, HTMLElement {}
|
|
4
|
+
export const UiCombobox: {
|
|
5
|
+
prototype: UiCombobox;
|
|
6
|
+
new (): UiCombobox;
|
|
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 i,p as t,H as s,c as e,h as o,a as r}from"./index.js";import{a,c as n,o as h,f as d,s as c,b as u}from"./p-DDtwbwIl.js";const l=t(class extends s{constructor(i){super(),!1!==i&&this.__registerHost(),this.__attachShadow(),this.uiChange=e(this,"uiChange"),this.options=[],this.value="",this.placeholder="",this.query="",this.open=!1,this.activeIndex=-1,this.listId="ui-combobox-list-"+Math.random().toString(36).slice(2,9),this.onInput=i=>{this.query=i.target.value,this.activeIndex=-1,this.setOpen(!0)},this.onFocus=()=>{this.setOpen(!0)},this.onKeydown=i=>{const t=this.filtered;switch(i.key){case"ArrowDown":if(i.preventDefault(),!this.open)return void this.setOpen(!0);if(0===t.length)return;this.activeIndex=(this.activeIndex+1)%t.length;break;case"ArrowUp":if(i.preventDefault(),0===t.length)return;this.activeIndex=(this.activeIndex-1+t.length)%t.length;break;case"Enter":this.open&&this.activeIndex>=0&&t[this.activeIndex]&&(i.preventDefault(),this.select(t[this.activeIndex]));break;case"Escape":this.open&&(i.preventDefault(),this.setOpen(!1))}},this.onDocumentClick=i=>{this.open&&(i.composedPath().includes(this.host)||this.setOpen(!1))}}componentWillLoad(){const i=this.options.find((i=>i.value===this.value));i&&(this.query=i.label)}disconnectedCallback(){this.stop(),document.removeEventListener("click",this.onDocumentClick)}get filtered(){const i=this.query.toLowerCase();return this.options.filter((t=>t.label.toLowerCase().includes(i)))}setOpen(i){this.open!==i&&(this.open=i,i?(requestAnimationFrame((()=>this.start())),document.addEventListener("click",this.onDocumentClick)):(this.stop(),this.activeIndex=-1,document.removeEventListener("click",this.onDocumentClick)))}start(){this.inputEl&&this.listEl&&(this.stop(),this.cleanup=a(this.inputEl,this.listEl,(()=>{this.inputEl&&this.listEl&&n(this.inputEl,this.listEl,{placement:"bottom-start",middleware:[h(6),d(),c({padding:8}),u({apply:({rects:i,elements:t})=>{Object.assign(t.floating.style,{width:i.reference.width+"px"})}})]}).then((({x:i,y:t})=>{Object.assign(this.listEl.style,{left:i+"px",top:t+"px"})}))})))}stop(){this.cleanup?.(),this.cleanup=void 0}select(i){this.value=i.value,this.query=i.label,this.setOpen(!1),this.uiChange.emit(i.value)}render(){const i=this.filtered;return o(r,{key:"64d332f96d0cb39e1889eb56dbf448f67e5ed240"},o("div",{key:"30f829b5eff180aa97a2bbb2f90a4e289768df71",class:"field"},o("input",{key:"f6df95047db674d2e49d34fed6057cffc86eab49",class:"input",type:"text",role:"combobox",value:this.query,placeholder:this.placeholder,autocomplete:"off","aria-expanded":this.open?"true":"false","aria-controls":this.listId,"aria-autocomplete":"list",ref:i=>this.inputEl=i,onInput:this.onInput,onFocus:this.onFocus,onKeyDown:this.onKeydown})),o("div",{key:"de55c7ad59dfa3e35aeac8799366e3ee849d1398",id:this.listId,class:{list:!0,"is-open":this.open},role:"listbox",ref:i=>this.listEl=i},0===i.length?o("div",{class:"empty"},"Nenhum resultado"):i.map(((i,t)=>o("div",{class:{option:!0,active:t===this.activeIndex,selected:i.value===this.value},role:"option","aria-selected":i.value===this.value?"true":"false",onMouseEnter:()=>this.activeIndex=t,onMouseDown:t=>{t.preventDefault(),this.select(i)}},i.label)))))}get host(){return this}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{border-color:var(--ui-border-strong)}.field:focus-within{border-color:var(--ui-accent);box-shadow:0 0 0 2px var(--ui-ring)}.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)}.list{position:fixed;top:0;left:0;z-index:50;max-height:16rem;overflow-y:auto;padding:0.25rem;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;transition:opacity var(--ui-duration) var(--ui-ease), visibility var(--ui-duration) var(--ui-ease)}.list.is-open{visibility:visible;opacity:1}.option{padding:0.5rem 0.75rem;font-size:0.875rem;color:var(--ui-foreground);border-radius:var(--ui-radius-sm);cursor:pointer;transition:background var(--ui-duration) var(--ui-ease)}.option.active{background:var(--ui-chip)}.option.selected{color:var(--ui-accent)}.empty{padding:0.5rem 0.75rem;font-size:0.875rem;color:var(--ui-text-faint)}"}},[1,"ui-combobox",{options:[16],value:[1025],placeholder:[1],query:[32],open:[32],activeIndex:[32]}]);function p(){"undefined"!=typeof customElements&&["ui-combobox"].forEach((t=>{"ui-combobox"===t&&(customElements.get(i(t))||customElements.define(i(t),l))}))}p();const b=l,f=p;export{b as UiCombobox,f as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as i,H as t,h as
|
|
1
|
+
import{t as e,p as i,H as t,h as d,a as n}from"./index.js";const s=i(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.size="lg",this.padded=!0}render(){return d(n,{key:"d9f407cdd15aa38d7e21898f4088d58846e38f22"},d("div",{key:"7c7596a79dedc3daf94ac5440447c4608e037854",class:{container:!0,["size-"+this.size]:!0,padded:this.padded}},d("slot",{key:"5005378ea1514e2d96fa0cdba219055161ee6688"})))}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),s))}))}a();const m=s,r=a;export{m as UiContainer,r as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface UiDatePicker extends Components.UiDatePicker, HTMLElement {}
|
|
4
|
+
export const UiDatePicker: {
|
|
5
|
+
prototype: UiDatePicker;
|
|
6
|
+
new (): UiDatePicker;
|
|
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 a,h as r,a as s}from"./index.js";import{a as o,c as n,o as d,f as c,s as l}from"./p-DDtwbwIl.js";const h=["D","S","T","Q","Q","S","S"],u=t(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiChange=a(this,"uiChange"),this.value="",this.placeholder="Selecione a data",this.open=!1,this.onTriggerClick=e=>{e.stopPropagation(),this.setOpen(!this.open)},this.onDocumentClick=e=>{this.open&&(e.composedPath().includes(this.host)||this.setOpen(!1))},this.onKeydown=e=>{"Escape"===e.key&&this.open&&this.setOpen(!1)},this.prevMonth=e=>{e.stopPropagation(),0===this.viewMonth?(this.viewMonth=11,this.viewYear-=1):this.viewMonth-=1},this.nextMonth=e=>{e.stopPropagation(),11===this.viewMonth?(this.viewMonth=0,this.viewYear+=1):this.viewMonth+=1}}componentWillLoad(){this.syncViewFromValue()}onValueChange(){this.syncViewFromValue()}disconnectedCallback(){this.stop(),document.removeEventListener("click",this.onDocumentClick),document.removeEventListener("keydown",this.onKeydown)}syncViewFromValue(){const e=this.parseValue(this.value)??new Date;this.viewYear=e.getFullYear(),this.viewMonth=e.getMonth()}parseValue(e){if(!e)return null;const t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(!t)return null;const[,i,a,r]=t;return new Date(Number(i),Number(a)-1,Number(r))}toISO(e,t,i){return`${e}-${(t+1+"").padStart(2,"0")}-${(i+"").padStart(2,"0")}`}formatValue(){const e=this.parseValue(this.value);return e?e.toLocaleDateString("pt-BR"):""}monthLabel(){return new Date(this.viewYear,this.viewMonth,1).toLocaleDateString("pt-BR",{month:"long",year:"numeric"})}setOpen(e){this.open!==e&&(this.open=e,e?(this.syncViewFromValue(),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)))}start(){this.triggerEl&&this.floatingEl&&(this.stop(),this.cleanup=o(this.triggerEl,this.floatingEl,(()=>{this.triggerEl&&this.floatingEl&&n(this.triggerEl,this.floatingEl,{placement:"bottom-start",middleware:[d(6),c(),l({padding:8})]}).then((({x:e,y:t})=>{Object.assign(this.floatingEl.style,{left:e+"px",top:t+"px"})}))})))}stop(){this.cleanup?.(),this.cleanup=void 0}selectDay(e){this.value=this.toISO(this.viewYear,this.viewMonth,e),this.setOpen(!1),this.uiChange.emit(this.value)}buildDays(){const e=new Date(this.viewYear,this.viewMonth,1).getDay(),t=new Date(this.viewYear,this.viewMonth+1,0).getDate();return[...Array.from({length:e},(()=>0)),...Array.from({length:t},((e,t)=>t+1))]}isToday(e){const t=new Date;return e===t.getDate()&&this.viewMonth===t.getMonth()&&this.viewYear===t.getFullYear()}isSelected(e){return this.value===this.toISO(this.viewYear,this.viewMonth,e)}render(){const e=this.formatValue();return r(s,{key:"4ba4b256b16f49d1e65ffbe774c50065f097482f"},r("button",{key:"0fa06810a3533cafcc808e680f61c3f289148ec5",type:"button",class:"field",ref:e=>this.triggerEl=e,onClick:this.onTriggerClick,"aria-haspopup":"dialog","aria-expanded":this.open?"true":"false"},r("span",{key:"fd6c3f01d8ba6212284b70c8830a007fc6dc4fcb",class:{label:!0,placeholder:!e}},e||this.placeholder),r("svg",{key:"aebef2e4b5928db3fdd0eee7754d6d7c430459d4",class:"icon",viewBox:"0 0 24 24",width:"18",height:"18",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},r("rect",{key:"8a87dd6a1230546145cd0d6626309c4c3835d379",x:"3",y:"4",width:"18",height:"18",rx:"2"}),r("path",{key:"e3bca802e11ff11bbbd767c92233843a2b767e78",d:"M16 2v4M8 2v4M3 10h18"}))),r("div",{key:"1a8d439b816c7dcf0789e26788aee838e311b087",class:{calendar:!0,"is-open":this.open},role:"dialog",ref:e=>this.floatingEl=e},r("div",{key:"82d98e286b405ddfd12cc65cffe26b14ace1a31c",class:"header"},r("button",{key:"6a01a9a3458d3e7b1dfc5ff153266106b9242511",type:"button",class:"nav","aria-label":"Mês anterior",onClick:this.prevMonth},r("svg",{key:"cea0c6c7aecdf96eb2b4e42bf1b559fe7ea6e443",viewBox:"0 0 24 24",width:"16",height:"16",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},r("path",{key:"54d095e51205b3df5f52af6d2d28f89f2dd4db5c",d:"m15 18-6-6 6-6"}))),r("span",{key:"2dd822f49aa7f8bb419079a0c47f29bbfb7a22c4",class:"month-label"},this.monthLabel()),r("button",{key:"553659e9903e96b84dcecbc86270d915dcd947f5",type:"button",class:"nav","aria-label":"Próximo mês",onClick:this.nextMonth},r("svg",{key:"a73cdb32bedad0004a1d84b44e7866e008864fd8",viewBox:"0 0 24 24",width:"16",height:"16",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},r("path",{key:"dac9e5c1fc22d2eefc73046269246ae07af53037",d:"m9 18 6-6-6-6"})))),r("div",{key:"e731ae7eab8fee747826a58634cad540a60317a5",class:"weekdays"},h.map((e=>r("span",{class:"weekday"},e)))),r("div",{key:"4aa9f208fb5b20b3b35ae14f27d435918db3f380",class:"grid"},this.buildDays().map((e=>0===e?r("span",{class:"day empty"}):r("button",{type:"button",class:{day:!0,today:this.isToday(e),selected:this.isSelected(e)},onClick:t=>{t.stopPropagation(),this.selectDay(e)}},e))))))}get host(){return this}static get watchers(){return{value:[{onValueChange:0}]}}static get style(){return":host{display:inline-block;font-family:var(--ui-font-sans)}.field{display:inline-flex;align-items:center;justify-content:space-between;gap:0.5rem;width:100%;min-width:12rem;height:2.75rem;padding:0 0.875rem;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;text-align:left;cursor:pointer;backdrop-filter:blur(22px);transition:all var(--ui-duration) var(--ui-ease);box-sizing:border-box}.field:hover{border-color:var(--ui-border-strong)}.field:focus-visible{outline:none;border-color:var(--ui-accent);box-shadow:0 0 0 2px var(--ui-ring)}.label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ui-foreground)}.label.placeholder{color:var(--ui-text-faint)}.icon{flex:none;color:var(--ui-text-muted)}.calendar{position:fixed;top:0;left:0;z-index:50;width:17rem;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)}.calendar.is-open{visibility:visible;opacity:1;transform:scale(1)}.header{display:flex;align-items:center;justify-content:space-between;margin-bottom:0.75rem}.month-label{font-size:0.875rem;font-weight:600;text-transform:capitalize;color:var(--ui-foreground)}.nav{display:inline-flex;align-items:center;justify-content:center;flex:none;width:2rem;height:2rem;padding:0;border:none;border-radius:var(--ui-radius-full);background:transparent;color:var(--ui-text-soft);cursor:pointer;transition:all var(--ui-duration) var(--ui-ease)}.nav:hover{background:var(--ui-chip);color:var(--ui-foreground)}.weekdays{display:grid;grid-template-columns:repeat(7, 1fr);margin-bottom:0.25rem}.weekday{display:flex;align-items:center;justify-content:center;height:1.75rem;font-size:0.7rem;color:var(--ui-text-faint)}.grid{display:grid;grid-template-columns:repeat(7, 1fr);gap:0.125rem;justify-items:center}.day{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0;border:1px solid transparent;border-radius:var(--ui-radius-full);background:transparent;color:var(--ui-foreground);font-family:var(--ui-font-sans);font-size:0.8125rem;cursor:pointer;transition:all var(--ui-duration) var(--ui-ease)}.day.empty{cursor:default;pointer-events:none}.day:hover:not(.empty):not(.selected){background:var(--ui-chip)}.day.today{border-color:var(--ui-accent)}.day.selected{background:var(--ui-accent);color:var(--ui-accent-contrast);border-color:transparent}"}},[1,"ui-date-picker",{value:[1025],placeholder:[1],open:[32],viewYear:[32],viewMonth:[32]},void 0,{value:[{onValueChange:0}]}]);function f(){"undefined"!=typeof customElements&&["ui-date-picker"].forEach((t=>{"ui-date-picker"===t&&(customElements.get(e(t))||customElements.define(e(t),u))}))}f();const b=u,p=f;export{b as UiDatePicker,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as
|
|
1
|
+
import{t,p as a,H as e,c as s,h as o,a as i}from"./index.js";const n=a(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.uiClose=s(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 o(i,{key:"f0ba1e147438e9941bd748b84cca800b93e0058a"},o("dialog",{key:"54a38db84cc2bcd5064401499c8cbc48f9355021",class:"dialog",ref:t=>this.dialogEl=t,onClose:this.onClose,onCancel:this.onClose,onClick:this.onBackdropClick},o("div",{key:"658cf9b13efe14c8db0c02b14b6ace5686ca686a",class:"content"},o("slot",{key:"00cc3a3657049aabb7c80dfdefba059a5767da78"}))))}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((a=>{"ui-dialog"===a&&(customElements.get(t(a))||customElements.define(t(a),n))}))}r();const c=n,d=r;export{c as UiDialog,d as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as
|
|
1
|
+
import{t,p as e,H as r,c as i,h as o,a as s}from"./index.js";const a=e(class extends r{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:"92e328d6068d3e183463e06897b9dc16e36c3be7"},o("dialog",{key:"d18eb940d959341831da313ee342f21f181aacfc",class:"drawer side-"+this.side,ref:t=>this.dialogEl=t,onClose:this.onClose,onCancel:this.onClose,onClick:this.onBackdropClick},o("div",{key:"9edf182db03b796ef944fbd4340d1d31db8b5321",class:"content"},o("slot",{key:"34a67441244720ee301b9f4c2b871889a2a87d0b"}))))}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 n(){"undefined"!=typeof customElements&&["ui-drawer"].forEach((e=>{"ui-drawer"===e&&(customElements.get(t(e))||customElements.define(t(e),a))}))}n();const d=a,h=n;export{d 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:"46fe995e0d6496002cb4ffda00e444731f195805"},o("button",{key:"5938fcad75c81029a321bdce5c1b2c98cb4cb6a2",type:"button",class:"item",role:"menuitem",disabled:this.disabled,onClick:this.onClick},o("slot",{key:"32227bb1f298ab6ba3d97d1bae86b6ce713703b8"})))}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
|
|
1
|
+
import{t,p as i,H as s,c as e,h as a,a as n}from"./index.js";import{a as o,c as r,o as c,f as h,s as d}from"./p-DDtwbwIl.js";const l=i(class extends s{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=o(this.triggerEl,this.floatingEl,(()=>{this.triggerEl&&this.floatingEl&&r(this.triggerEl,this.floatingEl,{placement:this.placement,middleware:[c(8),h(),d({padding:8})]}).then((({x:t,y:i})=>{Object.assign(this.floatingEl.style,{left:t+"px",top:i+"px"})}))})))}stop(){this.cleanup?.(),this.cleanup=void 0}render(){return a(n,{key:"3224e4bac8bcfeda15aa6a5411a95574795231a8"},a("span",{key:"5f0c50e0cb28c349469be5971ac0622f05d8dd19",class:"trigger",ref:t=>this.triggerEl=t,onClick:this.onTriggerClick},a("slot",{key:"616a2917a7377d00414c8fe9745ef6c1297841fa",name:"trigger"})),a("div",{key:"efa36b327e9ba6a89b939170c296a69ffbe18e90",class:{menu:!0,"is-open":this.open},role:"menu",ref:t=>this.floatingEl=t},a("slot",{key:"aaffbbb6b8fe37072c8344d95a902dcb667416ba"})))}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((i=>{"ui-dropdown-menu"===i&&(customElements.get(t(i))||customElements.define(t(i),l))}))}u();const p=l,m=u;export{p as UiDropdownMenu,m as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as
|
|
1
|
+
import{t as e,p as i,H as r,h as s,a as t}from"./index.js";const a=i(class extends r{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.required=!1}render(){return s(t,{key:"f39f480b04be85c60eaa8821358b8921d52a7801"},s("div",{key:"22303a73ad07ca344ef29c25947443e4d43e95fb",class:"field"},this.label&&s("label",{key:"bf355b9c884ee0393c91f4d3cdaa38ab6d0132dc",class:"label",htmlFor:this.fieldId},this.label,this.required&&s("span",{key:"94614ebcee5a68e180e135f5294370e272836b90",class:"required","aria-hidden":"true"}," *")),s("slot",{key:"7d4b22b2741540aac3b017b882f9abfdb67c7492"}),this.error?s("p",{class:"error",role:"alert"},this.error):this.description&&s("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((i=>{"ui-field"===i&&(customElements.get(e(i))||customElements.define(e(i),a))}))}o();const l=a,n=o;export{l as UiField,n as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface UiFileUpload extends Components.UiFileUpload, HTMLElement {}
|
|
4
|
+
export const UiFileUpload: {
|
|
5
|
+
prototype: UiFileUpload;
|
|
6
|
+
new (): UiFileUpload;
|
|
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,c as s,h as r,a}from"./index.js";const n=i(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiChange=s(this,"uiChange"),this.multiple=!1,this.label="Arraste arquivos ou clique para enviar",this.files=[],this.dragging=!1,this.openPicker=()=>{this.inputEl?.click()},this.onInputChange=e=>{this.setFiles(e.target.files)},this.onDragOver=e=>{e.preventDefault(),this.dragging=!0},this.onDragLeave=()=>{this.dragging=!1},this.onDrop=e=>{e.preventDefault(),this.dragging=!1,this.setFiles(e.dataTransfer?.files??null)}}setFiles(e){e&&(this.files=Array.from(e),this.uiChange.emit(this.files))}formatSize(e){return e>=1048576?(e/1048576).toFixed(1)+" MB":(e/1024).toFixed(1)+" KB"}render(){return r(a,{key:"675f04b6b96fcdcd10f1344c20225501671e456b"},r("button",{key:"bcc1bb63fa043f0778f38370d919eabfb37930f5",type:"button",class:{dropzone:!0,dragging:this.dragging},onClick:this.openPicker,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDrop:this.onDrop},r("svg",{key:"a5836edcdf54284806125e0356f0a5d9bf3e075a",class:"icon",viewBox:"0 0 24 24",width:"2rem",height:"2rem",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},r("path",{key:"093a31bf1257a470ad7447c20ff02f4ca3ce1957",d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),r("polyline",{key:"c1eaf0285b47c402fefba5d16d3e1418df06405e",points:"17 8 12 3 7 8"}),r("line",{key:"4655c3de2b0df216d7f520eb81dc8e8a839fde25",x1:"12",y1:"3",x2:"12",y2:"15"})),r("span",{key:"afa948d851f9df7944a2c669f9e0432fb1bb017b",class:"label"},this.label),this.accept?r("span",{class:"hint"},this.accept):null),r("input",{key:"d2b97f6a23121a701da7e9296f0f06d0175c6edc",type:"file",hidden:!0,accept:this.accept,multiple:this.multiple,ref:e=>this.inputEl=e,onChange:this.onInputChange}),this.files.length>0?r("ul",{class:"files"},this.files.map((e=>r("li",{class:"file"},r("span",{class:"file-name"},e.name),r("span",{class:"file-size"},this.formatSize(e.size)))))):null)}static get style(){return":host{display:block}.dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.5rem;width:100%;padding:1.5rem;border:2px dashed var(--ui-border-strong);border-radius:var(--ui-radius-lg);background:transparent;font-family:var(--ui-font-sans);cursor:pointer;transition:background var(--ui-duration) var(--ui-ease), border-color var(--ui-duration) var(--ui-ease)}.dropzone:hover,.dropzone.dragging{background:var(--ui-chip)}.dropzone:focus-visible{outline:none;box-shadow:0 0 0 2px var(--ui-ring)}.icon{color:var(--ui-text-soft)}.label{font-size:0.875rem;color:var(--ui-text-muted)}.hint{font-size:0.75rem;color:var(--ui-text-faint)}.files{list-style:none;margin:0.75rem 0 0;padding:0;display:flex;flex-direction:column;gap:0.375rem}.file{display:flex;align-items:center;justify-content:space-between;gap:0.75rem;padding:0.5rem 0.75rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius);background:var(--ui-panel);font-family:var(--ui-font-sans)}.file-name{font-size:0.875rem;color:var(--ui-foreground);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-size{flex-shrink:0;font-size:0.75rem;color:var(--ui-text-muted)}"}},[1,"ui-file-upload",{accept:[1],multiple:[4],label:[1],files:[32],dragging:[32]}]);function o(){"undefined"!=typeof customElements&&["ui-file-upload"].forEach((i=>{"ui-file-upload"===i&&(customElements.get(e(i))||customElements.define(e(i),n))}))}o();const l=n,d=o;export{l as UiFileUpload,d as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as t,H as s,h as i,a}from"./index.js";const
|
|
1
|
+
import{t as e,p as t,H as s,h as i,a as r}from"./index.js";const m={xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem"},a=t(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.columns=12,this.gap="md"}render(){return i(r,{key:"fa78c94117bc998616e3f30ef936527d5be66e13"},i("div",{key:"8594c436b71b7f49434b3366ec70ea24c6b437dc",class:"grid",style:{gridTemplateColumns:this.minItemWidth?`repeat(auto-fit, minmax(${this.minItemWidth}, 1fr))`:`repeat(${this.columns}, minmax(0, 1fr))`,gap:m[this.gap]}},i("slot",{key:"79bb94baa8dd68e82b88734d57f6e31b033a7f5f"})))}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),a))}))}d();const n=a,o=d;export{n as UiGrid,o as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as i,H as
|
|
1
|
+
import{t as e,p as i,H as t,c as a,h as r,a as s}from"./index.js";const n=i(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiInput=a(this,"uiInput"),this.uiChange=a(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:"cfe13feedab47ba88763ae727eb77ca15a0c52a3"},r("div",{key:"7c79750f2ad87a55462a2416e9d46b4558f9b279",class:{field:!0,invalid:this.invalid,disabled:this.disabled}},r("span",{key:"dafa1e0120f0de7a041ecfdb98db4203c1d67a28",class:"affix"},r("slot",{key:"80aef681671784cd65f473975e441027d038c340",name:"prefix"})),r("input",{key:"8bad96710b4190784302fe9ce908f33aef0bc126",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:"4b26604a6c1ff8004afa6ef0964490ba82553d61",class:"clear",type:"button","aria-label":"Limpar",onClick:this.clear},r("svg",{key:"87195594cef1db73b86f1117233fdef13ee9fa1a",viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"},r("path",{key:"66be8eddf982847bf22f59f9113b66b4e47ca005",d:"M18 6 6 18M6 6l12 12"}))),r("span",{key:"749bf6ba578fd22b2d6c34b0fb7522f5a87a33e3",class:"affix"},r("slot",{key:"b226025774cedd33f915c6155061044b272d77a1",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 s,h as a,a as c}from"./index.js";const l=t(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return a(c,{key:"45a53d43b29ba78ac9852334536e9d7cb93e9c3c"},a("label",{key:"f8209140ec401f7a055d398181a421f281307a9b",class:"label"},a("slot",{key:"50ba3bbce082e8f0c402c7acb3cd25ce822e3728"})))}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 n(){"undefined"!=typeof customElements&&["ui-label"].forEach((t=>{"ui-label"===t&&(customElements.get(e(t))||customElements.define(e(t),l))}))}n();const o=l,i=n;export{o 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-DUT2Q8Df.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 UiNavbar extends Components.UiNavbar, HTMLElement {}
|
|
4
|
+
export const UiNavbar: {
|
|
5
|
+
prototype: UiNavbar;
|
|
6
|
+
new (): UiNavbar;
|
|
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 c}from"./index.js";const n=a(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return s(c,{key:"db6c3b0a7eee0812d931d4fb4c8b5ce444749b5e"},s("nav",{key:"990bc62b051ca9f24ee5be4bf4e383873e5d8269",class:"navbar"},s("div",{key:"999b46029fb0e0b6f5a04942d9326b30f7b0e392",class:"brand"},s("slot",{key:"189a4521a16efdec4eee5c433b17a71028f05c90",name:"brand"})),s("div",{key:"b3e129ad603ed6d32ec676aab96cf39e51834dec",class:"center"},s("slot",{key:"dc1fff1b9c536df2d88b5e92a83634d1e3bca384"})),s("div",{key:"854fac1322e96c7c67bf204af17ea665494c0fc5",class:"actions"},s("slot",{key:"0f07b817547c866df0137f8667790b3caa65bea8",name:"actions"}))))}static get style(){return":host{display:block}.navbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:0.75rem 1.25rem;background:var(--ui-panel-strong);backdrop-filter:blur(22px);border-bottom:1px solid var(--ui-border);font-family:var(--ui-font-sans);color:var(--ui-text-soft)}.brand{display:flex;align-items:center;gap:0.5rem;font-weight:600;color:var(--ui-foreground)}.center{display:flex;align-items:center;gap:1rem}.actions{display:flex;align-items:center;gap:0.75rem}"}},[257,"ui-navbar"]);function r(){"undefined"!=typeof customElements&&["ui-navbar"].forEach((a=>{"ui-navbar"===a&&(customElements.get(e(a))||customElements.define(e(a),n))}))}r();const b=n,i=r;export{b as UiNavbar,i as defineCustomElement}
|
|
@@ -1 +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:"
|
|
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:"23be36b9c734a9c43e9644337a58e4ede719215d"},n("nav",{key:"618c7c85d1ea8f93bdd058d7ba4e61a62991e2d6",class:"pagination",role:"navigation","aria-label":"Paginação"},n("button",{key:"a9c0cac9d2b2fb6c61e9627158efd08f1e20f597",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:"38fb86bda60934768f24c117e8586acb35f88513",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
|
|
1
|
+
import{t,p as i,H as s,c as e,h as o,a}from"./index.js";import{a as n,c as r,o as c,f as h,s as d}from"./p-DDtwbwIl.js";const p=i(class extends s{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),h(),d({padding:8})]}).then((({x:t,y:i})=>{Object.assign(this.floatingEl.style,{left:t+"px",top:i+"px"})}))})))}stop(){this.cleanup?.(),this.cleanup=void 0}render(){return o(a,{key:"005686226a579c5a9968f9b99bc177bfc523f4bc"},o("span",{key:"3c43cbdfd37c6ec5243c94069fb3e417fb4fde8b",class:"trigger",ref:t=>this.triggerEl=t,onClick:this.onTriggerClick},o("slot",{key:"bcc68719623c4035cb4b811d52d916c86b814657",name:"trigger"})),o("div",{key:"04865b639bcb5ba267d1ed3e0399f8b677c1befa",class:{panel:!0,"is-open":this.open},ref:t=>this.floatingEl=t},o("slot",{key:"2a518fa968650f9e844996b21d421f5e96834fbd"})))}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((i=>{"ui-popover"===i&&(customElements.get(t(i))||customElements.define(t(i),p))}))}l();const u=p,b=l;export{u as UiPopover,b as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface UiProgressCircular extends Components.UiProgressCircular, HTMLElement {}
|
|
4
|
+
export const UiProgressCircular: {
|
|
5
|
+
prototype: UiProgressCircular;
|
|
6
|
+
new (): UiProgressCircular;
|
|
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 i,h as s,a as r}from"./index.js";const a=e(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.value=null,this.max=100,this.size="3rem",this.strokeWidth=4,this.indeterminate=!1,this.showValue=!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}render(){const t=!this.isIndeterminate,e=50-this.strokeWidth,i=2*Math.PI*e,a=t?i*(1-this.percent):.75*i;return s(r,{key:"4201e2e660c07a1b3d5ad6e2a464b3dc4075308a",role:"progressbar","aria-valuenow":t?this.value+"":void 0,"aria-valuemin":t?"0":void 0,"aria-valuemax":t?this.max+"":void 0,style:{width:this.size,height:this.size}},s("svg",{key:"fe9226a711cbdd751baf6fd06e8acef3af63349e",class:{ring:!0,indeterminate:this.isIndeterminate},width:this.size,height:this.size,viewBox:"0 0 100 100"},s("circle",{key:"c7dc8282a2295ac97009f575bb7f116d54b0f917",class:"track",cx:"50",cy:"50",r:e+"","stroke-width":this.strokeWidth+""}),s("circle",{key:"04f88283dde12b1e6c2206f7421fb4fa72c6d569",class:"indicator",cx:"50",cy:"50",r:e+"","stroke-width":this.strokeWidth+"","stroke-linecap":"round","stroke-dasharray":i+"","stroke-dashoffset":a+""})),this.showValue&&t?s("div",{class:"value"},Math.round(100*this.percent),"%"):null)}static get style(){return":host{display:inline-flex;position:relative;align-items:center;justify-content:center}.ring{display:block}.ring.indeterminate{animation:ui-progress-circular-spin 1s linear infinite;transform-origin:center}.track{fill:none;stroke:var(--ui-chip)}.indicator{fill:none;stroke:var(--ui-accent);transform:rotate(-90deg);transform-origin:center;transition:stroke-dashoffset var(--ui-duration) var(--ui-ease)}.value{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-family:var(--ui-font-sans);font-size:0.8rem;font-weight:600;color:var(--ui-foreground)}@keyframes ui-progress-circular-spin{to{transform:rotate(360deg)}}"}},[1,"ui-progress-circular",{value:[2],max:[2],size:[1],strokeWidth:[2,"stroke-width"],indeterminate:[4],showValue:[4,"show-value"]}]);function n(){"undefined"!=typeof customElements&&["ui-progress-circular"].forEach((e=>{"ui-progress-circular"===e&&(customElements.get(t(e))||customElements.define(t(e),a))}))}n();const o=a,c=n;export{o as UiProgressCircular,c as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as i,p as e,H as r,h as t,a
|
|
1
|
+
import{t as i,p as e,H as r,h as t,a}from"./index.js";const s=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(a,{key:"0d53e528a9a2176e683310c375ff63a3785b7bc6",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:"5e7511d189ebc53dfffa6f9aabf0c6d110d2ba0f",class:"track"},t("div",{key:"7d68e2e258c8d31a46815a66416853ea31af1b79",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),s))}))}n();const d=s,o=n;export{d as UiProgress,o as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as i,p as r,H as e,c as
|
|
1
|
+
import{t as i,p as r,H as e,c as t,h as a,a as o}from"./index.js";const s=r(class extends e{constructor(i){super(),!1!==i&&this.__registerHost(),this.__attachShadow(),this.uiChange=t(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 t=-1;"ArrowDown"===i.key||"ArrowRight"===i.key?t=(r+1)%e:"ArrowUp"!==i.key&&"ArrowLeft"!==i.key||(t=(r-1+e)%e),t>=0&&(i.preventDefault(),this.select(this.options[t].value))}}render(){return a(o,{key:"f7265dce62bf0d590da4b9d8f8756f11991680fb"},a("div",{key:"ba70adcb04fae5ba2f78089ac95f8dfed4014efd",class:"group",role:"radiogroup"},this.options.map(((i,r)=>{const e=i.value===this.value;return a("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)},a("span",{class:"indicator"},a("span",{class:"dot"})),a("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,u=n;export{d as UiRadioGroup,u as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface UiRating extends Components.UiRating, HTMLElement {}
|
|
4
|
+
export const UiRating: {
|
|
5
|
+
prototype: UiRating;
|
|
6
|
+
new (): UiRating;
|
|
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 r,c as s,h as i,a}from"./index.js";const o=e(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.uiChange=s(this,"uiChange"),this.value=0,this.max=5,this.readonly=!1,this.hoverValue=-1,this.onLeave=()=>{this.hoverValue=-1}}select(t){this.readonly||(this.value=t,this.uiChange.emit(this.value))}onEnter(t){this.readonly||(this.hoverValue=t)}render(){const t=this.hoverValue>0?this.hoverValue:this.value,e=Array.from({length:this.max},((t,e)=>e+1));return i(a,{key:"b334c2aea5f4b15907ef5d386f344403b97f0324"},i("div",{key:"635e2ec90f98eb3f90c4f365d32fc82b5763cf42",class:"rating",role:"radiogroup","aria-label":"Avaliação",onMouseLeave:this.onLeave},e.map((e=>i("button",{class:{star:!0,filled:e<=t,readonly:this.readonly},type:"button",role:"radio","aria-checked":e===this.value?"true":"false","aria-label":e+" estrelas",onClick:()=>this.select(e),onMouseEnter:()=>this.onEnter(e)},i("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%"},i("path",{d:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"})))))))}static get style(){return":host{display:inline-flex}.rating{display:inline-flex;align-items:center;gap:0.125rem}.star{width:1.5rem;height:1.5rem;padding:0;border:none;background:none;cursor:pointer;color:var(--ui-border-strong);transition:color var(--ui-duration) var(--ui-ease), transform var(--ui-duration) var(--ui-ease)}.star svg{display:block;fill:none;stroke:currentColor;stroke-width:1.5}.star.filled{color:var(--ui-warning)}.star.filled svg{fill:currentColor;stroke:currentColor}.star:not(.readonly):hover{transform:scale(1.15)}.star:focus-visible{outline:none;border-radius:var(--ui-radius);box-shadow:0 0 0 2px var(--ui-ring)}.star.readonly{pointer-events:none;cursor:default}"}},[1,"ui-rating",{value:[1026],max:[2],readonly:[4],hoverValue:[32]}]);function n(){"undefined"!=typeof customElements&&["ui-rating"].forEach((e=>{"ui-rating"===e&&(customElements.get(t(e))||customElements.define(t(e),o))}))}n();const l=o,u=n;export{l as UiRating,u as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as t,H as s,h as i,a}from"./index.js";const
|
|
1
|
+
import{t as e,p as t,H as s,h as i,a as r}from"./index.js";const a=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(r,{key:"5bb285428644e0c3e130178e5c34811ff5c52d5a"},i("div",{key:"1884cbc6f94fdee392ed94ab8fbc4a449747138a",class:{reveal:!0,visible:this.visible},style:{transitionDelay:this.delay+"ms"}},i("slot",{key:"270ee6624c2ba58edc786d80fb3d777ff3cebb41"})))}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),a))}))}n();const o=a,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:"fee75a94ba6949fffe43501b672492795632f687"},r("div",{key:"fc881ac42582dc50df17861b918d96331216b86f",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:"541fff68d5138d9c8767a22f4fc031d77d532010"},r("section",{key:"a05b3596b2dae7e78216b087af28f0be57d79468"},this.eyebrow&&r("p",{key:"d429995b90a7877792fb4c2def70a2dd9fd1865d",class:"eyebrow"},this.eyebrow),this.heading&&r("h2",{key:"41849c37d94c9d91cfedaa0bceec0a453089326d",class:"heading"},this.heading),this.description&&r("p",{key:"5b244c629c70ed213426d141bec5c67da670d566",class:"description"},this.description),r("slot",{key:"7ad5eafe43915eb69f31532417f1ea28f232b5c8"})))}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 d(){"undefined"!=typeof customElements&&["ui-section"].forEach((t=>{"ui-section"===t&&(customElements.get(e(t))||customElements.define(e(t),a))}))}d();const n=a,o=d;export{n as UiSection,o as defineCustomElement}
|
|
@@ -1 +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:"
|
|
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:"ff4e74a388b0c7db02c4065e32c93b66d1338fb8"},s("div",{key:"163708540ba5221f2b7a90dc7778c2d83072b6e4",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:"a1abda48256851c19e13b1516c9789ff270fd55f"},o("div",{key:"9556917c11784833418565b305b814e176b4ce22",class:"wrapper"},o("select",{key:"6f724cd6c5c83d841839c1a13b8e1f74720edd57",class:"select",name:this.name,disabled:this.disabled,onChange:this.onChange},this.placeholder&&o("option",{key:"2b70163c4f64850d05f8194b310041bc32d18930",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:"748cda678998b6739fc56aaa7df36964a37a0f12",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:"957613dc5eeb6471f4dfc1cc4e8203c90d291cdb",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:"64211b51121d5c090a1f7e3feb88e7c076dc5b7b",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 as r}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 a=s(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return n(r,{key:"b8c2b1288e037ec55d582d07a6f9d83ad63789b4"},n("span",{key:"3a939a4d6ab7ce5791bd3ffb7210743ad68e0db8",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 i(){"undefined"!=typeof customElements&&["ui-skeleton"].forEach((s=>{"ui-skeleton"===s&&(customElements.get(e(s))||customElements.define(e(s),a))}))}i();const o=a,d=i;export{o as UiSkeleton,d as defineCustomElement}
|