diff --git a/packages/components/src/accordion/accordion.tsx b/packages/components/src/accordion/accordion.tsx index 25b8262a..fc3f42bc 100644 --- a/packages/components/src/accordion/accordion.tsx +++ b/packages/components/src/accordion/accordion.tsx @@ -1,6 +1,6 @@ import React from 'react' -import { ChevronRight } from '@status-im/icons/20' +import { ChevronRightIcon } from '@status-im/icons/20' import { Stack } from '@tamagui/core' import { AnimatePresence } from 'tamagui' @@ -58,7 +58,7 @@ const Accordion = ({ }, ]} > - + )} - {channelStatus === 'muted' && } + {channelStatus === 'muted' && } )} diff --git a/packages/components/src/author/author.tsx b/packages/components/src/author/author.tsx index 92406a73..8ea8f65d 100644 --- a/packages/components/src/author/author.tsx +++ b/packages/components/src/author/author.tsx @@ -1,4 +1,8 @@ -import { Contact, Untrustworthy, Verified } from '@status-im/icons/12' +import { + ContactIcon, + UntrustworthyIcon, + VerifiedIcon, +} from '@status-im/icons/12' import { XStack } from 'tamagui' import { Paragraph } from '../typography' @@ -21,9 +25,9 @@ const Author = (props: Props) => { {name} - {status === 'contact' && } - {status === 'verified' && } - {status === 'untrustworthy' && } + {status === 'contact' && } + {status === 'verified' && } + {status === 'untrustworthy' && } {address && ( diff --git a/packages/components/src/button/button.stories.tsx b/packages/components/src/button/button.stories.tsx index a68a3ee3..3f7d115c 100644 --- a/packages/components/src/button/button.stories.tsx +++ b/packages/components/src/button/button.stories.tsx @@ -17,9 +17,50 @@ export const Primary: Story = { }, } -export const PrimaryLong: Story = { +const icon = ( + + + +) + +export const Primary32: Story = { + name: 'Primary/32px', args: { - children: 'Lorem ipsum dim sum', + size: 32, + children: 'Click me', + }, +} + +export const PrimaryIconBefore: Story = { + name: 'Primary icon before', + args: { + children: 'Click me', + icon, + }, +} + +export const PrimaryIconAfter: Story = { + name: 'Primary/Icon after', + args: { + children: 'Click me', + iconAfter: icon, + }, +} +export const PrimaryIconOnly: Story = { + name: 'Primary/Icon only', + args: { + icon, }, } @@ -30,4 +71,18 @@ export const Success: Story = { }, } +export const Outline: Story = { + args: { + type: 'outline', + children: 'Click me', + }, +} + +export const Ghost: Story = { + args: { + type: 'ghost', + children: 'Click me', + }, +} + export default meta diff --git a/packages/components/src/composer/composer.tsx b/packages/components/src/composer/composer.tsx index 8f2b99c7..39af16d6 100644 --- a/packages/components/src/composer/composer.tsx +++ b/packages/components/src/composer/composer.tsx @@ -1,4 +1,9 @@ -import { Audio, Format, Image, Reaction } from '@status-im/icons/20' +import { + AudioIcon, + FormatIcon, + ImageIcon, + ReactionIcon, +} from '@status-im/icons/20' import { Stack, XStack, YStack } from 'tamagui' import { IconButton } from '../icon-button' @@ -34,11 +39,11 @@ const Composer = (props: BaseProps) => { - } /> - } /> - } /> + } /> + } /> + } /> - } /> + } /> ) diff --git a/packages/components/src/icon-button/icon-button.stories.tsx b/packages/components/src/icon-button/icon-button.stories.tsx index 6fa7028e..1244e78d 100644 --- a/packages/components/src/icon-button/icon-button.stories.tsx +++ b/packages/components/src/icon-button/icon-button.stories.tsx @@ -1,4 +1,4 @@ -import { Options } from '@status-im/icons/20' +import { OptionsIcon } from '@status-im/icons/20' import { IconButton } from './icon-button' @@ -15,7 +15,7 @@ type Story = StoryObj // More on writing stories with args: https://storybook.js.org/docs/7.0/react/writing-stories/args export const Default: Story = { args: { - icon: , + icon: , }, } diff --git a/packages/components/src/icons/icons.stories.tsx b/packages/components/src/icons/icons.stories.tsx index 3f8f5b24..c0050ce6 100644 --- a/packages/components/src/icons/icons.stories.tsx +++ b/packages/components/src/icons/icons.stories.tsx @@ -34,7 +34,7 @@ export const All: Story = { {Object.keys(icons12).map(name => { // @ts-ignore // eslint-disable-next-line import/namespace - const Icon = icons[name] as React.FunctionComponent + const Icon = icons12[name] as React.FunctionComponent return (
{ // @ts-ignore // eslint-disable-next-line import/namespace - const Icon = icons[name] as React.FunctionComponent + const Icon = icons16[name] as React.FunctionComponent return (
{ // @ts-ignore // eslint-disable-next-line import/namespace - const Icon = icons[name] as React.FunctionComponent + const Icon = icons20[name] as React.FunctionComponent return (
{ // @ts-ignore // eslint-disable-next-line import/namespace - const Icon = icons[name] as React.FunctionComponent + const Icon = reactions[name] as React.FunctionComponent return (
{ shadowColor="rgba(9, 16, 28, 0.08)" zIndex={10} > -