simple-table-core 4.0.8 → 4.0.9

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.
@@ -711,8 +711,8 @@ input {
711
711
  display: flex;
712
712
  align-items: center;
713
713
  justify-content: center;
714
- margin-left: 4px;
715
- border-radius: 4px;
714
+ margin-left: var(--st-spacing-small);
715
+ border-radius: var(--st-border-radius);
716
716
  align-self: stretch;
717
717
  transition: outline 0.2s ease;
718
718
  }
@@ -1452,7 +1452,7 @@ input {
1452
1452
  }
1453
1453
 
1454
1454
  .st-checkbox-checkmark {
1455
- color: white;
1455
+ color: var(--st-button-active-text-color);
1456
1456
  }
1457
1457
 
1458
1458
  @keyframes slide-in-left {
@@ -1665,6 +1665,12 @@ input {
1665
1665
  cursor: default;
1666
1666
  }
1667
1667
 
1668
+ /* Date pickers are taller than the default dropdown cap (day grid + footer).
1669
+ Keep max-height for enum/option lists; let calendars size to content. */
1670
+ .st-dropdown-content:has(> .st-datepicker) {
1671
+ max-height: none;
1672
+ }
1673
+
1668
1674
  /* Filter popover (and similar): nested .st-dropdown-content menus must not be clipped by the shell.
1669
1675
  overflow:auto + max-height on the parent creates a scrollport that clips absolutely positioned
1670
1676
  children (operator CustomSelect, date picker, etc.). */
@@ -1688,12 +1694,12 @@ input {
1688
1694
 
1689
1695
  /* Dropdown items */
1690
1696
  .st-dropdown-item {
1691
- padding: var(--st-spacing-small) var(--st-spacing-medium);
1697
+ padding: var(--st-control-padding-y) var(--st-control-padding-x);
1692
1698
  cursor: pointer;
1693
1699
  white-space: nowrap;
1694
1700
  transition: background-color var(--st-transition-duration) var(--st-transition-ease);
1695
1701
  color: var(--st-cell-color);
1696
- font-size: 0.9em;
1702
+ font-size: var(--st-overlay-font-size);
1697
1703
  }
1698
1704
 
1699
1705
  .st-dropdown-item:hover {
@@ -1716,13 +1722,15 @@ input {
1716
1722
  .st-datepicker {
1717
1723
  background-color: var(--st-odd-row-background-color);
1718
1724
  font-family: inherit;
1725
+ font-size: var(--st-overlay-font-size);
1719
1726
  }
1720
1727
 
1721
1728
  .st-datepicker-header {
1722
1729
  display: flex;
1723
1730
  justify-content: space-between;
1724
1731
  align-items: center;
1725
- padding: var(--st-spacing-medium);
1732
+ /* Match footer: light vertical pad around square nav buttons */
1733
+ padding: 6px var(--st-overlay-padding);
1726
1734
  border-bottom: 1px solid var(--st-border-color);
1727
1735
  background-color: var(--st-header-background-color);
1728
1736
  }
@@ -1730,11 +1738,16 @@ input {
1730
1738
  .st-datepicker-header-label {
1731
1739
  color: var(--st-header-label-color);
1732
1740
  font-weight: 600;
1733
- cursor: pointer;
1741
+ font-size: var(--st-overlay-font-size);
1742
+ cursor: default;
1734
1743
  text-align: center;
1735
1744
  flex: 1;
1736
1745
  }
1737
1746
 
1747
+ .st-datepicker-header-label[role="button"] {
1748
+ cursor: pointer;
1749
+ }
1750
+
1738
1751
  .st-datepicker-nav-btn {
1739
1752
  background: transparent;
1740
1753
  display: flex;
@@ -1744,7 +1757,10 @@ input {
1744
1757
  cursor: pointer;
1745
1758
  font-size: 1.2em;
1746
1759
  color: var(--st-cell-color);
1747
- padding: 0 8px;
1760
+ width: var(--st-datepicker-day-size);
1761
+ height: var(--st-datepicker-day-size);
1762
+ padding: 0;
1763
+ flex-shrink: 0;
1748
1764
  border-radius: var(--st-border-radius);
1749
1765
  }
1750
1766
  .st-datepicker-nav-btn > * {
@@ -1760,7 +1776,7 @@ input {
1760
1776
 
1761
1777
  .st-datepicker-grid {
1762
1778
  display: grid;
1763
- padding: var(--st-spacing-medium);
1779
+ padding: var(--st-overlay-padding);
1764
1780
  }
1765
1781
 
1766
1782
  .st-datepicker-days-grid {
@@ -1780,7 +1796,7 @@ input {
1780
1796
 
1781
1797
  .st-datepicker-weekday {
1782
1798
  text-align: center;
1783
- font-size: 0.8em;
1799
+ font-size: 12px;
1784
1800
  font-weight: 600;
1785
1801
  padding: 6px 0;
1786
1802
  color: var(--st-datepicker-weekday-color);
@@ -1791,12 +1807,12 @@ input {
1791
1807
  display: flex;
1792
1808
  align-items: center;
1793
1809
  justify-content: center;
1794
- height: 24px;
1795
- width: 24px;
1810
+ height: var(--st-datepicker-day-size);
1811
+ width: var(--st-datepicker-day-size);
1796
1812
  border-radius: 50%;
1797
1813
  cursor: pointer;
1798
1814
  transition: background-color var(--st-transition-duration) var(--st-transition-ease);
1799
- font-size: 0.9em;
1815
+ font-size: var(--st-overlay-font-size);
1800
1816
  }
1801
1817
 
1802
1818
  .st-datepicker-day.empty {
@@ -1846,7 +1862,9 @@ input {
1846
1862
  .st-datepicker-footer {
1847
1863
  display: flex;
1848
1864
  justify-content: flex-end;
1849
- padding: var(--st-spacing-medium);
1865
+ align-items: center;
1866
+ /* Same vertical rhythm as header — Today shouldn't sit in a tall band */
1867
+ padding: 6px var(--st-overlay-padding);
1850
1868
  border-top: 1px solid var(--st-border-color);
1851
1869
  }
1852
1870
 
@@ -1854,10 +1872,13 @@ input {
1854
1872
  background-color: transparent;
1855
1873
  border: 1px solid var(--st-border-color);
1856
1874
  border-radius: var(--st-border-radius);
1857
- padding: 6px 12px;
1875
+ padding: var(--st-spacing-small) var(--st-control-padding-x);
1876
+ min-height: var(--st-datepicker-day-size);
1877
+ box-sizing: border-box;
1858
1878
  cursor: pointer;
1859
1879
  transition: background-color var(--st-transition-duration) var(--st-transition-ease);
1860
1880
  color: var(--st-cell-color);
1881
+ font-size: var(--st-overlay-font-size);
1861
1882
  }
1862
1883
 
1863
1884
  .st-datepicker-today-btn:hover {
@@ -1869,8 +1890,9 @@ input {
1869
1890
  display: flex;
1870
1891
  flex-direction: column;
1871
1892
  flex-grow: 1;
1872
- padding: var(--st-spacing-medium);
1873
- min-width: 150px;
1893
+ padding: var(--st-overlay-padding);
1894
+ min-width: 200px;
1895
+ font-size: var(--st-overlay-font-size);
1874
1896
  }
1875
1897
 
1876
1898
  /* Filter Section - Used for spacing between form sections */
@@ -1884,10 +1906,10 @@ input {
1884
1906
  /* Filter Input - Text and number inputs */
1885
1907
  .st-filter-input {
1886
1908
  width: 100%;
1887
- padding: var(--st-spacing-small);
1909
+ padding: var(--st-control-padding-y) var(--st-control-padding-x);
1888
1910
  border: var(--st-border-width) solid var(--st-border-color);
1889
1911
  border-radius: var(--st-border-radius);
1890
- font-size: 0.9em;
1912
+ font-size: var(--st-overlay-font-size);
1891
1913
  background-color: var(--st-odd-row-background-color);
1892
1914
  color: var(--st-cell-color);
1893
1915
  font-family: inherit;
@@ -1907,10 +1929,10 @@ input {
1907
1929
  /* Filter Select - Dropdown selectors */
1908
1930
  .st-filter-select {
1909
1931
  width: 100%;
1910
- padding: var(--st-spacing-medium) var(--st-spacing-medium);
1932
+ padding: var(--st-control-padding-y) var(--st-control-padding-x);
1911
1933
  border: var(--st-border-width) solid var(--st-border-color);
1912
1934
  border-radius: var(--st-border-radius);
1913
- font-size: 0.9em;
1935
+ font-size: var(--st-overlay-font-size);
1914
1936
  background-color: var(--st-odd-row-background-color);
1915
1937
  color: var(--st-cell-color);
1916
1938
  font-family: inherit;
@@ -1933,11 +1955,11 @@ input {
1933
1955
 
1934
1956
  .st-filter-button {
1935
1957
  flex: 1;
1936
- padding: var(--st-spacing-small);
1958
+ padding: var(--st-control-padding-y) var(--st-control-padding-x);
1937
1959
  border: none;
1938
1960
  border-radius: var(--st-border-radius);
1939
1961
  cursor: pointer;
1940
- font-size: 0.9em;
1962
+ font-size: var(--st-overlay-font-size);
1941
1963
  font-weight: 500;
1942
1964
  font-family: inherit;
1943
1965
  appearance: none;
@@ -1957,7 +1979,7 @@ input {
1957
1979
  /* Apply Button */
1958
1980
  .st-filter-button-apply {
1959
1981
  background-color: var(--st-button-active-background-color);
1960
- color: white;
1982
+ color: var(--st-button-active-text-color);
1961
1983
  }
1962
1984
 
1963
1985
  .st-filter-button-apply:hover:not(.st-filter-button-disabled) {
@@ -1990,13 +2012,13 @@ input {
1990
2012
 
1991
2013
  .st-custom-select-trigger {
1992
2014
  width: 100%;
1993
- padding: var(--st-spacing-small);
2015
+ padding: var(--st-control-padding-y) var(--st-control-padding-x);
1994
2016
  border: var(--st-border-width) solid var(--st-border-color);
1995
2017
  border-radius: var(--st-border-radius);
1996
2018
  background-color: var(--st-odd-row-background-color);
1997
2019
  color: var(--st-cell-color);
1998
2020
  font-family: inherit;
1999
- font-size: 0.9em;
2021
+ font-size: var(--st-overlay-font-size);
2000
2022
  cursor: pointer;
2001
2023
  display: flex;
2002
2024
  align-items: center;
@@ -2052,14 +2074,14 @@ input {
2052
2074
 
2053
2075
  .st-custom-select-option {
2054
2076
  flex-shrink: 0;
2055
- padding: var(--st-spacing-small);
2077
+ padding: var(--st-control-padding-y) var(--st-control-padding-x);
2056
2078
  cursor: pointer;
2057
2079
  transition: background-color var(--st-transition-duration) var(--st-transition-ease);
2058
2080
  white-space: nowrap;
2059
2081
  overflow: hidden;
2060
2082
  text-overflow: ellipsis;
2061
2083
  color: var(--st-cell-color);
2062
- font-size: 0.9em;
2084
+ font-size: var(--st-overlay-font-size);
2063
2085
  }
2064
2086
 
2065
2087
  .st-custom-select-option:hover,
@@ -2128,7 +2150,7 @@ input {
2128
2150
 
2129
2151
  /* Enum option label */
2130
2152
  .st-enum-option-label {
2131
- font-size: 0.9em;
2153
+ font-size: var(--st-overlay-font-size);
2132
2154
  color: var(--st-cell-color);
2133
2155
  user-select: none;
2134
2156
  }
@@ -2144,8 +2166,8 @@ input {
2144
2166
  .st-enum-no-results {
2145
2167
  padding: var(--st-spacing-medium);
2146
2168
  text-align: center;
2147
- font-size: 0.9em;
2148
- color: var(--st-slate-400);
2169
+ font-size: var(--st-overlay-font-size);
2170
+ color: var(--st-muted-text-color);
2149
2171
  font-style: italic;
2150
2172
  }
2151
2173
 
@@ -8,6 +8,13 @@
8
8
  --st-spacing-small: 4px;
9
9
  --st-spacing-medium: 8px;
10
10
 
11
+ /* Overlay / filter control sizing (aligned with table type + cell padding) */
12
+ --st-overlay-font-size: 14px;
13
+ --st-overlay-padding: 8px;
14
+ --st-control-padding-y: 6px;
15
+ --st-control-padding-x: 8px;
16
+ --st-datepicker-day-size: 28px;
17
+
11
18
  /* Scrollbar variables */
12
19
  --st-scrollbar-bg-color: var(--st-gray-900);
13
20
  --st-scrollbar-thumb-color: var(--st-gray-600);
@@ -65,6 +72,7 @@
65
72
  /* Button colors */
66
73
  --st-button-hover-background-color: var(--st-gray-600);
67
74
  --st-button-active-background-color: var(--st-blue-500);
75
+ --st-button-active-text-color: var(--st-white);
68
76
  --st-next-prev-btn-color: var(--st-gray-300);
69
77
  --st-next-prev-btn-disabled-color: var(--st-gray-600);
70
78
  --st-page-btn-color: var(--st-gray-300);
@@ -86,6 +94,7 @@
86
94
  --st-datepicker-other-month-color: var(--st-gray-600);
87
95
  --st-filter-button-disabled-background-color: var(--st-gray-700);
88
96
  --st-filter-button-disabled-text-color: var(--st-gray-500);
97
+ --st-muted-text-color: var(--st-gray-400);
89
98
 
90
99
  /* Flash/Animation colors */
91
100
  --st-cell-flash-color: var(--st-gray-600);
@@ -8,6 +8,13 @@
8
8
  --st-spacing-small: 4px;
9
9
  --st-spacing-medium: 8px;
10
10
 
11
+ /* Overlay / filter control sizing (aligned with table type + cell padding) */
12
+ --st-overlay-font-size: 14px;
13
+ --st-overlay-padding: 8px;
14
+ --st-control-padding-y: 6px;
15
+ --st-control-padding-x: 8px;
16
+ --st-datepicker-day-size: 28px;
17
+
11
18
  /* Scrollbar variables */
12
19
  --st-scrollbar-bg-color: var(--st-slate-50);
13
20
  --st-scrollbar-thumb-color: var(--st-slate-300);
@@ -65,6 +72,7 @@
65
72
  /* Button colors */
66
73
  --st-button-hover-background-color: var(--st-slate-100);
67
74
  --st-button-active-background-color: var(--st-blue-600);
75
+ --st-button-active-text-color: var(--st-white);
68
76
  --st-next-prev-btn-color: var(--st-slate-600);
69
77
  --st-next-prev-btn-disabled-color: var(--st-slate-400);
70
78
  --st-page-btn-color: var(--st-slate-600);
@@ -85,6 +93,7 @@
85
93
  --st-datepicker-other-month-color: var(--st-slate-400);
86
94
  --st-filter-button-disabled-background-color: var(--st-slate-300);
87
95
  --st-filter-button-disabled-text-color: var(--st-slate-500);
96
+ --st-muted-text-color: var(--st-slate-500);
88
97
 
89
98
  /* Flash/Animation colors */
90
99
  --st-cell-flash-color: var(--st-slate-200);
@@ -24,6 +24,13 @@
24
24
  --st-spacing-small: 4px;
25
25
  --st-spacing-medium: 8px;
26
26
 
27
+ /* Overlay / filter control sizing (tracks roomier modern cell padding) */
28
+ --st-overlay-font-size: 14px;
29
+ --st-overlay-padding: 12px;
30
+ --st-control-padding-y: 8px;
31
+ --st-control-padding-x: 12px;
32
+ --st-datepicker-day-size: 32px;
33
+
27
34
  /* Scrollbar variables - Dark minimal */
28
35
  --st-scrollbar-bg-color: #111827;
29
36
  --st-scrollbar-thumb-color: #4b5563;
@@ -80,6 +87,7 @@
80
87
  /* Button colors - Clean, minimal dark */
81
88
  --st-button-hover-background-color: #374151;
82
89
  --st-button-active-background-color: #3b82f6;
90
+ --st-button-active-text-color: var(--st-white);
83
91
  --st-next-prev-btn-color: #9ca3af;
84
92
  --st-next-prev-btn-disabled-color: #4b5563;
85
93
  --st-page-btn-color: #d1d5db;
@@ -101,6 +109,7 @@
101
109
  --st-datepicker-other-month-color: #4b5563;
102
110
  --st-filter-button-disabled-background-color: #374151;
103
111
  --st-filter-button-disabled-text-color: #6b7280;
112
+ --st-muted-text-color: #9ca3af;
104
113
 
105
114
  /* Flash/Animation colors */
106
115
  --st-cell-flash-color: #1e40af;
@@ -27,6 +27,13 @@
27
27
  --st-spacing-small: 4px;
28
28
  --st-spacing-medium: 8px;
29
29
 
30
+ /* Overlay / filter control sizing (tracks roomier modern cell padding) */
31
+ --st-overlay-font-size: 14px;
32
+ --st-overlay-padding: 12px;
33
+ --st-control-padding-y: 8px;
34
+ --st-control-padding-x: 12px;
35
+ --st-datepicker-day-size: 32px;
36
+
30
37
  /* Scrollbar variables - Minimal */
31
38
  --st-scrollbar-bg-color: #fafafa;
32
39
  --st-scrollbar-thumb-color: #d1d5db;
@@ -83,6 +90,7 @@
83
90
  /* Button colors - Clean, minimal */
84
91
  --st-button-hover-background-color: #f3f4f6;
85
92
  --st-button-active-background-color: #3b82f6;
93
+ --st-button-active-text-color: var(--st-white);
86
94
  --st-next-prev-btn-color: #6b7280;
87
95
  --st-next-prev-btn-disabled-color: #d1d5db;
88
96
  --st-page-btn-color: #374151;
@@ -103,6 +111,7 @@
103
111
  --st-datepicker-other-month-color: #d1d5db;
104
112
  --st-filter-button-disabled-background-color: #f3f4f6;
105
113
  --st-filter-button-disabled-text-color: #9ca3af;
114
+ --st-muted-text-color: #6b7280;
106
115
 
107
116
  /* Flash/Animation colors */
108
117
  --st-cell-flash-color: #dbeafe;
@@ -8,6 +8,13 @@
8
8
  --st-spacing-small: 4px;
9
9
  --st-spacing-medium: 8px;
10
10
 
11
+ /* Overlay / filter control sizing (aligned with table type + cell padding) */
12
+ --st-overlay-font-size: 14px;
13
+ --st-overlay-padding: 8px;
14
+ --st-control-padding-y: 6px;
15
+ --st-control-padding-x: 8px;
16
+ --st-datepicker-day-size: 28px;
17
+
11
18
  /* Scrollbar variables */
12
19
  --st-scrollbar-bg-color: var(--st-neutral-100);
13
20
  --st-scrollbar-thumb-color: var(--st-neutral-400);
@@ -66,6 +73,7 @@
66
73
  /* Button colors */
67
74
  --st-button-hover-background-color: var(--st-neutral-200);
68
75
  --st-button-active-background-color: var(--st-neutral-600);
76
+ --st-button-active-text-color: var(--st-white);
69
77
  --st-next-prev-btn-color: var(--st-neutral-600);
70
78
  --st-next-prev-btn-disabled-color: var(--st-neutral-400);
71
79
  --st-page-btn-color: var(--st-neutral-600);
@@ -86,6 +94,7 @@
86
94
  --st-datepicker-other-month-color: var(--st-neutral-400);
87
95
  --st-filter-button-disabled-background-color: var(--st-neutral-300);
88
96
  --st-filter-button-disabled-text-color: var(--st-neutral-500);
97
+ --st-muted-text-color: var(--st-neutral-500);
89
98
 
90
99
  /* Flash/Animation colors */
91
100
  --st-cell-flash-color: var(--st-neutral-400);