@andespindola/ui-core 0.1.0 → 0.2.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/loader.cjs.js +1 -1
- 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-alert.cjs.entry.js +40 -0
- package/dist/cjs/ui-avatar-group.cjs.entry.js +17 -0
- package/dist/cjs/ui-avatar.cjs.entry.js +2 -2
- package/dist/cjs/ui-badge.cjs.entry.js +7 -2
- package/dist/cjs/ui-breadcrumb-item.cjs.entry.js +23 -0
- package/dist/cjs/ui-breadcrumb.cjs.entry.js +17 -0
- package/dist/cjs/ui-button.cjs.entry.js +5 -3
- package/dist/cjs/ui-card.cjs.entry.js +2 -2
- package/dist/cjs/ui-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/ui-container.cjs.entry.js +26 -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 +1 -1
- package/dist/cjs/ui-field.cjs.entry.js +1 -1
- package/dist/cjs/ui-grid.cjs.entry.js +34 -0
- package/dist/cjs/ui-input.cjs.entry.js +10 -2
- package/dist/cjs/ui-label.cjs.entry.js +1 -1
- package/dist/cjs/ui-pagination.cjs.entry.js +63 -0
- package/dist/cjs/ui-popover.cjs.entry.js +1 -1
- package/dist/cjs/ui-progress.cjs.entry.js +2 -2
- package/dist/cjs/ui-radio-group.cjs.entry.js +1 -1
- 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-segmented.cjs.entry.js +31 -0
- package/dist/cjs/ui-select.cjs.entry.js +2 -2
- package/dist/cjs/ui-separator.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-spinner.cjs.entry.js +1 -1
- package/dist/cjs/ui-stack.cjs.entry.js +53 -0
- package/dist/cjs/ui-stat.cjs.entry.js +28 -0
- package/dist/cjs/ui-switch.cjs.entry.js +1 -1
- package/dist/cjs/ui-tabs.cjs.entry.js +3 -3
- package/dist/cjs/ui-textarea.cjs.entry.js +2 -2
- package/dist/cjs/ui-theme-toggle.cjs.entry.js +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 +10 -0
- 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-alert/ui-alert.css +95 -0
- package/dist/collection/components/ui-alert/ui-alert.js +134 -0
- package/dist/collection/components/ui-avatar/ui-avatar.css +31 -0
- package/dist/collection/components/ui-avatar/ui-avatar.js +20 -1
- package/dist/collection/components/ui-avatar-group/ui-avatar-group.css +22 -0
- package/dist/collection/components/ui-avatar-group/ui-avatar-group.js +21 -0
- package/dist/collection/components/ui-badge/ui-badge.css +26 -0
- package/dist/collection/components/ui-badge/ui-badge.js +63 -1
- package/dist/collection/components/ui-breadcrumb/ui-breadcrumb.css +15 -0
- package/dist/collection/components/ui-breadcrumb/ui-breadcrumb.js +18 -0
- package/dist/collection/components/ui-breadcrumb-item/ui-breadcrumb-item.css +30 -0
- package/dist/collection/components/ui-breadcrumb-item/ui-breadcrumb-item.js +69 -0
- package/dist/collection/components/ui-button/ui-button.css +11 -1
- package/dist/collection/components/ui-button/ui-button.js +24 -2
- 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.css +6 -2
- package/dist/collection/components/ui-checkbox/ui-checkbox.js +1 -1
- package/dist/collection/components/ui-container/ui-container.css +38 -0
- package/dist/collection/components/ui-container/ui-container.js +79 -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-grid/ui-grid.css +8 -0
- package/dist/collection/components/ui-grid/ui-grid.js +106 -0
- package/dist/collection/components/ui-input/ui-input.css +65 -14
- package/dist/collection/components/ui-input/ui-input.js +29 -1
- package/dist/collection/components/ui-label/ui-label.js +1 -1
- package/dist/collection/components/ui-pagination/ui-pagination.css +59 -0
- package/dist/collection/components/ui-pagination/ui-pagination.js +147 -0
- 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-radio-group/ui-radio-group.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-segmented/ui-segmented.css +46 -0
- package/dist/collection/components/ui-segmented/ui-segmented.js +99 -0
- package/dist/collection/components/ui-select/ui-select.css +4 -0
- 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.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-spinner/ui-spinner.js +1 -1
- package/dist/collection/components/ui-stack/ui-stack.css +8 -0
- package/dist/collection/components/ui-stack/ui-stack.js +184 -0
- package/dist/collection/components/ui-stat/ui-stat.css +69 -0
- package/dist/collection/components/ui-stat/ui-stat.js +118 -0
- 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 +2 -2
- 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-Bz9HyboB.js → p-BwNtNvTb.js} +1 -1
- package/dist/components/{p-C8ePpPG3.js → p-CgsjJD8o.js} +1 -1
- package/dist/components/ui-accordion-item.js +1 -1
- package/dist/components/ui-accordion.js +1 -1
- package/dist/components/ui-alert.d.ts +11 -0
- package/dist/components/ui-alert.js +1 -0
- package/dist/components/ui-avatar-group.d.ts +11 -0
- package/dist/components/ui-avatar-group.js +1 -0
- package/dist/components/ui-avatar.js +1 -1
- package/dist/components/ui-badge.js +1 -1
- package/dist/components/ui-breadcrumb-item.d.ts +11 -0
- package/dist/components/ui-breadcrumb-item.js +1 -0
- package/dist/components/ui-breadcrumb.d.ts +11 -0
- package/dist/components/ui-breadcrumb.js +1 -0
- 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-container.d.ts +11 -0
- package/dist/components/ui-container.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-grid.d.ts +11 -0
- package/dist/components/ui-grid.js +1 -0
- 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-pagination.d.ts +11 -0
- package/dist/components/ui-pagination.js +1 -0
- package/dist/components/ui-popover.js +1 -1
- package/dist/components/ui-progress.js +1 -1
- package/dist/components/ui-radio-group.js +1 -1
- package/dist/components/ui-reveal.js +1 -1
- package/dist/components/ui-scroll-progress.js +1 -1
- package/dist/components/ui-section.js +1 -1
- package/dist/components/ui-segmented.d.ts +11 -0
- package/dist/components/ui-segmented.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/ui-stack.js +1 -0
- package/dist/components/ui-stat.d.ts +11 -0
- package/dist/components/ui-stat.js +1 -0
- 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/loader.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-alert.entry.js +38 -0
- package/dist/esm/ui-avatar-group.entry.js +15 -0
- package/dist/esm/ui-avatar.entry.js +2 -2
- package/dist/esm/ui-badge.entry.js +8 -3
- package/dist/esm/ui-breadcrumb-item.entry.js +21 -0
- package/dist/esm/ui-breadcrumb.entry.js +15 -0
- package/dist/esm/ui-button.entry.js +5 -3
- package/dist/esm/ui-card.entry.js +2 -2
- package/dist/esm/ui-checkbox.entry.js +2 -2
- package/dist/esm/ui-container.entry.js +24 -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 +1 -1
- package/dist/esm/ui-field.entry.js +1 -1
- package/dist/esm/ui-grid.entry.js +32 -0
- package/dist/esm/ui-input.entry.js +10 -2
- package/dist/esm/ui-label.entry.js +1 -1
- package/dist/esm/ui-pagination.entry.js +61 -0
- package/dist/esm/ui-popover.entry.js +1 -1
- package/dist/esm/ui-progress.entry.js +2 -2
- package/dist/esm/ui-radio-group.entry.js +1 -1
- 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-segmented.entry.js +29 -0
- package/dist/esm/ui-select.entry.js +2 -2
- package/dist/esm/ui-separator.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-spinner.entry.js +1 -1
- package/dist/esm/ui-stack.entry.js +51 -0
- package/dist/esm/ui-stat.entry.js +26 -0
- package/dist/esm/ui-switch.entry.js +1 -1
- package/dist/esm/ui-tabs.entry.js +3 -3
- package/dist/esm/ui-textarea.entry.js +2 -2
- package/dist/esm/ui-theme-toggle.entry.js +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-alert/ui-alert.d.ts +17 -0
- package/dist/types/components/ui-avatar/ui-avatar.d.ts +2 -0
- package/dist/types/components/ui-avatar-group/ui-avatar-group.d.ts +6 -0
- package/dist/types/components/ui-badge/ui-badge.d.ts +7 -0
- package/dist/types/components/ui-breadcrumb/ui-breadcrumb.d.ts +3 -0
- package/dist/types/components/ui-breadcrumb-item/ui-breadcrumb-item.d.ts +8 -0
- package/dist/types/components/ui-button/ui-button.d.ts +2 -0
- package/dist/types/components/ui-container/ui-container.d.ts +8 -0
- package/dist/types/components/ui-grid/ui-grid.d.ts +10 -0
- package/dist/types/components/ui-input/ui-input.d.ts +3 -0
- package/dist/types/components/ui-pagination/ui-pagination.d.ts +15 -0
- package/dist/types/components/ui-segmented/ui-segmented.d.ts +15 -0
- package/dist/types/components/ui-stack/ui-stack.d.ts +17 -0
- package/dist/types/components/ui-stat/ui-stat.d.ts +13 -0
- package/dist/types/components.d.ts +552 -0
- package/dist/uikit/{p-8cebbe65.entry.js → p-09895cd0.entry.js} +1 -1
- package/dist/uikit/p-0cba0d11.entry.js +1 -0
- package/dist/uikit/p-12db6a6e.entry.js +1 -0
- package/dist/uikit/{p-4a1abc1c.entry.js → p-1d016ea4.entry.js} +1 -1
- package/dist/uikit/{p-19b81437.entry.js → p-25637424.entry.js} +1 -1
- package/dist/uikit/p-2601d8b6.entry.js +1 -0
- package/dist/uikit/p-2de05aac.entry.js +1 -0
- package/dist/uikit/{p-3d30bc7a.entry.js → p-3996590f.entry.js} +1 -1
- package/dist/uikit/p-3fc062a6.entry.js +1 -0
- package/dist/uikit/p-45e80e73.entry.js +1 -0
- package/dist/uikit/{p-b61e3df4.entry.js → p-55a23f91.entry.js} +1 -1
- package/dist/uikit/p-567f7496.entry.js +1 -0
- package/dist/uikit/p-5951a496.entry.js +1 -0
- package/dist/uikit/{p-9aa557d1.entry.js → p-595e146f.entry.js} +1 -1
- package/dist/uikit/p-635862e6.entry.js +1 -0
- package/dist/uikit/{p-c72ed105.entry.js → p-67963692.entry.js} +1 -1
- package/dist/uikit/p-6c0e9809.entry.js +1 -0
- package/dist/uikit/p-74b60a60.entry.js +1 -0
- package/dist/uikit/p-7a3d85da.entry.js +1 -0
- package/dist/uikit/{p-f7402442.entry.js → p-7f2c2924.entry.js} +1 -1
- package/dist/uikit/{p-5df32809.entry.js → p-81b45a43.entry.js} +1 -1
- package/dist/uikit/p-86ed6154.entry.js +1 -0
- package/dist/uikit/p-94ad46a5.entry.js +1 -0
- package/dist/uikit/{p-e410c789.entry.js → p-95cd976e.entry.js} +1 -1
- package/dist/uikit/{p-4382718f.entry.js → p-979f6178.entry.js} +1 -1
- package/dist/uikit/p-97d4dbf4.entry.js +1 -0
- package/dist/uikit/p-9a4dc343.entry.js +1 -0
- package/dist/uikit/p-9a9590b9.entry.js +1 -0
- package/dist/uikit/p-a01305a5.entry.js +1 -0
- package/dist/uikit/p-a080f46a.entry.js +1 -0
- package/dist/uikit/p-a92a7b19.entry.js +1 -0
- package/dist/uikit/p-a977a0db.entry.js +1 -0
- package/dist/uikit/p-b2df8437.entry.js +1 -0
- package/dist/uikit/{p-9e7b81ef.entry.js → p-c73c1009.entry.js} +1 -1
- package/dist/uikit/{p-83159bfc.entry.js → p-cd0ec835.entry.js} +1 -1
- package/dist/uikit/p-d20452b4.entry.js +1 -0
- package/dist/uikit/p-d7021157.entry.js +1 -0
- package/dist/uikit/p-db07f9c5.entry.js +1 -0
- package/dist/uikit/p-dca9f6f9.entry.js +1 -0
- package/dist/uikit/p-ddd70374.entry.js +1 -0
- package/dist/uikit/{p-629c1728.entry.js → p-faa98928.entry.js} +1 -1
- package/dist/uikit/p-fd832f52.entry.js +1 -0
- package/dist/uikit/uikit.esm.js +1 -1
- package/package.json +8 -3
- package/dist/uikit/p-06d6d907.entry.js +0 -1
- package/dist/uikit/p-0fb4949b.entry.js +0 -1
- package/dist/uikit/p-162302d1.entry.js +0 -1
- package/dist/uikit/p-24edfe3e.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-8bcd423c.entry.js +0 -1
- package/dist/uikit/p-90d49509.entry.js +0 -1
- package/dist/uikit/p-94fb298e.entry.js +0 -1
- package/dist/uikit/p-9c57cf57.entry.js +0 -1
- package/dist/uikit/p-9d784b04.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
|
@@ -73,7 +73,7 @@ export class UiPopover {
|
|
|
73
73
|
this.cleanup = undefined;
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
|
-
return (h(Host, { key: '
|
|
76
|
+
return (h(Host, { key: '61b4088ff4d61701a3466619274e60ac64fcc420' }, h("span", { key: 'd2d00f4dbf391ea1bc119870e399187d98634de6', class: "trigger", ref: (el) => (this.triggerEl = el), onClick: this.onTriggerClick }, h("slot", { key: 'ece70edbdda096821de68295e55a3fba3caeada4', name: "trigger" })), h("div", { key: 'f30e5a570e49eb9c7056fd820bc57408dd78e013', class: { panel: true, "is-open": this.open }, ref: (el) => (this.floatingEl = el) }, h("slot", { key: '5823d3c7ed47946d812a2c34002fc5fd0cfc8a29' }))));
|
|
77
77
|
}
|
|
78
78
|
static get is() { return "ui-popover"; }
|
|
79
79
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,26 +7,31 @@
|
|
|
7
7
|
height: 0.5rem;
|
|
8
8
|
border-radius: var(--ui-radius-full);
|
|
9
9
|
background: var(--ui-chip);
|
|
10
|
+
border: 1px solid var(--ui-border);
|
|
10
11
|
overflow: hidden;
|
|
12
|
+
box-sizing: border-box;
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
.indicator {
|
|
14
16
|
height: 100%;
|
|
17
|
+
min-width: 0.5rem;
|
|
15
18
|
border-radius: var(--ui-radius-full);
|
|
16
|
-
background: var(--ui-accent);
|
|
19
|
+
background: linear-gradient(90deg, var(--ui-accent), var(--ui-accent-strong));
|
|
20
|
+
box-shadow: 0 0 12px color-mix(in srgb, var(--ui-accent) 55%, transparent);
|
|
17
21
|
transition: width var(--ui-duration) var(--ui-ease);
|
|
18
22
|
}
|
|
19
23
|
|
|
20
24
|
.indicator.indeterminate {
|
|
21
25
|
width: 40%;
|
|
22
|
-
|
|
26
|
+
min-width: 0;
|
|
27
|
+
animation: ui-progress-slide 1.3s var(--ui-ease) infinite;
|
|
23
28
|
}
|
|
24
29
|
|
|
25
30
|
@keyframes ui-progress-slide {
|
|
26
31
|
0% {
|
|
27
|
-
transform: translateX(-
|
|
32
|
+
transform: translateX(-110%);
|
|
28
33
|
}
|
|
29
34
|
100% {
|
|
30
|
-
transform: translateX(
|
|
35
|
+
transform: translateX(360%);
|
|
31
36
|
}
|
|
32
37
|
}
|
|
@@ -19,7 +19,7 @@ export class UiProgress {
|
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
21
|
const determinate = !this.isIndeterminate;
|
|
22
|
-
return (h(Host, { key: '
|
|
22
|
+
return (h(Host, { key: '8f40e0e4a439959e1474d2952f0f891438fb3ecf', role: "progressbar", "aria-valuenow": determinate ? String(this.value) : undefined, "aria-valuemin": determinate ? "0" : undefined, "aria-valuemax": determinate ? String(this.max) : undefined }, h("div", { key: '9bfd7557efbfad05a8b170764b96935f00cbdaeb', class: "track" }, h("div", { key: '02205ac65e75f27f52869991b168c6397c8b2760', class: { indicator: true, indeterminate: this.isIndeterminate }, style: determinate ? { width: `${this.percent}%` } : undefined }))));
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "ui-progress"; }
|
|
25
25
|
static get encapsulation() { return "shadow"; }
|
|
@@ -31,7 +31,7 @@ export class UiRadioGroup {
|
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: '67c377ec552ea8cb6ea3d015bab1ee3d66ee436c' }, h("div", { key: 'aa52c74b8473ca06b762811a900d90cdfc8f7422', class: "group", role: "radiogroup" }, this.options.map((option, index) => {
|
|
35
35
|
const selected = option.value === this.value;
|
|
36
36
|
return (h("button", { class: "radio", type: "button", role: "radio", "aria-checked": selected ? "true" : "false", tabindex: selected || (!this.value && index === 0) ? "0" : "-1", disabled: this.disabled, onClick: () => this.select(option.value), onKeyDown: (event) => this.onKeyDown(event, index) }, h("span", { class: "indicator" }, h("span", { class: "dot" })), h("span", { class: "label" }, option.label)));
|
|
37
37
|
}))));
|
|
@@ -26,7 +26,7 @@ export class UiReveal {
|
|
|
26
26
|
this.observer?.disconnect();
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: '4ab570c0eaa9fb6b4d6a9d01887fde6edd72ba8d' }, h("div", { key: 'cf0287499bfa5107fb49cadc85c85f2f70063967', class: { reveal: true, visible: this.visible }, style: { transitionDelay: `${this.delay}ms` } }, h("slot", { key: 'b46502732e597f13d60ec55be0d456dba8181386' }))));
|
|
30
30
|
}
|
|
31
31
|
static get is() { return "ui-reveal"; }
|
|
32
32
|
static get encapsulation() { return "shadow"; }
|
|
@@ -23,7 +23,7 @@ export class UiScrollProgress {
|
|
|
23
23
|
window.removeEventListener("scroll", this.onScroll);
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
|
-
return (h(Host, { key: '
|
|
26
|
+
return (h(Host, { key: 'cb2d746b6e0ca3642a0460cff5685f2eb83a6301' }, h("div", { key: '7fdb8b414f833110c389aef8620c313fb8c001c7', class: "bar", role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-valuenow": Math.round(this.progress * 100), style: { transform: `scaleX(${this.progress})` } })));
|
|
27
27
|
}
|
|
28
28
|
static get is() { return "ui-scroll-progress"; }
|
|
29
29
|
static get encapsulation() { return "shadow"; }
|
|
@@ -6,22 +6,29 @@
|
|
|
6
6
|
section {
|
|
7
7
|
max-width: 80rem;
|
|
8
8
|
margin: 0 auto;
|
|
9
|
-
padding: 5rem 1.
|
|
9
|
+
padding: 3.5rem 1.5rem;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.eyebrow {
|
|
13
|
+
display: inline-block;
|
|
13
14
|
margin: 0 0 0.75rem;
|
|
15
|
+
padding: 0.25rem 0.625rem;
|
|
16
|
+
border: 1px solid var(--ui-border);
|
|
17
|
+
border-radius: var(--ui-radius-full);
|
|
18
|
+
background: var(--ui-chip);
|
|
14
19
|
text-transform: uppercase;
|
|
15
|
-
letter-spacing: 0.
|
|
16
|
-
font-size: 0.
|
|
20
|
+
letter-spacing: 0.12em;
|
|
21
|
+
font-size: 0.6875rem;
|
|
17
22
|
font-weight: 600;
|
|
18
23
|
color: var(--ui-accent);
|
|
19
24
|
}
|
|
20
25
|
|
|
21
26
|
.heading {
|
|
22
|
-
margin: 0 0
|
|
23
|
-
font-size:
|
|
27
|
+
margin: 0 0 0.75rem;
|
|
28
|
+
font-size: 2.25rem;
|
|
24
29
|
font-weight: 600;
|
|
30
|
+
letter-spacing: -0.02em;
|
|
31
|
+
line-height: 1.1;
|
|
25
32
|
color: var(--ui-foreground);
|
|
26
33
|
}
|
|
27
34
|
|
|
@@ -9,7 +9,7 @@ export class UiSection {
|
|
|
9
9
|
this.description = "";
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: '71344e4d5a4c6bccade1bf5151aeba1dffa14d7f' }, h("section", { key: '404cb27c6db128f60608b4eff44fa6e05520016b' }, this.eyebrow && h("p", { key: '204ced95531d3bf77c2a32f940c3ec4bc0e76f53', class: "eyebrow" }, this.eyebrow), this.heading && h("h2", { key: '46818123dd264ef60db8ff9c7a2ad93979d71434', class: "heading" }, this.heading), this.description && h("p", { key: 'eaba39853cd12a874c9079e2181aca9e0fc130b7', class: "description" }, this.description), h("slot", { key: '24d02b1d9176e42d7906ef43881807d7cfda2e52' }))));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "ui-section"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.track {
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
gap: 0.125rem;
|
|
9
|
+
padding: 0.25rem;
|
|
10
|
+
border: 1px solid var(--ui-border);
|
|
11
|
+
border-radius: var(--ui-radius-full);
|
|
12
|
+
background: var(--ui-chip);
|
|
13
|
+
font-family: var(--ui-font-sans);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.segment {
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
height: 2rem;
|
|
21
|
+
padding: 0 0.875rem;
|
|
22
|
+
border: none;
|
|
23
|
+
border-radius: var(--ui-radius-full);
|
|
24
|
+
background: transparent;
|
|
25
|
+
color: var(--ui-text-muted);
|
|
26
|
+
font-family: var(--ui-font-sans);
|
|
27
|
+
font-size: 0.8125rem;
|
|
28
|
+
font-weight: 500;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
outline: none;
|
|
31
|
+
transition: all var(--ui-duration) var(--ui-ease);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.segment:hover {
|
|
35
|
+
color: var(--ui-foreground);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.segment:focus-visible {
|
|
39
|
+
box-shadow: 0 0 0 2px var(--ui-ring);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.segment.active {
|
|
43
|
+
background: var(--ui-panel-strong);
|
|
44
|
+
color: var(--ui-foreground);
|
|
45
|
+
box-shadow: var(--ui-shadow-sm);
|
|
46
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
export class UiSegmented {
|
|
3
|
+
constructor() {
|
|
4
|
+
/** Lista de segmentos. */
|
|
5
|
+
this.items = [];
|
|
6
|
+
/** Valor do segmento ativo. */
|
|
7
|
+
this.value = "";
|
|
8
|
+
this.select = (value) => {
|
|
9
|
+
if (value === this.value)
|
|
10
|
+
return;
|
|
11
|
+
this.value = value;
|
|
12
|
+
this.uiChange.emit(value);
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
return (h(Host, { key: '92649a392383aebb62bab90e3f20a008783f2ed2' }, h("div", { key: '22983cd496ee1f9ed1dbf49d989c409cdca3c8b4', class: "track", role: "radiogroup" }, this.items.map((item) => {
|
|
17
|
+
const active = item.value === this.value;
|
|
18
|
+
return (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));
|
|
19
|
+
}))));
|
|
20
|
+
}
|
|
21
|
+
static get is() { return "ui-segmented"; }
|
|
22
|
+
static get encapsulation() { return "shadow"; }
|
|
23
|
+
static get originalStyleUrls() {
|
|
24
|
+
return {
|
|
25
|
+
"$": ["ui-segmented.css"]
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
static get styleUrls() {
|
|
29
|
+
return {
|
|
30
|
+
"$": ["ui-segmented.css"]
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
static get properties() {
|
|
34
|
+
return {
|
|
35
|
+
"items": {
|
|
36
|
+
"type": "unknown",
|
|
37
|
+
"mutable": false,
|
|
38
|
+
"complexType": {
|
|
39
|
+
"original": "UiSegmentedItem[]",
|
|
40
|
+
"resolved": "UiSegmentedItem[]",
|
|
41
|
+
"references": {
|
|
42
|
+
"UiSegmentedItem": {
|
|
43
|
+
"location": "local",
|
|
44
|
+
"path": "/Users/andersonespindola/.ghq/github.com/andersonflima/ui/packages/core/src/components/ui-segmented/ui-segmented.tsx",
|
|
45
|
+
"id": "src/components/ui-segmented/ui-segmented.tsx::UiSegmentedItem"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"required": false,
|
|
50
|
+
"optional": false,
|
|
51
|
+
"docs": {
|
|
52
|
+
"tags": [],
|
|
53
|
+
"text": "Lista de segmentos."
|
|
54
|
+
},
|
|
55
|
+
"getter": false,
|
|
56
|
+
"setter": false,
|
|
57
|
+
"defaultValue": "[]"
|
|
58
|
+
},
|
|
59
|
+
"value": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"mutable": true,
|
|
62
|
+
"complexType": {
|
|
63
|
+
"original": "string",
|
|
64
|
+
"resolved": "string",
|
|
65
|
+
"references": {}
|
|
66
|
+
},
|
|
67
|
+
"required": false,
|
|
68
|
+
"optional": false,
|
|
69
|
+
"docs": {
|
|
70
|
+
"tags": [],
|
|
71
|
+
"text": "Valor do segmento ativo."
|
|
72
|
+
},
|
|
73
|
+
"getter": false,
|
|
74
|
+
"setter": false,
|
|
75
|
+
"reflect": true,
|
|
76
|
+
"attribute": "value",
|
|
77
|
+
"defaultValue": "\"\""
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
static get events() {
|
|
82
|
+
return [{
|
|
83
|
+
"method": "uiChange",
|
|
84
|
+
"name": "uiChange",
|
|
85
|
+
"bubbles": true,
|
|
86
|
+
"cancelable": true,
|
|
87
|
+
"composed": true,
|
|
88
|
+
"docs": {
|
|
89
|
+
"tags": [],
|
|
90
|
+
"text": "Emitido quando o segmento ativo muda."
|
|
91
|
+
},
|
|
92
|
+
"complexType": {
|
|
93
|
+
"original": "string",
|
|
94
|
+
"resolved": "string",
|
|
95
|
+
"references": {}
|
|
96
|
+
}
|
|
97
|
+
}];
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -13,7 +13,7 @@ export class UiSelect {
|
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
15
|
const hasValue = this.value !== undefined && this.value !== "";
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: '5f41047362d77643cc663925900c15c6cd10ec60' }, h("div", { key: '53ec77b2100bdd6de568ad549a42ad8fd080ac6a', class: "wrapper" }, h("select", { key: 'b0b4b1def7b7166bf24f996f9736a670a9b7b052', class: "select", name: this.name, disabled: this.disabled, onChange: this.onChange }, this.placeholder && (h("option", { key: 'e83b039418ac74bb3124c151dca9af43ff05dd61', value: "", disabled: true, selected: !hasValue }, this.placeholder)), this.options.map((option) => (h("option", { value: option.value, selected: option.value === this.value }, option.label)))), h("svg", { key: 'bb3165c856d11b352b2c7a64cc12ab4284541fb4', class: "chevron", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, h("polyline", { key: 'ab5e3cb2419dc63fbcd3804740b781c856ae8240', points: "6 9 12 15 18 9" })))));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "ui-select"; }
|
|
19
19
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5,7 +5,7 @@ export class UiSeparator {
|
|
|
5
5
|
this.orientation = "horizontal";
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: '33e452485ff7838e37a378f9acba10f242069cfc', role: "separator", "aria-orientation": this.orientation, class: `orientation-${this.orientation}` }));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "ui-separator"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -6,22 +6,25 @@
|
|
|
6
6
|
display: block;
|
|
7
7
|
width: 100%;
|
|
8
8
|
height: 100%;
|
|
9
|
+
min-height: 1rem;
|
|
9
10
|
border-radius: var(--ui-radius-sm);
|
|
10
|
-
background:
|
|
11
|
+
background-color: var(--ui-chip);
|
|
12
|
+
background-image: linear-gradient(
|
|
11
13
|
90deg,
|
|
12
|
-
|
|
13
|
-
var(--ui-
|
|
14
|
-
|
|
14
|
+
transparent,
|
|
15
|
+
color-mix(in srgb, var(--ui-foreground) 12%, transparent),
|
|
16
|
+
transparent
|
|
15
17
|
);
|
|
16
18
|
background-size: 200% 100%;
|
|
19
|
+
background-repeat: no-repeat;
|
|
17
20
|
animation: ui-skeleton-shimmer 1.5s ease-in-out infinite;
|
|
18
21
|
}
|
|
19
22
|
|
|
20
23
|
@keyframes ui-skeleton-shimmer {
|
|
21
24
|
0% {
|
|
22
|
-
background-position:
|
|
25
|
+
background-position: -150% 0;
|
|
23
26
|
}
|
|
24
27
|
100% {
|
|
25
|
-
background-position:
|
|
28
|
+
background-position: 150% 0;
|
|
26
29
|
}
|
|
27
30
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class UiSkeleton {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, { key: '
|
|
4
|
+
return (h(Host, { key: '8f839817a493a8221e9d3b2e95fd7ae5ece2e70e' }, h("span", { key: '295dce8e9e6489def8b20a703f04c65ad3740ce8', class: "skeleton" })));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "ui-skeleton"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -21,7 +21,7 @@ export class UiSlider {
|
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
return (h(Host, { key: '
|
|
24
|
+
return (h(Host, { key: '22fe57f0e95edb2e169718c8b1fb5c2f3d78ddfe' }, h("input", { key: 'a9e16ef8f97f412c22911f72c4b7212f6d04a293', 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 })));
|
|
25
25
|
}
|
|
26
26
|
static get is() { return "ui-slider"; }
|
|
27
27
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5,7 +5,7 @@ export class UiSpinner {
|
|
|
5
5
|
this.size = "md";
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: '0414d6e3be8588ad4c71c5e4cf227075ac7494ab', role: "status" }, h("span", { key: '61e5d0a16b5fd566767ef098477c3144a9c1c987', class: { spinner: true, [`size-${this.size}`]: true } }), h("span", { key: 'ea33b6e6603ba23e7a117ef978329c83818a044b', class: "sr-only" }, "Carregando")));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "ui-spinner"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
const GAP = {
|
|
3
|
+
xs: "0.25rem",
|
|
4
|
+
sm: "0.5rem",
|
|
5
|
+
md: "1rem",
|
|
6
|
+
lg: "1.5rem",
|
|
7
|
+
xl: "2rem",
|
|
8
|
+
};
|
|
9
|
+
const ALIGN = {
|
|
10
|
+
start: "flex-start",
|
|
11
|
+
center: "center",
|
|
12
|
+
end: "flex-end",
|
|
13
|
+
stretch: "stretch",
|
|
14
|
+
};
|
|
15
|
+
const JUSTIFY = {
|
|
16
|
+
start: "flex-start",
|
|
17
|
+
center: "center",
|
|
18
|
+
end: "flex-end",
|
|
19
|
+
between: "space-between",
|
|
20
|
+
};
|
|
21
|
+
export class UiStack {
|
|
22
|
+
constructor() {
|
|
23
|
+
/** Direção do empilhamento. */
|
|
24
|
+
this.direction = "vertical";
|
|
25
|
+
/** Espaçamento entre itens. */
|
|
26
|
+
this.gap = "md";
|
|
27
|
+
/** Alinhamento no eixo cruzado. */
|
|
28
|
+
this.align = "stretch";
|
|
29
|
+
/** Distribuição no eixo principal. */
|
|
30
|
+
this.justify = "start";
|
|
31
|
+
/** Permite quebra de linha dos itens. */
|
|
32
|
+
this.wrap = false;
|
|
33
|
+
}
|
|
34
|
+
render() {
|
|
35
|
+
const style = {
|
|
36
|
+
flexDirection: this.direction === "horizontal" ? "row" : "column",
|
|
37
|
+
gap: GAP[this.gap],
|
|
38
|
+
alignItems: ALIGN[this.align],
|
|
39
|
+
justifyContent: JUSTIFY[this.justify],
|
|
40
|
+
flexWrap: this.wrap ? "wrap" : "nowrap",
|
|
41
|
+
};
|
|
42
|
+
return (h(Host, { key: 'ba9547e72877aa05a5e93afbe098d7402b315df3' }, h("div", { key: 'e0fd73777e2211925435f2fd8bfcb74ad2eb8085', class: "stack", style: style }, h("slot", { key: '3a5aa50721c641f0cc81328a21262ff5d375e55c' }))));
|
|
43
|
+
}
|
|
44
|
+
static get is() { return "ui-stack"; }
|
|
45
|
+
static get encapsulation() { return "shadow"; }
|
|
46
|
+
static get originalStyleUrls() {
|
|
47
|
+
return {
|
|
48
|
+
"$": ["ui-stack.css"]
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
static get styleUrls() {
|
|
52
|
+
return {
|
|
53
|
+
"$": ["ui-stack.css"]
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
static get properties() {
|
|
57
|
+
return {
|
|
58
|
+
"direction": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"mutable": false,
|
|
61
|
+
"complexType": {
|
|
62
|
+
"original": "UiStackDirection",
|
|
63
|
+
"resolved": "\"horizontal\" | \"vertical\"",
|
|
64
|
+
"references": {
|
|
65
|
+
"UiStackDirection": {
|
|
66
|
+
"location": "local",
|
|
67
|
+
"path": "/Users/andersonespindola/.ghq/github.com/andersonflima/ui/packages/core/src/components/ui-stack/ui-stack.tsx",
|
|
68
|
+
"id": "src/components/ui-stack/ui-stack.tsx::UiStackDirection"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"required": false,
|
|
73
|
+
"optional": false,
|
|
74
|
+
"docs": {
|
|
75
|
+
"tags": [],
|
|
76
|
+
"text": "Dire\u00E7\u00E3o do empilhamento."
|
|
77
|
+
},
|
|
78
|
+
"getter": false,
|
|
79
|
+
"setter": false,
|
|
80
|
+
"reflect": false,
|
|
81
|
+
"attribute": "direction",
|
|
82
|
+
"defaultValue": "\"vertical\""
|
|
83
|
+
},
|
|
84
|
+
"gap": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"mutable": false,
|
|
87
|
+
"complexType": {
|
|
88
|
+
"original": "UiStackGap",
|
|
89
|
+
"resolved": "\"lg\" | \"md\" | \"sm\" | \"xl\" | \"xs\"",
|
|
90
|
+
"references": {
|
|
91
|
+
"UiStackGap": {
|
|
92
|
+
"location": "local",
|
|
93
|
+
"path": "/Users/andersonespindola/.ghq/github.com/andersonflima/ui/packages/core/src/components/ui-stack/ui-stack.tsx",
|
|
94
|
+
"id": "src/components/ui-stack/ui-stack.tsx::UiStackGap"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"required": false,
|
|
99
|
+
"optional": false,
|
|
100
|
+
"docs": {
|
|
101
|
+
"tags": [],
|
|
102
|
+
"text": "Espa\u00E7amento entre itens."
|
|
103
|
+
},
|
|
104
|
+
"getter": false,
|
|
105
|
+
"setter": false,
|
|
106
|
+
"reflect": false,
|
|
107
|
+
"attribute": "gap",
|
|
108
|
+
"defaultValue": "\"md\""
|
|
109
|
+
},
|
|
110
|
+
"align": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"mutable": false,
|
|
113
|
+
"complexType": {
|
|
114
|
+
"original": "UiStackAlign",
|
|
115
|
+
"resolved": "\"center\" | \"end\" | \"start\" | \"stretch\"",
|
|
116
|
+
"references": {
|
|
117
|
+
"UiStackAlign": {
|
|
118
|
+
"location": "local",
|
|
119
|
+
"path": "/Users/andersonespindola/.ghq/github.com/andersonflima/ui/packages/core/src/components/ui-stack/ui-stack.tsx",
|
|
120
|
+
"id": "src/components/ui-stack/ui-stack.tsx::UiStackAlign"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"required": false,
|
|
125
|
+
"optional": false,
|
|
126
|
+
"docs": {
|
|
127
|
+
"tags": [],
|
|
128
|
+
"text": "Alinhamento no eixo cruzado."
|
|
129
|
+
},
|
|
130
|
+
"getter": false,
|
|
131
|
+
"setter": false,
|
|
132
|
+
"reflect": false,
|
|
133
|
+
"attribute": "align",
|
|
134
|
+
"defaultValue": "\"stretch\""
|
|
135
|
+
},
|
|
136
|
+
"justify": {
|
|
137
|
+
"type": "string",
|
|
138
|
+
"mutable": false,
|
|
139
|
+
"complexType": {
|
|
140
|
+
"original": "UiStackJustify",
|
|
141
|
+
"resolved": "\"between\" | \"center\" | \"end\" | \"start\"",
|
|
142
|
+
"references": {
|
|
143
|
+
"UiStackJustify": {
|
|
144
|
+
"location": "local",
|
|
145
|
+
"path": "/Users/andersonespindola/.ghq/github.com/andersonflima/ui/packages/core/src/components/ui-stack/ui-stack.tsx",
|
|
146
|
+
"id": "src/components/ui-stack/ui-stack.tsx::UiStackJustify"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"required": false,
|
|
151
|
+
"optional": false,
|
|
152
|
+
"docs": {
|
|
153
|
+
"tags": [],
|
|
154
|
+
"text": "Distribui\u00E7\u00E3o no eixo principal."
|
|
155
|
+
},
|
|
156
|
+
"getter": false,
|
|
157
|
+
"setter": false,
|
|
158
|
+
"reflect": false,
|
|
159
|
+
"attribute": "justify",
|
|
160
|
+
"defaultValue": "\"start\""
|
|
161
|
+
},
|
|
162
|
+
"wrap": {
|
|
163
|
+
"type": "boolean",
|
|
164
|
+
"mutable": false,
|
|
165
|
+
"complexType": {
|
|
166
|
+
"original": "boolean",
|
|
167
|
+
"resolved": "boolean",
|
|
168
|
+
"references": {}
|
|
169
|
+
},
|
|
170
|
+
"required": false,
|
|
171
|
+
"optional": false,
|
|
172
|
+
"docs": {
|
|
173
|
+
"tags": [],
|
|
174
|
+
"text": "Permite quebra de linha dos itens."
|
|
175
|
+
},
|
|
176
|
+
"getter": false,
|
|
177
|
+
"setter": false,
|
|
178
|
+
"reflect": false,
|
|
179
|
+
"attribute": "wrap",
|
|
180
|
+
"defaultValue": "false"
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.card {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
gap: 0.5rem;
|
|
9
|
+
padding: 1.25rem;
|
|
10
|
+
border: 1px solid var(--ui-border);
|
|
11
|
+
border-radius: var(--ui-radius-lg);
|
|
12
|
+
background: var(--ui-panel);
|
|
13
|
+
backdrop-filter: blur(22px);
|
|
14
|
+
font-family: var(--ui-font-sans);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.label {
|
|
18
|
+
margin: 0;
|
|
19
|
+
text-transform: uppercase;
|
|
20
|
+
letter-spacing: 0.08em;
|
|
21
|
+
font-size: 0.7rem;
|
|
22
|
+
font-weight: 500;
|
|
23
|
+
color: var(--ui-text-faint);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.value-row {
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: baseline;
|
|
29
|
+
gap: 0.625rem;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.value {
|
|
33
|
+
font-size: 1.875rem;
|
|
34
|
+
font-weight: 600;
|
|
35
|
+
line-height: 1.1;
|
|
36
|
+
color: var(--ui-foreground);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.delta {
|
|
40
|
+
display: inline-flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
gap: 0.25rem;
|
|
43
|
+
padding: 0.125rem 0.5rem;
|
|
44
|
+
border-radius: var(--ui-radius-full);
|
|
45
|
+
font-size: 0.75rem;
|
|
46
|
+
font-weight: 600;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.delta svg {
|
|
50
|
+
display: block;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.trend-up {
|
|
54
|
+
color: var(--ui-success);
|
|
55
|
+
background: color-mix(in srgb, var(--ui-success) 14%, transparent);
|
|
56
|
+
}
|
|
57
|
+
.trend-down {
|
|
58
|
+
color: var(--ui-danger);
|
|
59
|
+
background: color-mix(in srgb, var(--ui-danger) 14%, transparent);
|
|
60
|
+
}
|
|
61
|
+
.trend-neutral {
|
|
62
|
+
color: var(--ui-text-muted);
|
|
63
|
+
background: var(--ui-chip);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.extra {
|
|
67
|
+
font-size: 0.8125rem;
|
|
68
|
+
color: var(--ui-text-muted);
|
|
69
|
+
}
|