@conduction/docusaurus-preset 2.1.0 → 2.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conduction/docusaurus-preset",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "scripts": {
5
5
  "prepack": "node scripts/prepack-bundle-css.js"
6
6
  },
@@ -69,18 +69,22 @@ export default function AppMock({app, size = 'md', caption = false, className})
69
69
  const variant = VARIANTS[app];
70
70
  if (!variant) {
71
71
  return (
72
- <div className={[styles.frame, styles[`size-${size}`], className].filter(Boolean).join(' ')}>
73
- <div className={styles.empty}>Unknown app: {app}</div>
72
+ <div className={styles.am}>
73
+ <div className={[styles.frame, styles[`size-${size}`], className].filter(Boolean).join(' ')}>
74
+ <div className={styles.empty}>Unknown app: {app}</div>
75
+ </div>
74
76
  </div>
75
77
  );
76
78
  }
77
79
  const {Component, label} = variant;
78
80
  return (
79
- <figure className={[styles.figure, className].filter(Boolean).join(' ')}>
80
- <div className={[styles.frame, styles[`size-${size}`]].filter(Boolean).join(' ')}>
81
- <Component />
82
- </div>
83
- {caption && <figcaption className={styles.caption}>{label}</figcaption>}
84
- </figure>
81
+ <div className={styles.am}>
82
+ <figure className={[styles.figure, className].filter(Boolean).join(' ')}>
83
+ <div className={[styles.frame, styles[`size-${size}`]].filter(Boolean).join(' ')}>
84
+ <Component />
85
+ </div>
86
+ {caption && <figcaption className={styles.caption}>{label}</figcaption>}
87
+ </figure>
88
+ </div>
85
89
  );
86
90
  }