create-unmint 1.3.0 → 1.3.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.js +2 -23
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -877,33 +877,12 @@ async function createMdxComponents(targetDir, appDir) {
|
|
|
877
877
|
}
|
|
878
878
|
const componentsPath = appDir.includes("src") ? "@/app/components/docs/mdx" : "@/app/components/docs/mdx";
|
|
879
879
|
const content = `import type { MDXComponents } from 'mdx/types'
|
|
880
|
-
import
|
|
881
|
-
import { Accordion } from '${componentsPath}/accordion'
|
|
882
|
-
import { Callout, Note, Tip, Warning, Info } from '${componentsPath}/callout'
|
|
883
|
-
import { Card, CardGroup } from '${componentsPath}/card'
|
|
884
|
-
import { CodeBlock } from '${componentsPath}/code-block'
|
|
885
|
-
import { Frame } from '${componentsPath}/frame'
|
|
886
|
-
import { Steps, Step } from '${componentsPath}/steps'
|
|
887
|
-
import { Tab, Tabs } from '${componentsPath}/tabs'
|
|
880
|
+
import { getMDXComponents } from '${componentsPath}'
|
|
888
881
|
|
|
889
882
|
export function useMDXComponents(components: MDXComponents): MDXComponents {
|
|
890
883
|
return {
|
|
891
|
-
...
|
|
884
|
+
...getMDXComponents(),
|
|
892
885
|
...components,
|
|
893
|
-
Accordion,
|
|
894
|
-
Callout,
|
|
895
|
-
Note,
|
|
896
|
-
Tip,
|
|
897
|
-
Warning,
|
|
898
|
-
Info,
|
|
899
|
-
Card,
|
|
900
|
-
CardGroup,
|
|
901
|
-
CodeBlock,
|
|
902
|
-
Frame,
|
|
903
|
-
Steps,
|
|
904
|
-
Step,
|
|
905
|
-
Tab,
|
|
906
|
-
Tabs,
|
|
907
886
|
}
|
|
908
887
|
}
|
|
909
888
|
`;
|