@andespindola/ui-core 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{floating-ui.dom-BPemvNRD.js → floating-ui.dom-BZk7Blsu.js} +93 -0
- package/dist/cjs/{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 +2 -2
- 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 +153 -0
- 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 +171 -0
- 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 +3 -3
- package/dist/cjs/ui-field.cjs.entry.js +2 -2
- package/dist/cjs/ui-file-upload.cjs.entry.js +57 -0
- 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 +17 -0
- package/dist/cjs/ui-pagination.cjs.entry.js +3 -3
- package/dist/cjs/ui-popover.cjs.entry.js +3 -3
- package/dist/cjs/ui-progress-circular.cjs.entry.js +44 -0
- 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 +45 -0
- 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 +2 -2
- 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 +25 -0
- 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 +3 -3
- package/dist/cjs/uikit.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +11 -0
- package/dist/collection/components/ui-accordion/ui-accordion.js +1 -1
- package/dist/collection/components/ui-accordion-item/ui-accordion-item.js +1 -1
- package/dist/collection/components/ui-avatar/ui-avatar.js +1 -1
- package/dist/collection/components/ui-avatar-group/ui-avatar-group.js +1 -1
- package/dist/collection/components/ui-breadcrumb/ui-breadcrumb.js +1 -1
- package/dist/collection/components/ui-breadcrumb-item/ui-breadcrumb-item.js +1 -1
- package/dist/collection/components/ui-button/ui-button.css +2 -0
- package/dist/collection/components/ui-card/ui-card.js +1 -1
- package/dist/collection/components/ui-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-combobox/ui-combobox.css +93 -0
- package/dist/collection/components/ui-combobox/ui-combobox.js +248 -0
- 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.css +176 -0
- package/dist/collection/components/ui-date-picker/ui-date-picker.js +243 -0
- package/dist/collection/components/ui-dialog/ui-dialog.js +1 -1
- package/dist/collection/components/ui-drawer/ui-drawer.js +1 -1
- package/dist/collection/components/ui-dropdown-item/ui-dropdown-item.js +1 -1
- package/dist/collection/components/ui-dropdown-menu/ui-dropdown-menu.js +1 -1
- package/dist/collection/components/ui-field/ui-field.js +1 -1
- package/dist/collection/components/ui-file-upload/ui-file-upload.css +79 -0
- package/dist/collection/components/ui-file-upload/ui-file-upload.js +151 -0
- package/dist/collection/components/ui-grid/ui-grid.js +1 -1
- package/dist/collection/components/ui-input/ui-input.js +1 -1
- package/dist/collection/components/ui-label/ui-label.js +1 -1
- package/dist/collection/components/ui-navbar/ui-navbar.css +36 -0
- package/dist/collection/components/ui-navbar/ui-navbar.js +18 -0
- package/dist/collection/components/ui-pagination/ui-pagination.js +2 -2
- package/dist/collection/components/ui-popover/ui-popover.js +1 -1
- package/dist/collection/components/ui-progress/ui-progress.js +1 -1
- package/dist/collection/components/ui-progress-circular/ui-progress-circular.css +46 -0
- package/dist/collection/components/ui-progress-circular/ui-progress-circular.js +171 -0
- package/dist/collection/components/ui-radio-group/ui-radio-group.js +1 -1
- package/dist/collection/components/ui-rating/ui-rating.css +52 -0
- package/dist/collection/components/ui-rating/ui-rating.js +134 -0
- package/dist/collection/components/ui-reveal/ui-reveal.js +1 -1
- package/dist/collection/components/ui-scroll-progress/ui-scroll-progress.js +1 -1
- package/dist/collection/components/ui-section/ui-section.js +1 -1
- package/dist/collection/components/ui-segmented/ui-segmented.js +1 -1
- package/dist/collection/components/ui-select/ui-select.js +1 -1
- package/dist/collection/components/ui-separator/ui-separator.js +1 -1
- package/dist/collection/components/ui-skeleton/ui-skeleton.js +1 -1
- package/dist/collection/components/ui-slider/ui-slider.js +1 -1
- package/dist/collection/components/ui-spinner/ui-spinner.js +1 -1
- package/dist/collection/components/ui-stack/ui-stack.js +1 -1
- package/dist/collection/components/ui-stat/ui-stat.js +1 -1
- package/dist/collection/components/ui-switch/ui-switch.js +1 -1
- package/dist/collection/components/ui-table/ui-table.css +46 -0
- package/dist/collection/components/ui-table/ui-table.js +119 -0
- package/dist/collection/components/ui-tabs/ui-tabs.js +2 -2
- package/dist/collection/components/ui-textarea/ui-textarea.js +1 -1
- package/dist/collection/components/ui-theme-toggle/ui-theme-toggle.js +1 -1
- package/dist/collection/components/ui-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-CgsjJD8o.js → p-DAnXvxY_.js} +1 -1
- package/dist/components/{p-CyBRmmbs.js → p-DDtwbwIl.js} +1 -1
- package/dist/components/{p-BwNtNvTb.js → p-yTNEyxh1.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-combobox.d.ts +11 -0
- package/dist/components/ui-combobox.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/ui-date-picker.js +1 -0
- package/dist/components/ui-dialog.js +1 -1
- package/dist/components/ui-drawer.js +1 -1
- package/dist/components/ui-dropdown-item.js +1 -1
- package/dist/components/ui-dropdown-menu.js +1 -1
- package/dist/components/ui-field.js +1 -1
- package/dist/components/ui-file-upload.d.ts +11 -0
- package/dist/components/ui-file-upload.js +1 -0
- package/dist/components/ui-grid.js +1 -1
- package/dist/components/ui-input.js +1 -1
- package/dist/components/ui-label.js +1 -1
- package/dist/components/ui-loading-overlay.js +1 -1
- package/dist/components/ui-navbar.d.ts +11 -0
- package/dist/components/ui-navbar.js +1 -0
- package/dist/components/ui-pagination.js +1 -1
- package/dist/components/ui-popover.js +1 -1
- package/dist/components/ui-progress-circular.d.ts +11 -0
- package/dist/components/ui-progress-circular.js +1 -0
- package/dist/components/ui-progress.js +1 -1
- package/dist/components/ui-radio-group.js +1 -1
- package/dist/components/ui-rating.d.ts +11 -0
- package/dist/components/ui-rating.js +1 -0
- package/dist/components/ui-reveal.js +1 -1
- package/dist/components/ui-scroll-progress.js +1 -1
- package/dist/components/ui-section.js +1 -1
- package/dist/components/ui-segmented.js +1 -1
- package/dist/components/ui-select.js +1 -1
- package/dist/components/ui-separator.js +1 -1
- package/dist/components/ui-skeleton.js +1 -1
- package/dist/components/ui-slider.js +1 -1
- package/dist/components/ui-spinner.js +1 -1
- package/dist/components/ui-stack.js +1 -1
- package/dist/components/ui-stat.js +1 -1
- package/dist/components/ui-switch.js +1 -1
- package/dist/components/ui-table.d.ts +11 -0
- package/dist/components/ui-table.js +1 -0
- package/dist/components/ui-tabs.js +1 -1
- package/dist/components/ui-textarea.js +1 -1
- package/dist/components/ui-theme-toggle.js +1 -1
- package/dist/components/ui-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/{floating-ui.dom-CyBRmmbs.js → floating-ui.dom-DDtwbwIl.js} +93 -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 +2 -2
- 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 +151 -0
- 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 +169 -0
- 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 +3 -3
- package/dist/esm/ui-field.entry.js +2 -2
- package/dist/esm/ui-file-upload.entry.js +55 -0
- 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 +15 -0
- package/dist/esm/ui-pagination.entry.js +3 -3
- package/dist/esm/ui-popover.entry.js +3 -3
- package/dist/esm/ui-progress-circular.entry.js +42 -0
- 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 +43 -0
- 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 +2 -2
- 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 +23 -0
- 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 +3 -3
- package/dist/esm/uikit.js +3 -3
- package/dist/types/components/ui-carousel/ui-carousel.d.ts +35 -0
- package/dist/types/components/ui-combobox/ui-combobox.d.ts +38 -0
- package/dist/types/components/ui-command/ui-command.d.ts +42 -0
- package/dist/types/components/ui-date-picker/ui-date-picker.d.ts +42 -0
- package/dist/types/components/ui-file-upload/ui-file-upload.d.ts +24 -0
- package/dist/types/components/ui-navbar/ui-navbar.d.ts +3 -0
- package/dist/types/components/ui-progress-circular/ui-progress-circular.d.ts +17 -0
- package/dist/types/components/ui-rating/ui-rating.d.ts +17 -0
- package/dist/types/components/ui-table/ui-table.d.ts +16 -0
- package/dist/types/components/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 +645 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/uikit/{p-635862e6.entry.js → p-02583f33.entry.js} +1 -1
- package/dist/uikit/p-0b8fb2cc.entry.js +1 -0
- package/dist/uikit/{p-595e146f.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-67963692.entry.js → p-24c9885b.entry.js} +1 -1
- package/dist/uikit/p-26c4b4f9.entry.js +1 -0
- package/dist/uikit/p-2716a9e4.entry.js +1 -0
- package/dist/uikit/{p-25637424.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-2601d8b6.entry.js → p-2ce36223.entry.js} +1 -1
- package/dist/uikit/p-30834f9e.entry.js +1 -0
- package/dist/uikit/{p-db07f9c5.entry.js → p-333a3598.entry.js} +1 -1
- package/dist/uikit/{p-86ed6154.entry.js → p-33a19160.entry.js} +1 -1
- package/dist/uikit/{p-a977a0db.entry.js → p-400536f7.entry.js} +1 -1
- package/dist/uikit/{p-81b45a43.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-fd832f52.entry.js → p-56b1bf3f.entry.js} +1 -1
- package/dist/uikit/p-57adf02c.entry.js +1 -0
- package/dist/uikit/{p-cd0ec835.entry.js → p-58035d5a.entry.js} +1 -1
- package/dist/uikit/{p-567f7496.entry.js → p-5ff44eca.entry.js} +1 -1
- package/dist/uikit/{p-3996590f.entry.js → p-66037a7c.entry.js} +1 -1
- package/dist/uikit/p-6d58ff8d.entry.js +1 -0
- package/dist/uikit/p-7a04fd11.entry.js +1 -0
- package/dist/uikit/p-7aeed213.entry.js +1 -0
- package/dist/uikit/p-80236139.entry.js +1 -0
- package/dist/uikit/{p-a92a7b19.entry.js → p-81a37bda.entry.js} +1 -1
- package/dist/uikit/{p-2de05aac.entry.js → p-849347da.entry.js} +1 -1
- package/dist/uikit/p-866a0947.entry.js +1 -0
- package/dist/uikit/{p-74b60a60.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-CyBRmmbs.js → p-DDtwbwIl.js} +1 -1
- package/dist/uikit/{p-95cd976e.entry.js → p-a312d278.entry.js} +1 -1
- package/dist/uikit/{p-12db6a6e.entry.js → p-a4b535ad.entry.js} +1 -1
- package/dist/uikit/{p-94ad46a5.entry.js → p-a8f81996.entry.js} +1 -1
- package/dist/uikit/{p-1d016ea4.entry.js → p-aa0ce28c.entry.js} +1 -1
- package/dist/uikit/{p-979f6178.entry.js → p-aa41b084.entry.js} +1 -1
- package/dist/uikit/p-acce5342.entry.js +1 -0
- package/dist/uikit/p-b232849a.entry.js +1 -0
- package/dist/uikit/{p-dca9f6f9.entry.js → p-bd287e67.entry.js} +1 -1
- package/dist/uikit/p-bf66ce1b.entry.js +1 -0
- package/dist/uikit/{p-6c0e9809.entry.js → p-c0b3f5a3.entry.js} +1 -1
- package/dist/uikit/{p-09895cd0.entry.js → p-c29317aa.entry.js} +1 -1
- package/dist/uikit/{p-faa98928.entry.js → p-d73e789a.entry.js} +1 -1
- package/dist/uikit/p-dc00c84b.entry.js +1 -0
- package/dist/uikit/{p-3fc062a6.entry.js → p-de2bb69c.entry.js} +1 -1
- package/dist/uikit/{p-7f2c2924.entry.js → p-e2e35a6b.entry.js} +1 -1
- package/dist/uikit/{p-a01305a5.entry.js → p-e32fa613.entry.js} +1 -1
- package/dist/uikit/p-e61e7ef1.entry.js +1 -0
- package/dist/uikit/p-e891fec3.entry.js +1 -0
- package/dist/uikit/p-ef6ec7f7.entry.js +1 -0
- 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/uikit/p-0cba0d11.entry.js +0 -1
- package/dist/uikit/p-55a23f91.entry.js +0 -1
- package/dist/uikit/p-7a3d85da.entry.js +0 -1
- package/dist/uikit/p-97d4dbf4.entry.js +0 -1
- package/dist/uikit/p-9a4dc343.entry.js +0 -1
- package/dist/uikit/p-9a9590b9.entry.js +0 -1
- package/dist/uikit/p-DYwlrXg_.js +0 -2
- package/dist/uikit/p-a080f46a.entry.js +0 -1
- package/dist/uikit/p-b2df8437.entry.js +0 -1
- package/dist/uikit/p-c73c1009.entry.js +0 -1
- package/dist/uikit/p-d20452b4.entry.js +0 -1
- package/dist/uikit/p-d7021157.entry.js +0 -1
- package/dist/uikit/p-ddd70374.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e,p as t,H as i,c as a,h as r,a as s}from"./index.js";import{a as o,c as n,o as d,f as c,s as l}from"./p-DDtwbwIl.js";const h=["D","S","T","Q","Q","S","S"],u=t(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiChange=a(this,"uiChange"),this.value="",this.placeholder="Selecione a data",this.open=!1,this.onTriggerClick=e=>{e.stopPropagation(),this.setOpen(!this.open)},this.onDocumentClick=e=>{this.open&&(e.composedPath().includes(this.host)||this.setOpen(!1))},this.onKeydown=e=>{"Escape"===e.key&&this.open&&this.setOpen(!1)},this.prevMonth=e=>{e.stopPropagation(),0===this.viewMonth?(this.viewMonth=11,this.viewYear-=1):this.viewMonth-=1},this.nextMonth=e=>{e.stopPropagation(),11===this.viewMonth?(this.viewMonth=0,this.viewYear+=1):this.viewMonth+=1}}componentWillLoad(){this.syncViewFromValue()}onValueChange(){this.syncViewFromValue()}disconnectedCallback(){this.stop(),document.removeEventListener("click",this.onDocumentClick),document.removeEventListener("keydown",this.onKeydown)}syncViewFromValue(){const e=this.parseValue(this.value)??new Date;this.viewYear=e.getFullYear(),this.viewMonth=e.getMonth()}parseValue(e){if(!e)return null;const t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(!t)return null;const[,i,a,r]=t;return new Date(Number(i),Number(a)-1,Number(r))}toISO(e,t,i){return`${e}-${(t+1+"").padStart(2,"0")}-${(i+"").padStart(2,"0")}`}formatValue(){const e=this.parseValue(this.value);return e?e.toLocaleDateString("pt-BR"):""}monthLabel(){return new Date(this.viewYear,this.viewMonth,1).toLocaleDateString("pt-BR",{month:"long",year:"numeric"})}setOpen(e){this.open!==e&&(this.open=e,e?(this.syncViewFromValue(),requestAnimationFrame((()=>this.start())),document.addEventListener("click",this.onDocumentClick),document.addEventListener("keydown",this.onKeydown)):(this.stop(),document.removeEventListener("click",this.onDocumentClick),document.removeEventListener("keydown",this.onKeydown)))}start(){this.triggerEl&&this.floatingEl&&(this.stop(),this.cleanup=o(this.triggerEl,this.floatingEl,(()=>{this.triggerEl&&this.floatingEl&&n(this.triggerEl,this.floatingEl,{placement:"bottom-start",middleware:[d(6),c(),l({padding:8})]}).then((({x:e,y:t})=>{Object.assign(this.floatingEl.style,{left:e+"px",top:t+"px"})}))})))}stop(){this.cleanup?.(),this.cleanup=void 0}selectDay(e){this.value=this.toISO(this.viewYear,this.viewMonth,e),this.setOpen(!1),this.uiChange.emit(this.value)}buildDays(){const e=new Date(this.viewYear,this.viewMonth,1).getDay(),t=new Date(this.viewYear,this.viewMonth+1,0).getDate();return[...Array.from({length:e},(()=>0)),...Array.from({length:t},((e,t)=>t+1))]}isToday(e){const t=new Date;return e===t.getDate()&&this.viewMonth===t.getMonth()&&this.viewYear===t.getFullYear()}isSelected(e){return this.value===this.toISO(this.viewYear,this.viewMonth,e)}render(){const e=this.formatValue();return r(s,{key:"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 e,H as s,c as o,h 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
|
|
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
|
|
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}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface UiFileUpload extends Components.UiFileUpload, HTMLElement {}
|
|
4
|
+
export const UiFileUpload: {
|
|
5
|
+
prototype: UiFileUpload;
|
|
6
|
+
new (): UiFileUpload;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e,p as i,H as t,c as s,h as 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}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as t,H as s,h as i,a}from"./index.js";const
|
|
1
|
+
import{t as e,p as t,H as s,h as i,a}from"./index.js";const d={xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem"},r=t(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.columns=12,this.gap="md"}render(){return i(a,{key:"ecafabf2b7902db681cd4ce15e8d4f8d8480f0d6"},i("div",{key:"52aac0fe0cea374a7a083c5fb385882c1fd7b2e7",class:"grid",style:{gridTemplateColumns:this.minItemWidth?`repeat(auto-fit, minmax(${this.minItemWidth}, 1fr))`:`repeat(${this.columns}, minmax(0, 1fr))`,gap:d[this.gap]}},i("slot",{key:"8b686a8e53fb33a94def9b6675df0df94dad14a6"})))}static get style(){return":host{display:block}.grid{display:grid;font-family:var(--ui-font-sans)}"}},[257,"ui-grid",{columns:[2],gap:[1],minItemWidth:[1,"min-item-width"]}]);function m(){"undefined"!=typeof customElements&&["ui-grid"].forEach((t=>{"ui-grid"===t&&(customElements.get(e(t))||customElements.define(e(t),r))}))}m();const n=r,f=m;export{n as UiGrid,f as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as i,H as
|
|
1
|
+
import{t as e,p as i,H as t,c as a,h as r,a as s}from"./index.js";const n=i(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiInput=a(this,"uiInput"),this.uiChange=a(this,"uiChange"),this.value="",this.type="text",this.disabled=!1,this.invalid=!1,this.clearable=!1,this.onInput=e=>{const i=e.target;this.value=i.value,this.uiInput.emit(i.value)},this.onChange=e=>{this.uiChange.emit(e.target.value)},this.clear=()=>{this.value="",this.uiInput.emit(""),this.uiChange.emit("")}}render(){const e=this.clearable&&!!this.value&&!this.disabled;return r(s,{key:"e9eb32b17bc234a3e97c570f6a2e0eaabf3763f9"},r("div",{key:"8545c0a5c3a4ac48e11ebe7d9f0bc46738cf967f",class:{field:!0,invalid:this.invalid,disabled:this.disabled}},r("span",{key:"5f2273b9913a6e3c4f2328aedd1c68f5481ffc33",class:"affix"},r("slot",{key:"a6430217baeb4bf8f794c3b3da9d8a5d1f1934ea",name:"prefix"})),r("input",{key:"878396509802ac7fd2e6527fd9ff134280271981",class:"input",type:this.type,value:this.value,name:this.name,placeholder:this.placeholder,disabled:this.disabled,"aria-invalid":this.invalid?"true":null,onInput:this.onInput,onChange:this.onChange}),e&&r("button",{key:"07328458e2c91c87affea1ae462e97c45c2861b7",class:"clear",type:"button","aria-label":"Limpar",onClick:this.clear},r("svg",{key:"604ecae919eb8c115e4fc46d8a3b9ecc2f1f8937",viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"},r("path",{key:"824a4aeff8afcd9a87bb386232d7c541fb9aad5a",d:"M18 6 6 18M6 6l12 12"}))),r("span",{key:"c0c577e12a4f01520286da06512130de943781dc",class:"affix"},r("slot",{key:"5b2f1281359134f2714ede53446cf853b7a2eb61",name:"suffix"}))))}static get style(){return':host{display:block}.field{display:flex;align-items:center;gap:0.5rem;width:100%;height:2.75rem;padding:0 0.875rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius-sm);background:var(--ui-panel);backdrop-filter:blur(22px);transition:all var(--ui-duration) var(--ui-ease);box-sizing:border-box}.field:hover:not(.disabled){border-color:var(--ui-border-strong)}.field:focus-within{border-color:var(--ui-accent);box-shadow:0 0 0 2px var(--ui-ring)}.field.invalid{border-color:var(--ui-danger)}.field.invalid:focus-within{box-shadow:0 0 0 2px color-mix(in srgb, var(--ui-danger) 40%, transparent)}.field.disabled{opacity:0.5;pointer-events:none}.input{flex:1;min-width:0;height:100%;border:none;background:transparent;color:var(--ui-foreground);font-family:var(--ui-font-sans);font-size:0.875rem;outline:none}.input::placeholder{color:var(--ui-text-faint)}.affix{display:inline-flex;align-items:center;color:var(--ui-text-muted)}.affix::slotted(svg),::slotted([slot="prefix"]),::slotted([slot="suffix"]){display:inline-flex;color:var(--ui-text-muted)}.clear{display:inline-flex;align-items:center;justify-content:center;flex:none;width:1.25rem;height:1.25rem;padding:0;border:none;border-radius:var(--ui-radius-full);background:var(--ui-chip);color:var(--ui-text-muted);cursor:pointer;transition:all var(--ui-duration) var(--ui-ease)}.clear:hover{color:var(--ui-foreground);background:var(--ui-panel-strong)}'}},[257,"ui-input",{value:[1025],placeholder:[1],type:[1],disabled:[4],invalid:[4],name:[1],clearable:[4]}]);function o(){"undefined"!=typeof customElements&&["ui-input"].forEach((i=>{"ui-input"===i&&(customElements.get(e(i))||customElements.define(e(i),n))}))}o();const d=n,l=o;export{d as UiInput,l as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as t,H as
|
|
1
|
+
import{t as e,p as t,H as s,h as a,a as l}from"./index.js";const n=t(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return a(l,{key:"213a75753c53932901162e5ddae563d8fae95e7e"},a("label",{key:"12718a028e0e7986e107ebe3c189339e1cbde003",class:"label"},a("slot",{key:"d83412a17a6cf21d5b99fc16e365d67911f4f515"})))}static get style(){return":host{display:inline-block}.label{font-family:var(--ui-font-sans);font-size:0.875rem;font-weight:500;color:var(--ui-foreground)}"}},[257,"ui-label"]);function o(){"undefined"!=typeof customElements&&["ui-label"].forEach((t=>{"ui-label"===t&&(customElements.get(e(t))||customElements.define(e(t),n))}))}o();const c=n,i=o;export{c as UiLabel,i as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as s,H as i,h as t,a as n}from"./index.js";import{d as r}from"./p-
|
|
1
|
+
import{t as e,p as s,H as i,h as t,a as n}from"./index.js";import{d as r}from"./p-yTNEyxh1.js";const o=s(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.visible=!1,this.spinnerSize="md"}render(){return this.visible?t(n,{role:"status","aria-live":"polite"},t("div",{class:"overlay"},t("ui-spinner",{size:this.spinnerSize}),this.label&&t("p",{class:"label"},this.label))):t(n,null)}static get style(){return":host{display:contents}.overlay{position:absolute;inset:0;z-index:40;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.75rem;background:var(--ui-overlay);backdrop-filter:blur(4px);border-radius:inherit;font-family:var(--ui-font-sans)}.label{margin:0;font-size:0.875rem;color:var(--ui-text-soft)}"}},[1,"ui-loading-overlay",{visible:[4],label:[1],spinnerSize:[1,"spinner-size"]}]);function a(){"undefined"!=typeof customElements&&["ui-loading-overlay","ui-spinner"].forEach((s=>{switch(s){case"ui-loading-overlay":customElements.get(e(s))||customElements.define(e(s),o);break;case"ui-spinner":customElements.get(e(s))||r()}}))}a();const l=o,u=a;export{l as UiLoadingOverlay,u as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface UiNavbar extends Components.UiNavbar, HTMLElement {}
|
|
4
|
+
export const UiNavbar: {
|
|
5
|
+
prototype: UiNavbar;
|
|
6
|
+
new (): UiNavbar;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e,p as a,H as t,h as s,a as n}from"./index.js";const r=a(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return s(n,{key:"940a8e9cc97673bb8142fe9be09a5744d6d61a06"},s("nav",{key:"d802871dd15c8ebbf21cbe40bb07a820b60c784a",class:"navbar"},s("div",{key:"ee85458ac62b6de535df4c7a3d258debbb35372e",class:"brand"},s("slot",{key:"f7748f6b9c8d2d8a72e4bae46e6d75689e19ffe2",name:"brand"})),s("div",{key:"60396a2ca70f078373108615989e0c4761d9d30b",class:"center"},s("slot",{key:"f260618d58d6e09fa5847489b1bc679813b29f2f"})),s("div",{key:"2ba5af2e7f45be35f1427249e68356c5445a513f",class:"actions"},s("slot",{key:"5cf983d9fb58a516bd0f70e9ec0cc6b48b6607ef",name:"actions"}))))}static get style(){return":host{display:block}.navbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:0.75rem 1.25rem;background:var(--ui-panel-strong);backdrop-filter:blur(22px);border-bottom:1px solid var(--ui-border);font-family:var(--ui-font-sans);color:var(--ui-text-soft)}.brand{display:flex;align-items:center;gap:0.5rem;font-weight:600;color:var(--ui-foreground)}.center{display:flex;align-items:center;gap:1rem}.actions{display:flex;align-items:center;gap:0.75rem}"}},[257,"ui-navbar"]);function c(){"undefined"!=typeof customElements&&["ui-navbar"].forEach((a=>{"ui-navbar"===a&&(customElements.get(e(a))||customElements.define(e(a),r))}))}c();const d=r,b=c;export{d as UiNavbar,b as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as
|
|
1
|
+
import{t as a,p as t,H as i,c as e,h as n,a as s}from"./index.js";const r=t(class extends i{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.uiChange=e(this,"uiChange"),this.total=1,this.current=1,this.siblings=1,this.clamp=a=>Math.min(Math.max(a,1),Math.max(this.total,1)),this.go=a=>{const t=this.clamp(a);t!==this.current&&(this.current=t,this.uiChange.emit(t))},this.buildRange=()=>{const a=Math.max(this.total,1),t=this.clamp(this.current),i=Math.max(this.siblings,0),e=Math.max(t-i,1),n=Math.min(t+i,a),s=new Set([1,a]);for(let a=e;a<=n;a+=1)s.add(a);const r=Array.from(s).filter((t=>t>=1&&t<=a)).sort(((a,t)=>a-t)),o=[];let l=0;for(const a of r)l&&a-l>1&&o.push("..."),o.push(a),l=a;return o}}render(){const a=Math.max(this.total,1),t=this.clamp(this.current),i=this.buildRange();return n(s,{key:"58d36fd4a14897c7a01573b6d626e4b6282fbeda"},n("nav",{key:"80f0b2a4dceba2aea9d6e957a694aaa82eb86823",class:"pagination",role:"navigation","aria-label":"Paginação"},n("button",{key:"9d102598d2216b0ddee599ba622287a62cd67598",class:"page nav",type:"button","aria-label":"Página anterior",disabled:t<=1,onClick:()=>this.go(t-1)},"‹"),i.map(((a,i)=>{if("..."===a)return n("span",{key:"ellipsis-"+i,class:"ellipsis","aria-hidden":"true"},"…");const e=a===t;return n("button",{key:a,class:{page:!0,active:e},type:"button","aria-label":"Página "+a,"aria-current":e?"page":void 0,onClick:()=>this.go(a)},a)})),n("button",{key:"8aa783a48a5ee13b6af2ad2e7b9e05d99f67df79",class:"page nav",type:"button","aria-label":"Próxima página",disabled:t>=a,onClick:()=>this.go(t+1)},"›")))}static get style(){return":host{display:inline-block}.pagination{display:inline-flex;align-items:center;gap:0.25rem;font-family:var(--ui-font-sans)}.page{display:inline-flex;align-items:center;justify-content:center;min-width:2.25rem;height:2.25rem;padding:0 0.5rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius-sm);background:transparent;color:var(--ui-foreground);font-family:var(--ui-font-sans);font-size:0.875rem;cursor:pointer;outline:none;transition:all var(--ui-duration) var(--ui-ease)}.page:hover{border-color:var(--ui-border-strong);background:var(--ui-chip)}.page:focus-visible{box-shadow:0 0 0 2px var(--ui-ring)}.page:disabled{pointer-events:none;opacity:0.5}.page.active{background:var(--ui-accent);color:var(--ui-accent-contrast);border-color:var(--ui-accent);box-shadow:var(--ui-shadow-sm)}.ellipsis{display:inline-flex;align-items:center;justify-content:center;min-width:2.25rem;height:2.25rem;color:var(--ui-text-faint);font-size:0.875rem}"}},[1,"ui-pagination",{total:[2],current:[1538],siblings:[2]}]);function o(){"undefined"!=typeof customElements&&["ui-pagination"].forEach((t=>{"ui-pagination"===t&&(customElements.get(a(t))||customElements.define(a(t),r))}))}o();const l=r,c=o;export{l as UiPagination,c as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as
|
|
1
|
+
import{t,p as i,H as s,c as e,h as a,a as o}from"./index.js";import{a as n,c as r,o as c,f as h,s as d}from"./p-DDtwbwIl.js";const p=i(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.uiOpenChange=e(this,"uiOpenChange"),this.open=!1,this.placement="bottom",this.onTriggerClick=t=>{t.stopPropagation(),this.setOpen(!this.open)},this.onDocumentClick=t=>{this.open&&(t.composedPath().includes(this.host)||this.setOpen(!1))},this.onKeydown=t=>{"Escape"===t.key&&this.open&&this.setOpen(!1)}}onOpenChange(t){t?(requestAnimationFrame((()=>this.start())),document.addEventListener("click",this.onDocumentClick),document.addEventListener("keydown",this.onKeydown)):(this.stop(),document.removeEventListener("click",this.onDocumentClick),document.removeEventListener("keydown",this.onKeydown))}disconnectedCallback(){this.stop(),document.removeEventListener("click",this.onDocumentClick),document.removeEventListener("keydown",this.onKeydown)}async show(){this.setOpen(!0)}async close(){this.setOpen(!1)}setOpen(t){this.open!==t&&(this.open=t,this.uiOpenChange.emit(t))}start(){this.triggerEl&&this.floatingEl&&(this.stop(),this.cleanup=n(this.triggerEl,this.floatingEl,(()=>{this.triggerEl&&this.floatingEl&&r(this.triggerEl,this.floatingEl,{placement:this.placement,middleware:[c(8),h(),d({padding:8})]}).then((({x:t,y:i})=>{Object.assign(this.floatingEl.style,{left:t+"px",top:i+"px"})}))})))}stop(){this.cleanup?.(),this.cleanup=void 0}render(){return a(o,{key:"965392d6028b26b71bd908d277a5817fee2216c9"},a("span",{key:"09a9ce8d7aa698fe4d29f0950846cae6584563d9",class:"trigger",ref:t=>this.triggerEl=t,onClick:this.onTriggerClick},a("slot",{key:"5c0caa0a3a783cd4046e5b52ff4796053a645298",name:"trigger"})),a("div",{key:"096cf2835c48662d2e159afb6c05208adcd4547c",class:{panel:!0,"is-open":this.open},ref:t=>this.floatingEl=t},a("slot",{key:"661584c0d9519b94a4d16cd3477b84026b6add21"})))}get host(){return this}static get watchers(){return{open:[{onOpenChange:0}]}}static get style(){return":host{display:inline-block}.trigger{display:inline-flex}.panel{position:fixed;top:0;left:0;z-index:50;width:18rem;max-width:calc(100vw - 1rem);padding:1rem;font-family:var(--ui-font-sans);color:var(--ui-foreground);border:1px solid var(--ui-border);background:var(--ui-panel-strong);box-shadow:var(--ui-shadow-lg);backdrop-filter:blur(22px);border-radius:var(--ui-radius);visibility:hidden;opacity:0;transform:scale(0.96);transition:opacity var(--ui-duration) var(--ui-ease), transform var(--ui-duration) var(--ui-ease)}.panel.is-open{visibility:visible;opacity:1;transform:scale(1)}"}},[257,"ui-popover",{open:[1540],placement:[1],show:[64],close:[64]},void 0,{open:[{onOpenChange:0}]}]);function l(){"undefined"!=typeof customElements&&["ui-popover"].forEach((i=>{"ui-popover"===i&&(customElements.get(t(i))||customElements.define(t(i),p))}))}l();const u=p,m=l;export{u as UiPopover,m as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface UiProgressCircular extends Components.UiProgressCircular, HTMLElement {}
|
|
4
|
+
export const UiProgressCircular: {
|
|
5
|
+
prototype: UiProgressCircular;
|
|
6
|
+
new (): UiProgressCircular;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t,p as e,H as i,h as s,a as r}from"./index.js";const a=e(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.value=null,this.max=100,this.size="3rem",this.strokeWidth=4,this.indeterminate=!1,this.showValue=!1}get isIndeterminate(){return this.indeterminate||null===this.value}get percent(){return null===this.value||this.max<=0?0:Math.min(Math.max(this.value,0),this.max)/this.max}render(){const t=!this.isIndeterminate,e=50-this.strokeWidth,i=2*Math.PI*e,a=t?i*(1-this.percent):.75*i;return s(r,{key:"897f7b89a108759cc23a9445c4cc9b86891b2ece",role:"progressbar","aria-valuenow":t?this.value+"":void 0,"aria-valuemin":t?"0":void 0,"aria-valuemax":t?this.max+"":void 0,style:{width:this.size,height:this.size}},s("svg",{key:"ab55aaf976f0d1ffbfc2332c916b740c25ead28f",class:{ring:!0,indeterminate:this.isIndeterminate},width:this.size,height:this.size,viewBox:"0 0 100 100"},s("circle",{key:"c1e43611349b214522f5d4a734f105be9b0735d7",class:"track",cx:"50",cy:"50",r:e+"","stroke-width":this.strokeWidth+""}),s("circle",{key:"6589b238758c3b620a9dad7673ea756a267945f0",class:"indicator",cx:"50",cy:"50",r:e+"","stroke-width":this.strokeWidth+"","stroke-linecap":"round","stroke-dasharray":i+"","stroke-dashoffset":a+""})),this.showValue&&t?s("div",{class:"value"},Math.round(100*this.percent),"%"):null)}static get style(){return":host{display:inline-flex;position:relative;align-items:center;justify-content:center}.ring{display:block}.ring.indeterminate{animation:ui-progress-circular-spin 1s linear infinite;transform-origin:center}.track{fill:none;stroke:var(--ui-chip)}.indicator{fill:none;stroke:var(--ui-accent);transform:rotate(-90deg);transform-origin:center;transition:stroke-dashoffset var(--ui-duration) var(--ui-ease)}.value{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-family:var(--ui-font-sans);font-size:0.8rem;font-weight:600;color:var(--ui-foreground)}@keyframes ui-progress-circular-spin{to{transform:rotate(360deg)}}"}},[1,"ui-progress-circular",{value:[2],max:[2],size:[1],strokeWidth:[2,"stroke-width"],indeterminate:[4],showValue:[4,"show-value"]}]);function n(){"undefined"!=typeof customElements&&["ui-progress-circular"].forEach((e=>{"ui-progress-circular"===e&&(customElements.get(t(e))||customElements.define(t(e),a))}))}n();const o=a,c=n;export{o as UiProgressCircular,c as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as i,p as e,H as r,h as t,a
|
|
1
|
+
import{t as i,p as e,H as r,h as t,a}from"./index.js";const s=e(class extends r{constructor(i){super(),!1!==i&&this.__registerHost(),this.__attachShadow(),this.value=null,this.max=100,this.indeterminate=!1}get isIndeterminate(){return this.indeterminate||null===this.value}get percent(){return null===this.value||this.max<=0?0:Math.min(Math.max(this.value,0),this.max)/this.max*100}render(){const i=!this.isIndeterminate;return t(a,{key:"a7b5aeeca1588edd18fa15429fefdb85590bd078",role:"progressbar","aria-valuenow":i?this.value+"":void 0,"aria-valuemin":i?"0":void 0,"aria-valuemax":i?this.max+"":void 0},t("div",{key:"2996d36f222bafc4501b1dbd7c8cf73e235f056a",class:"track"},t("div",{key:"95ba4a179b5bfae636bdfe7860f7da4966f0a127",class:{indicator:!0,indeterminate:this.isIndeterminate},style:i?{width:this.percent+"%"}:void 0})))}static get style(){return":host{display:block}.track{width:100%;height:0.5rem;border-radius:var(--ui-radius-full);background:var(--ui-chip);border:1px solid var(--ui-border);overflow:hidden;box-sizing:border-box}.indicator{height:100%;min-width:0.5rem;border-radius:var(--ui-radius-full);background:linear-gradient(90deg, var(--ui-accent), var(--ui-accent-strong));box-shadow:0 0 12px color-mix(in srgb, var(--ui-accent) 55%, transparent);transition:width var(--ui-duration) var(--ui-ease)}.indicator.indeterminate{width:40%;min-width:0;animation:ui-progress-slide 1.3s var(--ui-ease) infinite}@keyframes ui-progress-slide{0%{transform:translateX(-110%)}100%{transform:translateX(360%)}}"}},[1,"ui-progress",{value:[2],max:[2],indeterminate:[4]}]);function n(){"undefined"!=typeof customElements&&["ui-progress"].forEach((e=>{"ui-progress"===e&&(customElements.get(i(e))||customElements.define(i(e),s))}))}n();const d=s,o=n;export{d as UiProgress,o as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as i,p as r,H as
|
|
1
|
+
import{t as i,p as r,H as t,c as e,h as a,a as o}from"./index.js";const s=r(class extends t{constructor(i){super(),!1!==i&&this.__registerHost(),this.__attachShadow(),this.uiChange=e(this,"uiChange"),this.options=[],this.disabled=!1,this.select=i=>{this.disabled||i===this.value||(this.value=i,this.uiChange.emit(i))},this.onKeyDown=(i,r)=>{if(this.disabled)return;const t=this.options.length;if(0===t)return;let e=-1;"ArrowDown"===i.key||"ArrowRight"===i.key?e=(r+1)%t:"ArrowUp"!==i.key&&"ArrowLeft"!==i.key||(e=(r-1+t)%t),e>=0&&(i.preventDefault(),this.select(this.options[e].value))}}render(){return a(o,{key:"a9f1842629179cbbf695a9392609b1391437c374"},a("div",{key:"43637af51dcca8b3b77181de48bdca69257c8606",class:"group",role:"radiogroup"},this.options.map(((i,r)=>{const t=i.value===this.value;return a("button",{class:"radio",type:"button",role:"radio","aria-checked":t?"true":"false",tabindex:t||!this.value&&0===r?"0":"-1",disabled:this.disabled,onClick:()=>this.select(i.value),onKeyDown:i=>this.onKeyDown(i,r)},a("span",{class:"indicator"},a("span",{class:"dot"})),a("span",{class:"label"},i.label))}))))}static get style(){return':host{display:block}.group{display:flex;flex-direction:column;gap:0.5rem}.radio{display:inline-flex;align-items:center;gap:0.625rem;padding:0;border:none;background:transparent;color:var(--ui-foreground);font-family:var(--ui-font-sans);font-size:0.875rem;cursor:pointer;outline:none}.radio:disabled{opacity:0.5;pointer-events:none}.indicator{display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;border:1px solid var(--ui-border-strong);border-radius:var(--ui-radius-full);background:var(--ui-panel);transition:all var(--ui-duration) var(--ui-ease)}.radio:focus-visible .indicator{box-shadow:0 0 0 2px var(--ui-background), 0 0 0 4px var(--ui-ring)}.radio[aria-checked="true"] .indicator{border-color:var(--ui-accent)}.dot{width:0.625rem;height:0.625rem;border-radius:var(--ui-radius-full);background:var(--ui-accent);opacity:0;transform:scale(0.4);transition:all var(--ui-duration) var(--ui-ease)}.radio[aria-checked="true"] .dot{opacity:1;transform:scale(1)}.label{line-height:1.25rem}'}},[1,"ui-radio-group",{value:[1025],name:[1],options:[16],disabled:[4]}]);function n(){"undefined"!=typeof customElements&&["ui-radio-group"].forEach((r=>{"ui-radio-group"===r&&(customElements.get(i(r))||customElements.define(i(r),s))}))}n();const d=s,u=n;export{d as UiRadioGroup,u as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface UiRating extends Components.UiRating, HTMLElement {}
|
|
4
|
+
export const UiRating: {
|
|
5
|
+
prototype: UiRating;
|
|
6
|
+
new (): UiRating;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t,p as e,H as r,c as s,h as i,a}from"./index.js";const o=e(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.uiChange=s(this,"uiChange"),this.value=0,this.max=5,this.readonly=!1,this.hoverValue=-1,this.onLeave=()=>{this.hoverValue=-1}}select(t){this.readonly||(this.value=t,this.uiChange.emit(this.value))}onEnter(t){this.readonly||(this.hoverValue=t)}render(){const t=this.hoverValue>0?this.hoverValue:this.value,e=Array.from({length:this.max},((t,e)=>e+1));return i(a,{key:"8425460115d823dbf165a46145e67721fe26160d"},i("div",{key:"efdc85de267af2789a96e3072b819a31886ddcd8",class:"rating",role:"radiogroup","aria-label":"Avaliação",onMouseLeave:this.onLeave},e.map((e=>i("button",{class:{star:!0,filled:e<=t,readonly:this.readonly},type:"button",role:"radio","aria-checked":e===this.value?"true":"false","aria-label":e+" estrelas",onClick:()=>this.select(e),onMouseEnter:()=>this.onEnter(e)},i("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%"},i("path",{d:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"})))))))}static get style(){return":host{display:inline-flex}.rating{display:inline-flex;align-items:center;gap:0.125rem}.star{width:1.5rem;height:1.5rem;padding:0;border:none;background:none;cursor:pointer;color:var(--ui-border-strong);transition:color var(--ui-duration) var(--ui-ease), transform var(--ui-duration) var(--ui-ease)}.star svg{display:block;fill:none;stroke:currentColor;stroke-width:1.5}.star.filled{color:var(--ui-warning)}.star.filled svg{fill:currentColor;stroke:currentColor}.star:not(.readonly):hover{transform:scale(1.15)}.star:focus-visible{outline:none;border-radius:var(--ui-radius);box-shadow:0 0 0 2px var(--ui-ring)}.star.readonly{pointer-events:none;cursor:default}"}},[1,"ui-rating",{value:[1026],max:[2],readonly:[4],hoverValue:[32]}]);function n(){"undefined"!=typeof customElements&&["ui-rating"].forEach((e=>{"ui-rating"===e&&(customElements.get(t(e))||customElements.define(t(e),o))}))}n();const l=o,d=n;export{l as UiRating,d as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as t,H as s,h as i,a}from"./index.js";const
|
|
1
|
+
import{t as e,p as t,H as s,h as i,a as r}from"./index.js";const a=t(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.delay=0,this.visible=!1}connectedCallback(){"undefined"!=typeof IntersectionObserver?(this.observer=new IntersectionObserver((e=>{for(const t of e)if(t.isIntersecting){this.visible=!0,this.observer?.disconnect();break}})),this.observer.observe(this.host)):this.visible=!0}disconnectedCallback(){this.observer?.disconnect()}render(){return i(r,{key:"e4d72fb7d28b5107aeee2dfbce303d726569caa3"},i("div",{key:"4da09ffd02e072562da35831063377b7083def33",class:{reveal:!0,visible:this.visible},style:{transitionDelay:this.delay+"ms"}},i("slot",{key:"9501798c821935d87e6fdf2e595443e251e89192"})))}get host(){return this}static get style(){return":host{display:block}.reveal{opacity:0;transform:translateY(16px);filter:blur(8px);transition:opacity 0.6s var(--ui-ease), transform 0.6s var(--ui-ease), filter 0.6s var(--ui-ease)}.reveal.visible{opacity:1;transform:none;filter:none}"}},[257,"ui-reveal",{delay:[2],visible:[32]}]);function n(){"undefined"!=typeof customElements&&["ui-reveal"].forEach((t=>{"ui-reveal"===t&&(customElements.get(e(t))||customElements.define(e(t),a))}))}n();const o=a,l=n;export{o as UiReveal,l as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as s,H as t,h as r,a as i}from"./index.js";const n=s(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.progress=0,this.onScroll=()=>{if("undefined"==typeof document)return;const e=document.documentElement,s=e.scrollHeight-e.clientHeight;this.progress=s>0?e.scrollTop/s:0}}connectedCallback(){"undefined"!=typeof window&&(window.addEventListener("scroll",this.onScroll,{passive:!0}),this.onScroll())}disconnectedCallback(){"undefined"!=typeof window&&window.removeEventListener("scroll",this.onScroll)}render(){return r(i,{key:"
|
|
1
|
+
import{t as e,p as s,H as t,h as r,a as i}from"./index.js";const n=s(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.progress=0,this.onScroll=()=>{if("undefined"==typeof document)return;const e=document.documentElement,s=e.scrollHeight-e.clientHeight;this.progress=s>0?e.scrollTop/s:0}}connectedCallback(){"undefined"!=typeof window&&(window.addEventListener("scroll",this.onScroll,{passive:!0}),this.onScroll())}disconnectedCallback(){"undefined"!=typeof window&&window.removeEventListener("scroll",this.onScroll)}render(){return r(i,{key:"28ba2f0c5eb50a1fa2a2ef68ad8fb7017447cc5e"},r("div",{key:"546cd39172466bc069eee65930fbf96706105b5c",class:"bar",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(100*this.progress),style:{transform:`scaleX(${this.progress})`}}))}static get style(){return":host{display:block}.bar{position:fixed;top:0;left:0;width:100%;height:2px;transform-origin:left;transform:scaleX(0);background:linear-gradient( 90deg, var(--ui-accent), var(--ui-accent-strong) );z-index:100;transition:transform var(--ui-duration) var(--ui-ease)}"}},[1,"ui-scroll-progress",{progress:[32]}]);function a(){"undefined"!=typeof customElements&&["ui-scroll-progress"].forEach((s=>{"ui-scroll-progress"===s&&(customElements.get(e(s))||customElements.define(e(s),n))}))}a();const o=n,c=a;export{o as UiScrollProgress,c as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as t,H as i,h as r,a as s}from"./index.js";const a=t(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.eyebrow="",this.heading="",this.description=""}render(){return r(s,{key:"
|
|
1
|
+
import{t as e,p as t,H as i,h as r,a as s}from"./index.js";const a=t(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.eyebrow="",this.heading="",this.description=""}render(){return r(s,{key:"f9ca72986e90e560d62a8aae824e46ca054bfc60"},r("section",{key:"2920c329302e4f263ea5f69d94e99f470d13b796"},this.eyebrow&&r("p",{key:"42a40e4eee0f4428669c07ef41f409fbb3050b90",class:"eyebrow"},this.eyebrow),this.heading&&r("h2",{key:"e48b4a964d0afe76a4057e44393136fb85aece0b",class:"heading"},this.heading),this.description&&r("p",{key:"90aa856c92f63324f5cc31fb4e67378eef4150c2",class:"description"},this.description),r("slot",{key:"7629ee2f0e291b5b9614819e82aea2bdc1cc1d8c"})))}static get style(){return":host{display:block;font-family:var(--ui-font-sans)}section{max-width:80rem;margin:0 auto;padding:3.5rem 1.5rem}.eyebrow{display:inline-block;margin:0 0 0.75rem;padding:0.25rem 0.625rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius-full);background:var(--ui-chip);text-transform:uppercase;letter-spacing:0.12em;font-size:0.6875rem;font-weight:600;color:var(--ui-accent)}.heading{margin:0 0 0.75rem;font-size:2.25rem;font-weight:600;letter-spacing:-0.02em;line-height:1.1;color:var(--ui-foreground)}.description{margin:0 0 2rem;max-width:42rem;color:var(--ui-text-muted)}"}},[257,"ui-section",{eyebrow:[1],heading:[1],description:[1]}]);function n(){"undefined"!=typeof customElements&&["ui-section"].forEach((t=>{"ui-section"===t&&(customElements.get(e(t))||customElements.define(e(t),a))}))}n();const o=a,c=n;export{o as UiSection,c as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as t,H as i,c as r,h as s,a as n}from"./index.js";const a=t(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiChange=r(this,"uiChange"),this.items=[],this.value="",this.select=e=>{e!==this.value&&(this.value=e,this.uiChange.emit(e))}}render(){return s(n,{key:"
|
|
1
|
+
import{t as e,p as t,H as i,c as r,h as s,a as n}from"./index.js";const a=t(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiChange=r(this,"uiChange"),this.items=[],this.value="",this.select=e=>{e!==this.value&&(this.value=e,this.uiChange.emit(e))}}render(){return s(n,{key:"c33baee8f155b53bd94170e442b4e2bcc815e19a"},s("div",{key:"daf332aeaff637736164a429c5166a1277c301df",class:"track",role:"radiogroup"},this.items.map((e=>{const t=e.value===this.value;return s("button",{key:e.value,class:{segment:!0,active:t},type:"button",role:"radio","aria-checked":t?"true":"false",onClick:()=>this.select(e.value)},e.label)}))))}static get style(){return":host{display:inline-block}.track{display:inline-flex;align-items:center;gap:0.125rem;padding:0.25rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius-full);background:var(--ui-chip);font-family:var(--ui-font-sans)}.segment{display:inline-flex;align-items:center;justify-content:center;height:2rem;padding:0 0.875rem;border:none;border-radius:var(--ui-radius-full);background:transparent;color:var(--ui-text-muted);font-family:var(--ui-font-sans);font-size:0.8125rem;font-weight:500;cursor:pointer;outline:none;transition:all var(--ui-duration) var(--ui-ease)}.segment:hover{color:var(--ui-foreground)}.segment:focus-visible{box-shadow:0 0 0 2px var(--ui-ring)}.segment.active{background:var(--ui-panel-strong);color:var(--ui-foreground);box-shadow:var(--ui-shadow-sm)}"}},[1,"ui-segmented",{items:[16],value:[1537]}]);function o(){"undefined"!=typeof customElements&&["ui-segmented"].forEach((t=>{"ui-segmented"===t&&(customElements.get(e(t))||customElements.define(e(t),a))}))}o();const u=a,d=o;export{u as UiSegmented,d as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as t,H as s,c as i,h as o,a as r}from"./index.js";const a=t(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiChange=i(this,"uiChange"),this.disabled=!1,this.options=[],this.onChange=e=>{const t=e.target.value;this.value=t,this.uiChange.emit(t)}}render(){return o(r,{key:"
|
|
1
|
+
import{t as e,p as t,H as s,c as i,h as o,a as r}from"./index.js";const a=t(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiChange=i(this,"uiChange"),this.disabled=!1,this.options=[],this.onChange=e=>{const t=e.target.value;this.value=t,this.uiChange.emit(t)}}render(){return o(r,{key:"64c33b02b0515d5c2e3484aef7e3261c1edb5af4"},o("div",{key:"0bbd78b01e44c403636d54930441a6576f2821e0",class:"wrapper"},o("select",{key:"2435c3bf0053fc0f3670fd8aaa0506f2945eca39",class:"select",name:this.name,disabled:this.disabled,onChange:this.onChange},this.placeholder&&o("option",{key:"cfba5ce9961f1960cf1e54e8efb27aaf82eeb2db",value:"",disabled:!0,selected:!(void 0!==this.value&&""!==this.value)},this.placeholder),this.options.map((e=>o("option",{value:e.value,selected:e.value===this.value},e.label)))),o("svg",{key:"0af4fe1625061d35fd3e793f59fdbfc46429eb84",class:"chevron",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},o("polyline",{key:"27787d33345ce50eafa3696c1d17f21768819fcf",points:"6 9 12 15 18 9"}))))}static get style(){return":host{display:block}.wrapper{position:relative;display:block;width:100%}.select{width:100%;height:2.75rem;padding:0 2.5rem 0 1rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius-sm);background:var(--ui-panel);color:var(--ui-foreground);font-family:var(--ui-font-sans);font-size:0.875rem;outline:none;backdrop-filter:blur(22px);transition:all var(--ui-duration) var(--ui-ease);box-sizing:border-box;cursor:pointer;-webkit-appearance:none;appearance:none}.select:hover:not(:disabled){border-color:var(--ui-border-strong)}.select:focus-visible{border-color:var(--ui-accent);box-shadow:0 0 0 2px var(--ui-ring)}.select:disabled{opacity:0.5;pointer-events:none}.chevron{position:absolute;top:50%;right:0.875rem;width:1.125rem;height:1.125rem;color:var(--ui-text-muted);transform:translateY(-50%);pointer-events:none}"}},[1,"ui-select",{value:[1025],disabled:[4],name:[1],options:[16],placeholder:[1]}]);function n(){"undefined"!=typeof customElements&&["ui-select"].forEach((t=>{"ui-select"===t&&(customElements.get(e(t))||customElements.define(e(t),a))}))}n();const c=a,d=n;export{c as UiSelect,d as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as
|
|
1
|
+
import{t,p as o,H as e,h as i,a as s}from"./index.js";const r=o(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.orientation="horizontal"}render(){return i(s,{key:"8ad0a4bc68cdc9e2213c2236d61a7c882297a15f",role:"separator","aria-orientation":this.orientation,class:"orientation-"+this.orientation})}static get style(){return":host{display:block;background:var(--ui-border)}:host(.orientation-horizontal){width:100%;height:1px}:host(.orientation-vertical){display:inline-block;width:1px;height:100%}"}},[1,"ui-separator",{orientation:[513]}]);function a(){"undefined"!=typeof customElements&&["ui-separator"].forEach((o=>{"ui-separator"===o&&(customElements.get(t(o))||customElements.define(t(o),r))}))}a();const n=r,c=a;export{n as UiSeparator,c as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as s,H as t,h as n,a as r}from"./index.js";const i=s(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return n(r,{key:"
|
|
1
|
+
import{t as e,p as s,H as t,h as n,a as r}from"./index.js";const i=s(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return n(r,{key:"6f8614815e2d8fb536225748b0883a0a1b3a34e7"},n("span",{key:"41f6f75b31f55f0c468bdb7566983aca0c20f8c2",class:"skeleton"}))}static get style(){return":host{display:block}.skeleton{display:block;width:100%;height:100%;min-height:1rem;border-radius:var(--ui-radius-sm);background-color:var(--ui-chip);background-image:linear-gradient( 90deg, transparent, color-mix(in srgb, var(--ui-foreground) 12%, transparent), transparent );background-size:200% 100%;background-repeat:no-repeat;animation:ui-skeleton-shimmer 1.5s ease-in-out infinite}@keyframes ui-skeleton-shimmer{0%{background-position:-150% 0}100%{background-position:150% 0}}"}},[1,"ui-skeleton"]);function o(){"undefined"!=typeof customElements&&["ui-skeleton"].forEach((s=>{"ui-skeleton"===s&&(customElements.get(e(s))||customElements.define(e(s),i))}))}o();const a=i,u=o;export{a as UiSkeleton,u as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as r,p as e,H as i,c as s,h as a,a as t}from"./index.js";const n=e(class extends i{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.uiInput=s(this,"uiInput"),this.uiChange=s(this,"uiChange"),this.value=50,this.min=0,this.max=100,this.step=1,this.disabled=!1,this.onInput=r=>{const e=Number(r.target.value);this.value=e,this.uiInput.emit(e)},this.onChange=r=>{this.uiChange.emit(Number(r.target.value))}}render(){return a(t,{key:"
|
|
1
|
+
import{t as r,p as e,H as i,c as s,h as a,a as t}from"./index.js";const n=e(class extends i{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.uiInput=s(this,"uiInput"),this.uiChange=s(this,"uiChange"),this.value=50,this.min=0,this.max=100,this.step=1,this.disabled=!1,this.onInput=r=>{const e=Number(r.target.value);this.value=e,this.uiInput.emit(e)},this.onChange=r=>{this.uiChange.emit(Number(r.target.value))}}render(){return a(t,{key:"c1175e775a1861d332064d8229f16ff46b2e2330"},a("input",{key:"ea65fc85d9f7c034560de24ed0df42340ee2509a",class:"slider",type:"range",min:this.min,max:this.max,step:this.step,value:this.value,disabled:this.disabled,onInput:this.onInput,onChange:this.onChange}))}static get style(){return":host{display:block}.slider{width:100%;height:1.25rem;margin:0;background:transparent;cursor:pointer;outline:none;-webkit-appearance:none;appearance:none}.slider:disabled{opacity:0.5;pointer-events:none}.slider::-webkit-slider-runnable-track{height:0.375rem;border-radius:var(--ui-radius-full);background:var(--ui-chip)}.slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:1.125rem;height:1.125rem;margin-top:-0.375rem;border-radius:var(--ui-radius-full);background:var(--ui-accent);box-shadow:var(--ui-shadow-sm);transition:transform var(--ui-duration) var(--ui-ease)}.slider::-webkit-slider-thumb:hover{transform:scale(1.1)}.slider:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 2px var(--ui-background), 0 0 0 4px var(--ui-ring)}.slider::-moz-range-track{height:0.375rem;border-radius:var(--ui-radius-full);background:var(--ui-chip)}.slider::-moz-range-progress{height:0.375rem;border-radius:var(--ui-radius-full);background:var(--ui-accent)}.slider::-moz-range-thumb{width:1.125rem;height:1.125rem;border:none;border-radius:var(--ui-radius-full);background:var(--ui-accent);box-shadow:var(--ui-shadow-sm);transition:transform var(--ui-duration) var(--ui-ease)}.slider::-moz-range-thumb:hover{transform:scale(1.1)}.slider:focus-visible::-moz-range-thumb{box-shadow:0 0 0 2px var(--ui-background), 0 0 0 4px var(--ui-ring)}"}},[1,"ui-slider",{value:[1026],min:[2],max:[2],step:[2],disabled:[4]}]);function u(){"undefined"!=typeof customElements&&["ui-slider"].forEach((e=>{"ui-slider"===e&&(customElements.get(r(e))||customElements.define(r(e),n))}))}u();const d=n,o=u;export{d as UiSlider,o as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{U as o,d as s}from"./p-
|
|
1
|
+
import{U as o,d as s}from"./p-yTNEyxh1.js";const p=o,r=s;export{p as UiSpinner,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as e,H as s,h as
|
|
1
|
+
import{t,p as e,H as s,h as r,a}from"./index.js";const n={xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem"},c={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"},i={start:"flex-start",center:"center",end:"flex-end",between:"space-between"},l=e(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.direction="vertical",this.gap="md",this.align="stretch",this.justify="start",this.wrap=!1}render(){return r(a,{key:"27299e680537c9b2cc57c2922f28ec01f2ff12f8"},r("div",{key:"8201e2dadf2462e2f48113a6b4bf7f57b55328b2",class:"stack",style:{flexDirection:"horizontal"===this.direction?"row":"column",gap:n[this.gap],alignItems:c[this.align],justifyContent:i[this.justify],flexWrap:this.wrap?"wrap":"nowrap"}},r("slot",{key:"b2e1715ca077e101ba2519662b4365b6e2c52db4"})))}static get style(){return":host{display:block}.stack{display:flex;font-family:var(--ui-font-sans)}"}},[257,"ui-stack",{direction:[1],gap:[1],align:[1],justify:[1],wrap:[4]}]);function f(){"undefined"!=typeof customElements&&["ui-stack"].forEach((e=>{"ui-stack"===e&&(customElements.get(t(e))||customElements.define(t(e),l))}))}f();const o=l,m=f;export{o as UiStack,m as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as a,H as r,h as t,a as i}from"./index.js";const
|
|
1
|
+
import{t as e,p as a,H as r,h as t,a as i}from"./index.js";const d=a(class extends r{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.trend="neutral"}renderArrow(){return"down"===this.trend?t("svg",{width:"10",height:"10",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true"},t("path",{d:"M6 11 1 4h10z"})):"up"===this.trend?t("svg",{width:"10",height:"10",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true"},t("path",{d:"M6 1 11 8H1z"})):null}render(){return t(i,{key:"bb31e4f164bd4e3b2d20b9639b4271358fb4a7b9"},t("div",{key:"f025dd01a43bde3377053710e752501dfe4a7960",class:"card"},t("p",{key:"6c56a97d9bdf6cad4929bea1700cbccb0dafdb15",class:"label"},this.label),t("div",{key:"9cb668b141f0db11700d58254821771ff0a6cdbf",class:"value-row"},t("span",{key:"2cd39bc3703da766aa7bc0daafb078d0670376b7",class:"value"},this.value),this.delta&&t("span",{key:"95ed79c13f055ffe672b3c3c6f7430c70639b096",class:{delta:!0,["trend-"+this.trend]:!0}},this.renderArrow(),this.delta)),t("div",{key:"13c159ddb3b5aa850c543cba6bc8a507f7986e84",class:"extra"},t("slot",{key:"bd58d52d17e408952564f5984216d73ccb7c90a5"}))))}static get style(){return":host{display:block}.card{display:flex;flex-direction:column;gap:0.5rem;padding:1.25rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius-lg);background:var(--ui-panel);backdrop-filter:blur(22px);font-family:var(--ui-font-sans)}.label{margin:0;text-transform:uppercase;letter-spacing:0.08em;font-size:0.7rem;font-weight:500;color:var(--ui-text-faint)}.value-row{display:flex;align-items:baseline;gap:0.625rem}.value{font-size:1.875rem;font-weight:600;line-height:1.1;color:var(--ui-foreground)}.delta{display:inline-flex;align-items:center;gap:0.25rem;padding:0.125rem 0.5rem;border-radius:var(--ui-radius-full);font-size:0.75rem;font-weight:600}.delta svg{display:block}.trend-up{color:var(--ui-success);background:color-mix(in srgb, var(--ui-success) 14%, transparent)}.trend-down{color:var(--ui-danger);background:color-mix(in srgb, var(--ui-danger) 14%, transparent)}.trend-neutral{color:var(--ui-text-muted);background:var(--ui-chip)}.extra{font-size:0.8125rem;color:var(--ui-text-muted)}"}},[257,"ui-stat",{label:[1],value:[1],delta:[1],trend:[1]}]);function s(){"undefined"!=typeof customElements&&["ui-stat"].forEach((a=>{"ui-stat"===a&&(customElements.get(e(a))||customElements.define(e(a),d))}))}s();const n=d,l=s;export{n as UiStat,l as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as i,H as e,c as s,h as
|
|
1
|
+
import{t,p as i,H as e,c as s,h as a,a as r}from"./index.js";const o=i(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.uiChange=s(this,"uiChange"),this.checked=!1,this.disabled=!1,this.toggle=()=>{this.disabled||(this.checked=!this.checked,this.uiChange.emit(this.checked))},this.onKeyDown=t=>{" "!==t.key&&"Enter"!==t.key||(t.preventDefault(),this.toggle())}}render(){return a(r,{key:"9b6a322fd7129b403e8ef9b8dcfa686904af0a3f"},a("button",{key:"263e42e0bdc147a3fe8b99f6d153ef8a38165b57",class:"switch",type:"button",role:"switch","aria-checked":this.checked?"true":"false",disabled:this.disabled,onClick:this.toggle,onKeyDown:this.onKeyDown},a("span",{key:"d8c2917fa03aa147e86e9ba812bd2bf791bc3d5e",class:"thumb"})))}static get style(){return':host{display:inline-flex}.switch{position:relative;width:2.75rem;height:1.5rem;padding:0;border:1px solid var(--ui-border);border-radius:var(--ui-radius-full);background:var(--ui-chip);cursor:pointer;outline:none;transition:background var(--ui-duration) var(--ui-ease)}.switch:focus-visible{box-shadow:0 0 0 2px var(--ui-background), 0 0 0 4px var(--ui-ring)}.switch[aria-checked="true"]{background:var(--ui-accent);border-color:var(--ui-accent)}.switch:disabled{opacity:0.5;pointer-events:none}.thumb{position:absolute;top:50%;left:0.125rem;width:1.25rem;height:1.25rem;border-radius:9999px;background:var(--ui-on-status);box-shadow:var(--ui-shadow-sm);transform:translateY(-50%);transition:transform var(--ui-duration) var(--ui-ease)}.switch[aria-checked="true"] .thumb{transform:translate(1.25rem, -50%)}'}},[1,"ui-switch",{checked:[1540],disabled:[4]}]);function n(){"undefined"!=typeof customElements&&["ui-switch"].forEach((i=>{"ui-switch"===i&&(customElements.get(t(i))||customElements.define(t(i),o))}))}n();const c=o,u=n;export{c as UiSwitch,u as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface UiTable extends Components.UiTable, HTMLElement {}
|
|
4
|
+
export const UiTable: {
|
|
5
|
+
prototype: UiTable;
|
|
6
|
+
new (): UiTable;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e,p as t,H as r,h as a,a as s}from"./index.js";const o=t(class extends r{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.columns=[],this.rows=[],this.striped=!1,this.hoverable=!0}render(){return a(s,{key:"aa3d75a6092f69ee274a7148e35ab54b83d6c356"},a("div",{key:"4953b1c3e26eeaa1250185c559328e037a634985",class:"wrapper"},a("table",{key:"2029b63484460261f8f46ae5d1a669019f3103f8",class:{table:!0,striped:this.striped,hoverable:this.hoverable}},a("thead",{key:"8a963402f6e7204c84e54cc07c2458ac4994c75c"},a("tr",{key:"764743907d21a69235f1c55db12372348c876cee"},this.columns.map((e=>a("th",{key:e.key,style:{textAlign:e.align??"left"}},e.label))))),a("tbody",{key:"60e287ad516e4280ce4f0878669325e9be977461"},this.rows.map(((e,t)=>a("tr",{key:t},this.columns.map((t=>a("td",{key:t.key,style:{textAlign:t.align??"left"}},(e[t.key]??"")+""))))))))))}static get style(){return":host{display:block}.wrapper{overflow:hidden;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-lg);font-family:var(--ui-font-sans)}.table{width:100%;border-collapse:collapse}.table thead th{padding:0.75rem 1rem;font-size:0.7rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;color:var(--ui-text-faint);background:var(--ui-chip)}.table tbody td{padding:0.75rem 1rem;font-size:0.875rem;color:var(--ui-text-soft)}.table tbody tr{border-top:1px solid var(--ui-border)}.table.striped tbody tr:nth-child(even){background:color-mix(in srgb, var(--ui-chip) 50%, transparent)}.table.hoverable tbody tr:hover{background:var(--ui-chip)}"}},[1,"ui-table",{columns:[16],rows:[16],striped:[4],hoverable:[4]}]);function i(){"undefined"!=typeof customElements&&["ui-table"].forEach((t=>{"ui-table"===t&&(customElements.get(e(t))||customElements.define(e(t),o))}))}i();const d=o,l=i;export{d as UiTable,l as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as
|
|
1
|
+
import{t as e,p as t,H as a,c as r,h as i,a as s}from"./index.js";const o=t(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiChange=r(this,"uiChange"),this.value="",this.items=[],this.select=e=>{e!==this.value&&(this.value=e,this.uiChange.emit(e))}}render(){return i(s,{key:"41f5832ef24470811c6c1d64958bc3c2cb56bc2b"},i("div",{key:"fed127dfc1cea76ff1bd2a1ce4b6091244c89f4e",class:"tablist",role:"tablist"},this.items.map((e=>{const t=e.value===this.value;return i("button",{key:e.value,class:{tab:!0,active:t},type:"button",role:"tab","aria-selected":t?"true":"false",onClick:()=>this.select(e.value)},e.label)}))),i("div",{key:"533f8c0dafcb55782d13c42d864cb1eb508b4d20",class:"panel",role:"tabpanel"},i("slot",{key:"dd75f808647deeb70991a366dd91d9ac65f78268",name:this.value})))}static get style(){return":host{display:block;font-family:var(--ui-font-sans)}.tablist{display:inline-flex;gap:0.25rem;padding:0.25rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius-full);background:var(--ui-chip)}.tab{appearance:none;border:none;padding:0.375rem 0.875rem;border-radius:var(--ui-radius-full);background:transparent;color:var(--ui-text-muted);font:inherit;font-size:0.875rem;font-weight:500;cursor:pointer;outline:none;transition:background var(--ui-duration) var(--ui-ease), color var(--ui-duration) var(--ui-ease)}.tab:focus-visible{box-shadow:0 0 0 2px var(--ui-background), 0 0 0 4px var(--ui-ring)}.tab:hover:not(.active){color:var(--ui-foreground)}.tab.active{background:var(--ui-panel-strong);color:var(--ui-foreground);box-shadow:var(--ui-shadow-sm)}.panel{margin-top:1.25rem;color:var(--ui-text-soft);font-size:0.9375rem;line-height:1.5}"}},[257,"ui-tabs",{value:[1537],items:[16]}]);function n(){"undefined"!=typeof customElements&&["ui-tabs"].forEach((t=>{"ui-tabs"===t&&(customElements.get(e(t))||customElements.define(e(t),o))}))}n();const u=o,d=n;export{u as UiTabs,d as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as t,H as
|
|
1
|
+
import{t as e,p as t,H as i,c as a,h as r,a as s}from"./index.js";const o=t(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiInput=a(this,"uiInput"),this.uiChange=a(this,"uiChange"),this.value="",this.disabled=!1,this.invalid=!1,this.rows=4,this.onInput=e=>{const t=e.target;this.value=t.value,this.uiInput.emit(t.value)},this.onChange=e=>{this.uiChange.emit(e.target.value)}}render(){return r(s,{key:"66f45ad55373e76406aebfac1a7b9358757df9cb"},r("textarea",{key:"05343ebf1f04bcef8c39c2e26e07973930a52417",class:{textarea:!0,invalid:this.invalid},name:this.name,rows:this.rows,placeholder:this.placeholder,disabled:this.disabled,"aria-invalid":this.invalid?"true":null,onInput:this.onInput,onChange:this.onChange},this.value))}static get style(){return":host{display:block}.textarea{width:100%;min-height:7rem;padding:0.75rem 1rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius-sm);background:var(--ui-panel);color:var(--ui-foreground);font-family:var(--ui-font-sans);font-size:0.875rem;line-height:1.5;outline:none;backdrop-filter:blur(22px);transition:all var(--ui-duration) var(--ui-ease);box-sizing:border-box;resize:vertical}.textarea::placeholder{color:var(--ui-text-faint)}.textarea:hover:not(:disabled){border-color:var(--ui-border-strong)}.textarea:focus-visible{border-color:var(--ui-accent);box-shadow:0 0 0 2px var(--ui-ring)}.textarea:disabled{opacity:0.5;pointer-events:none}.textarea.invalid{border-color:var(--ui-danger)}.textarea.invalid:focus-visible{box-shadow:0 0 0 2px color-mix(in srgb, var(--ui-danger) 40%, transparent)}"}},[1,"ui-textarea",{value:[1025],placeholder:[1],disabled:[4],invalid:[4],name:[1],rows:[2]}]);function n(){"undefined"!=typeof customElements&&["ui-textarea"].forEach((t=>{"ui-textarea"===t&&(customElements.get(e(t))||customElements.define(e(t),o))}))}n();const d=o,l=n;export{d as UiTextarea,l as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as i,H as t,c as r,h as n,a as o}from"./index.js";const s="ui-theme",a=i(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiThemeChange=r(this,"uiThemeChange"),this.isDark=!1,this.toggle=()=>{if(this.isDark=!this.isDark,"undefined"!=typeof window)try{window.localStorage.setItem(s,this.isDark?"dark":"light")}catch{}this.applyTheme(),this.uiThemeChange.emit(this.isDark?"dark":"light")}}connectedCallback(){this.isDark=this.resolveInitialTheme(),this.applyTheme()}resolveInitialTheme(){if("undefined"==typeof window)return!1;try{const e=window.localStorage.getItem(s);if("dark"===e)return!0;if("light"===e)return!1}catch{}return"function"==typeof window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}applyTheme(){"undefined"!=typeof document&&document.documentElement.classList.toggle("dark",this.isDark)}renderIcon(){return this.isDark?n("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},n("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})):n("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},n("circle",{cx:"12",cy:"12",r:"4"}),n("line",{x1:"12",y1:"2",x2:"12",y2:"4"}),n("line",{x1:"12",y1:"20",x2:"12",y2:"22"}),n("line",{x1:"2",y1:"12",x2:"4",y2:"12"}),n("line",{x1:"20",y1:"12",x2:"22",y2:"12"}),n("line",{x1:"4.93",y1:"4.93",x2:"6.34",y2:"6.34"}),n("line",{x1:"17.66",y1:"17.66",x2:"19.07",y2:"19.07"}),n("line",{x1:"4.93",y1:"19.07",x2:"6.34",y2:"17.66"}),n("line",{x1:"17.66",y1:"6.34",x2:"19.07",y2:"4.93"}))}render(){return n(o,{key:"
|
|
1
|
+
import{t as e,p as i,H as t,c as r,h as n,a as o}from"./index.js";const s="ui-theme",a=i(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.uiThemeChange=r(this,"uiThemeChange"),this.isDark=!1,this.toggle=()=>{if(this.isDark=!this.isDark,"undefined"!=typeof window)try{window.localStorage.setItem(s,this.isDark?"dark":"light")}catch{}this.applyTheme(),this.uiThemeChange.emit(this.isDark?"dark":"light")}}connectedCallback(){this.isDark=this.resolveInitialTheme(),this.applyTheme()}resolveInitialTheme(){if("undefined"==typeof window)return!1;try{const e=window.localStorage.getItem(s);if("dark"===e)return!0;if("light"===e)return!1}catch{}return"function"==typeof window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}applyTheme(){"undefined"!=typeof document&&document.documentElement.classList.toggle("dark",this.isDark)}renderIcon(){return this.isDark?n("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},n("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})):n("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},n("circle",{cx:"12",cy:"12",r:"4"}),n("line",{x1:"12",y1:"2",x2:"12",y2:"4"}),n("line",{x1:"12",y1:"20",x2:"12",y2:"22"}),n("line",{x1:"2",y1:"12",x2:"4",y2:"12"}),n("line",{x1:"20",y1:"12",x2:"22",y2:"12"}),n("line",{x1:"4.93",y1:"4.93",x2:"6.34",y2:"6.34"}),n("line",{x1:"17.66",y1:"17.66",x2:"19.07",y2:"19.07"}),n("line",{x1:"4.93",y1:"19.07",x2:"6.34",y2:"17.66"}),n("line",{x1:"17.66",y1:"6.34",x2:"19.07",y2:"4.93"}))}render(){return n(o,{key:"941b9c3a71cbbf850d292e95e11311ec4e53dcd4"},n("button",{key:"d4db89ef140e4d4f5ec2198d69f3c6645db64853",class:"toggle",type:"button","aria-label":this.isDark?"Ativar tema claro":"Ativar tema escuro","aria-pressed":this.isDark?"true":"false",onClick:this.toggle},this.renderIcon()))}static get style(){return":host{display:inline-flex}.toggle{display:inline-flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;padding:0;border:1px solid var(--ui-border);border-radius:var(--ui-radius-full);background:var(--ui-chip);color:var(--ui-foreground);cursor:pointer;outline:none;transition:background var(--ui-duration) var(--ui-ease), color var(--ui-duration) var(--ui-ease)}.toggle:focus-visible{box-shadow:0 0 0 2px var(--ui-background), 0 0 0 4px var(--ui-ring)}.toggle:hover{color:var(--ui-accent)}"}},[1,"ui-theme-toggle",{isDark:[32]}]);function d(){"undefined"!=typeof customElements&&["ui-theme-toggle"].forEach((i=>{"ui-theme-toggle"===i&&(customElements.get(e(i))||customElements.define(e(i),a))}))}d();const l=a,u=d;export{l as UiThemeToggle,u as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface UiTimelineItem extends Components.UiTimelineItem, HTMLElement {}
|
|
4
|
+
export const UiTimelineItem: {
|
|
5
|
+
prototype: UiTimelineItem;
|
|
6
|
+
new (): UiTimelineItem;
|
|
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 a,h as i,a as r}from"./index.js";const n=t(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.variant="accent"}render(){return i(r,{key:"f45cef5961dfc1237e415ab185f5e1e04c388646"},i("div",{key:"27dd4e89c6d084d7361bdc20c8408c47ca9b72aa",class:"item variant-"+this.variant},i("div",{key:"2a70cc361445ab766dd4631f3388a24d3dfb7895",class:"marker"},i("span",{key:"9802c05ae51394158da1509649b079749be0fab4",class:"dot"}),i("span",{key:"1862e45d49f389704fcd94037c4c1810c2d9f5ac",class:"line"})),i("div",{key:"c1a734416f9beb2628b1c8dbfeb73533a46ec12a",class:"content"},this.time?i("span",{class:"time"},this.time):null,this.heading?i("span",{class:"heading"},this.heading):null,i("div",{key:"2a59b109d86bb574188a0b2a07a663da7cbc37e9",class:"body"},i("slot",{key:"0558d11f1c35aa3fcc50d468007e6767d654cb8f"})))))}static get style(){return":host{display:block}.item{position:relative;display:flex;gap:0.75rem;padding-bottom:1.5rem;font-family:var(--ui-font-sans)}.marker{position:relative;flex:0 0 1.5rem;display:flex;justify-content:center}.dot{position:relative;z-index:1;width:0.75rem;height:0.75rem;margin-top:0.125rem;border-radius:var(--ui-radius-full);background:var(--dot-color, var(--ui-accent));box-shadow:0 0 0 2px var(--ui-background)}.line{position:absolute;top:0.5rem;bottom:-1.5rem;left:50%;width:2px;transform:translateX(-50%);background:var(--ui-border)}:host(:last-child) .line{display:none}.content{display:flex;flex-direction:column;gap:0.25rem;min-width:0}.time{font-size:0.7rem;text-transform:uppercase;letter-spacing:0.08em;color:var(--ui-text-faint)}.heading{font-weight:600;color:var(--ui-foreground)}.body{font-size:0.875rem;color:var(--ui-text-soft)}.variant-accent{--dot-color:var(--ui-accent)}.variant-success{--dot-color:var(--ui-success)}.variant-warning{--dot-color:var(--ui-warning)}.variant-danger{--dot-color:var(--ui-danger)}.variant-muted{--dot-color:var(--ui-text-faint)}"}},[257,"ui-timeline-item",{heading:[1],time:[1],variant:[513]}]);function o(){"undefined"!=typeof customElements&&["ui-timeline-item"].forEach((t=>{"ui-timeline-item"===t&&(customElements.get(e(t))||customElements.define(e(t),n))}))}o();const s=n,c=o;export{s as UiTimelineItem,c as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface UiTimeline extends Components.UiTimeline, HTMLElement {}
|
|
4
|
+
export const UiTimeline: {
|
|
5
|
+
prototype: UiTimeline;
|
|
6
|
+
new (): UiTimeline;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e,p as t,H as s,h as i,a as n}from"./index.js";const c=t(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return i(n,{key:"1d67e561676e216a05e314ffeb14e88e5cd6be7d"},i("div",{key:"50bf6f54546237a55b4589cfe3ed52b20cb0f6cb",class:"timeline"},i("slot",{key:"e7c94095dcf74efaa81d1b1d0fb124e4595609ee"})))}static get style(){return":host{display:block}.timeline{display:flex;flex-direction:column}"}},[257,"ui-timeline"]);function l(){"undefined"!=typeof customElements&&["ui-timeline"].forEach((t=>{"ui-timeline"===t&&(customElements.get(e(t))||customElements.define(e(t),c))}))}l();const o=c,d=l;export{o as UiTimeline,d as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{U as o,d as s}from"./p-
|
|
1
|
+
import{U as o,d as s}from"./p-DAnXvxY_.js";const p=o,r=s;export{p as UiToast,r as defineCustomElement}
|