@cck-ui/core 0.34.1 → 0.35.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 (29) hide show
  1. package/cjs/components/color-swatch/color-swatch.cjs +439 -0
  2. package/cjs/components/color-swatch/color-swatch.cjs.map +1 -0
  3. package/cjs/components/color-swatch/color-swatch.module.cjs +13 -0
  4. package/cjs/components/color-swatch/color-swatch.module.cjs.map +1 -0
  5. package/cjs/components/color-swatch/color-swatch.utils.cjs +12 -0
  6. package/cjs/components/color-swatch/color-swatch.utils.cjs.map +1 -0
  7. package/cjs/components/color-swatch/index.cjs +14 -0
  8. package/cjs/components/color-swatch/index.cjs.map +1 -0
  9. package/cjs/index.cjs +72 -69
  10. package/cjs/index.cjs.map +1 -1
  11. package/esm/components/color-swatch/color-swatch.mjs +439 -0
  12. package/esm/components/color-swatch/color-swatch.mjs.map +1 -0
  13. package/esm/components/color-swatch/color-swatch.module.mjs +13 -0
  14. package/esm/components/color-swatch/color-swatch.module.mjs.map +1 -0
  15. package/esm/components/color-swatch/color-swatch.utils.mjs +13 -0
  16. package/esm/components/color-swatch/color-swatch.utils.mjs.map +1 -0
  17. package/esm/components/color-swatch/index.mjs +11 -0
  18. package/esm/components/color-swatch/index.mjs.map +1 -0
  19. package/esm/index.mjs +3 -1
  20. package/esm/index.mjs.map +1 -1
  21. package/lib/components/color-swatch/color-swatch.types.d.ts +29 -0
  22. package/lib/components/color-swatch/color-swatch.utils.d.ts +7 -0
  23. package/lib/components/color-swatch/index.d.ts +6 -0
  24. package/lib/components/index.d.ts +1 -0
  25. package/package.json +1 -1
  26. package/styles/color-swatch.css +71 -0
  27. package/styles/color-swatch.layer.css +72 -0
  28. package/styles.css +72 -0
  29. package/styles.layer.css +72 -0
