import { DemoStory } from '../demo/demo-types'; import { ActionSheet, ActionSheetSelect, ActionSheetMessage, ActionSheetInput, ActionSheetSelectOptionsProps, ActionSheetSelectWrapPromise, } from './action-sheet'; import { ActionSheetTimePicker } from './action-sheet-time'; import { ActionSheetDatePicker } from './action-sheet-date'; import { ActionSheetColorPicker } from './action-sheet-color'; import { ActionSheetThemePicker } from './action-sheet-theme'; import { Button, ButtonSize } from './button'; export const actionSheetDemo: DemoStory = { id: 'action-sheet-demo', text: 'Action Sheet Demo', args: { title: 'Select an Action', confirmButtonText: 'Confirm Option', cancelButtonText: 'Cancel Action', }, argTypes: { title: { control: 'text', description: 'Title of the action sheet' }, confirmButtonText: { control: 'text', description: 'Confirm button text' }, cancelButtonText: { control: 'text', description: 'Cancel button text' }, }, render: (args) => { return (
); }, code: `import { ActionSheet, ActionSheetSelect, ActionSheetMessage, ActionSheetInput } from 'lupine.components/components/action-sheet'; // Simple Action Sheet ActionSheet.show({ title: 'Select an Action', children:
Custom Content Here
, confirmButtonText: 'Confirm Option', cancelButtonText: 'Cancel Action', handleConfirmClicked: (close) => close('confirm'), }); // Action Sheet Select ActionSheetSelect.show({ title: 'Select an Action', options: ['Option A', 'Option B', 'Option C'], handleClicked: (index, close) => close('select'), }); `, };