@cck-ui/core 0.20.2 → 0.21.0

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 (34) hide show
  1. package/cjs/components/file-button/file-button.cjs +116 -0
  2. package/cjs/components/file-button/file-button.cjs.map +1 -0
  3. package/cjs/components/file-button/index.cjs +10 -0
  4. package/cjs/components/file-button/index.cjs.map +1 -0
  5. package/cjs/components/typography/index.cjs +13 -0
  6. package/cjs/components/typography/index.cjs.map +1 -0
  7. package/cjs/components/typography/typography.cjs +381 -0
  8. package/cjs/components/typography/typography.cjs.map +1 -0
  9. package/cjs/components/typography/typography.module.cjs +7 -0
  10. package/cjs/components/typography/typography.module.cjs.map +1 -0
  11. package/cjs/index.cjs +46 -40
  12. package/cjs/index.cjs.map +1 -1
  13. package/esm/components/file-button/file-button.mjs +116 -0
  14. package/esm/components/file-button/file-button.mjs.map +1 -0
  15. package/esm/components/file-button/index.mjs +9 -0
  16. package/esm/components/file-button/index.mjs.map +1 -0
  17. package/esm/components/typography/index.mjs +10 -0
  18. package/esm/components/typography/index.mjs.map +1 -0
  19. package/esm/components/typography/typography.mjs +381 -0
  20. package/esm/components/typography/typography.mjs.map +1 -0
  21. package/esm/components/typography/typography.module.mjs +7 -0
  22. package/esm/components/typography/typography.module.mjs.map +1 -0
  23. package/esm/index.mjs +5 -1
  24. package/esm/index.mjs.map +1 -1
  25. package/lib/components/file-button/file-button.types.d.ts +31 -0
  26. package/lib/components/file-button/index.d.ts +3 -0
  27. package/lib/components/index.d.ts +2 -0
  28. package/lib/components/typography/index.d.ts +6 -0
  29. package/lib/components/typography/typography.types.d.ts +9 -0
  30. package/package.json +1 -1
  31. package/styles/typography.css +208 -0
  32. package/styles/typography.layer.css +209 -0
  33. package/styles.css +209 -0
  34. package/styles.layer.css +209 -0