@@ -0,0 +1,71 @@
1
+ .m_c2451869 {
2
+ --cs-size: calc(1.75rem * var(--c-scale));
3
+ --cs-radius: calc(62.5rem * var(--c-scale));
4
+
5
+ -webkit-tap-highlight-color: transparent;
6
+ border: none;
7
+ appearance: none;
8
+ display: block;
9
+ line-height: 1;
10
+ position: relative;
11
+ width: var(--cs-size);
12
+ height: var(--cs-size);
13
+ min-width: var(--cs-size);
14
+ min-height: var(--cs-size);
15
+ border-radius: var(--cs-radius);
16
+ color: inherit;
17
+ text-decoration: none;
18
+ }
19
+
20
+ [data-c-color-scheme='light'] .m_c2451869 {
21
+ --alpha-overlay-color: var(--c-color-gray-3);
22
+ --alpha-overlay-bg: var(--c-color-white);
23
+ }
24
+
25
+ [data-c-color-scheme='dark'] .m_c2451869 {
26
+ --alpha-overlay-color: var(--c-color-dark-4);
27
+ --alpha-overlay-bg: var(--c-color-dark-7);
28
+ }
29
+
30
+ .m_169647f4 {
31
+ position: absolute;
32
+ inset: 0;
33
+ border-radius: var(--cs-radius);
34
+ }
35
+
36
+ .m_1528cf69 {
37
+ position: absolute;
38
+ inset: 0;
39
+ border-radius: var(--cs-radius);
40
+ z-index: 1;
41
+ box-shadow:
42
+ rgba(0, 0, 0, 0.1) 0 0 0 calc(0.0625rem * var(--c-scale)) inset,
43
+ rgb(0, 0, 0, 0.15) 0 0 calc(0.25rem * var(--c-scale)) inset;
44
+ }
45
+
46
+ .m_25d7a599 {
47
+ position: absolute;
48
+ inset: 0;
49
+ border-radius: var(--cs-radius);
50
+ background-size: calc(0.5rem * var(--c-scale)) calc(0.5rem * var(--c-scale));
51
+ background-position:
52
+ 0 0,
53
+ 0 calc(0.25rem * var(--c-scale)),
54
+ calc(0.25rem * var(--c-scale)) calc(-0.25rem * var(--c-scale)),
55
+ calc(-0.25rem * var(--c-scale)) 0;
56
+ background-image:
57
+ linear-gradient(45deg, var(--alpha-overlay-color) 25%, transparent 25%),
58
+ linear-gradient(-45deg, var(--alpha-overlay-color) 25%, transparent 25%),
59
+ linear-gradient(45deg, transparent 75%, var(--alpha-overlay-color) 75%),
60
+ linear-gradient(-45deg, var(--alpha-overlay-bg) 75%, var(--alpha-overlay-color) 75%);
61
+ }
62
+
63
+ .m_5065cf6a {
64
+ position: absolute;
65
+ inset: 0;
66
+ border-radius: var(--cs-radius);
67
+ z-index: 2;
68
+ display: flex;
69
+ align-items: center;
70
+ justify-content: center;
71
+ }
@@ -0,0 +1,72 @@
1
+ @layer cck {.m_c2451869 {
2
+ --cs-size: calc(1.75rem * var(--c-scale));
3
+ --cs-radius: calc(62.5rem * var(--c-scale));
4
+
5
+ -webkit-tap-highlight-color: transparent;
6
+ border: none;
7
+ appearance: none;
8
+ display: block;
9
+ line-height: 1;
10
+ position: relative;
11
+ width: var(--cs-size);
12
+ height: var(--cs-size);
13
+ min-width: var(--cs-size);
14
+ min-height: var(--cs-size);
15
+ border-radius: var(--cs-radius);
16
+ color: inherit;
17
+ text-decoration: none;
18
+ }
19
+
20
+ [data-c-color-scheme='light'] .m_c2451869 {
21
+ --alpha-overlay-color: var(--c-color-gray-3);
22
+ --alpha-overlay-bg: var(--c-color-white);
23
+ }
24
+
25
+ [data-c-color-scheme='dark'] .m_c2451869 {
26
+ --alpha-overlay-color: var(--c-color-dark-4);
27
+ --alpha-overlay-bg: var(--c-color-dark-7);
28
+ }
29
+
30
+ .m_169647f4 {
31
+ position: absolute;
32
+ inset: 0;
33
+ border-radius: var(--cs-radius);
34
+ }
35
+
36
+ .m_1528cf69 {
37
+ position: absolute;
38
+ inset: 0;
39
+ border-radius: var(--cs-radius);
40
+ z-index: 1;
41
+ box-shadow:
42
+ rgba(0, 0, 0, 0.1) 0 0 0 calc(0.0625rem * var(--c-scale)) inset,
43
+ rgb(0, 0, 0, 0.15) 0 0 calc(0.25rem * var(--c-scale)) inset;
44
+ }
45
+
46
+ .m_25d7a599 {
47
+ position: absolute;
48
+ inset: 0;
49
+ border-radius: var(--cs-radius);
50
+ background-size: calc(0.5rem * var(--c-scale)) calc(0.5rem * var(--c-scale));
51
+ background-position:
52
+ 0 0,
53
+ 0 calc(0.25rem * var(--c-scale)),
54
+ calc(0.25rem * var(--c-scale)) calc(-0.25rem * var(--c-scale)),
55
+ calc(-0.25rem * var(--c-scale)) 0;
56
+ background-image:
57
+ linear-gradient(45deg, var(--alpha-overlay-color) 25%, transparent 25%),
58
+ linear-gradient(-45deg, var(--alpha-overlay-color) 25%, transparent 25%),
59
+ linear-gradient(45deg, transparent 75%, var(--alpha-overlay-color) 75%),
60
+ linear-gradient(-45deg, var(--alpha-overlay-bg) 75%, var(--alpha-overlay-color) 75%);
61
+ }
62
+
63
+ .m_5065cf6a {
64
+ position: absolute;
65
+ inset: 0;
66
+ border-radius: var(--cs-radius);
67
+ z-index: 2;
68
+ display: flex;
69
+ align-items: center;
70
+ justify-content: center;
71
+ }
72
+ }
package/styles.css CHANGED
@@ -1771,6 +1771,78 @@ fieldset:disabled .c-active:active {
1771
1771
  }
