@ya-grid/core 0.4.0 → 0.5.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/index.d.ts +48 -1
- package/dist/index.js +127 -0
- package/dist/index.js.map +1 -1
- package/dist/styles.css +127 -0
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -1740,4 +1740,131 @@
|
|
|
1740
1740
|
font-variant-numeric: tabular-nums;
|
|
1741
1741
|
color: var(--ya-text-primary);
|
|
1742
1742
|
}
|
|
1743
|
+
|
|
1744
|
+
.ya-actions-cell {
|
|
1745
|
+
display: inline-flex;
|
|
1746
|
+
align-items: center;
|
|
1747
|
+
gap: 4px;
|
|
1748
|
+
max-width: 100%;
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
.ya-action-btn {
|
|
1752
|
+
display: inline-flex;
|
|
1753
|
+
align-items: center;
|
|
1754
|
+
justify-content: center;
|
|
1755
|
+
gap: 5px;
|
|
1756
|
+
height: 26px;
|
|
1757
|
+
padding: 0 8px;
|
|
1758
|
+
border: 1px solid transparent;
|
|
1759
|
+
border-radius: 6px;
|
|
1760
|
+
background-color: transparent;
|
|
1761
|
+
color: var(--ya-text-secondary);
|
|
1762
|
+
font-family: inherit;
|
|
1763
|
+
font-size: 12px;
|
|
1764
|
+
font-weight: 600;
|
|
1765
|
+
line-height: 1;
|
|
1766
|
+
white-space: nowrap;
|
|
1767
|
+
cursor: pointer;
|
|
1768
|
+
transition:
|
|
1769
|
+
background-color 120ms ease,
|
|
1770
|
+
border-color 120ms ease,
|
|
1771
|
+
color 120ms ease;
|
|
1772
|
+
}
|
|
1773
|
+
|
|
1774
|
+
.ya-action-btn-icon-only {
|
|
1775
|
+
width: 26px;
|
|
1776
|
+
padding: 0;
|
|
1777
|
+
}
|
|
1778
|
+
|
|
1779
|
+
.ya-action-btn[data-variant="outline"] {
|
|
1780
|
+
border-color: var(--ya-border-strong);
|
|
1781
|
+
background-color: var(--ya-bg);
|
|
1782
|
+
color: var(--ya-text-primary);
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
.ya-action-btn[data-variant="solid"] {
|
|
1786
|
+
background-color: var(--ya-surface);
|
|
1787
|
+
border-color: var(--ya-border-strong);
|
|
1788
|
+
color: var(--ya-text-primary);
|
|
1789
|
+
}
|
|
1790
|
+
|
|
1791
|
+
.ya-action-btn[data-tone="primary"] {
|
|
1792
|
+
color: var(--ya-accent);
|
|
1793
|
+
}
|
|
1794
|
+
|
|
1795
|
+
.ya-action-btn[data-tone="danger"] {
|
|
1796
|
+
color: var(--ya-danger);
|
|
1797
|
+
}
|
|
1798
|
+
|
|
1799
|
+
.ya-action-btn:focus-visible {
|
|
1800
|
+
outline: none;
|
|
1801
|
+
box-shadow: 0 0 0 2px var(--ya-accent-subtle);
|
|
1802
|
+
border-color: var(--ya-accent);
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1805
|
+
.ya-action-btn:disabled {
|
|
1806
|
+
opacity: 0.35;
|
|
1807
|
+
cursor: not-allowed;
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
.ya-action-btn[data-tone="primary"][data-variant="outline"] {
|
|
1811
|
+
border-color: color-mix(in srgb, var(--ya-accent) 45%, transparent);
|
|
1812
|
+
}
|
|
1813
|
+
|
|
1814
|
+
.ya-action-btn[data-tone="primary"][data-variant="solid"] {
|
|
1815
|
+
background-color: var(--ya-accent);
|
|
1816
|
+
border-color: var(--ya-accent);
|
|
1817
|
+
color: #ffffff;
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
.ya-action-btn[data-tone="danger"][data-variant="outline"] {
|
|
1821
|
+
border-color: color-mix(in srgb, var(--ya-danger) 45%, transparent);
|
|
1822
|
+
}
|
|
1823
|
+
|
|
1824
|
+
.ya-action-btn[data-tone="danger"][data-variant="solid"] {
|
|
1825
|
+
background-color: var(--ya-danger);
|
|
1826
|
+
border-color: var(--ya-danger);
|
|
1827
|
+
color: #ffffff;
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
.ya-action-btn:hover:not(:disabled) {
|
|
1831
|
+
background-color: color-mix(in srgb, currentColor 11%, transparent);
|
|
1832
|
+
color: var(--ya-text-primary);
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1835
|
+
.ya-action-btn[data-tone="primary"]:hover:not(:disabled) {
|
|
1836
|
+
color: var(--ya-accent);
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
.ya-action-btn[data-tone="primary"][data-variant="solid"]:hover:not(:disabled) {
|
|
1840
|
+
background-color: color-mix(in srgb, var(--ya-accent) 88%, black);
|
|
1841
|
+
color: #ffffff;
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
.ya-action-btn[data-tone="danger"]:hover:not(:disabled) {
|
|
1845
|
+
color: var(--ya-danger);
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1848
|
+
.ya-action-btn[data-tone="danger"][data-variant="solid"]:hover:not(:disabled) {
|
|
1849
|
+
background-color: color-mix(in srgb, var(--ya-danger) 88%, black);
|
|
1850
|
+
color: #ffffff;
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1853
|
+
.ya-grid[data-ya-density="compact"] .ya-action-btn {
|
|
1854
|
+
height: 22px;
|
|
1855
|
+
padding: 0 6px;
|
|
1856
|
+
font-size: 11.5px;
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
|
+
.ya-grid[data-ya-density="compact"] .ya-action-btn-icon-only {
|
|
1860
|
+
width: 22px;
|
|
1861
|
+
padding: 0;
|
|
1862
|
+
}
|
|
1863
|
+
|
|
1864
|
+
.ya-action-icon {
|
|
1865
|
+
display: inline-flex;
|
|
1866
|
+
align-items: center;
|
|
1867
|
+
justify-content: center;
|
|
1868
|
+
flex-shrink: 0;
|
|
1869
|
+
}
|
|
1743
1870
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ya-grid/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Zero-dependency framework-agnostic TypeScript data grid engine with virtualized DOM renderer and CSS-variable themes",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Erik-Jan van Baaren <erikjan@gmail.com>",
|