orbcafe-ui 3.0.0 → 3.0.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/README.md +1 -1
- package/dist/index.d.mts +40 -1
- package/dist/index.d.ts +40 -1
- package/dist/index.js +17 -17
- package/dist/index.mjs +16 -16
- package/dist/orbis.css +95 -0
- package/package.json +1 -1
package/dist/orbis.css
CHANGED
|
@@ -1695,6 +1695,101 @@ select.orb-inp {
|
|
|
1695
1695
|
.orb-legend { display: flex; flex-wrap: wrap; gap: 14px; font: 500 12px/1 var(--orb-font); color: var(--orb-muted); }
|
|
1696
1696
|
.orb-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; }
|
|
1697
1697
|
|
|
1698
|
+
/* ---------- metric chart cards ---------- */
|
|
1699
|
+
.orb-metric-chart-card {
|
|
1700
|
+
display: flex;
|
|
1701
|
+
min-width: 0;
|
|
1702
|
+
min-height: 258px;
|
|
1703
|
+
flex-direction: column;
|
|
1704
|
+
padding: 16px;
|
|
1705
|
+
border: 1px solid var(--orb-border);
|
|
1706
|
+
border-radius: var(--orb-r-container);
|
|
1707
|
+
background: var(--orb-surface);
|
|
1708
|
+
color: var(--orb-fg);
|
|
1709
|
+
box-sizing: border-box;
|
|
1710
|
+
}
|
|
1711
|
+
.orb-metric-chart-header {
|
|
1712
|
+
display: flex;
|
|
1713
|
+
min-width: 0;
|
|
1714
|
+
align-items: flex-start;
|
|
1715
|
+
justify-content: space-between;
|
|
1716
|
+
gap: 12px;
|
|
1717
|
+
margin-bottom: 14px;
|
|
1718
|
+
}
|
|
1719
|
+
.orb-metric-chart-heading { min-width: 0; flex: 1 1 auto; }
|
|
1720
|
+
.orb-metric-chart-heading .orb-subtitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1721
|
+
.orb-metric-chart-select { flex: 0 0 auto; width: auto !important; min-width: 108px; }
|
|
1722
|
+
.orb-metric-chart-select .orb-select-trigger { min-height: 30px; padding: 0 9px; font-size: 11px; }
|
|
1723
|
+
.orb-metric-chart-body { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
|
|
1724
|
+
.orb-metric-chart-footer { border-top: 1px solid var(--orb-border); margin-top: 12px; padding-top: 10px; }
|
|
1725
|
+
.orb-metric-bars, .orb-metric-progress, .orb-metric-list { display: flex; flex-direction: column; gap: 10px; }
|
|
1726
|
+
.orb-metric-bar-row, .orb-metric-progress-row, .orb-metric-list-row {
|
|
1727
|
+
display: grid;
|
|
1728
|
+
width: 100%;
|
|
1729
|
+
min-width: 0;
|
|
1730
|
+
align-items: center;
|
|
1731
|
+
border: 0;
|
|
1732
|
+
background: transparent;
|
|
1733
|
+
color: var(--orb-fg);
|
|
1734
|
+
font: inherit;
|
|
1735
|
+
text-align: left;
|
|
1736
|
+
}
|
|
1737
|
+
.orb-metric-bar-row { grid-template-columns: minmax(76px, 0.8fr) minmax(60px, 1.6fr) auto; gap: 9px; padding: 2px 0; }
|
|
1738
|
+
.orb-metric-bar-row.is-active, .orb-metric-progress-row.is-active, .orb-metric-list-row.is-active { color: var(--orb-primary); }
|
|
1739
|
+
button.orb-metric-bar-row, button.orb-metric-progress-row, button.orb-metric-list-row { cursor: pointer; border-radius: 7px; padding: 5px 6px; margin: -3px -6px; }
|
|
1740
|
+
button.orb-metric-bar-row:hover, button.orb-metric-progress-row:hover, button.orb-metric-list-row:hover { background: var(--orb-hover); }
|
|
1741
|
+
.orb-metric-bar-label, .orb-metric-list-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 12px/1.3 var(--orb-font); }
|
|
1742
|
+
.orb-metric-bar-track { display: block; min-width: 0; height: 8px; overflow: hidden; border-radius: 999px; background: var(--orb-track); }
|
|
1743
|
+
.orb-metric-bar-fill { display: block; height: 100%; min-width: 2px; border-radius: inherit; transition: width 220ms ease, background-color 180ms ease; }
|
|
1744
|
+
.orb-metric-bar-fill.is-active { filter: brightness(0.8); }
|
|
1745
|
+
.orb-metric-bar-value, .orb-metric-list-value, .orb-metric-list-secondary { min-width: 46px; font: 500 12px/1.3 var(--orb-font); font-variant-numeric: tabular-nums; text-align: right; }
|
|
1746
|
+
.orb-metric-progress-row { gap: 5px; }
|
|
1747
|
+
.orb-metric-progress-heading { display: flex; min-width: 0; justify-content: space-between; gap: 12px; font: 500 12px/1.3 var(--orb-font); }
|
|
1748
|
+
.orb-metric-progress-heading > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1749
|
+
.orb-metric-progress-heading strong { flex: 0 0 auto; font-weight: 600; font-variant-numeric: tabular-nums; }
|
|
1750
|
+
.orb-metric-list-row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--orb-border); }
|
|
1751
|
+
.orb-metric-list-row:last-child { border-bottom: 0; }
|
|
1752
|
+
.orb-metric-list-secondary { color: var(--orb-muted); }
|
|
1753
|
+
.orb-metric-kpi { display: flex; min-height: 150px; flex-direction: column; justify-content: center; gap: 5px; }
|
|
1754
|
+
.orb-metric-kpi-label { color: var(--orb-muted); font: 500 12px/1.3 var(--orb-font); }
|
|
1755
|
+
.orb-metric-kpi strong { color: var(--orb-fg-strong); font: 600 42px/1.05 var(--orb-font); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
|
|
1756
|
+
.orb-metric-kpi-secondary { color: var(--orb-muted); font: 500 12px/1.3 var(--orb-font); }
|
|
1757
|
+
.orb-metric-svg-wrap { min-width: 0; overflow: hidden; }
|
|
1758
|
+
.orb-metric-svg { display: block; width: 100%; min-width: 300px; height: 192px; overflow: visible; }
|
|
1759
|
+
.orb-metric-axis, .orb-metric-grid { stroke: var(--orb-chart-grid); stroke-width: 1; }
|
|
1760
|
+
.orb-metric-line { stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
|
|
1761
|
+
.orb-metric-point, .orb-metric-column, .orb-metric-slice { transition: opacity 160ms ease, filter 160ms ease, transform 160ms ease; }
|
|
1762
|
+
.orb-metric-point.is-active, .orb-metric-column.is-active, .orb-metric-slice.is-active { filter: brightness(0.78); }
|
|
1763
|
+
.orb-metric-svg-label, .orb-metric-axis-label { fill: var(--orb-chart-text); font: 500 10px/1 var(--orb-font); }
|
|
1764
|
+
.orb-metric-axis-label { font-variant-numeric: tabular-nums; }
|
|
1765
|
+
.orb-metric-circular { display: grid; min-width: 0; grid-template-columns: minmax(130px, 0.9fr) minmax(120px, 1.1fr); align-items: center; gap: 12px; }
|
|
1766
|
+
.orb-metric-donut { display: block; width: 156px; max-width: 100%; height: 156px; margin: 0 auto; overflow: visible; }
|
|
1767
|
+
.orb-metric-donut-total { fill: var(--orb-fg-strong); font: 600 16px/1 var(--orb-font); font-variant-numeric: tabular-nums; }
|
|
1768
|
+
.orb-metric-legend { display: flex; min-width: 0; max-height: 156px; flex-direction: column; gap: 7px; overflow: auto; }
|
|
1769
|
+
.orb-metric-legend-item { display: grid; min-width: 0; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 2px 4px; border: 0; border-radius: 5px; background: transparent; color: var(--orb-fg); font: 500 11px/1.25 var(--orb-font); text-align: left; }
|
|
1770
|
+
.orb-metric-legend-item:not(:disabled) { cursor: pointer; }
|
|
1771
|
+
.orb-metric-legend-item:not(:disabled):hover, .orb-metric-legend-item.is-active { background: var(--orb-hover); color: var(--orb-primary); }
|
|
1772
|
+
.orb-metric-legend-dot { width: 8px; height: 8px; border-radius: 50%; }
|
|
1773
|
+
.orb-metric-legend-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1774
|
+
.orb-metric-legend-item strong { font-variant-numeric: tabular-nums; font-weight: 600; }
|
|
1775
|
+
.orb-metric-empty { display: flex; min-height: 150px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
|
|
1776
|
+
.orb-metric-empty-mark { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border: 1px solid var(--orb-border); border-radius: 50%; color: var(--orb-muted); font-size: 17px; }
|
|
1777
|
+
.orb-metric-error { display: flex; min-height: 150px; align-items: center; justify-content: center; border-radius: var(--orb-r); background: var(--orb-err-bg); color: var(--orb-err); font: 500 12px/1.4 var(--orb-font); text-align: center; padding: 10px; }
|
|
1778
|
+
.orb-metric-loading { display: flex; min-height: 150px; flex-direction: column; justify-content: center; gap: 13px; }
|
|
1779
|
+
.orb-metric-skeleton { display: block; width: 72%; height: 10px; border-radius: 999px; background: var(--orb-track); animation: orb-metric-pulse 1.3s ease-in-out infinite; }
|
|
1780
|
+
.orb-metric-skeleton-wide { width: 94%; }
|
|
1781
|
+
.orb-metric-skeleton-short { width: 48%; }
|
|
1782
|
+
.orb-metric-more { align-self: flex-end; margin-top: 10px; padding: 0; border: 0; background: transparent; color: var(--orb-link); cursor: pointer; font: 500 12px/1.3 var(--orb-font); }
|
|
1783
|
+
.orb-metric-more:hover { text-decoration: underline; }
|
|
1784
|
+
@keyframes orb-metric-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
|
|
1785
|
+
@media (max-width: 520px) {
|
|
1786
|
+
.orb-metric-chart-card { padding: 13px; }
|
|
1787
|
+
.orb-metric-chart-header { gap: 8px; }
|
|
1788
|
+
.orb-metric-circular { grid-template-columns: 1fr; }
|
|
1789
|
+
.orb-metric-legend { max-height: 96px; }
|
|
1790
|
+
.orb-metric-donut { width: 136px; height: 136px; }
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1698
1793
|
/* ---------- login / auth (per login reference) ---------- */
|
|
1699
1794
|
.orb-auth-frame {
|
|
1700
1795
|
display: grid;
|