1772
1772
  }
1773
1773
 
1774
+ .m_c2451869 {
1775
+ --cs-size: calc(1.75rem * var(--c-scale));
1776
+ --cs-radius: calc(62.5rem * var(--c-scale));
1777
+
1778
+ -webkit-tap-highlight-color: transparent;
1779
+ border: none;
1780
+ appearance: none;
1781
+ display: block;
1782
+ line-height: 1;
1783
+ position: relative;
1784
+ width: var(--cs-size);
1785
+ height: var(--cs-size);
1786
+ min-width: var(--cs-size);
1787
+ min-height: var(--cs-size);
1788
+ border-radius: var(--cs-radius);
1789
+ color: inherit;
1790
+ text-decoration: none;
1791
+ }
1792
+
1793
+ [data-c-color-scheme='light'] .m_c2451869 {
1794
+ --alpha-overlay-color: var(--c-color-gray-3);
1795
+ --alpha-overlay-bg: var(--c-color-white);
1796
+ }
1797
+
1798
+ [data-c-color-scheme='dark'] .m_c2451869 {
1799
+ --alpha-overlay-color: var(--c-color-dark-4);
1800
+ --alpha-overlay-bg: var(--c-color-dark-7);
1801
+ }
1802
+
1803
+ .m_169647f4 {
1804
+ position: absolute;
1805
+ inset: 0;
1806
+ border-radius: var(--cs-radius);
1807
+ }
1808
+
1809
+ .m_1528cf69 {
1810
+ position: absolute;
1811
+ inset: 0;
1812
+ border-radius: var(--cs-radius);
1813
+ z-index: 1;
1814
+ box-shadow:
1815
+ rgba(0, 0, 0, 0.1) 0 0 0 calc(0.0625rem * var(--c-scale)) inset,
1816
+ rgb(0, 0, 0, 0.15) 0 0 calc(0.25rem * var(--c-scale)) inset;
1817
+ }
1818
+
1819
+ .m_25d7a599 {
1820
+ position: absolute;
1821
+ inset: 0;
1822
+ border-radius: var(--cs-radius);
1823
+ background-size: calc(0.5rem * var(--c-scale)) calc(0.5rem * var(--c-scale));
1824
+ background-position:
1825
+ 0 0,
1826
+ 0 calc(0.25rem * var(--c-scale)),
1827
+ calc(0.25rem * var(--c-scale)) calc(-0.25rem * var(--c-scale)),
1828
+ calc(-0.25rem * var(--c-scale)) 0;
1829
+ background-image:
1830
+ linear-gradient(45deg, var(--alpha-overlay-color) 25%, transparent 25%),
1831
+ linear-gradient(-45deg, var(--alpha-overlay-color) 25%, transparent 25%),
1832
+ linear-gradient(45deg, transparent 75%, var(--alpha-overlay-color) 75%),
1833
+ linear-gradient(-45deg, var(--alpha-overlay-bg) 75%, var(--alpha-overlay-color) 75%);
1834
+ }
1835
+
1836
+ .m_5065cf6a {
1837
+ position: absolute;
1838
+ inset: 0;
1839
+ border-radius: var(--cs-radius);
1840
+ z-index: 2;
1841
+ display: flex;
1842
+ align-items: center;
1843
+ justify-content: center;
1844
+ }
1845
+
1774
1846
  .m_b03efeae {
1775
1847
  --container-size-xs: calc(33.75rem * var(--c-scale));
1776
1848
  --container-size-sm: calc(45rem * var(--c-scale));
package/styles.layer.css CHANGED
@@ -1771,6 +1771,78 @@ fieldset:disabled .c-active:active {
1771
1771
  }
1772
1772
  }
