Skip to content
Merged
17 changes: 17 additions & 0 deletions apps/website/pages/components/number-input/code.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import Head from "next/head";
import type { ReactElement } from "react";
import NumberInputCodePage from "screens/components/number-input/code/NumberInputCodePage";
import NumberInputPageLayout from "screens/components/number-input/NumberInputPageLayout";

const Code = () => (
<>
<Head>
<title>Number input code — Halstack Design System</title>
</Head>
<NumberInputCodePage />
</>
);

Code.getLayout = (page: ReactElement) => <NumberInputPageLayout>{page}</NumberInputPageLayout>;

export default Code;
24 changes: 10 additions & 14 deletions apps/website/pages/components/number-input/index.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
import Head from "next/head";
import type { ReactElement } from "react";
import NumberInputCodePage from "screens/components/number-input/code/NumberInputCodePage";
import NumberInputPageLayout from "screens/components/number-input/NumberInputPageLayout";
import NumberInputOverviewPage from "screens/components/number-input/overview/NumberInputOverviewPage";

const Index = () => {
return (
<>
<Head>
<title>Number Input — Halstack Design System</title>
</Head>
<NumberInputCodePage></NumberInputCodePage>
</>
);
};
const Index = () => (
<>
<Head>
<title>Number input — Halstack Design System</title>
</Head>
<NumberInputOverviewPage />
</>
);

Index.getLayout = function getLayout(page: ReactElement) {
return <NumberInputPageLayout>{page}</NumberInputPageLayout>;
};
Index.getLayout = (page: ReactElement) => <NumberInputPageLayout>{page}</NumberInputPageLayout>;

export default Index;
21 changes: 0 additions & 21 deletions apps/website/pages/components/number-input/specifications.tsx

This file was deleted.

21 changes: 0 additions & 21 deletions apps/website/pages/components/number-input/usage.tsx

This file was deleted.

17 changes: 17 additions & 0 deletions apps/website/pages/components/password-input/code.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import Head from "next/head";
import type { ReactElement } from "react";
import PasswordInputPageLayout from "screens/components/password-input/PasswordInputPageLayout";
import PasswordInputCodePage from "screens/components/password-input/code/PasswordInputCodePage";

const Code = () => (
<>
<Head>
<title>Password input code — Halstack Design System</title>
</Head>
<PasswordInputCodePage />
</>
);

Code.getLayout = (page: ReactElement) => <PasswordInputPageLayout>{page}</PasswordInputPageLayout>;

export default Code;
24 changes: 10 additions & 14 deletions apps/website/pages/components/password-input/index.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
import Head from "next/head";
import type { ReactElement } from "react";
import PasswordInputCodePage from "screens/components/password-input/code/PasswordInputCodePage";
import PasswordInputOverviewPage from "screens/components/password-input/overview/PasswordInputOverviewPage";
import PasswordInputPageLayout from "screens/components/password-input/PasswordInputPageLayout";

const Index = () => {
return (
<>
<Head>
<title>Password Input — Halstack Design System</title>
</Head>
<PasswordInputCodePage></PasswordInputCodePage>
</>
);
};
const Index = () => (
<>
<Head>
<title>Password input — Halstack Design System</title>
</Head>
<PasswordInputOverviewPage />
</>
);

Index.getLayout = function getLayout(page: ReactElement) {
return <PasswordInputPageLayout>{page}</PasswordInputPageLayout>;
};
Index.getLayout = (page: ReactElement) => <PasswordInputPageLayout>{page}</PasswordInputPageLayout>;

export default Index;
21 changes: 0 additions & 21 deletions apps/website/pages/components/password-input/specifications.tsx

This file was deleted.

21 changes: 0 additions & 21 deletions apps/website/pages/components/password-input/usage.tsx

This file was deleted.

17 changes: 17 additions & 0 deletions apps/website/pages/components/text-input/code.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import Head from "next/head";
import type { ReactElement } from "react";
import TextInputPageLayout from "screens/components/text-input/TextInputPageLayout";
import TextInputCodePage from "screens/components/text-input/code/TextInputCodePage";

const Code = () => (
<>
<Head>
<title>Text input code — Halstack Design System</title>
</Head>
<TextInputCodePage />
</>
);

Code.getLayout = (page: ReactElement) => <TextInputPageLayout>{page}</TextInputPageLayout>;

export default Code;
24 changes: 10 additions & 14 deletions apps/website/pages/components/text-input/index.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
import Head from "next/head";
import type { ReactElement } from "react";
import TextInputCodePage from "screens/components/text-input/code/TextInputCodePage";
import TextInputOverviewPage from "screens/components/text-input/overview/TextInputOverviewPage";
import TextInputPageLayout from "screens/components/text-input/TextInputPageLayout";

const Index = () => {
return (
<>
<Head>
<title>Text Input — Halstack Design System</title>
</Head>
<TextInputCodePage></TextInputCodePage>
</>
);
};
const Index = () => (
<>
<Head>
<title>Text input — Halstack Design System</title>
</Head>
<TextInputOverviewPage />
</>
);

Index.getLayout = function getLayout(page: ReactElement) {
return <TextInputPageLayout>{page}</TextInputPageLayout>;
};
Index.getLayout = (page: ReactElement) => <TextInputPageLayout>{page}</TextInputPageLayout>;

export default Index;
21 changes: 0 additions & 21 deletions apps/website/pages/components/text-input/specifications.tsx

This file was deleted.

21 changes: 0 additions & 21 deletions apps/website/pages/components/text-input/usage.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Code from "@/common/Code";
import StatusBadge from "@/common/StatusBadge";

const actionTypeString = `{
icon?: (React.ReactNode
icon?: string | (React.ReactNode
& React.SVGProps<SVGSVGElement>);
label: string;
onClick: () => void;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,20 @@ import { ReactNode } from "react";

const NumberInputPageHeading = ({ children }: { children: ReactNode }) => {
const tabs = [
{ label: "Code", path: "/components/number-input" },
{ label: "Usage", path: "/components/number-input/usage" },
{
label: "Specifications",
path: "/components/number-input/specifications",
},
{ label: "Overview", path: "/components/number-input" },
{ label: "Code", path: "/components/number-input/code" },
];

return (
<DxcFlex direction="column" gap="3rem">
<PageHeading>
<DxcFlex direction="column" gap="2rem">
<ComponentHeading name="Number Input" />
<ComponentHeading name="Number input" />
<DxcParagraph>
The number input is a text input component that only allows numerical values and it has controls for
incrementing or decrementing them.
Number inputs are fields specifically used to capture numeric user input in a structured and accessible
format.
</DxcParagraph>
<TabsPageHeading tabs={tabs}></TabsPageHeading>
<TabsPageHeading tabs={tabs} />
</DxcFlex>
</PageHeading>
{children}
Expand Down
Loading