REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 2.05 KB
Close
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/@adminjs/design-system/src/atoms/table/table.stories.tsx
Text
Base64
import { Meta, StoryObj } from '@storybook/react' import React from 'react' import StoryWrapper from '../../utils/story-wrapper.jsx' import { Button, CheckBox, Icon, Link, Text } from '../index.js' import { Table, TableBody, TableCaption, TableCell, TableHead, TableRow } from './index.js' export const Default: StoryObj<{ onClick: (e) => void }> = { render: ({ onClick }) => { const handleClick = (event) => { event.preventDefault() onClick(event) } const header = ['Name', 'Surname', 'Gender', 'Age'] const data = [ ['John', 'Doe', 'Male', '57'], ['Joanna', 'K', 'Female', '32'], ['Patrick', 'Jogs', 'Male', '35'], ['Elisabeth', 'Briggs', 'Female', '28'], ['Jda', 'Karo', 'Female', '22'], ] return ( <StoryWrapper label=""> <Table> <TableCaption> <Text as="span">Selected items </Text> <Button onClick={handleClick}> <Icon icon="Trash" /> Remove </Button> </TableCaption> <TableHead> <TableRow> <TableCell> <CheckBox /> </TableCell> {header.map((head, i) => ( <TableCell key={head} onClick={handleClick}> <Link href="/"> {head} {i === 0 && <Icon icon="ChevronUp" />} </Link> </TableCell> ))} </TableRow> </TableHead> <TableBody> {data.map((row) => ( <TableRow key={row[0]}> <TableCell> <CheckBox /> </TableCell> {row.map((item) => ( <TableCell key={item}>{item}</TableCell> ))} </TableRow> ))} </TableBody> </Table> </StoryWrapper> ) }, } const meta: Meta<typeof Table> = { title: 'DesignSystem/Atoms/Table', component: Table, argTypes: { onClick: { action: 'clicked' }, }, } export default meta
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 8
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
index.ts
331 B
lrw-r--r--
2026-02-28 00:31:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
table-body.tsx
296 B
lrw-r--r--
2026-02-28 00:32:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
table-caption.tsx
1002 B
lrw-r--r--
2026-02-28 00:32:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
table-cell.tsx
887 B
lrw-r--r--
2026-02-28 00:32:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
table-head.tsx
617 B
lrw-r--r--
2026-02-28 00:32:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
table-row.tsx
477 B
lrw-r--r--
2026-02-28 00:32:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
table.stories.tsx
2.05 KB
lrw-r--r--
2026-02-28 00:32:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
table.tsx
2.80 KB
lrw-r--r--
2026-02-28 00:32:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).