@andespindola/ui-core 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/ui-accordion-item.cjs.entry.js +2 -2
- package/dist/cjs/ui-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ui-avatar.cjs.entry.js +1 -1
- package/dist/cjs/ui-card.cjs.entry.js +2 -2
- package/dist/cjs/ui-checkbox.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/ui-field.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-popover.cjs.entry.js +1 -1
- package/dist/cjs/ui-progress.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/ui-select.cjs.entry.js +1 -1
- package/dist/cjs/ui-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/ui-slider.cjs.entry.js +1 -1
- package/dist/cjs/ui-switch.cjs.entry.js +1 -1
- package/dist/cjs/ui-tabs.cjs.entry.js +2 -2
- package/dist/cjs/ui-textarea.cjs.entry.js +2 -2
- 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/collection/components/ui-accordion/ui-accordion.js +1 -1
- package/dist/collection/components/ui-accordion-item/ui-accordion-item.css +8 -0
- 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-card/ui-card.css +17 -3
- 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-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-input/ui-input.js +1 -1
- package/dist/collection/components/ui-label/ui-label.js +1 -1
- package/dist/collection/components/ui-popover/ui-popover.js +1 -1
- package/dist/collection/components/ui-progress/ui-progress.css +9 -4
- package/dist/collection/components/ui-progress/ui-progress.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.css +12 -5
- package/dist/collection/components/ui-section/ui-section.js +1 -1
- package/dist/collection/components/ui-select/ui-select.css +4 -0
- package/dist/collection/components/ui-skeleton/ui-skeleton.css +9 -6
- 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-switch/ui-switch.js +1 -1
- package/dist/collection/components/ui-tabs/ui-tabs.css +12 -0
- package/dist/collection/components/ui-tabs/ui-tabs.js +1 -1
- package/dist/collection/components/ui-textarea/ui-textarea.css +4 -0
- 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.css +5 -4
- package/dist/collection/components/ui-tooltip/ui-tooltip.js +1 -1
- package/dist/components/{p-C8ePpPG3.js → p-fApcMAzN.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.js +1 -1
- package/dist/components/ui-card.js +1 -1
- package/dist/components/ui-checkbox.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-input.js +1 -1
- package/dist/components/ui-label.js +1 -1
- package/dist/components/ui-popover.js +1 -1
- package/dist/components/ui-progress.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-select.js +1 -1
- package/dist/components/ui-skeleton.js +1 -1
- package/dist/components/ui-slider.js +1 -1
- package/dist/components/ui-switch.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-toast.js +1 -1
- package/dist/components/ui-toaster.js +1 -1
- package/dist/components/ui-tooltip.js +1 -1
- package/dist/esm/ui-accordion-item.entry.js +2 -2
- package/dist/esm/ui-accordion.entry.js +1 -1
- package/dist/esm/ui-avatar.entry.js +1 -1
- package/dist/esm/ui-card.entry.js +2 -2
- package/dist/esm/ui-checkbox.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/ui-field.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-popover.entry.js +1 -1
- package/dist/esm/ui-progress.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/ui-select.entry.js +1 -1
- package/dist/esm/ui-skeleton.entry.js +2 -2
- package/dist/esm/ui-slider.entry.js +1 -1
- package/dist/esm/ui-switch.entry.js +1 -1
- package/dist/esm/ui-tabs.entry.js +2 -2
- package/dist/esm/ui-textarea.entry.js +2 -2
- 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/uikit/{p-8bcd423c.entry.js → p-0096eefe.entry.js} +1 -1
- package/dist/uikit/{p-0fb4949b.entry.js → p-11350db1.entry.js} +1 -1
- package/dist/uikit/p-128ae3e4.entry.js +1 -0
- package/dist/uikit/p-280337b0.entry.js +1 -0
- package/dist/uikit/{p-8cebbe65.entry.js → p-29fe5b7f.entry.js} +1 -1
- package/dist/uikit/p-32df7fd0.entry.js +1 -0
- package/dist/uikit/{p-f7402442.entry.js → p-38cbea54.entry.js} +1 -1
- package/dist/uikit/p-3c866608.entry.js +1 -0
- package/dist/uikit/{p-9d784b04.entry.js → p-5555523c.entry.js} +1 -1
- package/dist/uikit/{p-9e7b81ef.entry.js → p-58ed99a2.entry.js} +1 -1
- package/dist/uikit/p-6fa4be86.entry.js +1 -0
- package/dist/uikit/{p-c72ed105.entry.js → p-777c6902.entry.js} +1 -1
- package/dist/uikit/{p-4382718f.entry.js → p-777d8c7a.entry.js} +1 -1
- package/dist/uikit/p-7b2a9e68.entry.js +1 -0
- package/dist/uikit/{p-5df32809.entry.js → p-8a238373.entry.js} +1 -1
- package/dist/uikit/{p-b61e3df4.entry.js → p-97de6ea6.entry.js} +1 -1
- package/dist/uikit/p-9b43d670.entry.js +1 -0
- package/dist/uikit/{p-e410c789.entry.js → p-9f0d4ae1.entry.js} +1 -1
- package/dist/uikit/{p-629c1728.entry.js → p-a0ccdb22.entry.js} +1 -1
- package/dist/uikit/p-b0aba484.entry.js +1 -0
- package/dist/uikit/p-cf56c9ba.entry.js +1 -0
- package/dist/uikit/p-d13860dc.entry.js +1 -0
- package/dist/uikit/p-d6c9bfbc.entry.js +1 -0
- package/dist/uikit/p-d8e7ae10.entry.js +1 -0
- package/dist/uikit/{p-3d30bc7a.entry.js → p-e0652ddf.entry.js} +1 -1
- package/dist/uikit/{p-90d49509.entry.js → p-e54139a1.entry.js} +1 -1
- package/dist/uikit/p-ed1111eb.entry.js +1 -0
- package/dist/uikit/uikit.esm.js +1 -1
- package/package.json +1 -1
- package/dist/uikit/p-06d6d907.entry.js +0 -1
- package/dist/uikit/p-162302d1.entry.js +0 -1
- package/dist/uikit/p-19b81437.entry.js +0 -1
- package/dist/uikit/p-57058c30.entry.js +0 -1
- package/dist/uikit/p-5ea42ee5.entry.js +0 -1
- package/dist/uikit/p-76f0f79f.entry.js +0 -1
- package/dist/uikit/p-94fb298e.entry.js +0 -1
- package/dist/uikit/p-9f7c6ca8.entry.js +0 -1
- package/dist/uikit/p-a7be1c69.entry.js +0 -1
- package/dist/uikit/p-b30aa6a6.entry.js +0 -1
- package/dist/uikit/p-cb2adfb7.entry.js +0 -1
- package/dist/uikit/p-cf10ca3b.entry.js +0 -1
- package/dist/uikit/p-fd1648bf.entry.js +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-Cb1tfi_9.js');
|
|
4
4
|
|
|
5
|
-
const uiAccordionItemCss = () => `:host{display:block;font-family:var(--ui-font-sans);border-bottom:1px solid var(--ui-border)}summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 0;cursor:pointer;font-weight:500;color:var(--ui-foreground);list-style:none;outline:none}summary::-webkit-details-marker{display:none}summary:focus-visible{box-shadow:0 0 0 2px var(--ui-background), 0 0 0 4px var(--ui-ring);border-radius:var(--ui-radius-sm)}.chevron{flex:none;color:var(--ui-text-muted);transition:transform var(--ui-duration) var(--ui-ease)}details[open] .chevron{transform:rotate(180deg)}.content{padding-bottom:1rem;color:var(--ui-text-muted)}`;
|
|
5
|
+
const uiAccordionItemCss = () => `:host{display:block;font-family:var(--ui-font-sans);border-bottom:1px solid var(--ui-border)}summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 0;cursor:pointer;font-weight:500;color:var(--ui-foreground);list-style:none;outline:none}summary::-webkit-details-marker{display:none}summary:hover{color:var(--ui-accent)}summary:hover .chevron{color:var(--ui-accent)}summary:focus-visible{box-shadow:0 0 0 2px var(--ui-background), 0 0 0 4px var(--ui-ring);border-radius:var(--ui-radius-sm)}.chevron{flex:none;color:var(--ui-text-muted);transition:transform var(--ui-duration) var(--ui-ease)}details[open] .chevron{transform:rotate(180deg)}.content{padding-bottom:1rem;color:var(--ui-text-muted)}`;
|
|
6
6
|
|
|
7
7
|
const UiAccordionItem = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -19,7 +19,7 @@ const UiAccordionItem = class {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (index.h(index.Host, { key: '
|
|
22
|
+
return (index.h(index.Host, { key: 'a6753eab6e0dc158aadd47469da57bf73274cb99' }, index.h("details", { key: 'c98130b641f5cca70f27867ecc23769de0871733', open: this.open, onToggle: this.onToggle }, index.h("summary", { key: 'ed84e054379bc2f3133c675b5ddd8b6b69bb205c' }, index.h("span", { key: '49d66f1f5ade0c22d4b13f1ead38d712d8dc0310', class: "heading" }, this.heading), index.h("svg", { key: '74261819a62cf9dc397d8ca50c654897e080801b', class: "chevron", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, index.h("polyline", { key: 'd69ebaaa12602c3c2d4a44d1c5b5ca6ed523f254', points: "6 9 12 15 18 9" }))), index.h("div", { key: '98178b28965c4595c0330299a358cc821424985f', class: "content" }, index.h("slot", { key: 'd633bc20693f7ac970e6fa1cf55760841243a870' })))));
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
UiAccordionItem.style = uiAccordionItemCss();
|
|
@@ -9,7 +9,7 @@ const UiAccordion = 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: 'e6332a0fa193f07001cf71f61531729529607b2b' }, index.h("slot", { key: '95ab7de2a8344e267fe97cae784b75635cafd289' })));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
UiAccordion.style = uiAccordionCss();
|
|
@@ -11,7 +11,7 @@ const UiAvatar = class {
|
|
|
11
11
|
this.alt = "";
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (index.h(index.Host, { key: '
|
|
14
|
+
return (index.h(index.Host, { key: '7a6bbef0807d0d3dc25692a6bf87171131579e46' }, index.h("span", { key: '6b548ed4e5ec0dc7bb52dcb3660ffc188705439f', class: "avatar" }, this.src ? (index.h("img", { class: "image", src: this.src, alt: this.alt })) : (index.h("span", { class: "fallback" }, this.fallback)))));
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
UiAvatar.style = uiAvatarCss();
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-Cb1tfi_9.js');
|
|
4
4
|
|
|
5
|
-
const uiCardCss = () => `:host{display:block}.card{border:1px solid var(--ui-border);background:var(--ui-panel);box-shadow:var(--ui-shadow-lg);backdrop-filter:blur(22px) saturate(140%);border-radius:var(--ui-radius-xl);color:var(--ui-
|
|
5
|
+
const uiCardCss = () => `:host{display:block}.card{display:flex;flex-direction:column;gap:0.5rem;padding:1.5rem;border:1px solid var(--ui-border);background:var(--ui-panel);box-shadow:var(--ui-shadow-lg);backdrop-filter:blur(22px) saturate(140%);border-radius:var(--ui-radius-xl);color:var(--ui-text-soft);font-family:var(--ui-font-sans)}::slotted([slot="title"]){margin:0;font-size:1.125rem;font-weight:600;letter-spacing:-0.01em;color:var(--ui-foreground)}::slotted([slot="description"]){margin:0;font-size:0.875rem;color:var(--ui-text-muted)}::slotted([slot="footer"]){display:flex;gap:0.75rem;margin-top:0.5rem}`;
|
|
6
6
|
|
|
7
7
|
const UiCard = class {
|
|
8
8
|
constructor(hostRef) {
|
|
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: '1608f7f7bd8addc04064a70965fdb28a67a1abef' }, index.h("div", { key: '976e8fa507f78649789161f5eaaa2308547c7040', class: "card" }, index.h("slot", { key: '803ef160438006449051c2068246fd6f20562cc5', name: "title" }), index.h("slot", { key: '84bfdd0d56b015d09598e53e0002b9ac5e69934d', name: "description" }), index.h("slot", { key: '97d8522f426b54ab6a8b51038bd8f2b8e2413d0e' }), index.h("slot", { key: '8b36ab658e61cdebb391d6bb8dc427d809a81b30', name: "footer" }))));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
UiCard.style = uiCardCss();
|
|
@@ -26,7 +26,7 @@ const UiCheckbox = class {
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return (index.h(index.Host, { key: '
|
|
29
|
+
return (index.h(index.Host, { key: '3702acd47b1980ddf23df427a68c69ee782756e4' }, index.h("button", { key: '8cc709719dd004d01ca6ed82c0fab53ed38f8962', class: "checkbox", type: "button", role: "checkbox", "aria-checked": this.checked ? "true" : "false", disabled: this.disabled, onClick: this.toggle, onKeyDown: this.onKeyDown }, index.h("svg", { key: 'fa4875d7a2809133496a543fa6efd0de8c8c4c06', class: "check", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "3", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, index.h("polyline", { key: '34a601d25b20fdf1ad697349531888648795f4bf', points: "20 6 9 17 4 12" })))));
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
UiCheckbox.style = uiCheckboxCss();
|
|
@@ -44,7 +44,7 @@ const UiDialog = class {
|
|
|
44
44
|
this.open = false;
|
|
45
45
|
}
|
|
46
46
|
render() {
|
|
47
|
-
return (index.h(index.Host, { key: '
|
|
47
|
+
return (index.h(index.Host, { key: 'df811bec2a6a250e90cbb6d9c85202b2d3c2c964' }, index.h("dialog", { key: '49572b35ec17863fb83e9973c548a8cafa0308b6', class: "dialog", ref: (el) => (this.dialogEl = el), onClose: this.onClose, onCancel: this.onClose, onClick: this.onBackdropClick }, index.h("div", { key: '53c82b2c7a1b8831d64a060b4665a60bbdc7e39a', class: "content" }, index.h("slot", { key: 'b398a9692fdf2826b86125723bc232791e6b9e4b' })))));
|
|
48
48
|
}
|
|
49
49
|
static get watchers() { return {
|
|
50
50
|
"open": [{
|
|
@@ -46,7 +46,7 @@ const UiDrawer = class {
|
|
|
46
46
|
this.open = false;
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
|
-
return (index.h(index.Host, { key: '
|
|
49
|
+
return (index.h(index.Host, { key: '9f2f27dcc087f608a3aeed4fe64a65eb8fe4011b' }, index.h("dialog", { key: '92471e4a732f00e4187efb37cbba553651c2f9dd', class: `drawer side-${this.side}`, ref: (el) => (this.dialogEl = el), onClose: this.onClose, onCancel: this.onClose, onClick: this.onBackdropClick }, index.h("div", { key: 'd6706d4943f8559aee320b6df509138c44857bf0', class: "content" }, index.h("slot", { key: '5cb218bde44c73fd02c640c1d0da736427f2707c' })))));
|
|
50
50
|
}
|
|
51
51
|
static get watchers() { return {
|
|
52
52
|
"open": [{
|
|
@@ -18,7 +18,7 @@ const UiDropdownItem = class {
|
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (index.h(index.Host, { key: '
|
|
21
|
+
return (index.h(index.Host, { key: '57af1c437b63fb19cfe297741b2b0f8d34564be9' }, index.h("button", { key: 'e3df81eb4c921d8b447c46da5140d21fb8126417', type: "button", class: "item", role: "menuitem", disabled: this.disabled, onClick: this.onClick }, index.h("slot", { key: '162d876af4ed9913c79964afcdceda7539feb95b' }))));
|
|
22
22
|
}
|
|
23
23
|
get host() { return index.getElement(this); }
|
|
24
24
|
};
|
|
@@ -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: '65adc044508abd9ebf4b866fba02058bdcd22d5d' }, index.h("span", { key: 'e70a23e1b41c7936ab1dc3a87cd3593b3db43088', class: "trigger", ref: (el) => (this.triggerEl = el), onClick: this.onTriggerClick }, index.h("slot", { key: '40f2226b6ba6f1d3032cd2b2f2477fbcdf9617b5', name: "trigger" })), index.h("div", { key: '6af4ab3c98a9334d805e75da724d5572e4c986aa', class: { menu: true, "is-open": this.open }, role: "menu", ref: (el) => (this.floatingEl = el) }, index.h("slot", { key: '7f99ba16ab9544d5cf63b28f77f18fd4d0fbbed2' }))));
|
|
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: '5656c6d47f71364d26db0e4998e64b8780ee3840' }, index.h("div", { key: '6adc292e3ae0829c7f5533b2be732644f7e95dab', class: "field" }, this.label && (index.h("label", { key: 'e7c2e2fa1c3b0bc6edadb1385062fe53e5b2f5f7', class: "label", htmlFor: this.fieldId }, this.label, this.required && (index.h("span", { key: '06e56259184b4618eb9f2b3602ebb691e6b0ef1b', class: "required", "aria-hidden": "true" }, " *")))), index.h("slot", { key: 'bd44f4f425f257671eff1ed536051fb318671afc' }), 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();
|
|
@@ -27,7 +27,7 @@ const UiInput = class {
|
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
|
-
return (index.h(index.Host, { key: '
|
|
30
|
+
return (index.h(index.Host, { key: 'b904b919904db1677ed9480e43bf939138f09dfc' }, index.h("input", { key: '086b0bdd4a5f5c01af04be41cdee2e72af2376f1', class: { input: true, invalid: this.invalid }, 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 })));
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
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: '5ded9464de8fe01a6bb830f4de51975cfd720746' }, index.h("label", { key: '1a14229c5e511eac3cb4244f546aee71a4f5d399', class: "label" }, index.h("slot", { key: '7c5def32e92ffdc6dcb1b83c044f5199957f5951' }))));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
UiLabel.style = uiLabelCss();
|
|
@@ -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: '583667abe2df75e7c9e058b7a668661527ec0b8a' }, index.h("span", { key: '46eaca2ca8c70acff629ccc5c3c201b42136c30d', class: "trigger", ref: (el) => (this.triggerEl = el), onClick: this.onTriggerClick }, index.h("slot", { key: 'd81cf859a9887d3b6964ac8e67829cf1a84c58b2', name: "trigger" })), index.h("div", { key: 'da09ed4fa3eee00ef72fb4c0eba6f0a1b827df15', class: { panel: true, "is-open": this.open }, ref: (el) => (this.floatingEl = el) }, index.h("slot", { key: 'f2483196e778a14fbe1d537dd7a3c8a6453c0daf' }))));
|
|
84
84
|
}
|
|
85
85
|
get host() { return index.getElement(this); }
|
|
86
86
|
static get watchers() { return {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-Cb1tfi_9.js');
|
|
4
4
|
|
|
5
|
-
const uiProgressCss = () => `:host{display:block}.track{width:100%;height:0.5rem;border-radius:var(--ui-radius-full);background:var(--ui-chip);overflow:hidden}.indicator{height:100%;border-radius:var(--ui-radius-full);background:var(--ui-accent);transition:width var(--ui-duration) var(--ui-ease)}.indicator.indeterminate{width:40%;animation:ui-progress-slide 1.
|
|
5
|
+
const uiProgressCss = () => `:host{display:block}.track{width:100%;height:0.5rem;border-radius:var(--ui-radius-full);background:var(--ui-chip);border:1px solid var(--ui-border);overflow:hidden;box-sizing:border-box}.indicator{height:100%;min-width:0.5rem;border-radius:var(--ui-radius-full);background:linear-gradient(90deg, var(--ui-accent), var(--ui-accent-strong));box-shadow:0 0 12px color-mix(in srgb, var(--ui-accent) 55%, transparent);transition:width var(--ui-duration) var(--ui-ease)}.indicator.indeterminate{width:40%;min-width:0;animation:ui-progress-slide 1.3s var(--ui-ease) infinite}@keyframes ui-progress-slide{0%{transform:translateX(-110%)}100%{transform:translateX(360%)}}`;
|
|
6
6
|
|
|
7
7
|
const UiProgress = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -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: '66c467df7d762604b0da866268ea75bce4499472', 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: 'fab67d49344ddd90fbca231212a495c7d2d7a0b1', class: "track" }, index.h("div", { key: 'dfbd8b412ad24a297e3dacfabd646b812066421e', class: { indicator: true, indeterminate: this.isIndeterminate }, style: determinate ? { width: `${this.percent}%` } : undefined }))));
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
UiProgress.style = uiProgressCss();
|
|
@@ -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: '0af93c131bf8564bf952ca61637041089b5c34b7' }, index.h("div", { key: '94a0fc0cf5445b9832994c19eb5600f6227ccc97', class: { reveal: true, visible: this.visible }, style: { transitionDelay: `${this.delay}ms` } }, index.h("slot", { key: '2a47e0af589790cbe5cfbc10ef49ffde1aced931' }))));
|
|
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: '36bb4460d8219c028ff63216ef562f0d157fd04d' }, index.h("div", { key: '345b9675be89ede7875c56ad3f86ae2eecdf4f16', 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();
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-Cb1tfi_9.js');
|
|
4
4
|
|
|
5
|
-
const uiSectionCss = () => `:host{display:block;font-family:var(--ui-font-sans)}section{max-width:80rem;margin:0 auto;padding:5rem 1.
|
|
5
|
+
const uiSectionCss = () => `:host{display:block;font-family:var(--ui-font-sans)}section{max-width:80rem;margin:0 auto;padding:3.5rem 1.5rem}.eyebrow{display:inline-block;margin:0 0 0.75rem;padding:0.25rem 0.625rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius-full);background:var(--ui-chip);text-transform:uppercase;letter-spacing:0.12em;font-size:0.6875rem;font-weight:600;color:var(--ui-accent)}.heading{margin:0 0 0.75rem;font-size:2.25rem;font-weight:600;letter-spacing:-0.02em;line-height:1.1;color:var(--ui-foreground)}.description{margin:0 0 2rem;max-width:42rem;color:var(--ui-text-muted)}`;
|
|
6
6
|
|
|
7
7
|
const UiSection = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -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: '17a6e52fb6d1822d7a8a08eef052d972cc322c0a' }, index.h("section", { key: '228e9c1e4ca2515f585cafa2684932bfac70a25b' }, this.eyebrow && index.h("p", { key: '93c307b49c39fe2c0b2363d75c9763b3c09446a5', class: "eyebrow" }, this.eyebrow), this.heading && index.h("h2", { key: '889c652e358f1788c5785f1154f5a45508fa2a61', class: "heading" }, this.heading), this.description && index.h("p", { key: '09cb09edfbc0dce2b7fd5e9938cafc63e2ddbd9a', class: "description" }, this.description), index.h("slot", { key: '4f480d0c56263f1e38909e8af8d7cd8d8c2375fe' }))));
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
UiSection.style = uiSectionCss();
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-Cb1tfi_9.js');
|
|
4
4
|
|
|
5
|
-
const uiSelectCss = () => `:host{display:block}.wrapper{position:relative;display:block;width:100%}.select{width:100%;height:2.75rem;padding:0 2.5rem 0 1rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius-sm);background:var(--ui-panel);color:var(--ui-foreground);font-family:var(--ui-font-sans);font-size:0.875rem;outline:none;backdrop-filter:blur(22px);transition:all var(--ui-duration) var(--ui-ease);box-sizing:border-box;cursor:pointer;-webkit-appearance:none;appearance:none}.select:focus-visible{border-color:var(--ui-accent);box-shadow:0 0 0 2px var(--ui-ring)}.select:disabled{opacity:0.5;pointer-events:none}.chevron{position:absolute;top:50%;right:0.875rem;width:1.125rem;height:1.125rem;color:var(--ui-text-muted);transform:translateY(-50%);pointer-events:none}`;
|
|
5
|
+
const uiSelectCss = () => `:host{display:block}.wrapper{position:relative;display:block;width:100%}.select{width:100%;height:2.75rem;padding:0 2.5rem 0 1rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius-sm);background:var(--ui-panel);color:var(--ui-foreground);font-family:var(--ui-font-sans);font-size:0.875rem;outline:none;backdrop-filter:blur(22px);transition:all var(--ui-duration) var(--ui-ease);box-sizing:border-box;cursor:pointer;-webkit-appearance:none;appearance:none}.select:hover:not(:disabled){border-color:var(--ui-border-strong)}.select:focus-visible{border-color:var(--ui-accent);box-shadow:0 0 0 2px var(--ui-ring)}.select:disabled{opacity:0.5;pointer-events:none}.chevron{position:absolute;top:50%;right:0.875rem;width:1.125rem;height:1.125rem;color:var(--ui-text-muted);transform:translateY(-50%);pointer-events:none}`;
|
|
6
6
|
|
|
7
7
|
const UiSelect = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-Cb1tfi_9.js');
|
|
4
4
|
|
|
5
|
-
const uiSkeletonCss = () => `:host{display:block}.skeleton{display:block;width:100%;height:100%;border-radius:var(--ui-radius-sm);background:linear-gradient( 90deg,
|
|
5
|
+
const uiSkeletonCss = () => `:host{display:block}.skeleton{display:block;width:100%;height:100%;min-height:1rem;border-radius:var(--ui-radius-sm);background-color:var(--ui-chip);background-image:linear-gradient( 90deg, transparent, color-mix(in srgb, var(--ui-foreground) 12%, transparent), transparent );background-size:200% 100%;background-repeat:no-repeat;animation:ui-skeleton-shimmer 1.5s ease-in-out infinite}@keyframes ui-skeleton-shimmer{0%{background-position:-150% 0}100%{background-position:150% 0}}`;
|
|
6
6
|
|
|
7
7
|
const UiSkeleton = class {
|
|
8
8
|
constructor(hostRef) {
|
|
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: 'a7ce8aa1c475aaa92353b0eb6bad5ded231a5cd1' }, index.h("span", { key: '0611976380d3fb93d1ac64bfdc5d4686568c5129', 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: '08226142947909bff3ccecd5fc780d75515c2ee2' }, index.h("input", { key: '192bd60cd8b0c1e8d6029272fd317c0d786b36ca', 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();
|
|
@@ -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: '0650dcb564622448421a576b17093cfeeb7a3a6d' }, index.h("button", { key: '09e705ce9642f4c11b84bc876577b9e55dab1e52', 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: 'd237bee4724d5f9a199f4794217d1528c074caac', class: "thumb" }))));
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
UiSwitch.style = uiSwitchCss();
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-Cb1tfi_9.js');
|
|
4
4
|
|
|
5
|
-
const uiTabsCss = () => `: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.active{background:var(--ui-panel-strong);color:var(--ui-foreground)}`;
|
|
5
|
+
const uiTabsCss = () => `: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}`;
|
|
6
6
|
|
|
7
7
|
const UiTabs = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -23,7 +23,7 @@ const UiTabs = class {
|
|
|
23
23
|
return (index.h(index.Host, { key: '8828dc9385a8c206a751e39fda9869116dda3001' }, index.h("div", { key: '8e13dc53f1c03da5a52adb8ec86da91c78c502b2', 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("slot", { key: '
|
|
26
|
+
})), index.h("div", { key: '1e46e18417426af6053490cde8e7637e4bae7855', class: "panel", role: "tabpanel" }, index.h("slot", { key: 'efb63794fca013a54a1b2f261c4a72cd18ce3ef0', name: this.value }))));
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
UiTabs.style = uiTabsCss();
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-Cb1tfi_9.js');
|
|
4
4
|
|
|
5
|
-
const uiTextareaCss = () => `:host{display:block}.textarea{width:100%;min-height:7rem;padding:0.75rem 1rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius-sm);background:var(--ui-panel);color:var(--ui-foreground);font-family:var(--ui-font-sans);font-size:0.875rem;line-height:1.5;outline:none;backdrop-filter:blur(22px);transition:all var(--ui-duration) var(--ui-ease);box-sizing:border-box;resize:vertical}.textarea::placeholder{color:var(--ui-text-faint)}.textarea:focus-visible{border-color:var(--ui-accent);box-shadow:0 0 0 2px var(--ui-ring)}.textarea:disabled{opacity:0.5;pointer-events:none}.textarea.invalid{border-color:var(--ui-danger)}.textarea.invalid:focus-visible{box-shadow:0 0 0 2px color-mix(in srgb, var(--ui-danger) 40%, transparent)}`;
|
|
5
|
+
const uiTextareaCss = () => `:host{display:block}.textarea{width:100%;min-height:7rem;padding:0.75rem 1rem;border:1px solid var(--ui-border);border-radius:var(--ui-radius-sm);background:var(--ui-panel);color:var(--ui-foreground);font-family:var(--ui-font-sans);font-size:0.875rem;line-height:1.5;outline:none;backdrop-filter:blur(22px);transition:all var(--ui-duration) var(--ui-ease);box-sizing:border-box;resize:vertical}.textarea::placeholder{color:var(--ui-text-faint)}.textarea:hover:not(:disabled){border-color:var(--ui-border-strong)}.textarea:focus-visible{border-color:var(--ui-accent);box-shadow:0 0 0 2px var(--ui-ring)}.textarea:disabled{opacity:0.5;pointer-events:none}.textarea.invalid{border-color:var(--ui-danger)}.textarea.invalid:focus-visible{box-shadow:0 0 0 2px color-mix(in srgb, var(--ui-danger) 40%, transparent)}`;
|
|
6
6
|
|
|
7
7
|
const UiTextarea = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -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: 'f0bafb6320cd48642dac3b5f1e07399f88a78b03' }, index.h("textarea", { key: 'fc99c0b899dd17477928b9f38273fd822d46935b', 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: '6b55c31df3938ab37336e4e4c4ed90e9b149a440' }, index.h("button", { key: '7640122c47871bc67aad6f74b59229219fdb348b', 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: 'fe0318f91899e78faeb2ac07a7a06bfe42f9d3fd' }, this.open && (index.h("div", { key: '66dc197d7a493ad7a7cb9aa982fc92bc0541d21f', class: { toast: true, [`variant-${this.variant}`]: true }, role: "status" }, index.h("div", { key: 'df1fbb34582de4d10a84402653e7d7d528d8faa0', class: "body" }, this.heading && index.h("p", { key: '7c14d43a9397320bda3a79b60637da9d48c31945', class: "heading" }, this.heading), this.description && (index.h("p", { key: '6c83f1b075b3df34c1ce05e8c43627903ddbba4e', class: "description" }, this.description))), index.h("button", { key: '922acc1bc264b59ce708014decb078182d7909b4', class: "close", type: "button", "aria-label": "Fechar", onClick: () => this.dismiss() }, index.h("svg", { key: '10541297b8fc83a5da11b640933f6c3695602cb0', 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: '964b3dc70120841eb01fffeef9e7ddcbd30880ec', x1: "18", y1: "6", x2: "6", y2: "18" }), index.h("line", { key: 'e45490846076269a527a0f722e32e61206cc2d9d', 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: '18ad65a18488bd061c2fa8eb2ad33c41a472d850' }, index.h("div", { key: 'de7ae9b62cd155d13c5a8d018ea2970d509e74e6', 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();
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var index = require('./index-Cb1tfi_9.js');
|
|
4
4
|
var floatingUi_dom = require('./floating-ui.dom-BPemvNRD.js');
|
|
5
5
|
|
|
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.
|
|
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
|
|
|
8
8
|
const UiTooltip = class {
|
|
9
9
|
constructor(hostRef) {
|
|
@@ -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: '5a3f2a7cf235a6c31c8a4d3ebd4f0d517c7e7b5d', onMouseEnter: this.onEnter, onMouseLeave: this.onLeave, onFocusin: this.onEnter, onFocusout: this.onLeave }, index.h("span", { key: 'f626c5ec5686959449c5a2dd1c80551fd6b19087', class: "trigger", ref: (el) => (this.triggerEl = el) }, index.h("slot", { key: '08a19214efd0eba04d715b76a63a2cc53ed3a5c6' })), index.h("div", { key: 'b598af62ab976599a5274cc85f01b4ab7543dabf', 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
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class UiAccordion {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, { key: '
|
|
4
|
+
return (h(Host, { key: 'e6332a0fa193f07001cf71f61531729529607b2b' }, h("slot", { key: '95ab7de2a8344e267fe97cae784b75635cafd289' })));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "ui-accordion"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -21,6 +21,14 @@ summary::-webkit-details-marker {
|
|
|
21
21
|
display: none;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
summary:hover {
|
|
25
|
+
color: var(--ui-accent);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
summary:hover .chevron {
|
|
29
|
+
color: var(--ui-accent);
|
|
30
|
+
}
|
|
31
|
+
|
|
24
32
|
summary:focus-visible {
|
|
25
33
|
box-shadow: 0 0 0 2px var(--ui-background), 0 0 0 4px var(--ui-ring);
|
|
26
34
|
border-radius: var(--ui-radius-sm);
|
|
@@ -12,7 +12,7 @@ export class UiAccordionItem {
|
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: 'a6753eab6e0dc158aadd47469da57bf73274cb99' }, h("details", { key: 'c98130b641f5cca70f27867ecc23769de0871733', open: this.open, onToggle: this.onToggle }, h("summary", { key: 'ed84e054379bc2f3133c675b5ddd8b6b69bb205c' }, h("span", { key: '49d66f1f5ade0c22d4b13f1ead38d712d8dc0310', class: "heading" }, this.heading), h("svg", { key: '74261819a62cf9dc397d8ca50c654897e080801b', class: "chevron", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, h("polyline", { key: 'd69ebaaa12602c3c2d4a44d1c5b5ca6ed523f254', points: "6 9 12 15 18 9" }))), h("div", { key: '98178b28965c4595c0330299a358cc821424985f', class: "content" }, h("slot", { key: 'd633bc20693f7ac970e6fa1cf55760841243a870' })))));
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "ui-accordion-item"; }
|
|
18
18
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5,7 +5,7 @@ export class UiAvatar {
|
|
|
5
5
|
this.alt = "";
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: '7a6bbef0807d0d3dc25692a6bf87171131579e46' }, h("span", { key: '6b548ed4e5ec0dc7bb52dcb3660ffc188705439f', class: "avatar" }, this.src ? (h("img", { class: "image", src: this.src, alt: this.alt })) : (h("span", { class: "fallback" }, this.fallback)))));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "ui-avatar"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -3,22 +3,36 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.card {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
gap: 0.5rem;
|
|
9
|
+
padding: 1.5rem;
|
|
6
10
|
border: 1px solid var(--ui-border);
|
|
7
11
|
background: var(--ui-panel);
|
|
8
12
|
box-shadow: var(--ui-shadow-lg);
|
|
9
13
|
backdrop-filter: blur(22px) saturate(140%);
|
|
10
14
|
border-radius: var(--ui-radius-xl);
|
|
11
|
-
color: var(--ui-
|
|
12
|
-
|
|
15
|
+
color: var(--ui-text-soft);
|
|
16
|
+
font-family: var(--ui-font-sans);
|
|
13
17
|
}
|
|
14
18
|
|
|
19
|
+
/* Slots nomeados: vazios usam display:contents (default), então não geram gap. */
|
|
15
20
|
::slotted([slot="title"]) {
|
|
21
|
+
margin: 0;
|
|
16
22
|
font-size: 1.125rem;
|
|
17
23
|
font-weight: 600;
|
|
18
24
|
letter-spacing: -0.01em;
|
|
25
|
+
color: var(--ui-foreground);
|
|
19
26
|
}
|
|
20
27
|
|
|
21
28
|
::slotted([slot="description"]) {
|
|
22
|
-
|
|
29
|
+
margin: 0;
|
|
23
30
|
font-size: 0.875rem;
|
|
31
|
+
color: var(--ui-text-muted);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
::slotted([slot="footer"]) {
|
|
35
|
+
display: flex;
|
|
36
|
+
gap: 0.75rem;
|
|
37
|
+
margin-top: 0.5rem;
|
|
24
38
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class UiCard {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, { key: '
|
|
4
|
+
return (h(Host, { key: '1608f7f7bd8addc04064a70965fdb28a67a1abef' }, h("div", { key: '976e8fa507f78649789161f5eaaa2308547c7040', class: "card" }, h("slot", { key: '803ef160438006449051c2068246fd6f20562cc5', name: "title" }), h("slot", { key: '84bfdd0d56b015d09598e53e0002b9ac5e69934d', name: "description" }), h("slot", { key: '97d8522f426b54ab6a8b51038bd8f2b8e2413d0e' }), h("slot", { key: '8b36ab658e61cdebb391d6bb8dc427d809a81b30', name: "footer" }))));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "ui-card"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -19,7 +19,7 @@ export class UiCheckbox {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (h(Host, { key: '
|
|
22
|
+
return (h(Host, { key: '3702acd47b1980ddf23df427a68c69ee782756e4' }, h("button", { key: '8cc709719dd004d01ca6ed82c0fab53ed38f8962', class: "checkbox", type: "button", role: "checkbox", "aria-checked": this.checked ? "true" : "false", disabled: this.disabled, onClick: this.toggle, onKeyDown: this.onKeyDown }, h("svg", { key: 'fa4875d7a2809133496a543fa6efd0de8c8c4c06', class: "check", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "3", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, h("polyline", { key: '34a601d25b20fdf1ad697349531888648795f4bf', points: "20 6 9 17 4 12" })))));
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "ui-checkbox"; }
|
|
25
25
|
static get encapsulation() { return "shadow"; }
|
|
@@ -37,7 +37,7 @@ export class UiDialog {
|
|
|
37
37
|
this.open = false;
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: 'df811bec2a6a250e90cbb6d9c85202b2d3c2c964' }, h("dialog", { key: '49572b35ec17863fb83e9973c548a8cafa0308b6', class: "dialog", ref: (el) => (this.dialogEl = el), onClose: this.onClose, onCancel: this.onClose, onClick: this.onBackdropClick }, h("div", { key: '53c82b2c7a1b8831d64a060b4665a60bbdc7e39a', class: "content" }, h("slot", { key: 'b398a9692fdf2826b86125723bc232791e6b9e4b' })))));
|
|
41
41
|
}
|
|
42
42
|
static get is() { return "ui-dialog"; }
|
|
43
43
|
static get encapsulation() { return "shadow"; }
|
|
@@ -39,7 +39,7 @@ export class UiDrawer {
|
|
|
39
39
|
this.open = false;
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: '9f2f27dcc087f608a3aeed4fe64a65eb8fe4011b' }, h("dialog", { key: '92471e4a732f00e4187efb37cbba553651c2f9dd', class: `drawer side-${this.side}`, ref: (el) => (this.dialogEl = el), onClose: this.onClose, onCancel: this.onClose, onClick: this.onBackdropClick }, h("div", { key: 'd6706d4943f8559aee320b6df509138c44857bf0', class: "content" }, h("slot", { key: '5cb218bde44c73fd02c640c1d0da736427f2707c' })))));
|
|
43
43
|
}
|
|
44
44
|
static get is() { return "ui-drawer"; }
|
|
45
45
|
static get encapsulation() { return "shadow"; }
|
|
@@ -11,7 +11,7 @@ export class UiDropdownItem {
|
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: '57af1c437b63fb19cfe297741b2b0f8d34564be9' }, h("button", { key: 'e3df81eb4c921d8b447c46da5140d21fb8126417', type: "button", class: "item", role: "menuitem", disabled: this.disabled, onClick: this.onClick }, h("slot", { key: '162d876af4ed9913c79964afcdceda7539feb95b' }))));
|
|
15
15
|
}
|
|
16
16
|
static get is() { return "ui-dropdown-item"; }
|
|
17
17
|
static get encapsulation() { return "shadow"; }
|
|
@@ -76,7 +76,7 @@ export class UiDropdownMenu {
|
|
|
76
76
|
this.cleanup = undefined;
|
|
77
77
|
}
|
|
78
78
|
render() {
|
|
79
|
-
return (h(Host, { key: '
|
|
79
|
+
return (h(Host, { key: '65adc044508abd9ebf4b866fba02058bdcd22d5d' }, h("span", { key: 'e70a23e1b41c7936ab1dc3a87cd3593b3db43088', class: "trigger", ref: (el) => (this.triggerEl = el), onClick: this.onTriggerClick }, h("slot", { key: '40f2226b6ba6f1d3032cd2b2f2477fbcdf9617b5', name: "trigger" })), h("div", { key: '6af4ab3c98a9334d805e75da724d5572e4c986aa', class: { menu: true, "is-open": this.open }, role: "menu", ref: (el) => (this.floatingEl = el) }, h("slot", { key: '7f99ba16ab9544d5cf63b28f77f18fd4d0fbbed2' }))));
|
|
80
80
|
}
|
|
81
81
|
static get is() { return "ui-dropdown-menu"; }
|
|
82
82
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5,7 +5,7 @@ export class UiField {
|
|
|
5
5
|
this.required = false;
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: '5656c6d47f71364d26db0e4998e64b8780ee3840' }, h("div", { key: '6adc292e3ae0829c7f5533b2be732644f7e95dab', class: "field" }, this.label && (h("label", { key: 'e7c2e2fa1c3b0bc6edadb1385062fe53e5b2f5f7', class: "label", htmlFor: this.fieldId }, this.label, this.required && (h("span", { key: '06e56259184b4618eb9f2b3602ebb691e6b0ef1b', class: "required", "aria-hidden": "true" }, " *")))), h("slot", { key: 'bd44f4f425f257671eff1ed536051fb318671afc' }), this.error ? (h("p", { class: "error", role: "alert" }, this.error)) : (this.description && h("p", { class: "description" }, this.description)))));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "ui-field"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -19,7 +19,7 @@ export class UiInput {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (h(Host, { key: '
|
|
22
|
+
return (h(Host, { key: 'b904b919904db1677ed9480e43bf939138f09dfc' }, h("input", { key: '086b0bdd4a5f5c01af04be41cdee2e72af2376f1', class: { input: true, invalid: this.invalid }, 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 })));
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "ui-input"; }
|
|
25
25
|
static get encapsulation() { return "shadow"; }
|