@fab1o978/react-ui 0.1.8 → 0.2.1

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.
Files changed (35) hide show
  1. package/dist/components/Badge/index.d.cts +3 -3
  2. package/dist/components/Badge/index.d.ts +3 -3
  3. package/dist/components/Button/index.d.cts +3 -3
  4. package/dist/components/Button/index.d.ts +3 -3
  5. package/dist/components/ColorPicker/index.d.cts +2 -2
  6. package/dist/components/ColorPicker/index.d.ts +2 -2
  7. package/dist/components/ColorWheel/index.cjs +673 -0
  8. package/dist/components/ColorWheel/index.cjs.map +1 -0
  9. package/dist/components/ColorWheel/index.css +493 -0
  10. package/dist/components/ColorWheel/index.css.map +1 -0
  11. package/dist/components/ColorWheel/index.d.cts +49 -0
  12. package/dist/components/ColorWheel/index.d.ts +49 -0
  13. package/dist/components/ColorWheel/index.js +671 -0
  14. package/dist/components/ColorWheel/index.js.map +1 -0
  15. package/dist/components/Input/index.d.cts +5 -5
  16. package/dist/components/Input/index.d.ts +5 -5
  17. package/dist/components/RainCanvas/index.d.cts +4 -4
  18. package/dist/components/RainCanvas/index.d.ts +4 -4
  19. package/dist/components/RichTextEditor/index.d.cts +6 -6
  20. package/dist/components/RichTextEditor/index.d.ts +6 -6
  21. package/dist/components/SliderControl/index.d.cts +4 -4
  22. package/dist/components/SliderControl/index.d.ts +4 -4
  23. package/dist/components/SlidingCounter/index.d.cts +2 -2
  24. package/dist/components/SlidingCounter/index.d.ts +2 -2
  25. package/dist/components/Timeline/index.d.cts +3 -3
  26. package/dist/components/Timeline/index.d.ts +3 -3
  27. package/dist/index.cjs +590 -0
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.css +493 -0
  30. package/dist/index.css.map +1 -1
  31. package/dist/index.d.cts +1 -0
  32. package/dist/index.d.ts +1 -0
  33. package/dist/index.js +591 -2
  34. package/dist/index.js.map +1 -1
  35. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -1669,4 +1669,497 @@
1669
1669
  .RichTextEditor_module_editorContent .ProseMirror ::selection {
1670
1670
  background: var(--rich-text-editor-accent-light, var(--accent-light));
1671
1671
  }
