@brillout/docpress 0.6.16 → 0.6.17
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/components/Note.css +0 -2
- package/components/Note.tsx +9 -1
- package/css/heading.css +1 -1
- package/package.json +1 -1
package/components/Note.css
CHANGED
|
@@ -25,7 +25,6 @@ blockquote.note-color-green {
|
|
|
25
25
|
border-left-color: rgb(0, 179, 0, 0.3);
|
|
26
26
|
background-color: rgb(0, 179, 0, 0.08);
|
|
27
27
|
}
|
|
28
|
-
/*
|
|
29
28
|
blockquote.note-color-pink {
|
|
30
29
|
--color-strengh-bg: 4;
|
|
31
30
|
--color-strengh-border: 4;
|
|
@@ -33,7 +32,6 @@ blockquote.note-color-pink {
|
|
|
33
32
|
border-left-color: rgb(255, 0, 100, 0.3);
|
|
34
33
|
background-color: rgb(255, 0, 100, 0.1);
|
|
35
34
|
}
|
|
36
|
-
*/
|
|
37
35
|
.blockquote-content {
|
|
38
36
|
display: inline;
|
|
39
37
|
}
|
package/components/Note.tsx
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { Warning }
|
|
2
|
+
export { Advanced }
|
|
2
3
|
export { Construction }
|
|
3
4
|
export { Contribution }
|
|
4
5
|
export { Danger }
|
|
@@ -21,6 +22,9 @@ import './Note.css'
|
|
|
21
22
|
function Warning({ children }: { children: React.ReactNode }) {
|
|
22
23
|
return <NoteGeneric type="warning">{children}</NoteGeneric>
|
|
23
24
|
}
|
|
25
|
+
function Advanced({ children }: { children: React.ReactNode }) {
|
|
26
|
+
return <NoteGeneric type="advanced">{children}</NoteGeneric>
|
|
27
|
+
}
|
|
24
28
|
function Construction({ children }: { children: React.ReactNode }) {
|
|
25
29
|
return <NoteGeneric type="construction">{children}</NoteGeneric>
|
|
26
30
|
}
|
|
@@ -47,7 +51,7 @@ function NoteGeneric({
|
|
|
47
51
|
}: {
|
|
48
52
|
icon?: null | CustomIcon
|
|
49
53
|
iconMargin?: null | number
|
|
50
|
-
type?: 'danger' | 'warning' | 'construction' | 'contribution'
|
|
54
|
+
type?: 'danger' | 'warning' | 'construction' | 'contribution' | 'advanced'
|
|
51
55
|
children: React.ReactNode
|
|
52
56
|
}) {
|
|
53
57
|
assert(icon === null || icon || type, { icon, type })
|
|
@@ -75,6 +79,10 @@ function NoteGeneric({
|
|
|
75
79
|
icon = '💚'
|
|
76
80
|
classColor = 'note-color-green'
|
|
77
81
|
}
|
|
82
|
+
if (type === 'advanced') {
|
|
83
|
+
icon = '🧠'
|
|
84
|
+
classColor = 'note-color-pink'
|
|
85
|
+
}
|
|
78
86
|
assert(icon)
|
|
79
87
|
assert(classColor)
|
|
80
88
|
className = `${className} ${classColor}`
|
package/css/heading.css
CHANGED