1773
1773
 
1774
+ .m_c2451869 {
1775
+ --cs-size: calc(1.75rem * var(--c-scale));
1776
+ --cs-radius: calc(62.5rem * var(--c-scale));
1777
+
1778
+ -webkit-tap-highlight-color: transparent;
1779
+ border: none;
1780
+ appearance: none;
1781
+ display: block;
1782
+ line-height: 1;
1783
+ position: relative;
1784
+ width: var(--cs-size);
1785
+ height: var(--cs-size);
1786
+ min-width: var(--cs-size);
1787
+ min-height: var(--cs-size);
1788
+ border-radius: var(--cs-radius);
1789
+ color: inherit;
1790
+ text-decoration: none;
1791
+ }
1792
+
1793
+ [data-c-color-scheme='light'] .m_c2451869 {
1794
+ --alpha-overlay-color: var(--c-color-gray-3);
1795
+ --alpha-overlay-bg: var(--c-color-white);
1796
+ }
1797
+
1798
+ [data-c-color-scheme='dark'] .m_c2451869 {
1799
+ --alpha-overlay-color: var(--c-color-dark-4);
1800
+ --alpha-overlay-bg: var(--c-color-dark-7);
1801
+ }
1802
+
1803
+ .m_169647f4 {
1804
+ position: absolute;
1805
+ inset: 0;
1806
+ border-radius: var(--cs-radius);
1807
+ }
1808
+
1809
+ .m_1528cf69 {
1810
+ position: absolute;
1811
+ inset: 0;
1812
+ border-radius: var(--cs-radius);
1813
+ z-index: 1;
1814
+ box-shadow:
1815
+ rgba(0, 0, 0, 0.1) 0 0 0 calc(0.0625rem * var(--c-scale)) inset,
1816
+ rgb(0, 0, 0, 0.15) 0 0 calc(0.25rem * var(--c-scale)) inset;
1817
+ }
1818
+
1819
+ .m_25d7a599 {
1820
+ position: absolute;
1821
+ inset: 0;
1822
+ border-radius: var(--cs-radius);
1823
+ background-size: calc(0.5rem * var(--c-scale)) calc(0.5rem * var(--c-scale));
1824
+ background-position:
1825
+ 0 0,
1826
+ 0 calc(0.25rem * var(--c-scale)),
1827
+ calc(0.25rem * var(--c-scale)) calc(-0.25rem * var(--c-scale)),
1828
+ calc(-0.25rem * var(--c-scale)) 0;
1829
+ background-image:
1830
+ linear-gradient(45deg, var(--alpha-overlay-color) 25%, transparent 25%),
1831
+ linear-gradient(-45deg, var(--alpha-overlay-color) 25%, transparent 25%),
1832
+ linear-gradient(45deg, transparent 75%, var(--alpha-overlay-color) 75%),
1833
+ linear-gradient(-45deg, var(--alpha-overlay-bg) 75%, var(--alpha-overlay-color) 75%);
1834
+ }
1835
+
1836
+ .m_5065cf6a {
1837
+ position: absolute;
1838
+ inset: 0;
1839
+ border-radius: var(--cs-radius);
1840
+ z-index: 2;
1841
+ display: flex;
1842
+ align-items: center;
1843
+ justify-content: center;
1844
+ }
1845
+
1774
1846
  .m_b03efeae {
1775
1847
  --container-size-xs: calc(33.75rem * var(--c-scale));
1776
1848
  --container-size-sm: calc(45rem * var(--c-scale));