@umijs/plugin-docs 4.0.0-rc.2 → 4.0.0-rc.3
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.
|
@@ -31,17 +31,24 @@ function Message(props: PropsWithChildren<MessageProps>) {
|
|
|
31
31
|
break;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
const messageText =
|
|
35
|
+
typeof props.children === 'string'
|
|
36
|
+
? props.children
|
|
37
|
+
: (props.children as React.ReactElement).props.children;
|
|
38
|
+
|
|
34
39
|
return (
|
|
35
40
|
<>
|
|
36
41
|
<div
|
|
37
|
-
className={`w-full py-3 px-4 ${bgColor} ${textColor} rounded-lg my-
|
|
42
|
+
className={`w-full py-3 px-4 ${bgColor} ${textColor} rounded-lg my-4 mdx-message`}
|
|
38
43
|
>
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
<p>
|
|
45
|
+
{props.emoji && (
|
|
46
|
+
<span role="img" className="mr-3 inline">
|
|
47
|
+
{props.emoji}
|
|
48
|
+
</span>
|
|
49
|
+
)}
|
|
50
|
+
{messageText}
|
|
51
|
+
</p>
|
|
45
52
|
</div>
|
|
46
53
|
</>
|
|
47
54
|
);
|
|
@@ -28,7 +28,7 @@ article h6 {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
article p {
|
|
31
|
-
@apply text-base
|
|
31
|
+
@apply text-base leading-8 mt-4 text-gray-700 dark:text-white;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
article ul {
|
|
@@ -146,4 +146,8 @@ h1, h2, h3, h4, h5, h6 {
|
|
|
146
146
|
.features::-webkit-scrollbar {
|
|
147
147
|
display: none;
|
|
148
148
|
}
|
|
149
|
+
|
|
150
|
+
.mdx-message > p {
|
|
151
|
+
@apply mt-0;
|
|
152
|
+
}
|
|
149
153
|
}
|
|
@@ -515,6 +515,10 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
515
515
|
display: none;
|
|
516
516
|
}
|
|
517
517
|
|
|
518
|
+
.mdx-message > p {
|
|
519
|
+
margin-top: 0px;
|
|
520
|
+
}
|
|
521
|
+
|
|
518
522
|
.fixed {
|
|
519
523
|
position: fixed;
|
|
520
524
|
}
|
|
@@ -615,6 +619,11 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
615
619
|
margin-right: 0.25rem;
|
|
616
620
|
}
|
|
617
621
|
|
|
622
|
+
.my-4 {
|
|
623
|
+
margin-top: 1rem;
|
|
624
|
+
margin-bottom: 1rem;
|
|
625
|
+
}
|
|
626
|
+
|
|
618
627
|
.ml-4 {
|
|
619
628
|
margin-left: 1rem;
|
|
620
629
|
}
|
|
@@ -663,6 +672,10 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
663
672
|
display: block;
|
|
664
673
|
}
|
|
665
674
|
|
|
675
|
+
.inline {
|
|
676
|
+
display: inline;
|
|
677
|
+
}
|
|
678
|
+
|
|
666
679
|
.flex {
|
|
667
680
|
display: flex;
|
|
668
681
|
}
|
|
@@ -1408,7 +1421,6 @@ article h6 {
|
|
|
1408
1421
|
article p {
|
|
1409
1422
|
margin-top: 1rem;
|
|
1410
1423
|
font-size: 1rem;
|
|
1411
|
-
font-weight: 300;
|
|
1412
1424
|
line-height: 2rem;
|
|
1413
1425
|
--tw-text-opacity: 1;
|
|
1414
1426
|
color: rgb(55 65 81 / var(--tw-text-opacity));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/plugin-docs",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.3",
|
|
4
4
|
"description": "@umijs/plugin-docs",
|
|
5
5
|
"homepage": "https://github.com/umijs/umi-next/tree/master/packages/plugin-docs#readme",
|
|
6
6
|
"bugs": "https://github.com/umijs/umi-next/issues",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"classnames": "^2.3.1",
|
|
34
34
|
"rehype-slug": "5.0.1",
|
|
35
35
|
"tailwindcss": "^3.0.23",
|
|
36
|
-
"umi": "4.0.0-rc.
|
|
36
|
+
"umi": "4.0.0-rc.3"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|