Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: RSC 対応テストから漏れているコンポーネントを追加 #5005

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions sandbox/next/e2e/rsc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,41 @@ const SERVER_COMPONENTS = [
'Th',
'StatusLabel',
'ResponseMessage',
'AppNaviCustomTag',
'AppNaviButton',
'AppNaviAnchor',
'AnchorButton',
'UpwardLink',
'TimePicker',
'SpreadsheetTableCorner',
'HeaderLink',
'DropdownScrollArea',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これで多分洗い出し一通り完了。
思ったよりRSC対応してるコンポーネント多いなという印象。

]

/**
* サーバーコンポーネントでは利用できないコンポーネント一覧
*/
const CLIENT_COMPONENTS = [
'AccordionPanelContent',
'AppNaviDropdownMenuButton',
'AppNaviDropdown',
'AccordionPanelItem',
'AccordionPanelTrigger',
'ActionDialogContent',
'ActionDialogWithTrigger',
'DialogCloser',
'Stepper',
'SortDropdown',
'MessageDialogContent',
'LanguageSwitcher',
'HeaderDropdownMenuButton',
'FormDialogContent',
'DialogContent',
'DropdownTrigger',
'DropdownContent',
'DropdownCloser',
'DialogWrapper',
'DialogTrigger',
'Select',
'SearchInput',
'TabItem',
Expand Down
10 changes: 10 additions & 0 deletions sandbox/next/src/app/rsc_test/AccordionPanelContent/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react'
import { AccordionPanelContent } from 'smarthr-ui'
export default function AccordionPanelContentPage() {
return (
<>
<div>Success: AccordionPanelContent</div>
<AccordionPanelContent>AccordionPanelContent</AccordionPanelContent>
</>
)
}
10 changes: 10 additions & 0 deletions sandbox/next/src/app/rsc_test/AccordionPanelItem/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react'
import { AccordionPanelItem } from 'smarthr-ui'
export default function AccordionPanelItemPage() {
return (
<>
<div>Success: AccordionPanelItem</div>
<AccordionPanelItem name="AccordionPanelItem" />
</>
)
}
10 changes: 10 additions & 0 deletions sandbox/next/src/app/rsc_test/AccordionPanelTrigger/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react'
import { AccordionPanelTrigger } from 'smarthr-ui'
export default function AccordionPanelTriggerPage() {
return (
<>
<div>Success: AccordionPanelTrigger</div>
<AccordionPanelTrigger>AccordionPanelTrigger</AccordionPanelTrigger>
</>
)
}
16 changes: 16 additions & 0 deletions sandbox/next/src/app/rsc_test/ActionDialogContent/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import React from 'react'
import { ActionDialogContent } from 'smarthr-ui'
export default function ActionDialogContentPage() {
return (
<>
<div>Success: ActionDialogContent</div>
<ActionDialogContent
title="title"
titleId="titleId"
contentBgColor="white"
actionText="actionText"
onClickAction={() => {}}
/>
</>
)
}
16 changes: 16 additions & 0 deletions sandbox/next/src/app/rsc_test/ActionDialogWithTrigger/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import React from 'react'
import { ActionDialogWithTrigger } from 'smarthr-ui'
export default function ActionDialogWithTriggerPage() {
return (
<>
<div>Success: ActionDialogWithTrigger</div>
<ActionDialogWithTrigger
contentBgColor="white"
title="title"
actionText="actionText"
onClickAction={() => {}}
trigger={<div>trigger</div>}
/>
</>
)
}
10 changes: 10 additions & 0 deletions sandbox/next/src/app/rsc_test/AnchorButton/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react'
import { AnchorButton } from 'smarthr-ui'
export default function AnchorButtonPage() {
return (
<>
<div>Success: AnchorButton</div>
<AnchorButton href="/">AnchorButton</AnchorButton>
</>
)
}
10 changes: 10 additions & 0 deletions sandbox/next/src/app/rsc_test/AppNaviAnchor/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react'
import { AppNaviAnchor } from 'smarthr-ui'
export default function AppNaviAnchorPage() {
return (
<>
<div>Success: AppNaviAnchor</div>
<AppNaviAnchor href="/">AppNaviAnchor</AppNaviAnchor>
</>
)
}
10 changes: 10 additions & 0 deletions sandbox/next/src/app/rsc_test/AppNaviButton/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react'
import { AppNaviButton } from 'smarthr-ui'
export default function AppNaviButtonPage() {
return (
<>
<div>Success: AppNaviButton</div>
<AppNaviButton>AppNaviButton</AppNaviButton>
</>
)
}
10 changes: 10 additions & 0 deletions sandbox/next/src/app/rsc_test/AppNaviCustomTag/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react'
import { AppNaviCustomTag, Text } from 'smarthr-ui'
export default function AppNaviCustomTagPage() {
return (
<>
<div>Success: AppNaviCustomTag</div>
<AppNaviCustomTag tag={Text}></AppNaviCustomTag>
</>
)
}
10 changes: 10 additions & 0 deletions sandbox/next/src/app/rsc_test/AppNaviDropdown/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react'
import { AppNaviDropdown } from 'smarthr-ui'
export default function AppNaviDropdownPage() {
return (
<>
<div>Success: AppNaviDropdown</div>
<AppNaviDropdown dropdownContent={<div>AppNaviDropdown</div>} />
</>
)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react'
import { AppNaviDropdownMenuButton } from 'smarthr-ui'
export default function AppNaviDropdownMenuButtonPage() {
return (
<>
<div>Success: AppNaviDropdownMenuButton</div>
<AppNaviDropdownMenuButton label="label" />
</>
)
}
10 changes: 10 additions & 0 deletions sandbox/next/src/app/rsc_test/DialogCloser/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react'
import { DialogCloser } from 'smarthr-ui'
export default function DialogCloserPage() {
return (
<>
<div>Success: DialogCloser</div>
<DialogCloser />
</>
)
}
10 changes: 10 additions & 0 deletions sandbox/next/src/app/rsc_test/DialogContent/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react'
import { DialogContent } from 'smarthr-ui'
export default function DialogContentPage() {
return (
<>
<div>Success: DialogContent</div>
<DialogContent />
</>
)
}
10 changes: 10 additions & 0 deletions sandbox/next/src/app/rsc_test/DialogTrigger/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react'
import { DialogTrigger } from 'smarthr-ui'
export default function DialogTriggerPage() {
return (
<>
<div>Success: DialogTrigger</div>
<DialogTrigger />
</>
)
}
10 changes: 10 additions & 0 deletions sandbox/next/src/app/rsc_test/DialogWrapper/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react'
import { DialogWrapper } from 'smarthr-ui'
export default function DialogWrapperPage() {
return (
<>
<div>Success: DialogWrapper</div>
<DialogWrapper />
</>
)
}
10 changes: 10 additions & 0 deletions sandbox/next/src/app/rsc_test/DropdownCloser/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react'
import { DropdownCloser } from 'smarthr-ui'
export default function DropdownCloserPage() {
return (
<>
<div>Success: DropdownCloser</div>
<DropdownCloser />
</>
)
}
10 changes: 10 additions & 0 deletions sandbox/next/src/app/rsc_test/DropdownContent/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react'
import { DropdownContent } from 'smarthr-ui'
export default function DropdownContentPage() {
return (
<>
<div>Success: DropdownContent</div>
<DropdownContent />
</>
)
}
10 changes: 10 additions & 0 deletions sandbox/next/src/app/rsc_test/DropdownScrollArea/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react'
import { DropdownScrollArea } from 'smarthr-ui'
export default function DropdownScrollAreaPage() {
return (
<>
<div>Success: DropdownScrollArea</div>
<DropdownScrollArea>DropdownScrollArea</DropdownScrollArea>
</>
)
}
10 changes: 10 additions & 0 deletions sandbox/next/src/app/rsc_test/DropdownTrigger/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react'
import { DropdownTrigger } from 'smarthr-ui'
export default function DropdownTriggerPage() {
return (
<>
<div>Success: DropdownTrigger</div>
<DropdownTrigger />
</>
)
}
16 changes: 16 additions & 0 deletions sandbox/next/src/app/rsc_test/FormDialogContent/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import React from 'react'
import { FormDialogContent } from 'smarthr-ui'
export default function FormDialogContentPage() {
return (
<>
<div>Success: FormDialogContent</div>
<FormDialogContent
title="title"
titleId="titleId"
contentBgColor="white"
actionText="actionText"
onSubmit={() => {}}
/>
</>
)
}
12 changes: 12 additions & 0 deletions sandbox/next/src/app/rsc_test/HeaderDropdownMenuButton/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react'
import { HeaderDropdownMenuButton } from 'smarthr-ui'
export default function HeaderDropdownMenuButtonPage() {
return (
<>
<div>Success: HeaderDropdownMenuButton</div>
<HeaderDropdownMenuButton label="label">
<div>children</div>
</HeaderDropdownMenuButton>
</>
)
}
10 changes: 10 additions & 0 deletions sandbox/next/src/app/rsc_test/HeaderLink/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react'
import { HeaderLink } from 'smarthr-ui'
export default function HeaderLinkPage() {
return (
<>
<div>Success: HeaderLink</div>
<HeaderLink href="/">HeaderLink</HeaderLink>
</>
)
}
10 changes: 10 additions & 0 deletions sandbox/next/src/app/rsc_test/LanguageSwitcher/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react'
import { LanguageSwitcher } from 'smarthr-ui'
export default function LanguageSwitcherPage() {
return (
<>
<div>Success: LanguageSwitcher</div>
<LanguageSwitcher localeMap={{}} />
</>
)
}
15 changes: 15 additions & 0 deletions sandbox/next/src/app/rsc_test/MessageDialogContent/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from 'react'
import { MessageDialogContent } from 'smarthr-ui'
export default function MessageDialogContentPage() {
return (
<>
<div>Success: MessageDialogContent</div>
<MessageDialogContent
title="title"
titleId="titleId"
contentBgColor="white"
description="description"
/>
</>
)
}
10 changes: 10 additions & 0 deletions sandbox/next/src/app/rsc_test/SortDropdown/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react'
import { SortDropdown } from 'smarthr-ui'
export default function SortDropdownPage() {
return (
<>
<div>Success: SortDropdown</div>
<SortDropdown sortFields={[]} defaultOrder={'desc'} onApply={() => {}} />
</>
)
}
10 changes: 10 additions & 0 deletions sandbox/next/src/app/rsc_test/SpreadsheetTableCorner/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react'
import { SpreadsheetTableCorner } from 'smarthr-ui'
export default function SpreadsheetTableCornerPage() {
return (
<>
<div>Success: SpreadsheetTableCorner</div>
<SpreadsheetTableCorner />
</>
)
}
10 changes: 10 additions & 0 deletions sandbox/next/src/app/rsc_test/Stepper/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react'
import { Stepper } from 'smarthr-ui'
export default function StepperPage() {
return (
<>
<div>Success: Stepper</div>
<Stepper type="horizontal" steps={[]} />
</>
)
}
10 changes: 10 additions & 0 deletions sandbox/next/src/app/rsc_test/TimePicker/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react'
import { TimePicker } from 'smarthr-ui'
export default function TimePickerPage() {
return (
<>
<div>Success: TimePicker</div>
<TimePicker name="name" />
</>
)
}
10 changes: 10 additions & 0 deletions sandbox/next/src/app/rsc_test/UpwardLink/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react'
import { UpwardLink } from 'smarthr-ui'
export default function UpwardLinkPage() {
return (
<>
<div>Success: UpwardLink</div>
<UpwardLink href="/">UpwardLink</UpwardLink>
</>
)
}