From 663f00871ed047a3d6faadb6090ce3ab0a42b47c Mon Sep 17 00:00:00 2001 From: TheoryOfNekomata Date: Fri, 4 Aug 2023 17:09:56 +0800 Subject: [PATCH] Add contexts Use contexts for customizing page layout. --- .../next/src/components/PageLayout.tsx | 11 +++++++ .../components/ActionButton/ActionButton.mdx | 2 ++ packages/amanuensis/src/commands/refresh.ts | 31 +++++++++++++++---- .../src/next/components/Amanuensis.tsx | 30 ++++++++++++++++++ .../src/next/components/PageLayout.tsx | 11 +++++++ .../amanuensis/src/next/contexts/Component.ts | 3 ++ .../amanuensis/src/next/contexts/Preamble.ts | 3 ++ 7 files changed, 85 insertions(+), 6 deletions(-) create mode 100644 .amanuensis/next/src/components/PageLayout.tsx create mode 100644 packages/amanuensis/src/next/components/Amanuensis.tsx create mode 100644 packages/amanuensis/src/next/components/PageLayout.tsx create mode 100644 packages/amanuensis/src/next/contexts/Component.ts create mode 100644 packages/amanuensis/src/next/contexts/Preamble.ts diff --git a/.amanuensis/next/src/components/PageLayout.tsx b/.amanuensis/next/src/components/PageLayout.tsx new file mode 100644 index 0000000..466b794 --- /dev/null +++ b/.amanuensis/next/src/components/PageLayout.tsx @@ -0,0 +1,11 @@ +import { Preamble, Props, Playground } from '@/components/Amanuensis'; + +export const PageLayout = () => { + return ( + <> + + + + + ) +}; diff --git a/categories/web/action/react/src/components/ActionButton/ActionButton.mdx b/categories/web/action/react/src/components/ActionButton/ActionButton.mdx index 344a0e8..3246047 100644 --- a/categories/web/action/react/src/components/ActionButton/ActionButton.mdx +++ b/categories/web/action/react/src/components/ActionButton/ActionButton.mdx @@ -1,5 +1,7 @@ import { ActionButton } from '@tesseract-design/web-action-react'; +# ActionButton + The `` component is a wrapper around the `