@umijs/plugin-docs 4.0.50 → 4.0.51

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.
@@ -1,3 +1,4 @@
1
+ import cx from 'classnames';
1
2
  import React, { PropsWithChildren } from 'react';
2
3
 
3
4
  enum MessageType {
@@ -11,6 +12,7 @@ interface MessageProps {
11
12
  type?: MessageType;
12
13
  emoji?: string | boolean;
13
14
  title?: string;
15
+ fontsize?: 'small';
14
16
  }
15
17
 
16
18
  function Message(props: PropsWithChildren<MessageProps>) {
@@ -52,7 +54,10 @@ function Message(props: PropsWithChildren<MessageProps>) {
52
54
 
53
55
  return (
54
56
  <div
55
- className={`flex w-full py-5 px-4 rounded-lg my-4 mdx-message ${messageClass}`}
57
+ className={cx(
58
+ `flex w-full py-5 px-4 rounded-lg my-4 mdx-message ${messageClass}`,
59
+ props.fontsize === 'small' && 'text-sm',
60
+ )}
56
61
  >
57
62
  <span role="img" className="mr-3 dark:text-white">
58
63
  {messageEmoji}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/plugin-docs",
3
- "version": "4.0.50",
3
+ "version": "4.0.51",
4
4
  "description": "@umijs/plugin-docs",
5
5
  "homepage": "https://github.com/umijs/umi/tree/master/packages/plugin-docs#readme",
6
6
  "bugs": "https://github.com/umijs/umi/issues",
@@ -43,7 +43,7 @@
43
43
  "rehype-slug": "5.0.1",
44
44
  "remark-gfm": "^3.0.1",
45
45
  "tailwindcss": "^3.2.4",
46
- "umi": "4.0.50"
46
+ "umi": "4.0.51"
47
47
  },
48
48
  "publishConfig": {
49
49
  "access": "public"