Some checks failed
forgejo/Procyon/procyon/pipeline/head There was a failure building this commit
This commit removes unused placeholder files and updates several components to be compatible with React Native. These updates include changes in styles, properties, and components like Modals, Toaster, Navigator, and others. The affected files were also appropriately reorganized. Additionally, a new .storybook manager file was introduced.
92 lines
1.7 KiB
TypeScript
92 lines
1.7 KiB
TypeScript
import { Meta, StoryObj } from '@storybook/react';
|
|
|
|
import { List } from '@procyon/components/List';
|
|
|
|
type Story = StoryObj<typeof List>;
|
|
|
|
export default {
|
|
component: List,
|
|
parameters: {
|
|
docs: {
|
|
description: {
|
|
component: "`import { List } from '@procyon/components/List';`",
|
|
},
|
|
},
|
|
},
|
|
tags: ['autodocs'],
|
|
} as Meta;
|
|
|
|
export const Default: Story = {
|
|
args: {
|
|
options: [
|
|
{
|
|
name: 'Tiger',
|
|
code: 'list1',
|
|
},
|
|
{
|
|
name: 'Elephant',
|
|
code: 'list2',
|
|
},
|
|
{
|
|
name: 'Dolphin',
|
|
code: 'list3',
|
|
},
|
|
],
|
|
},
|
|
};
|
|
|
|
export const WithSearch: Story = {
|
|
args: {
|
|
autoComplete: true,
|
|
options: [
|
|
{ name: 'Pizza', code: 'food1', description: 'Delicious cheese pizza' },
|
|
{ name: 'Burger', code: 'food2', description: 'Juicy beef burger' },
|
|
{ name: 'Pasta', code: 'food3', description: 'Italian style pasta' },
|
|
],
|
|
},
|
|
};
|
|
|
|
export const WithDescription: Story = {
|
|
args: {
|
|
options: [
|
|
{
|
|
name: 'Tiger',
|
|
code: 'list1',
|
|
description: 'Large carnivorous cat originating from Asia',
|
|
},
|
|
{
|
|
name: 'Elephant',
|
|
code: 'list2',
|
|
description: 'Large herbivore with a long trunk, native to Africa and Asia',
|
|
},
|
|
{
|
|
name: 'Dolphin',
|
|
code: 'list3',
|
|
description: 'Intelligent aquatic mammal known for its playful behavior',
|
|
},
|
|
],
|
|
},
|
|
};
|
|
|
|
export const NoInteractive: Story = {
|
|
args: {
|
|
mode: 'view',
|
|
options: [
|
|
{
|
|
name: 'Tiger',
|
|
code: 'list1',
|
|
description: 'Large carnivorous cat originating from Asia',
|
|
},
|
|
{
|
|
name: 'Elephant',
|
|
code: 'list2',
|
|
description: 'Large herbivore with a long trunk, native to Africa and Asia',
|
|
},
|
|
{
|
|
name: 'Dolphin',
|
|
code: 'list3',
|
|
description: 'Intelligent aquatic mammal known for its playful behavior',
|
|
},
|
|
],
|
|
},
|
|
};
|