@andespindola/ui-core 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{floating-ui.dom-BPemvNRD.js → floating-ui.dom-BZk7Blsu.js} +93 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ui-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/ui-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ui-avatar-group.cjs.entry.js +1 -1
- package/dist/cjs/ui-avatar.cjs.entry.js +1 -1
- package/dist/cjs/ui-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/ui-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ui-button.cjs.entry.js +1 -1
- package/dist/cjs/ui-card.cjs.entry.js +1 -1
- package/dist/cjs/ui-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/ui-combobox.cjs.entry.js +153 -0
- package/dist/cjs/ui-container.cjs.entry.js +1 -1
- package/dist/cjs/ui-date-picker.cjs.entry.js +171 -0
- package/dist/cjs/ui-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ui-drawer.cjs.entry.js +1 -1
- package/dist/cjs/ui-dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/ui-dropdown-menu.cjs.entry.js +2 -2
- package/dist/cjs/ui-field.cjs.entry.js +1 -1
- package/dist/cjs/ui-file-upload.cjs.entry.js +57 -0
- package/dist/cjs/ui-grid.cjs.entry.js +1 -1
- package/dist/cjs/ui-input.cjs.entry.js +1 -1
- package/dist/cjs/ui-label.cjs.entry.js +1 -1
- package/dist/cjs/ui-navbar.cjs.entry.js +17 -0
- package/dist/cjs/ui-pagination.cjs.entry.js +2 -2
- package/dist/cjs/ui-popover.cjs.entry.js +2 -2
- package/dist/cjs/ui-progress-circular.cjs.entry.js +44 -0
- package/dist/cjs/ui-progress.cjs.entry.js +1 -1
- package/dist/cjs/ui-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/ui-rating.cjs.entry.js +45 -0
- package/dist/cjs/ui-reveal.cjs.entry.js +1 -1
- package/dist/cjs/ui-scroll-progress.cjs.entry.js +1 -1
- package/dist/cjs/ui-section.cjs.entry.js +1 -1
- package/dist/cjs/ui-segmented.cjs.entry.js +1 -1
- package/dist/cjs/ui-select.cjs.entry.js +1 -1
- package/dist/cjs/ui-separator.cjs.entry.js +1 -1
- package/dist/cjs/ui-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/ui-slider.cjs.entry.js +1 -1
- package/dist/cjs/ui-spinner.cjs.entry.js +1 -1
- package/dist/cjs/ui-stack.cjs.entry.js +1 -1
- package/dist/cjs/ui-stat.cjs.entry.js +1 -1
- package/dist/cjs/ui-switch.cjs.entry.js +1 -1
- package/dist/cjs/ui-table.cjs.entry.js +25 -0
- package/dist/cjs/ui-tabs.cjs.entry.js +2 -2
- package/dist/cjs/ui-textarea.cjs.entry.js +1 -1
- package/dist/cjs/ui-theme-toggle.cjs.entry.js +1 -1
- package/dist/cjs/ui-toast.cjs.entry.js +1 -1
- package/dist/cjs/ui-toaster.cjs.entry.js +1 -1
- package/dist/cjs/ui-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/uikit.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +7 -0
- package/dist/collection/components/ui-accordion/ui-accordion.js +1 -1
- package/dist/collection/components/ui-accordion-item/ui-accordion-item.js +1 -1
- package/dist/collection/components/ui-avatar/ui-avatar.js +1 -1
- package/dist/collection/components/ui-avatar-group/ui-avatar-group.js +1 -1
- package/dist/collection/components/ui-breadcrumb/ui-breadcrumb.js +1 -1
- package/dist/collection/components/ui-breadcrumb-item/ui-breadcrumb-item.js +1 -1
- package/dist/collection/components/ui-button/ui-button.css +2 -0
- package/dist/collection/components/ui-card/ui-card.js +1 -1
- package/dist/collection/components/ui-checkbox/ui-checkbox.js +1 -1
- package/dist/collection/components/ui-combobox/ui-combobox.css +93 -0
- package/dist/collection/components/ui-combobox/ui-combobox.js +248 -0
- package/dist/collection/components/ui-container/ui-container.js +1 -1
- package/dist/collection/components/ui-date-picker/ui-date-picker.css +176 -0
- package/dist/collection/components/ui-date-picker/ui-date-picker.js +243 -0
- package/dist/collection/components/ui-dialog/ui-dialog.js +1 -1
- package/dist/collection/components/ui-drawer/ui-drawer.js +1 -1
- package/dist/collection/components/ui-dropdown-item/ui-dropdown-item.js +1 -1
- package/dist/collection/components/ui-dropdown-menu/ui-dropdown-menu.js +1 -1
- package/dist/collection/components/ui-field/ui-field.js +1 -1
- package/dist/collection/components/ui-file-upload/ui-file-upload.css +79 -0
- package/dist/collection/components/ui-file-upload/ui-file-upload.js +151 -0
- package/dist/collection/components/ui-grid/ui-grid.js +1 -1
- package/dist/collection/components/ui-input/ui-input.js +1 -1
- package/dist/collection/components/ui-label/ui-label.js +1 -1
- package/dist/collection/components/ui-navbar/ui-navbar.css +36 -0
- package/dist/collection/components/ui-navbar/ui-navbar.js +18 -0
- package/dist/collection/components/ui-pagination/ui-pagination.js +2 -2
- package/dist/collection/components/ui-popover/ui-popover.js +1 -1
- package/dist/collection/components/ui-progress/ui-progress.js +1 -1
- package/dist/collection/components/ui-progress-circular/ui-progress-circular.css +46 -0
- package/dist/collection/components/ui-progress-circular/ui-progress-circular.js +171 -0
- package/dist/collection/components/ui-radio-group/ui-radio-group.js +1 -1
- package/dist/collection/components/ui-rating/ui-rating.css +52 -0
- package/dist/collection/components/ui-rating/ui-rating.js +134 -0
- package/dist/collection/components/ui-reveal/ui-reveal.js +1 -1
- package/dist/collection/components/ui-scroll-progress/ui-scroll-progress.js +1 -1
- package/dist/collection/components/ui-section/ui-section.js +1 -1
- package/dist/collection/components/ui-segmented/ui-segmented.js +1 -1
- package/dist/collection/components/ui-select/ui-select.js +1 -1
- package/dist/collection/components/ui-separator/ui-separator.js +1 -1
- package/dist/collection/components/ui-skeleton/ui-skeleton.js +1 -1
- package/dist/collection/components/ui-slider/ui-slider.js +1 -1
- package/dist/collection/components/ui-spinner/ui-spinner.js +1 -1
- package/dist/collection/components/ui-stack/ui-stack.js +1 -1
- package/dist/collection/components/ui-stat/ui-stat.js +1 -1
- package/dist/collection/components/ui-switch/ui-switch.js +1 -1
- package/dist/collection/components/ui-table/ui-table.css +46 -0
- package/dist/collection/components/ui-table/ui-table.js +119 -0
- package/dist/collection/components/ui-tabs/ui-tabs.js +2 -2
- package/dist/collection/components/ui-textarea/ui-textarea.js +1 -1
- package/dist/collection/components/ui-theme-toggle/ui-theme-toggle.js +1 -1
- package/dist/collection/components/ui-toast/ui-toast.js +1 -1
- package/dist/collection/components/ui-toaster/ui-toaster.js +1 -1
- package/dist/collection/components/ui-tooltip/ui-tooltip.js +1 -1
- package/dist/components/{p-CgsjJD8o.js → p-DDJE__UC.js} +1 -1
- package/dist/{uikit/p-CyBRmmbs.js → components/p-DDtwbwIl.js} +1 -1
- package/dist/components/{p-BwNtNvTb.js → p-DUT2Q8Df.js} +1 -1
- package/dist/components/ui-accordion-item.js +1 -1
- package/dist/components/ui-accordion.js +1 -1
- package/dist/components/ui-avatar-group.js +1 -1
- package/dist/components/ui-avatar.js +1 -1
- package/dist/components/ui-breadcrumb-item.js +1 -1
- package/dist/components/ui-breadcrumb.js +1 -1
- package/dist/components/ui-button.js +1 -1
- package/dist/components/ui-card.js +1 -1
- package/dist/components/ui-checkbox.js +1 -1
- package/dist/components/ui-combobox.d.ts +11 -0
- package/dist/components/ui-combobox.js +1 -0
- package/dist/components/ui-container.js +1 -1
- package/dist/components/ui-date-picker.d.ts +11 -0
- package/dist/components/ui-date-picker.js +1 -0
- package/dist/components/ui-dialog.js +1 -1
- package/dist/components/ui-drawer.js +1 -1
- package/dist/components/ui-dropdown-item.js +1 -1
- package/dist/components/ui-dropdown-menu.js +1 -1
- package/dist/components/ui-field.js +1 -1
- package/dist/components/ui-file-upload.d.ts +11 -0
- package/dist/components/ui-file-upload.js +1 -0
- package/dist/components/ui-grid.js +1 -1
- package/dist/components/ui-input.js +1 -1
- package/dist/components/ui-label.js +1 -1
- package/dist/components/ui-loading-overlay.js +1 -1
- package/dist/components/ui-navbar.d.ts +11 -0
- package/dist/components/ui-navbar.js +1 -0
- package/dist/components/ui-pagination.js +1 -1
- package/dist/components/ui-popover.js +1 -1
- package/dist/components/ui-progress-circular.d.ts +11 -0
- package/dist/components/ui-progress-circular.js +1 -0
- package/dist/components/ui-progress.js +1 -1
- package/dist/components/ui-radio-group.js +1 -1
- package/dist/components/ui-rating.d.ts +11 -0
- package/dist/components/ui-rating.js +1 -0
- package/dist/components/ui-reveal.js +1 -1
- package/dist/components/ui-scroll-progress.js +1 -1
- package/dist/components/ui-section.js +1 -1
- package/dist/components/ui-segmented.js +1 -1
- package/dist/components/ui-select.js +1 -1
- package/dist/components/ui-separator.js +1 -1
- package/dist/components/ui-skeleton.js +1 -1
- package/dist/components/ui-slider.js +1 -1
- package/dist/components/ui-spinner.js +1 -1
- package/dist/components/ui-stack.js +1 -1
- package/dist/components/ui-stat.js +1 -1
- package/dist/components/ui-switch.js +1 -1
- package/dist/components/ui-table.d.ts +11 -0
- package/dist/components/ui-table.js +1 -0
- package/dist/components/ui-tabs.js +1 -1
- package/dist/components/ui-textarea.js +1 -1
- package/dist/components/ui-theme-toggle.js +1 -1
- package/dist/components/ui-toast.js +1 -1
- package/dist/components/ui-toaster.js +1 -1
- package/dist/components/ui-tooltip.js +1 -1
- package/dist/esm/{floating-ui.dom-CyBRmmbs.js → floating-ui.dom-DDtwbwIl.js} +93 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ui-accordion-item.entry.js +1 -1
- package/dist/esm/ui-accordion.entry.js +1 -1
- package/dist/esm/ui-avatar-group.entry.js +1 -1
- package/dist/esm/ui-avatar.entry.js +1 -1
- package/dist/esm/ui-breadcrumb-item.entry.js +1 -1
- package/dist/esm/ui-breadcrumb.entry.js +1 -1
- package/dist/esm/ui-button.entry.js +1 -1
- package/dist/esm/ui-card.entry.js +1 -1
- package/dist/esm/ui-checkbox.entry.js +1 -1
- package/dist/esm/ui-combobox.entry.js +151 -0
- package/dist/esm/ui-container.entry.js +1 -1
- package/dist/esm/ui-date-picker.entry.js +169 -0
- package/dist/esm/ui-dialog.entry.js +1 -1
- package/dist/esm/ui-drawer.entry.js +1 -1
- package/dist/esm/ui-dropdown-item.entry.js +1 -1
- package/dist/esm/ui-dropdown-menu.entry.js +2 -2
- package/dist/esm/ui-field.entry.js +1 -1
- package/dist/esm/ui-file-upload.entry.js +55 -0
- package/dist/esm/ui-grid.entry.js +1 -1
- package/dist/esm/ui-input.entry.js +1 -1
- package/dist/esm/ui-label.entry.js +1 -1
- package/dist/esm/ui-navbar.entry.js +15 -0
- package/dist/esm/ui-pagination.entry.js +2 -2
- package/dist/esm/ui-popover.entry.js +2 -2
- package/dist/esm/ui-progress-circular.entry.js +42 -0
- package/dist/esm/ui-progress.entry.js +1 -1
- package/dist/esm/ui-radio-group.entry.js +1 -1
- package/dist/esm/ui-rating.entry.js +43 -0
- package/dist/esm/ui-reveal.entry.js +1 -1
- package/dist/esm/ui-scroll-progress.entry.js +1 -1
- package/dist/esm/ui-section.entry.js +1 -1
- package/dist/esm/ui-segmented.entry.js +1 -1
- package/dist/esm/ui-select.entry.js +1 -1
- package/dist/esm/ui-separator.entry.js +1 -1
- package/dist/esm/ui-skeleton.entry.js +1 -1
- package/dist/esm/ui-slider.entry.js +1 -1
- package/dist/esm/ui-spinner.entry.js +1 -1
- package/dist/esm/ui-stack.entry.js +1 -1
- package/dist/esm/ui-stat.entry.js +1 -1
- package/dist/esm/ui-switch.entry.js +1 -1
- package/dist/esm/ui-table.entry.js +23 -0
- package/dist/esm/ui-tabs.entry.js +2 -2
- package/dist/esm/ui-textarea.entry.js +1 -1
- package/dist/esm/ui-theme-toggle.entry.js +1 -1
- package/dist/esm/ui-toast.entry.js +1 -1
- package/dist/esm/ui-toaster.entry.js +1 -1
- package/dist/esm/ui-tooltip.entry.js +2 -2
- package/dist/esm/uikit.js +1 -1
- package/dist/types/components/ui-combobox/ui-combobox.d.ts +38 -0
- package/dist/types/components/ui-date-picker/ui-date-picker.d.ts +42 -0
- package/dist/types/components/ui-file-upload/ui-file-upload.d.ts +24 -0
- package/dist/types/components/ui-navbar/ui-navbar.d.ts +3 -0
- package/dist/types/components/ui-progress-circular/ui-progress-circular.d.ts +17 -0
- package/dist/types/components/ui-rating/ui-rating.d.ts +17 -0
- package/dist/types/components/ui-table/ui-table.d.ts +16 -0
- package/dist/types/components.d.ts +409 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/uikit/{p-81b45a43.entry.js → p-008118af.entry.js} +1 -1
- package/dist/uikit/p-0715db16.entry.js +1 -0
- package/dist/uikit/p-10afa395.entry.js +1 -0
- package/dist/uikit/{p-25637424.entry.js → p-1449f229.entry.js} +1 -1
- package/dist/uikit/{p-567f7496.entry.js → p-1514ae37.entry.js} +1 -1
- package/dist/uikit/{p-cd0ec835.entry.js → p-1685191b.entry.js} +1 -1
- package/dist/uikit/p-1ef7948f.entry.js +1 -0
- package/dist/uikit/p-283e7623.entry.js +1 -0
- package/dist/uikit/p-2d92ce04.entry.js +1 -0
- package/dist/uikit/{p-faa98928.entry.js → p-3995852d.entry.js} +1 -1
- package/dist/uikit/p-3b1f92da.entry.js +1 -0
- package/dist/uikit/p-3fdfad2e.entry.js +1 -0
- package/dist/uikit/p-4044ebde.entry.js +1 -0
- package/dist/uikit/{p-95cd976e.entry.js → p-413cfbc6.entry.js} +1 -1
- package/dist/uikit/p-4ba0e4bc.entry.js +1 -0
- package/dist/uikit/{p-635862e6.entry.js → p-5e0bc34a.entry.js} +1 -1
- package/dist/uikit/{p-86ed6154.entry.js → p-60910c03.entry.js} +1 -1
- package/dist/uikit/{p-c73c1009.entry.js → p-62881327.entry.js} +1 -1
- package/dist/uikit/p-6c51a216.entry.js +1 -0
- package/dist/uikit/p-6d363a02.entry.js +1 -0
- package/dist/uikit/{p-67963692.entry.js → p-8535f5c9.entry.js} +1 -1
- package/dist/uikit/{p-2601d8b6.entry.js → p-88238a16.entry.js} +1 -1
- package/dist/uikit/{p-595e146f.entry.js → p-894fc85f.entry.js} +1 -1
- package/dist/uikit/p-8b882367.entry.js +1 -0
- package/dist/uikit/{p-12db6a6e.entry.js → p-9310b73b.entry.js} +1 -1
- package/dist/uikit/{p-1d016ea4.entry.js → p-99b7e461.entry.js} +1 -1
- package/dist/uikit/p-9d8d420e.entry.js +1 -0
- package/dist/uikit/{p-55a23f91.entry.js → p-9dbe7e12.entry.js} +1 -1
- package/dist/uikit/{p-09895cd0.entry.js → p-9f09fcec.entry.js} +1 -1
- package/dist/{components/p-CyBRmmbs.js → uikit/p-DDtwbwIl.js} +1 -1
- package/dist/uikit/{p-a977a0db.entry.js → p-a3d819cd.entry.js} +1 -1
- package/dist/uikit/{p-979f6178.entry.js → p-b0f2b1c8.entry.js} +1 -1
- package/dist/uikit/{p-3996590f.entry.js → p-b7e30398.entry.js} +1 -1
- package/dist/uikit/p-bac2c523.entry.js +1 -0
- package/dist/uikit/p-bbc718ef.entry.js +1 -0
- package/dist/uikit/{p-74b60a60.entry.js → p-bdd30484.entry.js} +1 -1
- package/dist/uikit/{p-fd832f52.entry.js → p-c1a9db7c.entry.js} +1 -1
- package/dist/uikit/p-c2138fb9.entry.js +1 -0
- package/dist/uikit/{p-ddd70374.entry.js → p-c94492ff.entry.js} +1 -1
- package/dist/uikit/{p-7f2c2924.entry.js → p-ccca2aeb.entry.js} +1 -1
- package/dist/uikit/{p-a01305a5.entry.js → p-d7ab158f.entry.js} +1 -1
- package/dist/uikit/p-da807078.entry.js +1 -0
- package/dist/uikit/p-e2065caa.entry.js +1 -0
- package/dist/uikit/{p-dca9f6f9.entry.js → p-f2983e94.entry.js} +1 -1
- package/dist/uikit/{p-2de05aac.entry.js → p-f4344cce.entry.js} +1 -1
- package/dist/uikit/{p-3fc062a6.entry.js → p-fb89d9a4.entry.js} +1 -1
- package/dist/uikit/p-fbe7806c.entry.js +1 -0
- package/dist/uikit/p-ffcd1faf.entry.js +1 -0
- package/dist/uikit/uikit.esm.js +1 -1
- package/package.json +1 -1
- package/dist/uikit/p-0cba0d11.entry.js +0 -1
- package/dist/uikit/p-6c0e9809.entry.js +0 -1
- package/dist/uikit/p-7a3d85da.entry.js +0 -1
- package/dist/uikit/p-94ad46a5.entry.js +0 -1
- package/dist/uikit/p-97d4dbf4.entry.js +0 -1
- package/dist/uikit/p-9a4dc343.entry.js +0 -1
- package/dist/uikit/p-9a9590b9.entry.js +0 -1
- package/dist/uikit/p-a080f46a.entry.js +0 -1
- package/dist/uikit/p-a92a7b19.entry.js +0 -1
- package/dist/uikit/p-b2df8437.entry.js +0 -1
- package/dist/uikit/p-d20452b4.entry.js +0 -1
- package/dist/uikit/p-d7021157.entry.js +0 -1
- package/dist/uikit/p-db07f9c5.entry.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-Cb1tfi_9.js');
|
|
4
|
-
var floatingUi_dom = require('./floating-ui.dom-
|
|
4
|
+
var floatingUi_dom = require('./floating-ui.dom-BZk7Blsu.js');
|
|
5
5
|
|
|
6
6
|
const uiDropdownMenuCss = () => `: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)}`;
|
|
7
7
|
|
|
@@ -83,7 +83,7 @@ const UiDropdownMenu = class {
|
|
|
83
83
|
this.cleanup = undefined;
|
|
84
84
|
}
|
|
85
85
|
render() {
|
|
86
|
-
return (index.h(index.Host, { key: '
|
|
86
|
+
return (index.h(index.Host, { key: '3224e4bac8bcfeda15aa6a5411a95574795231a8' }, index.h("span", { key: '5f0c50e0cb28c349469be5971ac0622f05d8dd19', class: "trigger", ref: (el) => (this.triggerEl = el), onClick: this.onTriggerClick }, index.h("slot", { key: '616a2917a7377d00414c8fe9745ef6c1297841fa', name: "trigger" })), index.h("div", { key: 'efa36b327e9ba6a89b939170c296a69ffbe18e90', class: { menu: true, "is-open": this.open }, role: "menu", ref: (el) => (this.floatingEl = el) }, index.h("slot", { key: 'aaffbbb6b8fe37072c8344d95a902dcb667416ba' }))));
|
|
87
87
|
}
|
|
88
88
|
get host() { return index.getElement(this); }
|
|
89
89
|
static get watchers() { return {
|
|
@@ -11,7 +11,7 @@ const UiField = class {
|
|
|
11
11
|
this.required = false;
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (index.h(index.Host, { key: '
|
|
14
|
+
return (index.h(index.Host, { key: 'f39f480b04be85c60eaa8821358b8921d52a7801' }, index.h("div", { key: '22303a73ad07ca344ef29c25947443e4d43e95fb', class: "field" }, this.label && (index.h("label", { key: 'bf355b9c884ee0393c91f4d3cdaa38ab6d0132dc', class: "label", htmlFor: this.fieldId }, this.label, this.required && (index.h("span", { key: '94614ebcee5a68e180e135f5294370e272836b90', class: "required", "aria-hidden": "true" }, " *")))), index.h("slot", { key: '7d4b22b2741540aac3b017b882f9abfdb67c7492' }), this.error ? (index.h("p", { class: "error", role: "alert" }, this.error)) : (this.description && index.h("p", { class: "description" }, this.description)))));
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
UiField.style = uiFieldCss();
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-Cb1tfi_9.js');
|
|
4
|
+
|
|
5
|
+
const uiFileUploadCss = () => `: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)}`;
|
|
6
|
+
|
|
7
|
+
const UiFileUpload = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
this.uiChange = index.createEvent(this, "uiChange");
|
|
11
|
+
/** Permite múltiplos arquivos. */
|
|
12
|
+
this.multiple = false;
|
|
13
|
+
/** Texto principal da zona de upload. */
|
|
14
|
+
this.label = "Arraste arquivos ou clique para enviar";
|
|
15
|
+
/** Arquivos atualmente selecionados. */
|
|
16
|
+
this.files = [];
|
|
17
|
+
/** Indica se há arraste sobre a zona. */
|
|
18
|
+
this.dragging = false;
|
|
19
|
+
this.openPicker = () => {
|
|
20
|
+
this.inputEl?.click();
|
|
21
|
+
};
|
|
22
|
+
this.onInputChange = (event) => {
|
|
23
|
+
const target = event.target;
|
|
24
|
+
this.setFiles(target.files);
|
|
25
|
+
};
|
|
26
|
+
this.onDragOver = (event) => {
|
|
27
|
+
event.preventDefault();
|
|
28
|
+
this.dragging = true;
|
|
29
|
+
};
|
|
30
|
+
this.onDragLeave = () => {
|
|
31
|
+
this.dragging = false;
|
|
32
|
+
};
|
|
33
|
+
this.onDrop = (event) => {
|
|
34
|
+
event.preventDefault();
|
|
35
|
+
this.dragging = false;
|
|
36
|
+
this.setFiles(event.dataTransfer?.files ?? null);
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
setFiles(list) {
|
|
40
|
+
if (!list)
|
|
41
|
+
return;
|
|
42
|
+
this.files = Array.from(list);
|
|
43
|
+
this.uiChange.emit(this.files);
|
|
44
|
+
}
|
|
45
|
+
formatSize(bytes) {
|
|
46
|
+
if (bytes >= 1024 * 1024) {
|
|
47
|
+
return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;
|
|
48
|
+
}
|
|
49
|
+
return `${(bytes / 1024).toFixed(1)} KB`;
|
|
50
|
+
}
|
|
51
|
+
render() {
|
|
52
|
+
return (index.h(index.Host, { key: '675f04b6b96fcdcd10f1344c20225501671e456b' }, index.h("button", { key: 'bcc1bb63fa043f0778f38370d919eabfb37930f5', type: "button", class: { dropzone: true, dragging: this.dragging }, onClick: this.openPicker, onDragOver: this.onDragOver, onDragLeave: this.onDragLeave, onDrop: this.onDrop }, index.h("svg", { key: 'a5836edcdf54284806125e0356f0a5d9bf3e075a', class: "icon", viewBox: "0 0 24 24", width: "2rem", height: "2rem", fill: "none", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }, index.h("path", { key: '093a31bf1257a470ad7447c20ff02f4ca3ce1957', d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }), index.h("polyline", { key: 'c1eaf0285b47c402fefba5d16d3e1418df06405e', points: "17 8 12 3 7 8" }), index.h("line", { key: '4655c3de2b0df216d7f520eb81dc8e8a839fde25', x1: "12", y1: "3", x2: "12", y2: "15" })), index.h("span", { key: 'afa948d851f9df7944a2c669f9e0432fb1bb017b', class: "label" }, this.label), this.accept ? (index.h("span", { class: "hint" }, this.accept)) : null), index.h("input", { key: 'd2b97f6a23121a701da7e9296f0f06d0175c6edc', type: "file", hidden: true, accept: this.accept, multiple: this.multiple, ref: (el) => (this.inputEl = el), onChange: this.onInputChange }), this.files.length > 0 ? (index.h("ul", { class: "files" }, this.files.map((file) => (index.h("li", { class: "file" }, index.h("span", { class: "file-name" }, file.name), index.h("span", { class: "file-size" }, this.formatSize(file.size))))))) : null));
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
UiFileUpload.style = uiFileUploadCss();
|
|
56
|
+
|
|
57
|
+
exports.ui_file_upload = UiFileUpload;
|
|
@@ -26,7 +26,7 @@ const UiGrid = class {
|
|
|
26
26
|
: `repeat(${this.columns}, minmax(0, 1fr))`,
|
|
27
27
|
gap: GAP[this.gap],
|
|
28
28
|
};
|
|
29
|
-
return (index.h(index.Host, { key: '
|
|
29
|
+
return (index.h(index.Host, { key: 'fa78c94117bc998616e3f30ef936527d5be66e13' }, index.h("div", { key: '8594c436b71b7f49434b3366ec70ea24c6b437dc', class: "grid", style: style }, index.h("slot", { key: '79bb94baa8dd68e82b88734d57f6e31b033a7f5f' }))));
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
UiGrid.style = uiGridCss();
|
|
@@ -35,7 +35,7 @@ const UiInput = class {
|
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
37
|
const showClear = this.clearable && !!this.value && !this.disabled;
|
|
38
|
-
return (index.h(index.Host, { key: '
|
|
38
|
+
return (index.h(index.Host, { key: 'cfe13feedab47ba88763ae727eb77ca15a0c52a3' }, index.h("div", { key: '7c79750f2ad87a55462a2416e9d46b4558f9b279', class: { field: true, invalid: this.invalid, disabled: this.disabled } }, index.h("span", { key: 'dafa1e0120f0de7a041ecfdb98db4203c1d67a28', class: "affix" }, index.h("slot", { key: '80aef681671784cd65f473975e441027d038c340', name: "prefix" })), index.h("input", { key: '8bad96710b4190784302fe9ce908f33aef0bc126', class: "input", type: this.type, value: this.value, name: this.name, placeholder: this.placeholder, disabled: this.disabled, "aria-invalid": this.invalid ? "true" : null, onInput: this.onInput, onChange: this.onChange }), showClear && (index.h("button", { key: '4b26604a6c1ff8004afa6ef0964490ba82553d61', class: "clear", type: "button", "aria-label": "Limpar", onClick: this.clear }, index.h("svg", { key: '87195594cef1db73b86f1117233fdef13ee9fa1a', viewBox: "0 0 24 24", width: "14", height: "14", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round" }, index.h("path", { key: '66be8eddf982847bf22f59f9113b66b4e47ca005', d: "M18 6 6 18M6 6l12 12" })))), index.h("span", { key: '749bf6ba578fd22b2d6c34b0fb7522f5a87a33e3', class: "affix" }, index.h("slot", { key: 'b226025774cedd33f915c6155061044b272d77a1', name: "suffix" })))));
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
UiInput.style = uiInputCss();
|
|
@@ -9,7 +9,7 @@ const UiLabel = class {
|
|
|
9
9
|
index.registerInstance(this, hostRef);
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (index.h(index.Host, { key: '
|
|
12
|
+
return (index.h(index.Host, { key: '45a53d43b29ba78ac9852334536e9d7cb93e9c3c' }, index.h("label", { key: 'f8209140ec401f7a055d398181a421f281307a9b', class: "label" }, index.h("slot", { key: '50ba3bbce082e8f0c402c7acb3cd25ce822e3728' }))));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
UiLabel.style = uiLabelCss();
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-Cb1tfi_9.js');
|
|
4
|
+
|
|
5
|
+
const uiNavbarCss = () => `: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}`;
|
|
6
|
+
|
|
7
|
+
const UiNavbar = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
}
|
|
11
|
+
render() {
|
|
12
|
+
return (index.h(index.Host, { key: 'db6c3b0a7eee0812d931d4fb4c8b5ce444749b5e' }, index.h("nav", { key: '990bc62b051ca9f24ee5be4bf4e383873e5d8269', class: "navbar" }, index.h("div", { key: '999b46029fb0e0b6f5a04942d9326b30f7b0e392', class: "brand" }, index.h("slot", { key: '189a4521a16efdec4eee5c433b17a71028f05c90', name: "brand" })), index.h("div", { key: 'b3e129ad603ed6d32ec676aab96cf39e51834dec', class: "center" }, index.h("slot", { key: 'dc1fff1b9c536df2d88b5e92a83634d1e3bca384' })), index.h("div", { key: '854fac1322e96c7c67bf204af17ea665494c0fc5', class: "actions" }, index.h("slot", { key: '0f07b817547c866df0137f8667790b3caa65bea8', name: "actions" })))));
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
UiNavbar.style = uiNavbarCss();
|
|
16
|
+
|
|
17
|
+
exports.ui_navbar = UiNavbar;
|
|
@@ -49,13 +49,13 @@ const UiPagination = class {
|
|
|
49
49
|
const total = Math.max(this.total, 1);
|
|
50
50
|
const current = this.clamp(this.current);
|
|
51
51
|
const entries = this.buildRange();
|
|
52
|
-
return (index.h(index.Host, { key: '
|
|
52
|
+
return (index.h(index.Host, { key: '23be36b9c734a9c43e9644337a58e4ede719215d' }, index.h("nav", { key: '618c7c85d1ea8f93bdd058d7ba4e61a62991e2d6', class: "pagination", role: "navigation", "aria-label": "Pagina\u00E7\u00E3o" }, index.h("button", { key: 'a9c0cac9d2b2fb6c61e9627158efd08f1e20f597', class: "page nav", type: "button", "aria-label": "P\u00E1gina anterior", disabled: current <= 1, onClick: () => this.go(current - 1) }, "\u2039"), entries.map((entry, index$1) => {
|
|
53
53
|
if (entry === "...") {
|
|
54
54
|
return (index.h("span", { key: `ellipsis-${index$1}`, class: "ellipsis", "aria-hidden": "true" }, "\u2026"));
|
|
55
55
|
}
|
|
56
56
|
const active = entry === current;
|
|
57
57
|
return (index.h("button", { key: entry, class: { page: true, active }, type: "button", "aria-label": `Página ${entry}`, "aria-current": active ? "page" : undefined, onClick: () => this.go(entry) }, entry));
|
|
58
|
-
}), index.h("button", { key: '
|
|
58
|
+
}), index.h("button", { key: '38fb86bda60934768f24c117e8586acb35f88513', class: "page nav", type: "button", "aria-label": "Pr\u00F3xima p\u00E1gina", disabled: current >= total, onClick: () => this.go(current + 1) }, "\u203A"))));
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
UiPagination.style = uiPaginationCss();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-Cb1tfi_9.js');
|
|
4
|
-
var floatingUi_dom = require('./floating-ui.dom-
|
|
4
|
+
var floatingUi_dom = require('./floating-ui.dom-BZk7Blsu.js');
|
|
5
5
|
|
|
6
6
|
const uiPopoverCss = () => `: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)}`;
|
|
7
7
|
|
|
@@ -80,7 +80,7 @@ const UiPopover = class {
|
|
|
80
80
|
this.cleanup = undefined;
|
|
81
81
|
}
|
|
82
82
|
render() {
|
|
83
|
-
return (index.h(index.Host, { key: '
|
|
83
|
+
return (index.h(index.Host, { key: '005686226a579c5a9968f9b99bc177bfc523f4bc' }, index.h("span", { key: '3c43cbdfd37c6ec5243c94069fb3e417fb4fde8b', class: "trigger", ref: (el) => (this.triggerEl = el), onClick: this.onTriggerClick }, index.h("slot", { key: 'bcc68719623c4035cb4b811d52d916c86b814657', name: "trigger" })), index.h("div", { key: '04865b639bcb5ba267d1ed3e0399f8b677c1befa', class: { panel: true, "is-open": this.open }, ref: (el) => (this.floatingEl = el) }, index.h("slot", { key: '2a518fa968650f9e844996b21d421f5e96834fbd' }))));
|
|
84
84
|
}
|
|
85
85
|
get host() { return index.getElement(this); }
|
|
86
86
|
static get watchers() { return {
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-Cb1tfi_9.js');
|
|
4
|
+
|
|
5
|
+
const uiProgressCircularCss = () => `: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)}}`;
|
|
6
|
+
|
|
7
|
+
const UiProgressCircular = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
/** Valor atual do progresso. `null` torna o componente indeterminado. */
|
|
11
|
+
this.value = null;
|
|
12
|
+
/** Valor máximo. */
|
|
13
|
+
this.max = 100;
|
|
14
|
+
/** Tamanho do anel (qualquer unidade CSS). */
|
|
15
|
+
this.size = "3rem";
|
|
16
|
+
/** Espessura do traço. */
|
|
17
|
+
this.strokeWidth = 4;
|
|
18
|
+
/** Força o estado indeterminado. */
|
|
19
|
+
this.indeterminate = false;
|
|
20
|
+
/** Exibe o percentual no centro quando determinado. */
|
|
21
|
+
this.showValue = false;
|
|
22
|
+
}
|
|
23
|
+
get isIndeterminate() {
|
|
24
|
+
return this.indeterminate || this.value === null;
|
|
25
|
+
}
|
|
26
|
+
get percent() {
|
|
27
|
+
if (this.value === null || this.max <= 0)
|
|
28
|
+
return 0;
|
|
29
|
+
const clamped = Math.min(Math.max(this.value, 0), this.max);
|
|
30
|
+
return clamped / this.max;
|
|
31
|
+
}
|
|
32
|
+
render() {
|
|
33
|
+
const determinate = !this.isIndeterminate;
|
|
34
|
+
const radius = 50 - this.strokeWidth;
|
|
35
|
+
const circumference = 2 * Math.PI * radius;
|
|
36
|
+
const dashoffset = determinate
|
|
37
|
+
? circumference * (1 - this.percent)
|
|
38
|
+
: circumference * 0.75;
|
|
39
|
+
return (index.h(index.Host, { key: '4201e2e660c07a1b3d5ad6e2a464b3dc4075308a', role: "progressbar", "aria-valuenow": determinate ? String(this.value) : undefined, "aria-valuemin": determinate ? "0" : undefined, "aria-valuemax": determinate ? String(this.max) : undefined, style: { width: this.size, height: this.size } }, index.h("svg", { key: 'fe9226a711cbdd751baf6fd06e8acef3af63349e', class: { ring: true, indeterminate: this.isIndeterminate }, width: this.size, height: this.size, viewBox: "0 0 100 100" }, index.h("circle", { key: 'c7dc8282a2295ac97009f575bb7f116d54b0f917', class: "track", cx: "50", cy: "50", r: String(radius), "stroke-width": String(this.strokeWidth) }), index.h("circle", { key: '04f88283dde12b1e6c2206f7421fb4fa72c6d569', class: "indicator", cx: "50", cy: "50", r: String(radius), "stroke-width": String(this.strokeWidth), "stroke-linecap": "round", "stroke-dasharray": String(circumference), "stroke-dashoffset": String(dashoffset) })), this.showValue && determinate ? (index.h("div", { class: "value" }, Math.round(this.percent * 100), "%")) : null));
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
UiProgressCircular.style = uiProgressCircularCss();
|
|
43
|
+
|
|
44
|
+
exports.ui_progress_circular = UiProgressCircular;
|
|
@@ -25,7 +25,7 @@ const UiProgress = class {
|
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
27
|
const determinate = !this.isIndeterminate;
|
|
28
|
-
return (index.h(index.Host, { key: '
|
|
28
|
+
return (index.h(index.Host, { key: '0d53e528a9a2176e683310c375ff63a3785b7bc6', role: "progressbar", "aria-valuenow": determinate ? String(this.value) : undefined, "aria-valuemin": determinate ? "0" : undefined, "aria-valuemax": determinate ? String(this.max) : undefined }, index.h("div", { key: '5e7511d189ebc53dfffa6f9aabf0c6d110d2ba0f', class: "track" }, index.h("div", { key: '7d68e2e258c8d31a46815a66416853ea31af1b79', class: { indicator: true, indeterminate: this.isIndeterminate }, style: determinate ? { width: `${this.percent}%` } : undefined }))));
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
UiProgress.style = uiProgressCss();
|
|
@@ -38,7 +38,7 @@ const UiRadioGroup = class {
|
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return (index.h(index.Host, { key: '
|
|
41
|
+
return (index.h(index.Host, { key: 'f7265dce62bf0d590da4b9d8f8756f11991680fb' }, index.h("div", { key: 'ba70adcb04fae5ba2f78089ac95f8dfed4014efd', class: "group", role: "radiogroup" }, this.options.map((option, index$1) => {
|
|
42
42
|
const selected = option.value === this.value;
|
|
43
43
|
return (index.h("button", { class: "radio", type: "button", role: "radio", "aria-checked": selected ? "true" : "false", tabindex: selected || (!this.value && index$1 === 0) ? "0" : "-1", disabled: this.disabled, onClick: () => this.select(option.value), onKeyDown: (event) => this.onKeyDown(event, index$1) }, index.h("span", { class: "indicator" }, index.h("span", { class: "dot" })), index.h("span", { class: "label" }, option.label)));
|
|
44
44
|
}))));
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-Cb1tfi_9.js');
|
|
4
|
+
|
|
5
|
+
const uiRatingCss = () => `: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}`;
|
|
6
|
+
|
|
7
|
+
const UiRating = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
this.uiChange = index.createEvent(this, "uiChange");
|
|
11
|
+
/** Valor selecionado. */
|
|
12
|
+
this.value = 0;
|
|
13
|
+
/** Quantidade de estrelas. */
|
|
14
|
+
this.max = 5;
|
|
15
|
+
/** Apenas leitura, sem interação. */
|
|
16
|
+
this.readonly = false;
|
|
17
|
+
/** Estrela atualmente sob o cursor (-1 quando sem hover). */
|
|
18
|
+
this.hoverValue = -1;
|
|
19
|
+
this.onLeave = () => {
|
|
20
|
+
this.hoverValue = -1;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
select(index) {
|
|
24
|
+
if (this.readonly)
|
|
25
|
+
return;
|
|
26
|
+
this.value = index;
|
|
27
|
+
this.uiChange.emit(this.value);
|
|
28
|
+
}
|
|
29
|
+
onEnter(index) {
|
|
30
|
+
if (this.readonly)
|
|
31
|
+
return;
|
|
32
|
+
this.hoverValue = index;
|
|
33
|
+
}
|
|
34
|
+
render() {
|
|
35
|
+
const active = this.hoverValue > 0 ? this.hoverValue : this.value;
|
|
36
|
+
const stars = Array.from({ length: this.max }, (_, i) => i + 1);
|
|
37
|
+
return (index.h(index.Host, { key: 'b334c2aea5f4b15907ef5d386f344403b97f0324' }, index.h("div", { key: '635e2ec90f98eb3f90c4f365d32fc82b5763cf42', class: "rating", role: "radiogroup", "aria-label": "Avalia\u00E7\u00E3o", onMouseLeave: this.onLeave }, stars.map((index$1) => {
|
|
38
|
+
const filled = index$1 <= active;
|
|
39
|
+
return (index.h("button", { class: { star: true, filled, readonly: this.readonly }, type: "button", role: "radio", "aria-checked": index$1 === this.value ? "true" : "false", "aria-label": `${index$1} estrelas`, onClick: () => this.select(index$1), onMouseEnter: () => this.onEnter(index$1) }, index.h("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%" }, index.h("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" }))));
|
|
40
|
+
}))));
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
UiRating.style = uiRatingCss();
|
|
44
|
+
|
|
45
|
+
exports.ui_rating = UiRating;
|
|
@@ -32,7 +32,7 @@ const UiReveal = class {
|
|
|
32
32
|
this.observer?.disconnect();
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
return (index.h(index.Host, { key: '
|
|
35
|
+
return (index.h(index.Host, { key: '5bb285428644e0c3e130178e5c34811ff5c52d5a' }, index.h("div", { key: '1884cbc6f94fdee392ed94ab8fbc4a449747138a', class: { reveal: true, visible: this.visible }, style: { transitionDelay: `${this.delay}ms` } }, index.h("slot", { key: '270ee6624c2ba58edc786d80fb3d777ff3cebb41' }))));
|
|
36
36
|
}
|
|
37
37
|
get host() { return index.getElement(this); }
|
|
38
38
|
};
|
|
@@ -29,7 +29,7 @@ const UiScrollProgress = class {
|
|
|
29
29
|
window.removeEventListener("scroll", this.onScroll);
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
return (index.h(index.Host, { key: '
|
|
32
|
+
return (index.h(index.Host, { key: 'fee75a94ba6949fffe43501b672492795632f687' }, index.h("div", { key: 'fc881ac42582dc50df17861b918d96331216b86f', class: "bar", role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-valuenow": Math.round(this.progress * 100), style: { transform: `scaleX(${this.progress})` } })));
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
UiScrollProgress.style = uiScrollProgressCss();
|
|
@@ -15,7 +15,7 @@ const UiSection = class {
|
|
|
15
15
|
this.description = "";
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (index.h(index.Host, { key: '
|
|
18
|
+
return (index.h(index.Host, { key: '541fff68d5138d9c8767a22f4fc031d77d532010' }, index.h("section", { key: 'a05b3596b2dae7e78216b087af28f0be57d79468' }, this.eyebrow && index.h("p", { key: 'd429995b90a7877792fb4c2def70a2dd9fd1865d', class: "eyebrow" }, this.eyebrow), this.heading && index.h("h2", { key: '41849c37d94c9d91cfedaa0bceec0a453089326d', class: "heading" }, this.heading), this.description && index.h("p", { key: '5b244c629c70ed213426d141bec5c67da670d566', class: "description" }, this.description), index.h("slot", { key: '7ad5eafe43915eb69f31532417f1ea28f232b5c8' }))));
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
UiSection.style = uiSectionCss();
|
|
@@ -20,7 +20,7 @@ const UiSegmented = class {
|
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (index.h(index.Host, { key: '
|
|
23
|
+
return (index.h(index.Host, { key: 'ff4e74a388b0c7db02c4065e32c93b66d1338fb8' }, index.h("div", { key: '163708540ba5221f2b7a90dc7778c2d83072b6e4', class: "track", role: "radiogroup" }, this.items.map((item) => {
|
|
24
24
|
const active = item.value === this.value;
|
|
25
25
|
return (index.h("button", { key: item.value, class: { segment: true, active }, type: "button", role: "radio", "aria-checked": active ? "true" : "false", onClick: () => this.select(item.value) }, item.label));
|
|
26
26
|
}))));
|
|
@@ -20,7 +20,7 @@ const UiSelect = class {
|
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
22
|
const hasValue = this.value !== undefined && this.value !== "";
|
|
23
|
-
return (index.h(index.Host, { key: '
|
|
23
|
+
return (index.h(index.Host, { key: 'a1abda48256851c19e13b1516c9789ff270fd55f' }, index.h("div", { key: '9556917c11784833418565b305b814e176b4ce22', class: "wrapper" }, index.h("select", { key: '6f724cd6c5c83d841839c1a13b8e1f74720edd57', class: "select", name: this.name, disabled: this.disabled, onChange: this.onChange }, this.placeholder && (index.h("option", { key: '2b70163c4f64850d05f8194b310041bc32d18930', value: "", disabled: true, selected: !hasValue }, this.placeholder)), this.options.map((option) => (index.h("option", { value: option.value, selected: option.value === this.value }, option.label)))), index.h("svg", { key: '748cda678998b6739fc56aaa7df36964a37a0f12', class: "chevron", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, index.h("polyline", { key: '957613dc5eeb6471f4dfc1cc4e8203c90d291cdb', points: "6 9 12 15 18 9" })))));
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
UiSelect.style = uiSelectCss();
|
|
@@ -11,7 +11,7 @@ const UiSeparator = class {
|
|
|
11
11
|
this.orientation = "horizontal";
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (index.h(index.Host, { key: '
|
|
14
|
+
return (index.h(index.Host, { key: '64211b51121d5c090a1f7e3feb88e7c076dc5b7b', role: "separator", "aria-orientation": this.orientation, class: `orientation-${this.orientation}` }));
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
UiSeparator.style = uiSeparatorCss();
|
|
@@ -9,7 +9,7 @@ const UiSkeleton = class {
|
|
|
9
9
|
index.registerInstance(this, hostRef);
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (index.h(index.Host, { key: '
|
|
12
|
+
return (index.h(index.Host, { key: 'b8c2b1288e037ec55d582d07a6f9d83ad63789b4' }, index.h("span", { key: '3a939a4d6ab7ce5791bd3ffb7210743ad68e0db8', class: "skeleton" })));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
UiSkeleton.style = uiSkeletonCss();
|
|
@@ -29,7 +29,7 @@ const UiSlider = class {
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
return (index.h(index.Host, { key: '
|
|
32
|
+
return (index.h(index.Host, { key: 'eeb569c6927ebcda5c1702c8bdbade3e15ede9c2' }, index.h("input", { key: '1fd45574a52ed9d857941c870650995f092283f8', 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 })));
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
UiSlider.style = uiSliderCss();
|
|
@@ -11,7 +11,7 @@ const UiSpinner = class {
|
|
|
11
11
|
this.size = "md";
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (index.h(index.Host, { key: '
|
|
14
|
+
return (index.h(index.Host, { key: '3ce50c4de9703a057c0971fbaa71f6535a30c196', role: "status" }, index.h("span", { key: '83aba34de038600be6535662d7243489d4db79f1', class: { spinner: true, [`size-${this.size}`]: true } }), index.h("span", { key: 'ff7523e8ab8e073dea03314b72c93aaf566fa32e', class: "sr-only" }, "Carregando")));
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
UiSpinner.style = uiSpinnerCss();
|
|
@@ -45,7 +45,7 @@ const UiStack = class {
|
|
|
45
45
|
justifyContent: JUSTIFY[this.justify],
|
|
46
46
|
flexWrap: this.wrap ? "wrap" : "nowrap",
|
|
47
47
|
};
|
|
48
|
-
return (index.h(index.Host, { key: '
|
|
48
|
+
return (index.h(index.Host, { key: 'f10c42228c323efa8c5ded4e8ca552e38d1ef923' }, index.h("div", { key: 'c296191b05e5ad4e9fdec382808b24b6e798867d', class: "stack", style: style }, index.h("slot", { key: '8cc418111a0833cf404e0578e81c23f9aaa69fda' }))));
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
UiStack.style = uiStackCss();
|
|
@@ -20,7 +20,7 @@ const UiStat = class {
|
|
|
20
20
|
return null;
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (index.h(index.Host, { key: '
|
|
23
|
+
return (index.h(index.Host, { key: 'd4d0f5f87e9049b60b849afa096438bb5defa710' }, index.h("div", { key: '9dbd07ca51110a52ea852894401b0908b4cf7d30', class: "card" }, index.h("p", { key: '41e30e19f7ca5d26df13381e34a6c6a87ca530ce', class: "label" }, this.label), index.h("div", { key: '40c72d2e2bda9fb9017a52eec04737c673910ea3', class: "value-row" }, index.h("span", { key: 'b217030e5603cd2c0e0a99913461e83047a73378', class: "value" }, this.value), this.delta && (index.h("span", { key: 'df0a67ef011043f334512a43c1a6fb1ac9bb6978', class: { delta: true, [`trend-${this.trend}`]: true } }, this.renderArrow(), this.delta))), index.h("div", { key: '3e4fb6a69cf7b22d2a1f60f28f5f5747f900165a', class: "extra" }, index.h("slot", { key: '97237fcf1fc5c46a30426728c0f240cab4808541' })))));
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
UiStat.style = uiStatCss();
|
|
@@ -26,7 +26,7 @@ const UiSwitch = class {
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return (index.h(index.Host, { key: '
|
|
29
|
+
return (index.h(index.Host, { key: '428fb05e4d51811bca60b1e3513c38002bcdd6f7' }, index.h("button", { key: '39192341845fd5877a6a73f3c7ef8257a526601e', class: "switch", type: "button", role: "switch", "aria-checked": this.checked ? "true" : "false", disabled: this.disabled, onClick: this.toggle, onKeyDown: this.onKeyDown }, index.h("span", { key: '51fa9f37d6e7083e8aaf4de69e234dbb56bc4c8b', class: "thumb" }))));
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
UiSwitch.style = uiSwitchCss();
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-Cb1tfi_9.js');
|
|
4
|
+
|
|
5
|
+
const uiTableCss = () => `: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)}`;
|
|
6
|
+
|
|
7
|
+
const UiTable = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
/** Definição das colunas. */
|
|
11
|
+
this.columns = [];
|
|
12
|
+
/** Linhas de dados. */
|
|
13
|
+
this.rows = [];
|
|
14
|
+
/** Aplica fundo alternado nas linhas pares. */
|
|
15
|
+
this.striped = false;
|
|
16
|
+
/** Destaca a linha sob o cursor. */
|
|
17
|
+
this.hoverable = true;
|
|
18
|
+
}
|
|
19
|
+
render() {
|
|
20
|
+
return (index.h(index.Host, { key: 'e62b59e8da83f4b9f0c3d622623bbe216d3cfb8f' }, index.h("div", { key: 'e46a0eeeedaa9efa10867a9e38a03514a6d23d0b', class: "wrapper" }, index.h("table", { key: 'fe0a34ee49101b57d74e0e2ad765861bf5e3509e', class: { table: true, striped: this.striped, hoverable: this.hoverable } }, index.h("thead", { key: '0ea948edf967524a5fc55df8bdc453a3fd6a58a4' }, index.h("tr", { key: '69d9be2deeb57d4811ebdb8714d0713d675c8c1e' }, this.columns.map((column) => (index.h("th", { key: column.key, style: { textAlign: column.align ?? "left" } }, column.label))))), index.h("tbody", { key: '4b0fa5fbc25f6f0952da9a85bd03289f24ffdf9a' }, this.rows.map((row, rowIndex) => (index.h("tr", { key: rowIndex }, this.columns.map((column) => (index.h("td", { key: column.key, style: { textAlign: column.align ?? "left" } }, String(row[column.key] ?? ""))))))))))));
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
UiTable.style = uiTableCss();
|
|
24
|
+
|
|
25
|
+
exports.ui_table = UiTable;
|
|
@@ -20,10 +20,10 @@ const UiTabs = class {
|
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (index.h(index.Host, { key: '
|
|
23
|
+
return (index.h(index.Host, { key: '498d6b8302e63ed96533c7d68f4ac00c06b513cb' }, index.h("div", { key: '20699e632c2596a7157dd69e0f77b7db75b8b40e', class: "tablist", role: "tablist" }, this.items.map((item) => {
|
|
24
24
|
const active = item.value === this.value;
|
|
25
25
|
return (index.h("button", { key: item.value, class: { tab: true, active }, type: "button", role: "tab", "aria-selected": active ? "true" : "false", onClick: () => this.select(item.value) }, item.label));
|
|
26
|
-
})), index.h("div", { key: '
|
|
26
|
+
})), index.h("div", { key: 'd4d5577f928378d8e400779954831fd5f6416c04', class: "panel", role: "tabpanel" }, index.h("slot", { key: '77e86a40c41666945704a560222edd22cd92443f', name: this.value }))));
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
UiTabs.style = uiTabsCss();
|
|
@@ -27,7 +27,7 @@ const UiTextarea = class {
|
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
|
-
return (index.h(index.Host, { key: '
|
|
30
|
+
return (index.h(index.Host, { key: '4134da9c40b56d7a690aacf84f285d32c76e0e97' }, index.h("textarea", { key: 'ed094856a7982bb44cc2a6b756daf5ee12f57c01', class: { textarea: true, 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)));
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
UiTextarea.style = uiTextareaCss();
|
|
@@ -57,7 +57,7 @@ const UiThemeToggle = class {
|
|
|
57
57
|
return (index.h("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" }, index.h("circle", { cx: "12", cy: "12", r: "4" }), index.h("line", { x1: "12", y1: "2", x2: "12", y2: "4" }), index.h("line", { x1: "12", y1: "20", x2: "12", y2: "22" }), index.h("line", { x1: "2", y1: "12", x2: "4", y2: "12" }), index.h("line", { x1: "20", y1: "12", x2: "22", y2: "12" }), index.h("line", { x1: "4.93", y1: "4.93", x2: "6.34", y2: "6.34" }), index.h("line", { x1: "17.66", y1: "17.66", x2: "19.07", y2: "19.07" }), index.h("line", { x1: "4.93", y1: "19.07", x2: "6.34", y2: "17.66" }), index.h("line", { x1: "17.66", y1: "6.34", x2: "19.07", y2: "4.93" })));
|
|
58
58
|
}
|
|
59
59
|
render() {
|
|
60
|
-
return (index.h(index.Host, { key: '
|
|
60
|
+
return (index.h(index.Host, { key: 'a654dba08923ee4ede01577964a9c1ae00152eeb' }, index.h("button", { key: '84477ec9d4693aa93457fb6564ceae1ab2c3516b', 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())));
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
63
|
UiThemeToggle.style = uiThemeToggleCss();
|
|
@@ -54,7 +54,7 @@ const UiToast = class {
|
|
|
54
54
|
this.dismiss();
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
|
-
return (index.h(index.Host, { key: '
|
|
57
|
+
return (index.h(index.Host, { key: '21a97579800abf5e870eec28557e06165b96d404' }, this.open && (index.h("div", { key: 'e77a782182779213db337796c83eff1d0cf5d5c2', class: { toast: true, [`variant-${this.variant}`]: true }, role: "status" }, index.h("div", { key: '0d6c35786aa00e5f6678e33944df564f1ad8edec', class: "body" }, this.heading && index.h("p", { key: '1b91fe3a120c8caf7ba614d1d658121d77b52be5', class: "heading" }, this.heading), this.description && (index.h("p", { key: 'dff799cd6f2c4fd62fa716538a9de375ee1f49af', class: "description" }, this.description))), index.h("button", { key: 'c30f977f65a960b4062965ac77b2e3ac9d09dc8a', class: "close", type: "button", "aria-label": "Fechar", onClick: () => this.dismiss() }, index.h("svg", { key: 'ae2d9a2fab756ce67c5a7379bb3a4f93fec4222f', width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, index.h("line", { key: '29972be7ff1556a629365956f39c7c0bfe85d512', x1: "18", y1: "6", x2: "6", y2: "18" }), index.h("line", { key: '59087f986b5dd641be586d04b4aa70f1a09dcfe3', x1: "6", y1: "6", x2: "18", y2: "18" })))))));
|
|
58
58
|
}
|
|
59
59
|
static get watchers() { return {
|
|
60
60
|
"open": [{
|
|
@@ -21,7 +21,7 @@ const UiToaster = class {
|
|
|
21
21
|
this.items = this.items.filter((item) => item.id !== id);
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
return (index.h(index.Host, { key: '
|
|
24
|
+
return (index.h(index.Host, { key: '608a15f7a5805eb336aeb5eed46fc7ca9f7ef32e' }, index.h("div", { key: 'ebf5b3f7cdafa526fe0845d3025bf10579beb848', class: "container" }, this.items.map((item) => (index.h("ui-toast", { key: item.id, open: true, heading: item.heading, description: item.description, variant: item.variant ?? "default", duration: item.duration ?? 4000, onUiClose: () => this.remove(item.id) }))))));
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
UiToaster.style = uiToasterCss();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-Cb1tfi_9.js');
|
|
4
|
-
var floatingUi_dom = require('./floating-ui.dom-
|
|
4
|
+
var floatingUi_dom = require('./floating-ui.dom-BZk7Blsu.js');
|
|
5
5
|
|
|
6
6
|
const uiTooltipCss = () => `: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)}`;
|
|
7
7
|
|
|
@@ -55,7 +55,7 @@ const UiTooltip = class {
|
|
|
55
55
|
this.cleanup = undefined;
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
|
-
return (index.h(index.Host, { key: '
|
|
58
|
+
return (index.h(index.Host, { key: '401cfeba060afec776fd2455ab597f5591733566', onMouseEnter: this.onEnter, onMouseLeave: this.onLeave, onFocusin: this.onEnter, onFocusout: this.onLeave }, index.h("span", { key: '6ee621aefa5092194d3e1c3dabf5a33501421c6c', class: "trigger", ref: (el) => (this.triggerEl = el) }, index.h("slot", { key: '771078940a2c4e17ecf30dc39f6e0f0c90691b5e' })), index.h("div", { key: '263d4868a251cab4f302a8fe1d890a419f4158d1', class: { tooltip: true, "is-visible": this.visible }, role: "tooltip", ref: (el) => (this.floatingEl = el) }, this.content)));
|
|
59
59
|
}
|
|
60
60
|
get host() { return index.getElement(this); }
|
|
61
61
|
};
|