package/styles.css CHANGED
@@ -1869,3 +1869,212 @@ fieldset:disabled .c-active:active {
1869
1869
  .m_3f669182:where([data-inline]) {
1870
1870
  line-height: 1;
1871
1871
  }
1872
+
1873
+ .m_487612c0 :first-child {
1874
+ margin-top: 0;
1875
+ }
1876
+ .m_487612c0 :last-child {
1877
+ margin-bottom: 0;
1878
+ }
1879
+ .m_487612c0 :where(h1, h2, h3, h4, h5, h6) {
1880
+ margin-bottom: var(--c-spacing-xs);
1881
+ text-wrap: var(--c-heading-text-wrap);
1882
+ font-family: var(--c-font-family-headings);
1883
+ }
1884
+ .m_487612c0 :where(h1) {
1885
+ margin-top: calc(1.5 * var(--c-spacing-xl));
1886
+ font-size: var(--c-h1-font-size);
1887
+ line-height: var(--c-h1-line-height);
1888
+ font-weight: var(--c-h1-font-weight);
1889
+ }
1890
+ .m_487612c0 :where(h2) {
1891
+ margin-top: calc(--c-spacing-xl);
1892
+ font-size: var(--c-h2-font-size);
1893
+ line-height: var(--c-h2-line-height);
1894
+ font-weight: var(--c-h2-font-weight);
1895
+ }
1896
+ .m_487612c0 :where(h3) {
1897
+ margin-top: calc(0.8 * var(--c-spacing-xl));
1898
+ font-size: var(--c-h3-font-size);
1899
+ line-height: var(--c-h3-line-height);
1900
+ font-weight: var(--c-h3-font-weight);
1901
+ }
1902
+ .m_487612c0 :where(h4) {
1903
+ margin-top: calc(0.8 * var(--c-spacing-xl));
1904
+ font-size: var(--c-h4-font-size);
1905
+ line-height: var(--c-h4-line-height);
1906
+ font-weight: var(--c-h4-font-weight);
1907
+ }
1908
+ .m_487612c0 :where(h5) {
1909
+ margin-top: calc(0.5 * var(--c-spacing-xl));
1910
+ font-size: var(--c-h5-font-size);
1911
+ line-height: var(--c-h5-line-height);
1912
+ font-weight: var(--c-h5-font-weight);
1913
+ }
1914
+ .m_487612c0 :where(h6) {
1915
+ margin-top: calc(0.5 * var(--c-spacing-xl));
1916
+ font-size: var(--c-h6-font-size);
1917
+ line-height: var(--c-h6-line-height);
1918
+ font-weight: var(--c-h6-font-weight);
1919
+ }
1920
+ .m_487612c0 :where(img) {
1921
+ max-width: 100%;
1922
+ margin-bottom: var(--c-spacing-xs);
1923
+ }
1924
+ .m_487612c0 :where(p) {
1925
+ margin-top: 0;
1926
+ margin-bottom: var(--c-spacing-lg);
1927
+ }
1928
+ :where([data-c-color-scheme='light']) .m_487612c0 :where(mark) {
1929
+ background-color: var(--c-color-yellow-2);
1930
+ color: inherit;
1931
+ }
1932
+ :where([data-c-color-scheme='dark']) .m_487612c0 :where(mark) {
1933
+ background-color: var(--c-color-yellow-5);
1934
+ color: var(--c-color-black);
1935
+ }
1936
+ .m_487612c0 :where(a) {
1937
+ color: var(--c-color-anchor);
1938
+ text-decoration: none;
1939
+ }
1940
+ @media (hover: hover) {
1941
+ .m_487612c0 :where(a):hover {
1942
+ text-decoration: underline;
1943
+ }
1944
+ }
1945
+ @media (hover: none) {
1946
+ .m_487612c0 :where(a):active {
1947
+ text-decoration: underline;
1948
+ }
1949
+ }
1950
+ .m_487612c0 :where(hr) {
1951
+ margin-top: var(--c-spacing-md);
1952
+ margin-bottom: var(--c-spacing-md);
1953
+ border: 0;
1954
+ border-top: calc(0.0625rem * var(--c-scale)) solid;
1955
+ }
1956
+ :where([data-c-color-scheme='light']) .m_487612c0 :where(hr) {
1957
+ border-color: var(--c-color-gray-3);
1958
+ }
1959
+ :where([data-c-color-scheme='dark']) .m_487612c0 :where(hr) {
1960
+ border-color: var(--c-color-dark-3);
1961
+ }
1962
+ .m_487612c0 :where(pre) {
1963
+ padding: var(--c-spacing-xs);
1964
+ line-height: var(--c-line-height);
1965
+ margin: 0;
1966
+ margin-top: var(--c-spacing-md);
1967
+ margin-bottom: var(--c-spacing-md);
1968
+ overflow-x: auto;
1969
+ font-family: var(--c-font-family-monospace);
1970
+ font-size: var(--c-font-size-xs);
1971
+ border-radius: var(--c-radius-sm);
1972
+ }
1973
+ :where([data-c-color-scheme='light']) .m_487612c0 :where(pre) {
1974
+ background-color: var(--c-color-gray-0);
1975
+ }
1976
+ :where([data-c-color-scheme='dark']) .m_487612c0 :where(pre) {
1977
+ background-color: var(--c-color-dark-8);
1978
+ }
1979
+ .m_487612c0 :where(pre) :where(code) {
1980
+ background-color: transparent;
1981
+ padding: 0;
1982
+ border-radius: 0;
1983
+ color: inherit;
1984
+ border: 0;
1985
+ }
1986
+ .m_487612c0 :where(kbd) {
1987
+ --kbd-fz: calc(0.75rem * var(--c-scale));
1988
+ --kbd-padding: calc(0.1875rem * var(--c-scale)) calc(0.3125rem * var(--c-scale));
1989
+
1990
+ font-family: var(--c-font-family-monospace);
1991
+ line-height: var(--c-line-height);
1992
+ padding: var(--kbd-padding);
1993
+ font-size: var(--kbd-fz);
1994
+ border-radius: var(--c-radius-sm);
1995
+ border: calc(0.0625rem * var(--c-scale)) solid;
1996
+ border-bottom-width: calc(0.1875rem * var(--c-scale));
1997
+ }
1998
+ :where([data-c-color-scheme='light']) .m_487612c0 :where(kbd) {
1999
+ border-color: var(--c-color-gray-3);
2000
+ color: var(--c-color-gray-7);
2001
+ background-color: var(--c-color-gray-0);
2002
+ }
2003
+ :where([data-c-color-scheme='dark']) .m_487612c0 :where(kbd) {
2004
+ border-color: var(--c-color-dark-3);
2005
+ color: var(--c-color-dark-0);
2006
+ background-color: var(--c-color-dark-5);
2007
+ }
2008
+ .m_487612c0 :where(code) {
2009
+ line-height: var(--c-line-height);
2010
+ padding: calc(0.0625rem * var(--c-scale)) calc(0.3125rem * var(--c-scale));
2011
+ border-radius: var(--c-radius-sm);
2012
+ font-family: var(--c-font-family-monospace);
2013
+ font-size: var(--c-font-size-xs);
2014
+ }
2015
+ :where([data-c-color-scheme='light']) .m_487612c0 :where(code) {
2016
+ background-color: var(--c-color-gray-0);
2017
+ color: var(--c-color-black);
2018
+ }
2019
+ :where([data-c-color-scheme='dark']) .m_487612c0 :where(code) {
2020
+ background-color: var(--c-color-dark-5);
2021
+ color: var(--c-color-white);
2022
+ }
2023
+ .m_487612c0 :where(ul, ol):not([data-type='taskList']) {
2024
+ margin-bottom: var(--c-spacing-md);
2025
+ padding-inline-start: var(--c-spacing-xl);
2026
+ list-style-position: outside;
2027
+ }
2028
+ .m_487612c0 :where(table) {
2029
+ width: 100%;
2030
+ border-collapse: collapse;
2031
+ caption-side: bottom;
2032
+ margin-bottom: var(--c-spacing-md);
2033
+ }
2034
+ :where([data-c-color-scheme='light']) .m_487612c0 :where(table) {
2035
+ --table-border-color: var(--c-color-gray-3);
2036
+ }
2037
+ :where([data-c-color-scheme='dark']) .m_487612c0 :where(table) {
2038
+ --table-border-color: var(--c-color-dark-4);
2039
+ }
2040
+ .m_487612c0 :where(table) :where(caption) {
2041
+ margin-top: var(--c-spacing-xs);
2042
+ font-size: var(--c-font-size-sm);
2043
+ color: var(--c-color-dimmed);
2044
+ }
2045
+ .m_487612c0 :where(table) :where(th) {
2046
+ text-align: start;
2047
+ font-weight: bold;
2048
+ font-size: var(--c-font-size-sm);
2049
+ padding: var(--c-spacing-xs) var(--c-spacing-sm);
2050
+ }
2051
+ .m_487612c0 :where(table) :where(thead th) {
2052
+ border-bottom: calc(0.0625rem * var(--c-scale)) solid;
2053
+ border-color: var(--table-border-color);
2054
+ }
2055
+ .m_487612c0 :where(table) :where(tfoot th) {
2056
+ border-top: calc(0.0625rem * var(--c-scale)) solid;
2057
+ border-color: var(--table-border-color);
2058
+ }
2059
+ .m_487612c0 :where(table) :where(td) {
2060
+ padding: var(--c-spacing-xs) var(--c-spacing-sm);
2061
+ border-bottom: calc(0.0625rem * var(--c-scale)) solid;
2062
+ border-color: var(--table-border-color);
2063
+ font-size: var(--c-font-size-sm);
2064
+ }
2065
+ .m_487612c0 :where(table) :where(tr:last-of-type td) {
2066
+ border-bottom: 0;
2067
+ }
2068
+ .m_487612c0 :where(blockquote) {
2069
+ font-size: var(--c-font-size-lg);
2070
+ line-height: var(--c-line-height);
2071
+ margin: var(--c-spacing-md) 0;
2072
+ border-radius: var(--c-radius-sm);
2073
+ padding: var(--c-spacing-md) var(--c-spacing-lg);
2074
+ }
2075
+ :where([data-c-color-scheme='light']) .m_487612c0 :where(blockquote) {
2076
+ background-color: var(--c-color-gray-0);
2077
+ }
2078
+ :where([data-c-color-scheme='dark']) .m_487612c0 :where(blockquote) {
2079
+ background-color: var(--c-color-dark-8);
2080
+ }
package/styles.layer.css CHANGED
@@ -1869,4 +1869,213 @@ fieldset:disabled .c-active:active {
1869
1869
  .m_3f669182:where([data-inline]) {
1870
1870
  line-height: 1;
1871
1871
  }
1872
+
1873
+ .m_487612c0 :first-child {
1874
+ margin-top: 0;
1875
+ }
1876
+ .m_487612c0 :last-child {
1877
+ margin-bottom: 0;
1878
+ }
1879
+ .m_487612c0 :where(h1, h2, h3, h4, h5, h6) {
1880
+ margin-bottom: var(--c-spacing-xs);
1881
+ text-wrap: var(--c-heading-text-wrap);
1882
+ font-family: var(--c-font-family-headings);
1883
+ }
1884
+ .m_487612c0 :where(h1) {
1885
+ margin-top: calc(1.5 * var(--c-spacing-xl));
1886
+ font-size: var(--c-h1-font-size);
1887
+ line-height: var(--c-h1-line-height);
1888
+ font-weight: var(--c-h1-font-weight);
1889
+ }
1890
+ .m_487612c0 :where(h2) {
1891
+ margin-top: calc(--c-spacing-xl);
1892
+ font-size: var(--c-h2-font-size);
1893
+ line-height: var(--c-h2-line-height);
1894
+ font-weight: var(--c-h2-font-weight);
1895
+ }
1896
+ .m_487612c0 :where(h3) {
1897
+ margin-top: calc(0.8 * var(--c-spacing-xl));
1898
+ font-size: var(--c-h3-font-size);
1899
+ line-height: var(--c-h3-line-height);
1900
+ font-weight: var(--c-h3-font-weight);
1901
+ }
1902
+ .m_487612c0 :where(h4) {
1903
+ margin-top: calc(0.8 * var(--c-spacing-xl));
1904
+ font-size: var(--c-h4-font-size);
1905
+ line-height: var(--c-h4-line-height);
1906
+ font-weight: var(--c-h4-font-weight);
1907
+ }
1908
+ .m_487612c0 :where(h5) {
1909
+ margin-top: calc(0.5 * var(--c-spacing-xl));
1910
+ font-size: var(--c-h5-font-size);
1911
+ line-height: var(--c-h5-line-height);
1912
+ font-weight: var(--c-h5-font-weight);
1913
+ }
1914
+ .m_487612c0 :where(h6) {
1915
+ margin-top: calc(0.5 * var(--c-spacing-xl));
1916
+ font-size: var(--c-h6-font-size);
1917
+ line-height: var(--c-h6-line-height);
1918
+ font-weight: var(--c-h6-font-weight);
1919
+ }
1920
+ .m_487612c0 :where(img) {
1921
+ max-width: 100%;
1922
+ margin-bottom: var(--c-spacing-xs);
1923
+ }
1924
+ .m_487612c0 :where(p) {
1925
+ margin-top: 0;
1926
+ margin-bottom: var(--c-spacing-lg);
1927
+ }
1928
+ :where([data-c-color-scheme='light']) .m_487612c0 :where(mark) {
1929
+ background-color: var(--c-color-yellow-2);
1930
+ color: inherit;
1931
+ }
1932
+ :where([data-c-color-scheme='dark']) .m_487612c0 :where(mark) {
1933
+ background-color: var(--c-color-yellow-5);
1934
+ color: var(--c-color-black);
1935
+ }
1936
+ .m_487612c0 :where(a) {
1937
+ color: var(--c-color-anchor);
1938
+ text-decoration: none;
1939
+ }
1940
+ @media (hover: hover) {
1941
+ .m_487612c0 :where(a):hover {
1942
+ text-decoration: underline;
1943
+ }
1944
+ }
1945
+ @media (hover: none) {
1946
+ .m_487612c0 :where(a):active {
1947
+ text-decoration: underline;
1948
+ }
1949
+ }
1950
+ .m_487612c0 :where(hr) {
1951
+ margin-top: var(--c-spacing-md);
1952
+ margin-bottom: var(--c-spacing-md);
1953
+ border: 0;
1954
+ border-top: calc(0.0625rem * var(--c-scale)) solid;
1955
+ }
1956
+ :where([data-c-color-scheme='light']) .m_487612c0 :where(hr) {
1957
+ border-color: var(--c-color-gray-3);
1958
+ }
1959
+ :where([data-c-color-scheme='dark']) .m_487612c0 :where(hr) {
1960
+ border-color: var(--c-color-dark-3);
1961
+ }
1962
+ .m_487612c0 :where(pre) {
1963
+ padding: var(--c-spacing-xs);
1964
+ line-height: var(--c-line-height);
1965
+ margin: 0;
1966
+ margin-top: var(--c-spacing-md);
1967
+ margin-bottom: var(--c-spacing-md);
1968
+ overflow-x: auto;
1969
+ font-family: var(--c-font-family-monospace);
1970
+ font-size: var(--c-font-size-xs);
1971
+ border-radius: var(--c-radius-sm);
1972
+ }
1973
+ :where([data-c-color-scheme='light']) .m_487612c0 :where(pre) {
1974
+ background-color: var(--c-color-gray-0);
1975
+ }
1976
+ :where([data-c-color-scheme='dark']) .m_487612c0 :where(pre) {
1977
+ background-color: var(--c-color-dark-8);
1978
+ }
1979
+ .m_487612c0 :where(pre) :where(code) {
1980
+ background-color: transparent;
1981
+ padding: 0;
1982
+ border-radius: 0;
1983
+ color: inherit;
1984
+ border: 0;
1985
+ }
1986
+ .m_487612c0 :where(kbd) {
1987
+ --kbd-fz: calc(0.75rem * var(--c-scale));
1988
+ --kbd-padding: calc(0.1875rem * var(--c-scale)) calc(0.3125rem * var(--c-scale));
1989
+
1990
+ font-family: var(--c-font-family-monospace);
1991
+ line-height: var(--c-line-height);
1992
+ padding: var(--kbd-padding);
1993
+ font-size: var(--kbd-fz);
1994
+ border-radius: var(--c-radius-sm);
1995
+ border: calc(0.0625rem * var(--c-scale)) solid;
1996
+ border-bottom-width: calc(0.1875rem * var(--c-scale));
1997
+ }
1998
+ :where([data-c-color-scheme='light']) .m_487612c0 :where(kbd) {
1999
+ border-color: var(--c-color-gray-3);
2000
+ color: var(--c-color-gray-7);
2001
+ background-color: var(--c-color-gray-0);
2002
+ }
2003
+ :where([data-c-color-scheme='dark']) .m_487612c0 :where(kbd) {
2004
+ border-color: var(--c-color-dark-3);
2005
+ color: var(--c-color-dark-0);
2006
+ background-color: var(--c-color-dark-5);
2007
+ }
2008
+ .m_487612c0 :where(code) {
2009
+ line-height: var(--c-line-height);
2010
+ padding: calc(0.0625rem * var(--c-scale)) calc(0.3125rem * var(--c-scale));
2011
+ border-radius: var(--c-radius-sm);
2012
+ font-family: var(--c-font-family-monospace);
2013
+ font-size: var(--c-font-size-xs);
2014
+ }
2015
+ :where([data-c-color-scheme='light']) .m_487612c0 :where(code) {
2016
+ background-color: var(--c-color-gray-0);
2017
+ color: var(--c-color-black);
2018
+ }
2019
+ :where([data-c-color-scheme='dark']) .m_487612c0 :where(code) {
2020
+ background-color: var(--c-color-dark-5);
2021
+ color: var(--c-color-white);
2022
+ }
2023
+ .m_487612c0 :where(ul, ol):not([data-type='taskList']) {
2024
+ margin-bottom: var(--c-spacing-md);
2025
+ padding-inline-start: var(--c-spacing-xl);
2026
+ list-style-position: outside;
2027
+ }
2028
+ .m_487612c0 :where(table) {
2029
+ width: 100%;
2030
+ border-collapse: collapse;
2031
+ caption-side: bottom;
2032
+ margin-bottom: var(--c-spacing-md);
2033
+ }
2034
+ :where([data-c-color-scheme='light']) .m_487612c0 :where(table) {
2035
+ --table-border-color: var(--c-color-gray-3);
2036
+ }
2037
+ :where([data-c-color-scheme='dark']) .m_487612c0 :where(table) {
2038
+ --table-border-color: var(--c-color-dark-4);
2039
+ }
2040
+ .m_487612c0 :where(table) :where(caption) {
2041
+ margin-top: var(--c-spacing-xs);
2042
+ font-size: var(--c-font-size-sm);
2043
+ color: var(--c-color-dimmed);
2044
+ }
2045
+ .m_487612c0 :where(table) :where(th) {
2046
+ text-align: start;
2047
+ font-weight: bold;
2048
+ font-size: var(--c-font-size-sm);
2049
+ padding: var(--c-spacing-xs) var(--c-spacing-sm);
2050
+ }
2051
+ .m_487612c0 :where(table) :where(thead th) {
2052
+ border-bottom: calc(0.0625rem * var(--c-scale)) solid;
2053
+ border-color: var(--table-border-color);
2054
+ }
2055
+ .m_487612c0 :where(table) :where(tfoot th) {
2056
+ border-top: calc(0.0625rem * var(--c-scale)) solid;
2057
+ border-color: var(--table-border-color);
2058
+ }
2059
+ .m_487612c0 :where(table) :where(td) {
2060
+ padding: var(--c-spacing-xs) var(--c-spacing-sm);
2061
+ border-bottom: calc(0.0625rem * var(--c-scale)) solid;
2062
+ border-color: var(--table-border-color);
2063
+ font-size: var(--c-font-size-sm);
2064
+ }
2065
+ .m_487612c0 :where(table) :where(tr:last-of-type td) {
2066
+ border-bottom: 0;
2067
+ }
2068
+ .m_487612c0 :where(blockquote) {
2069
+ font-size: var(--c-font-size-lg);
2070
+ line-height: var(--c-line-height);
2071
+ margin: var(--c-spacing-md) 0;
2072
+ border-radius: var(--c-radius-sm);
2073
+ padding: var(--c-spacing-md) var(--c-spacing-lg);
2074
+ }
2075
+ :where([data-c-color-scheme='light']) .m_487612c0 :where(blockquote) {
2076
+ background-color: var(--c-color-gray-0);
2077
+ }
2078
+ :where([data-c-color-scheme='dark']) .m_487612c0 :where(blockquote) {
2079
+ background-color: var(--c-color-dark-8);
2080
+ }
1872
2081
  }