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