docs: update docusaurus to v3 (#5625)

* update dependencies

* update onboarding mdx

* fixes for mdx issues

* fixes for mdx compatibility

* resolve mdx errors

* fixes in reference

* fix check errors

* revert change in vale action

* fix node version in action

* fix summary in markdown
This commit is contained in:
Shahed Nasser
2023-11-13 20:11:50 +02:00
committed by GitHub
parent cedab58339
commit c6dff873de
2265 changed files with 46163 additions and 47195 deletions

View File

@@ -5,8 +5,7 @@ import { IconProps } from "@medusajs/icons/dist/types"
export type BorderedIconProps = {
icon?: string
IconComponent?: ((props: IconProps) => React.JSX.Element) | null
// IconComponent?: React.FC<IconProps> | null
IconComponent?: React.FC<IconProps> | null
wrapperClassName?: string
iconWrapperClassName?: string
iconClassName?: string

View File

@@ -20,7 +20,7 @@ export type ModalProps = {
footerContent?: React.ReactNode
passedRef?: Ref<HTMLDialogElement>
headerClassName?: string
} & Omit<React.ComponentProps<"dialog">, "ref" | "title">
} & Omit<React.ComponentProps<"dialog">, "ref" | "title" | "key">
export const Modal = ({
className,

View File

@@ -1,11 +1,10 @@
"use client"
import React, { useEffect, useState } from "react"
import React, { useId } from "react"
import { Tooltip as ReactTooltip } from "react-tooltip"
import type { ITooltip } from "react-tooltip"
import clsx from "clsx"
import "react-tooltip/dist/react-tooltip.css"
import uuid from "react-uuid"
export type TooltipProps = {
text?: string
@@ -24,13 +23,7 @@ export const Tooltip = ({
className,
...tooltipProps
}: TooltipProps) => {
const [elementId, setElementId] = useState<string>("")
useEffect(() => {
if (!elementId) {
setElementId(uuid())
}
}, [elementId])
const elementId = useId()
return (
<>