diff --git a/src/components/SearchInput/SearchInput.stories.tsx b/src/components/SearchInput/SearchInput.stories.tsx new file mode 100644 index 0000000..b1882fe --- /dev/null +++ b/src/components/SearchInput/SearchInput.stories.tsx @@ -0,0 +1,120 @@ +import React from 'react'; +import type { Meta, StoryObj } from '@storybook/react'; +// import SearchIcon from '@mui/icons-material/Search'; +import { MySearchInput } from './SearchInput'; +import { ReactComponent as ExplorerSearchIcon } from "../../assets/vectors/ExplorerSearchIcon.svg"; +import colors from "../../theme/colors"; +import { Box } from '@mui/material'; +import { typography } from '@mui/system'; + + +const meta = { + title: 'Example/SearchInput', + component: MySearchInput, + parameters: { + layout: 'centered', + }, + tags: ['autodocs'], +} satisfies Meta; + +export default meta; +type Story = StoryObj; + +// Basic search input +export const Default: Story = { + args: { + placeholder: 'Search...', + width: '200px', + }, +}; + +// AIDA search input +export const AIDASearchInput: Story = { + args: { + placeholder: 'Search', + startAdornment: , + showBorder: true, + gap: '4px', + display: 'flex', + alignItems: 'center', + background: colors.secondary.disableButton, + padding: '4px 8px', + borderRadius: '5px', + width: '100%', + inputBorder: 'none', + inputWidth: '255px', + inputOutline: 'none', + inputBackground: 'transparent', + inputLineHeight: '20px', + inputFontSize: '14px', + inputColor: colors.secondary.grayText, + inputPlaceholderFontSize: colors.secondary.grayText, + }, +}; + +// Openaid search input +export const OpenaidSearchInput: Story = { + args:{ + endAdornment: ( + + + + ), + showBorder: false, + placeholder: 'Search', + inputFontSize: 16, + inputBorderRadius: 30, + inputColor: colors.primary.blue, + inputBackground: "rgba(227, 227, 227, 0.5)", + inputBoxShadow: "0px 2px 3px 0px rgba(97, 97, 97, 0.20) inset", + inputOpacity: 1, + inputWidth:"600px", + inputpadding: "6px 40px 6px 22px", + }, +}; + +// Data explorer search input +export const DataExplorerInput: Story = { + args: { + endAdornment: ( + + ), + placeholder: 'E.g Kenya', + display: 'flex', + padding: '8px 20px', + position: 'relative', + borderRadius: '8px', + background: "#F1F3F4", + width: '100%', + inputWidth: '100%', + inputFontSize: '14px', + inputOutline: 'none', + inputFontWeight: 400, + inputBorder: 'none', + inputBackground: "#F1F3F4", + inputColor: colors.primary.black, + }, +};