@cck-ui/core 0.40.0 → 0.42.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.
- package/cjs/components/code/code.cjs +401 -0
- package/cjs/components/code/code.cjs.map +1 -0
- package/cjs/components/code/code.module.cjs +7 -0
- package/cjs/components/code/code.module.cjs.map +1 -0
- package/cjs/components/code/code.utils.cjs +8 -0
- package/cjs/components/code/code.utils.cjs.map +1 -0
- package/cjs/components/code/index.cjs +14 -0
- package/cjs/components/code/index.cjs.map +1 -0
- package/cjs/components/highlight/highlight.cjs +493 -0
- package/cjs/components/highlight/highlight.cjs.map +1 -0
- package/cjs/components/highlight/highlighter/highlighter.cjs +84 -0
- package/cjs/components/highlight/highlighter/highlighter.cjs.map +1 -0
- package/cjs/components/highlight/index.cjs +13 -0
- package/cjs/components/highlight/index.cjs.map +1 -0
- package/cjs/components/mark/get-mark-color/get-mark-color.cjs +16 -0
- package/cjs/components/mark/get-mark-color/get-mark-color.cjs.map +1 -0
- package/cjs/components/mark/index.cjs +14 -0
- package/cjs/components/mark/index.cjs.map +1 -0
- package/cjs/components/mark/mark.cjs +396 -0
- package/cjs/components/mark/mark.cjs.map +1 -0
- package/cjs/components/mark/mark.module.cjs +7 -0
- package/cjs/components/mark/mark.module.cjs.map +1 -0
- package/cjs/components/mark/mark.utils.cjs +20 -0
- package/cjs/components/mark/mark.utils.cjs.map +1 -0
- package/cjs/index.cjs +99 -90
- package/cjs/index.cjs.map +1 -1
- package/esm/components/code/code.mjs +401 -0
- package/esm/components/code/code.mjs.map +1 -0
- package/esm/components/code/code.module.mjs +7 -0
- package/esm/components/code/code.module.mjs.map +1 -0
- package/esm/components/code/code.utils.mjs +9 -0
- package/esm/components/code/code.utils.mjs.map +1 -0
- package/esm/components/code/index.mjs +11 -0
- package/esm/components/code/index.mjs.map +1 -0
- package/esm/components/highlight/highlight.mjs +493 -0
- package/esm/components/highlight/highlight.mjs.map +1 -0
- package/esm/components/highlight/highlighter/highlighter.mjs +83 -0
- package/esm/components/highlight/highlighter/highlighter.mjs.map +1 -0
- package/esm/components/highlight/index.mjs +10 -0
- package/esm/components/highlight/index.mjs.map +1 -0
- package/esm/components/mark/get-mark-color/get-mark-color.mjs +16 -0
- package/esm/components/mark/get-mark-color/get-mark-color.mjs.map +1 -0
- package/esm/components/mark/index.mjs +11 -0
- package/esm/components/mark/index.mjs.map +1 -0
- package/esm/components/mark/mark.mjs +396 -0
- package/esm/components/mark/mark.mjs.map +1 -0
- package/esm/components/mark/mark.module.mjs +7 -0
- package/esm/components/mark/mark.module.mjs.map +1 -0
- package/esm/components/mark/mark.utils.mjs +20 -0
- package/esm/components/mark/mark.utils.mjs.map +1 -0
- package/esm/index.mjs +7 -1
- package/esm/index.mjs.map +1 -1
- package/lib/components/code/code.types.d.ts +17 -0
- package/lib/components/code/code.utils.d.ts +6 -0
- package/lib/components/code/index.d.ts +6 -0
- package/lib/components/highlight/highlight.types.d.ts +57 -0
- package/lib/components/highlight/highlighter/highlighter.d.ts +12 -0
- package/lib/components/highlight/index.d.ts +5 -0
- package/lib/components/index.d.ts +3 -0
- package/lib/components/mark/get-mark-color/get-mark-color.d.ts +8 -0
- package/lib/components/mark/index.d.ts +6 -0
- package/lib/components/mark/mark.types.d.ts +14 -0
- package/lib/components/mark/mark.utils.d.ts +6 -0
- package/package.json +1 -1
- package/styles/code.css +21 -0
- package/styles/code.layer.css +22 -0
- package/styles/mark.css +11 -0
- package/styles/mark.layer.css +12 -0
- package/styles.css +34 -0
- package/styles.layer.css +34 -0
package/package.json
CHANGED
package/styles/code.css
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.m_3a11a0c2 {
|
|
2
|
+
font-family: var(--c-font-family-monospace);
|
|
3
|
+
line-height: var(--c-line-height);
|
|
4
|
+
padding: 2px calc(var(--c-spacing-xs) / 2);
|
|
5
|
+
border-radius: var(--c-radius-sm);
|
|
6
|
+
font-size: var(--c-font-size-xs);
|
|
7
|
+
margin: 0;
|
|
8
|
+
overflow: auto;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:where([data-c-color-scheme='light']) .m_3a11a0c2 {
|
|
12
|
+
background-color: var(--code-bg, var(--c-color-gray-0));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:where([data-c-color-scheme='dark']) .m_3a11a0c2 {
|
|
16
|
+
background-color: var(--code-bg, var(--c-color-dark-6));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.m_3a11a0c2[data-block] {
|
|
20
|
+
padding: var(--c-spacing-xs);
|
|
21
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@layer cck {.m_3a11a0c2 {
|
|
2
|
+
font-family: var(--c-font-family-monospace);
|
|
3
|
+
line-height: var(--c-line-height);
|
|
4
|
+
padding: 2px calc(var(--c-spacing-xs) / 2);
|
|
5
|
+
border-radius: var(--c-radius-sm);
|
|
6
|
+
font-size: var(--c-font-size-xs);
|
|
7
|
+
margin: 0;
|
|
8
|
+
overflow: auto;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:where([data-c-color-scheme='light']) .m_3a11a0c2 {
|
|
12
|
+
background-color: var(--code-bg, var(--c-color-gray-0));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:where([data-c-color-scheme='dark']) .m_3a11a0c2 {
|
|
16
|
+
background-color: var(--code-bg, var(--c-color-dark-6));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.m_3a11a0c2[data-block] {
|
|
20
|
+
padding: var(--c-spacing-xs);
|
|
21
|
+
}
|
|
22
|
+
}
|
package/styles/mark.css
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@layer cck {.m_4541d3e2 {
|
|
2
|
+
color: var(--c-color-black);
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
:where([data-c-color-scheme='light']) .m_4541d3e2 {
|
|
6
|
+
background-color: var(--mark-bg-light);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:where([data-c-color-scheme='dark']) .m_4541d3e2 {
|
|
10
|
+
background-color: var(--mark-bg-dark);
|
|
11
|
+
}
|
|
12
|
+
}
|
package/styles.css
CHANGED
|
@@ -1814,6 +1814,28 @@ fieldset:disabled .c-active:active {
|
|
|
1814
1814
|
}
|
|
1815
1815
|
}
|
|
1816
1816
|
|
|
1817
|
+
.m_3a11a0c2 {
|
|
1818
|
+
font-family: var(--c-font-family-monospace);
|
|
1819
|
+
line-height: var(--c-line-height);
|
|
1820
|
+
padding: 2px calc(var(--c-spacing-xs) / 2);
|
|
1821
|
+
border-radius: var(--c-radius-sm);
|
|
1822
|
+
font-size: var(--c-font-size-xs);
|
|
1823
|
+
margin: 0;
|
|
1824
|
+
overflow: auto;
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1827
|
+
:where([data-c-color-scheme='light']) .m_3a11a0c2 {
|
|
1828
|
+
background-color: var(--code-bg, var(--c-color-gray-0));
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
:where([data-c-color-scheme='dark']) .m_3a11a0c2 {
|
|
1832
|
+
background-color: var(--code-bg, var(--c-color-dark-6));
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1835
|
+
.m_3a11a0c2[data-block] {
|
|
1836
|
+
padding: var(--c-spacing-xs);
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1817
1839
|
.m_c2451869 {
|
|
1818
1840
|
--cs-size: calc(1.75rem * var(--c-scale));
|
|
1819
1841
|
--cs-radius: calc(62.5rem * var(--c-scale));
|
|
@@ -2439,6 +2461,18 @@ fieldset:disabled .c-active:active {
|
|
|
2439
2461
|
animation: m_1309882b 1.2s linear infinite;
|
|
2440
2462
|
}
|
|
2441
2463
|
|
|
2464
|
+
.m_4541d3e2 {
|
|
2465
|
+
color: var(--c-color-black);
|
|
2466
|
+
}
|
|
2467
|
+
|
|
2468
|
+
:where([data-c-color-scheme='light']) .m_4541d3e2 {
|
|
2469
|
+
background-color: var(--mark-bg-light);
|
|
2470
|
+
}
|
|
2471
|
+
|
|
2472
|
+
:where([data-c-color-scheme='dark']) .m_4541d3e2 {
|
|
2473
|
+
background-color: var(--mark-bg-dark);
|
|
2474
|
+
}
|
|
2475
|
+
|
|
2442
2476
|
.m_6f2f9f44 {
|
|
2443
2477
|
--scp-filled-segment-color: var(--c-primary-color-filled);
|
|
2444
2478
|
--scp-transition-duration: 0ms;
|
package/styles.layer.css
CHANGED
|
@@ -1814,6 +1814,28 @@ fieldset:disabled .c-active:active {
|
|
|
1814
1814
|
}
|
|
1815
1815
|
}
|
|
1816
1816
|
|
|
1817
|
+
.m_3a11a0c2 {
|
|
1818
|
+
font-family: var(--c-font-family-monospace);
|
|
1819
|
+
line-height: var(--c-line-height);
|
|
1820
|
+
padding: 2px calc(var(--c-spacing-xs) / 2);
|
|
1821
|
+
border-radius: var(--c-radius-sm);
|
|
1822
|
+
font-size: var(--c-font-size-xs);
|
|
1823
|
+
margin: 0;
|
|
1824
|
+
overflow: auto;
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1827
|
+
:where([data-c-color-scheme='light']) .m_3a11a0c2 {
|
|
1828
|
+
background-color: var(--code-bg, var(--c-color-gray-0));
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
:where([data-c-color-scheme='dark']) .m_3a11a0c2 {
|
|
1832
|
+
background-color: var(--code-bg, var(--c-color-dark-6));
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1835
|
+
.m_3a11a0c2[data-block] {
|
|
1836
|
+
padding: var(--c-spacing-xs);
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1817
1839
|
.m_c2451869 {
|
|
1818
1840
|
--cs-size: calc(1.75rem * var(--c-scale));
|
|
1819
1841
|
--cs-radius: calc(62.5rem * var(--c-scale));
|
|
@@ -2439,6 +2461,18 @@ fieldset:disabled .c-active:active {
|
|
|
2439
2461
|
animation: m_1309882b 1.2s linear infinite;
|
|
2440
2462
|
}
|
|
2441
2463
|
|
|
2464
|
+
.m_4541d3e2 {
|
|
2465
|
+
color: var(--c-color-black);
|
|
2466
|
+
}
|
|
2467
|
+
|
|
2468
|
+
:where([data-c-color-scheme='light']) .m_4541d3e2 {
|
|
2469
|
+
background-color: var(--mark-bg-light);
|
|
2470
|
+
}
|
|
2471
|
+
|
|
2472
|
+
:where([data-c-color-scheme='dark']) .m_4541d3e2 {
|
|
2473
|
+
background-color: var(--mark-bg-dark);
|
|
2474
|
+
}
|
|
2475
|
+
|
|
2442
2476
|
.m_6f2f9f44 {
|
|
2443
2477
|
--scp-filled-segment-color: var(--c-primary-color-filled);
|
|
2444
2478
|
--scp-transition-duration: 0ms;
|