@brillout/docpress 0.5.0 → 0.5.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.
- package/dist/index.d.ts +4 -1
- package/dist/index.js +10 -4
- package/dist/renderer/_default.page.client.css +5 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -116,6 +116,9 @@ declare function Warning({ children }: {
|
|
|
116
116
|
declare function Construction({ children }: {
|
|
117
117
|
children: JSX.Element;
|
|
118
118
|
}): JSX.Element;
|
|
119
|
+
declare function Danger({ children }: {
|
|
120
|
+
children: JSX.Element;
|
|
121
|
+
}): JSX.Element;
|
|
119
122
|
|
|
120
123
|
declare function ImportMeta({ prop }: {
|
|
121
124
|
prop: string;
|
|
@@ -151,4 +154,4 @@ declare function CodeBlockTransformer({ children, lineBreak }: {
|
|
|
151
154
|
lineBreak: LineBreak;
|
|
152
155
|
}): JSX.Element;
|
|
153
156
|
|
|
154
|
-
export { CodeBlockTransformer, Config, Construction, Emoji, EmojiName, HeadingDefinition, HeadingDetachedDefinition, HorizontalLine, ImportMeta, Info, Link, P, ReadingRecommendation, RepoLink, Sponsor, Sponsors, Warning, assert, assertUsage, assertWarning, crawlAllFiles, determineSectionTitle, determineSectionUrlHash, filter, isBrowser, isRepoLink, jsxToTextContent, objectAssign };
|
|
157
|
+
export { CodeBlockTransformer, Config, Construction, Danger, Emoji, EmojiName, HeadingDefinition, HeadingDetachedDefinition, HorizontalLine, ImportMeta, Info, Link, P, ReadingRecommendation, RepoLink, Sponsor, Sponsors, Warning, assert, assertUsage, assertWarning, crawlAllFiles, determineSectionTitle, determineSectionUrlHash, filter, isBrowser, isRepoLink, jsxToTextContent, objectAssign };
|
package/dist/index.js
CHANGED
|
@@ -190,6 +190,11 @@ function Construction({ children }) {
|
|
|
190
190
|
type: "construction"
|
|
191
191
|
}, children);
|
|
192
192
|
}
|
|
193
|
+
function Danger({ children }) {
|
|
194
|
+
return /* @__PURE__ */ React5.createElement(Note, {
|
|
195
|
+
type: "danger"
|
|
196
|
+
}, children);
|
|
197
|
+
}
|
|
193
198
|
function Note({
|
|
194
199
|
type,
|
|
195
200
|
icon,
|
|
@@ -201,17 +206,17 @@ function Note({
|
|
|
201
206
|
}
|
|
202
207
|
if (!icon) {
|
|
203
208
|
let classColor = "";
|
|
204
|
-
if (type === "
|
|
209
|
+
if (type === "danger") {
|
|
205
210
|
icon = ":no_entry:";
|
|
206
|
-
classColor = "color-
|
|
211
|
+
classColor = "note-color-red";
|
|
207
212
|
}
|
|
208
213
|
if (type === "warning") {
|
|
209
214
|
icon = ":warning:";
|
|
210
|
-
classColor = "color-
|
|
215
|
+
classColor = "note-color-yellow";
|
|
211
216
|
}
|
|
212
217
|
if (type === "construction") {
|
|
213
218
|
icon = ":construction:";
|
|
214
|
-
classColor = "color-
|
|
219
|
+
classColor = "note-color-yellow";
|
|
215
220
|
}
|
|
216
221
|
if (classColor) {
|
|
217
222
|
className = `${className} ${classColor}`;
|
|
@@ -602,6 +607,7 @@ function CodeBlockTransformer({ children, lineBreak }) {
|
|
|
602
607
|
export {
|
|
603
608
|
CodeBlockTransformer,
|
|
604
609
|
Construction,
|
|
610
|
+
Danger,
|
|
605
611
|
Emoji,
|
|
606
612
|
FeatureList,
|
|
607
613
|
HorizontalLine,
|
|
@@ -271,7 +271,7 @@ blockquote {
|
|
|
271
271
|
margin-right: 0;
|
|
272
272
|
padding: 4px 16px;
|
|
273
273
|
}
|
|
274
|
-
blockquote.color-
|
|
274
|
+
blockquote.note-color-red {
|
|
275
275
|
--color-strengh-bg: 1.7;
|
|
276
276
|
--color-strengh-border: 6;
|
|
277
277
|
--color:
|
|
@@ -279,7 +279,7 @@ blockquote.color-error {
|
|
|
279
279
|
25,
|
|
280
280
|
49;
|
|
281
281
|
}
|
|
282
|
-
blockquote.color-
|
|
282
|
+
blockquote.note-color-yellow {
|
|
283
283
|
--color-strengh-bg: 4;
|
|
284
284
|
--color-strengh-border: 8;
|
|
285
285
|
--color:
|
|
@@ -301,6 +301,9 @@ blockquote.type-warning img[src^="https://twemoji."] {
|
|
|
301
301
|
top: -1px;
|
|
302
302
|
margin-right: 2px;
|
|
303
303
|
}
|
|
304
|
+
blockquote.type-danger img[src^="https://twemoji."] {
|
|
305
|
+
margin-right: 2px;
|
|
306
|
+
}
|
|
304
307
|
blockquote > p:first-child::before,
|
|
305
308
|
blockquote > div.paragraph:first-child::before {
|
|
306
309
|
font-family: emoji;
|