@mirror-physics/fractal-ui 0.2.0-next.84 → 0.2.0-next.86

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.css CHANGED
@@ -70,7 +70,7 @@
70
70
  }
71
71
  .fractal-button:focus-visible {
72
72
  outline: none;
73
- box-shadow: 0 0 0 2px var(--bg-canvas, #fff), 0 0 0 4px var(--border-focus, var(--blue-500));
73
+ box-shadow: 0 0 0 2px var(--bg-canvas, #fff), 0 0 0 4px var(--border-focus);
74
74
  }
75
75
  .fractal-button:disabled {
76
76
  opacity: 0.5;
@@ -459,7 +459,7 @@
459
459
  }
460
460
  .fractal-prompt-card:focus-visible {
461
461
  outline: none;
462
- box-shadow: 0 0 0 2px var(--bg-canvas, #fff), 0 0 0 4px var(--border-focus, var(--blue-500));
462
+ box-shadow: 0 0 0 2px var(--bg-canvas, #fff), 0 0 0 4px var(--border-focus);
463
463
  }
464
464
  .fractal-prompt-card__icon {
465
465
  width: 40px;
@@ -592,7 +592,7 @@
592
592
  border: 1px solid var(--border-default);
593
593
  background-color: var(--bg-canvas);
594
594
  color: var(--fg-primary);
595
- transition: border-color 0.15s ease, box-shadow 0.15s ease;
595
+ transition: border-color var(--duration-fast) var(--ease-out);
596
596
  box-sizing: border-box;
597
597
  }
598
598
  .fractal-input::placeholder {
@@ -601,7 +601,7 @@
601
601
  .fractal-input:focus-visible {
602
602
  outline: none;
603
603
  border-color: var(--border-focus);
604
- box-shadow: 0 0 0 2px var(--accent-surface);
604
+ box-shadow: 0 0 0 3px var(--focus-surface);
605
605
  }
606
606
  .fractal-input:disabled {
607
607
  cursor: not-allowed;
@@ -1762,7 +1762,7 @@
1762
1762
  font-family: var(--font-sans);
1763
1763
  color: var(--fg-primary);
1764
1764
  cursor: pointer;
1765
- transition: background-color 0.15s;
1765
+ transition: background-color var(--duration-fast) var(--ease-out);
1766
1766
  }
1767
1767
  .fractal-dropdown-trigger--vertical {
1768
1768
  flex-direction: column;
@@ -1836,8 +1836,9 @@
1836
1836
  width: max-content;
1837
1837
  max-height: 320px;
1838
1838
  max-width: calc(100vw - 16px);
1839
- overflow-x: hidden;
1840
- overflow-y: auto;
1839
+ display: flex;
1840
+ flex-direction: column;
1841
+ overflow: hidden;
1841
1842
  overscroll-behavior: contain;
1842
1843
  box-sizing: border-box;
1843
1844
  border-radius: var(--radius-md, 6px);
@@ -1872,7 +1873,7 @@
1872
1873
  border-radius: var(--radius-sm, 4px);
1873
1874
  cursor: pointer;
1874
1875
  color: var(--fg-primary);
1875
- transition: background-color 0.1s;
1876
+ transition: background-color var(--duration-fast) var(--ease-out);
1876
1877
  }
1877
1878
  .fractal-dropdown-option:hover,
1878
1879
  .fractal-dropdown-option:focus-visible {
@@ -1903,17 +1904,47 @@
1903
1904
  width: var(--control-icon-size);
1904
1905
  height: var(--control-icon-size);
1905
1906
  }
1907
+ .fractal-dropdown-options {
1908
+ min-height: 0;
1909
+ overflow-x: hidden;
1910
+ overflow-y: auto;
1911
+ overscroll-behavior: contain;
1912
+ }
1913
+ .fractal-dropdown-search-container {
1914
+ position: relative;
1915
+ flex-shrink: 0;
1916
+ padding-bottom: var(--space-1);
1917
+ background: var(--bg-canvas);
1918
+ }
1919
+ .fractal-dropdown-search-container::after {
1920
+ content: "";
1921
+ position: absolute;
1922
+ bottom: 0;
1923
+ left: calc(-1 * var(--space-1));
1924
+ right: calc(-1 * var(--space-1));
1925
+ height: 1px;
1926
+ background: var(--border-subtle);
1927
+ opacity: 0;
1928
+ pointer-events: none;
1929
+ transition: opacity var(--duration-fast) var(--ease-out);
1930
+ }
1931
+ .fractal-dropdown-search-container[data-scrolled=true]::after {
1932
+ opacity: 1;
1933
+ }
1906
1934
  .fractal-dropdown-search {
1907
1935
  display: flex;
1908
1936
  align-items: center;
1909
1937
  gap: var(--space-2);
1910
1938
  padding: var(--control-padding-block) var(--control-padding-inline);
1911
- border-bottom: 1px solid var(--border-subtle);
1912
- margin-bottom: var(--space-1);
1913
1939
  border-radius: var(--radius-sm);
1914
1940
  }
1915
1941
  .fractal-dropdown-search:focus-within {
1916
- box-shadow: inset 0 0 0 2px var(--border-focus);
1942
+ box-shadow: inset 0 0 0 1px var(--border-focus), 0 0 0 3px var(--focus-surface);
1943
+ }
1944
+ @media (prefers-reduced-motion: reduce) {
1945
+ .fractal-dropdown-search-container::after {
1946
+ transition: none;
1947
+ }
1917
1948
  }
1918
1949
  .fractal-dropdown-search > svg {
1919
1950
  width: var(--control-icon-size);
@@ -3465,7 +3496,7 @@
3465
3496
  .fractal-textarea:focus-visible {
3466
3497
  outline: none;
3467
3498
  border-color: var(--border-focus);
3468
- box-shadow: 0 0 0 2px var(--accent-surface);
3499
+ box-shadow: 0 0 0 3px var(--focus-surface);
3469
3500
  }
3470
3501
  .fractal-textarea:disabled {
3471
3502
  cursor: not-allowed;