diff --git a/apps/docs/src/components/Footer.tsx b/apps/docs/src/components/Footer.tsx index 6090f3e5fb..900ebbf337 100644 --- a/apps/docs/src/components/Footer.tsx +++ b/apps/docs/src/components/Footer.tsx @@ -1,4 +1,4 @@ -import { UIKitLogo } from "@docs/components/logo/uikit"; +import { UIKitLogo } from "./logo/uikit"; const footerLinks = [ { diff --git a/apps/docs/src/components/code/Live.tsx b/apps/docs/src/components/code/Live.tsx index 929eef06a9..e407cb81c9 100644 --- a/apps/docs/src/components/code/Live.tsx +++ b/apps/docs/src/components/code/Live.tsx @@ -6,10 +6,10 @@ import { LivePreview, LiveProvider, } from "react-live-runner"; -import useEditorTheme from "@docs/hooks/useEditorTheme"; import * as HvCore from "@hitachivantara/uikit-react-core"; import * as HvIcons from "@hitachivantara/uikit-react-icons"; +import useEditorTheme from "../../hooks/useEditorTheme"; import { Toolbar } from "./Toolbar"; interface LiveProps { diff --git a/apps/docs/src/components/code/Playground.tsx b/apps/docs/src/components/code/Playground.tsx index be7deb7e8b..7b2ed04fff 100644 --- a/apps/docs/src/components/code/Playground.tsx +++ b/apps/docs/src/components/code/Playground.tsx @@ -1,8 +1,8 @@ import { Children, isValidElement, useCallback, useState } from "react"; import jsxToString from "react-element-to-jsx-string"; import { CodeEditor } from "react-live-runner"; -import useEditorTheme from "@docs/hooks/useEditorTheme"; +import useEditorTheme from "../../hooks/useEditorTheme"; import { Controls, type Control } from "./Controls"; type PlaygroundProps = { @@ -55,7 +55,7 @@ const generateCode = ( return `<${componentName} ${componentPropsString}/>`.trim(); }; -const Playground = ({ +export const Playground = ({ Component, componentName, componentProps, @@ -139,5 +139,3 @@ const Playground = ({ ); }; - -export default Playground; diff --git a/apps/docs/src/hooks/useEditorTheme.ts b/apps/docs/src/hooks/useEditorTheme.ts index 98075645c2..2a909e79e0 100644 --- a/apps/docs/src/hooks/useEditorTheme.ts +++ b/apps/docs/src/hooks/useEditorTheme.ts @@ -1,8 +1,9 @@ -import useIsMounted from "@docs/hooks/useIsMounted"; import { useTheme } from "nextra-theme-docs"; // @ts-ignore import { themes } from "prism-react-renderer"; +import useIsMounted from "./useIsMounted"; + const useEditorTheme = () => { const isMounted = useIsMounted(); const { resolvedTheme } = useTheme(); diff --git a/apps/docs/src/pages/components/accordion.mdx b/apps/docs/src/pages/components/accordion.mdx index 8b5eab0425..a63c22e874 100644 --- a/apps/docs/src/pages/components/accordion.mdx +++ b/apps/docs/src/pages/components/accordion.mdx @@ -6,10 +6,10 @@ import { HvTypography, } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData("Accordion", "core", accordionClasses); diff --git a/apps/docs/src/pages/components/avatar-group.mdx b/apps/docs/src/pages/components/avatar-group.mdx index eac52882ef..4baf07698f 100644 --- a/apps/docs/src/pages/components/avatar-group.mdx +++ b/apps/docs/src/pages/components/avatar-group.mdx @@ -4,10 +4,10 @@ import { HvAvatarGroup, } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData( diff --git a/apps/docs/src/pages/components/avatar.mdx b/apps/docs/src/pages/components/avatar.mdx index cbb82e1fb6..56bb88376b 100644 --- a/apps/docs/src/pages/components/avatar.mdx +++ b/apps/docs/src/pages/components/avatar.mdx @@ -1,9 +1,9 @@ import { avatarClasses, HvAvatar } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData("Avatar", "core", avatarClasses); diff --git a/apps/docs/src/pages/components/badge.mdx b/apps/docs/src/pages/components/badge.mdx index f70f521d51..cae05a88e1 100644 --- a/apps/docs/src/pages/components/badge.mdx +++ b/apps/docs/src/pages/components/badge.mdx @@ -1,10 +1,10 @@ import { badgeClasses, HvBadge } from "@hitachivantara/uikit-react-core"; import { Alert } from "@hitachivantara/uikit-react-icons"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData("Badge", "core", badgeClasses); diff --git a/apps/docs/src/pages/components/banner.mdx b/apps/docs/src/pages/components/banner.mdx index 326f897262..d9f608be55 100644 --- a/apps/docs/src/pages/components/banner.mdx +++ b/apps/docs/src/pages/components/banner.mdx @@ -1,10 +1,10 @@ import { css } from "@emotion/css"; import { bannerClasses, HvBanner } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData("Banner", "core", bannerClasses); diff --git a/apps/docs/src/pages/components/button.mdx b/apps/docs/src/pages/components/button.mdx index 447b5b6da3..96c7914286 100644 --- a/apps/docs/src/pages/components/button.mdx +++ b/apps/docs/src/pages/components/button.mdx @@ -4,10 +4,10 @@ import { HvButton, } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData("Button", "core", buttonClasses); diff --git a/apps/docs/src/pages/components/card.mdx b/apps/docs/src/pages/components/card.mdx index d965fb8bcc..e3655cc91f 100644 --- a/apps/docs/src/pages/components/card.mdx +++ b/apps/docs/src/pages/components/card.mdx @@ -1,9 +1,9 @@ import { cardClasses, HvCard } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData("Card", "core", cardClasses, [ diff --git a/apps/docs/src/pages/components/checkbox.mdx b/apps/docs/src/pages/components/checkbox.mdx index cb3145ce9f..843598150c 100644 --- a/apps/docs/src/pages/components/checkbox.mdx +++ b/apps/docs/src/pages/components/checkbox.mdx @@ -1,9 +1,9 @@ import { checkBoxClasses, HvCheckBox } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData("CheckBox", "core", checkBoxClasses); diff --git a/apps/docs/src/pages/components/color-picker.mdx b/apps/docs/src/pages/components/color-picker.mdx index 254d639a42..01da0899cf 100644 --- a/apps/docs/src/pages/components/color-picker.mdx +++ b/apps/docs/src/pages/components/color-picker.mdx @@ -3,10 +3,10 @@ import { HvColorPicker, } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData( diff --git a/apps/docs/src/pages/components/date-picker.mdx b/apps/docs/src/pages/components/date-picker.mdx index 513d5c7636..e4af9bbd17 100644 --- a/apps/docs/src/pages/components/date-picker.mdx +++ b/apps/docs/src/pages/components/date-picker.mdx @@ -3,10 +3,10 @@ import { HvDatePicker, } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData("DatePicker", "core", datePickerClasses); diff --git a/apps/docs/src/pages/components/dialog.mdx b/apps/docs/src/pages/components/dialog.mdx index 8b686ce246..909cf04cbe 100644 --- a/apps/docs/src/pages/components/dialog.mdx +++ b/apps/docs/src/pages/components/dialog.mdx @@ -7,10 +7,10 @@ import { HvDialogTitle, } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData("Dialog", "core", dialogClasses); diff --git a/apps/docs/src/pages/components/dot-pagination.mdx b/apps/docs/src/pages/components/dot-pagination.mdx index 320e53e43b..2a16cc54fd 100644 --- a/apps/docs/src/pages/components/dot-pagination.mdx +++ b/apps/docs/src/pages/components/dot-pagination.mdx @@ -4,10 +4,10 @@ import { HvDotPagination, } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData( diff --git a/apps/docs/src/pages/components/dropdown-menu.mdx b/apps/docs/src/pages/components/dropdown-menu.mdx index 3d4e71a879..91b1f648a1 100644 --- a/apps/docs/src/pages/components/dropdown-menu.mdx +++ b/apps/docs/src/pages/components/dropdown-menu.mdx @@ -4,10 +4,10 @@ import { } from "@hitachivantara/uikit-react-core"; import { Open, Preview, Save } from "@hitachivantara/uikit-react-icons"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData( diff --git a/apps/docs/src/pages/components/dropdown.mdx b/apps/docs/src/pages/components/dropdown.mdx index 932065a428..13959f4505 100644 --- a/apps/docs/src/pages/components/dropdown.mdx +++ b/apps/docs/src/pages/components/dropdown.mdx @@ -1,9 +1,9 @@ import { dropdownClasses, HvDropdown } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData("Dropdown", "core", dropdownClasses); diff --git a/apps/docs/src/pages/components/empty-state.mdx b/apps/docs/src/pages/components/empty-state.mdx index e4cc28807d..ef8c9796a4 100644 --- a/apps/docs/src/pages/components/empty-state.mdx +++ b/apps/docs/src/pages/components/empty-state.mdx @@ -4,10 +4,10 @@ import { } from "@hitachivantara/uikit-react-core"; import { Info } from "@hitachivantara/uikit-react-icons"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData("EmptyState", "core", emptyStateClasses); diff --git a/apps/docs/src/pages/components/file-uploader.mdx b/apps/docs/src/pages/components/file-uploader.mdx index e26f8b20c6..f58be36629 100644 --- a/apps/docs/src/pages/components/file-uploader.mdx +++ b/apps/docs/src/pages/components/file-uploader.mdx @@ -3,10 +3,10 @@ import { HvFileUploader, } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData( diff --git a/apps/docs/src/pages/components/form-element.mdx b/apps/docs/src/pages/components/form-element.mdx index b962ca90c8..10e71bd635 100644 --- a/apps/docs/src/pages/components/form-element.mdx +++ b/apps/docs/src/pages/components/form-element.mdx @@ -10,10 +10,10 @@ import { } from "@hitachivantara/uikit-react-core"; import { Fail, Success } from "@hitachivantara/uikit-react-icons"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData( diff --git a/apps/docs/src/pages/components/input.mdx b/apps/docs/src/pages/components/input.mdx index eaaf6534b6..74272a1a9f 100644 --- a/apps/docs/src/pages/components/input.mdx +++ b/apps/docs/src/pages/components/input.mdx @@ -1,9 +1,9 @@ import { HvInput, inputClasses } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData("Input", "core", inputClasses); diff --git a/apps/docs/src/pages/components/loading-container.mdx b/apps/docs/src/pages/components/loading-container.mdx index 64d6bf9aca..030bcd20f8 100644 --- a/apps/docs/src/pages/components/loading-container.mdx +++ b/apps/docs/src/pages/components/loading-container.mdx @@ -3,10 +3,10 @@ import { loadingContainerClasses, } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData( diff --git a/apps/docs/src/pages/components/loading.mdx b/apps/docs/src/pages/components/loading.mdx index 8726827c09..5a72addaac 100644 --- a/apps/docs/src/pages/components/loading.mdx +++ b/apps/docs/src/pages/components/loading.mdx @@ -1,9 +1,9 @@ import { HvLoading, loadingClasses } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData("Loading", "core", loadingClasses); diff --git a/apps/docs/src/pages/components/multi-button.mdx b/apps/docs/src/pages/components/multi-button.mdx index 17465344f3..5e25511f01 100644 --- a/apps/docs/src/pages/components/multi-button.mdx +++ b/apps/docs/src/pages/components/multi-button.mdx @@ -10,10 +10,10 @@ import { Map, } from "@hitachivantara/uikit-react-icons"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData( diff --git a/apps/docs/src/pages/components/overflow-tooltip.mdx b/apps/docs/src/pages/components/overflow-tooltip.mdx index a3810ed1bb..6300f5546a 100644 --- a/apps/docs/src/pages/components/overflow-tooltip.mdx +++ b/apps/docs/src/pages/components/overflow-tooltip.mdx @@ -4,10 +4,10 @@ import { overflowTooltipClasses, } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData( diff --git a/apps/docs/src/pages/components/pagination.mdx b/apps/docs/src/pages/components/pagination.mdx index 0015eb2c7d..53100b9a14 100644 --- a/apps/docs/src/pages/components/pagination.mdx +++ b/apps/docs/src/pages/components/pagination.mdx @@ -4,10 +4,10 @@ import { paginationClasses, } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData("Pagination", "core", paginationClasses); diff --git a/apps/docs/src/pages/components/panel.mdx b/apps/docs/src/pages/components/panel.mdx index 7ac0f36b65..946e3b9625 100644 --- a/apps/docs/src/pages/components/panel.mdx +++ b/apps/docs/src/pages/components/panel.mdx @@ -1,9 +1,9 @@ import { HvPanel, panelClasses } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData("Panel", "core", panelClasses); diff --git a/apps/docs/src/pages/components/radio-group.mdx b/apps/docs/src/pages/components/radio-group.mdx index 574bc35113..41a91ef6ba 100644 --- a/apps/docs/src/pages/components/radio-group.mdx +++ b/apps/docs/src/pages/components/radio-group.mdx @@ -4,10 +4,10 @@ import { radioGroupClasses, } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData("RadioGroup", "core", radioGroupClasses); diff --git a/apps/docs/src/pages/components/radio.mdx b/apps/docs/src/pages/components/radio.mdx index 9b171f8b7f..c8a0f529f3 100644 --- a/apps/docs/src/pages/components/radio.mdx +++ b/apps/docs/src/pages/components/radio.mdx @@ -1,9 +1,9 @@ import { HvRadio, radioClasses } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData("Radio", "core", radioClasses); diff --git a/apps/docs/src/pages/components/section.mdx b/apps/docs/src/pages/components/section.mdx index bfd5351a48..8f6e122591 100644 --- a/apps/docs/src/pages/components/section.mdx +++ b/apps/docs/src/pages/components/section.mdx @@ -4,10 +4,10 @@ import { sectionClasses, } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData("Section", "core", sectionClasses); diff --git a/apps/docs/src/pages/components/select.mdx b/apps/docs/src/pages/components/select.mdx index 0022f6d65b..a7e7405fd8 100644 --- a/apps/docs/src/pages/components/select.mdx +++ b/apps/docs/src/pages/components/select.mdx @@ -7,10 +7,10 @@ import { selectClasses, } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData("Select", "core", selectClasses); diff --git a/apps/docs/src/pages/components/selection-list.mdx b/apps/docs/src/pages/components/selection-list.mdx index e388fd2207..fef6d79dcc 100644 --- a/apps/docs/src/pages/components/selection-list.mdx +++ b/apps/docs/src/pages/components/selection-list.mdx @@ -5,10 +5,10 @@ import { selectionListClasses, } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData( diff --git a/apps/docs/src/pages/components/skeleton.mdx b/apps/docs/src/pages/components/skeleton.mdx index 4141b46f81..5d0a223f62 100644 --- a/apps/docs/src/pages/components/skeleton.mdx +++ b/apps/docs/src/pages/components/skeleton.mdx @@ -6,10 +6,10 @@ import { skeletonClasses, } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData("Skeleton", "core", skeletonClasses); diff --git a/apps/docs/src/pages/components/slider.mdx b/apps/docs/src/pages/components/slider.mdx index 2d50cf1bf3..05571a97ad 100644 --- a/apps/docs/src/pages/components/slider.mdx +++ b/apps/docs/src/pages/components/slider.mdx @@ -1,9 +1,9 @@ import { HvSlider, sliderClasses } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData("Slider", "core", sliderClasses); diff --git a/apps/docs/src/pages/components/snackbar.mdx b/apps/docs/src/pages/components/snackbar.mdx index 995b8aff75..8421ba6490 100644 --- a/apps/docs/src/pages/components/snackbar.mdx +++ b/apps/docs/src/pages/components/snackbar.mdx @@ -1,9 +1,9 @@ import { HvSnackbar, snackbarClasses } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData("Snackbar", "core", snackbarClasses); diff --git a/apps/docs/src/pages/components/switch.mdx b/apps/docs/src/pages/components/switch.mdx index 403f79fc5c..bee72c55e6 100644 --- a/apps/docs/src/pages/components/switch.mdx +++ b/apps/docs/src/pages/components/switch.mdx @@ -1,9 +1,9 @@ import { HvSwitch, switchClasses } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData("Switch", "core", switchClasses); diff --git a/apps/docs/src/pages/components/tabs.mdx b/apps/docs/src/pages/components/tabs.mdx index 34852b3545..435147de5d 100644 --- a/apps/docs/src/pages/components/tabs.mdx +++ b/apps/docs/src/pages/components/tabs.mdx @@ -1,10 +1,10 @@ import { Callout } from "nextra/components"; import { HvTab, HvTabs, tabsClasses } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData("Tabs", "core", tabsClasses, ["Tab"]); diff --git a/apps/docs/src/pages/components/tag.mdx b/apps/docs/src/pages/components/tag.mdx index ae898a015b..c61ce5c12e 100644 --- a/apps/docs/src/pages/components/tag.mdx +++ b/apps/docs/src/pages/components/tag.mdx @@ -1,9 +1,9 @@ import { HvTag, tagClasses } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData("Tag", "core", tagClasses); diff --git a/apps/docs/src/pages/components/textarea.mdx b/apps/docs/src/pages/components/textarea.mdx index ae085b1918..158c9b28b4 100644 --- a/apps/docs/src/pages/components/textarea.mdx +++ b/apps/docs/src/pages/components/textarea.mdx @@ -1,10 +1,10 @@ import { Callout } from "nextra/components"; import { HvTextArea, textAreaClasses } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData("TextArea", "core", textAreaClasses); diff --git a/apps/docs/src/pages/components/time-picker.mdx b/apps/docs/src/pages/components/time-picker.mdx index 109ee66d67..f8a9d85452 100644 --- a/apps/docs/src/pages/components/time-picker.mdx +++ b/apps/docs/src/pages/components/time-picker.mdx @@ -3,10 +3,10 @@ import { timePickerClasses, } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData("TimePicker", "core", timePickerClasses); diff --git a/apps/docs/src/pages/components/toggle-button.mdx b/apps/docs/src/pages/components/toggle-button.mdx index b229f62c9c..b203a4c9c4 100644 --- a/apps/docs/src/pages/components/toggle-button.mdx +++ b/apps/docs/src/pages/components/toggle-button.mdx @@ -1,10 +1,10 @@ import { HvToggleButton } from "@hitachivantara/uikit-react-core"; import { Favorite, FavoriteSelected } from "@hitachivantara/uikit-react-icons"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData("ToggleButton", "core", []); diff --git a/apps/docs/src/pages/components/tooltip.mdx b/apps/docs/src/pages/components/tooltip.mdx index ad3206cb37..e86ed5772b 100644 --- a/apps/docs/src/pages/components/tooltip.mdx +++ b/apps/docs/src/pages/components/tooltip.mdx @@ -5,10 +5,10 @@ import { tooltipClasses, } from "@hitachivantara/uikit-react-core"; -import Playground from "@docs/components/code/Playground"; -import { Description } from "@docs/components/page/Description"; -import { Page } from "@docs/components/page/Page"; -import { getComponentData } from "@docs/utils/component"; +import { Playground } from "../../components/code/Playground"; +import { Description } from "../../components/page/Description"; +import { Page } from "../../components/page/Page"; +import { getComponentData } from "../../utils/component"; export const getStaticProps = async ({ params }) => { const meta = await getComponentData("Tooltip", "core", tooltipClasses); diff --git a/apps/docs/src/pages/index.mdx b/apps/docs/src/pages/index.mdx index d1501d6e36..86b440a510 100644 --- a/apps/docs/src/pages/index.mdx +++ b/apps/docs/src/pages/index.mdx @@ -1,3 +1,3 @@ -import { Home } from "@docs/components/home/Home"; +import { Home } from "../components/home/Home"; diff --git a/apps/docs/theme.config.tsx b/apps/docs/theme.config.tsx index 8abb2ed357..d2a8e369df 100644 --- a/apps/docs/theme.config.tsx +++ b/apps/docs/theme.config.tsx @@ -1,9 +1,10 @@ -import { Pre } from "@docs/components/code/Pre"; -import { Footer } from "@docs/components/Footer"; -import { UIKitLogo } from "@docs/components/logo/uikit"; -import { Main } from "@docs/components/Main"; import { ThemeSwitch, type DocsThemeConfig } from "nextra-theme-docs"; +import { Pre } from "./src/components/code/Pre"; +import { Footer } from "./src/components/Footer"; +import { UIKitLogo } from "./src/components/logo/uikit"; +import { Main } from "./src/components/Main"; + const config: DocsThemeConfig = { project: { link: "https://github.com/lumada-design/hv-uikit-react", diff --git a/tsconfig.json b/tsconfig.json index d2621a8d1a..b46f9b3978 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,8 +3,7 @@ "compilerOptions": { "paths": { ".storybook/*": ["./.storybook/*"], - "~/*": ["./apps/app/src/*"], - "@docs/*": ["./apps/docs/src/*"] + "~/*": ["./apps/app/src/*"] } }, "include": [