@smilodon/core 1.3.3 → 1.3.4

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.cjs CHANGED
@@ -1816,28 +1816,32 @@ class EnhancedSelect extends HTMLElement {
1816
1816
  max-height: 300px;
1817
1817
  overflow: auto;
1818
1818
  transition: opacity 0.2s ease-in-out;
1819
+ background: var(--select-options-bg, white);
1819
1820
  }
1820
1821
 
1821
1822
  .option {
1822
- padding: 8px 12px;
1823
+ padding: var(--select-option-padding, 8px 12px);
1823
1824
  cursor: pointer;
1824
- color: inherit;
1825
+ color: var(--select-option-color, #1f2937);
1826
+ background: var(--select-option-bg, white);
1825
1827
  transition: background-color 0.15s ease;
1826
1828
  user-select: none;
1827
1829
  }
1828
1830
 
1829
1831
  .option:hover {
1830
- background-color: #f3f4f6;
1832
+ background-color: var(--select-option-hover-bg, #f3f4f6);
1833
+ color: var(--select-option-hover-color, #1f2937);
1831
1834
  }
1832
1835
 
1833
1836
  .option.selected {
1834
- background-color: #e0e7ff;
1835
- color: #4338ca;
1837
+ background-color: var(--select-option-selected-bg, #e0e7ff);
1838
+ color: var(--select-option-selected-color, #4338ca);
1836
1839
  font-weight: 500;
1837
1840
  }
1838
1841
 
1839
1842
  .option.active {
1840
- background-color: #f3f4f6;
1843
+ background-color: var(--select-option-active-bg, #f3f4f6);
1844
+ color: var(--select-option-active-color, #1f2937);
1841
1845
  }
1842
1846
 
1843
1847
  .load-more-container {
@@ -1926,22 +1930,39 @@ class EnhancedSelect extends HTMLElement {
1926
1930
  }
1927
1931
  }
1928
1932
 
1929
- /* Accessibility: Dark mode */
1930
- @media (prefers-color-scheme: dark) {
1931
- .select-input {
1933
+ /* Dark mode - Opt-in via class or data attribute */
1934
+ :host(.dark-mode),
1935
+ :host([data-theme="dark"]) {
1936
+ .input-container {
1932
1937
  background: var(--select-dark-bg, #1f2937);
1933
- color: var(--select-dark-text, #f9fafb);
1934
1938
  border-color: var(--select-dark-border, #4b5563);
1935
1939
  }
1936
1940
 
1941
+ .select-input {
1942
+ color: var(--select-dark-text, #f9fafb);
1943
+ }
1944
+
1945
+ .select-input::placeholder {
1946
+ color: var(--select-dark-placeholder, #6b7280);
1947
+ }
1948
+
1937
1949
  .select-dropdown {
1938
1950
  background: var(--select-dark-dropdown-bg, #1f2937);
1939
1951
  border-color: var(--select-dark-dropdown-border, #4b5563);
1940
- color: var(--select-dark-text, #f9fafb);
1952
+ }
1953
+
1954
+ .options-container {
1955
+ background: var(--select-dark-options-bg, #1f2937);
1956
+ }
1957
+
1958
+ .option {
1959
+ color: var(--select-dark-option-color, #f9fafb);
1960
+ background: var(--select-dark-option-bg, #1f2937);
1941
1961
  }
1942
1962
 
1943
1963
  .option:hover {
1944
1964
  background-color: var(--select-dark-option-hover-bg, #374151);
1965
+ color: var(--select-dark-option-hover-color, #f9fafb);
1945
1966
  }
1946
1967
 
1947
1968
  .option.selected {
@@ -1951,11 +1972,23 @@ class EnhancedSelect extends HTMLElement {
1951
1972
 
1952
1973
  .option.active {
1953
1974
  background-color: var(--select-dark-option-active-bg, #374151);
1975
+ color: var(--select-dark-option-active-color, #f9fafb);
1954
1976
  }
1955
1977
 
1956
- .busy-bucket {
1978
+ .busy-bucket,
1979
+ .empty-state {
1957
1980
  color: var(--select-dark-busy-color, #9ca3af);
1958
1981
  }
1982
+
1983
+ .input-container::after {
1984
+ background: linear-gradient(
1985
+ to bottom,
1986
+ transparent 0%,
1987
+ rgba(255, 255, 255, 0.1) 20%,
1988
+ rgba(255, 255, 255, 0.1) 80%,
1989
+ transparent 100%
1990
+ );
1991
+ }
1959
1992
  }
1960
1993
 
1961
1994
  /* Accessibility: High contrast mode */