diff --git a/apps/demo/src/Views/Ui/components/PageDemo.tsx b/apps/demo/src/Views/Ui/components/PageDemo.tsx index fa447305f..664f5efba 100644 --- a/apps/demo/src/Views/Ui/components/PageDemo.tsx +++ b/apps/demo/src/Views/Ui/components/PageDemo.tsx @@ -1,10 +1,96 @@ import { useTranslation } from "@prefabs.tech/react-i18n"; -import { Button, Page, Tag } from "@prefabs.tech/react-ui"; +import { Button, Page, Tag, TDataTable } from "@prefabs.tech/react-ui"; +import { useNavigate } from "react-router-dom"; + +import { CodeBlock, Section } from "../../../components/Demo"; export const PageDemo = () => { const [t] = useTranslation("ui"); + const navigate = useNavigate(); + + const propertiesData = [ + { + default: "-", + description: t("page.propertiesDescription.breadcrumb"), + prop: "breadcrumb", + type: "React.ReactNode", + }, + { + default: "false", + description: t("page.propertiesDescription.centered"), + prop: "centered", + type: "boolean", + }, + { + default: "-", + description: t("page.propertiesDescription.children"), + prop: "children", + type: "React.ReactNode", + }, + { + default: "-", + description: t("page.propertiesDescription.className"), + prop: "className", + type: "string", + }, + { + default: "-", + description: t("page.propertiesDescription.errorMessage"), + prop: "errorMessage", + type: "string", + }, + { + default: "false", + description: t("page.propertiesDescription.loading"), + prop: "loading", + type: "boolean", + }, + { + default: "-", + description: t("page.propertiesDescription.loadingComponent"), + prop: "loadingComponent", + type: "React.ReactElement", + }, + { + default: "-", + description: t("page.propertiesDescription.loadingPageStyle"), + prop: "loadingPageStyle", + type: "LoadingPageProperties", + }, + { + default: "-", + description: t("page.propertiesDescription.subtitle"), + prop: "subtitle", + type: "string | React.ReactNode", + }, + { + default: "-", + description: t("page.propertiesDescription.title"), + prop: "title", + type: "string | React.ReactNode", + }, + { + default: "-", + description: t("page.propertiesDescription.titleTag"), + prop: "titleTag", + type: "string | React.ReactNode", + }, + { + default: "-", + description: t("page.propertiesDescription.toolbarActionMenu"), + prop: "toolbarActionMenu", + type: "ToolbarActionsMenuProperties", + }, + { + default: "-", + description: t("page.propertiesDescription.toolbar"), + prop: "toolbar", + type: "React.ReactNode", + }, + ]; + + const pageContent =
Page content.
; - const PageContent =
{t("page.content")}
; const breadcrumb = (