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