@andespindola/ui-core 0.3.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/{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 +1 -1
- package/dist/cjs/ui-card.cjs.entry.js +2 -2
- package/dist/cjs/ui-carousel.cjs.entry.js +104 -0
- package/dist/cjs/ui-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/ui-combobox.cjs.entry.js +1 -1
- package/dist/cjs/ui-command.cjs.entry.js +137 -0
- package/dist/cjs/ui-container.cjs.entry.js +2 -2
- package/dist/cjs/ui-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/ui-dialog.cjs.entry.js +2 -2
- package/dist/cjs/ui-drawer.cjs.entry.js +2 -2
- package/dist/cjs/ui-dropdown-item.cjs.entry.js +2 -2
- package/dist/cjs/ui-dropdown-menu.cjs.entry.js +2 -2
- package/dist/cjs/ui-field.cjs.entry.js +2 -2
- package/dist/cjs/ui-file-upload.cjs.entry.js +2 -2
- package/dist/cjs/ui-grid.cjs.entry.js +2 -2
- package/dist/cjs/ui-input.cjs.entry.js +2 -2
- package/dist/cjs/ui-label.cjs.entry.js +2 -2
- package/dist/cjs/ui-loading-overlay.cjs.entry.js +1 -1
- package/dist/cjs/ui-navbar.cjs.entry.js +2 -2
- package/dist/cjs/ui-pagination.cjs.entry.js +3 -3
- package/dist/cjs/ui-popover.cjs.entry.js +2 -2
- package/dist/cjs/ui-progress-circular.cjs.entry.js +2 -2
- package/dist/cjs/ui-progress.cjs.entry.js +2 -2
- package/dist/cjs/ui-radio-group.cjs.entry.js +2 -2
- package/dist/cjs/ui-rating.cjs.entry.js +2 -2
- package/dist/cjs/ui-reveal.cjs.entry.js +2 -2
- package/dist/cjs/ui-scroll-progress.cjs.entry.js +2 -2
- package/dist/cjs/ui-section.cjs.entry.js +2 -2
- package/dist/cjs/ui-segmented.cjs.entry.js +2 -2
- package/dist/cjs/ui-select.cjs.entry.js +2 -2
- package/dist/cjs/ui-separator.cjs.entry.js +2 -2
- package/dist/cjs/ui-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/ui-slider.cjs.entry.js +2 -2
- package/dist/cjs/ui-spinner.cjs.entry.js +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 +2 -2
- package/dist/cjs/ui-tabs.cjs.entry.js +3 -3
- package/dist/cjs/ui-textarea.cjs.entry.js +2 -2
- package/dist/cjs/ui-theme-toggle.cjs.entry.js +2 -2
- package/dist/cjs/ui-timeline-item.cjs.entry.js +19 -0
- package/dist/cjs/ui-timeline.cjs.entry.js +17 -0
- package/dist/cjs/ui-toast.cjs.entry.js +2 -2
- package/dist/cjs/ui-toaster.cjs.entry.js +2 -2
- package/dist/cjs/ui-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/uikit.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +4 -0
- package/dist/collection/components/ui-accordion/ui-accordion.js +1 -1
- package/dist/collection/components/ui-accordion-item/ui-accordion-item.js +1 -1
- package/dist/collection/components/ui-avatar/ui-avatar.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-card/ui-card.js +1 -1
- package/dist/collection/components/ui-carousel/ui-carousel.css +103 -0
- package/dist/collection/components/ui-carousel/ui-carousel.js +273 -0
- package/dist/collection/components/ui-checkbox/ui-checkbox.js +1 -1
- package/dist/collection/components/ui-command/ui-command.css +85 -0
- package/dist/collection/components/ui-command/ui-command.js +290 -0
- package/dist/collection/components/ui-container/ui-container.js +1 -1
- package/dist/collection/components/ui-date-picker/ui-date-picker.js +1 -1
- package/dist/collection/components/ui-dialog/ui-dialog.js +1 -1
- package/dist/collection/components/ui-drawer/ui-drawer.js +1 -1
- package/dist/collection/components/ui-dropdown-item/ui-dropdown-item.js +1 -1
- package/dist/collection/components/ui-dropdown-menu/ui-dropdown-menu.js +1 -1
- package/dist/collection/components/ui-field/ui-field.js +1 -1
- package/dist/collection/components/ui-file-upload/ui-file-upload.js +1 -1
- package/dist/collection/components/ui-grid/ui-grid.js +1 -1
- package/dist/collection/components/ui-input/ui-input.js +1 -1
- package/dist/collection/components/ui-label/ui-label.js +1 -1
- package/dist/collection/components/ui-navbar/ui-navbar.js +1 -1
- package/dist/collection/components/ui-pagination/ui-pagination.js +2 -2
- package/dist/collection/components/ui-popover/ui-popover.js +1 -1
- package/dist/collection/components/ui-progress/ui-progress.js +1 -1
- package/dist/collection/components/ui-progress-circular/ui-progress-circular.js +1 -1
- package/dist/collection/components/ui-radio-group/ui-radio-group.js +1 -1
- package/dist/collection/components/ui-rating/ui-rating.js +1 -1
- package/dist/collection/components/ui-reveal/ui-reveal.js +1 -1
- package/dist/collection/components/ui-scroll-progress/ui-scroll-progress.js +1 -1
- package/dist/collection/components/ui-section/ui-section.js +1 -1
- package/dist/collection/components/ui-segmented/ui-segmented.js +1 -1
- package/dist/collection/components/ui-select/ui-select.js +1 -1
- package/dist/collection/components/ui-separator/ui-separator.js +1 -1
- package/dist/collection/components/ui-skeleton/ui-skeleton.js +1 -1
- package/dist/collection/components/ui-slider/ui-slider.js +1 -1
- package/dist/collection/components/ui-spinner/ui-spinner.js +1 -1
- package/dist/collection/components/ui-stack/ui-stack.js +1 -1
- package/dist/collection/components/ui-stat/ui-stat.js +1 -1
- package/dist/collection/components/ui-switch/ui-switch.js +1 -1
- package/dist/collection/components/ui-table/ui-table.js +1 -1
- package/dist/collection/components/ui-tabs/ui-tabs.js +2 -2
- package/dist/collection/components/ui-textarea/ui-textarea.js +1 -1
- package/dist/collection/components/ui-theme-toggle/ui-theme-toggle.js +1 -1
- package/dist/collection/components/ui-timeline/ui-timeline.css +8 -0
- package/dist/collection/components/ui-timeline/ui-timeline.js +18 -0
- package/dist/collection/components/ui-timeline-item/ui-timeline-item.css +83 -0
- package/dist/collection/components/ui-timeline-item/ui-timeline-item.js +90 -0
- package/dist/collection/components/ui-toast/ui-toast.js +1 -1
- package/dist/collection/components/ui-toaster/ui-toaster.js +1 -1
- package/dist/collection/components/ui-tooltip/ui-tooltip.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-DDJE__UC.js → p-DAnXvxY_.js} +1 -1
- package/dist/components/{p-DUT2Q8Df.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-card.js +1 -1
- package/dist/components/ui-carousel.d.ts +11 -0
- package/dist/components/ui-carousel.js +1 -0
- package/dist/components/ui-checkbox.js +1 -1
- package/dist/components/ui-command.d.ts +11 -0
- package/dist/components/ui-command.js +1 -0
- package/dist/components/ui-container.js +1 -1
- package/dist/components/ui-date-picker.js +1 -1
- package/dist/components/ui-dialog.js +1 -1
- package/dist/components/ui-drawer.js +1 -1
- package/dist/components/ui-dropdown-item.js +1 -1
- package/dist/components/ui-dropdown-menu.js +1 -1
- package/dist/components/ui-field.js +1 -1
- package/dist/components/ui-file-upload.js +1 -1
- package/dist/components/ui-grid.js +1 -1
- package/dist/components/ui-input.js +1 -1
- package/dist/components/ui-label.js +1 -1
- package/dist/components/ui-loading-overlay.js +1 -1
- package/dist/components/ui-navbar.js +1 -1
- package/dist/components/ui-pagination.js +1 -1
- package/dist/components/ui-popover.js +1 -1
- package/dist/components/ui-progress-circular.js +1 -1
- package/dist/components/ui-progress.js +1 -1
- package/dist/components/ui-radio-group.js +1 -1
- package/dist/components/ui-rating.js +1 -1
- package/dist/components/ui-reveal.js +1 -1
- package/dist/components/ui-scroll-progress.js +1 -1
- package/dist/components/ui-section.js +1 -1
- package/dist/components/ui-segmented.js +1 -1
- package/dist/components/ui-select.js +1 -1
- package/dist/components/ui-separator.js +1 -1
- package/dist/components/ui-skeleton.js +1 -1
- package/dist/components/ui-slider.js +1 -1
- package/dist/components/ui-spinner.js +1 -1
- package/dist/components/ui-stack.js +1 -1
- package/dist/components/ui-stat.js +1 -1
- package/dist/components/ui-switch.js +1 -1
- package/dist/components/ui-table.js +1 -1
- package/dist/components/ui-tabs.js +1 -1
- package/dist/components/ui-textarea.js +1 -1
- package/dist/components/ui-theme-toggle.js +1 -1
- package/dist/components/ui-timeline-item.d.ts +11 -0
- package/dist/components/ui-timeline-item.js +1 -0
- package/dist/components/ui-timeline.d.ts +11 -0
- package/dist/components/ui-timeline.js +1 -0
- package/dist/components/ui-toast.js +1 -1
- package/dist/components/ui-toaster.js +1 -1
- package/dist/components/ui-tooltip.js +1 -1
- package/dist/esm/{index-DYwlrXg_.js → index-COlwaVJP.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/ui-accordion-item.entry.js +2 -2
- package/dist/esm/ui-accordion.entry.js +2 -2
- package/dist/esm/ui-alert.entry.js +1 -1
- package/dist/esm/ui-avatar-group.entry.js +2 -2
- package/dist/esm/ui-avatar.entry.js +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 +1 -1
- package/dist/esm/ui-card.entry.js +2 -2
- package/dist/esm/ui-carousel.entry.js +102 -0
- package/dist/esm/ui-checkbox.entry.js +2 -2
- package/dist/esm/ui-combobox.entry.js +1 -1
- package/dist/esm/ui-command.entry.js +135 -0
- package/dist/esm/ui-container.entry.js +2 -2
- package/dist/esm/ui-date-picker.entry.js +2 -2
- package/dist/esm/ui-dialog.entry.js +2 -2
- package/dist/esm/ui-drawer.entry.js +2 -2
- package/dist/esm/ui-dropdown-item.entry.js +2 -2
- package/dist/esm/ui-dropdown-menu.entry.js +2 -2
- package/dist/esm/ui-field.entry.js +2 -2
- package/dist/esm/ui-file-upload.entry.js +2 -2
- package/dist/esm/ui-grid.entry.js +2 -2
- package/dist/esm/ui-input.entry.js +2 -2
- package/dist/esm/ui-label.entry.js +2 -2
- package/dist/esm/ui-loading-overlay.entry.js +1 -1
- package/dist/esm/ui-navbar.entry.js +2 -2
- package/dist/esm/ui-pagination.entry.js +3 -3
- package/dist/esm/ui-popover.entry.js +2 -2
- package/dist/esm/ui-progress-circular.entry.js +2 -2
- package/dist/esm/ui-progress.entry.js +2 -2
- package/dist/esm/ui-radio-group.entry.js +2 -2
- package/dist/esm/ui-rating.entry.js +2 -2
- package/dist/esm/ui-reveal.entry.js +2 -2
- package/dist/esm/ui-scroll-progress.entry.js +2 -2
- package/dist/esm/ui-section.entry.js +2 -2
- package/dist/esm/ui-segmented.entry.js +2 -2
- package/dist/esm/ui-select.entry.js +2 -2
- package/dist/esm/ui-separator.entry.js +2 -2
- package/dist/esm/ui-skeleton.entry.js +2 -2
- package/dist/esm/ui-slider.entry.js +2 -2
- package/dist/esm/ui-spinner.entry.js +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 +2 -2
- package/dist/esm/ui-tabs.entry.js +3 -3
- package/dist/esm/ui-textarea.entry.js +2 -2
- package/dist/esm/ui-theme-toggle.entry.js +2 -2
- package/dist/esm/ui-timeline-item.entry.js +17 -0
- package/dist/esm/ui-timeline.entry.js +15 -0
- package/dist/esm/ui-toast.entry.js +2 -2
- package/dist/esm/ui-toaster.entry.js +2 -2
- package/dist/esm/ui-tooltip.entry.js +2 -2
- package/dist/esm/uikit.js +3 -3
- package/dist/types/components/ui-carousel/ui-carousel.d.ts +35 -0
- package/dist/types/components/ui-command/ui-command.d.ts +42 -0
- package/dist/types/components/ui-timeline/ui-timeline.d.ts +3 -0
- package/dist/types/components/ui-timeline-item/ui-timeline-item.d.ts +10 -0
- package/dist/types/components.d.ts +236 -0
- package/dist/uikit/{p-5e0bc34a.entry.js → p-02583f33.entry.js} +1 -1
- package/dist/uikit/{p-4044ebde.entry.js → p-0b8fb2cc.entry.js} +1 -1
- package/dist/uikit/{p-894fc85f.entry.js → p-12777ebf.entry.js} +1 -1
- package/dist/uikit/p-186d394f.entry.js +1 -0
- package/dist/uikit/{p-fd05c146.entry.js → p-247f7a40.entry.js} +1 -1
- package/dist/uikit/{p-8535f5c9.entry.js → p-24c9885b.entry.js} +1 -1
- package/dist/uikit/p-26c4b4f9.entry.js +1 -0
- package/dist/uikit/{p-3fdfad2e.entry.js → p-2716a9e4.entry.js} +1 -1
- package/dist/uikit/{p-1449f229.entry.js → p-27c609c2.entry.js} +1 -1
- package/dist/uikit/{p-5951a496.entry.js → p-2a4de93f.entry.js} +1 -1
- package/dist/uikit/{p-88238a16.entry.js → p-2ce36223.entry.js} +1 -1
- package/dist/uikit/p-30834f9e.entry.js +1 -0
- package/dist/uikit/p-333a3598.entry.js +1 -0
- package/dist/uikit/{p-60910c03.entry.js → p-33a19160.entry.js} +1 -1
- package/dist/uikit/{p-a3d819cd.entry.js → p-400536f7.entry.js} +1 -1
- package/dist/uikit/{p-008118af.entry.js → p-411a753f.entry.js} +1 -1
- package/dist/uikit/p-41355be1.entry.js +1 -0
- package/dist/uikit/p-4281fc69.entry.js +1 -0
- package/dist/uikit/p-4c2fb226.entry.js +1 -0
- package/dist/uikit/{p-45e80e73.entry.js → p-5562b70d.entry.js} +1 -1
- package/dist/uikit/{p-c1a9db7c.entry.js → p-56b1bf3f.entry.js} +1 -1
- package/dist/uikit/p-57adf02c.entry.js +1 -0
- package/dist/uikit/{p-1685191b.entry.js → p-58035d5a.entry.js} +1 -1
- package/dist/uikit/{p-1514ae37.entry.js → p-5ff44eca.entry.js} +1 -1
- package/dist/uikit/{p-b7e30398.entry.js → p-66037a7c.entry.js} +1 -1
- package/dist/uikit/{p-6d363a02.entry.js → p-6d58ff8d.entry.js} +1 -1
- package/dist/uikit/{p-ffcd1faf.entry.js → p-7a04fd11.entry.js} +1 -1
- package/dist/uikit/p-7aeed213.entry.js +1 -0
- package/dist/uikit/p-80236139.entry.js +1 -0
- package/dist/uikit/p-81a37bda.entry.js +1 -0
- package/dist/uikit/{p-f4344cce.entry.js → p-849347da.entry.js} +1 -1
- package/dist/uikit/p-866a0947.entry.js +1 -0
- package/dist/uikit/{p-bdd30484.entry.js → p-86bf22c1.entry.js} +1 -1
- package/dist/uikit/p-98234aed.entry.js +1 -0
- package/dist/uikit/p-COlwaVJP.js +2 -0
- package/dist/uikit/{p-413cfbc6.entry.js → p-a312d278.entry.js} +1 -1
- package/dist/uikit/{p-9310b73b.entry.js → p-a4b535ad.entry.js} +1 -1
- package/dist/uikit/p-a8f81996.entry.js +1 -0
- package/dist/uikit/{p-99b7e461.entry.js → p-aa0ce28c.entry.js} +1 -1
- package/dist/uikit/{p-b0f2b1c8.entry.js → p-aa41b084.entry.js} +1 -1
- package/dist/uikit/p-acce5342.entry.js +1 -0
- package/dist/uikit/p-b232849a.entry.js +1 -0
- package/dist/uikit/{p-f2983e94.entry.js → p-bd287e67.entry.js} +1 -1
- package/dist/uikit/p-bf66ce1b.entry.js +1 -0
- package/dist/uikit/p-c0b3f5a3.entry.js +1 -0
- package/dist/uikit/{p-9f09fcec.entry.js → p-c29317aa.entry.js} +1 -1
- package/dist/uikit/{p-3995852d.entry.js → p-d73e789a.entry.js} +1 -1
- package/dist/uikit/{p-2d92ce04.entry.js → p-dc00c84b.entry.js} +1 -1
- package/dist/uikit/{p-fb89d9a4.entry.js → p-de2bb69c.entry.js} +1 -1
- package/dist/uikit/{p-ccca2aeb.entry.js → p-e2e35a6b.entry.js} +1 -1
- package/dist/uikit/{p-d7ab158f.entry.js → p-e32fa613.entry.js} +1 -1
- package/dist/uikit/{p-e2065caa.entry.js → p-e61e7ef1.entry.js} +1 -1
- package/dist/uikit/{p-62881327.entry.js → p-e891fec3.entry.js} +1 -1
- package/dist/uikit/{p-0715db16.entry.js → p-ef6ec7f7.entry.js} +1 -1
- package/dist/uikit/p-faa31e8c.entry.js +1 -0
- package/dist/uikit/uikit.css +1 -1
- package/dist/uikit/uikit.esm.js +1 -1
- package/package.json +1 -1
- package/dist/uikit/p-10afa395.entry.js +0 -1
- package/dist/uikit/p-1ef7948f.entry.js +0 -1
- package/dist/uikit/p-283e7623.entry.js +0 -1
- package/dist/uikit/p-3b1f92da.entry.js +0 -1
- package/dist/uikit/p-4ba0e4bc.entry.js +0 -1
- package/dist/uikit/p-6c51a216.entry.js +0 -1
- package/dist/uikit/p-8b882367.entry.js +0 -1
- package/dist/uikit/p-9d8d420e.entry.js +0 -1
- package/dist/uikit/p-9dbe7e12.entry.js +0 -1
- package/dist/uikit/p-DYwlrXg_.js +0 -2
- package/dist/uikit/p-bac2c523.entry.js +0 -1
- package/dist/uikit/p-bbc718ef.entry.js +0 -1
- package/dist/uikit/p-c2138fb9.entry.js +0 -1
- package/dist/uikit/p-c94492ff.entry.js +0 -1
- package/dist/uikit/p-da807078.entry.js +0 -1
- package/dist/uikit/p-fbe7806c.entry.js +0 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
export interface UiCommandItem {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
group?: string;
|
|
6
|
+
hint?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class UiCommand {
|
|
9
|
+
host: HTMLElement;
|
|
10
|
+
/** Controla a abertura da paleta de comandos. */
|
|
11
|
+
open: boolean;
|
|
12
|
+
/** Itens disponíveis na paleta. */
|
|
13
|
+
items: UiCommandItem[];
|
|
14
|
+
/** Placeholder do campo de busca. */
|
|
15
|
+
placeholder: string;
|
|
16
|
+
/** Abre/fecha com Cmd/Ctrl+K quando habilitado. */
|
|
17
|
+
hotkey: boolean;
|
|
18
|
+
/** Texto digitado na busca. */
|
|
19
|
+
query: string;
|
|
20
|
+
/** Índice do item destacado na lista filtrada. */
|
|
21
|
+
activeIndex: number;
|
|
22
|
+
/** Emitido ao selecionar um comando. */
|
|
23
|
+
uiSelect: EventEmitter<string>;
|
|
24
|
+
private dialogEl?;
|
|
25
|
+
private inputEl?;
|
|
26
|
+
onOpenChange(value: boolean): void;
|
|
27
|
+
componentDidLoad(): void;
|
|
28
|
+
connectedCallback(): void;
|
|
29
|
+
disconnectedCallback(): void;
|
|
30
|
+
private sync;
|
|
31
|
+
/** Abre a paleta imperativamente. */
|
|
32
|
+
show(): Promise<void>;
|
|
33
|
+
/** Fecha a paleta imperativamente. */
|
|
34
|
+
close(): Promise<void>;
|
|
35
|
+
private get filtered();
|
|
36
|
+
private onHotkey;
|
|
37
|
+
private onClose;
|
|
38
|
+
private select;
|
|
39
|
+
private onInput;
|
|
40
|
+
private onKeydown;
|
|
41
|
+
render(): any;
|
|
42
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type UiTimelineVariant = "accent" | "success" | "warning" | "danger" | "muted";
|
|
2
|
+
export declare class UiTimelineItem {
|
|
3
|
+
/** Título do item (opcional). */
|
|
4
|
+
heading?: string;
|
|
5
|
+
/** Rótulo de tempo, ex.: data ou label (opcional). */
|
|
6
|
+
time?: string;
|
|
7
|
+
/** Cor do ponto da timeline. */
|
|
8
|
+
variant: UiTimelineVariant;
|
|
9
|
+
render(): any;
|
|
10
|
+
}
|
|
@@ -9,6 +9,7 @@ import { UiAlertVariant } from "./components/ui-alert/ui-alert";
|
|
|
9
9
|
import { UiBadgeVariant } from "./components/ui-badge/ui-badge";
|
|
10
10
|
import { UiButtonSize, UiButtonVariant } from "./components/ui-button/ui-button";
|
|
11
11
|
import { UiComboboxOption } from "./components/ui-combobox/ui-combobox";
|
|
12
|
+
import { UiCommandItem } from "./components/ui-command/ui-command";
|
|
12
13
|
import { UiContainerSize } from "./components/ui-container/ui-container";
|
|
13
14
|
import { Placement } from "@floating-ui/dom";
|
|
14
15
|
import { UiGridGap } from "./components/ui-grid/ui-grid";
|
|
@@ -22,12 +23,14 @@ import { UiStackAlign, UiStackDirection, UiStackGap, UiStackJustify } from "./co
|
|
|
22
23
|
import { UiStatTrend } from "./components/ui-stat/ui-stat";
|
|
23
24
|
import { UiTableColumn } from "./components/ui-table/ui-table";
|
|
24
25
|
import { UiTabItem } from "./components/ui-tabs/ui-tabs";
|
|
26
|
+
import { UiTimelineVariant } from "./components/ui-timeline-item/ui-timeline-item";
|
|
25
27
|
import { UiToastVariant } from "./components/ui-toast/ui-toast";
|
|
26
28
|
import { UiToastOptions } from "./components/ui-toaster/ui-toaster";
|
|
27
29
|
export { UiAlertVariant } from "./components/ui-alert/ui-alert";
|
|
28
30
|
export { UiBadgeVariant } from "./components/ui-badge/ui-badge";
|
|
29
31
|
export { UiButtonSize, UiButtonVariant } from "./components/ui-button/ui-button";
|
|
30
32
|
export { UiComboboxOption } from "./components/ui-combobox/ui-combobox";
|
|
33
|
+
export { UiCommandItem } from "./components/ui-command/ui-command";
|
|
31
34
|
export { UiContainerSize } from "./components/ui-container/ui-container";
|
|
32
35
|
export { Placement } from "@floating-ui/dom";
|
|
33
36
|
export { UiGridGap } from "./components/ui-grid/ui-grid";
|
|
@@ -41,6 +44,7 @@ export { UiStackAlign, UiStackDirection, UiStackGap, UiStackJustify } from "./co
|
|
|
41
44
|
export { UiStatTrend } from "./components/ui-stat/ui-stat";
|
|
42
45
|
export { UiTableColumn } from "./components/ui-table/ui-table";
|
|
43
46
|
export { UiTabItem } from "./components/ui-tabs/ui-tabs";
|
|
47
|
+
export { UiTimelineVariant } from "./components/ui-timeline-item/ui-timeline-item";
|
|
44
48
|
export { UiToastVariant } from "./components/ui-toast/ui-toast";
|
|
45
49
|
export { UiToastOptions } from "./components/ui-toaster/ui-toaster";
|
|
46
50
|
export namespace Components {
|
|
@@ -162,6 +166,40 @@ export namespace Components {
|
|
|
162
166
|
}
|
|
163
167
|
interface UiCard {
|
|
164
168
|
}
|
|
169
|
+
interface UiCarousel {
|
|
170
|
+
/**
|
|
171
|
+
* Intervalo de autoplay em ms. 0 desliga o autoplay.
|
|
172
|
+
* @default 0
|
|
173
|
+
*/
|
|
174
|
+
"autoplay": number;
|
|
175
|
+
/**
|
|
176
|
+
* Vai para um slide específico pelo índice.
|
|
177
|
+
*/
|
|
178
|
+
"goTo": (i: number) => Promise<void>;
|
|
179
|
+
/**
|
|
180
|
+
* Permite navegação circular (wrap) entre o primeiro e o último slide.
|
|
181
|
+
* @default false
|
|
182
|
+
*/
|
|
183
|
+
"loop": boolean;
|
|
184
|
+
/**
|
|
185
|
+
* Avança para o próximo slide.
|
|
186
|
+
*/
|
|
187
|
+
"next": () => Promise<void>;
|
|
188
|
+
/**
|
|
189
|
+
* Volta para o slide anterior.
|
|
190
|
+
*/
|
|
191
|
+
"prev": () => Promise<void>;
|
|
192
|
+
/**
|
|
193
|
+
* Exibe as setas de navegação.
|
|
194
|
+
* @default true
|
|
195
|
+
*/
|
|
196
|
+
"showArrows": boolean;
|
|
197
|
+
/**
|
|
198
|
+
* Exibe os indicadores (dots).
|
|
199
|
+
* @default true
|
|
200
|
+
*/
|
|
201
|
+
"showDots": boolean;
|
|
202
|
+
}
|
|
165
203
|
interface UiCheckbox {
|
|
166
204
|
/**
|
|
167
205
|
* Estado marcado/desmarcado.
|
|
@@ -199,6 +237,36 @@ export namespace Components {
|
|
|
199
237
|
*/
|
|
200
238
|
"value": string;
|
|
201
239
|
}
|
|
240
|
+
interface UiCommand {
|
|
241
|
+
/**
|
|
242
|
+
* Fecha a paleta imperativamente.
|
|
243
|
+
*/
|
|
244
|
+
"close": () => Promise<void>;
|
|
245
|
+
/**
|
|
246
|
+
* Abre/fecha com Cmd/Ctrl+K quando habilitado.
|
|
247
|
+
* @default true
|
|
248
|
+
*/
|
|
249
|
+
"hotkey": boolean;
|
|
250
|
+
/**
|
|
251
|
+
* Itens disponíveis na paleta.
|
|
252
|
+
* @default []
|
|
253
|
+
*/
|
|
254
|
+
"items": UiCommandItem[];
|
|
255
|
+
/**
|
|
256
|
+
* Controla a abertura da paleta de comandos.
|
|
257
|
+
* @default false
|
|
258
|
+
*/
|
|
259
|
+
"open": boolean;
|
|
260
|
+
/**
|
|
261
|
+
* Placeholder do campo de busca.
|
|
262
|
+
* @default "Buscar comando…"
|
|
263
|
+
*/
|
|
264
|
+
"placeholder": string;
|
|
265
|
+
/**
|
|
266
|
+
* Abre a paleta imperativamente.
|
|
267
|
+
*/
|
|
268
|
+
"show": () => Promise<void>;
|
|
269
|
+
}
|
|
202
270
|
interface UiContainer {
|
|
203
271
|
/**
|
|
204
272
|
* Aplica padding lateral responsivo.
|
|
@@ -752,6 +820,23 @@ export namespace Components {
|
|
|
752
820
|
}
|
|
753
821
|
interface UiThemeToggle {
|
|
754
822
|
}
|
|
823
|
+
interface UiTimeline {
|
|
824
|
+
}
|
|
825
|
+
interface UiTimelineItem {
|
|
826
|
+
/**
|
|
827
|
+
* Título do item (opcional).
|
|
828
|
+
*/
|
|
829
|
+
"heading"?: string;
|
|
830
|
+
/**
|
|
831
|
+
* Rótulo de tempo, ex.: data ou label (opcional).
|
|
832
|
+
*/
|
|
833
|
+
"time"?: string;
|
|
834
|
+
/**
|
|
835
|
+
* Cor do ponto da timeline.
|
|
836
|
+
* @default "accent"
|
|
837
|
+
*/
|
|
838
|
+
"variant": UiTimelineVariant;
|
|
839
|
+
}
|
|
755
840
|
interface UiToast {
|
|
756
841
|
/**
|
|
757
842
|
* Fecha o toast imperativamente.
|
|
@@ -821,6 +906,10 @@ export interface UiBadgeCustomEvent<T> extends CustomEvent<T> {
|
|
|
821
906
|
detail: T;
|
|
822
907
|
target: HTMLUiBadgeElement;
|
|
823
908
|
}
|
|
909
|
+
export interface UiCarouselCustomEvent<T> extends CustomEvent<T> {
|
|
910
|
+
detail: T;
|
|
911
|
+
target: HTMLUiCarouselElement;
|
|
912
|
+
}
|
|
824
913
|
export interface UiCheckboxCustomEvent<T> extends CustomEvent<T> {
|
|
825
914
|
detail: T;
|
|
826
915
|
target: HTMLUiCheckboxElement;
|
|
@@ -829,6 +918,10 @@ export interface UiComboboxCustomEvent<T> extends CustomEvent<T> {
|
|
|
829
918
|
detail: T;
|
|
830
919
|
target: HTMLUiComboboxElement;
|
|
831
920
|
}
|
|
921
|
+
export interface UiCommandCustomEvent<T> extends CustomEvent<T> {
|
|
922
|
+
detail: T;
|
|
923
|
+
target: HTMLUiCommandElement;
|
|
924
|
+
}
|
|
832
925
|
export interface UiDatePickerCustomEvent<T> extends CustomEvent<T> {
|
|
833
926
|
detail: T;
|
|
834
927
|
target: HTMLUiDatePickerElement;
|
|
@@ -1002,6 +1095,23 @@ declare global {
|
|
|
1002
1095
|
prototype: HTMLUiCardElement;
|
|
1003
1096
|
new (): HTMLUiCardElement;
|
|
1004
1097
|
};
|
|
1098
|
+
interface HTMLUiCarouselElementEventMap {
|
|
1099
|
+
"uiChange": number;
|
|
1100
|
+
}
|
|
1101
|
+
interface HTMLUiCarouselElement extends Components.UiCarousel, HTMLStencilElement {
|
|
1102
|
+
addEventListener<K extends keyof HTMLUiCarouselElementEventMap>(type: K, listener: (this: HTMLUiCarouselElement, ev: UiCarouselCustomEvent<HTMLUiCarouselElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1103
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1104
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1105
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1106
|
+
removeEventListener<K extends keyof HTMLUiCarouselElementEventMap>(type: K, listener: (this: HTMLUiCarouselElement, ev: UiCarouselCustomEvent<HTMLUiCarouselElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1107
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1108
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1109
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1110
|
+
}
|
|
1111
|
+
var HTMLUiCarouselElement: {
|
|
1112
|
+
prototype: HTMLUiCarouselElement;
|
|
1113
|
+
new (): HTMLUiCarouselElement;
|
|
1114
|
+
};
|
|
1005
1115
|
interface HTMLUiCheckboxElementEventMap {
|
|
1006
1116
|
"uiChange": boolean;
|
|
1007
1117
|
}
|
|
@@ -1036,6 +1146,23 @@ declare global {
|
|
|
1036
1146
|
prototype: HTMLUiComboboxElement;
|
|
1037
1147
|
new (): HTMLUiComboboxElement;
|
|
1038
1148
|
};
|
|
1149
|
+
interface HTMLUiCommandElementEventMap {
|
|
1150
|
+
"uiSelect": string;
|
|
1151
|
+
}
|
|
1152
|
+
interface HTMLUiCommandElement extends Components.UiCommand, HTMLStencilElement {
|
|
1153
|
+
addEventListener<K extends keyof HTMLUiCommandElementEventMap>(type: K, listener: (this: HTMLUiCommandElement, ev: UiCommandCustomEvent<HTMLUiCommandElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1154
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1155
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1156
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1157
|
+
removeEventListener<K extends keyof HTMLUiCommandElementEventMap>(type: K, listener: (this: HTMLUiCommandElement, ev: UiCommandCustomEvent<HTMLUiCommandElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1158
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1159
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1160
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1161
|
+
}
|
|
1162
|
+
var HTMLUiCommandElement: {
|
|
1163
|
+
prototype: HTMLUiCommandElement;
|
|
1164
|
+
new (): HTMLUiCommandElement;
|
|
1165
|
+
};
|
|
1039
1166
|
interface HTMLUiContainerElement extends Components.UiContainer, HTMLStencilElement {
|
|
1040
1167
|
}
|
|
1041
1168
|
var HTMLUiContainerElement: {
|
|
@@ -1452,6 +1579,18 @@ declare global {
|
|
|
1452
1579
|
prototype: HTMLUiThemeToggleElement;
|
|
1453
1580
|
new (): HTMLUiThemeToggleElement;
|
|
1454
1581
|
};
|
|
1582
|
+
interface HTMLUiTimelineElement extends Components.UiTimeline, HTMLStencilElement {
|
|
1583
|
+
}
|
|
1584
|
+
var HTMLUiTimelineElement: {
|
|
1585
|
+
prototype: HTMLUiTimelineElement;
|
|
1586
|
+
new (): HTMLUiTimelineElement;
|
|
1587
|
+
};
|
|
1588
|
+
interface HTMLUiTimelineItemElement extends Components.UiTimelineItem, HTMLStencilElement {
|
|
1589
|
+
}
|
|
1590
|
+
var HTMLUiTimelineItemElement: {
|
|
1591
|
+
prototype: HTMLUiTimelineItemElement;
|
|
1592
|
+
new (): HTMLUiTimelineItemElement;
|
|
1593
|
+
};
|
|
1455
1594
|
interface HTMLUiToastElementEventMap {
|
|
1456
1595
|
"uiClose": void;
|
|
1457
1596
|
}
|
|
@@ -1492,8 +1631,10 @@ declare global {
|
|
|
1492
1631
|
"ui-breadcrumb-item": HTMLUiBreadcrumbItemElement;
|
|
1493
1632
|
"ui-button": HTMLUiButtonElement;
|
|
1494
1633
|
"ui-card": HTMLUiCardElement;
|
|
1634
|
+
"ui-carousel": HTMLUiCarouselElement;
|
|
1495
1635
|
"ui-checkbox": HTMLUiCheckboxElement;
|
|
1496
1636
|
"ui-combobox": HTMLUiComboboxElement;
|
|
1637
|
+
"ui-command": HTMLUiCommandElement;
|
|
1497
1638
|
"ui-container": HTMLUiContainerElement;
|
|
1498
1639
|
"ui-date-picker": HTMLUiDatePickerElement;
|
|
1499
1640
|
"ui-dialog": HTMLUiDialogElement;
|
|
@@ -1529,6 +1670,8 @@ declare global {
|
|
|
1529
1670
|
"ui-tabs": HTMLUiTabsElement;
|
|
1530
1671
|
"ui-textarea": HTMLUiTextareaElement;
|
|
1531
1672
|
"ui-theme-toggle": HTMLUiThemeToggleElement;
|
|
1673
|
+
"ui-timeline": HTMLUiTimelineElement;
|
|
1674
|
+
"ui-timeline-item": HTMLUiTimelineItemElement;
|
|
1532
1675
|
"ui-toast": HTMLUiToastElement;
|
|
1533
1676
|
"ui-toaster": HTMLUiToasterElement;
|
|
1534
1677
|
"ui-tooltip": HTMLUiTooltipElement;
|
|
@@ -1667,6 +1810,32 @@ declare namespace LocalJSX {
|
|
|
1667
1810
|
}
|
|
1668
1811
|
interface UiCard {
|
|
1669
1812
|
}
|
|
1813
|
+
interface UiCarousel {
|
|
1814
|
+
/**
|
|
1815
|
+
* Intervalo de autoplay em ms. 0 desliga o autoplay.
|
|
1816
|
+
* @default 0
|
|
1817
|
+
*/
|
|
1818
|
+
"autoplay"?: number;
|
|
1819
|
+
/**
|
|
1820
|
+
* Permite navegação circular (wrap) entre o primeiro e o último slide.
|
|
1821
|
+
* @default false
|
|
1822
|
+
*/
|
|
1823
|
+
"loop"?: boolean;
|
|
1824
|
+
/**
|
|
1825
|
+
* Emitido quando o slide atual muda, com o índice novo.
|
|
1826
|
+
*/
|
|
1827
|
+
"onUiChange"?: (event: UiCarouselCustomEvent<number>) => void;
|
|
1828
|
+
/**
|
|
1829
|
+
* Exibe as setas de navegação.
|
|
1830
|
+
* @default true
|
|
1831
|
+
*/
|
|
1832
|
+
"showArrows"?: boolean;
|
|
1833
|
+
/**
|
|
1834
|
+
* Exibe os indicadores (dots).
|
|
1835
|
+
* @default true
|
|
1836
|
+
*/
|
|
1837
|
+
"showDots"?: boolean;
|
|
1838
|
+
}
|
|
1670
1839
|
interface UiCheckbox {
|
|
1671
1840
|
/**
|
|
1672
1841
|
* Estado marcado/desmarcado.
|
|
@@ -1712,6 +1881,32 @@ declare namespace LocalJSX {
|
|
|
1712
1881
|
*/
|
|
1713
1882
|
"value"?: string;
|
|
1714
1883
|
}
|
|
1884
|
+
interface UiCommand {
|
|
1885
|
+
/**
|
|
1886
|
+
* Abre/fecha com Cmd/Ctrl+K quando habilitado.
|
|
1887
|
+
* @default true
|
|
1888
|
+
*/
|
|
1889
|
+
"hotkey"?: boolean;
|
|
1890
|
+
/**
|
|
1891
|
+
* Itens disponíveis na paleta.
|
|
1892
|
+
* @default []
|
|
1893
|
+
*/
|
|
1894
|
+
"items"?: UiCommandItem[];
|
|
1895
|
+
/**
|
|
1896
|
+
* Emitido ao selecionar um comando.
|
|
1897
|
+
*/
|
|
1898
|
+
"onUiSelect"?: (event: UiCommandCustomEvent<string>) => void;
|
|
1899
|
+
/**
|
|
1900
|
+
* Controla a abertura da paleta de comandos.
|
|
1901
|
+
* @default false
|
|
1902
|
+
*/
|
|
1903
|
+
"open"?: boolean;
|
|
1904
|
+
/**
|
|
1905
|
+
* Placeholder do campo de busca.
|
|
1906
|
+
* @default "Buscar comando…"
|
|
1907
|
+
*/
|
|
1908
|
+
"placeholder"?: string;
|
|
1909
|
+
}
|
|
1715
1910
|
interface UiContainer {
|
|
1716
1911
|
/**
|
|
1717
1912
|
* Aplica padding lateral responsivo.
|
|
@@ -2317,6 +2512,23 @@ declare namespace LocalJSX {
|
|
|
2317
2512
|
*/
|
|
2318
2513
|
"onUiThemeChange"?: (event: UiThemeToggleCustomEvent<"light" | "dark">) => void;
|
|
2319
2514
|
}
|
|
2515
|
+
interface UiTimeline {
|
|
2516
|
+
}
|
|
2517
|
+
interface UiTimelineItem {
|
|
2518
|
+
/**
|
|
2519
|
+
* Título do item (opcional).
|
|
2520
|
+
*/
|
|
2521
|
+
"heading"?: string;
|
|
2522
|
+
/**
|
|
2523
|
+
* Rótulo de tempo, ex.: data ou label (opcional).
|
|
2524
|
+
*/
|
|
2525
|
+
"time"?: string;
|
|
2526
|
+
/**
|
|
2527
|
+
* Cor do ponto da timeline.
|
|
2528
|
+
* @default "accent"
|
|
2529
|
+
*/
|
|
2530
|
+
"variant"?: UiTimelineVariant;
|
|
2531
|
+
}
|
|
2320
2532
|
interface UiToast {
|
|
2321
2533
|
/**
|
|
2322
2534
|
* Descrição do toast.
|
|
@@ -2398,6 +2610,12 @@ declare namespace LocalJSX {
|
|
|
2398
2610
|
"type": "button" | "submit" | "reset";
|
|
2399
2611
|
"full": boolean;
|
|
2400
2612
|
}
|
|
2613
|
+
interface UiCarouselAttributes {
|
|
2614
|
+
"loop": boolean;
|
|
2615
|
+
"autoplay": number;
|
|
2616
|
+
"showArrows": boolean;
|
|
2617
|
+
"showDots": boolean;
|
|
2618
|
+
}
|
|
2401
2619
|
interface UiCheckboxAttributes {
|
|
2402
2620
|
"checked": boolean;
|
|
2403
2621
|
"disabled": boolean;
|
|
@@ -2408,6 +2626,11 @@ declare namespace LocalJSX {
|
|
|
2408
2626
|
"value": string;
|
|
2409
2627
|
"placeholder": string;
|
|
2410
2628
|
}
|
|
2629
|
+
interface UiCommandAttributes {
|
|
2630
|
+
"open": boolean;
|
|
2631
|
+
"placeholder": string;
|
|
2632
|
+
"hotkey": boolean;
|
|
2633
|
+
}
|
|
2411
2634
|
interface UiContainerAttributes {
|
|
2412
2635
|
"size": UiContainerSize;
|
|
2413
2636
|
"padded": boolean;
|
|
@@ -2555,6 +2778,11 @@ declare namespace LocalJSX {
|
|
|
2555
2778
|
"name": string;
|
|
2556
2779
|
"rows": number;
|
|
2557
2780
|
}
|
|
2781
|
+
interface UiTimelineItemAttributes {
|
|
2782
|
+
"heading": string;
|
|
2783
|
+
"time": string;
|
|
2784
|
+
"variant": UiTimelineVariant;
|
|
2785
|
+
}
|
|
2558
2786
|
interface UiToastAttributes {
|
|
2559
2787
|
"open": boolean;
|
|
2560
2788
|
"variant": UiToastVariant;
|
|
@@ -2579,8 +2807,10 @@ declare namespace LocalJSX {
|
|
|
2579
2807
|
"ui-breadcrumb-item": Omit<UiBreadcrumbItem, keyof UiBreadcrumbItemAttributes> & { [K in keyof UiBreadcrumbItem & keyof UiBreadcrumbItemAttributes]?: UiBreadcrumbItem[K] } & { [K in keyof UiBreadcrumbItem & keyof UiBreadcrumbItemAttributes as `attr:${K}`]?: UiBreadcrumbItemAttributes[K] } & { [K in keyof UiBreadcrumbItem & keyof UiBreadcrumbItemAttributes as `prop:${K}`]?: UiBreadcrumbItem[K] };
|
|
2580
2808
|
"ui-button": Omit<UiButton, keyof UiButtonAttributes> & { [K in keyof UiButton & keyof UiButtonAttributes]?: UiButton[K] } & { [K in keyof UiButton & keyof UiButtonAttributes as `attr:${K}`]?: UiButtonAttributes[K] } & { [K in keyof UiButton & keyof UiButtonAttributes as `prop:${K}`]?: UiButton[K] };
|
|
2581
2809
|
"ui-card": UiCard;
|
|
2810
|
+
"ui-carousel": Omit<UiCarousel, keyof UiCarouselAttributes> & { [K in keyof UiCarousel & keyof UiCarouselAttributes]?: UiCarousel[K] } & { [K in keyof UiCarousel & keyof UiCarouselAttributes as `attr:${K}`]?: UiCarouselAttributes[K] } & { [K in keyof UiCarousel & keyof UiCarouselAttributes as `prop:${K}`]?: UiCarousel[K] };
|
|
2582
2811
|
"ui-checkbox": Omit<UiCheckbox, keyof UiCheckboxAttributes> & { [K in keyof UiCheckbox & keyof UiCheckboxAttributes]?: UiCheckbox[K] } & { [K in keyof UiCheckbox & keyof UiCheckboxAttributes as `attr:${K}`]?: UiCheckboxAttributes[K] } & { [K in keyof UiCheckbox & keyof UiCheckboxAttributes as `prop:${K}`]?: UiCheckbox[K] };
|
|
2583
2812
|
"ui-combobox": Omit<UiCombobox, keyof UiComboboxAttributes> & { [K in keyof UiCombobox & keyof UiComboboxAttributes]?: UiCombobox[K] } & { [K in keyof UiCombobox & keyof UiComboboxAttributes as `attr:${K}`]?: UiComboboxAttributes[K] } & { [K in keyof UiCombobox & keyof UiComboboxAttributes as `prop:${K}`]?: UiCombobox[K] };
|
|
2813
|
+
"ui-command": Omit<UiCommand, keyof UiCommandAttributes> & { [K in keyof UiCommand & keyof UiCommandAttributes]?: UiCommand[K] } & { [K in keyof UiCommand & keyof UiCommandAttributes as `attr:${K}`]?: UiCommandAttributes[K] } & { [K in keyof UiCommand & keyof UiCommandAttributes as `prop:${K}`]?: UiCommand[K] };
|
|
2584
2814
|
"ui-container": Omit<UiContainer, keyof UiContainerAttributes> & { [K in keyof UiContainer & keyof UiContainerAttributes]?: UiContainer[K] } & { [K in keyof UiContainer & keyof UiContainerAttributes as `attr:${K}`]?: UiContainerAttributes[K] } & { [K in keyof UiContainer & keyof UiContainerAttributes as `prop:${K}`]?: UiContainer[K] };
|
|
2585
2815
|
"ui-date-picker": Omit<UiDatePicker, keyof UiDatePickerAttributes> & { [K in keyof UiDatePicker & keyof UiDatePickerAttributes]?: UiDatePicker[K] } & { [K in keyof UiDatePicker & keyof UiDatePickerAttributes as `attr:${K}`]?: UiDatePickerAttributes[K] } & { [K in keyof UiDatePicker & keyof UiDatePickerAttributes as `prop:${K}`]?: UiDatePicker[K] };
|
|
2586
2816
|
"ui-dialog": Omit<UiDialog, keyof UiDialogAttributes> & { [K in keyof UiDialog & keyof UiDialogAttributes]?: UiDialog[K] } & { [K in keyof UiDialog & keyof UiDialogAttributes as `attr:${K}`]?: UiDialogAttributes[K] } & { [K in keyof UiDialog & keyof UiDialogAttributes as `prop:${K}`]?: UiDialog[K] };
|
|
@@ -2616,6 +2846,8 @@ declare namespace LocalJSX {
|
|
|
2616
2846
|
"ui-tabs": Omit<UiTabs, keyof UiTabsAttributes> & { [K in keyof UiTabs & keyof UiTabsAttributes]?: UiTabs[K] } & { [K in keyof UiTabs & keyof UiTabsAttributes as `attr:${K}`]?: UiTabsAttributes[K] } & { [K in keyof UiTabs & keyof UiTabsAttributes as `prop:${K}`]?: UiTabs[K] };
|
|
2617
2847
|
"ui-textarea": Omit<UiTextarea, keyof UiTextareaAttributes> & { [K in keyof UiTextarea & keyof UiTextareaAttributes]?: UiTextarea[K] } & { [K in keyof UiTextarea & keyof UiTextareaAttributes as `attr:${K}`]?: UiTextareaAttributes[K] } & { [K in keyof UiTextarea & keyof UiTextareaAttributes as `prop:${K}`]?: UiTextarea[K] };
|
|
2618
2848
|
"ui-theme-toggle": UiThemeToggle;
|
|
2849
|
+
"ui-timeline": UiTimeline;
|
|
2850
|
+
"ui-timeline-item": Omit<UiTimelineItem, keyof UiTimelineItemAttributes> & { [K in keyof UiTimelineItem & keyof UiTimelineItemAttributes]?: UiTimelineItem[K] } & { [K in keyof UiTimelineItem & keyof UiTimelineItemAttributes as `attr:${K}`]?: UiTimelineItemAttributes[K] } & { [K in keyof UiTimelineItem & keyof UiTimelineItemAttributes as `prop:${K}`]?: UiTimelineItem[K] };
|
|
2619
2851
|
"ui-toast": Omit<UiToast, keyof UiToastAttributes> & { [K in keyof UiToast & keyof UiToastAttributes]?: UiToast[K] } & { [K in keyof UiToast & keyof UiToastAttributes as `attr:${K}`]?: UiToastAttributes[K] } & { [K in keyof UiToast & keyof UiToastAttributes as `prop:${K}`]?: UiToast[K] };
|
|
2620
2852
|
"ui-toaster": UiToaster;
|
|
2621
2853
|
"ui-tooltip": Omit<UiTooltip, keyof UiTooltipAttributes> & { [K in keyof UiTooltip & keyof UiTooltipAttributes]?: UiTooltip[K] } & { [K in keyof UiTooltip & keyof UiTooltipAttributes as `attr:${K}`]?: UiTooltipAttributes[K] } & { [K in keyof UiTooltip & keyof UiTooltipAttributes as `prop:${K}`]?: UiTooltip[K] };
|
|
@@ -2638,8 +2870,10 @@ declare module "@stencil/core" {
|
|
|
2638
2870
|
"ui-breadcrumb-item": LocalJSX.IntrinsicElements["ui-breadcrumb-item"] & JSXBase.HTMLAttributes<HTMLUiBreadcrumbItemElement>;
|
|
2639
2871
|
"ui-button": LocalJSX.IntrinsicElements["ui-button"] & JSXBase.HTMLAttributes<HTMLUiButtonElement>;
|
|
2640
2872
|
"ui-card": LocalJSX.IntrinsicElements["ui-card"] & JSXBase.HTMLAttributes<HTMLUiCardElement>;
|
|
2873
|
+
"ui-carousel": LocalJSX.IntrinsicElements["ui-carousel"] & JSXBase.HTMLAttributes<HTMLUiCarouselElement>;
|
|
2641
2874
|
"ui-checkbox": LocalJSX.IntrinsicElements["ui-checkbox"] & JSXBase.HTMLAttributes<HTMLUiCheckboxElement>;
|
|
2642
2875
|
"ui-combobox": LocalJSX.IntrinsicElements["ui-combobox"] & JSXBase.HTMLAttributes<HTMLUiComboboxElement>;
|
|
2876
|
+
"ui-command": LocalJSX.IntrinsicElements["ui-command"] & JSXBase.HTMLAttributes<HTMLUiCommandElement>;
|
|
2643
2877
|
"ui-container": LocalJSX.IntrinsicElements["ui-container"] & JSXBase.HTMLAttributes<HTMLUiContainerElement>;
|
|
2644
2878
|
"ui-date-picker": LocalJSX.IntrinsicElements["ui-date-picker"] & JSXBase.HTMLAttributes<HTMLUiDatePickerElement>;
|
|
2645
2879
|
"ui-dialog": LocalJSX.IntrinsicElements["ui-dialog"] & JSXBase.HTMLAttributes<HTMLUiDialogElement>;
|
|
@@ -2680,6 +2914,8 @@ declare module "@stencil/core" {
|
|
|
2680
2914
|
"ui-tabs": LocalJSX.IntrinsicElements["ui-tabs"] & JSXBase.HTMLAttributes<HTMLUiTabsElement>;
|
|
2681
2915
|
"ui-textarea": LocalJSX.IntrinsicElements["ui-textarea"] & JSXBase.HTMLAttributes<HTMLUiTextareaElement>;
|
|
2682
2916
|
"ui-theme-toggle": LocalJSX.IntrinsicElements["ui-theme-toggle"] & JSXBase.HTMLAttributes<HTMLUiThemeToggleElement>;
|
|
2917
|
+
"ui-timeline": LocalJSX.IntrinsicElements["ui-timeline"] & JSXBase.HTMLAttributes<HTMLUiTimelineElement>;
|
|
2918
|
+
"ui-timeline-item": LocalJSX.IntrinsicElements["ui-timeline-item"] & JSXBase.HTMLAttributes<HTMLUiTimelineItemElement>;
|
|
2683
2919
|
"ui-toast": LocalJSX.IntrinsicElements["ui-toast"] & JSXBase.HTMLAttributes<HTMLUiToastElement>;
|
|
2684
2920
|
"ui-toaster": LocalJSX.IntrinsicElements["ui-toaster"] & JSXBase.HTMLAttributes<HTMLUiToasterElement>;
|
|
2685
2921
|
"ui-tooltip": LocalJSX.IntrinsicElements["ui-tooltip"] & JSXBase.HTMLAttributes<HTMLUiTooltipElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as
|
|
1
|
+
import{r as e,c as i,h as a,H as t}from"./p-COlwaVJP.js";const r=class{constructor(a){e(this,a),this.uiInput=i(this,"uiInput"),this.uiChange=i(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 a(t,{key:"e9eb32b17bc234a3e97c570f6a2e0eaabf3763f9"},a("div",{key:"8545c0a5c3a4ac48e11ebe7d9f0bc46738cf967f",class:{field:!0,invalid:this.invalid,disabled:this.disabled}},a("span",{key:"5f2273b9913a6e3c4f2328aedd1c68f5481ffc33",class:"affix"},a("slot",{key:"a6430217baeb4bf8f794c3b3da9d8a5d1f1934ea",name:"prefix"})),a("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&&a("button",{key:"07328458e2c91c87affea1ae462e97c45c2861b7",class:"clear",type:"button","aria-label":"Limpar",onClick:this.clear},a("svg",{key:"604ecae919eb8c115e4fc46d8a3b9ecc2f1f8937",viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"},a("path",{key:"824a4aeff8afcd9a87bb386232d7c541fb9aad5a",d:"M18 6 6 18M6 6l12 12"}))),a("span",{key:"c0c577e12a4f01520286da06512130de943781dc",class:"affix"},a("slot",{key:"5b2f1281359134f2714ede53446cf853b7a2eb61",name:"suffix"}))))}};r.style=':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)}';export{r as ui_input}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i,H as r}from"./p-
|
|
1
|
+
import{r as t,h as i,H as r}from"./p-COlwaVJP.js";const e=class{constructor(i){t(this,i),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,s=2*Math.PI*e,a=t?s*(1-this.percent):.75*s;return i(r,{key:"897f7b89a108759cc23a9445c4cc9b86891b2ece",role:"progressbar","aria-valuenow":t?String(this.value):void 0,"aria-valuemin":t?"0":void 0,"aria-valuemax":t?String(this.max):void 0,style:{width:this.size,height:this.size}},i("svg",{key:"ab55aaf976f0d1ffbfc2332c916b740c25ead28f",class:{ring:!0,indeterminate:this.isIndeterminate},width:this.size,height:this.size,viewBox:"0 0 100 100"},i("circle",{key:"c1e43611349b214522f5d4a734f105be9b0735d7",class:"track",cx:"50",cy:"50",r:String(e),"stroke-width":String(this.strokeWidth)}),i("circle",{key:"6589b238758c3b620a9dad7673ea756a267945f0",class:"indicator",cx:"50",cy:"50",r:String(e),"stroke-width":String(this.strokeWidth),"stroke-linecap":"round","stroke-dasharray":String(s),"stroke-dashoffset":String(a)})),this.showValue&&t?i("div",{class:"value"},Math.round(100*this.percent),"%"):null)}};e.style=":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)}}";export{e as ui_progress_circular}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as o,H as
|
|
1
|
+
import{r as t,h as o,H as a}from"./p-COlwaVJP.js";const i=class{constructor(o){t(this,o),this.orientation="horizontal"}render(){return o(a,{key:"8ad0a4bc68cdc9e2213c2236d61a7c882297a15f",role:"separator","aria-orientation":this.orientation,class:`orientation-${this.orientation}`})}};i.style=":host{display:block;background:var(--ui-border)}:host(.orientation-horizontal){width:100%;height:1px}:host(.orientation-vertical){display:inline-block;width:1px;height:100%}";export{i as ui_separator}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,c as s,h as t,H as a,a as e}from"./p-COlwaVJP.js";import{a as o,c as r,o as n,f as h,s as c}from"./p-DDtwbwIl.js";const d=class{constructor(t){i(this,t),this.uiOpenChange=s(this,"uiOpenChange"),this.open=!1,this.placement="bottom",this.onTriggerClick=i=>{i.stopPropagation(),this.setOpen(!this.open)},this.onDocumentClick=i=>{this.open&&(i.composedPath().includes(this.host)||this.setOpen(!1))},this.onKeydown=i=>{"Escape"===i.key&&this.open&&this.setOpen(!1)}}onOpenChange(i){i?(requestAnimationFrame((()=>this.start())),document.addEventListener("click",this.onDocumentClick),document.addEventListener("keydown",this.onKeydown)):(this.stop(),document.removeEventListener("click",this.onDocumentClick),document.removeEventListener("keydown",this.onKeydown))}disconnectedCallback(){this.stop(),document.removeEventListener("click",this.onDocumentClick),document.removeEventListener("keydown",this.onKeydown)}async show(){this.setOpen(!0)}async close(){this.setOpen(!1)}setOpen(i){this.open!==i&&(this.open=i,this.uiOpenChange.emit(i))}start(){this.triggerEl&&this.floatingEl&&(this.stop(),this.cleanup=o(this.triggerEl,this.floatingEl,(()=>{this.triggerEl&&this.floatingEl&&r(this.triggerEl,this.floatingEl,{placement:this.placement,middleware:[n(8),h(),c({padding:8})]}).then((({x:i,y:s})=>{Object.assign(this.floatingEl.style,{left:`${i}px`,top:`${s}px`})}))})))}stop(){this.cleanup?.(),this.cleanup=void 0}render(){return t(a,{key:"965392d6028b26b71bd908d277a5817fee2216c9"},t("span",{key:"09a9ce8d7aa698fe4d29f0950846cae6584563d9",class:"trigger",ref:i=>this.triggerEl=i,onClick:this.onTriggerClick},t("slot",{key:"5c0caa0a3a783cd4046e5b52ff4796053a645298",name:"trigger"})),t("div",{key:"096cf2835c48662d2e159afb6c05208adcd4547c",class:{panel:!0,"is-open":this.open},ref:i=>this.floatingEl=i},t("slot",{key:"661584c0d9519b94a4d16cd3477b84026b6add21"})))}get host(){return e(this)}static get watchers(){return{open:[{onOpenChange:0}]}}};d.style=":host{display:inline-block}.trigger{display:inline-flex}.panel{position:fixed;top:0;left:0;z-index:50;width:18rem;max-width:calc(100vw - 1rem);padding:1rem;font-family:var(--ui-font-sans);color:var(--ui-foreground);border:1px solid var(--ui-border);background:var(--ui-panel-strong);box-shadow:var(--ui-shadow-lg);backdrop-filter:blur(22px);border-radius:var(--ui-radius);visibility:hidden;opacity:0;transform:scale(0.96);transition:opacity var(--ui-duration) var(--ui-ease), transform var(--ui-duration) var(--ui-ease)}.panel.is-open{visibility:visible;opacity:1;transform:scale(1)}";export{d as ui_popover}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,h as s,H as t}from"./p-
|
|
1
|
+
import{r as i,h as s,H as t}from"./p-COlwaVJP.js";const e=class{constructor(s){i(this,s),this.visible=!1,this.spinnerSize="md"}render(){return this.visible?s(t,{role:"status","aria-live":"polite"},s("div",{class:"overlay"},s("ui-spinner",{size:this.spinnerSize}),this.label&&s("p",{class:"label"},this.label))):s(t,null)}};e.style=":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)}";export{e as ui_loading_overlay}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as r,h as i,H as
|
|
1
|
+
import{r as t,c as r,h as i,H as a}from"./p-COlwaVJP.js";const e=class{constructor(i){t(this,i),this.uiClose=r(this,"uiClose"),this.open=!1,this.side="right",this.onClose=()=>{this.open&&(this.open=!1,this.uiClose.emit())},this.onBackdropClick=t=>{t.target===this.dialogEl&&this.close()}}onOpenChange(t){this.sync(t)}componentDidLoad(){this.sync(this.open)}sync(t){this.dialogEl&&(t&&!this.dialogEl.open?this.dialogEl.showModal():!t&&this.dialogEl.open&&this.dialogEl.close())}async show(){this.open=!0}async close(){this.open=!1}render(){return i(a,{key:"54cb020ae5aa52d797edea5e2fe52c176255a6db"},i("dialog",{key:"20ffadd987ef28b2f5a0907258e325a6aa12eead",class:`drawer side-${this.side}`,ref:t=>this.dialogEl=t,onClose:this.onClose,onCancel:this.onClose,onClick:this.onBackdropClick},i("div",{key:"a2acad5175956ee2033fec822c7448ec290976fc",class:"content"},i("slot",{key:"0aa72c14305d3766a4b860ebfd69d5d74825b8a2"}))))}static get watchers(){return{open:[{onOpenChange:0}]}}};e.style=":host{display:contents}.drawer{position:fixed;margin:0;padding:0;border:none;max-width:none;max-height:none;background:transparent;overflow:visible}.drawer::backdrop{background:var(--ui-overlay);backdrop-filter:blur(2px)}.side-right{top:0;right:0;bottom:0;height:100%;width:min(24rem, 100%)}.side-bottom{left:0;right:0;bottom:0;width:100%;max-height:85vh}.content{box-sizing:border-box;width:100%;height:100%;padding:1.5rem;overflow:auto;font-family:var(--ui-font-sans);color:var(--ui-foreground);border:1px solid var(--ui-border);background:var(--ui-panel-strong);box-shadow:var(--ui-shadow-lg);backdrop-filter:blur(22px)}.side-right .content{border-top-left-radius:var(--ui-radius-xl);border-bottom-left-radius:var(--ui-radius-xl)}.side-bottom .content{border-top-left-radius:var(--ui-radius-xl);border-top-right-radius:var(--ui-radius-xl)}.side-right[open]{animation:ui-drawer-slide-right var(--ui-duration) var(--ui-ease)}.side-bottom[open]{animation:ui-drawer-slide-bottom var(--ui-duration) var(--ui-ease)}@keyframes ui-drawer-slide-right{from{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes ui-drawer-slide-bottom{from{transform:translateY(100%)}to{transform:translateY(0)}}";export{e as ui_drawer}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as i,h as s,H as e,a as r}from"./p-COlwaVJP.js";const a=class{constructor(s){t(this,s),this.uiChange=i(this,"uiChange"),this.loop=!1,this.autoplay=0,this.showArrows=!0,this.showDots=!0,this.index=0,this.count=0,this.syncCount=()=>{const t=this.host.shadowRoot?.querySelector("slot");t&&(this.count=t.assignedElements().length,this.index>this.count-1&&(this.index=Math.max(0,this.count-1)))},this.handleMouseEnter=()=>{this.autoplay>0&&this.stopAutoplay()},this.handleMouseLeave=()=>{this.autoplay>0&&this.startAutoplay()}}componentDidLoad(){this.syncCount(),this.startAutoplay()}disconnectedCallback(){this.stopAutoplay()}startAutoplay(){this.autoplay>0&&(this.stopAutoplay(),this.timer=setInterval((()=>{this.advance()}),this.autoplay))}stopAutoplay(){this.timer&&(clearInterval(this.timer),this.timer=void 0)}advance(){this.count<1||this.goTo((this.index+1)%this.count)}setIndex(t){if(this.count<1)return;let i=t;i=this.loop?(t%this.count+this.count)%this.count:Math.max(0,Math.min(t,this.count-1)),i!==this.index&&(this.index=i,this.uiChange.emit(this.index))}async next(){this.setIndex(this.index+1)}async prev(){this.setIndex(this.index-1)}async goTo(t){this.setIndex(t)}render(){const t=this.count>1,i=this.index<=0,r=this.index>=this.count-1;return s(e,{key:"8674262ced2aef3587cb5b5148628776c3a438df"},s("div",{key:"f75c9ec8e3d6aa8635e3001a108795f2b0ac8075",class:"viewport",onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},s("div",{key:"eb654e625366fbeef0b91dd9d86fabe82bada130",class:"track",style:{transform:`translateX(${100*-this.index}%)`}},s("slot",{key:"23be2c8067e38b9092bbe6d3ef7b59efb91176c2",onSlotchange:this.syncCount})),this.showArrows&&t&&s("button",{key:"a079b10d78e03a780cccd34a18cb677890c79b8d",type:"button",class:"arrow arrow-prev","aria-label":"Slide anterior",disabled:!this.loop&&i,onClick:()=>this.prev()},"‹"),this.showArrows&&t&&s("button",{key:"baa6cdc3055631a766afeffc2dadf3d565afaf71",type:"button",class:"arrow arrow-next","aria-label":"Próximo slide",disabled:!this.loop&&r,onClick:()=>this.next()},"›"),this.showDots&&t&&s("div",{key:"3b381517e47193aece7e50c7f134f3e70ea2eda6",class:"dots"},Array.from({length:this.count}).map(((t,i)=>s("button",{key:i,type:"button",class:{dot:!0,active:i===this.index},"aria-label":`Ir para slide ${i+1}`,"aria-current":i===this.index?"true":"false",onClick:()=>this.goTo(i)}))))))}get host(){return r(this)}};a.style=":host{display:block}.viewport{position:relative;overflow:hidden;border:1px solid var(--ui-border);border-radius:var(--ui-radius-lg);font-family:var(--ui-font-sans);color:var(--ui-foreground)}.track{display:flex;transition:transform 0.4s var(--ui-ease);will-change:transform}::slotted(*){flex:0 0 100%;width:100%}.arrow{position:absolute;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;border-radius:var(--ui-radius-full);border:1px solid var(--ui-border);background:var(--ui-panel-strong);color:var(--ui-foreground);font-size:1.5rem;line-height:1;cursor:pointer;backdrop-filter:blur(22px);box-shadow:var(--ui-shadow);outline:none;transition:all var(--ui-duration) var(--ui-ease)}.arrow:hover{border-color:var(--ui-border-strong)}.arrow:focus-visible{box-shadow:0 0 0 2px var(--ui-ring)}.arrow:disabled{opacity:0.4;pointer-events:none}.arrow-prev{left:0.5rem}.arrow-next{right:0.5rem}.dots{position:absolute;left:0;right:0;bottom:0.75rem;display:flex;align-items:center;justify-content:center;gap:0.5rem}.dot{width:0.625rem;height:0.625rem;padding:0;border:none;border-radius:var(--ui-radius-full);background:var(--ui-chip);cursor:pointer;outline:none;transition:all var(--ui-duration) var(--ui-ease)}.dot:hover{filter:brightness(1.15)}.dot:focus-visible{box-shadow:0 0 0 2px var(--ui-ring)}.dot.active{background:var(--ui-accent)}";export{a as ui_carousel}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,c as t,h as s,H as e,a as r}from"./p-
|
|
1
|
+
import{r as i,c as t,h as s,H as e,a as r}from"./p-COlwaVJP.js";import{a as o,c as a,o as h,f as n,s as d,b as c}from"./p-DDtwbwIl.js";const l=class{constructor(s){i(this,s),this.uiChange=t(this,"uiChange"),this.options=[],this.value="",this.placeholder="",this.query="",this.open=!1,this.activeIndex=-1,this.listId=`ui-combobox-list-${Math.random().toString(36).slice(2,9)}`,this.onInput=i=>{this.query=i.target.value,this.activeIndex=-1,this.setOpen(!0)},this.onFocus=()=>{this.setOpen(!0)},this.onKeydown=i=>{const t=this.filtered;switch(i.key){case"ArrowDown":if(i.preventDefault(),!this.open)return void this.setOpen(!0);if(0===t.length)return;this.activeIndex=(this.activeIndex+1)%t.length;break;case"ArrowUp":if(i.preventDefault(),0===t.length)return;this.activeIndex=(this.activeIndex-1+t.length)%t.length;break;case"Enter":this.open&&this.activeIndex>=0&&t[this.activeIndex]&&(i.preventDefault(),this.select(t[this.activeIndex]));break;case"Escape":this.open&&(i.preventDefault(),this.setOpen(!1))}},this.onDocumentClick=i=>{this.open&&(i.composedPath().includes(this.host)||this.setOpen(!1))}}componentWillLoad(){const i=this.options.find((i=>i.value===this.value));i&&(this.query=i.label)}disconnectedCallback(){this.stop(),document.removeEventListener("click",this.onDocumentClick)}get filtered(){const i=this.query.toLowerCase();return this.options.filter((t=>t.label.toLowerCase().includes(i)))}setOpen(i){this.open!==i&&(this.open=i,i?(requestAnimationFrame((()=>this.start())),document.addEventListener("click",this.onDocumentClick)):(this.stop(),this.activeIndex=-1,document.removeEventListener("click",this.onDocumentClick)))}start(){this.inputEl&&this.listEl&&(this.stop(),this.cleanup=o(this.inputEl,this.listEl,(()=>{this.inputEl&&this.listEl&&a(this.inputEl,this.listEl,{placement:"bottom-start",middleware:[h(6),n(),d({padding:8}),c({apply:({rects:i,elements:t})=>{Object.assign(t.floating.style,{width:`${i.reference.width}px`})}})]}).then((({x:i,y:t})=>{Object.assign(this.listEl.style,{left:`${i}px`,top:`${t}px`})}))})))}stop(){this.cleanup?.(),this.cleanup=void 0}select(i){this.value=i.value,this.query=i.label,this.setOpen(!1),this.uiChange.emit(i.value)}render(){const i=this.filtered;return s(e,{key:"64d332f96d0cb39e1889eb56dbf448f67e5ed240"},s("div",{key:"30f829b5eff180aa97a2bbb2f90a4e289768df71",class:"field"},s("input",{key:"f6df95047db674d2e49d34fed6057cffc86eab49",class:"input",type:"text",role:"combobox",value:this.query,placeholder:this.placeholder,autocomplete:"off","aria-expanded":this.open?"true":"false","aria-controls":this.listId,"aria-autocomplete":"list",ref:i=>this.inputEl=i,onInput:this.onInput,onFocus:this.onFocus,onKeyDown:this.onKeydown})),s("div",{key:"de55c7ad59dfa3e35aeac8799366e3ee849d1398",id:this.listId,class:{list:!0,"is-open":this.open},role:"listbox",ref:i=>this.listEl=i},0===i.length?s("div",{class:"empty"},"Nenhum resultado"):i.map(((i,t)=>s("div",{class:{option:!0,active:t===this.activeIndex,selected:i.value===this.value},role:"option","aria-selected":i.value===this.value?"true":"false",onMouseEnter:()=>this.activeIndex=t,onMouseDown:t=>{t.preventDefault(),this.select(i)}},i.label)))))}get host(){return r(this)}};l.style=":host{display:block}.field{display:flex;align-items:center;gap:0.5rem;width:100%;height:2.75rem;padding:0 0.875rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius-sm);background:var(--ui-panel);backdrop-filter:blur(22px);transition:all var(--ui-duration) var(--ui-ease);box-sizing:border-box}.field:hover{border-color:var(--ui-border-strong)}.field:focus-within{border-color:var(--ui-accent);box-shadow:0 0 0 2px var(--ui-ring)}.input{flex:1;min-width:0;height:100%;border:none;background:transparent;color:var(--ui-foreground);font-family:var(--ui-font-sans);font-size:0.875rem;outline:none}.input::placeholder{color:var(--ui-text-faint)}.list{position:fixed;top:0;left:0;z-index:50;max-height:16rem;overflow-y:auto;padding:0.25rem;font-family:var(--ui-font-sans);color:var(--ui-foreground);border:1px solid var(--ui-border);background:var(--ui-panel-strong);box-shadow:var(--ui-shadow-lg);backdrop-filter:blur(22px);border-radius:var(--ui-radius);visibility:hidden;opacity:0;transition:opacity var(--ui-duration) var(--ui-ease), visibility var(--ui-duration) var(--ui-ease)}.list.is-open{visibility:visible;opacity:1}.option{padding:0.5rem 0.75rem;font-size:0.875rem;color:var(--ui-foreground);border-radius:var(--ui-radius-sm);cursor:pointer;transition:background var(--ui-duration) var(--ui-ease)}.option.active{background:var(--ui-chip)}.option.selected{color:var(--ui-accent)}.empty{padding:0.5rem 0.75rem;font-size:0.875rem;color:var(--ui-text-faint)}";export{l as ui_combobox}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,h as t,H as s,a as e}from"./p-
|
|
1
|
+
import{r as i,h as t,H as s,a as e}from"./p-COlwaVJP.js";import{a as o,c as r,o as a,f as h,s as n}from"./p-DDtwbwIl.js";const d=class{constructor(t){i(this,t),this.content="",this.placement="top",this.openDelay=200,this.visible=!1,this.onEnter=()=>{this.timer&&clearTimeout(this.timer),this.timer=setTimeout((()=>{this.visible=!0,requestAnimationFrame((()=>this.start()))}),this.openDelay)},this.onLeave=()=>{this.timer&&clearTimeout(this.timer),this.visible=!1,this.stop()}}disconnectedCallback(){this.stop(),this.timer&&clearTimeout(this.timer)}start(){this.triggerEl&&this.floatingEl&&(this.stop(),this.cleanup=o(this.triggerEl,this.floatingEl,(()=>{this.triggerEl&&this.floatingEl&&r(this.triggerEl,this.floatingEl,{placement:this.placement,middleware:[a(8),h(),n({padding:8})]}).then((({x:i,y:t})=>{Object.assign(this.floatingEl.style,{left:`${i}px`,top:`${t}px`})}))})))}stop(){this.cleanup?.(),this.cleanup=void 0}render(){return t(s,{key:"88657ff32b15ba3dfe5579885db65f955862a298",onMouseEnter:this.onEnter,onMouseLeave:this.onLeave,onFocusin:this.onEnter,onFocusout:this.onLeave},t("span",{key:"f336f26ee150e24117c28e926c59da7bec1c725a",class:"trigger",ref:i=>this.triggerEl=i},t("slot",{key:"c42b26b5b73b6433b18bb561ce5e3458cd628810"})),t("div",{key:"b7497fe3b4638dca7980bdc201e6d7dfb296539d",class:{tooltip:!0,"is-visible":this.visible},role:"tooltip",ref:i=>this.floatingEl=i},this.content))}get host(){return e(this)}};d.style=":host{display:inline-block}.trigger{display:inline-flex}.tooltip{position:fixed;top:0;left:0;z-index:50;width:max-content;max-width:18rem;padding:0.4rem 0.7rem;font-family:var(--ui-font-sans);font-size:0.75rem;font-weight:500;line-height:1.4;color:var(--ui-foreground);background:color-mix(in srgb, var(--ui-background) 90%, var(--ui-foreground) 8%);border:1px solid var(--ui-border-strong);box-shadow:var(--ui-shadow-lg);border-radius:var(--ui-radius-sm);pointer-events:none;opacity:0;transform:scale(0.96);transition:opacity var(--ui-duration) var(--ui-ease), transform var(--ui-duration) var(--ui-ease)}.tooltip.is-visible{opacity:1;transform:scale(1)}";export{d as ui_tooltip}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,c as a,h as e,H as i}from"./p-
|
|
1
|
+
import{r,c as a,h as e,H as i}from"./p-COlwaVJP.js";const o=class{constructor(e){r(this,e),this.uiRemove=a(this,"uiRemove"),this.variant="default",this.dot=!1,this.removable=!1}render(){return e(i,{key:"30760a471c805c011e45b1ee2c59507de0774b3c"},e("span",{key:"f06905297a3c5641634104a014452737d34918cc",class:{badge:!0,[`variant-${this.variant}`]:!0}},this.dot&&e("span",{key:"255e4debacda174708abb165159347c6aeeffced",class:"dot"}),e("slot",{key:"e8fb22f25b0b1c805289e3e6d1108a1cb93b5e28"}),this.removable&&e("button",{key:"a30d3213f31780e4c3fa80d98b45ae539b711f43",class:"remove",type:"button","aria-label":"Remover",onClick:()=>this.uiRemove.emit()},e("svg",{key:"e57df3139096ea131fa1c3fbddf51f6507423346",viewBox:"0 0 24 24",width:"12",height:"12",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round"},e("path",{key:"da3810852846ac9cda68957d7dadcb3737be348d",d:"M18 6 6 18M6 6l12 12"})))))}};o.style=":host{display:inline-flex}.badge{display:inline-flex;align-items:center;gap:0.25rem;border:1px solid transparent;border-radius:var(--ui-radius-full);padding:0.25rem 0.75rem;font-family:var(--ui-font-sans);font-size:0.75rem;font-weight:500;backdrop-filter:blur(22px)}.variant-default{background:var(--ui-chip);border-color:var(--ui-border);color:var(--ui-text-soft)}.variant-solid{background:var(--ui-accent);color:var(--ui-accent-contrast)}.variant-outline{border-color:var(--ui-border-strong);color:var(--ui-foreground)}.variant-success{background:color-mix(in srgb, var(--ui-success) 15%, transparent);color:var(--ui-success)}.variant-warning{background:color-mix(in srgb, var(--ui-warning) 15%, transparent);color:var(--ui-warning)}.variant-danger{background:color-mix(in srgb, var(--ui-danger) 15%, transparent);color:var(--ui-danger)}.variant-info{background:color-mix(in srgb, var(--ui-info) 15%, transparent);color:var(--ui-info)}.dot{width:0.4rem;height:0.4rem;border-radius:var(--ui-radius-full);background:currentColor}.remove{display:inline-flex;align-items:center;justify-content:center;margin:0 -0.25rem 0 0.125rem;padding:0.125rem;border:none;border-radius:var(--ui-radius-full);background:transparent;color:inherit;cursor:pointer;opacity:0.7;transition:opacity var(--ui-duration) var(--ui-ease)}.remove:hover{opacity:1}";export{o as ui_badge}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,c as i,h as t,H as e}from"./p-
|
|
1
|
+
import{r as a,c as i,h as t,H as e}from"./p-COlwaVJP.js";const n=class{constructor(t){a(this,t),this.uiChange=i(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 i=this.clamp(a);i!==this.current&&(this.current=i,this.uiChange.emit(i))},this.buildRange=()=>{const a=Math.max(this.total,1),i=this.clamp(this.current),t=Math.max(this.siblings,0),e=Math.max(i-t,1),n=Math.min(i+t,a),r=new Set([1,a]);for(let a=e;a<=n;a+=1)r.add(a);const s=Array.from(r).filter((i=>i>=1&&i<=a)).sort(((a,i)=>a-i)),o=[];let l=0;for(const a of s)l&&a-l>1&&o.push("..."),o.push(a),l=a;return o}}render(){const a=Math.max(this.total,1),i=this.clamp(this.current),n=this.buildRange();return t(e,{key:"58d36fd4a14897c7a01573b6d626e4b6282fbeda"},t("nav",{key:"80f0b2a4dceba2aea9d6e957a694aaa82eb86823",class:"pagination",role:"navigation","aria-label":"Paginação"},t("button",{key:"9d102598d2216b0ddee599ba622287a62cd67598",class:"page nav",type:"button","aria-label":"Página anterior",disabled:i<=1,onClick:()=>this.go(i-1)},"‹"),n.map(((a,e)=>{if("..."===a)return t("span",{key:`ellipsis-${e}`,class:"ellipsis","aria-hidden":"true"},"…");const n=a===i;return t("button",{key:a,class:{page:!0,active:n},type:"button","aria-label":`Página ${a}`,"aria-current":n?"page":void 0,onClick:()=>this.go(a)},a)})),t("button",{key:"8aa783a48a5ee13b6af2ad2e7b9e05d99f67df79",class:"page nav",type:"button","aria-label":"Próxima página",disabled:i>=a,onClick:()=>this.go(i+1)},"›")))}};n.style=":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}";export{n as ui_pagination}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as a,H as r}from"./p-COlwaVJP.js";const c=class{constructor(a){e(this,a)}render(){return a(r,{key:"940a8e9cc97673bb8142fe9be09a5744d6d61a06"},a("nav",{key:"d802871dd15c8ebbf21cbe40bb07a820b60c784a",class:"navbar"},a("div",{key:"ee85458ac62b6de535df4c7a3d258debbb35372e",class:"brand"},a("slot",{key:"f7748f6b9c8d2d8a72e4bae46e6d75689e19ffe2",name:"brand"})),a("div",{key:"60396a2ca70f078373108615989e0c4761d9d30b",class:"center"},a("slot",{key:"f260618d58d6e09fa5847489b1bc679813b29f2f"})),a("div",{key:"2ba5af2e7f45be35f1427249e68356c5445a513f",class:"actions"},a("slot",{key:"5cf983d9fb58a516bd0f70e9ec0cc6b48b6607ef",name:"actions"}))))}};c.style=":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}";export{c as ui_navbar}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,c as r,h as e,H as i}from"./p-COlwaVJP.js";const t=class{constructor(e){a(this,e),this.uiChange=r(this,"uiChange"),this.value="",this.items=[],this.select=a=>{a!==this.value&&(this.value=a,this.uiChange.emit(a))}}render(){return e(i,{key:"41f5832ef24470811c6c1d64958bc3c2cb56bc2b"},e("div",{key:"fed127dfc1cea76ff1bd2a1ce4b6091244c89f4e",class:"tablist",role:"tablist"},this.items.map((a=>{const r=a.value===this.value;return e("button",{key:a.value,class:{tab:!0,active:r},type:"button",role:"tab","aria-selected":r?"true":"false",onClick:()=>this.select(a.value)},a.label)}))),e("div",{key:"533f8c0dafcb55782d13c42d864cb1eb508b4d20",class:"panel",role:"tabpanel"},e("slot",{key:"dd75f808647deeb70991a366dd91d9ac65f78268",name:this.value})))}};t.style=":host{display:block;font-family:var(--ui-font-sans)}.tablist{display:inline-flex;gap:0.25rem;padding:0.25rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius-full);background:var(--ui-chip)}.tab{appearance:none;border:none;padding:0.375rem 0.875rem;border-radius:var(--ui-radius-full);background:transparent;color:var(--ui-text-muted);font:inherit;font-size:0.875rem;font-weight:500;cursor:pointer;outline:none;transition:background var(--ui-duration) var(--ui-ease), color var(--ui-duration) var(--ui-ease)}.tab:focus-visible{box-shadow:0 0 0 2px var(--ui-background), 0 0 0 4px var(--ui-ring)}.tab: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}";export{t as ui_tabs}
|