@andespindola/ui-core 0.3.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-Cb1tfi_9.js → index-DV8CICae.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/ui-accordion-item.cjs.entry.js +2 -2
- package/dist/cjs/ui-accordion.cjs.entry.js +2 -2
- package/dist/cjs/ui-alert.cjs.entry.js +1 -1
- package/dist/cjs/ui-avatar-group.cjs.entry.js +2 -2
- package/dist/cjs/ui-avatar.cjs.entry.js +3 -3
- package/dist/cjs/ui-badge.cjs.entry.js +1 -1
- package/dist/cjs/ui-breadcrumb-item.cjs.entry.js +2 -2
- package/dist/cjs/ui-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/ui-button.cjs.entry.js +2 -2
- package/dist/cjs/ui-card.cjs.entry.js +2 -2
- package/dist/cjs/ui-carousel.cjs.entry.js +104 -0
- package/dist/cjs/ui-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/ui-combobox.cjs.entry.js +1 -1
- package/dist/cjs/ui-command.cjs.entry.js +137 -0
- package/dist/cjs/ui-container.cjs.entry.js +2 -2
- package/dist/cjs/ui-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/ui-dialog.cjs.entry.js +2 -2
- package/dist/cjs/ui-drawer.cjs.entry.js +2 -2
- package/dist/cjs/ui-dropdown-item.cjs.entry.js +2 -2
- package/dist/cjs/ui-dropdown-menu.cjs.entry.js +2 -2
- package/dist/cjs/ui-field.cjs.entry.js +2 -2
- package/dist/cjs/ui-file-upload.cjs.entry.js +2 -2
- package/dist/cjs/ui-grid.cjs.entry.js +2 -2
- package/dist/cjs/ui-input.cjs.entry.js +2 -2
- package/dist/cjs/ui-label.cjs.entry.js +2 -2
- package/dist/cjs/ui-loading-overlay.cjs.entry.js +1 -1
- package/dist/cjs/ui-navbar.cjs.entry.js +2 -2
- package/dist/cjs/ui-pagination.cjs.entry.js +3 -3
- package/dist/cjs/ui-popover.cjs.entry.js +2 -2
- package/dist/cjs/ui-progress-circular.cjs.entry.js +2 -2
- package/dist/cjs/ui-progress.cjs.entry.js +2 -2
- package/dist/cjs/ui-radio-group.cjs.entry.js +2 -2
- package/dist/cjs/ui-rating.cjs.entry.js +2 -2
- package/dist/cjs/ui-reveal.cjs.entry.js +2 -2
- package/dist/cjs/ui-scroll-progress.cjs.entry.js +2 -2
- package/dist/cjs/ui-section.cjs.entry.js +2 -2
- package/dist/cjs/ui-segmented.cjs.entry.js +2 -2
- package/dist/cjs/ui-select.cjs.entry.js +2 -2
- package/dist/cjs/ui-separator.cjs.entry.js +2 -2
- package/dist/cjs/ui-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/ui-slider.cjs.entry.js +2 -2
- package/dist/cjs/ui-spinner.cjs.entry.js +3 -3
- package/dist/cjs/ui-stack.cjs.entry.js +2 -2
- package/dist/cjs/ui-stat.cjs.entry.js +2 -2
- package/dist/cjs/ui-switch.cjs.entry.js +2 -2
- package/dist/cjs/ui-table.cjs.entry.js +2 -2
- package/dist/cjs/ui-tabs.cjs.entry.js +3 -3
- package/dist/cjs/ui-textarea.cjs.entry.js +2 -2
- package/dist/cjs/ui-theme-toggle.cjs.entry.js +2 -2
- package/dist/cjs/ui-timeline-item.cjs.entry.js +19 -0
- package/dist/cjs/ui-timeline.cjs.entry.js +17 -0
- package/dist/cjs/ui-toast.cjs.entry.js +2 -2
- package/dist/cjs/ui-toaster.cjs.entry.js +2 -2
- package/dist/cjs/ui-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/uikit.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +4 -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.css +2 -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 +3 -2
- package/dist/collection/components/ui-card/ui-card.js +1 -1
- package/dist/collection/components/ui-carousel/ui-carousel.css +103 -0
- package/dist/collection/components/ui-carousel/ui-carousel.js +273 -0
- package/dist/collection/components/ui-checkbox/ui-checkbox.js +1 -1
- package/dist/collection/components/ui-command/ui-command.css +85 -0
- package/dist/collection/components/ui-command/ui-command.js +290 -0
- package/dist/collection/components/ui-container/ui-container.js +1 -1
- package/dist/collection/components/ui-date-picker/ui-date-picker.js +1 -1
- package/dist/collection/components/ui-dialog/ui-dialog.js +1 -1
- package/dist/collection/components/ui-drawer/ui-drawer.js +1 -1
- package/dist/collection/components/ui-dropdown-item/ui-dropdown-item.js +1 -1
- package/dist/collection/components/ui-dropdown-menu/ui-dropdown-menu.js +1 -1
- package/dist/collection/components/ui-field/ui-field.js +1 -1
- package/dist/collection/components/ui-file-upload/ui-file-upload.js +1 -1
- 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.js +1 -1
- 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.js +1 -1
- package/dist/collection/components/ui-radio-group/ui-radio-group.js +1 -1
- package/dist/collection/components/ui-rating/ui-rating.js +1 -1
- package/dist/collection/components/ui-reveal/ui-reveal.js +1 -1
- package/dist/collection/components/ui-scroll-progress/ui-scroll-progress.js +1 -1
- package/dist/collection/components/ui-section/ui-section.js +1 -1
- package/dist/collection/components/ui-segmented/ui-segmented.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.css +1 -0
- 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.js +1 -1
- package/dist/collection/components/ui-tabs/ui-tabs.js +2 -2
- package/dist/collection/components/ui-textarea/ui-textarea.js +1 -1
- package/dist/collection/components/ui-theme-toggle/ui-theme-toggle.js +1 -1
- package/dist/collection/components/ui-timeline/ui-timeline.css +8 -0
- package/dist/collection/components/ui-timeline/ui-timeline.js +18 -0
- package/dist/collection/components/ui-timeline-item/ui-timeline-item.css +83 -0
- package/dist/collection/components/ui-timeline-item/ui-timeline-item.js +90 -0
- 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/index.js +1 -1
- package/dist/components/p-Bme0V5M9.js +1 -0
- package/dist/components/{p-DDJE__UC.js → p-DAnXvxY_.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-carousel.d.ts +11 -0
- package/dist/components/ui-carousel.js +1 -0
- package/dist/components/ui-checkbox.js +1 -1
- package/dist/components/ui-command.d.ts +11 -0
- package/dist/components/ui-command.js +1 -0
- package/dist/components/ui-container.js +1 -1
- package/dist/components/ui-date-picker.js +1 -1
- package/dist/components/ui-dialog.js +1 -1
- package/dist/components/ui-drawer.js +1 -1
- package/dist/components/ui-dropdown-item.js +1 -1
- package/dist/components/ui-dropdown-menu.js +1 -1
- package/dist/components/ui-field.js +1 -1
- package/dist/components/ui-file-upload.js +1 -1
- 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.js +1 -1
- package/dist/components/ui-pagination.js +1 -1
- package/dist/components/ui-popover.js +1 -1
- package/dist/components/ui-progress-circular.js +1 -1
- package/dist/components/ui-progress.js +1 -1
- package/dist/components/ui-radio-group.js +1 -1
- package/dist/components/ui-rating.js +1 -1
- package/dist/components/ui-reveal.js +1 -1
- package/dist/components/ui-scroll-progress.js +1 -1
- package/dist/components/ui-section.js +1 -1
- package/dist/components/ui-segmented.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.js +1 -1
- package/dist/components/ui-tabs.js +1 -1
- package/dist/components/ui-textarea.js +1 -1
- package/dist/components/ui-theme-toggle.js +1 -1
- package/dist/components/ui-timeline-item.d.ts +11 -0
- package/dist/components/ui-timeline-item.js +1 -0
- package/dist/components/ui-timeline.d.ts +11 -0
- package/dist/components/ui-timeline.js +1 -0
- 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/{index-DYwlrXg_.js → index-COlwaVJP.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/ui-accordion-item.entry.js +2 -2
- package/dist/esm/ui-accordion.entry.js +2 -2
- package/dist/esm/ui-alert.entry.js +1 -1
- package/dist/esm/ui-avatar-group.entry.js +2 -2
- package/dist/esm/ui-avatar.entry.js +3 -3
- package/dist/esm/ui-badge.entry.js +1 -1
- package/dist/esm/ui-breadcrumb-item.entry.js +2 -2
- package/dist/esm/ui-breadcrumb.entry.js +2 -2
- package/dist/esm/ui-button.entry.js +2 -2
- package/dist/esm/ui-card.entry.js +2 -2
- package/dist/esm/ui-carousel.entry.js +102 -0
- package/dist/esm/ui-checkbox.entry.js +2 -2
- package/dist/esm/ui-combobox.entry.js +1 -1
- package/dist/esm/ui-command.entry.js +135 -0
- package/dist/esm/ui-container.entry.js +2 -2
- package/dist/esm/ui-date-picker.entry.js +2 -2
- package/dist/esm/ui-dialog.entry.js +2 -2
- package/dist/esm/ui-drawer.entry.js +2 -2
- package/dist/esm/ui-dropdown-item.entry.js +2 -2
- package/dist/esm/ui-dropdown-menu.entry.js +2 -2
- package/dist/esm/ui-field.entry.js +2 -2
- package/dist/esm/ui-file-upload.entry.js +2 -2
- package/dist/esm/ui-grid.entry.js +2 -2
- package/dist/esm/ui-input.entry.js +2 -2
- package/dist/esm/ui-label.entry.js +2 -2
- package/dist/esm/ui-loading-overlay.entry.js +1 -1
- package/dist/esm/ui-navbar.entry.js +2 -2
- package/dist/esm/ui-pagination.entry.js +3 -3
- package/dist/esm/ui-popover.entry.js +2 -2
- package/dist/esm/ui-progress-circular.entry.js +2 -2
- package/dist/esm/ui-progress.entry.js +2 -2
- package/dist/esm/ui-radio-group.entry.js +2 -2
- package/dist/esm/ui-rating.entry.js +2 -2
- package/dist/esm/ui-reveal.entry.js +2 -2
- package/dist/esm/ui-scroll-progress.entry.js +2 -2
- package/dist/esm/ui-section.entry.js +2 -2
- package/dist/esm/ui-segmented.entry.js +2 -2
- package/dist/esm/ui-select.entry.js +2 -2
- package/dist/esm/ui-separator.entry.js +2 -2
- package/dist/esm/ui-skeleton.entry.js +2 -2
- package/dist/esm/ui-slider.entry.js +2 -2
- package/dist/esm/ui-spinner.entry.js +3 -3
- package/dist/esm/ui-stack.entry.js +2 -2
- package/dist/esm/ui-stat.entry.js +2 -2
- package/dist/esm/ui-switch.entry.js +2 -2
- package/dist/esm/ui-table.entry.js +2 -2
- package/dist/esm/ui-tabs.entry.js +3 -3
- package/dist/esm/ui-textarea.entry.js +2 -2
- package/dist/esm/ui-theme-toggle.entry.js +2 -2
- package/dist/esm/ui-timeline-item.entry.js +17 -0
- package/dist/esm/ui-timeline.entry.js +15 -0
- package/dist/esm/ui-toast.entry.js +2 -2
- package/dist/esm/ui-toaster.entry.js +2 -2
- package/dist/esm/ui-tooltip.entry.js +2 -2
- package/dist/esm/uikit.js +3 -3
- package/dist/types/components/ui-carousel/ui-carousel.d.ts +35 -0
- package/dist/types/components/ui-command/ui-command.d.ts +42 -0
- package/dist/types/components/ui-timeline/ui-timeline.d.ts +3 -0
- package/dist/types/components/ui-timeline-item/ui-timeline-item.d.ts +10 -0
- package/dist/types/components.d.ts +236 -0
- package/dist/uikit/{p-5e0bc34a.entry.js → p-02583f33.entry.js} +1 -1
- package/dist/uikit/{p-4044ebde.entry.js → p-0b8fb2cc.entry.js} +1 -1
- package/dist/uikit/{p-894fc85f.entry.js → p-12777ebf.entry.js} +1 -1
- package/dist/uikit/p-186d394f.entry.js +1 -0
- package/dist/uikit/{p-fd05c146.entry.js → p-247f7a40.entry.js} +1 -1
- package/dist/uikit/{p-8535f5c9.entry.js → p-24c9885b.entry.js} +1 -1
- package/dist/uikit/p-26c4b4f9.entry.js +1 -0
- package/dist/uikit/{p-3fdfad2e.entry.js → p-2716a9e4.entry.js} +1 -1
- package/dist/uikit/{p-1449f229.entry.js → p-27c609c2.entry.js} +1 -1
- package/dist/uikit/{p-5951a496.entry.js → p-2a4de93f.entry.js} +1 -1
- package/dist/uikit/{p-88238a16.entry.js → p-2ce36223.entry.js} +1 -1
- package/dist/uikit/p-30834f9e.entry.js +1 -0
- package/dist/uikit/p-333a3598.entry.js +1 -0
- package/dist/uikit/{p-60910c03.entry.js → p-33a19160.entry.js} +1 -1
- package/dist/uikit/{p-a3d819cd.entry.js → p-400536f7.entry.js} +1 -1
- package/dist/uikit/{p-008118af.entry.js → p-411a753f.entry.js} +1 -1
- package/dist/uikit/p-41355be1.entry.js +1 -0
- package/dist/uikit/p-4281fc69.entry.js +1 -0
- package/dist/uikit/p-4c2fb226.entry.js +1 -0
- package/dist/uikit/{p-45e80e73.entry.js → p-5562b70d.entry.js} +1 -1
- package/dist/uikit/{p-c1a9db7c.entry.js → p-56b1bf3f.entry.js} +1 -1
- package/dist/uikit/p-57adf02c.entry.js +1 -0
- package/dist/uikit/{p-b7e30398.entry.js → p-66037a7c.entry.js} +1 -1
- package/dist/uikit/p-73a6b682.entry.js +1 -0
- package/dist/uikit/{p-ffcd1faf.entry.js → p-7a04fd11.entry.js} +1 -1
- package/dist/uikit/p-7aeed213.entry.js +1 -0
- package/dist/uikit/p-80236139.entry.js +1 -0
- package/dist/uikit/p-81a37bda.entry.js +1 -0
- package/dist/uikit/{p-f4344cce.entry.js → p-849347da.entry.js} +1 -1
- package/dist/uikit/p-866a0947.entry.js +1 -0
- package/dist/uikit/p-86af6f43.entry.js +1 -0
- package/dist/uikit/{p-bdd30484.entry.js → p-86bf22c1.entry.js} +1 -1
- package/dist/uikit/p-98234aed.entry.js +1 -0
- package/dist/uikit/p-COlwaVJP.js +2 -0
- package/dist/uikit/{p-413cfbc6.entry.js → p-a312d278.entry.js} +1 -1
- package/dist/uikit/{p-9310b73b.entry.js → p-a4b535ad.entry.js} +1 -1
- package/dist/uikit/p-a8f81996.entry.js +1 -0
- package/dist/uikit/{p-99b7e461.entry.js → p-aa0ce28c.entry.js} +1 -1
- package/dist/uikit/{p-b0f2b1c8.entry.js → p-aa41b084.entry.js} +1 -1
- package/dist/uikit/p-acce5342.entry.js +1 -0
- package/dist/uikit/p-aef9bb6e.entry.js +1 -0
- package/dist/uikit/p-b232849a.entry.js +1 -0
- package/dist/uikit/{p-f2983e94.entry.js → p-bd287e67.entry.js} +1 -1
- package/dist/uikit/p-bf66ce1b.entry.js +1 -0
- package/dist/uikit/p-c0b3f5a3.entry.js +1 -0
- package/dist/uikit/{p-9f09fcec.entry.js → p-c29317aa.entry.js} +1 -1
- package/dist/uikit/{p-3995852d.entry.js → p-d73e789a.entry.js} +1 -1
- package/dist/uikit/{p-2d92ce04.entry.js → p-dc00c84b.entry.js} +1 -1
- package/dist/uikit/{p-fb89d9a4.entry.js → p-de2bb69c.entry.js} +1 -1
- package/dist/uikit/{p-ccca2aeb.entry.js → p-e2e35a6b.entry.js} +1 -1
- package/dist/uikit/{p-d7ab158f.entry.js → p-e32fa613.entry.js} +1 -1
- package/dist/uikit/{p-e2065caa.entry.js → p-e61e7ef1.entry.js} +1 -1
- package/dist/uikit/{p-62881327.entry.js → p-e891fec3.entry.js} +1 -1
- package/dist/uikit/{p-0715db16.entry.js → p-ef6ec7f7.entry.js} +1 -1
- package/dist/uikit/p-faa31e8c.entry.js +1 -0
- package/dist/uikit/uikit.css +1 -1
- package/dist/uikit/uikit.esm.js +1 -1
- package/package.json +1 -1
- package/dist/components/p-DUT2Q8Df.js +0 -1
- package/dist/uikit/p-10afa395.entry.js +0 -1
- package/dist/uikit/p-1514ae37.entry.js +0 -1
- package/dist/uikit/p-1685191b.entry.js +0 -1
- package/dist/uikit/p-1ef7948f.entry.js +0 -1
- package/dist/uikit/p-283e7623.entry.js +0 -1
- package/dist/uikit/p-3b1f92da.entry.js +0 -1
- package/dist/uikit/p-4ba0e4bc.entry.js +0 -1
- package/dist/uikit/p-6c51a216.entry.js +0 -1
- package/dist/uikit/p-6d363a02.entry.js +0 -1
- package/dist/uikit/p-8b882367.entry.js +0 -1
- package/dist/uikit/p-9d8d420e.entry.js +0 -1
- package/dist/uikit/p-9dbe7e12.entry.js +0 -1
- package/dist/uikit/p-DYwlrXg_.js +0 -2
- package/dist/uikit/p-bac2c523.entry.js +0 -1
- package/dist/uikit/p-bbc718ef.entry.js +0 -1
- package/dist/uikit/p-c2138fb9.entry.js +0 -1
- package/dist/uikit/p-c94492ff.entry.js +0 -1
- package/dist/uikit/p-da807078.entry.js +0 -1
- package/dist/uikit/p-fbe7806c.entry.js +0 -1
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
export class UiTimelineItem {
|
|
3
|
+
constructor() {
|
|
4
|
+
/** Cor do ponto da timeline. */
|
|
5
|
+
this.variant = "accent";
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return (h(Host, { key: 'f45cef5961dfc1237e415ab185f5e1e04c388646' }, h("div", { key: '27dd4e89c6d084d7361bdc20c8408c47ca9b72aa', class: `item variant-${this.variant}` }, h("div", { key: '2a70cc361445ab766dd4631f3388a24d3dfb7895', class: "marker" }, h("span", { key: '9802c05ae51394158da1509649b079749be0fab4', class: "dot" }), h("span", { key: '1862e45d49f389704fcd94037c4c1810c2d9f5ac', class: "line" })), h("div", { key: 'c1a734416f9beb2628b1c8dbfeb73533a46ec12a', class: "content" }, this.time ? h("span", { class: "time" }, this.time) : null, this.heading ? (h("span", { class: "heading" }, this.heading)) : null, h("div", { key: '2a59b109d86bb574188a0b2a07a663da7cbc37e9', class: "body" }, h("slot", { key: '0558d11f1c35aa3fcc50d468007e6767d654cb8f' }))))));
|
|
9
|
+
}
|
|
10
|
+
static get is() { return "ui-timeline-item"; }
|
|
11
|
+
static get encapsulation() { return "shadow"; }
|
|
12
|
+
static get originalStyleUrls() {
|
|
13
|
+
return {
|
|
14
|
+
"$": ["ui-timeline-item.css"]
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
static get styleUrls() {
|
|
18
|
+
return {
|
|
19
|
+
"$": ["ui-timeline-item.css"]
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
static get properties() {
|
|
23
|
+
return {
|
|
24
|
+
"heading": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"mutable": false,
|
|
27
|
+
"complexType": {
|
|
28
|
+
"original": "string",
|
|
29
|
+
"resolved": "string | undefined",
|
|
30
|
+
"references": {}
|
|
31
|
+
},
|
|
32
|
+
"required": false,
|
|
33
|
+
"optional": true,
|
|
34
|
+
"docs": {
|
|
35
|
+
"tags": [],
|
|
36
|
+
"text": "T\u00EDtulo do item (opcional)."
|
|
37
|
+
},
|
|
38
|
+
"getter": false,
|
|
39
|
+
"setter": false,
|
|
40
|
+
"reflect": false,
|
|
41
|
+
"attribute": "heading"
|
|
42
|
+
},
|
|
43
|
+
"time": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"mutable": false,
|
|
46
|
+
"complexType": {
|
|
47
|
+
"original": "string",
|
|
48
|
+
"resolved": "string | undefined",
|
|
49
|
+
"references": {}
|
|
50
|
+
},
|
|
51
|
+
"required": false,
|
|
52
|
+
"optional": true,
|
|
53
|
+
"docs": {
|
|
54
|
+
"tags": [],
|
|
55
|
+
"text": "R\u00F3tulo de tempo, ex.: data ou label (opcional)."
|
|
56
|
+
},
|
|
57
|
+
"getter": false,
|
|
58
|
+
"setter": false,
|
|
59
|
+
"reflect": false,
|
|
60
|
+
"attribute": "time"
|
|
61
|
+
},
|
|
62
|
+
"variant": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"mutable": false,
|
|
65
|
+
"complexType": {
|
|
66
|
+
"original": "UiTimelineVariant",
|
|
67
|
+
"resolved": "\"accent\" | \"danger\" | \"muted\" | \"success\" | \"warning\"",
|
|
68
|
+
"references": {
|
|
69
|
+
"UiTimelineVariant": {
|
|
70
|
+
"location": "local",
|
|
71
|
+
"path": "/Users/andersonespindola/.ghq/github.com/andersonflima/ui/packages/core/src/components/ui-timeline-item/ui-timeline-item.tsx",
|
|
72
|
+
"id": "src/components/ui-timeline-item/ui-timeline-item.tsx::UiTimelineVariant"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"required": false,
|
|
77
|
+
"optional": false,
|
|
78
|
+
"docs": {
|
|
79
|
+
"tags": [],
|
|
80
|
+
"text": "Cor do ponto da timeline."
|
|
81
|
+
},
|
|
82
|
+
"getter": false,
|
|
83
|
+
"setter": false,
|
|
84
|
+
"reflect": true,
|
|
85
|
+
"attribute": "variant",
|
|
86
|
+
"defaultValue": "\"accent\""
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -47,7 +47,7 @@ export class UiToast {
|
|
|
47
47
|
this.dismiss();
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: '4316653a0f6b70781ceda01098b018f649c7f180' }, this.open && (h("div", { key: 'cc3d339f4ebb55ef3fbc8dd05432d6cbc570f4ad', class: { toast: true, [`variant-${this.variant}`]: true }, role: "status" }, h("div", { key: '37cf6a0ffec9040b002c33f4b1015832cfd32a6f', class: "body" }, this.heading && h("p", { key: 'dcb18a7d85fe5d3ed2758e0d5c4dc2c97280b84c', class: "heading" }, this.heading), this.description && (h("p", { key: '6ae4543ad5a17fbfdc16ba15c5ce44012143f58b', class: "description" }, this.description))), h("button", { key: '73a22b06477019043a4273a06064305d331d5311', class: "close", type: "button", "aria-label": "Fechar", onClick: () => this.dismiss() }, h("svg", { key: '7407a77475baa99882678a9ab0bd8af91474ec4e', width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("line", { key: 'c7a4868750a0f503080cd5d9e469b7978bf98115', x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { key: '844bc05210fbdf5ab10b6b91d140b59b6a75dff5', x1: "6", y1: "6", x2: "18", y2: "18" })))))));
|
|
51
51
|
}
|
|
52
52
|
static get is() { return "ui-toast"; }
|
|
53
53
|
static get encapsulation() { return "shadow"; }
|
|
@@ -15,7 +15,7 @@ export class UiToaster {
|
|
|
15
15
|
this.items = this.items.filter((item) => item.id !== id);
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: '9a76beb8a262078bb505588efa4686cf2c273ad6' }, h("div", { key: '528168475f527b97afc33a142e73773c37e34ed0', class: "container" }, this.items.map((item) => (h("ui-toast", { key: item.id, open: true, heading: item.heading, description: item.description, variant: item.variant ?? "default", duration: item.duration ?? 4000, onUiClose: () => this.remove(item.id) }))))));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "ui-toaster"; }
|
|
21
21
|
static get encapsulation() { return "shadow"; }
|
|
@@ -49,7 +49,7 @@ export class UiTooltip {
|
|
|
49
49
|
this.cleanup = undefined;
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
|
-
return (h(Host, { key: '
|
|
52
|
+
return (h(Host, { key: '88657ff32b15ba3dfe5579885db65f955862a298', onMouseEnter: this.onEnter, onMouseLeave: this.onLeave, onFocusin: this.onEnter, onFocusout: this.onLeave }, h("span", { key: 'f336f26ee150e24117c28e926c59da7bec1c725a', class: "trigger", ref: (el) => (this.triggerEl = el) }, h("slot", { key: 'c42b26b5b73b6433b18bb561ce5e3458cd628810' })), h("div", { key: 'b7497fe3b4638dca7980bdc201e6d7dfb296539d', class: { tooltip: true, "is-visible": this.visible }, role: "tooltip", ref: (el) => (this.floatingEl = el) }, this.content)));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "ui-tooltip"; }
|
|
55
55
|
static get encapsulation() { return "shadow"; }
|
package/dist/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const t=':root{--ui-background:#f6f7fb;--ui-foreground:#090b12;--ui-muted:#475467;--ui-text-soft:#263244;--ui-text-muted:#667085;--ui-text-faint:#8a94a6;--ui-border:rgba(15, 23, 42, 0.12);--ui-border-strong:rgba(15, 23, 42, 0.22);--ui-panel:rgba(255, 255, 255, 0.72);--ui-panel-strong:rgba(255, 255, 255, 0.9);--ui-panel-dark:rgba(255, 255, 255, 0.62);--ui-chip:rgba(255, 255, 255, 0.68);--ui-overlay:rgba(15, 23, 42, 0.32);--ui-accent:#26d0ce;--ui-accent-strong:#5b8cff;--ui-accent-contrast:#020617;--ui-ring:rgba(38, 208, 206, 0.34);--ui-success:#17c964;--ui-warning:#f5a524;--ui-danger:#f31260;--ui-info:#5b8cff;--ui-on-status:#ffffff;--ui-radius-sm:0.625rem;--ui-radius:1rem;--ui-radius-lg:1.5rem;--ui-radius-xl:1.75rem;--ui-radius-full:9999px;--ui-shadow-sm:0 1px 2px rgba(15, 23, 42, 0.08);--ui-shadow:0 16px 60px rgba(15, 23, 42, 0.1);--ui-shadow-lg:0 24px 80px rgba(15, 23, 42, 0.16);--ui-ease:cubic-bezier(0.22, 1, 0.36, 1);--ui-duration-fast:150ms;--ui-duration:300ms;--ui-duration-slow:600ms;--ui-font-sans:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,\n "Segoe UI", sans-serif;--ui-font-mono:ui-monospace, "IBM Plex Mono", SFMono-Regular, Menlo, monospace;--ui-page-gradient:radial-gradient(circle at 16% 0%, rgba(38, 208, 206, 0.16), transparent 30rem),\n radial-gradient(circle at 78% 12%, rgba(91, 140, 255, 0.14), transparent 34rem),\n linear-gradient(180deg, #f7f9fe 0%, #eef4fb 52%, #e8eef7 100%)}.dark{--ui-background:#03050b;--ui-foreground:#f8fbff;--ui-muted:#9aa7bd;--ui-text-soft:#e2e8f0;--ui-text-muted:#cbd5e1;--ui-text-faint:#94a3b8;--ui-border:rgba(226, 232, 240, 0.12);--ui-border-strong:rgba(226, 232, 240, 0.22);--ui-panel:rgba(9, 13, 24, 0.68);--ui-panel-strong:rgba(11, 16, 29, 0.86);--ui-panel-dark:rgba(0, 0, 0, 0.28);--ui-chip:rgba(255, 255, 255, 0.055);--ui-overlay:rgba(2, 4, 9, 0.62);--ui-accent:#64fff2;--ui-accent-strong:#8aa8ff;--ui-accent-contrast:#020617;--ui-ring:rgba(100, 255, 242, 0.24);--ui-success:#45d483;--ui-warning:#f7b750;--ui-danger:#f871a0;--ui-info:#8aa8ff;--ui-shadow-sm:0 1px 2px rgba(0, 0, 0, 0.4);--ui-shadow:0 16px 60px rgba(0, 0, 0, 0.24);--ui-shadow-lg:0 24px 80px rgba(0, 0, 0, 0.18);--ui-page-gradient:radial-gradient(circle at 18% 0%, rgba(38, 208, 206, 0.18), transparent 30rem),\n radial-gradient(circle at 78% 10%, rgba(91, 140, 255, 0.14), transparent 34rem),\n linear-gradient(180deg, var(--ui-background), #070911 58%, #03050b)}:where(html){font-family:var(--ui-font-sans)}';function e(t,e,n){const i="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==i;){const i=Object.getOwnPropertyDescriptor(t,e);if(i&&(!n||i.get))return i;t=Object.getPrototypeOf(t)}}var n,i=(t,n)=>{var i;Object.entries(null!=(i=n.i.t)?i:{}).map((([i,[r]])=>{if(31&r||32&r){const r=t[i],o=e(Object.getPrototypeOf(t),i,!0)||Object.getOwnPropertyDescriptor(t,i);o&&Object.defineProperty(t,i,{get(){return o.get.call(this)},set(t){o.set.call(this,t)},configurable:!0,enumerable:!0}),n.o.has(i)?t[i]=n.o.get(i):void 0!==r&&(t[i]=r)}}))},r=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},o=(t,e)=>e in t,l=(t,e)=>(0,console.error)(t,e),s=new Map,a="undefined"!=typeof window?window:{},u=a.HTMLElement||class{},c={l:0,u:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,i)=>t.addEventListener(e,n,i),rel:(t,e,n,i)=>t.removeEventListener(e,n,i),ce:(t,e)=>new CustomEvent(t,e)},f=(()=>{try{return!!a.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),d=!!f&&(()=>!!a.document&&Object.getOwnPropertyDescriptor(a.document.adoptedStyleSheets,"length").writable)(),p=!1,b=[],g=[],m=(t,e)=>n=>{t.push(n),p||(p=!0,e&&4&c.l?v(y):c.raf(y))},h=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){l(t)}t.length=0},y=()=>{h(b),h(g),(p=b.length>0)&&c.raf(y)},v=t=>Promise.resolve(void 0).then(t),w=m(g,!0),$=t=>{const e=new URL(t,c.u);return e.origin!==a.location.origin?e.href:e.pathname},j=t=>c.u=t;function x(){var e;const i=this.attachShadow({mode:"open"});if(void 0===n&&(n=null!=(e=function(t){if(!f)return;const e=new CSSStyleSheet;return e.replaceSync(t),e}(t))?e:null),n)d?i.adoptedStyleSheets.push(n):i.adoptedStyleSheets=[...i.adoptedStyleSheets,n];else if(!f){const e=document.createElement("style");e.innerHTML=t,i.prepend(e)}}var O,S=new WeakMap,k=t=>"sc-"+t.p,M=t=>"object"==(t=typeof t)||"function"===t,E=(t,e,...n)=>{let i=null,r=null,o=!1,l=!1;const s=[],a=e=>{for(let n=0;n<e.length;n++)i=e[n],Array.isArray(i)?a(i):null!=i&&"boolean"!=typeof i&&((o="function"!=typeof t&&!M(i))&&(i+=""),o&&l?s[s.length-1].m+=i:s.push(o?C(null,i):i),l=o)};if(a(n),e){e.key&&(r=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const u=C(t,null);return u.h=e,s.length>0&&(u.v=s),u.$=r,u},C=(t,e)=>({l:0,j:t,m:null!=e?e:null,O:null,v:null,h:null,$:null}),A={},L=t=>{if(!t)return;const e=Object.keys(t);if(0===e.length)return;let n=!1;for(const i of e){if(n)break;for(const e of t[i])if("string"==typeof e){n=!0;break}}if(!n)return t;const i={};for(const n of e)i[n]=t[n].map((t=>"string"==typeof t?{[t]:0}:t));return i},N=(t,e)=>null==t||M(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t,P=(t,e)=>{const n=t;return{emit:t=>R(n,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},R=(t,e,n)=>{const i=c.ce(e,n);return t.dispatchEvent(i),i},U=(t,e,n,i,l,s)=>{if(n===i)return;let u=o(t,e),f=e.toLowerCase();if("class"===e){const e=t.classList,r=D(n);let o=D(i);e.remove(...r.filter((t=>t&&!o.includes(t)))),e.add(...o.filter((t=>t&&!r.includes(t))))}else if("style"===e){for(const e in n)i&&null!=i[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in i)n&&i[e]===n[e]||(e.includes("-")?t.style.setProperty(e,i[e]):t.style[e]=i[e])}else if("key"===e);else if("ref"===e)i&&Q(i,t);else if(t.__lookupSetter__(e)||"o"!==e[0]||"n"!==e[1]){if("a"===e[0]&&e.startsWith("attr:")){const n=e.slice(5);let o;{const e=r(t);if(e&&e.i&&e.i.t){const t=e.i.t[n];t&&t[1]&&(o=t[1])}}return o||(o=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==i||!1===i?!1===i&&""!==t.getAttribute(o)||t.removeAttribute(o):t.setAttribute(o,!0===i?"":i))}if("p"===e[0]&&e.startsWith("prop:")){const n=e.slice(5);try{t[n]=i}catch(t){}return}{const r=M(i);if((u||r&&null!==i)&&!l)try{if(t.tagName.includes("-"))t[e]!==i&&(t[e]=i);else{const r=null==i?"":i;"list"===e?u=!1:null!=n&&t[e]===r||("function"==typeof t.__lookupSetter__(e)?t[e]=r:t.setAttribute(e,r))}}catch(t){}null==i||!1===i?!1===i&&""!==t.getAttribute(e)||t.removeAttribute(e):(!u||4&s||l)&&!r&&1===t.nodeType&&t.setAttribute(e,i=!0===i?"":i)}}else if(e="-"===e[2]?e.slice(3):o(a,f)?f.slice(2):f[2]+e.slice(3),n||i){const r=e.endsWith(F);e=e.replace(H,""),n&&c.rel(t,e,n,r),i&&c.ael(t,e,i,r)}},_=/\s/,D=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(_):[]),F="Capture",H=RegExp(F+"$"),W=(t,e,n)=>{const i=11===e.O.nodeType&&e.O.host?e.O.host:e.O,r=t&&t.h||{},o=e.h||{};for(const t of z(Object.keys(r)))t in o||U(i,t,r[t],void 0,n,e.l);for(const t of z(Object.keys(o)))U(i,t,r[t],o[t],n,e.l)};function z(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var I=!1,V=!1,q=[],B=[],T=(t,e,n)=>{const i=e.v[n];let r,o,l=0;if(null!=i.m)r=i.O=a.document.createTextNode(i.m);else{if(V||(V="svg"===i.j),!a.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(r=i.O=a.document.createElementNS(V?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",i.j),V&&"foreignObject"===i.j&&(V=!1),W(null,i,V),i.v){const e="template"===i.j?r.content:r;for(l=0;l<i.v.length;++l)o=T(t,i,l),o&&e.appendChild(o)}"svg"===i.j?V=!1:"foreignObject"===r.tagName&&(V=!0)}return r["s-hn"]=O,r},Y=(t,e,n,i,r,o)=>{let l,s=t;for(s.shadowRoot&&s.tagName===O&&(s=s.shadowRoot),"template"===n.j&&(s=s.content);r<=o;++r)i[r]&&(l=T(null,n,r),l&&(i[r].O=l,X(s,l,e)))},Z=(t,e,n)=>{for(let i=e;i<=n;++i){const e=t[i];if(e){const t=e.O;K(e),t&&t.remove()}}},G=(t,e,n=!1)=>t.j===e.j&&(n?(n&&!t.$&&e.$&&(t.$=e.$),!0):t.$===e.$),J=(t,e,n=!1)=>{const i=e.O=t.O,r=t.v,o=e.v,l=e.j,s=e.m;null==s?(V="svg"===l||"foreignObject"!==l&&V,"slot"!==l||I||t.S!==e.S&&(e.O["s-sn"]=e.S||"",(t=>{c.l|=1;const e=t.closest(O.toLowerCase());if(null!=e){const n=Array.from(e.__childNodes||e.childNodes).find((t=>t["s-cr"])),i=Array.from(t.__childNodes||t.childNodes);for(const t of n?i.reverse():i)null!=t["s-sh"]&&(X(e,t,null!=n?n:null),t["s-sh"]=void 0)}c.l&=-2})(e.O.parentElement)),W(t,e,V),null!==r&&null!==o?((t,e,n,i,r=!1)=>{let o,l,s=0,a=0,u=0,c=0,f=e.length-1,d=e[0],p=e[f],b=i.length-1,g=i[0],m=i[b];const h="template"===n.j?t.content:t;for(;s<=f&&a<=b;)if(null==d)d=e[++s];else if(null==p)p=e[--f];else if(null==g)g=i[++a];else if(null==m)m=i[--b];else if(G(d,g,r))J(d,g,r),d=e[++s],g=i[++a];else if(G(p,m,r))J(p,m,r),p=e[--f],m=i[--b];else if(G(d,m,r))J(d,m,r),X(h,d.O,p.O.nextSibling),d=e[++s],m=i[--b];else if(G(p,g,r))J(p,g,r),X(h,p.O,d.O),p=e[--f],g=i[++a];else{for(u=-1,c=s;c<=f;++c)if(e[c]&&null!==e[c].$&&e[c].$===g.$){u=c;break}u>=0?(l=e[u],l.j!==g.j?o=T(e&&e[a],n,u):(J(l,g,r),e[u]=void 0,o=l.O),g=i[++a]):(o=T(e&&e[a],n,a),g=i[++a]),o&&X(d.O.parentNode,o,d.O)}s>f?Y(t,null==i[b+1]?null:i[b+1].O,n,i,a,b):a>b&&Z(e,s,f)})(i,r,e,o,n):null!==o?(null!==t.m&&(i.textContent=""),Y(i,null,e,o,0,o.length-1)):!n&&null!==r&&Z(r,0,r.length-1),V&&"svg"===l&&(V=!1)):t.m!==s&&(i.data=s)},K=t=>{t.h&&t.h.ref&&q.push((()=>t.h.ref(null))),t.v&&t.v.map(K)},Q=(t,e)=>{B.push((()=>t(e)))},X=(t,e,n)=>t.__insertBefore?t.__insertBefore(e,n):null==t?void 0:t.insertBefore(e,n),tt=(t,e,n=!1)=>{const i=t.$hostElement$,r=t.i,o=t.k||C(null,null),l=(t=>t&&t.j===A)(e)?e:E(null,null,e);if(O=i.tagName,r.M&&(l.h=l.h||{},r.M.forEach((([t,e])=>{l.h[e]=i[t]}))),n&&l.h)for(const t of Object.keys(l.h))i.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(l.h[t]=i[t]);l.j=null,l.l|=4,t.k=l,l.O=o.O=i.shadowRoot||i,I=!(!(1&r.l)||128&r.l),J(o,l,n),q.forEach((t=>t())),q.length=0,B.forEach((t=>t())),B.length=0},et=(t,e)=>{if(e&&!t.C&&e["s-p"]){const n=e["s-p"].push(new Promise((i=>t.C=()=>{e["s-p"].splice(n-1,1),i()})))}},nt=(t,e)=>{if(t.l|=16,4&t.l)return void(t.l|=512);et(t,t.A);const n=()=>it(t,e);if(!e)return w(n);queueMicrotask((()=>{n()}))},it=(t,e)=>{const n=t.$hostElement$,i=n;if(!i)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let r;return r=ct(i,e?"componentWillLoad":"componentWillUpdate",void 0,n),r=rt(r,(()=>ct(i,"componentWillRender",void 0,n))),rt(r,(()=>lt(t,i,e)))},rt=(t,e)=>ot(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),ot=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,lt=async(t,e,n)=>{var i;const r=t.$hostElement$,o=r["s-rc"];n&&(t=>{const e=t.i,n=t.$hostElement$,i=e.l,r=((t,e)=>{var n,i,r;const o=k(e),l=s.get(o);if(!a.document)return o;if(t=11===t.nodeType?t:a.document,l)if("string"==typeof l){let r,s=S.get(t=t.head||t);if(s||S.set(t,s=new Set),!s.has(o)){r=a.document.createElement("style"),r.textContent=l;const u=null!=(n=c.L)?n:function(){var t,e,n;return null!=(n=null==(e=null==(t=a.document.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?n:void 0}();if(null!=u&&r.setAttribute("nonce",u),!(1&e.l))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(r,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(f){const e=new(null!=(i=t.defaultView)?i:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(l),d?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.textContent=l+e.textContent:t.prepend(r)}else t.append(r);1&e.l&&t.insertBefore(r,null),4&e.l&&(r.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),s&&s.add(o)}}else{let e=S.get(t);if(e||S.set(t,e=new Set),!e.has(o)){const n=null!=(r=t.defaultView)?r:t.ownerDocument.defaultView;let i;if(l.constructor===n.CSSStyleSheet)i=l;else{i=new n.CSSStyleSheet;for(let t=0;t<l.cssRules.length;t++)i.insertRule(l.cssRules[t].cssText,t)}d?t.adoptedStyleSheets.push(i):t.adoptedStyleSheets=[...t.adoptedStyleSheets,i],e.add(o)}}return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&i&&(n["s-sc"]=r,n.classList.add(r+"-h"))})(t);st(t,e,r,n),o&&(o.map((t=>t())),r["s-rc"]=void 0);{const e=null!=(i=r["s-p"])?i:[],n=()=>at(t);0===e.length?n():(Promise.all(e).then(n).catch(n),t.l|=4,e.length=0)}},st=(t,e,n,i)=>{try{e=e.render(),t.l&=-17,t.l|=2,tt(t,e,i)}catch(e){l(e,t.$hostElement$)}return null},at=t=>{const e=t.$hostElement$,n=e,i=t.A;ct(n,"componentDidRender",void 0,e),64&t.l?ct(n,"componentDidUpdate",void 0,e):(t.l|=64,ft(e),ct(n,"componentDidLoad",void 0,e),t.N(e),i||ut()),t.C&&(t.C(),t.C=void 0),512&t.l&&v((()=>nt(t,!1))),t.l&=-517},ut=()=>{v((()=>R(a,"appload",{detail:{namespace:"uikit"}})))},ct=(t,e,n,i)=>{if(t&&t[e])try{return t[e](n)}catch(t){l(t,i)}},ft=t=>t.classList.add("hydrated"),dt=(t,e,n,i)=>{const o=r(t);if(!o)return;const s=t,a=o.o.get(e),u=o.l,c=s;if(!((n=N(n,i.t[e][0]))===a||Number.isNaN(a)&&Number.isNaN(n))){if(o.o.set(e,n),i.P){const t=i.P[e];t&&t.map((t=>{try{const[[i,r]]=Object.entries(t);(128&u||1&r)&&(c?c[i](n,a,e):o.R.push((()=>{o.U[i](n,a,e)})))}catch(t){l(t,s)}}))}if(2&u){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(n,a,e)&&!(16&u))return;16&u||nt(o,!1)}}},pt=(t,n)=>{var i,o;const l=t.prototype;{t.watchers&&!n.P&&(n.P=L(t.watchers)),t.deserializers&&!n._&&(n._=t.deserializers),t.serializers&&!n.D&&(n.D=t.serializers);const s=Object.entries(null!=(i=n.t)?i:{});s.map((([t,[i]])=>{if(31&i||32&i){const{get:o,set:s}=e(l,t)||{};o&&(n.t[t][0]|=2048),s&&(n.t[t][0]|=4096),Object.defineProperty(l,t,{get(){return o?o.apply(this):((t,e)=>r(this).o.get(e))(0,t)},configurable:!0,enumerable:!0}),Object.defineProperty(l,t,{set(e){const o=r(this);if(o){if(s)return void 0===(32&i?this[t]:o.$hostElement$[t])&&o.o.get(t)&&(e=o.o.get(t)),s.call(this,N(e,i)),void dt(this,t,e=32&i?this[t]:o.$hostElement$[t],n);dt(this,t,e,n)}}})}}));{const e=new Map;l.attributeChangedCallback=function(t,i,o){c.jmp((()=>{var a;const u=e.get(t),c=r(this);if(this.hasOwnProperty(u),l.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==o)return;if(null==u){const e=null==c?void 0:c.l;if(c&&e&&!(8&e)&&o!==i){const r=this,l=null==(a=n.P)?void 0:a[t];null==l||l.forEach((n=>{const[[l,s]]=Object.entries(n);null!=r[l]&&(128&e||1&s)&&r[l].call(r,o,i,t)}))}return}const f=s.find((([t])=>t===u)),d=f&&4&f[1][0],p=d&&null===o&&void 0===this[u];d&&(o=null!==o&&"false"!==o);const b=Object.getOwnPropertyDescriptor(l,u);p||o==this[u]||b.get&&!b.set||(this[u]=o)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(o=n.P)?o:{}),...s.filter((([t,e])=>31&e[0])).map((([t,i])=>{var r;const o=i[1]||t;return e.set(o,t),512&i[0]&&(null==(r=n.M)||r.push([t,o])),o}))]))}}return t},bt=(t,e)=>{const n={l:e[0],p:e[1]};try{n.t=e[2],n.F=e[3],n.P=L(t.P),n._=t._,n.D=t.D,n.M=[];const o=t.prototype.connectedCallback,a=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__hasHostListenerAttached:!1,__registerHost(){((t,e)=>{const n={l:0,$hostElement$:t,i:e,o:new Map,H:new Map};n.W=new Promise((t=>n.N=t)),t["s-p"]=[],t["s-rc"]=[];const r=n;t.__stencil__getHostRef=()=>r,512&e.l&&i(t,n)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const t=r(this);if(!t)return;gt(this,t,n.F),this.__hasHostListenerAttached=!0}(t=>{if(!(1&c.l)){const e=r(t);if(!e)return;const n=e.i,i=()=>{};if(1&e.l)gt(t,e,n.F),(null==e?void 0:e.U)||(null==e?void 0:e.W)&&e.W.then((()=>{}));else{e.l|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){et(e,e.A=n);break}}n.t&&Object.entries(n.t).map((([e,[n]])=>{if(31&n&&Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let i;try{if(!(32&e.l)&&(e.l|=32,i=t.constructor,customElements.whenDefined(t.localName).then((()=>e.l|=128)),i&&i.style)){let t;"string"==typeof i.style&&(t=i.style);const e=k(n);if(!s.has(e)){const i=()=>{};((t,e,n)=>{let i=s.get(t);f&&n?(i=i||new CSSStyleSheet,"string"==typeof i?i=e:i.replaceSync(e)):i=e,s.set(t,i)})(e,t,!!(1&n.l)),i()}}const r=e.A,o=()=>nt(e,!0);r&&r["s-rc"]?r["s-rc"].push(o):o()}catch(n){l(n,t),e.C&&(e.C(),e.C=void 0),e.N&&e.N(t)}})(t,e,n)}i()}})(this),o&&o.call(this)},disconnectedCallback(){(async t=>{if(!(1&c.l)){const e=r(t);(null==e?void 0:e.I)&&(e.I.map((t=>t())),e.I=void 0)}S.has(t)&&S.delete(t),t.shadowRoot&&S.has(t.shadowRoot)&&S.delete(t.shadowRoot)})(this),a&&a.call(this)},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else x.call(this,n)}}),Object.defineProperty(t,"is",{value:n.p,configurable:!0}),pt(t,n)}catch(e){return l(e),t}},gt=(t,e,n)=>{n&&a.document&&n.map((([n,i,r])=>{const o=t,l=mt(e,r),s=ht(n);c.ael(o,i,l,s),(e.I=e.I||[]).push((()=>c.rel(o,i,l,s)))}))},mt=(t,e)=>n=>{try{t.$hostElement$[e](n)}catch(e){l(e,t.$hostElement$)}},ht=t=>({passive:!!(1&t),capture:!!(2&t)}),yt=t=>c.L=t,vt=t=>Object.assign(c,t),wt=new WeakMap;function $t(t,e){let n=wt.get(e);n||(n={l:0,i:{l:0,p:e.tagName},$hostElement$:e},wt.set(e,n)),tt(n,t)}function jt(t){return t}export{u as H,A as a,P as c,$ as getAssetPath,E as h,bt as p,$t as render,j as setAssetPath,yt as setNonce,vt as setPlatformOptions,jt as t}
|
|
1
|
+
const e=':root{--ui-background:#f6f7fb;--ui-foreground:#090b12;--ui-muted:#475467;--ui-text-soft:#263244;--ui-text-muted:#667085;--ui-text-faint:#8a94a6;--ui-border:rgba(15, 23, 42, 0.12);--ui-border-strong:rgba(15, 23, 42, 0.22);--ui-panel:rgba(255, 255, 255, 0.72);--ui-panel-strong:rgba(255, 255, 255, 0.9);--ui-panel-dark:rgba(255, 255, 255, 0.62);--ui-chip:rgba(255, 255, 255, 0.68);--ui-overlay:rgba(15, 23, 42, 0.32);--ui-accent:#26d0ce;--ui-accent-strong:#5b8cff;--ui-accent-contrast:#020617;--ui-ring:rgba(38, 208, 206, 0.34);--ui-success:#17c964;--ui-warning:#f5a524;--ui-danger:#f31260;--ui-info:#5b8cff;--ui-on-status:#ffffff;--ui-radius-sm:0.625rem;--ui-radius:1rem;--ui-radius-lg:1.5rem;--ui-radius-xl:1.75rem;--ui-radius-full:9999px;--ui-shadow-sm:0 1px 2px rgba(15, 23, 42, 0.08);--ui-shadow:0 16px 60px rgba(15, 23, 42, 0.1);--ui-shadow-lg:0 24px 80px rgba(15, 23, 42, 0.16);--ui-ease:cubic-bezier(0.22, 1, 0.36, 1);--ui-duration-fast:150ms;--ui-duration:300ms;--ui-duration-slow:600ms;--ui-font-sans:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,\n "Segoe UI", sans-serif;--ui-font-mono:ui-monospace, "IBM Plex Mono", SFMono-Regular, Menlo, monospace;--ui-page-gradient:radial-gradient(circle at 16% 0%, rgba(38, 208, 206, 0.16), transparent 30rem),\n radial-gradient(circle at 78% 12%, rgba(91, 140, 255, 0.14), transparent 34rem),\n linear-gradient(180deg, #f7f9fe 0%, #eef4fb 52%, #e8eef7 100%)}.dark{--ui-background:#03050b;--ui-foreground:#f8fbff;--ui-muted:#9aa7bd;--ui-text-soft:#e2e8f0;--ui-text-muted:#cbd5e1;--ui-text-faint:#94a3b8;--ui-border:rgba(226, 232, 240, 0.12);--ui-border-strong:rgba(226, 232, 240, 0.22);--ui-panel:rgba(9, 13, 24, 0.68);--ui-panel-strong:rgba(11, 16, 29, 0.86);--ui-panel-dark:rgba(0, 0, 0, 0.28);--ui-chip:rgba(255, 255, 255, 0.055);--ui-overlay:rgba(2, 4, 9, 0.62);--ui-accent:#64fff2;--ui-accent-strong:#8aa8ff;--ui-accent-contrast:#020617;--ui-ring:rgba(100, 255, 242, 0.24);--ui-success:#45d483;--ui-warning:#f7b750;--ui-danger:#f871a0;--ui-info:#8aa8ff;--ui-shadow-sm:0 1px 2px rgba(0, 0, 0, 0.4);--ui-shadow:0 16px 60px rgba(0, 0, 0, 0.24);--ui-shadow-lg:0 24px 80px rgba(0, 0, 0, 0.18);--ui-page-gradient:radial-gradient(circle at 18% 0%, rgba(38, 208, 206, 0.18), transparent 30rem),\n radial-gradient(circle at 78% 10%, rgba(91, 140, 255, 0.14), transparent 34rem),\n linear-gradient(180deg, var(--ui-background), #070911 58%, #03050b)}.theme-violet{--ui-accent:#8b5cf6;--ui-accent-strong:#6366f1;--ui-ring:rgba(139, 92, 246, 0.34)}.dark.theme-violet{--ui-accent:#a78bfa;--ui-accent-strong:#818cf8;--ui-ring:rgba(167, 139, 250, 0.28)}.theme-emerald{--ui-accent:#10b981;--ui-accent-strong:#14b8a6;--ui-ring:rgba(16, 185, 129, 0.32)}.dark.theme-emerald{--ui-accent:#34d399;--ui-accent-strong:#2dd4bf;--ui-ring:rgba(52, 211, 153, 0.26)}.theme-amber{--ui-accent:#f59e0b;--ui-accent-strong:#f97316;--ui-accent-contrast:#1c1207;--ui-ring:rgba(245, 158, 11, 0.32)}.dark.theme-amber{--ui-accent:#fbbf24;--ui-accent-strong:#fb923c;--ui-ring:rgba(251, 191, 36, 0.26)}.theme-rose{--ui-accent:#f43f5e;--ui-accent-strong:#ec4899;--ui-accent-contrast:#fff;--ui-ring:rgba(244, 63, 94, 0.32)}.dark.theme-rose{--ui-accent:#fb7185;--ui-accent-strong:#f472b6;--ui-ring:rgba(251, 113, 133, 0.26)}.theme-blue{--ui-accent:#3b82f6;--ui-accent-strong:#6366f1;--ui-accent-contrast:#fff;--ui-ring:rgba(59, 130, 246, 0.32)}.dark.theme-blue{--ui-accent:#60a5fa;--ui-accent-strong:#818cf8;--ui-ring:rgba(96, 165, 250, 0.26)}:where(html){font-family:var(--ui-font-sans)}';function t(e,t,n){const i="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;e&&e!==i;){const i=Object.getOwnPropertyDescriptor(e,t);if(i&&(!n||i.get))return i;e=Object.getPrototypeOf(e)}}var n,i=(e,n)=>{var i;Object.entries(null!=(i=n.i.t)?i:{}).map((([i,[r]])=>{if(31&r||32&r){const r=e[i],o=t(Object.getPrototypeOf(e),i,!0)||Object.getOwnPropertyDescriptor(e,i);o&&Object.defineProperty(e,i,{get(){return o.get.call(this)},set(e){o.set.call(this,e)},configurable:!0,enumerable:!0}),n.o.has(i)?e[i]=n.o.get(i):void 0!==r&&(e[i]=r)}}))},r=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),l=new Map,a="undefined"!=typeof window?window:{},c=a.HTMLElement||class{},u={l:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,i)=>e.addEventListener(t,n,i),rel:(e,t,n,i)=>e.removeEventListener(t,n,i),ce:(e,t)=>new CustomEvent(e,t)},f=(()=>{try{return!!a.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(e){}return!1})(),d=!!f&&(()=>!!a.document&&Object.getOwnPropertyDescriptor(a.document.adoptedStyleSheets,"length").writable)(),g=!1,b=[],p=[],m=(e,t)=>n=>{e.push(n),g||(g=!0,t&&4&u.l?v(y):u.raf(y))},h=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},y=()=>{h(b),h(p),(g=b.length>0)&&u.raf(y)},v=e=>Promise.resolve(void 0).then(e),w=m(p,!0),$=e=>{const t=new URL(e,u.u);return t.origin!==a.location.origin?t.href:t.pathname},j=e=>u.u=e;function x(){var t;const i=this.attachShadow({mode:"open"});if(void 0===n&&(n=null!=(t=function(e){if(!f)return;const t=new CSSStyleSheet;return t.replaceSync(e),t}(e))?t:null),n)d?i.adoptedStyleSheets.push(n):i.adoptedStyleSheets=[...i.adoptedStyleSheets,n];else if(!f){const t=document.createElement("style");t.innerHTML=e,i.prepend(t)}}var O,k=new WeakMap,S=e=>"sc-"+e.p,M=e=>"object"==(e=typeof e)||"function"===e,E=(e,t,...n)=>{let i=null,r=null,o=!1,s=!1;const l=[],a=t=>{for(let n=0;n<t.length;n++)i=t[n],Array.isArray(i)?a(i):null!=i&&"boolean"!=typeof i&&((o="function"!=typeof e&&!M(i))&&(i+=""),o&&s?l[l.length-1].m+=i:l.push(o?C(null,i):i),s=o)};if(a(n),t){t.key&&(r=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const c=C(e,null);return c.h=t,l.length>0&&(c.v=l),c.$=r,c},C=(e,t)=>({l:0,j:e,m:null!=t?t:null,O:null,v:null,h:null,$:null}),A={},L=e=>{if(!e)return;const t=Object.keys(e);if(0===t.length)return;let n=!1;for(const i of t){if(n)break;for(const t of e[i])if("string"==typeof t){n=!0;break}}if(!n)return e;const i={};for(const n of t)i[n]=e[n].map((e=>"string"==typeof e?{[e]:0}:e));return i},N=(e,t)=>null==e||M(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?"string"==typeof e?parseFloat(e):"number"==typeof e?e:NaN:1&t?e+"":e,P=(e,t)=>{const n=e;return{emit:e=>R(n,t,{bubbles:!0,composed:!0,cancelable:!0,detail:e})}},R=(e,t,n)=>{const i=u.ce(t,n);return e.dispatchEvent(i),i},U=(e,t,n,i,s,l)=>{if(n===i)return;let c=o(e,t),f=t.toLowerCase();if("class"===t){const t=e.classList,r=D(n);let o=D(i);t.remove(...r.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!r.includes(e))))}else if("style"===t){for(const t in n)i&&null!=i[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in i)n&&i[t]===n[t]||(t.includes("-")?e.style.setProperty(t,i[t]):e.style[t]=i[t])}else if("key"===t);else if("ref"===t)i&&Q(i,e);else if(e.__lookupSetter__(t)||"o"!==t[0]||"n"!==t[1]){if("a"===t[0]&&t.startsWith("attr:")){const n=t.slice(5);let o;{const t=r(e);if(t&&t.i&&t.i.t){const e=t.i.t[n];e&&e[1]&&(o=e[1])}}return o||(o=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==i||!1===i?!1===i&&""!==e.getAttribute(o)||e.removeAttribute(o):e.setAttribute(o,!0===i?"":i))}if("p"===t[0]&&t.startsWith("prop:")){const n=t.slice(5);try{e[n]=i}catch(e){}return}{const r=M(i);if((c||r&&null!==i)&&!s)try{if(e.tagName.includes("-"))e[t]!==i&&(e[t]=i);else{const r=null==i?"":i;"list"===t?c=!1:null!=n&&e[t]===r||("function"==typeof e.__lookupSetter__(t)?e[t]=r:e.setAttribute(t,r))}}catch(e){}null==i||!1===i?!1===i&&""!==e.getAttribute(t)||e.removeAttribute(t):(!c||4&l||s)&&!r&&1===e.nodeType&&e.setAttribute(t,i=!0===i?"":i)}}else if(t="-"===t[2]?t.slice(3):o(a,f)?f.slice(2):f[2]+t.slice(3),n||i){const r=t.endsWith(F);t=t.replace(H,""),n&&u.rel(e,t,n,r),i&&u.ael(e,t,i,r)}},_=/\s/,D=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(_):[]),F="Capture",H=RegExp(F+"$"),W=(e,t,n)=>{const i=11===t.O.nodeType&&t.O.host?t.O.host:t.O,r=e&&e.h||{},o=t.h||{};for(const e of z(Object.keys(r)))e in o||U(i,e,r[e],void 0,n,t.l);for(const e of z(Object.keys(o)))U(i,e,r[e],o[e],n,t.l)};function z(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var I=!1,V=!1,q=[],B=[],T=(e,t,n)=>{const i=t.v[n];let r,o,s=0;if(null!=i.m)r=i.O=a.document.createTextNode(i.m);else{if(V||(V="svg"===i.j),!a.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(r=i.O=a.document.createElementNS(V?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",i.j),V&&"foreignObject"===i.j&&(V=!1),W(null,i,V),i.v){const t="template"===i.j?r.content:r;for(s=0;s<i.v.length;++s)o=T(e,i,s),o&&t.appendChild(o)}"svg"===i.j?V=!1:"foreignObject"===r.tagName&&(V=!0)}return r["s-hn"]=O,r},Y=(e,t,n,i,r,o)=>{let s,l=e;for(l.shadowRoot&&l.tagName===O&&(l=l.shadowRoot),"template"===n.j&&(l=l.content);r<=o;++r)i[r]&&(s=T(null,n,r),s&&(i[r].O=s,X(l,s,t)))},Z=(e,t,n)=>{for(let i=t;i<=n;++i){const t=e[i];if(t){const e=t.O;K(t),e&&e.remove()}}},G=(e,t,n=!1)=>e.j===t.j&&(n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),J=(e,t,n=!1)=>{const i=t.O=e.O,r=e.v,o=t.v,s=t.j,l=t.m;null==l?(V="svg"===s||"foreignObject"!==s&&V,"slot"!==s||I||e.k!==t.k&&(t.O["s-sn"]=t.k||"",(e=>{u.l|=1;const t=e.closest(O.toLowerCase());if(null!=t){const n=Array.from(t.__childNodes||t.childNodes).find((e=>e["s-cr"])),i=Array.from(e.__childNodes||e.childNodes);for(const e of n?i.reverse():i)null!=e["s-sh"]&&(X(t,e,null!=n?n:null),e["s-sh"]=void 0)}u.l&=-2})(t.O.parentElement)),W(e,t,V),null!==r&&null!==o?((e,t,n,i,r=!1)=>{let o,s,l=0,a=0,c=0,u=0,f=t.length-1,d=t[0],g=t[f],b=i.length-1,p=i[0],m=i[b];const h="template"===n.j?e.content:e;for(;l<=f&&a<=b;)if(null==d)d=t[++l];else if(null==g)g=t[--f];else if(null==p)p=i[++a];else if(null==m)m=i[--b];else if(G(d,p,r))J(d,p,r),d=t[++l],p=i[++a];else if(G(g,m,r))J(g,m,r),g=t[--f],m=i[--b];else if(G(d,m,r))J(d,m,r),X(h,d.O,g.O.nextSibling),d=t[++l],m=i[--b];else if(G(g,p,r))J(g,p,r),X(h,g.O,d.O),g=t[--f],p=i[++a];else{for(c=-1,u=l;u<=f;++u)if(t[u]&&null!==t[u].$&&t[u].$===p.$){c=u;break}c>=0?(s=t[c],s.j!==p.j?o=T(t&&t[a],n,c):(J(s,p,r),t[c]=void 0,o=s.O),p=i[++a]):(o=T(t&&t[a],n,a),p=i[++a]),o&&X(d.O.parentNode,o,d.O)}l>f?Y(e,null==i[b+1]?null:i[b+1].O,n,i,a,b):a>b&&Z(t,l,f)})(i,r,t,o,n):null!==o?(null!==e.m&&(i.textContent=""),Y(i,null,t,o,0,o.length-1)):!n&&null!==r&&Z(r,0,r.length-1),V&&"svg"===s&&(V=!1)):e.m!==l&&(i.data=l)},K=e=>{e.h&&e.h.ref&&q.push((()=>e.h.ref(null))),e.v&&e.v.map(K)},Q=(e,t)=>{B.push((()=>e(t)))},X=(e,t,n)=>e.__insertBefore?e.__insertBefore(t,n):null==e?void 0:e.insertBefore(t,n),ee=(e,t,n=!1)=>{const i=e.$hostElement$,r=e.i,o=e.S||C(null,null),s=(e=>e&&e.j===A)(t)?t:E(null,null,t);if(O=i.tagName,r.M&&(s.h=s.h||{},r.M.forEach((([e,t])=>{s.h[t]=i[e]}))),n&&s.h)for(const e of Object.keys(s.h))i.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(s.h[e]=i[e]);s.j=null,s.l|=4,e.S=s,s.O=o.O=i.shadowRoot||i,I=!(!(1&r.l)||128&r.l),J(o,s,n),q.forEach((e=>e())),q.length=0,B.forEach((e=>e())),B.length=0},te=(e,t)=>{if(t&&!e.C&&t["s-p"]){const n=t["s-p"].push(new Promise((i=>e.C=()=>{t["s-p"].splice(n-1,1),i()})))}},ne=(e,t)=>{if(e.l|=16,4&e.l)return void(e.l|=512);te(e,e.A);const n=()=>ie(e,t);if(!t)return w(n);queueMicrotask((()=>{n()}))},ie=(e,t)=>{const n=e.$hostElement$,i=n;if(!i)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let r;return r=ue(i,t?"componentWillLoad":"componentWillUpdate",void 0,n),r=re(r,(()=>ue(i,"componentWillRender",void 0,n))),re(r,(()=>se(e,i,t)))},re=(e,t)=>oe(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),oe=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,se=async(e,t,n)=>{var i;const r=e.$hostElement$,o=r["s-rc"];n&&(e=>{const t=e.i,n=e.$hostElement$,i=t.l,r=((e,t)=>{var n,i,r;const o=S(t),s=l.get(o);if(!a.document)return o;if(e=11===e.nodeType?e:a.document,s)if("string"==typeof s){let r,l=k.get(e=e.head||e);if(l||k.set(e,l=new Set),!l.has(o)){r=a.document.createElement("style"),r.textContent=s;const c=null!=(n=u.L)?n:function(){var e,t,n;return null!=(n=null==(t=null==(e=a.document.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:t.getAttribute("content"))?n:void 0}();if(null!=c&&r.setAttribute("nonce",c),!(1&t.l))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(r,(null==n?void 0:n.parentNode)===e?n:null)}else if("host"in e)if(f){const t=new(null!=(i=e.defaultView)?i:e.ownerDocument.defaultView).CSSStyleSheet;t.replaceSync(s),d?e.adoptedStyleSheets.unshift(t):e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.textContent=s+t.textContent:e.prepend(r)}else e.append(r);1&t.l&&e.insertBefore(r,null),4&t.l&&(r.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),l&&l.add(o)}}else{let t=k.get(e);if(t||k.set(e,t=new Set),!t.has(o)){const n=null!=(r=e.defaultView)?r:e.ownerDocument.defaultView;let i;if(s.constructor===n.CSSStyleSheet)i=s;else{i=new n.CSSStyleSheet;for(let e=0;e<s.cssRules.length;e++)i.insertRule(s.cssRules[e].cssText,e)}d?e.adoptedStyleSheets.push(i):e.adoptedStyleSheets=[...e.adoptedStyleSheets,i],t.add(o)}}return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&i&&(n["s-sc"]=r,n.classList.add(r+"-h"))})(e);le(e,t,r,n),o&&(o.map((e=>e())),r["s-rc"]=void 0);{const t=null!=(i=r["s-p"])?i:[],n=()=>ae(e);0===t.length?n():(Promise.all(t).then(n).catch(n),e.l|=4,t.length=0)}},le=(e,t,n,i)=>{try{t=t.render(),e.l&=-17,e.l|=2,ee(e,t,i)}catch(t){s(t,e.$hostElement$)}return null},ae=e=>{const t=e.$hostElement$,n=t,i=e.A;ue(n,"componentDidRender",void 0,t),64&e.l?ue(n,"componentDidUpdate",void 0,t):(e.l|=64,fe(t),ue(n,"componentDidLoad",void 0,t),e.N(t),i||ce()),e.C&&(e.C(),e.C=void 0),512&e.l&&v((()=>ne(e,!1))),e.l&=-517},ce=()=>{v((()=>R(a,"appload",{detail:{namespace:"uikit"}})))},ue=(e,t,n,i)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e,i)}},fe=e=>e.classList.add("hydrated"),de=(e,t,n,i)=>{const o=r(e);if(!o)return;const l=e,a=o.o.get(t),c=o.l,u=l;if(!((n=N(n,i.t[t][0]))===a||Number.isNaN(a)&&Number.isNaN(n))){if(o.o.set(t,n),i.P){const e=i.P[t];e&&e.map((e=>{try{const[[i,r]]=Object.entries(e);(128&c||1&r)&&(u?u[i](n,a,t):o.R.push((()=>{o.U[i](n,a,t)})))}catch(e){s(e,l)}}))}if(2&c){if(u.componentShouldUpdate&&!1===u.componentShouldUpdate(n,a,t)&&!(16&c))return;16&c||ne(o,!1)}}},ge=(e,n)=>{var i,o;const s=e.prototype;{e.watchers&&!n.P&&(n.P=L(e.watchers)),e.deserializers&&!n._&&(n._=e.deserializers),e.serializers&&!n.D&&(n.D=e.serializers);const l=Object.entries(null!=(i=n.t)?i:{});l.map((([e,[i]])=>{if(31&i||32&i){const{get:o,set:l}=t(s,e)||{};o&&(n.t[e][0]|=2048),l&&(n.t[e][0]|=4096),Object.defineProperty(s,e,{get(){return o?o.apply(this):((e,t)=>r(this).o.get(t))(0,e)},configurable:!0,enumerable:!0}),Object.defineProperty(s,e,{set(t){const o=r(this);if(o){if(l)return void 0===(32&i?this[e]:o.$hostElement$[e])&&o.o.get(e)&&(t=o.o.get(e)),l.call(this,N(t,i)),void de(this,e,t=32&i?this[e]:o.$hostElement$[e],n);de(this,e,t,n)}}})}}));{const t=new Map;s.attributeChangedCallback=function(e,i,o){u.jmp((()=>{var a;const c=t.get(e),u=r(this);if(this.hasOwnProperty(c),s.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==o)return;if(null==c){const t=null==u?void 0:u.l;if(u&&t&&!(8&t)&&o!==i){const r=this,s=null==(a=n.P)?void 0:a[e];null==s||s.forEach((n=>{const[[s,l]]=Object.entries(n);null!=r[s]&&(128&t||1&l)&&r[s].call(r,o,i,e)}))}return}const f=l.find((([e])=>e===c)),d=f&&4&f[1][0],g=d&&null===o&&void 0===this[c];d&&(o=null!==o&&"false"!==o);const b=Object.getOwnPropertyDescriptor(s,c);g||o==this[c]||b.get&&!b.set||(this[c]=o)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(o=n.P)?o:{}),...l.filter((([e,t])=>31&t[0])).map((([e,i])=>{var r;const o=i[1]||e;return t.set(o,e),512&i[0]&&(null==(r=n.M)||r.push([e,o])),o}))]))}}return e},be=(e,t)=>{const n={l:t[0],p:t[1]};try{n.t=t[2],n.F=t[3],n.P=L(e.P),n._=e._,n.D=e.D,n.M=[];const o=e.prototype.connectedCallback,a=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((e,t)=>{const n={l:0,$hostElement$:e,i:t,o:new Map,H:new Map};n.W=new Promise((e=>n.N=e)),e["s-p"]=[],e["s-rc"]=[];const r=n;e.__stencil__getHostRef=()=>r,512&t.l&&i(e,n)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const e=r(this);if(!e)return;pe(this,e,n.F),this.__hasHostListenerAttached=!0}(e=>{if(!(1&u.l)){const t=r(e);if(!t)return;const n=t.i,i=()=>{};if(1&t.l)pe(e,t,n.F),(null==t?void 0:t.U)||(null==t?void 0:t.W)&&t.W.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){te(t,t.A=n);break}}n.t&&Object.entries(n.t).map((([t,[n]])=>{if(31&n&&Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let i;try{if(!(32&t.l)&&(t.l|=32,i=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128)),i&&i.style)){let e;"string"==typeof i.style&&(e=i.style);const t=S(n);if(!l.has(t)){const i=()=>{};((e,t,n)=>{let i=l.get(e);f&&n?(i=i||new CSSStyleSheet,"string"==typeof i?i=t:i.replaceSync(t)):i=t,l.set(e,i)})(t,e,!!(1&n.l)),i()}}const r=t.A,o=()=>ne(t,!0);r&&r["s-rc"]?r["s-rc"].push(o):o()}catch(n){s(n,e),t.C&&(t.C(),t.C=void 0),t.N&&t.N(e)}})(e,t,n)}i()}})(this),o&&o.call(this)},disconnectedCallback(){(async e=>{if(!(1&u.l)){const t=r(e);(null==t?void 0:t.I)&&(t.I.map((e=>e())),t.I=void 0)}k.has(e)&&k.delete(e),e.shadowRoot&&k.has(e.shadowRoot)&&k.delete(e.shadowRoot)})(this),a&&a.call(this)},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else x.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),ge(e,n)}catch(t){return s(t),e}},pe=(e,t,n)=>{n&&a.document&&n.map((([n,i,r])=>{const o=e,s=me(t,r),l=he(n);u.ael(o,i,s,l),(t.I=t.I||[]).push((()=>u.rel(o,i,s,l)))}))},me=(e,t)=>n=>{try{e.$hostElement$[t](n)}catch(t){s(t,e.$hostElement$)}},he=e=>({passive:!!(1&e),capture:!!(2&e)}),ye=e=>u.L=e,ve=e=>Object.assign(u,e),we=new WeakMap;function $e(e,t){let n=we.get(t);n||(n={l:0,i:{l:0,p:t.tagName},$hostElement$:t},we.set(t,n)),ee(n,e)}function je(e){return e}export{c as H,A as a,P as c,$ as getAssetPath,E as h,be as p,$e as render,j as setAssetPath,ye as setNonce,ve as setPlatformOptions,je as t}
|
|
@@ -0,0 +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:"fdbe42a3b0cd906ff4c0dd79cc661370aa36cf22",role:"status"},r("span",{key:"aab2633191dd34f3b9ba49d4335ec3aaafcfb0a8",class:{spinner:!0,[`size-${this.size}`]:!0}}),r("span",{key:"bd4d9cf78c4b05dcf5e1146a13f9754dce2d5127",class:"sr-only"},"Carregando"))}static get style(){return":host{display:inline-flex;vertical-align:middle;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 a,c as i,h as r,a as s}from"./index.js";const o=t(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiClose=i(this,"uiClose"),this.open=!1,this.variant="default",this.duration=4e3}onOpenChange(e){e?this.startTimer():this.clearTimer()}componentDidLoad(){this.open&&this.startTimer()}disconnectedCallback(){this.clearTimer()}startTimer(){this.clearTimer(),this.duration>0&&(this.timer=setTimeout((()=>this.dismiss()),this.duration))}clearTimer(){this.timer&&(clearTimeout(this.timer),this.timer=void 0)}dismiss(){this.clearTimer(),this.open=!1,this.uiClose.emit()}async show(){this.open=!0}async close(){this.dismiss()}render(){return r(s,{key:"
|
|
1
|
+
import{t as e,p as t,H as a,c as i,h as r,a as s}from"./index.js";const o=t(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiClose=i(this,"uiClose"),this.open=!1,this.variant="default",this.duration=4e3}onOpenChange(e){e?this.startTimer():this.clearTimer()}componentDidLoad(){this.open&&this.startTimer()}disconnectedCallback(){this.clearTimer()}startTimer(){this.clearTimer(),this.duration>0&&(this.timer=setTimeout((()=>this.dismiss()),this.duration))}clearTimer(){this.timer&&(clearTimeout(this.timer),this.timer=void 0)}dismiss(){this.clearTimer(),this.open=!1,this.uiClose.emit()}async show(){this.open=!0}async close(){this.dismiss()}render(){return r(s,{key:"4316653a0f6b70781ceda01098b018f649c7f180"},this.open&&r("div",{key:"cc3d339f4ebb55ef3fbc8dd05432d6cbc570f4ad",class:{toast:!0,[`variant-${this.variant}`]:!0},role:"status"},r("div",{key:"37cf6a0ffec9040b002c33f4b1015832cfd32a6f",class:"body"},this.heading&&r("p",{key:"dcb18a7d85fe5d3ed2758e0d5c4dc2c97280b84c",class:"heading"},this.heading),this.description&&r("p",{key:"6ae4543ad5a17fbfdc16ba15c5ce44012143f58b",class:"description"},this.description)),r("button",{key:"73a22b06477019043a4273a06064305d331d5311",class:"close",type:"button","aria-label":"Fechar",onClick:()=>this.dismiss()},r("svg",{key:"7407a77475baa99882678a9ab0bd8af91474ec4e",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},r("line",{key:"c7a4868750a0f503080cd5d9e469b7978bf98115",x1:"18",y1:"6",x2:"6",y2:"18"}),r("line",{key:"844bc05210fbdf5ab10b6b91d140b59b6a75dff5",x1:"6",y1:"6",x2:"18",y2:"18"})))))}static get watchers(){return{open:[{onOpenChange:0}]}}static get style(){return":host{display:block}.toast{display:flex;align-items:flex-start;gap:0.75rem;padding:0.875rem 1rem;border:1px solid var(--ui-border);border-left:3px solid var(--ui-accent);border-radius:var(--ui-radius);background:var(--ui-panel-strong);backdrop-filter:blur(22px);box-shadow:var(--ui-shadow-lg);font-family:var(--ui-font-sans);animation:ui-toast-pop var(--ui-duration) var(--ui-ease)}.variant-default{border-left-color:var(--ui-accent)}.variant-success{border-left-color:var(--ui-success)}.variant-warning{border-left-color:var(--ui-warning)}.variant-danger{border-left-color:var(--ui-danger)}.body{flex:1;min-width:0;display:flex;flex-direction:column;gap:0.25rem}.heading{margin:0;font-size:0.875rem;font-weight:600;color:var(--ui-foreground)}.description{margin:0;font-size:0.8125rem;color:var(--ui-text-muted)}.close{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;padding:0.125rem;border:none;background:transparent;color:var(--ui-text-muted);cursor:pointer;border-radius:var(--ui-radius-sm);transition:color var(--ui-duration) var(--ui-ease)}.close:hover{color:var(--ui-foreground)}@keyframes ui-toast-pop{from{opacity:0;transform:translateY(0.5rem) scale(0.98)}to{opacity:1;transform:translateY(0) scale(1)}}"}},[1,"ui-toast",{open:[1540],variant:[1],heading:[1],description:[1],duration:[2],show:[64],close:[64]},void 0,{open:[{onOpenChange:0}]}]);function n(){"undefined"!=typeof customElements&&["ui-toast"].forEach((t=>{"ui-toast"===t&&(customElements.get(e(t))||customElements.define(e(t),o))}))}n();export{o as U,n as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as t,H as o,c as
|
|
1
|
+
import{t as e,p as t,H as o,c as a,h as r,a as i}from"./index.js";const s=t(class extends o{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiToggle=a(this,"uiToggle"),this.heading="",this.open=!1,this.onToggle=e=>{this.open=e.currentTarget.open,this.uiToggle.emit(this.open)}}render(){return r(i,{key:"11d00df0e199adbc3badfa4e80702b1b1b3ccba7"},r("details",{key:"44b13038c647250ca575b39a29c51b4552bf08af",open:this.open,onToggle:this.onToggle},r("summary",{key:"08f7b8573dcfe59772f5e8f5aba4e5f35d4b56e1"},r("span",{key:"cd9805611d92d5e79fb8ef919641be21db847653",class:"heading"},this.heading),r("svg",{key:"86f746ee1069f1da35ae413d0e3027faa3c16e28",class:"chevron",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},r("polyline",{key:"f390ee46eb11ea19bd1009a6729e350190cb3832",points:"6 9 12 15 18 9"}))),r("div",{key:"a8648065e4fabb367320d891d6ca31a3d66a6e92",class:"content"},r("slot",{key:"8666001409bd732acbc0b5cd8aa3c078de166a77"}))))}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 c=s,d=n;export{c as UiAccordionItem,d as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as
|
|
1
|
+
import{t,p as s,H as e,h as c,a as o}from"./index.js";const n=s(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}render(){return c(o,{key:"56a5f7f6b52c0b6a4c38cb46ddba0cd74882bd66"},c("slot",{key:"e93260e203e7530a478cf67911c6ad82b1bb42b8"}))}static get style(){return":host{display:block;font-family:var(--ui-font-sans)}"}},[257,"ui-accordion"]);function a(){"undefined"!=typeof customElements&&["ui-accordion"].forEach((s=>{"ui-accordion"===s&&(customElements.get(t(s))||customElements.define(t(s),n))}))}a();const i=n,r=a;export{i as UiAccordion,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as
|
|
1
|
+
import{t as e,p as a,H as t,h as r,a as s}from"./index.js";const i=a(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return r(s,{key:"5c342ae641715653dddb31b78aeee575b8aed1f7"},r("div",{key:"51f02e90a80b567ecae3bec66409fe81fd23311b",class:"group"},r("slot",{key:"e51f5620608a021eac9f11caba645a528dad4e82"})))}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((a=>{"ui-avatar-group"===a&&(customElements.get(e(a))||customElements.define(e(a),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
|
|
1
|
+
import{t as a,p as t,H as i,h as s,a as e}from"./index.js";const r=t(class extends i{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.alt=""}render(){return s(e,{key:"6347a5a14cb07b2782759417006f8a23fd7a6b54"},s("span",{key:"dfb14ae7a3e19312a7fa597612a9d10842561d8f",class:"wrapper"},s("span",{key:"66ad000b4c2f1bea00332cc164a86ee196b80943",class:"avatar"},this.src?s("img",{class:"image",src:this.src,alt:this.alt}):s("span",{class:"fallback"},this.fallback)),this.status&&s("span",{key:"d40f9d4f2c42415aa8c346f2819aade2221a2829",class:"status status-"+this.status,"aria-label":this.status})))}static get style(){return":host{display:inline-flex;vertical-align:middle;}.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 u=r,o=n;export{u as UiAvatar,o 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:"daa9ab5db1045afddfd1c1656a1635fd98a9e5cb"},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 a(){"undefined"!=typeof customElements&&["ui-breadcrumb-item"].forEach((t=>{"ui-breadcrumb-item"===t&&(customElements.get(e(t))||customElements.define(e(t),s))}))}a();const o=s,l=a;export{o as UiBreadcrumbItem,l as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as
|
|
1
|
+
import{t as e,p as a,H as t,h as s,a as r}from"./index.js";const c=a(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return s(r,{key:"08c7f1a9160ee85b361bbdbaa79bebe383c45356"},s("nav",{key:"c556ee500aae55becf5c1095344278f48bf6c8a5","aria-label":"breadcrumb"},s("ol",{key:"cf7611405a6884d91fe9b4a657f640080e2085e6"},s("slot",{key:"4d10ef99bed3ba63f5893a62ac8ac4c3c0256461"}))))}static get style(){return":host{display:block}ol{display:flex;flex-wrap:wrap;align-items:center;gap:0.5rem;margin:0;padding:0;list-style:none;font-family:var(--ui-font-sans);font-size:0.875rem}"}},[257,"ui-breadcrumb"]);function n(){"undefined"!=typeof customElements&&["ui-breadcrumb"].forEach((a=>{"ui-breadcrumb"===a&&(customElements.get(e(a))||customElements.define(e(a),c))}))}n();const b=c,i=n;export{b as UiBreadcrumb,i as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as r,p as
|
|
1
|
+
import{t as r,p as e,H as t,h as i,a}from"./index.js";const o=e(class extends t{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-flex;vertical-align:middle}:host([full]){display:flex;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((e=>{"ui-button"===e&&(customElements.get(r(e))||customElements.define(r(e),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
|
|
1
|
+
import{t as e,p as t,H as r,h as a,a as o}from"./index.js";const s=t(class extends r{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return a(o,{key:"6382864bd44db2d3bc909fba6b50e61889e248ba"},a("div",{key:"ced7e89f9d398eb80d914c0734bf7792b0da415e",class:"card"},a("slot",{key:"3d77e38ace558104a5498e76730264731d02ad75",name:"title"}),a("slot",{key:"7fe9e17f69e79444eb0d3908f099bc40a49ebe0d",name:"description"}),a("slot",{key:"523ae4e729f6127e4686fb82e12ff3153a67f774"}),a("slot",{key:"87603f17a6d0c8ff7724b5a658e34ae868abd83e",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,l=d;export{i as UiCard,l as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface UiCarousel extends Components.UiCarousel, HTMLElement {}
|
|
4
|
+
export const UiCarousel: {
|
|
5
|
+
prototype: UiCarousel;
|
|
6
|
+
new (): UiCarousel;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t,p as i,H as s,c as e,h as r,a}from"./index.js";const o=i(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.uiChange=e(this,"uiChange"),this.loop=!1,this.autoplay=0,this.showArrows=!0,this.showDots=!0,this.index=0,this.count=0,this.syncCount=()=>{const t=this.host.shadowRoot?.querySelector("slot");t&&(this.count=t.assignedElements().length,this.index>this.count-1&&(this.index=Math.max(0,this.count-1)))},this.handleMouseEnter=()=>{this.autoplay>0&&this.stopAutoplay()},this.handleMouseLeave=()=>{this.autoplay>0&&this.startAutoplay()}}componentDidLoad(){this.syncCount(),this.startAutoplay()}disconnectedCallback(){this.stopAutoplay()}startAutoplay(){this.autoplay>0&&(this.stopAutoplay(),this.timer=setInterval((()=>{this.advance()}),this.autoplay))}stopAutoplay(){this.timer&&(clearInterval(this.timer),this.timer=void 0)}advance(){this.count<1||this.goTo((this.index+1)%this.count)}setIndex(t){if(this.count<1)return;let i=t;i=this.loop?(t%this.count+this.count)%this.count:Math.max(0,Math.min(t,this.count-1)),i!==this.index&&(this.index=i,this.uiChange.emit(this.index))}async next(){this.setIndex(this.index+1)}async prev(){this.setIndex(this.index-1)}async goTo(t){this.setIndex(t)}render(){const t=this.count>1,i=this.index<=0,s=this.index>=this.count-1;return r(a,{key:"8674262ced2aef3587cb5b5148628776c3a438df"},r("div",{key:"f75c9ec8e3d6aa8635e3001a108795f2b0ac8075",class:"viewport",onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},r("div",{key:"eb654e625366fbeef0b91dd9d86fabe82bada130",class:"track",style:{transform:`translateX(${100*-this.index}%)`}},r("slot",{key:"23be2c8067e38b9092bbe6d3ef7b59efb91176c2",onSlotchange:this.syncCount})),this.showArrows&&t&&r("button",{key:"a079b10d78e03a780cccd34a18cb677890c79b8d",type:"button",class:"arrow arrow-prev","aria-label":"Slide anterior",disabled:!this.loop&&i,onClick:()=>this.prev()},"‹"),this.showArrows&&t&&r("button",{key:"baa6cdc3055631a766afeffc2dadf3d565afaf71",type:"button",class:"arrow arrow-next","aria-label":"Próximo slide",disabled:!this.loop&&s,onClick:()=>this.next()},"›"),this.showDots&&t&&r("div",{key:"3b381517e47193aece7e50c7f134f3e70ea2eda6",class:"dots"},Array.from({length:this.count}).map(((t,i)=>r("button",{key:i,type:"button",class:{dot:!0,active:i===this.index},"aria-label":"Ir para slide "+(i+1),"aria-current":i===this.index?"true":"false",onClick:()=>this.goTo(i)}))))))}get host(){return this}static get style(){return":host{display:block}.viewport{position:relative;overflow:hidden;border:1px solid var(--ui-border);border-radius:var(--ui-radius-lg);font-family:var(--ui-font-sans);color:var(--ui-foreground)}.track{display:flex;transition:transform 0.4s var(--ui-ease);will-change:transform}::slotted(*){flex:0 0 100%;width:100%}.arrow{position:absolute;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;border-radius:var(--ui-radius-full);border:1px solid var(--ui-border);background:var(--ui-panel-strong);color:var(--ui-foreground);font-size:1.5rem;line-height:1;cursor:pointer;backdrop-filter:blur(22px);box-shadow:var(--ui-shadow);outline:none;transition:all var(--ui-duration) var(--ui-ease)}.arrow:hover{border-color:var(--ui-border-strong)}.arrow:focus-visible{box-shadow:0 0 0 2px var(--ui-ring)}.arrow:disabled{opacity:0.4;pointer-events:none}.arrow-prev{left:0.5rem}.arrow-next{right:0.5rem}.dots{position:absolute;left:0;right:0;bottom:0.75rem;display:flex;align-items:center;justify-content:center;gap:0.5rem}.dot{width:0.625rem;height:0.625rem;padding:0;border:none;border-radius:var(--ui-radius-full);background:var(--ui-chip);cursor:pointer;outline:none;transition:all var(--ui-duration) var(--ui-ease)}.dot:hover{filter:brightness(1.15)}.dot:focus-visible{box-shadow:0 0 0 2px var(--ui-ring)}.dot.active{background:var(--ui-accent)}"}},[257,"ui-carousel",{loop:[4],autoplay:[2],showArrows:[4,"show-arrows"],showDots:[4,"show-dots"],index:[32],count:[32],next:[64],prev:[64],goTo:[64]}]);function n(){"undefined"!=typeof customElements&&["ui-carousel"].forEach((i=>{"ui-carousel"===i&&(customElements.get(t(i))||customElements.define(t(i),o))}))}n();const h=o,l=n;export{h as UiCarousel,l as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as i,H as t,c,h as
|
|
1
|
+
import{t as e,p as i,H as t,c as r,h as c,a as o}from"./index.js";const a=i(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiChange=r(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 c(o,{key:"341aeea485e623d978d0e738481dd5e0865b1ff3"},c("button",{key:"a3a5fa4569152d3811d0b575dd3dba099aa7b782",class:"checkbox",type:"button",role:"checkbox","aria-checked":this.checked?"true":"false",disabled:this.disabled,onClick:this.toggle,onKeyDown:this.onKeyDown},c("svg",{key:"2653b2db08fc200cc9de850bf3b5e7aec7bb96a0",class:"check",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},c("polyline",{key:"009b16f0efcd6f4d59255262e95542e5362832ed",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),a))}))}s();const n=a,d=s;export{n as UiCheckbox,d as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface UiCommand extends Components.UiCommand, HTMLElement {}
|
|
4
|
+
export const UiCommand: {
|
|
5
|
+
prototype: UiCommand;
|
|
6
|
+
new (): UiCommand;
|
|
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 s,h as o,a}from"./index.js";const r=t(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiSelect=s(this,"uiSelect"),this.open=!1,this.items=[],this.placeholder="Buscar comando…",this.hotkey=!0,this.query="",this.activeIndex=0,this.onHotkey=e=>{(e.metaKey||e.ctrlKey)&&"k"===e.key.toLowerCase()&&(e.preventDefault(),this.open=!this.open)},this.onClose=()=>{this.open&&(this.open=!1),this.query="",this.activeIndex=0},this.onInput=e=>{this.query=e.target.value,this.activeIndex=0},this.onKeydown=e=>{const t=this.filtered;switch(e.key){case"ArrowDown":if(e.preventDefault(),0===t.length)return;this.activeIndex=(this.activeIndex+1)%t.length;break;case"ArrowUp":if(e.preventDefault(),0===t.length)return;this.activeIndex=(this.activeIndex-1+t.length)%t.length;break;case"Enter":t[this.activeIndex]&&(e.preventDefault(),this.select(t[this.activeIndex]))}}}onOpenChange(e){this.sync(e),e&&requestAnimationFrame((()=>this.inputEl?.focus()))}componentDidLoad(){this.sync(this.open)}connectedCallback(){this.hotkey&&"undefined"!=typeof document&&document.addEventListener("keydown",this.onHotkey)}disconnectedCallback(){"undefined"!=typeof document&&document.removeEventListener("keydown",this.onHotkey)}sync(e){this.dialogEl&&(e&&!this.dialogEl.open?this.dialogEl.showModal():!e&&this.dialogEl.open&&this.dialogEl.close())}async show(){this.open=!0}async close(){this.open=!1}get filtered(){const e=this.query.toLowerCase();return this.items.filter((t=>t.label.toLowerCase().includes(e)))}select(e){this.uiSelect.emit(e.value),this.open=!1,this.query="",this.activeIndex=0}render(){const e=this.filtered;let t=-1;const i=new Set;return o(a,{key:"2c99a55d42f0fa90a2b2ec4cae3d0952429fe861"},o("dialog",{key:"514c6b029111f2fbba14ce430f515c3528b6666f",class:"command",ref:e=>this.dialogEl=e,onClose:this.onClose,onCancel:this.onClose},o("div",{key:"430a2fd81e35ff4f2478a45d1398df7a575ce92d",class:"panel"},o("input",{key:"2eb475315a08d49f5716fd3aac87e1ce9d3d937b",class:"search",type:"text",role:"combobox","aria-expanded":"true","aria-autocomplete":"list",autocomplete:"off",value:this.query,placeholder:this.placeholder,ref:e=>this.inputEl=e,onInput:this.onInput,onKeyDown:this.onKeydown}),o("div",{key:"031e45085143e13aa360b0f2641a1fc80c4f75ab",class:"list",role:"listbox"},0===e.length?o("div",{class:"empty"},"Nenhum comando"):e.map((e=>{t+=1;const s=t,a=void 0!==e.group&&!i.has(e.group);return void 0!==e.group&&i.add(e.group),[a?o("div",{class:"group"},e.group):null,o("div",{class:{item:!0,active:s===this.activeIndex},role:"option","aria-selected":s===this.activeIndex?"true":"false",onMouseEnter:()=>this.activeIndex=s,onMouseDown:t=>{t.preventDefault(),this.select(e)}},o("span",{class:"label"},e.label),e.hint?o("span",{class:"hint"},e.hint):null)]}))))))}get host(){return this}static get watchers(){return{open:[{onOpenChange:0}]}}static get style(){return".command{padding:0;border:none;background:transparent;max-width:none;max-height:none;color:var(--ui-foreground)}.command::backdrop{background:var(--ui-overlay);backdrop-filter:blur(4px)}.panel{margin:12vh auto 0;width:min(40rem, 92vw);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);overflow:hidden;font-family:var(--ui-font-sans)}.search{width:100%;box-sizing:border-box;border:none;border-bottom:1px solid var(--ui-border);background:transparent;color:var(--ui-foreground);font-family:var(--ui-font-sans);font-size:1rem;padding:1rem;outline:none}.search::placeholder{color:var(--ui-text-faint)}.list{max-height:50vh;overflow:auto;padding:0.5rem}.group{text-transform:uppercase;font-size:0.7rem;letter-spacing:0.04em;color:var(--ui-text-faint);padding:0.5rem 0.75rem 0.25rem}.item{display:flex;align-items:center;justify-content:space-between;gap:0.75rem;padding:0.5rem 0.75rem;border-radius:var(--ui-radius-sm);cursor:pointer}.item.active{background:var(--ui-chip)}.label{color:var(--ui-foreground)}.hint{color:var(--ui-text-faint);font-size:0.8rem}.empty{text-align:center;color:var(--ui-text-faint);padding:1.5rem 1rem}"}},[1,"ui-command",{open:[1540],items:[16],placeholder:[1],hotkey:[4],query:[32],activeIndex:[32],show:[64],close:[64]},void 0,{open:[{onOpenChange:0}]}]);function n(){"undefined"!=typeof customElements&&["ui-command"].forEach((t=>{"ui-command"===t&&(customElements.get(e(t))||customElements.define(e(t),r))}))}n();const c=r,d=n;export{c as UiCommand,d as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
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:"
|
|
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:"474a0aeda3c1caad66af3108381f325dbec41566"},d("div",{key:"df5fdea525ac34873923b65408f971957fb53186",class:{container:!0,["size-"+this.size]:!0,padded:this.padded}},d("slot",{key:"e83ff090d3634368b7425db0d4c94f860934c951"})))}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}
|
|
@@ -1 +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:"
|
|
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:"2c7c34f0f2b688e7f4788c135ce46dc27576390a"},r("button",{key:"0e36f9b8e3a96376b186e97eba82621d513ca041",type:"button",class:"field",ref:e=>this.triggerEl=e,onClick:this.onTriggerClick,"aria-haspopup":"dialog","aria-expanded":this.open?"true":"false"},r("span",{key:"74e80a1defef918550ad375440ed96bbc77e4545",class:{label:!0,placeholder:!e}},e||this.placeholder),r("svg",{key:"bdc13113d3545c1978bd5c0654e38baac83e8ef4",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:"a67ced294fbaf97735a027773d5900b8e444e1fb",x:"3",y:"4",width:"18",height:"18",rx:"2"}),r("path",{key:"ab89ca2d6b92e0e094439e07aa8f33a77d00520d",d:"M16 2v4M8 2v4M3 10h18"}))),r("div",{key:"cdd601edb1497cea10eaa026037684530aec0f0e",class:{calendar:!0,"is-open":this.open},role:"dialog",ref:e=>this.floatingEl=e},r("div",{key:"83dda2789c83c34fb1996a7601c564eefe0403f9",class:"header"},r("button",{key:"4e2a0966a1f17a17005f767c9d8a396cf1e8e8bc",type:"button",class:"nav","aria-label":"Mês anterior",onClick:this.prevMonth},r("svg",{key:"3ff66e36cd36166da633c3c8d5379af0d561a973",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:"677dcab4309b5814429a6cd5528cf4a84d836fdf",d:"m15 18-6-6 6-6"}))),r("span",{key:"d478e154bb6c3ad7f43e37c042a0ee8de73bdc55",class:"month-label"},this.monthLabel()),r("button",{key:"8b7a399d6885f38cba8b9b79f5911cf8e1d3b97f",type:"button",class:"nav","aria-label":"Próximo mês",onClick:this.nextMonth},r("svg",{key:"1b3b7558875c3328af1cae826bebe9b488dfe822",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:"9c486397121befd51b7e0b8dcdc04afe8d8ecc90",d:"m9 18 6-6-6-6"})))),r("div",{key:"460ae2803e427ed67625355c88a97b46cf307311",class:"weekdays"},h.map((e=>r("span",{class:"weekday"},e)))),r("div",{key:"6bd0d6b507f75a66b9496a18fba9fe2b8dcc3f7e",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 e,H as s,c as o,h as i,a}from"./index.js";const n=e(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.uiClose=o(this,"uiClose"),this.open=!1,this.onClose=()=>{this.open&&(this.open=!1,this.uiClose.emit())},this.onBackdropClick=t=>{t.target===this.dialogEl&&this.close()}}onOpenChange(t){this.sync(t)}componentDidLoad(){this.sync(this.open)}sync(t){this.dialogEl&&(t&&!this.dialogEl.open?this.dialogEl.showModal():!t&&this.dialogEl.open&&this.dialogEl.close())}async show(){this.open=!0}async close(){this.open=!1}render(){return i(a,{key:"84c982a7870da6b7517f7f989574c41684fd47d1"},i("dialog",{key:"f83e558d1344f2612d719032df6e4d652212ce94",class:"dialog",ref:t=>this.dialogEl=t,onClose:this.onClose,onCancel:this.onClose,onClick:this.onBackdropClick},i("div",{key:"f0506fc17bb608a4b4a33c113e749d9fdb637508",class:"content"},i("slot",{key:"ceab792ebd46acefe430467fb9b6c260e658b7bc"}))))}static get watchers(){return{open:[{onOpenChange:0}]}}static get style(){return'.dialog{padding:0;border:none;background:transparent;max-width:32rem;width:calc(100% - 2rem);color:var(--ui-foreground)}.dialog::backdrop{background:var(--ui-overlay);backdrop-filter:blur(4px)}.dialog[open]{animation:ui-dialog-in var(--ui-duration) var(--ui-ease)}.content{border:1px solid var(--ui-border);background:var(--ui-panel-strong);box-shadow:var(--ui-shadow-lg);backdrop-filter:blur(22px) saturate(140%);border-radius:var(--ui-radius-xl);padding:1.5rem;font-family:var(--ui-font-sans)}::slotted([slot="title"]){font-size:1.125rem;font-weight:600}::slotted([slot="description"]){color:var(--ui-text-muted);font-size:0.875rem}@keyframes ui-dialog-in{from{opacity:0;transform:scale(0.96) translateY(6px)}to{opacity:1;transform:scale(1) translateY(0)}}'}},[257,"ui-dialog",{open:[1540],show:[64],close:[64]},void 0,{open:[{onOpenChange:0}]}]);function r(){"undefined"!=typeof customElements&&["ui-dialog"].forEach((e=>{"ui-dialog"===e&&(customElements.get(t(e))||customElements.define(t(e),n))}))}r();const d=n,c=r;export{d as UiDialog,c as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as e,H as r,c as i,h as
|
|
1
|
+
import{t,p as e,H as r,c as i,h as a,a as o}from"./index.js";const s=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 a(o,{key:"54cb020ae5aa52d797edea5e2fe52c176255a6db"},a("dialog",{key:"20ffadd987ef28b2f5a0907258e325a6aa12eead",class:"drawer side-"+this.side,ref:t=>this.dialogEl=t,onClose:this.onClose,onCancel:this.onClose,onClick:this.onBackdropClick},a("div",{key:"a2acad5175956ee2033fec822c7448ec290976fc",class:"content"},a("slot",{key:"0aa72c14305d3766a4b860ebfd69d5d74825b8a2"}))))}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),s))}))}n();const d=s,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:"f4da8e0539fe502d384b1a1f423d6ade545db2b7"},o("button",{key:"7c21a87c78f86be58837d1aa3c3936f23a94b875",type:"button",class:"item",role:"menuitem",disabled:this.disabled,onClick:this.onClick},o("slot",{key:"dba824914003737f6f00380d5c0b20151bf4ac98"})))}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 as e,p as t,H as i,c as s,h as n,a as o}from"./index.js";import{a,c as r,o as c,f as d,s as h}from"./p-DDtwbwIl.js";const l=t(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiOpenChange=s(this,"uiOpenChange"),this.open=!1,this.placement="bottom",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)}}onOpenChange(e){e?(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(e){this.open!==e&&(this.open=e,this.uiOpenChange.emit(e))}start(){this.triggerEl&&this.floatingEl&&(this.stop(),this.cleanup=a(this.triggerEl,this.floatingEl,(()=>{this.triggerEl&&this.floatingEl&&r(this.triggerEl,this.floatingEl,{placement:this.placement,middleware:[c(8),d(),h({padding:8})]}).then((({x:e,y:t})=>{Object.assign(this.floatingEl.style,{left:e+"px",top:t+"px"})}))})))}stop(){this.cleanup?.(),this.cleanup=void 0}render(){return n(o,{key:"dba2609a1d3e10b1c4c51dc9e4d0679f85a3ac2f"},n("span",{key:"8d031050b223a1a36e4cf6397f2c2643ec6ba24e",class:"trigger",ref:e=>this.triggerEl=e,onClick:this.onTriggerClick},n("slot",{key:"ce5c02c8237a2fdeb20b24cbb314ea4759644250",name:"trigger"})),n("div",{key:"1d30dd7ec7a9d5df68bb4e3755437a10e4eaac31",class:{menu:!0,"is-open":this.open},role:"menu",ref:e=>this.floatingEl=e},n("slot",{key:"a79af6f26779ade4b263c8ae602f2ec5b585a0e3"})))}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((t=>{"ui-dropdown-menu"===t&&(customElements.get(e(t))||customElements.define(e(t),l))}))}u();const p=l,m=u;export{p as UiDropdownMenu,m as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
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:"
|
|
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:"39a0e70cee489fd42753b1ce7a8c6fea25915bbb"},s("div",{key:"b20f08499de84d3af305d6ce6f74a1c880a05dfe",class:"field"},this.label&&s("label",{key:"88a56e87813dcbc42fb087e9ba3472a98cbb7ad9",class:"label",htmlFor:this.fieldId},this.label,this.required&&s("span",{key:"7b5143e178547005dc7e2559c0c28a23f105c2a3",class:"required","aria-hidden":"true"}," *")),s("slot",{key:"71f80cc67afb75615e058d42fab0db72e13cc89f"}),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,c=o;export{l as UiField,c as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as i,H as t,c as s,h as
|
|
1
|
+
import{t as e,p as i,H as t,c as s,h as a,a as r}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 a(r,{key:"a8ca0fb9e4fbbfdba11a8f290124af65a0480093"},a("button",{key:"fd077d08e014e28b1f2411bb09a7d8a49afd7ceb",type:"button",class:{dropzone:!0,dragging:this.dragging},onClick:this.openPicker,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDrop:this.onDrop},a("svg",{key:"2d68e2377435eeb88645a887091c0b6c2d707c5c",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"},a("path",{key:"677380bbdb141a320a97d1163c5410312b003ed4",d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),a("polyline",{key:"42deea2aa62b6908fdd0e45ec64e9cabcf225da6",points:"17 8 12 3 7 8"}),a("line",{key:"12a28663905914b21b4c355bc96064d8e9ae4045",x1:"12",y1:"3",x2:"12",y2:"15"})),a("span",{key:"77bedaa863521eb1960fedd51b82e453606fe3e5",class:"label"},this.label),this.accept?a("span",{class:"hint"},this.accept):null),a("input",{key:"9facb4fee3805f4c0a9286e5bed67eae1b8e799b",type:"file",hidden:!0,accept:this.accept,multiple:this.multiple,ref:e=>this.inputEl=e,onChange:this.onInputChange}),this.files.length>0?a("ul",{class:"files"},this.files.map((e=>a("li",{class:"file"},a("span",{class:"file-name"},e.name),a("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}
|