chore(docs): Updated UI Reference (#6347)

* chore(docs): Generated UI Reference

* fixed props typing + added new alert page

* updated ui dependencies

---------

Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
This commit is contained in:
github-actions[bot]
2024-02-12 19:46:51 +01:00
committed by GitHub
parent e85463b2a7
commit 869dc751a0
21 changed files with 213 additions and 57 deletions

View File

@@ -0,0 +1,5 @@
import { Alert } from "@medusajs/ui"
export default function AlertDemo() {
return <Alert>You are viewing Medusa docs.</Alert>
}

View File

@@ -0,0 +1,5 @@
import { Alert } from "@medusajs/ui"
export default function AlertDismissable() {
return <Alert dismissible={true}>You are viewing Medusa docs.</Alert>
}

View File

@@ -0,0 +1,5 @@
import { Alert } from "@medusajs/ui"
export default function AlertError() {
return <Alert variant="error">An error occured while updating data.</Alert>
}

View File

@@ -0,0 +1,5 @@
import { Alert } from "@medusajs/ui"
export default function AlertSuccess() {
return <Alert variant="success">Data updated successfully!</Alert>
}

View File

@@ -0,0 +1,5 @@
import { Alert } from "@medusajs/ui"
export default function AlertWarning() {
return <Alert variant="warning">Be careful!</Alert>
}