diff --git a/packages/ui/src/components/Button/Button.stories.tsx b/packages/ui/src/components/Button/Button.stories.tsx index db8e999f98..6b74615eeb 100644 --- a/packages/ui/src/components/Button/Button.stories.tsx +++ b/packages/ui/src/components/Button/Button.stories.tsx @@ -18,7 +18,7 @@ import type { Meta, StoryObj } from '@storybook/react-vite'; import { Button } from './Button'; import { Flex } from '../Flex'; import { Text } from '../Text'; -import { Icon } from '../Icon'; +import { RiArrowRightSLine, RiCloudLine } from '@remixicon/react'; const meta = { title: 'Backstage UI/Button', @@ -57,13 +57,13 @@ export const Variants: Story = { }, render: () => ( - - - @@ -76,10 +76,10 @@ export const Sizes: Story = { }, render: () => ( - - @@ -92,12 +92,12 @@ export const WithIcons: Story = { }, render: args => ( - + - ((props, ref) => { styles[classNames.itemIndicator], )} > - + { @@ -51,9 +51,9 @@ export const Column = (props: ColumnProps) => { )} > {sortDirection === 'ascending' ? ( - + ) : ( - + )} )} diff --git a/packages/ui/src/components/TablePagination/TablePagination.tsx b/packages/ui/src/components/TablePagination/TablePagination.tsx index 3fbaf77ccd..ebd585a0c3 100644 --- a/packages/ui/src/components/TablePagination/TablePagination.tsx +++ b/packages/ui/src/components/TablePagination/TablePagination.tsx @@ -15,10 +15,11 @@ */ import clsx from 'clsx'; -import { Text, ButtonIcon, Select, Icon } from '../..'; +import { Text, ButtonIcon, Select } from '../..'; import type { TablePaginationProps } from './types'; import { useStyles } from '../../hooks/useStyles'; import styles from './TablePagination.module.css'; +import { RiArrowLeftSLine, RiArrowRightSLine } from '@remixicon/react'; /** * Pagination controls for Table components with page navigation and size selection. @@ -109,7 +110,7 @@ export function TablePagination(props: TablePaginationProps) { size="small" onClick={previousPage} isDisabled={currentOffset === 0} - icon={} + icon={} aria-label="Previous" /> = rowCount } - icon={} + icon={} aria-label="Next" /> diff --git a/packages/ui/src/components/TagGroup/TagGroup.stories.tsx b/packages/ui/src/components/TagGroup/TagGroup.stories.tsx index 409956e049..0ccd83de1e 100644 --- a/packages/ui/src/components/TagGroup/TagGroup.stories.tsx +++ b/packages/ui/src/components/TagGroup/TagGroup.stories.tsx @@ -18,14 +18,20 @@ import { useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react-vite'; import { TagGroup, Tag } from '.'; import type { Selection } from 'react-aria-components'; -import { Flex, Icon, IconNames } from '../../'; +import { Flex } from '../../'; import { useListData } from 'react-stately'; import { MemoryRouter } from 'react-router-dom'; +import { + RiAccountCircleLine, + RiBugLine, + RiEyeLine, + RiHeartLine, +} from '@remixicon/react'; export interface ListItem { id: string; name: string; - icon: IconNames; + icon: React.ReactNode; isDisabled?: boolean; } @@ -54,13 +60,13 @@ export default meta; type Story = StoryObj; const initialList: ListItem[] = [ - { id: 'banana', name: 'Banana', icon: 'bug' }, - { id: 'apple', name: 'Apple', icon: 'account-circle', isDisabled: true }, - { id: 'orange', name: 'Orange', icon: 'eye', isDisabled: true }, - { id: 'pear', name: 'Pear', icon: 'heart' }, - { id: 'grape', name: 'Grape', icon: 'bug' }, - { id: 'pineapple', name: 'Pineapple', icon: 'eye' }, - { id: 'strawberry', name: 'Strawberry', icon: 'heart' }, + { id: 'banana', name: 'Banana', icon: }, + { id: 'apple', name: 'Apple', icon: }, + { id: 'orange', name: 'Orange', icon: }, + { id: 'pear', name: 'Pear', icon: }, + { id: 'grape', name: 'Grape', icon: }, + { id: 'pineapple', name: 'Pineapple', icon: }, + { id: 'strawberry', name: 'Strawberry', icon: }, ]; export const Default: Story = { @@ -84,14 +90,14 @@ export const Sizes: Story = { {initialList.map(item => ( - }> + {item.name} ))} {initialList.map(item => ( - }> + {item.name} ))} @@ -151,10 +157,7 @@ export const WithIcon: Story = { render: args => ( {initialList.map(item => ( - : undefined} - > + {item.name} ))} @@ -231,9 +234,7 @@ export const WithIconAndRemoveButton: Story = { {...args} > {item => ( - : undefined}> - {item.name} - + {item.name} )} ); diff --git a/packages/ui/src/components/TextField/TextField.stories.tsx b/packages/ui/src/components/TextField/TextField.stories.tsx index 86da34d147..38115996ae 100644 --- a/packages/ui/src/components/TextField/TextField.stories.tsx +++ b/packages/ui/src/components/TextField/TextField.stories.tsx @@ -17,9 +17,9 @@ import type { Meta, StoryObj } from '@storybook/react-vite'; import { TextField } from './TextField'; import { Form } from 'react-aria-components'; -import { Icon } from '../Icon'; import { Flex } from '../Flex'; import { FieldLabel } from '../FieldLabel'; +import { RiEyeLine, RiSparklingLine } from '@remixicon/react'; const meta = { title: 'Backstage UI/TextField', @@ -53,8 +53,8 @@ export const Sizes: Story = { }, render: args => ( - } /> - } /> + } /> + } /> ), }; @@ -103,7 +103,7 @@ export const WithIcon: Story = { {...args} placeholder="Enter a URL" size="small" - icon={} + icon={} /> ), };