1672
+
1673
+ /* src/components/ColorWheel/ColorWheel.module.scss */
1674
+ .ColorWheel_module_root {
1675
+ --bg: #ECEAE3;
1676
+ --surface: #FFFFFF;
1677
+ --surface-2: #E3E0D8;
1678
+ --border: #D2CDC0;
1679
+ --text: #1A1913;
1680
+ --text-dim: #726F64;
1681
+ --text-faint: #A8A398;
1682
+ --shadow-soft: 0 1px 2px rgba(30, 25, 15, 0.08);
1683
+ --check-a: #d8d4c8;
1684
+ --check-b: #f4f2ec;
1685
+ color-scheme: light;
1686
+ }
1687
+ @media (prefers-color-scheme: dark) {
1688
+ .ColorWheel_module_root:not([data-theme=light]):not([data-theme=dark]) {
1689
+ --bg: #131217;
1690
+ --surface: #1C1B22;
1691
+ --surface-2: #26252E;
1692
+ --border: #34333D;
1693
+ --text: #ECEAF0;
1694
+ --text-dim: #8E8C99;
1695
+ --text-faint: #605E6B;
1696
+ --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.35);
1697
+ --check-a: #37353f;
1698
+ --check-b: #201f26;
1699
+ color-scheme: dark;
1700
+ }
1701
+ }
1702
+ [data-theme=light] .ColorWheel_module_root:not([data-theme=light]):not([data-theme=dark]) {
1703
+ --bg: #ECEAE3;
1704
+ --surface: #FFFFFF;
1705
+ --surface-2: #E3E0D8;
1706
+ --border: #D2CDC0;
1707
+ --text: #1A1913;
1708
+ --text-dim: #726F64;
1709
+ --text-faint: #A8A398;
1710
+ --shadow-soft: 0 1px 2px rgba(30, 25, 15, 0.08);
1711
+ --check-a: #d8d4c8;
1712
+ --check-b: #f4f2ec;
1713
+ color-scheme: light;
1714
+ }
1715
+ [data-theme=dark] .ColorWheel_module_root:not([data-theme=light]):not([data-theme=dark]) {
1716
+ --bg: #131217;
1717
+ --surface: #1C1B22;
1718
+ --surface-2: #26252E;
1719
+ --border: #34333D;
1720
+ --text: #ECEAF0;
1721
+ --text-dim: #8E8C99;
1722
+ --text-faint: #605E6B;
1723
+ --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.35);
1724
+ --check-a: #37353f;
1725
+ --check-b: #201f26;
1726
+ color-scheme: dark;
1727
+ }
1728
+ .ColorWheel_module_root[data-theme=dark] {
1729
+ --bg: #131217;
1730
+ --surface: #1C1B22;
1731
+ --surface-2: #26252E;
1732
+ --border: #34333D;
1733
+ --text: #ECEAF0;
1734
+ --text-dim: #8E8C99;
1735
+ --text-faint: #605E6B;
1736
+ --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.35);
1737
+ --check-a: #37353f;
1738
+ --check-b: #201f26;
1739
+ color-scheme: dark;
1740
+ }
1741
+ .ColorWheel_module_root[data-theme=light] {
1742
+ --bg: #ECEAE3;
1743
+ --surface: #FFFFFF;
1744
+ --surface-2: #E3E0D8;
1745
+ --border: #D2CDC0;
1746
+ --text: #1A1913;
1747
+ --text-dim: #726F64;
1748
+ --text-faint: #A8A398;
1749
+ --shadow-soft: 0 1px 2px rgba(30, 25, 15, 0.08);
1750
+ --check-a: #d8d4c8;
1751
+ --check-b: #f4f2ec;
1752
+ color-scheme: light;
1753
+ }
1754
+ .ColorWheel_module_root {
1755
+ position: relative;
1756
+ display: flex;
1757
+ flex-direction: column;
1758
+ align-items: center;
1759
+ gap: 20px;
1760
+ font-family:
1761
+ -apple-system,
1762
+ "Segoe UI",
1763
+ Inter,
1764
+ "Helvetica Neue",
1765
+ Arial,
1766
+ sans-serif;
1767
+ color: var(--text);
1768
+ }
1769
+ @media (prefers-reduced-motion: reduce) {
1770
+ .ColorWheel_module_root,
1771
+ .ColorWheel_module_root *,
1772
+ .ColorWheel_module_root *::before,
1773
+ .ColorWheel_module_root *::after {
1774
+ animation-duration: 0.01ms !important;
1775
+ transition-duration: 0.01ms !important;
1776
+ }
1777
+ }
1778
+ .ColorWheel_module_recents {
1779
+ display: flex;
1780
+ align-items: center;
1781
+ gap: 7px;
1782
+ min-height: 30px;
1783
+ background: var(--surface-2);
1784
+ border-radius: 999px;
1785
+ padding: 5px 8px;
1786
+ box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.14), var(--shadow-soft);
1787
+ }
1788
+ .ColorWheel_module_chipWrap {
1789
+ position: relative;
1790
+ flex: none;
1791
+ animation: ColorWheel_module_chipIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
1792
+ }
1793
+ .ColorWheel_module_chip {
1794
+ width: 26px;
1795
+ height: 26px;
1796
+ border-radius: 50%;
1797
+ border: none;
1798
+ padding: 0;
1799
+ cursor: pointer;
1800
+ display: block;
1801
+ box-shadow: inset 0 0 0 1px rgba(128, 128, 128, 0.22), var(--shadow-soft);
1802
+ transition: transform 0.15s ease, box-shadow 0.15s ease;
1803
+ }
1804
+ .ColorWheel_module_chip:hover {
1805
+ transform: scale(1.14) translateY(-1px);
1806
+ box-shadow: inset 0 0 0 1px rgba(128, 128, 128, 0.3), 0 4px 10px -3px rgba(0, 0, 0, 0.3);
1807
+ }
1808
+ .ColorWheel_module_chip:active {
1809
+ transform: scale(1.02);
1810
+ }
1811
+ .ColorWheel_module_chipRemove {
1812
+ position: absolute;
1813
+ top: -3px;
1814
+ right: -3px;
1815
+ width: 14px;
1816
+ height: 14px;
1817
+ border-radius: 50%;
1818
+ border: none;
1819
+ padding: 0;
1820
+ display: grid;
1821
+ place-items: center;
1822
+ background: var(--surface);
1823
+ color: var(--text-dim);
1824
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(128, 128, 128, 0.25);
1825
+ cursor: pointer;
1826
+ z-index: 2;
1827
+ opacity: 0;
1828
+ pointer-events: none;
1829
+ transform: scale(0.6);
1830
+ transition:
1831
+ opacity 0.12s ease,
1832
+ transform 0.12s ease,
1833
+ color 0.12s ease;
1834
+ }
1835
+ .ColorWheel_module_chipRemove svg {
1836
+ width: 8px;
1837
+ height: 8px;
1838
+ }
1839
+ .ColorWheel_module_chipRemove:hover {
1840
+ color: var(--text);
1841
+ }
1842
+ .ColorWheel_module_chipWrap:hover .ColorWheel_module_chipRemove {
1843
+ opacity: 1;
1844
+ pointer-events: auto;
1845
+ transform: scale(1);
1846
+ }
1847
+ @keyframes ColorWheel_module_chipIn {
1848
+ 0% {
1849
+ transform: scale(0) rotate(-25deg);
1850
+ opacity: 0;
1851
+ }
1852
+ 100% {
1853
+ transform: scale(1) rotate(0);
1854
+ opacity: 1;
1855
+ }
1856
+ }
1857
+ .ColorWheel_module_picker {
1858
+ position: relative;
1859
+ margin-top: 96px;
1860
+ width: 272px;
1861
+ }
1862
+ .ColorWheel_module_glow {
1863
+ position: absolute;
1864
+ width: 340px;
1865
+ height: 340px;
1866
+ left: 50%;
1867
+ top: 88px;
1868
+ transform: translate(-50%, -50%);
1869
+ border-radius: 50%;
1870
+ opacity: 0.55;
1871
+ pointer-events: none;
1872
+ z-index: 0;
1873
+ }
1874
+ .ColorWheel_module_modeToggle {
1875
+ position: absolute;
1876
+ top: 88px;
1877
+ left: 50%;
1878
+ transform: translate(-50%, calc(-50% - 170px));
1879
+ z-index: 3;
1880
+ display: grid;
1881
+ background: var(--surface-2);
1882
+ border-radius: 999px;
1883
+ padding: 3px;
1884
+ box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.14), var(--shadow-soft);
1885
+ }
1886
+ .ColorWheel_module_modePill {
1887
+ position: absolute;
1888
+ top: 3px;
1889
+ bottom: 3px;
1890
+ left: 3px;
1891
+ border-radius: 999px;
1892
+ background: var(--surface);
1893
+ box-shadow: var(--shadow-soft);
1894
+ transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
1895
+ }
1896
+ .ColorWheel_module_modeButton {
1897
+ position: relative;
1898
+ z-index: 1;
1899
+ display: flex;
1900
+ align-items: center;
1901
+ justify-content: center;
1902
+ height: 22px;
1903
+ background: none;
1904
+ border: none;
1905
+ padding: 0;
1906
+ font-size: 10.5px;
1907
+ font-weight: 700;
1908
+ line-height: 22px;
1909
+ letter-spacing: 0.02em;
1910
+ color: var(--text-dim);
1911
+ cursor: pointer;
1912
+ transition: color 0.2s ease;
1913
+ }
1914
+ .ColorWheel_module_modeButton.ColorWheel_module_active {
1915
+ color: var(--text);
1916
+ }
1917
+ .ColorWheel_module_modeButton:hover:not(.ColorWheel_module_active) {
1918
+ color: var(--text);
1919
+ }
1920
+ .ColorWheel_module_stage {
1921
+ position: absolute;
1922
+ top: -48px;
1923
+ left: 50%;
1924
+ width: 272px;
1925
+ height: 272px;
1926
+ transform: translateX(-50%);
1927
+ touch-action: none;
1928
+ }
1929
+ .ColorWheel_module_stageShadow {
1930
+ position: absolute;
1931
+ inset: 0;
1932
+ border-radius: 50%;
1933
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.22), 0 10px 18px rgba(0, 0, 0, 0.22);
1934
+ pointer-events: none;
1935
+ }
1936
+ .ColorWheel_module_ring {
1937
+ position: absolute;
1938
+ inset: 0;
1939
+ border-radius: 50%;
1940
+ pointer-events: none;
1941
+ z-index: 2;
1942
+ -webkit-mask:
1943
+ radial-gradient(
1944
+ circle closest-side,
1945
+ transparent 0 92px,
1946
+ black 93px 100%);
1947
+ mask:
1948
+ radial-gradient(
1949
+ circle closest-side,
1950
+ transparent 0 92px,
1951
+ black 93px 100%);
1952
+ }
1953
+ .ColorWheel_module_hueHandlePivot {
1954
+ position: absolute;
1955
+ top: 50%;
1956
+ left: 50%;
1957
+ width: 0;
1958
+ height: 0;
1959
+ z-index: 3;
1960
+ transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
1961
+ }
1962
+ .ColorWheel_module_root[data-dragging=true] .ColorWheel_module_hueHandlePivot {
1963
+ transition: none;
1964
+ }
1965
+ .ColorWheel_module_hueHandle {
1966
+ position: absolute;
1967
+ top: -114px;
1968
+ left: 0;
1969
+ width: 22px;
1970
+ height: 22px;
1971
+ border-radius: 50%;
1972
+ border: 3px solid #fff;
1973
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.15);
1974
+ transform: translate(-50%, -50%);
1975
+ cursor: grab;
1976
+ z-index: 3;
1977
+ }
1978
+ .ColorWheel_module_alphaArcShadowWrap {
1979
+ position: absolute;
1980
+ top: 88px;
1981
+ left: 50%;
1982
+ width: 380px;
1983
+ height: 380px;
1984
+ transform: translate(calc(-50% + 1px), calc(-50% + 5px));
1985
+ z-index: 1;
1986
+ pointer-events: none;
1987
+ filter: blur(7px);
1988
+ }
1989
+ .ColorWheel_module_alphaArcShadow {
1990
+ position: absolute;
1991
+ inset: 0;
1992
+ background: rgba(0, 0, 0, 0.22);
1993
+ clip-path: path("M 328.56,270 A 160 160 0 0 1 51.44,270 L 65.29,262 A 144 144 0 0 0 314.71,262 Z");
1994
+ }
1995
+ .ColorWheel_module_alphaArc {
1996
+ position: absolute;
1997
+ top: 88px;
1998
+ left: 50%;
1999
+ width: 380px;
2000
+ height: 380px;
2001
+ transform: translate(-50%, -50%);
2002
+ touch-action: none;
2003
+ cursor: grab;
2004
+ z-index: 2;
2005
+ background: var(--surface-2);
2006
+ clip-path: path("M 328.56,270 A 160 160 0 0 1 51.44,270 L 65.29,262 A 144 144 0 0 0 314.71,262 Z");
2007
+ }
2008
+ .ColorWheel_module_alphaArcFill {
2009
+ position: absolute;
2010
+ inset: 0;
2011
+ }
2012
+ .ColorWheel_module_alphaArcCap {
2013
+ position: absolute;
2014
+ top: 88px;
2015
+ left: 50%;
2016
+ width: 16px;
2017
+ height: 16px;
2018
+ border-radius: 50%;
2019
+ z-index: 2;
2020
+ pointer-events: none;
2021
+ background: var(--surface-2);
2022
+ }
2023
+ .ColorWheel_module_alphaArcCapStart {
2024
+ transform: translate(calc(-50% + 131.6px), calc(-50% + 76px));
2025
+ }
2026
+ .ColorWheel_module_alphaArcCapEnd {
2027
+ transform: translate(calc(-50% - 131.6px), calc(-50% + 76px));
2028
+ }
2029
+ .ColorWheel_module_alphaArcHandle {
2030
+ position: absolute;
2031
+ top: 88px;
2032
+ left: 50%;
2033
+ width: 18px;
2034
+ height: 18px;
2035
+ border-radius: 50%;
2036
+ border: 2px solid #fff;
2037
+ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.2);
2038
+ z-index: 3;
2039
+ pointer-events: none;
2040
+ transition: transform 0.12s ease;
2041
+ }
2042
+ .ColorWheel_module_root[data-dragging=true] .ColorWheel_module_alphaArcHandle {
2043
+ transition: none;
2044
+ }
2045
+ .ColorWheel_module_currentDisc {
2046
+ position: absolute;
2047
+ top: 50%;
2048
+ left: 50%;
2049
+ width: 156px;
2050
+ height: 156px;
2051
+ transform: translate(-50%, -50%);
2052
+ border-radius: 50%;
2053
+ overflow: hidden;
2054
+ cursor: pointer;
2055
+ z-index: 2;
2056
+ box-shadow: 0 10px 24px -8px rgba(20, 16, 10, 0.4), inset 0 0 0 1px rgba(0, 0, 0, 0.08);
2057
+ background-image:
2058
+ linear-gradient(
2059
+ 45deg,
2060
+ var(--check-a) 25%,
2061
+ transparent 25%,
2062
+ transparent 75%,
2063
+ var(--check-a) 75%),
2064
+ linear-gradient(
2065
+ 45deg,
2066
+ var(--check-a) 25%,
2067
+ transparent 25%,
2068
+ transparent 75%,
2069
+ var(--check-a) 75%);
2070
+ background-size: 12px 12px;
2071
+ background-position: 0 0, 6px 6px;
2072
+ background-color: var(--check-b);
2073
+ }
2074
+ .ColorWheel_module_discFill {
2075
+ position: absolute;
2076
+ inset: 0;
2077
+ }
2078
+ .ColorWheel_module_currentHex,
2079
+ .ColorWheel_module_currentHexInput {
2080
+ position: absolute;
2081
+ inset: 0;
2082
+ z-index: 1;
2083
+ font-family:
2084
+ "SF Mono",
2085
+ "IBM Plex Mono",
2086
+ "JetBrains Mono",
2087
+ Consolas,
2088
+ "Liberation Mono",
2089
+ monospace;
2090
+ font-size: 17px;
2091
+ font-weight: 700;
2092
+ letter-spacing: 0.01em;
2093
+ font-variant-numeric: tabular-nums;
2094
+ text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
2095
+ }
2096
+ .ColorWheel_module_currentHex {
2097
+ display: grid;
2098
+ place-items: center;
2099
+ cursor: text;
2100
+ transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
2101
+ }
2102
+ .ColorWheel_module_currentHex.ColorWheel_module_copied {
2103
+ transform: scale(1.06);
2104
+ }
2105
+ .ColorWheel_module_currentHexInput {
2106
+ z-index: 2;
2107
+ width: 100%;
2108
+ height: 100%;
2109
+ text-align: center;
2110
+ background: transparent;
2111
+ border: none;
2112
+ outline: none;
2113
+ padding: 0;
2114
+ }
2115
+ .ColorWheel_module_currentHexInput::selection {
2116
+ background: rgba(255, 255, 255, 0.35);
2117
+ }
2118
+ .ColorWheel_module_discBadge {
2119
+ position: absolute;
2120
+ top: 50%;
2121
+ left: 50%;
2122
+ width: 34px;
2123
+ height: 34px;
2124
+ border-radius: 50%;
2125
+ border: none;
2126
+ display: grid;
2127
+ place-items: center;
2128
+ cursor: pointer;
2129
+ z-index: 3;
2130
+ transition: transform 0.15s ease, filter 0.15s ease;
2131
+ }
2132
+ .ColorWheel_module_discBadge:hover {
2133
+ filter: brightness(1.15);
2134
+ }
2135
+ .ColorWheel_module_discBadge svg {
2136
+ width: 15px;
2137
+ height: 15px;
2138
+ }
2139
+ .ColorWheel_module_discBadgeTop {
2140
+ transform: translate(-50%, calc(-50% - 46px));
2141
+ }
2142
+ .ColorWheel_module_discBadgeTop:active {
2143
+ transform: translate(-50%, calc(-50% - 46px)) scale(0.92);
2144
+ }
2145
+ .ColorWheel_module_discBadgeTop.ColorWheel_module_pulse {
2146
+ animation: ColorWheel_module_badgePulseTop 0.4s ease;
2147
+ }
2148
+ .ColorWheel_module_discBadgeBottom {
2149
+ transform: translate(-50%, calc(-50% + 46px));
2150
+ }
2151
+ .ColorWheel_module_discBadgeBottom:active {
2152
+ transform: translate(-50%, calc(-50% + 46px)) scale(0.92);
2153
+ }
2154
+ @keyframes ColorWheel_module_badgePulseTop {
2155
+ 0% {
2156
+ transform: translate(-50%, calc(-50% - 46px)) scale(1);
2157
+ }
2158
+ 40% {
2159
+ transform: translate(-50%, calc(-50% - 46px)) scale(1.28);
2160
+ }
2161
+ 100% {
2162
+ transform: translate(-50%, calc(-50% - 46px)) scale(1);
2163
+ }
2164
+ }
1672
2165
  /*# sourceMappingURL=index.css.map */